1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for hunspell 1.3.3.
4#
5# Report bugs to <nemeth@numbertext.org>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: nemeth@numbertext.org about your system, including any
243$0: error possibly output before this message. Then install
244$0: a modern shell, or manually run the script under such a
245$0: shell if you do have one."
246  fi
247  exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265  { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274  return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282  set +e
283  as_fn_set_status $1
284  exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293  case $as_dir in #(
294  -*) as_dir=./$as_dir;;
295  esac
296  test -d "$as_dir" || eval $as_mkdir_p || {
297    as_dirs=
298    while :; do
299      case $as_dir in #(
300      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301      *) as_qdir=$as_dir;;
302      esac
303      as_dirs="'$as_qdir' $as_dirs"
304      as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306	 X"$as_dir" : 'X\(//\)[^/]' \| \
307	 X"$as_dir" : 'X\(//\)$' \| \
308	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\/\)[^/].*/{
315	    s//\1/
316	    q
317	  }
318	  /^X\(\/\/\)$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\).*/{
323	    s//\1/
324	    q
325	  }
326	  s/.*/./; q'`
327      test -d "$as_dir" && break
328    done
329    test -z "$as_dirs" || eval "mkdir $as_dirs"
330  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341  eval 'as_fn_append ()
342  {
343    eval $1+=\$2
344  }'
345else
346  as_fn_append ()
347  {
348    eval $1=\$$1\$2
349  }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358  eval 'as_fn_arith ()
359  {
360    as_val=$(( $* ))
361  }'
362else
363  as_fn_arith ()
364  {
365    as_val=`expr "$@" || test $? -eq 1`
366  }
367fi # as_fn_arith
368
369
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with STATUS, using 1 if that was 0.
375as_fn_error ()
376{
377  as_status=$1; test $as_status -eq 0 && as_status=1
378  if test "$4"; then
379    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381  fi
382  $as_echo "$as_me: error: $2" >&2
383  as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388  as_expr=expr
389else
390  as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394  as_basename=basename
395else
396  as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400  as_dirname=dirname
401else
402  as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407	 X"$0" : 'X\(//\)$' \| \
408	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410    sed '/^.*\/\([^/][^/]*\)\/*$/{
411	    s//\1/
412	    q
413	  }
414	  /^X\/\(\/\/\)$/{
415	    s//\1/
416	    q
417	  }
418	  /^X\/\(\/\).*/{
419	    s//\1/
420	    q
421	  }
422	  s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437  sed -n '
438    p
439    /[$]LINENO/=
440  ' <$as_myself |
441    sed '
442      s/[$]LINENO.*/&-/
443      t lineno
444      b
445      :lineno
446      N
447      :loop
448      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449      t loop
450      s/-\n.*//
451    ' >$as_me.lineno &&
452  chmod +x "$as_me.lineno" ||
453    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466  case `echo 'xy\c'` in
467  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
468  xy)  ECHO_C='\c';;
469  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470       ECHO_T='	';;
471  esac;;
472*)
473  ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478  rm -f conf$$.dir/conf$$.file
479else
480  rm -f conf$$.dir
481  mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484  if ln -s conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s='ln -s'
486    # ... but there are two gotchas:
487    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489    # In both cases, we have to default to `cp -p'.
490    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491      as_ln_s='cp -p'
492  elif ln conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s=ln
494  else
495    as_ln_s='cp -p'
496  fi
497else
498  as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504  as_mkdir_p='mkdir -p "$as_dir"'
505else
506  test -d ./-p && rmdir ./-p
507  as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511  as_test_x='test -x'
512else
513  if ls -dL / >/dev/null 2>&1; then
514    as_ls_L_option=L
515  else
516    as_ls_L_option=
517  fi
518  as_test_x='
519    eval sh -c '\''
520      if test -d "$1"; then
521	test -d "$1/.";
522      else
523	case $1 in #(
524	-*)set "./$1";;
525	esac;
526	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527	???[sx]*):;;*)false;;esac;fi
528    '\'' sh
529  '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541# Check that we are running under the correct shell.
542SHELL=${CONFIG_SHELL-/bin/sh}
543
544case X$lt_ECHO in
545X*--fallback-echo)
546  # Remove one level of quotation (which was required for Make).
547  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
548  ;;
549esac
550
551ECHO=${lt_ECHO-echo}
552if test "X$1" = X--no-reexec; then
553  # Discard the --no-reexec flag, and continue.
554  shift
555elif test "X$1" = X--fallback-echo; then
556  # Avoid inline document here, it may be left over
557  :
558elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
559  # Yippee, $ECHO works!
560  :
561else
562  # Restart under the correct shell.
563  exec $SHELL "$0" --no-reexec ${1+"$@"}
564fi
565
566if test "X$1" = X--fallback-echo; then
567  # used as fallback echo
568  shift
569  cat <<_LT_EOF
570$*
571_LT_EOF
572  exit 0
573fi
574
575# The HP-UX ksh and POSIX shell print the target directory to stdout
576# if CDPATH is set.
577(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578
579if test -z "$lt_ECHO"; then
580  if test "X${echo_test_string+set}" != Xset; then
581    # find a string as large as possible, as long as the shell can cope with it
582    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
585	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
586      then
587        break
588      fi
589    done
590  fi
591
592  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
593     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
594     test "X$echo_testing_string" = "X$echo_test_string"; then
595    :
596  else
597    # The Solaris, AIX, and Digital Unix default echo programs unquote
598    # backslashes.  This makes it impossible to quote backslashes using
599    #   echo "$something" | sed 's/\\/\\\\/g'
600    #
601    # So, first we look for a working echo in the user's PATH.
602
603    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604    for dir in $PATH /usr/ucb; do
605      IFS="$lt_save_ifs"
606      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609         test "X$echo_testing_string" = "X$echo_test_string"; then
610        ECHO="$dir/echo"
611        break
612      fi
613    done
614    IFS="$lt_save_ifs"
615
616    if test "X$ECHO" = Xecho; then
617      # We didn't find a better echo, so look for alternatives.
618      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
619         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
620         test "X$echo_testing_string" = "X$echo_test_string"; then
621        # This shell has a builtin print -r that does the trick.
622        ECHO='print -r'
623      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
624	   test "X$CONFIG_SHELL" != X/bin/ksh; then
625        # If we have ksh, try running configure again with it.
626        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627        export ORIGINAL_CONFIG_SHELL
628        CONFIG_SHELL=/bin/ksh
629        export CONFIG_SHELL
630        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631      else
632        # Try using printf.
633        ECHO='printf %s\n'
634        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
635	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
636	   test "X$echo_testing_string" = "X$echo_test_string"; then
637	  # Cool, printf works
638	  :
639        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640	     test "X$echo_testing_string" = 'X\t' &&
641	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642	     test "X$echo_testing_string" = "X$echo_test_string"; then
643	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644	  export CONFIG_SHELL
645	  SHELL="$CONFIG_SHELL"
646	  export SHELL
647	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
648        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649	     test "X$echo_testing_string" = 'X\t' &&
650	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651	     test "X$echo_testing_string" = "X$echo_test_string"; then
652	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
653        else
654	  # maybe with a smaller string...
655	  prev=:
656
657	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
659	    then
660	      break
661	    fi
662	    prev="$cmd"
663	  done
664
665	  if test "$prev" != 'sed 50q "$0"'; then
666	    echo_test_string=`eval $prev`
667	    export echo_test_string
668	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669	  else
670	    # Oops.  We lost completely, so just stick with echo.
671	    ECHO=echo
672	  fi
673        fi
674      fi
675    fi
676  fi
677fi
678
679# Copy echo and quote the copy suitably for passing to libtool from
680# the Makefile, instead of quoting the original, which is used later.
681lt_ECHO=$ECHO
682if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684fi
685
686
687
688
689test -n "$DJDIR" || exec 7<&0 </dev/null
690exec 6>&1
691
692# Name of the host.
693# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
694# so uname gets run too.
695ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
696
697#
698# Initializations.
699#
700ac_default_prefix=/usr/local
701ac_clean_files=
702ac_config_libobj_dir=.
703LIBOBJS=
704cross_compiling=no
705subdirs=
706MFLAGS=
707MAKEFLAGS=
708
709# Identity of this package.
710PACKAGE_NAME='hunspell'
711PACKAGE_TARNAME='hunspell'
712PACKAGE_VERSION='1.3.3'
713PACKAGE_STRING='hunspell 1.3.3'
714PACKAGE_BUGREPORT='nemeth@numbertext.org'
715PACKAGE_URL=''
716
717ac_unique_file="config.h.in"
718# Factoring default headers for most tests.
719ac_includes_default="\
720#include <stdio.h>
721#ifdef HAVE_SYS_TYPES_H
722# include <sys/types.h>
723#endif
724#ifdef HAVE_SYS_STAT_H
725# include <sys/stat.h>
726#endif
727#ifdef STDC_HEADERS
728# include <stdlib.h>
729# include <stddef.h>
730#else
731# ifdef HAVE_STDLIB_H
732#  include <stdlib.h>
733# endif
734#endif
735#ifdef HAVE_STRING_H
736# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
737#  include <memory.h>
738# endif
739# include <string.h>
740#endif
741#ifdef HAVE_STRINGS_H
742# include <strings.h>
743#endif
744#ifdef HAVE_INTTYPES_H
745# include <inttypes.h>
746#endif
747#ifdef HAVE_STDINT_H
748# include <stdint.h>
749#endif
750#ifdef HAVE_UNISTD_H
751# include <unistd.h>
752#endif"
753
754gt_needs=
755ac_header_list=
756ac_subst_vars='am__EXEEXT_FALSE
757am__EXEEXT_TRUE
758LTLIBOBJS
759READLINELIB
760CURSESLIB
761POSUB
762LTLIBINTL
763LIBINTL
764INTLLIBS
765INTL_LIBTOOL_SUFFIX_PREFIX
766INTLOBJS
767GENCAT
768INSTOBJEXT
769DATADIRNAME
770CATOBJEXT
771USE_INCLUDED_LIBINTL
772BUILD_INCLUDED_LIBINTL
773LTLIBC
774WINDRES
775WOE32
776WOE32DLL
777HAVE_WPRINTF
778HAVE_SNPRINTF
779HAVE_ASPRINTF
780HAVE_POSIX_PRINTF
781INTL_MACOSX_LIBS
782GLIBC21
783INTLBISON
784LTLIBICONV
785LIBICONV
786LTLIBMULTITHREAD
787LIBMULTITHREAD
788LTLIBTHREAD
789LIBTHREAD
790LIBPTH_PREFIX
791LTLIBPTH
792LIBPTH
793PRI_MACROS_BROKEN
794ALLOCA
795HAVE_VISIBILITY
796CFLAG_VISIBILITY
797GLIBC2
798XGETTEXT_EXTRA_OPTIONS
799MSGMERGE
800XGETTEXT_015
801XGETTEXT
802GMSGFMT_015
803MSGFMT_015
804GMSGFMT
805MSGFMT
806GETTEXT_MACRO_VERSION
807USE_NLS
808LIBOBJS
809DLLTOOL
810AS
811CXXCPP
812CPP
813OTOOL64
814OTOOL
815LIPO
816NMEDIT
817DSYMUTIL
818lt_ECHO
819RANLIB
820AR
821OBJDUMP
822LN_S
823NM
824ac_ct_DUMPBIN
825DUMPBIN
826LD
827FGREP
828EGREP
829GREP
830SED
831LIBTOOL
832am__fastdepCC_FALSE
833am__fastdepCC_TRUE
834CCDEPMODE
835ac_ct_CC
836CFLAGS
837CC
838am__fastdepCXX_FALSE
839am__fastdepCXX_TRUE
840CXXDEPMODE
841am__nodep
842AMDEPBACKSLASH
843AMDEP_FALSE
844AMDEP_TRUE
845am__quote
846am__include
847DEPDIR
848OBJEXT
849EXEEXT
850ac_ct_CXX
851CPPFLAGS
852LDFLAGS
853CXXFLAGS
854CXX
855HUNSPELL_VERSION_MINOR
856HUNSPELL_VERSION_MAJOR
857am__untar
858am__tar
859AMTAR
860am__leading_dot
861SET_MAKE
862AWK
863mkdir_p
864MKDIR_P
865INSTALL_STRIP_PROGRAM
866STRIP
867install_sh
868MAKEINFO
869AUTOHEADER
870AUTOMAKE
871AUTOCONF
872ACLOCAL
873VERSION
874PACKAGE
875CYGPATH_W
876am__isrc
877INSTALL_DATA
878INSTALL_SCRIPT
879INSTALL_PROGRAM
880XFAILED
881target_os
882target_vendor
883target_cpu
884target
885host_os
886host_vendor
887host_cpu
888host
889build_os
890build_vendor
891build_cpu
892build
893target_alias
894host_alias
895build_alias
896LIBS
897ECHO_T
898ECHO_N
899ECHO_C
900DEFS
901mandir
902localedir
903libdir
904psdir
905pdfdir
906dvidir
907htmldir
908infodir
909docdir
910oldincludedir
911includedir
912localstatedir
913sharedstatedir
914sysconfdir
915datadir
916datarootdir
917libexecdir
918sbindir
919bindir
920program_transform_name
921prefix
922exec_prefix
923PACKAGE_URL
924PACKAGE_BUGREPORT
925PACKAGE_STRING
926PACKAGE_VERSION
927PACKAGE_TARNAME
928PACKAGE_NAME
929PATH_SEPARATOR
930SHELL'
931ac_subst_files=''
932ac_user_opts='
933enable_option_checking
934enable_dependency_tracking
935enable_shared
936enable_static
937with_pic
938enable_fast_install
939with_gnu_ld
940enable_libtool_lock
941enable_nls
942enable_threads
943enable_rpath
944with_libpth_prefix
945with_libiconv_prefix
946with_included_gettext
947with_libintl_prefix
948with_warnings
949with_experimental
950with_ui
951with_readline
952'
953      ac_precious_vars='build_alias
954host_alias
955target_alias
956CXX
957CXXFLAGS
958LDFLAGS
959LIBS
960CPPFLAGS
961CCC
962CC
963CFLAGS
964CPP
965CXXCPP'
966
967
968# Initialize some variables set by options.
969ac_init_help=
970ac_init_version=false
971ac_unrecognized_opts=
972ac_unrecognized_sep=
973# The variables have the same names as the options, with
974# dashes changed to underlines.
975cache_file=/dev/null
976exec_prefix=NONE
977no_create=
978no_recursion=
979prefix=NONE
980program_prefix=NONE
981program_suffix=NONE
982program_transform_name=s,x,x,
983silent=
984site=
985srcdir=
986verbose=
987x_includes=NONE
988x_libraries=NONE
989
990# Installation directory options.
991# These are left unexpanded so users can "make install exec_prefix=/foo"
992# and all the variables that are supposed to be based on exec_prefix
993# by default will actually change.
994# Use braces instead of parens because sh, perl, etc. also accept them.
995# (The list follows the same order as the GNU Coding Standards.)
996bindir='${exec_prefix}/bin'
997sbindir='${exec_prefix}/sbin'
998libexecdir='${exec_prefix}/libexec'
999datarootdir='${prefix}/share'
1000datadir='${datarootdir}'
1001sysconfdir='${prefix}/etc'
1002sharedstatedir='${prefix}/com'
1003localstatedir='${prefix}/var'
1004includedir='${prefix}/include'
1005oldincludedir='/usr/include'
1006docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1007infodir='${datarootdir}/info'
1008htmldir='${docdir}'
1009dvidir='${docdir}'
1010pdfdir='${docdir}'
1011psdir='${docdir}'
1012libdir='${exec_prefix}/lib'
1013localedir='${datarootdir}/locale'
1014mandir='${datarootdir}/man'
1015
1016ac_prev=
1017ac_dashdash=
1018for ac_option
1019do
1020  # If the previous option needs an argument, assign it.
1021  if test -n "$ac_prev"; then
1022    eval $ac_prev=\$ac_option
1023    ac_prev=
1024    continue
1025  fi
1026
1027  case $ac_option in
1028  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1029  *=)   ac_optarg= ;;
1030  *)    ac_optarg=yes ;;
1031  esac
1032
1033  # Accept the important Cygnus configure options, so we can diagnose typos.
1034
1035  case $ac_dashdash$ac_option in
1036  --)
1037    ac_dashdash=yes ;;
1038
1039  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1040    ac_prev=bindir ;;
1041  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1042    bindir=$ac_optarg ;;
1043
1044  -build | --build | --buil | --bui | --bu)
1045    ac_prev=build_alias ;;
1046  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1047    build_alias=$ac_optarg ;;
1048
1049  -cache-file | --cache-file | --cache-fil | --cache-fi \
1050  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1051    ac_prev=cache_file ;;
1052  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1053  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1054    cache_file=$ac_optarg ;;
1055
1056  --config-cache | -C)
1057    cache_file=config.cache ;;
1058
1059  -datadir | --datadir | --datadi | --datad)
1060    ac_prev=datadir ;;
1061  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1062    datadir=$ac_optarg ;;
1063
1064  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1065  | --dataroo | --dataro | --datar)
1066    ac_prev=datarootdir ;;
1067  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1068  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1069    datarootdir=$ac_optarg ;;
1070
1071  -disable-* | --disable-*)
1072    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073    # Reject names that are not valid shell variable names.
1074    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075      as_fn_error $? "invalid feature name: $ac_useropt"
1076    ac_useropt_orig=$ac_useropt
1077    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078    case $ac_user_opts in
1079      *"
1080"enable_$ac_useropt"
1081"*) ;;
1082      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1083	 ac_unrecognized_sep=', ';;
1084    esac
1085    eval enable_$ac_useropt=no ;;
1086
1087  -docdir | --docdir | --docdi | --doc | --do)
1088    ac_prev=docdir ;;
1089  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1090    docdir=$ac_optarg ;;
1091
1092  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1093    ac_prev=dvidir ;;
1094  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1095    dvidir=$ac_optarg ;;
1096
1097  -enable-* | --enable-*)
1098    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1099    # Reject names that are not valid shell variable names.
1100    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101      as_fn_error $? "invalid feature name: $ac_useropt"
1102    ac_useropt_orig=$ac_useropt
1103    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104    case $ac_user_opts in
1105      *"
1106"enable_$ac_useropt"
1107"*) ;;
1108      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1109	 ac_unrecognized_sep=', ';;
1110    esac
1111    eval enable_$ac_useropt=\$ac_optarg ;;
1112
1113  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1114  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1115  | --exec | --exe | --ex)
1116    ac_prev=exec_prefix ;;
1117  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1118  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1119  | --exec=* | --exe=* | --ex=*)
1120    exec_prefix=$ac_optarg ;;
1121
1122  -gas | --gas | --ga | --g)
1123    # Obsolete; use --with-gas.
1124    with_gas=yes ;;
1125
1126  -help | --help | --hel | --he | -h)
1127    ac_init_help=long ;;
1128  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1129    ac_init_help=recursive ;;
1130  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1131    ac_init_help=short ;;
1132
1133  -host | --host | --hos | --ho)
1134    ac_prev=host_alias ;;
1135  -host=* | --host=* | --hos=* | --ho=*)
1136    host_alias=$ac_optarg ;;
1137
1138  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1139    ac_prev=htmldir ;;
1140  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1141  | --ht=*)
1142    htmldir=$ac_optarg ;;
1143
1144  -includedir | --includedir | --includedi | --included | --include \
1145  | --includ | --inclu | --incl | --inc)
1146    ac_prev=includedir ;;
1147  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1148  | --includ=* | --inclu=* | --incl=* | --inc=*)
1149    includedir=$ac_optarg ;;
1150
1151  -infodir | --infodir | --infodi | --infod | --info | --inf)
1152    ac_prev=infodir ;;
1153  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1154    infodir=$ac_optarg ;;
1155
1156  -libdir | --libdir | --libdi | --libd)
1157    ac_prev=libdir ;;
1158  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1159    libdir=$ac_optarg ;;
1160
1161  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1162  | --libexe | --libex | --libe)
1163    ac_prev=libexecdir ;;
1164  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1165  | --libexe=* | --libex=* | --libe=*)
1166    libexecdir=$ac_optarg ;;
1167
1168  -localedir | --localedir | --localedi | --localed | --locale)
1169    ac_prev=localedir ;;
1170  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1171    localedir=$ac_optarg ;;
1172
1173  -localstatedir | --localstatedir | --localstatedi | --localstated \
1174  | --localstate | --localstat | --localsta | --localst | --locals)
1175    ac_prev=localstatedir ;;
1176  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1177  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1178    localstatedir=$ac_optarg ;;
1179
1180  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1181    ac_prev=mandir ;;
1182  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1183    mandir=$ac_optarg ;;
1184
1185  -nfp | --nfp | --nf)
1186    # Obsolete; use --without-fp.
1187    with_fp=no ;;
1188
1189  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1190  | --no-cr | --no-c | -n)
1191    no_create=yes ;;
1192
1193  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1194  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1195    no_recursion=yes ;;
1196
1197  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1198  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1199  | --oldin | --oldi | --old | --ol | --o)
1200    ac_prev=oldincludedir ;;
1201  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1202  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1203  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1204    oldincludedir=$ac_optarg ;;
1205
1206  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1207    ac_prev=prefix ;;
1208  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1209    prefix=$ac_optarg ;;
1210
1211  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1212  | --program-pre | --program-pr | --program-p)
1213    ac_prev=program_prefix ;;
1214  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1215  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1216    program_prefix=$ac_optarg ;;
1217
1218  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1219  | --program-suf | --program-su | --program-s)
1220    ac_prev=program_suffix ;;
1221  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1222  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1223    program_suffix=$ac_optarg ;;
1224
1225  -program-transform-name | --program-transform-name \
1226  | --program-transform-nam | --program-transform-na \
1227  | --program-transform-n | --program-transform- \
1228  | --program-transform | --program-transfor \
1229  | --program-transfo | --program-transf \
1230  | --program-trans | --program-tran \
1231  | --progr-tra | --program-tr | --program-t)
1232    ac_prev=program_transform_name ;;
1233  -program-transform-name=* | --program-transform-name=* \
1234  | --program-transform-nam=* | --program-transform-na=* \
1235  | --program-transform-n=* | --program-transform-=* \
1236  | --program-transform=* | --program-transfor=* \
1237  | --program-transfo=* | --program-transf=* \
1238  | --program-trans=* | --program-tran=* \
1239  | --progr-tra=* | --program-tr=* | --program-t=*)
1240    program_transform_name=$ac_optarg ;;
1241
1242  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1243    ac_prev=pdfdir ;;
1244  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1245    pdfdir=$ac_optarg ;;
1246
1247  -psdir | --psdir | --psdi | --psd | --ps)
1248    ac_prev=psdir ;;
1249  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1250    psdir=$ac_optarg ;;
1251
1252  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1253  | -silent | --silent | --silen | --sile | --sil)
1254    silent=yes ;;
1255
1256  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1257    ac_prev=sbindir ;;
1258  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1259  | --sbi=* | --sb=*)
1260    sbindir=$ac_optarg ;;
1261
1262  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1263  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1264  | --sharedst | --shareds | --shared | --share | --shar \
1265  | --sha | --sh)
1266    ac_prev=sharedstatedir ;;
1267  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1268  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1269  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1270  | --sha=* | --sh=*)
1271    sharedstatedir=$ac_optarg ;;
1272
1273  -site | --site | --sit)
1274    ac_prev=site ;;
1275  -site=* | --site=* | --sit=*)
1276    site=$ac_optarg ;;
1277
1278  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1279    ac_prev=srcdir ;;
1280  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1281    srcdir=$ac_optarg ;;
1282
1283  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1284  | --syscon | --sysco | --sysc | --sys | --sy)
1285    ac_prev=sysconfdir ;;
1286  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1287  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1288    sysconfdir=$ac_optarg ;;
1289
1290  -target | --target | --targe | --targ | --tar | --ta | --t)
1291    ac_prev=target_alias ;;
1292  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1293    target_alias=$ac_optarg ;;
1294
1295  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1296    verbose=yes ;;
1297
1298  -version | --version | --versio | --versi | --vers | -V)
1299    ac_init_version=: ;;
1300
1301  -with-* | --with-*)
1302    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1303    # Reject names that are not valid shell variable names.
1304    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305      as_fn_error $? "invalid package name: $ac_useropt"
1306    ac_useropt_orig=$ac_useropt
1307    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308    case $ac_user_opts in
1309      *"
1310"with_$ac_useropt"
1311"*) ;;
1312      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1313	 ac_unrecognized_sep=', ';;
1314    esac
1315    eval with_$ac_useropt=\$ac_optarg ;;
1316
1317  -without-* | --without-*)
1318    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1319    # Reject names that are not valid shell variable names.
1320    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321      as_fn_error $? "invalid package name: $ac_useropt"
1322    ac_useropt_orig=$ac_useropt
1323    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324    case $ac_user_opts in
1325      *"
1326"with_$ac_useropt"
1327"*) ;;
1328      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1329	 ac_unrecognized_sep=', ';;
1330    esac
1331    eval with_$ac_useropt=no ;;
1332
1333  --x)
1334    # Obsolete; use --with-x.
1335    with_x=yes ;;
1336
1337  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1338  | --x-incl | --x-inc | --x-in | --x-i)
1339    ac_prev=x_includes ;;
1340  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1341  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1342    x_includes=$ac_optarg ;;
1343
1344  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1345  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1346    ac_prev=x_libraries ;;
1347  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1348  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1349    x_libraries=$ac_optarg ;;
1350
1351  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1352Try \`$0 --help' for more information"
1353    ;;
1354
1355  *=*)
1356    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1357    # Reject names that are not valid shell variable names.
1358    case $ac_envvar in #(
1359      '' | [0-9]* | *[!_$as_cr_alnum]* )
1360      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1361    esac
1362    eval $ac_envvar=\$ac_optarg
1363    export $ac_envvar ;;
1364
1365  *)
1366    # FIXME: should be removed in autoconf 3.0.
1367    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1368    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1369      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1370    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1371    ;;
1372
1373  esac
1374done
1375
1376if test -n "$ac_prev"; then
1377  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1378  as_fn_error $? "missing argument to $ac_option"
1379fi
1380
1381if test -n "$ac_unrecognized_opts"; then
1382  case $enable_option_checking in
1383    no) ;;
1384    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1385    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1386  esac
1387fi
1388
1389# Check all directory arguments for consistency.
1390for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1391		datadir sysconfdir sharedstatedir localstatedir includedir \
1392		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1393		libdir localedir mandir
1394do
1395  eval ac_val=\$$ac_var
1396  # Remove trailing slashes.
1397  case $ac_val in
1398    */ )
1399      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1400      eval $ac_var=\$ac_val;;
1401  esac
1402  # Be sure to have absolute directory names.
1403  case $ac_val in
1404    [\\/$]* | ?:[\\/]* )  continue;;
1405    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1406  esac
1407  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1408done
1409
1410# There might be people who depend on the old broken behavior: `$host'
1411# used to hold the argument of --host etc.
1412# FIXME: To remove some day.
1413build=$build_alias
1414host=$host_alias
1415target=$target_alias
1416
1417# FIXME: To remove some day.
1418if test "x$host_alias" != x; then
1419  if test "x$build_alias" = x; then
1420    cross_compiling=maybe
1421    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1422    If a cross compiler is detected then cross compile mode will be used" >&2
1423  elif test "x$build_alias" != "x$host_alias"; then
1424    cross_compiling=yes
1425  fi
1426fi
1427
1428ac_tool_prefix=
1429test -n "$host_alias" && ac_tool_prefix=$host_alias-
1430
1431test "$silent" = yes && exec 6>/dev/null
1432
1433
1434ac_pwd=`pwd` && test -n "$ac_pwd" &&
1435ac_ls_di=`ls -di .` &&
1436ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1437  as_fn_error $? "working directory cannot be determined"
1438test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1439  as_fn_error $? "pwd does not report name of working directory"
1440
1441
1442# Find the source files, if location was not specified.
1443if test -z "$srcdir"; then
1444  ac_srcdir_defaulted=yes
1445  # Try the directory containing this script, then the parent directory.
1446  ac_confdir=`$as_dirname -- "$as_myself" ||
1447$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1448	 X"$as_myself" : 'X\(//\)[^/]' \| \
1449	 X"$as_myself" : 'X\(//\)$' \| \
1450	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1451$as_echo X"$as_myself" |
1452    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1453	    s//\1/
1454	    q
1455	  }
1456	  /^X\(\/\/\)[^/].*/{
1457	    s//\1/
1458	    q
1459	  }
1460	  /^X\(\/\/\)$/{
1461	    s//\1/
1462	    q
1463	  }
1464	  /^X\(\/\).*/{
1465	    s//\1/
1466	    q
1467	  }
1468	  s/.*/./; q'`
1469  srcdir=$ac_confdir
1470  if test ! -r "$srcdir/$ac_unique_file"; then
1471    srcdir=..
1472  fi
1473else
1474  ac_srcdir_defaulted=no
1475fi
1476if test ! -r "$srcdir/$ac_unique_file"; then
1477  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1478  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1479fi
1480ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1481ac_abs_confdir=`(
1482	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1483	pwd)`
1484# When building in place, set srcdir=.
1485if test "$ac_abs_confdir" = "$ac_pwd"; then
1486  srcdir=.
1487fi
1488# Remove unnecessary trailing slashes from srcdir.
1489# Double slashes in file names in object file debugging info
1490# mess up M-x gdb in Emacs.
1491case $srcdir in
1492*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1493esac
1494for ac_var in $ac_precious_vars; do
1495  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1496  eval ac_env_${ac_var}_value=\$${ac_var}
1497  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1498  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1499done
1500
1501#
1502# Report the --help message.
1503#
1504if test "$ac_init_help" = "long"; then
1505  # Omit some internal or obsolete options to make the list less imposing.
1506  # This message is too long to be a string in the A/UX 3.1 sh.
1507  cat <<_ACEOF
1508\`configure' configures hunspell 1.3.3 to adapt to many kinds of systems.
1509
1510Usage: $0 [OPTION]... [VAR=VALUE]...
1511
1512To assign environment variables (e.g., CC, CFLAGS...), specify them as
1513VAR=VALUE.  See below for descriptions of some of the useful variables.
1514
1515Defaults for the options are specified in brackets.
1516
1517Configuration:
1518  -h, --help              display this help and exit
1519      --help=short        display options specific to this package
1520      --help=recursive    display the short help of all the included packages
1521  -V, --version           display version information and exit
1522  -q, --quiet, --silent   do not print \`checking ...' messages
1523      --cache-file=FILE   cache test results in FILE [disabled]
1524  -C, --config-cache      alias for \`--cache-file=config.cache'
1525  -n, --no-create         do not create output files
1526      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1527
1528Installation directories:
1529  --prefix=PREFIX         install architecture-independent files in PREFIX
1530                          [$ac_default_prefix]
1531  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1532                          [PREFIX]
1533
1534By default, \`make install' will install all the files in
1535\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1536an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1537for instance \`--prefix=\$HOME'.
1538
1539For better control, use the options below.
1540
1541Fine tuning of the installation directories:
1542  --bindir=DIR            user executables [EPREFIX/bin]
1543  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1544  --libexecdir=DIR        program executables [EPREFIX/libexec]
1545  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1546  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1547  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1548  --libdir=DIR            object code libraries [EPREFIX/lib]
1549  --includedir=DIR        C header files [PREFIX/include]
1550  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1551  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1552  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1553  --infodir=DIR           info documentation [DATAROOTDIR/info]
1554  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1555  --mandir=DIR            man documentation [DATAROOTDIR/man]
1556  --docdir=DIR            documentation root [DATAROOTDIR/doc/hunspell]
1557  --htmldir=DIR           html documentation [DOCDIR]
1558  --dvidir=DIR            dvi documentation [DOCDIR]
1559  --pdfdir=DIR            pdf documentation [DOCDIR]
1560  --psdir=DIR             ps documentation [DOCDIR]
1561_ACEOF
1562
1563  cat <<\_ACEOF
1564
1565Program names:
1566  --program-prefix=PREFIX            prepend PREFIX to installed program names
1567  --program-suffix=SUFFIX            append SUFFIX to installed program names
1568  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1569
1570System types:
1571  --build=BUILD     configure for building on BUILD [guessed]
1572  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1573  --target=TARGET   configure for building compilers for TARGET [HOST]
1574_ACEOF
1575fi
1576
1577if test -n "$ac_init_help"; then
1578  case $ac_init_help in
1579     short | recursive ) echo "Configuration of hunspell 1.3.3:";;
1580   esac
1581  cat <<\_ACEOF
1582
1583Optional Features:
1584  --disable-option-checking  ignore unrecognized --enable/--with options
1585  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1586  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1587  --disable-dependency-tracking  speeds up one-time build
1588  --enable-dependency-tracking   do not reject slow dependency extractors
1589  --enable-shared[=PKGS]  build shared libraries [default=yes]
1590  --enable-static[=PKGS]  build static libraries [default=yes]
1591  --enable-fast-install[=PKGS]
1592                          optimize for fast installation [default=yes]
1593  --disable-libtool-lock  avoid locking (might break parallel builds)
1594  --disable-nls           do not use Native Language Support
1595  --enable-threads={posix|solaris|pth|win32}
1596                          specify multithreading API
1597  --disable-threads       build without multithread safety
1598  --disable-rpath         do not hardcode runtime library paths
1599
1600Optional Packages:
1601  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1602  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1603  --with-pic              try to use only PIC/non-PIC objects [default=use
1604                          both]
1605  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1606  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1607  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1608  --without-libpth-prefix     don't search for libpth in includedir and libdir
1609  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1610  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1611  --with-included-gettext use the GNU gettext library included here
1612  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1613  --without-libintl-prefix     don't search for libintl in includedir and libdir
1614  --with-warnings         compile with warning messages
1615  --with-experimental     compile with some extra functions
1616  --with-ui               support Curses user interface
1617  --with-readline         support fancy command input editing
1618
1619Some influential environment variables:
1620  CXX         C++ compiler command
1621  CXXFLAGS    C++ compiler flags
1622  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1623              nonstandard directory <lib dir>
1624  LIBS        libraries to pass to the linker, e.g. -l<library>
1625  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1626              you have headers in a nonstandard directory <include dir>
1627  CC          C compiler command
1628  CFLAGS      C compiler flags
1629  CPP         C preprocessor
1630  CXXCPP      C++ preprocessor
1631
1632Use these variables to override the choices made by `configure' or to help
1633it to find libraries and programs with nonstandard names/locations.
1634
1635Report bugs to <nemeth@numbertext.org>.
1636_ACEOF
1637ac_status=$?
1638fi
1639
1640if test "$ac_init_help" = "recursive"; then
1641  # If there are subdirs, report their specific --help.
1642  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643    test -d "$ac_dir" ||
1644      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645      continue
1646    ac_builddir=.
1647
1648case "$ac_dir" in
1649.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650*)
1651  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652  # A ".." for each directory in $ac_dir_suffix.
1653  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654  case $ac_top_builddir_sub in
1655  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657  esac ;;
1658esac
1659ac_abs_top_builddir=$ac_pwd
1660ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661# for backward compatibility:
1662ac_top_builddir=$ac_top_build_prefix
1663
1664case $srcdir in
1665  .)  # We are building in place.
1666    ac_srcdir=.
1667    ac_top_srcdir=$ac_top_builddir_sub
1668    ac_abs_top_srcdir=$ac_pwd ;;
1669  [\\/]* | ?:[\\/]* )  # Absolute name.
1670    ac_srcdir=$srcdir$ac_dir_suffix;
1671    ac_top_srcdir=$srcdir
1672    ac_abs_top_srcdir=$srcdir ;;
1673  *) # Relative name.
1674    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675    ac_top_srcdir=$ac_top_build_prefix$srcdir
1676    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677esac
1678ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679
1680    cd "$ac_dir" || { ac_status=$?; continue; }
1681    # Check for guested configure.
1682    if test -f "$ac_srcdir/configure.gnu"; then
1683      echo &&
1684      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685    elif test -f "$ac_srcdir/configure"; then
1686      echo &&
1687      $SHELL "$ac_srcdir/configure" --help=recursive
1688    else
1689      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690    fi || ac_status=$?
1691    cd "$ac_pwd" || { ac_status=$?; break; }
1692  done
1693fi
1694
1695test -n "$ac_init_help" && exit $ac_status
1696if $ac_init_version; then
1697  cat <<\_ACEOF
1698hunspell configure 1.3.3
1699generated by GNU Autoconf 2.68
1700
1701Copyright (C) 2010 Free Software Foundation, Inc.
1702This configure script is free software; the Free Software Foundation
1703gives unlimited permission to copy, distribute and modify it.
1704_ACEOF
1705  exit
1706fi
1707
1708## ------------------------ ##
1709## Autoconf initialization. ##
1710## ------------------------ ##
1711
1712# ac_fn_cxx_try_compile LINENO
1713# ----------------------------
1714# Try to compile conftest.$ac_ext, and return whether this succeeded.
1715ac_fn_cxx_try_compile ()
1716{
1717  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718  rm -f conftest.$ac_objext
1719  if { { ac_try="$ac_compile"
1720case "(($ac_try" in
1721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722  *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726  (eval "$ac_compile") 2>conftest.err
1727  ac_status=$?
1728  if test -s conftest.err; then
1729    grep -v '^ *+' conftest.err >conftest.er1
1730    cat conftest.er1 >&5
1731    mv -f conftest.er1 conftest.err
1732  fi
1733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734  test $ac_status = 0; } && {
1735	 test -z "$ac_cxx_werror_flag" ||
1736	 test ! -s conftest.err
1737       } && test -s conftest.$ac_objext; then :
1738  ac_retval=0
1739else
1740  $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743	ac_retval=1
1744fi
1745  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746  as_fn_set_status $ac_retval
1747
1748} # ac_fn_cxx_try_compile
1749
1750# ac_fn_c_try_compile LINENO
1751# --------------------------
1752# Try to compile conftest.$ac_ext, and return whether this succeeded.
1753ac_fn_c_try_compile ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  rm -f conftest.$ac_objext
1757  if { { ac_try="$ac_compile"
1758case "(($ac_try" in
1759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760  *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764  (eval "$ac_compile") 2>conftest.err
1765  ac_status=$?
1766  if test -s conftest.err; then
1767    grep -v '^ *+' conftest.err >conftest.er1
1768    cat conftest.er1 >&5
1769    mv -f conftest.er1 conftest.err
1770  fi
1771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772  test $ac_status = 0; } && {
1773	 test -z "$ac_c_werror_flag" ||
1774	 test ! -s conftest.err
1775       } && test -s conftest.$ac_objext; then :
1776  ac_retval=0
1777else
1778  $as_echo "$as_me: failed program was:" >&5
1779sed 's/^/| /' conftest.$ac_ext >&5
1780
1781	ac_retval=1
1782fi
1783  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784  as_fn_set_status $ac_retval
1785
1786} # ac_fn_c_try_compile
1787
1788# ac_fn_c_try_link LINENO
1789# -----------------------
1790# Try to link conftest.$ac_ext, and return whether this succeeded.
1791ac_fn_c_try_link ()
1792{
1793  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794  rm -f conftest.$ac_objext conftest$ac_exeext
1795  if { { ac_try="$ac_link"
1796case "(($ac_try" in
1797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798  *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802  (eval "$ac_link") 2>conftest.err
1803  ac_status=$?
1804  if test -s conftest.err; then
1805    grep -v '^ *+' conftest.err >conftest.er1
1806    cat conftest.er1 >&5
1807    mv -f conftest.er1 conftest.err
1808  fi
1809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810  test $ac_status = 0; } && {
1811	 test -z "$ac_c_werror_flag" ||
1812	 test ! -s conftest.err
1813       } && test -s conftest$ac_exeext && {
1814	 test "$cross_compiling" = yes ||
1815	 $as_test_x conftest$ac_exeext
1816       }; then :
1817  ac_retval=0
1818else
1819  $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822	ac_retval=1
1823fi
1824  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826  # interfere with the next link command; also delete a directory that is
1827  # left behind by Apple's compiler.  We do this before executing the actions.
1828  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830  as_fn_set_status $ac_retval
1831
1832} # ac_fn_c_try_link
1833
1834# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1835# -------------------------------------------------------
1836# Tests whether HEADER exists and can be compiled using the include files in
1837# INCLUDES, setting the cache variable VAR accordingly.
1838ac_fn_c_check_header_compile ()
1839{
1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
1843if eval \${$3+:} false; then :
1844  $as_echo_n "(cached) " >&6
1845else
1846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h.  */
1848$4
1849#include <$2>
1850_ACEOF
1851if ac_fn_c_try_compile "$LINENO"; then :
1852  eval "$3=yes"
1853else
1854  eval "$3=no"
1855fi
1856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857fi
1858eval ac_res=\$$3
1859	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860$as_echo "$ac_res" >&6; }
1861  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862
1863} # ac_fn_c_check_header_compile
1864
1865# ac_fn_c_try_cpp LINENO
1866# ----------------------
1867# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1868ac_fn_c_try_cpp ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  if { { ac_try="$ac_cpp conftest.$ac_ext"
1872case "(($ac_try" in
1873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874  *) ac_try_echo=$ac_try;;
1875esac
1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877$as_echo "$ac_try_echo"; } >&5
1878  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1879  ac_status=$?
1880  if test -s conftest.err; then
1881    grep -v '^ *+' conftest.err >conftest.er1
1882    cat conftest.er1 >&5
1883    mv -f conftest.er1 conftest.err
1884  fi
1885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886  test $ac_status = 0; } > conftest.i && {
1887	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1888	 test ! -s conftest.err
1889       }; then :
1890  ac_retval=0
1891else
1892  $as_echo "$as_me: failed program was:" >&5
1893sed 's/^/| /' conftest.$ac_ext >&5
1894
1895    ac_retval=1
1896fi
1897  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898  as_fn_set_status $ac_retval
1899
1900} # ac_fn_c_try_cpp
1901
1902# ac_fn_c_try_run LINENO
1903# ----------------------
1904# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1905# that executables *can* be run.
1906ac_fn_c_try_run ()
1907{
1908  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909  if { { ac_try="$ac_link"
1910case "(($ac_try" in
1911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912  *) ac_try_echo=$ac_try;;
1913esac
1914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915$as_echo "$ac_try_echo"; } >&5
1916  (eval "$ac_link") 2>&5
1917  ac_status=$?
1918  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1920  { { case "(($ac_try" in
1921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922  *) ac_try_echo=$ac_try;;
1923esac
1924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925$as_echo "$ac_try_echo"; } >&5
1926  (eval "$ac_try") 2>&5
1927  ac_status=$?
1928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929  test $ac_status = 0; }; }; then :
1930  ac_retval=0
1931else
1932  $as_echo "$as_me: program exited with status $ac_status" >&5
1933       $as_echo "$as_me: failed program was:" >&5
1934sed 's/^/| /' conftest.$ac_ext >&5
1935
1936       ac_retval=$ac_status
1937fi
1938  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1939  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940  as_fn_set_status $ac_retval
1941
1942} # ac_fn_c_try_run
1943
1944# ac_fn_c_check_func LINENO FUNC VAR
1945# ----------------------------------
1946# Tests whether FUNC exists, setting the cache variable VAR accordingly
1947ac_fn_c_check_func ()
1948{
1949  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951$as_echo_n "checking for $2... " >&6; }
1952if eval \${$3+:} false; then :
1953  $as_echo_n "(cached) " >&6
1954else
1955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956/* end confdefs.h.  */
1957/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1958   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1959#define $2 innocuous_$2
1960
1961/* System header to define __stub macros and hopefully few prototypes,
1962    which can conflict with char $2 (); below.
1963    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1964    <limits.h> exists even on freestanding compilers.  */
1965
1966#ifdef __STDC__
1967# include <limits.h>
1968#else
1969# include <assert.h>
1970#endif
1971
1972#undef $2
1973
1974/* Override any GCC internal prototype to avoid an error.
1975   Use char because int might match the return type of a GCC
1976   builtin and then its argument prototype would still apply.  */
1977#ifdef __cplusplus
1978extern "C"
1979#endif
1980char $2 ();
1981/* The GNU C library defines this for functions which it implements
1982    to always fail with ENOSYS.  Some functions are actually named
1983    something starting with __ and the normal name is an alias.  */
1984#if defined __stub_$2 || defined __stub___$2
1985choke me
1986#endif
1987
1988int
1989main ()
1990{
1991return $2 ();
1992  ;
1993  return 0;
1994}
1995_ACEOF
1996if ac_fn_c_try_link "$LINENO"; then :
1997  eval "$3=yes"
1998else
1999  eval "$3=no"
2000fi
2001rm -f core conftest.err conftest.$ac_objext \
2002    conftest$ac_exeext conftest.$ac_ext
2003fi
2004eval ac_res=\$$3
2005	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006$as_echo "$ac_res" >&6; }
2007  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008
2009} # ac_fn_c_check_func
2010
2011# ac_fn_cxx_try_cpp LINENO
2012# ------------------------
2013# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2014ac_fn_cxx_try_cpp ()
2015{
2016  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017  if { { ac_try="$ac_cpp conftest.$ac_ext"
2018case "(($ac_try" in
2019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020  *) ac_try_echo=$ac_try;;
2021esac
2022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023$as_echo "$ac_try_echo"; } >&5
2024  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2025  ac_status=$?
2026  if test -s conftest.err; then
2027    grep -v '^ *+' conftest.err >conftest.er1
2028    cat conftest.er1 >&5
2029    mv -f conftest.er1 conftest.err
2030  fi
2031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032  test $ac_status = 0; } > conftest.i && {
2033	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2034	 test ! -s conftest.err
2035       }; then :
2036  ac_retval=0
2037else
2038  $as_echo "$as_me: failed program was:" >&5
2039sed 's/^/| /' conftest.$ac_ext >&5
2040
2041    ac_retval=1
2042fi
2043  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044  as_fn_set_status $ac_retval
2045
2046} # ac_fn_cxx_try_cpp
2047
2048# ac_fn_cxx_try_link LINENO
2049# -------------------------
2050# Try to link conftest.$ac_ext, and return whether this succeeded.
2051ac_fn_cxx_try_link ()
2052{
2053  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054  rm -f conftest.$ac_objext conftest$ac_exeext
2055  if { { ac_try="$ac_link"
2056case "(($ac_try" in
2057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058  *) ac_try_echo=$ac_try;;
2059esac
2060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061$as_echo "$ac_try_echo"; } >&5
2062  (eval "$ac_link") 2>conftest.err
2063  ac_status=$?
2064  if test -s conftest.err; then
2065    grep -v '^ *+' conftest.err >conftest.er1
2066    cat conftest.er1 >&5
2067    mv -f conftest.er1 conftest.err
2068  fi
2069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070  test $ac_status = 0; } && {
2071	 test -z "$ac_cxx_werror_flag" ||
2072	 test ! -s conftest.err
2073       } && test -s conftest$ac_exeext && {
2074	 test "$cross_compiling" = yes ||
2075	 $as_test_x conftest$ac_exeext
2076       }; then :
2077  ac_retval=0
2078else
2079  $as_echo "$as_me: failed program was:" >&5
2080sed 's/^/| /' conftest.$ac_ext >&5
2081
2082	ac_retval=1
2083fi
2084  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2085  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2086  # interfere with the next link command; also delete a directory that is
2087  # left behind by Apple's compiler.  We do this before executing the actions.
2088  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2089  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090  as_fn_set_status $ac_retval
2091
2092} # ac_fn_cxx_try_link
2093
2094# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2095# -------------------------------------------------------
2096# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2097# the include files in INCLUDES and setting the cache variable VAR
2098# accordingly.
2099ac_fn_c_check_header_mongrel ()
2100{
2101  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102  if eval \${$3+:} false; then :
2103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104$as_echo_n "checking for $2... " >&6; }
2105if eval \${$3+:} false; then :
2106  $as_echo_n "(cached) " >&6
2107fi
2108eval ac_res=\$$3
2109	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110$as_echo "$ac_res" >&6; }
2111else
2112  # Is the header compilable?
2113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2114$as_echo_n "checking $2 usability... " >&6; }
2115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116/* end confdefs.h.  */
2117$4
2118#include <$2>
2119_ACEOF
2120if ac_fn_c_try_compile "$LINENO"; then :
2121  ac_header_compiler=yes
2122else
2123  ac_header_compiler=no
2124fi
2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2127$as_echo "$ac_header_compiler" >&6; }
2128
2129# Is the header present?
2130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2131$as_echo_n "checking $2 presence... " >&6; }
2132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h.  */
2134#include <$2>
2135_ACEOF
2136if ac_fn_c_try_cpp "$LINENO"; then :
2137  ac_header_preproc=yes
2138else
2139  ac_header_preproc=no
2140fi
2141rm -f conftest.err conftest.i conftest.$ac_ext
2142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2143$as_echo "$ac_header_preproc" >&6; }
2144
2145# So?  What about this header?
2146case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2147  yes:no: )
2148    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2149$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2150    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2151$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2152    ;;
2153  no:yes:* )
2154    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2155$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2156    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2157$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2158    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2159$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2160    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2161$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2162    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2163$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2164( $as_echo "## ------------------------------------ ##
2165## Report this to nemeth@numbertext.org ##
2166## ------------------------------------ ##"
2167     ) | sed "s/^/$as_me: WARNING:     /" >&2
2168    ;;
2169esac
2170  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2171$as_echo_n "checking for $2... " >&6; }
2172if eval \${$3+:} false; then :
2173  $as_echo_n "(cached) " >&6
2174else
2175  eval "$3=\$ac_header_compiler"
2176fi
2177eval ac_res=\$$3
2178	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179$as_echo "$ac_res" >&6; }
2180fi
2181  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182
2183} # ac_fn_c_check_header_mongrel
2184
2185# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2186# -------------------------------------------
2187# Tests whether TYPE exists after having included INCLUDES, setting cache
2188# variable VAR accordingly.
2189ac_fn_c_check_type ()
2190{
2191  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2193$as_echo_n "checking for $2... " >&6; }
2194if eval \${$3+:} false; then :
2195  $as_echo_n "(cached) " >&6
2196else
2197  eval "$3=no"
2198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h.  */
2200$4
2201int
2202main ()
2203{
2204if (sizeof ($2))
2205	 return 0;
2206  ;
2207  return 0;
2208}
2209_ACEOF
2210if ac_fn_c_try_compile "$LINENO"; then :
2211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212/* end confdefs.h.  */
2213$4
2214int
2215main ()
2216{
2217if (sizeof (($2)))
2218	    return 0;
2219  ;
2220  return 0;
2221}
2222_ACEOF
2223if ac_fn_c_try_compile "$LINENO"; then :
2224
2225else
2226  eval "$3=yes"
2227fi
2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229fi
2230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231fi
2232eval ac_res=\$$3
2233	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234$as_echo "$ac_res" >&6; }
2235  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236
2237} # ac_fn_c_check_type
2238
2239# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2240# --------------------------------------------
2241# Tries to find the compile-time value of EXPR in a program that includes
2242# INCLUDES, setting VAR accordingly. Returns whether the value could be
2243# computed
2244ac_fn_c_compute_int ()
2245{
2246  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247  if test "$cross_compiling" = yes; then
2248    # Depending upon the size, compute the lo and hi bounds.
2249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250/* end confdefs.h.  */
2251$4
2252int
2253main ()
2254{
2255static int test_array [1 - 2 * !(($2) >= 0)];
2256test_array [0] = 0
2257
2258  ;
2259  return 0;
2260}
2261_ACEOF
2262if ac_fn_c_try_compile "$LINENO"; then :
2263  ac_lo=0 ac_mid=0
2264  while :; do
2265    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h.  */
2267$4
2268int
2269main ()
2270{
2271static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2272test_array [0] = 0
2273
2274  ;
2275  return 0;
2276}
2277_ACEOF
2278if ac_fn_c_try_compile "$LINENO"; then :
2279  ac_hi=$ac_mid; break
2280else
2281  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2282			if test $ac_lo -le $ac_mid; then
2283			  ac_lo= ac_hi=
2284			  break
2285			fi
2286			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2287fi
2288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289  done
2290else
2291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292/* end confdefs.h.  */
2293$4
2294int
2295main ()
2296{
2297static int test_array [1 - 2 * !(($2) < 0)];
2298test_array [0] = 0
2299
2300  ;
2301  return 0;
2302}
2303_ACEOF
2304if ac_fn_c_try_compile "$LINENO"; then :
2305  ac_hi=-1 ac_mid=-1
2306  while :; do
2307    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308/* end confdefs.h.  */
2309$4
2310int
2311main ()
2312{
2313static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2314test_array [0] = 0
2315
2316  ;
2317  return 0;
2318}
2319_ACEOF
2320if ac_fn_c_try_compile "$LINENO"; then :
2321  ac_lo=$ac_mid; break
2322else
2323  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2324			if test $ac_mid -le $ac_hi; then
2325			  ac_lo= ac_hi=
2326			  break
2327			fi
2328			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2329fi
2330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331  done
2332else
2333  ac_lo= ac_hi=
2334fi
2335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336fi
2337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338# Binary search between lo and hi bounds.
2339while test "x$ac_lo" != "x$ac_hi"; do
2340  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342/* end confdefs.h.  */
2343$4
2344int
2345main ()
2346{
2347static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2348test_array [0] = 0
2349
2350  ;
2351  return 0;
2352}
2353_ACEOF
2354if ac_fn_c_try_compile "$LINENO"; then :
2355  ac_hi=$ac_mid
2356else
2357  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2358fi
2359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360done
2361case $ac_lo in #((
2362?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2363'') ac_retval=1 ;;
2364esac
2365  else
2366    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367/* end confdefs.h.  */
2368$4
2369static long int longval () { return $2; }
2370static unsigned long int ulongval () { return $2; }
2371#include <stdio.h>
2372#include <stdlib.h>
2373int
2374main ()
2375{
2376
2377  FILE *f = fopen ("conftest.val", "w");
2378  if (! f)
2379    return 1;
2380  if (($2) < 0)
2381    {
2382      long int i = longval ();
2383      if (i != ($2))
2384	return 1;
2385      fprintf (f, "%ld", i);
2386    }
2387  else
2388    {
2389      unsigned long int i = ulongval ();
2390      if (i != ($2))
2391	return 1;
2392      fprintf (f, "%lu", i);
2393    }
2394  /* Do not output a trailing newline, as this causes \r\n confusion
2395     on some platforms.  */
2396  return ferror (f) || fclose (f) != 0;
2397
2398  ;
2399  return 0;
2400}
2401_ACEOF
2402if ac_fn_c_try_run "$LINENO"; then :
2403  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2404else
2405  ac_retval=1
2406fi
2407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2408  conftest.$ac_objext conftest.beam conftest.$ac_ext
2409rm -f conftest.val
2410
2411  fi
2412  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2413  as_fn_set_status $ac_retval
2414
2415} # ac_fn_c_compute_int
2416cat >config.log <<_ACEOF
2417This file contains any messages produced by compilers while
2418running configure, to aid debugging if configure makes a mistake.
2419
2420It was created by hunspell $as_me 1.3.3, which was
2421generated by GNU Autoconf 2.68.  Invocation command line was
2422
2423  $ $0 $@
2424
2425_ACEOF
2426exec 5>>config.log
2427{
2428cat <<_ASUNAME
2429## --------- ##
2430## Platform. ##
2431## --------- ##
2432
2433hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2434uname -m = `(uname -m) 2>/dev/null || echo unknown`
2435uname -r = `(uname -r) 2>/dev/null || echo unknown`
2436uname -s = `(uname -s) 2>/dev/null || echo unknown`
2437uname -v = `(uname -v) 2>/dev/null || echo unknown`
2438
2439/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2440/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2441
2442/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2443/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2444/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2445/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2446/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2447/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2448/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2449
2450_ASUNAME
2451
2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453for as_dir in $PATH
2454do
2455  IFS=$as_save_IFS
2456  test -z "$as_dir" && as_dir=.
2457    $as_echo "PATH: $as_dir"
2458  done
2459IFS=$as_save_IFS
2460
2461} >&5
2462
2463cat >&5 <<_ACEOF
2464
2465
2466## ----------- ##
2467## Core tests. ##
2468## ----------- ##
2469
2470_ACEOF
2471
2472
2473# Keep a trace of the command line.
2474# Strip out --no-create and --no-recursion so they do not pile up.
2475# Strip out --silent because we don't want to record it for future runs.
2476# Also quote any args containing shell meta-characters.
2477# Make two passes to allow for proper duplicate-argument suppression.
2478ac_configure_args=
2479ac_configure_args0=
2480ac_configure_args1=
2481ac_must_keep_next=false
2482for ac_pass in 1 2
2483do
2484  for ac_arg
2485  do
2486    case $ac_arg in
2487    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2488    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2489    | -silent | --silent | --silen | --sile | --sil)
2490      continue ;;
2491    *\'*)
2492      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2493    esac
2494    case $ac_pass in
2495    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2496    2)
2497      as_fn_append ac_configure_args1 " '$ac_arg'"
2498      if test $ac_must_keep_next = true; then
2499	ac_must_keep_next=false # Got value, back to normal.
2500      else
2501	case $ac_arg in
2502	  *=* | --config-cache | -C | -disable-* | --disable-* \
2503	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2504	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2505	  | -with-* | --with-* | -without-* | --without-* | --x)
2506	    case "$ac_configure_args0 " in
2507	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2508	    esac
2509	    ;;
2510	  -* ) ac_must_keep_next=true ;;
2511	esac
2512      fi
2513      as_fn_append ac_configure_args " '$ac_arg'"
2514      ;;
2515    esac
2516  done
2517done
2518{ ac_configure_args0=; unset ac_configure_args0;}
2519{ ac_configure_args1=; unset ac_configure_args1;}
2520
2521# When interrupted or exit'd, cleanup temporary files, and complete
2522# config.log.  We remove comments because anyway the quotes in there
2523# would cause problems or look ugly.
2524# WARNING: Use '\'' to represent an apostrophe within the trap.
2525# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2526trap 'exit_status=$?
2527  # Save into config.log some information that might help in debugging.
2528  {
2529    echo
2530
2531    $as_echo "## ---------------- ##
2532## Cache variables. ##
2533## ---------------- ##"
2534    echo
2535    # The following way of writing the cache mishandles newlines in values,
2536(
2537  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2538    eval ac_val=\$$ac_var
2539    case $ac_val in #(
2540    *${as_nl}*)
2541      case $ac_var in #(
2542      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2543$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2544      esac
2545      case $ac_var in #(
2546      _ | IFS | as_nl) ;; #(
2547      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2548      *) { eval $ac_var=; unset $ac_var;} ;;
2549      esac ;;
2550    esac
2551  done
2552  (set) 2>&1 |
2553    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2554    *${as_nl}ac_space=\ *)
2555      sed -n \
2556	"s/'\''/'\''\\\\'\'''\''/g;
2557	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2558      ;; #(
2559    *)
2560      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2561      ;;
2562    esac |
2563    sort
2564)
2565    echo
2566
2567    $as_echo "## ----------------- ##
2568## Output variables. ##
2569## ----------------- ##"
2570    echo
2571    for ac_var in $ac_subst_vars
2572    do
2573      eval ac_val=\$$ac_var
2574      case $ac_val in
2575      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2576      esac
2577      $as_echo "$ac_var='\''$ac_val'\''"
2578    done | sort
2579    echo
2580
2581    if test -n "$ac_subst_files"; then
2582      $as_echo "## ------------------- ##
2583## File substitutions. ##
2584## ------------------- ##"
2585      echo
2586      for ac_var in $ac_subst_files
2587      do
2588	eval ac_val=\$$ac_var
2589	case $ac_val in
2590	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2591	esac
2592	$as_echo "$ac_var='\''$ac_val'\''"
2593      done | sort
2594      echo
2595    fi
2596
2597    if test -s confdefs.h; then
2598      $as_echo "## ----------- ##
2599## confdefs.h. ##
2600## ----------- ##"
2601      echo
2602      cat confdefs.h
2603      echo
2604    fi
2605    test "$ac_signal" != 0 &&
2606      $as_echo "$as_me: caught signal $ac_signal"
2607    $as_echo "$as_me: exit $exit_status"
2608  } >&5
2609  rm -f core *.core core.conftest.* &&
2610    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2611    exit $exit_status
2612' 0
2613for ac_signal in 1 2 13 15; do
2614  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2615done
2616ac_signal=0
2617
2618# confdefs.h avoids OS command line length limits that DEFS can exceed.
2619rm -f -r conftest* confdefs.h
2620
2621$as_echo "/* confdefs.h */" > confdefs.h
2622
2623# Predefined preprocessor variables.
2624
2625cat >>confdefs.h <<_ACEOF
2626#define PACKAGE_NAME "$PACKAGE_NAME"
2627_ACEOF
2628
2629cat >>confdefs.h <<_ACEOF
2630#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2631_ACEOF
2632
2633cat >>confdefs.h <<_ACEOF
2634#define PACKAGE_VERSION "$PACKAGE_VERSION"
2635_ACEOF
2636
2637cat >>confdefs.h <<_ACEOF
2638#define PACKAGE_STRING "$PACKAGE_STRING"
2639_ACEOF
2640
2641cat >>confdefs.h <<_ACEOF
2642#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2643_ACEOF
2644
2645cat >>confdefs.h <<_ACEOF
2646#define PACKAGE_URL "$PACKAGE_URL"
2647_ACEOF
2648
2649
2650# Let the site file select an alternate cache file if it wants to.
2651# Prefer an explicitly selected file to automatically selected ones.
2652ac_site_file1=NONE
2653ac_site_file2=NONE
2654if test -n "$CONFIG_SITE"; then
2655  # We do not want a PATH search for config.site.
2656  case $CONFIG_SITE in #((
2657    -*)  ac_site_file1=./$CONFIG_SITE;;
2658    */*) ac_site_file1=$CONFIG_SITE;;
2659    *)   ac_site_file1=./$CONFIG_SITE;;
2660  esac
2661elif test "x$prefix" != xNONE; then
2662  ac_site_file1=$prefix/share/config.site
2663  ac_site_file2=$prefix/etc/config.site
2664else
2665  ac_site_file1=$ac_default_prefix/share/config.site
2666  ac_site_file2=$ac_default_prefix/etc/config.site
2667fi
2668for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2669do
2670  test "x$ac_site_file" = xNONE && continue
2671  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2672    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2673$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2674    sed 's/^/| /' "$ac_site_file" >&5
2675    . "$ac_site_file" \
2676      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678as_fn_error $? "failed to load site script $ac_site_file
2679See \`config.log' for more details" "$LINENO" 5; }
2680  fi
2681done
2682
2683if test -r "$cache_file"; then
2684  # Some versions of bash will fail to source /dev/null (special files
2685  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2686  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2687    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2688$as_echo "$as_me: loading cache $cache_file" >&6;}
2689    case $cache_file in
2690      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2691      *)                      . "./$cache_file";;
2692    esac
2693  fi
2694else
2695  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2696$as_echo "$as_me: creating cache $cache_file" >&6;}
2697  >$cache_file
2698fi
2699
2700gt_needs="$gt_needs "
2701as_fn_append ac_header_list " stdlib.h"
2702as_fn_append ac_header_list " unistd.h"
2703as_fn_append ac_header_list " sys/param.h"
2704# Check that the precious variables saved in the cache have kept the same
2705# value.
2706ac_cache_corrupted=false
2707for ac_var in $ac_precious_vars; do
2708  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2709  eval ac_new_set=\$ac_env_${ac_var}_set
2710  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2711  eval ac_new_val=\$ac_env_${ac_var}_value
2712  case $ac_old_set,$ac_new_set in
2713    set,)
2714      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2715$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2716      ac_cache_corrupted=: ;;
2717    ,set)
2718      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2719$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2720      ac_cache_corrupted=: ;;
2721    ,);;
2722    *)
2723      if test "x$ac_old_val" != "x$ac_new_val"; then
2724	# differences in whitespace do not lead to failure.
2725	ac_old_val_w=`echo x $ac_old_val`
2726	ac_new_val_w=`echo x $ac_new_val`
2727	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2728	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2729$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2730	  ac_cache_corrupted=:
2731	else
2732	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2733$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2734	  eval $ac_var=\$ac_old_val
2735	fi
2736	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2737$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2738	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2739$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2740      fi;;
2741  esac
2742  # Pass precious variables to config.status.
2743  if test "$ac_new_set" = set; then
2744    case $ac_new_val in
2745    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2746    *) ac_arg=$ac_var=$ac_new_val ;;
2747    esac
2748    case " $ac_configure_args " in
2749      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2750      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2751    esac
2752  fi
2753done
2754if $ac_cache_corrupted; then
2755  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2757  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2758$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2759  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2760fi
2761## -------------------- ##
2762## Main body of script. ##
2763## -------------------- ##
2764
2765ac_ext=c
2766ac_cpp='$CPP $CPPFLAGS'
2767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770
2771
2772
2773ac_aux_dir=
2774for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2775  if test -f "$ac_dir/install-sh"; then
2776    ac_aux_dir=$ac_dir
2777    ac_install_sh="$ac_aux_dir/install-sh -c"
2778    break
2779  elif test -f "$ac_dir/install.sh"; then
2780    ac_aux_dir=$ac_dir
2781    ac_install_sh="$ac_aux_dir/install.sh -c"
2782    break
2783  elif test -f "$ac_dir/shtool"; then
2784    ac_aux_dir=$ac_dir
2785    ac_install_sh="$ac_aux_dir/shtool install -c"
2786    break
2787  fi
2788done
2789if test -z "$ac_aux_dir"; then
2790  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2791fi
2792
2793# These three variables are undocumented and unsupported,
2794# and are intended to be withdrawn in a future Autoconf release.
2795# They can cause serious problems if a builder's source tree is in a directory
2796# whose full name contains unusual characters.
2797ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2798ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2799ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2800
2801
2802# Make sure we can run config.sub.
2803$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2804  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2805
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2807$as_echo_n "checking build system type... " >&6; }
2808if ${ac_cv_build+:} false; then :
2809  $as_echo_n "(cached) " >&6
2810else
2811  ac_build_alias=$build_alias
2812test "x$ac_build_alias" = x &&
2813  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2814test "x$ac_build_alias" = x &&
2815  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2816ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2817  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2818
2819fi
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2821$as_echo "$ac_cv_build" >&6; }
2822case $ac_cv_build in
2823*-*-*) ;;
2824*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2825esac
2826build=$ac_cv_build
2827ac_save_IFS=$IFS; IFS='-'
2828set x $ac_cv_build
2829shift
2830build_cpu=$1
2831build_vendor=$2
2832shift; shift
2833# Remember, the first character of IFS is used to create $*,
2834# except with old shells:
2835build_os=$*
2836IFS=$ac_save_IFS
2837case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2838
2839
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2841$as_echo_n "checking host system type... " >&6; }
2842if ${ac_cv_host+:} false; then :
2843  $as_echo_n "(cached) " >&6
2844else
2845  if test "x$host_alias" = x; then
2846  ac_cv_host=$ac_cv_build
2847else
2848  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2849    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2850fi
2851
2852fi
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2854$as_echo "$ac_cv_host" >&6; }
2855case $ac_cv_host in
2856*-*-*) ;;
2857*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2858esac
2859host=$ac_cv_host
2860ac_save_IFS=$IFS; IFS='-'
2861set x $ac_cv_host
2862shift
2863host_cpu=$1
2864host_vendor=$2
2865shift; shift
2866# Remember, the first character of IFS is used to create $*,
2867# except with old shells:
2868host_os=$*
2869IFS=$ac_save_IFS
2870case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2871
2872
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2874$as_echo_n "checking target system type... " >&6; }
2875if ${ac_cv_target+:} false; then :
2876  $as_echo_n "(cached) " >&6
2877else
2878  if test "x$target_alias" = x; then
2879  ac_cv_target=$ac_cv_host
2880else
2881  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2882    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2883fi
2884
2885fi
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2887$as_echo "$ac_cv_target" >&6; }
2888case $ac_cv_target in
2889*-*-*) ;;
2890*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2891esac
2892target=$ac_cv_target
2893ac_save_IFS=$IFS; IFS='-'
2894set x $ac_cv_target
2895shift
2896target_cpu=$1
2897target_vendor=$2
2898shift; shift
2899# Remember, the first character of IFS is used to create $*,
2900# except with old shells:
2901target_os=$*
2902IFS=$ac_save_IFS
2903case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2904
2905
2906# The aliases save the names the user supplied, while $host etc.
2907# will get canonicalized.
2908test -n "$target_alias" &&
2909  test "$program_prefix$program_suffix$program_transform_name" = \
2910    NONENONEs,x,x, &&
2911  program_prefix=${target_alias}-
2912
2913
2914
2915am__api_version='1.11'
2916
2917# Find a good install program.  We prefer a C program (faster),
2918# so one script is as good as another.  But avoid the broken or
2919# incompatible versions:
2920# SysV /etc/install, /usr/sbin/install
2921# SunOS /usr/etc/install
2922# IRIX /sbin/install
2923# AIX /bin/install
2924# AmigaOS /C/install, which installs bootblocks on floppy discs
2925# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2926# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2927# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2928# OS/2's system install, which has a completely different semantic
2929# ./install, which can be erroneously created by make from ./install.sh.
2930# Reject install programs that cannot install multiple files.
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2932$as_echo_n "checking for a BSD-compatible install... " >&6; }
2933if test -z "$INSTALL"; then
2934if ${ac_cv_path_install+:} false; then :
2935  $as_echo_n "(cached) " >&6
2936else
2937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938for as_dir in $PATH
2939do
2940  IFS=$as_save_IFS
2941  test -z "$as_dir" && as_dir=.
2942    # Account for people who put trailing slashes in PATH elements.
2943case $as_dir/ in #((
2944  ./ | .// | /[cC]/* | \
2945  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2946  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2947  /usr/ucb/* ) ;;
2948  *)
2949    # OSF1 and SCO ODT 3.0 have their own names for install.
2950    # Don't use installbsd from OSF since it installs stuff as root
2951    # by default.
2952    for ac_prog in ginstall scoinst install; do
2953      for ac_exec_ext in '' $ac_executable_extensions; do
2954	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2955	  if test $ac_prog = install &&
2956	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2957	    # AIX install.  It has an incompatible calling convention.
2958	    :
2959	  elif test $ac_prog = install &&
2960	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2961	    # program-specific install script used by HP pwplus--don't use.
2962	    :
2963	  else
2964	    rm -rf conftest.one conftest.two conftest.dir
2965	    echo one > conftest.one
2966	    echo two > conftest.two
2967	    mkdir conftest.dir
2968	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2969	      test -s conftest.one && test -s conftest.two &&
2970	      test -s conftest.dir/conftest.one &&
2971	      test -s conftest.dir/conftest.two
2972	    then
2973	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2974	      break 3
2975	    fi
2976	  fi
2977	fi
2978      done
2979    done
2980    ;;
2981esac
2982
2983  done
2984IFS=$as_save_IFS
2985
2986rm -rf conftest.one conftest.two conftest.dir
2987
2988fi
2989  if test "${ac_cv_path_install+set}" = set; then
2990    INSTALL=$ac_cv_path_install
2991  else
2992    # As a last resort, use the slow shell script.  Don't cache a
2993    # value for INSTALL within a source directory, because that will
2994    # break other packages using the cache if that directory is
2995    # removed, or if the value is a relative name.
2996    INSTALL=$ac_install_sh
2997  fi
2998fi
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3000$as_echo "$INSTALL" >&6; }
3001
3002# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3003# It thinks the first close brace ends the variable substitution.
3004test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3005
3006test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3007
3008test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3009
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3011$as_echo_n "checking whether build environment is sane... " >&6; }
3012# Just in case
3013sleep 1
3014echo timestamp > conftest.file
3015# Reject unsafe characters in $srcdir or the absolute working directory
3016# name.  Accept space and tab only in the latter.
3017am_lf='
3018'
3019case `pwd` in
3020  *[\\\"\#\$\&\'\`$am_lf]*)
3021    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3022esac
3023case $srcdir in
3024  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3025    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3026esac
3027
3028# Do `set' in a subshell so we don't clobber the current shell's
3029# arguments.  Must try -L first in case configure is actually a
3030# symlink; some systems play weird games with the mod time of symlinks
3031# (eg FreeBSD returns the mod time of the symlink's containing
3032# directory).
3033if (
3034   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3035   if test "$*" = "X"; then
3036      # -L didn't work.
3037      set X `ls -t "$srcdir/configure" conftest.file`
3038   fi
3039   rm -f conftest.file
3040   if test "$*" != "X $srcdir/configure conftest.file" \
3041      && test "$*" != "X conftest.file $srcdir/configure"; then
3042
3043      # If neither matched, then we have a broken ls.  This can happen
3044      # if, for instance, CONFIG_SHELL is bash and it inherits a
3045      # broken ls alias from the environment.  This has actually
3046      # happened.  Such a system could not be considered "sane".
3047      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3048alias in your environment" "$LINENO" 5
3049   fi
3050
3051   test "$2" = conftest.file
3052   )
3053then
3054   # Ok.
3055   :
3056else
3057   as_fn_error $? "newly created file is older than distributed files!
3058Check your system clock" "$LINENO" 5
3059fi
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3061$as_echo "yes" >&6; }
3062test "$program_prefix" != NONE &&
3063  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3064# Use a double $ so make ignores it.
3065test "$program_suffix" != NONE &&
3066  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3067# Double any \ or $.
3068# By default was `s,x,x', remove it if useless.
3069ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3070program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3071
3072# expand $ac_aux_dir to an absolute path
3073am_aux_dir=`cd $ac_aux_dir && pwd`
3074
3075if test x"${MISSING+set}" != xset; then
3076  case $am_aux_dir in
3077  *\ * | *\	*)
3078    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3079  *)
3080    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3081  esac
3082fi
3083# Use eval to expand $SHELL
3084if eval "$MISSING --run true"; then
3085  am_missing_run="$MISSING --run "
3086else
3087  am_missing_run=
3088  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3089$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3090fi
3091
3092if test x"${install_sh}" != xset; then
3093  case $am_aux_dir in
3094  *\ * | *\	*)
3095    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3096  *)
3097    install_sh="\${SHELL} $am_aux_dir/install-sh"
3098  esac
3099fi
3100
3101# Installed binaries are usually stripped using `strip' when the user
3102# run `make install-strip'.  However `strip' might not be the right
3103# tool to use in cross-compilation environments, therefore Automake
3104# will honor the `STRIP' environment variable to overrule this program.
3105if test "$cross_compiling" != no; then
3106  if test -n "$ac_tool_prefix"; then
3107  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3108set dummy ${ac_tool_prefix}strip; ac_word=$2
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110$as_echo_n "checking for $ac_word... " >&6; }
3111if ${ac_cv_prog_STRIP+:} false; then :
3112  $as_echo_n "(cached) " >&6
3113else
3114  if test -n "$STRIP"; then
3115  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3116else
3117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118for as_dir in $PATH
3119do
3120  IFS=$as_save_IFS
3121  test -z "$as_dir" && as_dir=.
3122    for ac_exec_ext in '' $ac_executable_extensions; do
3123  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126    break 2
3127  fi
3128done
3129  done
3130IFS=$as_save_IFS
3131
3132fi
3133fi
3134STRIP=$ac_cv_prog_STRIP
3135if test -n "$STRIP"; then
3136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3137$as_echo "$STRIP" >&6; }
3138else
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140$as_echo "no" >&6; }
3141fi
3142
3143
3144fi
3145if test -z "$ac_cv_prog_STRIP"; then
3146  ac_ct_STRIP=$STRIP
3147  # Extract the first word of "strip", so it can be a program name with args.
3148set dummy strip; ac_word=$2
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150$as_echo_n "checking for $ac_word... " >&6; }
3151if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3152  $as_echo_n "(cached) " >&6
3153else
3154  if test -n "$ac_ct_STRIP"; then
3155  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3156else
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160  IFS=$as_save_IFS
3161  test -z "$as_dir" && as_dir=.
3162    for ac_exec_ext in '' $ac_executable_extensions; do
3163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164    ac_cv_prog_ac_ct_STRIP="strip"
3165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166    break 2
3167  fi
3168done
3169  done
3170IFS=$as_save_IFS
3171
3172fi
3173fi
3174ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3175if test -n "$ac_ct_STRIP"; then
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3177$as_echo "$ac_ct_STRIP" >&6; }
3178else
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180$as_echo "no" >&6; }
3181fi
3182
3183  if test "x$ac_ct_STRIP" = x; then
3184    STRIP=":"
3185  else
3186    case $cross_compiling:$ac_tool_warned in
3187yes:)
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3190ac_tool_warned=yes ;;
3191esac
3192    STRIP=$ac_ct_STRIP
3193  fi
3194else
3195  STRIP="$ac_cv_prog_STRIP"
3196fi
3197
3198fi
3199INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3200
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3202$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3203if test -z "$MKDIR_P"; then
3204  if ${ac_cv_path_mkdir+:} false; then :
3205  $as_echo_n "(cached) " >&6
3206else
3207  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3209do
3210  IFS=$as_save_IFS
3211  test -z "$as_dir" && as_dir=.
3212    for ac_prog in mkdir gmkdir; do
3213	 for ac_exec_ext in '' $ac_executable_extensions; do
3214	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3215	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3216	     'mkdir (GNU coreutils) '* | \
3217	     'mkdir (coreutils) '* | \
3218	     'mkdir (fileutils) '4.1*)
3219	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3220	       break 3;;
3221	   esac
3222	 done
3223       done
3224  done
3225IFS=$as_save_IFS
3226
3227fi
3228
3229  test -d ./--version && rmdir ./--version
3230  if test "${ac_cv_path_mkdir+set}" = set; then
3231    MKDIR_P="$ac_cv_path_mkdir -p"
3232  else
3233    # As a last resort, use the slow shell script.  Don't cache a
3234    # value for MKDIR_P within a source directory, because that will
3235    # break other packages using the cache if that directory is
3236    # removed, or if the value is a relative name.
3237    MKDIR_P="$ac_install_sh -d"
3238  fi
3239fi
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3241$as_echo "$MKDIR_P" >&6; }
3242
3243mkdir_p="$MKDIR_P"
3244case $mkdir_p in
3245  [\\/$]* | ?:[\\/]*) ;;
3246  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3247esac
3248
3249for ac_prog in gawk mawk nawk awk
3250do
3251  # Extract the first word of "$ac_prog", so it can be a program name with args.
3252set dummy $ac_prog; ac_word=$2
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254$as_echo_n "checking for $ac_word... " >&6; }
3255if ${ac_cv_prog_AWK+:} false; then :
3256  $as_echo_n "(cached) " >&6
3257else
3258  if test -n "$AWK"; then
3259  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3260else
3261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262for as_dir in $PATH
3263do
3264  IFS=$as_save_IFS
3265  test -z "$as_dir" && as_dir=.
3266    for ac_exec_ext in '' $ac_executable_extensions; do
3267  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3268    ac_cv_prog_AWK="$ac_prog"
3269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270    break 2
3271  fi
3272done
3273  done
3274IFS=$as_save_IFS
3275
3276fi
3277fi
3278AWK=$ac_cv_prog_AWK
3279if test -n "$AWK"; then
3280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3281$as_echo "$AWK" >&6; }
3282else
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284$as_echo "no" >&6; }
3285fi
3286
3287
3288  test -n "$AWK" && break
3289done
3290
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3292$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3293set x ${MAKE-make}
3294ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3295if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3296  $as_echo_n "(cached) " >&6
3297else
3298  cat >conftest.make <<\_ACEOF
3299SHELL = /bin/sh
3300all:
3301	@echo '@@@%%%=$(MAKE)=@@@%%%'
3302_ACEOF
3303# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3304case `${MAKE-make} -f conftest.make 2>/dev/null` in
3305  *@@@%%%=?*=@@@%%%*)
3306    eval ac_cv_prog_make_${ac_make}_set=yes;;
3307  *)
3308    eval ac_cv_prog_make_${ac_make}_set=no;;
3309esac
3310rm -f conftest.make
3311fi
3312if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314$as_echo "yes" >&6; }
3315  SET_MAKE=
3316else
3317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318$as_echo "no" >&6; }
3319  SET_MAKE="MAKE=${MAKE-make}"
3320fi
3321
3322rm -rf .tst 2>/dev/null
3323mkdir .tst 2>/dev/null
3324if test -d .tst; then
3325  am__leading_dot=.
3326else
3327  am__leading_dot=_
3328fi
3329rmdir .tst 2>/dev/null
3330
3331if test "`cd $srcdir && pwd`" != "`pwd`"; then
3332  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3333  # is not polluted with repeated "-I."
3334  am__isrc=' -I$(srcdir)'
3335  # test to see if srcdir already configured
3336  if test -f $srcdir/config.status; then
3337    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3338  fi
3339fi
3340
3341# test whether we have cygpath
3342if test -z "$CYGPATH_W"; then
3343  if (cygpath --version) >/dev/null 2>/dev/null; then
3344    CYGPATH_W='cygpath -w'
3345  else
3346    CYGPATH_W=echo
3347  fi
3348fi
3349
3350
3351# Define the identity of the package.
3352 PACKAGE=hunspell
3353 VERSION=1.3.3
3354
3355
3356cat >>confdefs.h <<_ACEOF
3357#define PACKAGE "$PACKAGE"
3358_ACEOF
3359
3360
3361cat >>confdefs.h <<_ACEOF
3362#define VERSION "$VERSION"
3363_ACEOF
3364
3365# Some tools Automake needs.
3366
3367ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3368
3369
3370AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3371
3372
3373AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3374
3375
3376AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3377
3378
3379MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3380
3381# We need awk for the "check" target.  The system "awk" is bad on
3382# some platforms.
3383# Always define AMTAR for backward compatibility.  Yes, it's still used
3384# in the wild :-(  We should find a proper way to deprecate it ...
3385AMTAR='$${TAR-tar}'
3386
3387am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3388
3389
3390
3391
3392
3393HUNSPELL_VERSION_MAJOR=`echo $VERSION | cut -d"." -f1`
3394HUNSPELL_VERSION_MINOR=`echo $VERSION | cut -d"." -f2`
3395
3396
3397
3398
3399ac_config_headers="$ac_config_headers config.h"
3400
3401
3402# Checks for programs.
3403ac_ext=cpp
3404ac_cpp='$CXXCPP $CPPFLAGS'
3405ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3408if test -z "$CXX"; then
3409  if test -n "$CCC"; then
3410    CXX=$CCC
3411  else
3412    if test -n "$ac_tool_prefix"; then
3413  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3414  do
3415    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3416set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418$as_echo_n "checking for $ac_word... " >&6; }
3419if ${ac_cv_prog_CXX+:} false; then :
3420  $as_echo_n "(cached) " >&6
3421else
3422  if test -n "$CXX"; then
3423  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3424else
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
3427do
3428  IFS=$as_save_IFS
3429  test -z "$as_dir" && as_dir=.
3430    for ac_exec_ext in '' $ac_executable_extensions; do
3431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3432    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434    break 2
3435  fi
3436done
3437  done
3438IFS=$as_save_IFS
3439
3440fi
3441fi
3442CXX=$ac_cv_prog_CXX
3443if test -n "$CXX"; then
3444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3445$as_echo "$CXX" >&6; }
3446else
3447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448$as_echo "no" >&6; }
3449fi
3450
3451
3452    test -n "$CXX" && break
3453  done
3454fi
3455if test -z "$CXX"; then
3456  ac_ct_CXX=$CXX
3457  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3458do
3459  # Extract the first word of "$ac_prog", so it can be a program name with args.
3460set dummy $ac_prog; ac_word=$2
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462$as_echo_n "checking for $ac_word... " >&6; }
3463if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3464  $as_echo_n "(cached) " >&6
3465else
3466  if test -n "$ac_ct_CXX"; then
3467  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3468else
3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470for as_dir in $PATH
3471do
3472  IFS=$as_save_IFS
3473  test -z "$as_dir" && as_dir=.
3474    for ac_exec_ext in '' $ac_executable_extensions; do
3475  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476    ac_cv_prog_ac_ct_CXX="$ac_prog"
3477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478    break 2
3479  fi
3480done
3481  done
3482IFS=$as_save_IFS
3483
3484fi
3485fi
3486ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3487if test -n "$ac_ct_CXX"; then
3488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3489$as_echo "$ac_ct_CXX" >&6; }
3490else
3491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492$as_echo "no" >&6; }
3493fi
3494
3495
3496  test -n "$ac_ct_CXX" && break
3497done
3498
3499  if test "x$ac_ct_CXX" = x; then
3500    CXX="g++"
3501  else
3502    case $cross_compiling:$ac_tool_warned in
3503yes:)
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3506ac_tool_warned=yes ;;
3507esac
3508    CXX=$ac_ct_CXX
3509  fi
3510fi
3511
3512  fi
3513fi
3514# Provide some information about the compiler.
3515$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3516set X $ac_compile
3517ac_compiler=$2
3518for ac_option in --version -v -V -qversion; do
3519  { { ac_try="$ac_compiler $ac_option >&5"
3520case "(($ac_try" in
3521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522  *) ac_try_echo=$ac_try;;
3523esac
3524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525$as_echo "$ac_try_echo"; } >&5
3526  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3527  ac_status=$?
3528  if test -s conftest.err; then
3529    sed '10a\
3530... rest of stderr output deleted ...
3531         10q' conftest.err >conftest.er1
3532    cat conftest.er1 >&5
3533  fi
3534  rm -f conftest.er1 conftest.err
3535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536  test $ac_status = 0; }
3537done
3538
3539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540/* end confdefs.h.  */
3541
3542int
3543main ()
3544{
3545
3546  ;
3547  return 0;
3548}
3549_ACEOF
3550ac_clean_files_save=$ac_clean_files
3551ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3552# Try to create an executable without -o first, disregard a.out.
3553# It will help us diagnose broken compilers, and finding out an intuition
3554# of exeext.
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3556$as_echo_n "checking whether the C++ compiler works... " >&6; }
3557ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3558
3559# The possible output files:
3560ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3561
3562ac_rmfiles=
3563for ac_file in $ac_files
3564do
3565  case $ac_file in
3566    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3567    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3568  esac
3569done
3570rm -f $ac_rmfiles
3571
3572if { { ac_try="$ac_link_default"
3573case "(($ac_try" in
3574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575  *) ac_try_echo=$ac_try;;
3576esac
3577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578$as_echo "$ac_try_echo"; } >&5
3579  (eval "$ac_link_default") 2>&5
3580  ac_status=$?
3581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582  test $ac_status = 0; }; then :
3583  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3584# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3585# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3586# so that the user can short-circuit this test for compilers unknown to
3587# Autoconf.
3588for ac_file in $ac_files ''
3589do
3590  test -f "$ac_file" || continue
3591  case $ac_file in
3592    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3593	;;
3594    [ab].out )
3595	# We found the default executable, but exeext='' is most
3596	# certainly right.
3597	break;;
3598    *.* )
3599	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3600	then :; else
3601	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3602	fi
3603	# We set ac_cv_exeext here because the later test for it is not
3604	# safe: cross compilers may not add the suffix if given an `-o'
3605	# argument, so we may need to know it at that point already.
3606	# Even if this section looks crufty: it has the advantage of
3607	# actually working.
3608	break;;
3609    * )
3610	break;;
3611  esac
3612done
3613test "$ac_cv_exeext" = no && ac_cv_exeext=
3614
3615else
3616  ac_file=''
3617fi
3618if test -z "$ac_file"; then :
3619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620$as_echo "no" >&6; }
3621$as_echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626as_fn_error 77 "C++ compiler cannot create executables
3627See \`config.log' for more details" "$LINENO" 5; }
3628else
3629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3630$as_echo "yes" >&6; }
3631fi
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3633$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3635$as_echo "$ac_file" >&6; }
3636ac_exeext=$ac_cv_exeext
3637
3638rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3639ac_clean_files=$ac_clean_files_save
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3641$as_echo_n "checking for suffix of executables... " >&6; }
3642if { { ac_try="$ac_link"
3643case "(($ac_try" in
3644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645  *) ac_try_echo=$ac_try;;
3646esac
3647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3648$as_echo "$ac_try_echo"; } >&5
3649  (eval "$ac_link") 2>&5
3650  ac_status=$?
3651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652  test $ac_status = 0; }; then :
3653  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3654# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3655# work properly (i.e., refer to `conftest.exe'), while it won't with
3656# `rm'.
3657for ac_file in conftest.exe conftest conftest.*; do
3658  test -f "$ac_file" || continue
3659  case $ac_file in
3660    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3661    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3662	  break;;
3663    * ) break;;
3664  esac
3665done
3666else
3667  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3670See \`config.log' for more details" "$LINENO" 5; }
3671fi
3672rm -f conftest conftest$ac_cv_exeext
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3674$as_echo "$ac_cv_exeext" >&6; }
3675
3676rm -f conftest.$ac_ext
3677EXEEXT=$ac_cv_exeext
3678ac_exeext=$EXEEXT
3679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680/* end confdefs.h.  */
3681#include <stdio.h>
3682int
3683main ()
3684{
3685FILE *f = fopen ("conftest.out", "w");
3686 return ferror (f) || fclose (f) != 0;
3687
3688  ;
3689  return 0;
3690}
3691_ACEOF
3692ac_clean_files="$ac_clean_files conftest.out"
3693# Check that the compiler produces executables we can run.  If not, either
3694# the compiler is broken, or we cross compile.
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3696$as_echo_n "checking whether we are cross compiling... " >&6; }
3697if test "$cross_compiling" != yes; then
3698  { { ac_try="$ac_link"
3699case "(($ac_try" in
3700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701  *) ac_try_echo=$ac_try;;
3702esac
3703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704$as_echo "$ac_try_echo"; } >&5
3705  (eval "$ac_link") 2>&5
3706  ac_status=$?
3707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708  test $ac_status = 0; }
3709  if { ac_try='./conftest$ac_cv_exeext'
3710  { { case "(($ac_try" in
3711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712  *) ac_try_echo=$ac_try;;
3713esac
3714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3715$as_echo "$ac_try_echo"; } >&5
3716  (eval "$ac_try") 2>&5
3717  ac_status=$?
3718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3719  test $ac_status = 0; }; }; then
3720    cross_compiling=no
3721  else
3722    if test "$cross_compiling" = maybe; then
3723	cross_compiling=yes
3724    else
3725	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727as_fn_error $? "cannot run C++ compiled programs.
3728If you meant to cross compile, use \`--host'.
3729See \`config.log' for more details" "$LINENO" 5; }
3730    fi
3731  fi
3732fi
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3734$as_echo "$cross_compiling" >&6; }
3735
3736rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3737ac_clean_files=$ac_clean_files_save
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3739$as_echo_n "checking for suffix of object files... " >&6; }
3740if ${ac_cv_objext+:} false; then :
3741  $as_echo_n "(cached) " >&6
3742else
3743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744/* end confdefs.h.  */
3745
3746int
3747main ()
3748{
3749
3750  ;
3751  return 0;
3752}
3753_ACEOF
3754rm -f conftest.o conftest.obj
3755if { { ac_try="$ac_compile"
3756case "(($ac_try" in
3757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758  *) ac_try_echo=$ac_try;;
3759esac
3760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761$as_echo "$ac_try_echo"; } >&5
3762  (eval "$ac_compile") 2>&5
3763  ac_status=$?
3764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765  test $ac_status = 0; }; then :
3766  for ac_file in conftest.o conftest.obj conftest.*; do
3767  test -f "$ac_file" || continue;
3768  case $ac_file in
3769    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3770    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3771       break;;
3772  esac
3773done
3774else
3775  $as_echo "$as_me: failed program was:" >&5
3776sed 's/^/| /' conftest.$ac_ext >&5
3777
3778{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3780as_fn_error $? "cannot compute suffix of object files: cannot compile
3781See \`config.log' for more details" "$LINENO" 5; }
3782fi
3783rm -f conftest.$ac_cv_objext conftest.$ac_ext
3784fi
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3786$as_echo "$ac_cv_objext" >&6; }
3787OBJEXT=$ac_cv_objext
3788ac_objext=$OBJEXT
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3790$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3791if ${ac_cv_cxx_compiler_gnu+:} false; then :
3792  $as_echo_n "(cached) " >&6
3793else
3794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795/* end confdefs.h.  */
3796
3797int
3798main ()
3799{
3800#ifndef __GNUC__
3801       choke me
3802#endif
3803
3804  ;
3805  return 0;
3806}
3807_ACEOF
3808if ac_fn_cxx_try_compile "$LINENO"; then :
3809  ac_compiler_gnu=yes
3810else
3811  ac_compiler_gnu=no
3812fi
3813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3815
3816fi
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3818$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3819if test $ac_compiler_gnu = yes; then
3820  GXX=yes
3821else
3822  GXX=
3823fi
3824ac_test_CXXFLAGS=${CXXFLAGS+set}
3825ac_save_CXXFLAGS=$CXXFLAGS
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3827$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3828if ${ac_cv_prog_cxx_g+:} false; then :
3829  $as_echo_n "(cached) " >&6
3830else
3831  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3832   ac_cxx_werror_flag=yes
3833   ac_cv_prog_cxx_g=no
3834   CXXFLAGS="-g"
3835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836/* end confdefs.h.  */
3837
3838int
3839main ()
3840{
3841
3842  ;
3843  return 0;
3844}
3845_ACEOF
3846if ac_fn_cxx_try_compile "$LINENO"; then :
3847  ac_cv_prog_cxx_g=yes
3848else
3849  CXXFLAGS=""
3850      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851/* end confdefs.h.  */
3852
3853int
3854main ()
3855{
3856
3857  ;
3858  return 0;
3859}
3860_ACEOF
3861if ac_fn_cxx_try_compile "$LINENO"; then :
3862
3863else
3864  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3865	 CXXFLAGS="-g"
3866	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867/* end confdefs.h.  */
3868
3869int
3870main ()
3871{
3872
3873  ;
3874  return 0;
3875}
3876_ACEOF
3877if ac_fn_cxx_try_compile "$LINENO"; then :
3878  ac_cv_prog_cxx_g=yes
3879fi
3880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881fi
3882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883fi
3884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3886fi
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3888$as_echo "$ac_cv_prog_cxx_g" >&6; }
3889if test "$ac_test_CXXFLAGS" = set; then
3890  CXXFLAGS=$ac_save_CXXFLAGS
3891elif test $ac_cv_prog_cxx_g = yes; then
3892  if test "$GXX" = yes; then
3893    CXXFLAGS="-g -O2"
3894  else
3895    CXXFLAGS="-g"
3896  fi
3897else
3898  if test "$GXX" = yes; then
3899    CXXFLAGS="-O2"
3900  else
3901    CXXFLAGS=
3902  fi
3903fi
3904ac_ext=c
3905ac_cpp='$CPP $CPPFLAGS'
3906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909DEPDIR="${am__leading_dot}deps"
3910
3911ac_config_commands="$ac_config_commands depfiles"
3912
3913
3914am_make=${MAKE-make}
3915cat > confinc << 'END'
3916am__doit:
3917	@echo this is the am__doit target
3918.PHONY: am__doit
3919END
3920# If we don't find an include directive, just comment out the code.
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3922$as_echo_n "checking for style of include used by $am_make... " >&6; }
3923am__include="#"
3924am__quote=
3925_am_result=none
3926# First try GNU make style include.
3927echo "include confinc" > confmf
3928# Ignore all kinds of additional output from `make'.
3929case `$am_make -s -f confmf 2> /dev/null` in #(
3930*the\ am__doit\ target*)
3931  am__include=include
3932  am__quote=
3933  _am_result=GNU
3934  ;;
3935esac
3936# Now try BSD make style include.
3937if test "$am__include" = "#"; then
3938   echo '.include "confinc"' > confmf
3939   case `$am_make -s -f confmf 2> /dev/null` in #(
3940   *the\ am__doit\ target*)
3941     am__include=.include
3942     am__quote="\""
3943     _am_result=BSD
3944     ;;
3945   esac
3946fi
3947
3948
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3950$as_echo "$_am_result" >&6; }
3951rm -f confinc confmf
3952
3953# Check whether --enable-dependency-tracking was given.
3954if test "${enable_dependency_tracking+set}" = set; then :
3955  enableval=$enable_dependency_tracking;
3956fi
3957
3958if test "x$enable_dependency_tracking" != xno; then
3959  am_depcomp="$ac_aux_dir/depcomp"
3960  AMDEPBACKSLASH='\'
3961  am__nodep='_no'
3962fi
3963 if test "x$enable_dependency_tracking" != xno; then
3964  AMDEP_TRUE=
3965  AMDEP_FALSE='#'
3966else
3967  AMDEP_TRUE='#'
3968  AMDEP_FALSE=
3969fi
3970
3971
3972
3973depcc="$CXX"  am_compiler_list=
3974
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3976$as_echo_n "checking dependency style of $depcc... " >&6; }
3977if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3978  $as_echo_n "(cached) " >&6
3979else
3980  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3981  # We make a subdir and do the tests there.  Otherwise we can end up
3982  # making bogus files that we don't know about and never remove.  For
3983  # instance it was reported that on HP-UX the gcc test will end up
3984  # making a dummy file named `D' -- because `-MD' means `put the output
3985  # in D'.
3986  rm -rf conftest.dir
3987  mkdir conftest.dir
3988  # Copy depcomp to subdir because otherwise we won't find it if we're
3989  # using a relative directory.
3990  cp "$am_depcomp" conftest.dir
3991  cd conftest.dir
3992  # We will build objects and dependencies in a subdirectory because
3993  # it helps to detect inapplicable dependency modes.  For instance
3994  # both Tru64's cc and ICC support -MD to output dependencies as a
3995  # side effect of compilation, but ICC will put the dependencies in
3996  # the current directory while Tru64 will put them in the object
3997  # directory.
3998  mkdir sub
3999
4000  am_cv_CXX_dependencies_compiler_type=none
4001  if test "$am_compiler_list" = ""; then
4002     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4003  fi
4004  am__universal=false
4005  case " $depcc " in #(
4006     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4007     esac
4008
4009  for depmode in $am_compiler_list; do
4010    # Setup a source with many dependencies, because some compilers
4011    # like to wrap large dependency lists on column 80 (with \), and
4012    # we should not choose a depcomp mode which is confused by this.
4013    #
4014    # We need to recreate these files for each test, as the compiler may
4015    # overwrite some of them when testing with obscure command lines.
4016    # This happens at least with the AIX C compiler.
4017    : > sub/conftest.c
4018    for i in 1 2 3 4 5 6; do
4019      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4020      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4021      # Solaris 8's {/usr,}/bin/sh.
4022      touch sub/conftst$i.h
4023    done
4024    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4025
4026    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4027    # mode.  It turns out that the SunPro C++ compiler does not properly
4028    # handle `-M -o', and we need to detect this.  Also, some Intel
4029    # versions had trouble with output in subdirs
4030    am__obj=sub/conftest.${OBJEXT-o}
4031    am__minus_obj="-o $am__obj"
4032    case $depmode in
4033    gcc)
4034      # This depmode causes a compiler race in universal mode.
4035      test "$am__universal" = false || continue
4036      ;;
4037    nosideeffect)
4038      # after this tag, mechanisms are not by side-effect, so they'll
4039      # only be used when explicitly requested
4040      if test "x$enable_dependency_tracking" = xyes; then
4041	continue
4042      else
4043	break
4044      fi
4045      ;;
4046    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4047      # This compiler won't grok `-c -o', but also, the minuso test has
4048      # not run yet.  These depmodes are late enough in the game, and
4049      # so weak that their functioning should not be impacted.
4050      am__obj=conftest.${OBJEXT-o}
4051      am__minus_obj=
4052      ;;
4053    none) break ;;
4054    esac
4055    if depmode=$depmode \
4056       source=sub/conftest.c object=$am__obj \
4057       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4058       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4059         >/dev/null 2>conftest.err &&
4060       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4061       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4062       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4063       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4064      # icc doesn't choke on unknown options, it will just issue warnings
4065      # or remarks (even with -Werror).  So we grep stderr for any message
4066      # that says an option was ignored or not supported.
4067      # When given -MP, icc 7.0 and 7.1 complain thusly:
4068      #   icc: Command line warning: ignoring option '-M'; no argument required
4069      # The diagnosis changed in icc 8.0:
4070      #   icc: Command line remark: option '-MP' not supported
4071      if (grep 'ignoring option' conftest.err ||
4072          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4073        am_cv_CXX_dependencies_compiler_type=$depmode
4074        break
4075      fi
4076    fi
4077  done
4078
4079  cd ..
4080  rm -rf conftest.dir
4081else
4082  am_cv_CXX_dependencies_compiler_type=none
4083fi
4084
4085fi
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4087$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4088CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4089
4090 if
4091  test "x$enable_dependency_tracking" != xno \
4092  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4093  am__fastdepCXX_TRUE=
4094  am__fastdepCXX_FALSE='#'
4095else
4096  am__fastdepCXX_TRUE='#'
4097  am__fastdepCXX_FALSE=
4098fi
4099
4100
4101ac_ext=c
4102ac_cpp='$CPP $CPPFLAGS'
4103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106if test -n "$ac_tool_prefix"; then
4107  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4108set dummy ${ac_tool_prefix}gcc; ac_word=$2
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110$as_echo_n "checking for $ac_word... " >&6; }
4111if ${ac_cv_prog_CC+:} false; then :
4112  $as_echo_n "(cached) " >&6
4113else
4114  if test -n "$CC"; then
4115  ac_cv_prog_CC="$CC" # Let the user override the test.
4116else
4117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118for as_dir in $PATH
4119do
4120  IFS=$as_save_IFS
4121  test -z "$as_dir" && as_dir=.
4122    for ac_exec_ext in '' $ac_executable_extensions; do
4123  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4124    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4126    break 2
4127  fi
4128done
4129  done
4130IFS=$as_save_IFS
4131
4132fi
4133fi
4134CC=$ac_cv_prog_CC
4135if test -n "$CC"; then
4136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4137$as_echo "$CC" >&6; }
4138else
4139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140$as_echo "no" >&6; }
4141fi
4142
4143
4144fi
4145if test -z "$ac_cv_prog_CC"; then
4146  ac_ct_CC=$CC
4147  # Extract the first word of "gcc", so it can be a program name with args.
4148set dummy gcc; ac_word=$2
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150$as_echo_n "checking for $ac_word... " >&6; }
4151if ${ac_cv_prog_ac_ct_CC+:} false; then :
4152  $as_echo_n "(cached) " >&6
4153else
4154  if test -n "$ac_ct_CC"; then
4155  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4156else
4157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158for as_dir in $PATH
4159do
4160  IFS=$as_save_IFS
4161  test -z "$as_dir" && as_dir=.
4162    for ac_exec_ext in '' $ac_executable_extensions; do
4163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4164    ac_cv_prog_ac_ct_CC="gcc"
4165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166    break 2
4167  fi
4168done
4169  done
4170IFS=$as_save_IFS
4171
4172fi
4173fi
4174ac_ct_CC=$ac_cv_prog_ac_ct_CC
4175if test -n "$ac_ct_CC"; then
4176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4177$as_echo "$ac_ct_CC" >&6; }
4178else
4179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180$as_echo "no" >&6; }
4181fi
4182
4183  if test "x$ac_ct_CC" = x; then
4184    CC=""
4185  else
4186    case $cross_compiling:$ac_tool_warned in
4187yes:)
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4190ac_tool_warned=yes ;;
4191esac
4192    CC=$ac_ct_CC
4193  fi
4194else
4195  CC="$ac_cv_prog_CC"
4196fi
4197
4198if test -z "$CC"; then
4199          if test -n "$ac_tool_prefix"; then
4200    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4201set dummy ${ac_tool_prefix}cc; ac_word=$2
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203$as_echo_n "checking for $ac_word... " >&6; }
4204if ${ac_cv_prog_CC+:} false; then :
4205  $as_echo_n "(cached) " >&6
4206else
4207  if test -n "$CC"; then
4208  ac_cv_prog_CC="$CC" # Let the user override the test.
4209else
4210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211for as_dir in $PATH
4212do
4213  IFS=$as_save_IFS
4214  test -z "$as_dir" && as_dir=.
4215    for ac_exec_ext in '' $ac_executable_extensions; do
4216  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217    ac_cv_prog_CC="${ac_tool_prefix}cc"
4218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219    break 2
4220  fi
4221done
4222  done
4223IFS=$as_save_IFS
4224
4225fi
4226fi
4227CC=$ac_cv_prog_CC
4228if test -n "$CC"; then
4229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4230$as_echo "$CC" >&6; }
4231else
4232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233$as_echo "no" >&6; }
4234fi
4235
4236
4237  fi
4238fi
4239if test -z "$CC"; then
4240  # Extract the first word of "cc", so it can be a program name with args.
4241set dummy cc; ac_word=$2
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243$as_echo_n "checking for $ac_word... " >&6; }
4244if ${ac_cv_prog_CC+:} false; then :
4245  $as_echo_n "(cached) " >&6
4246else
4247  if test -n "$CC"; then
4248  ac_cv_prog_CC="$CC" # Let the user override the test.
4249else
4250  ac_prog_rejected=no
4251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252for as_dir in $PATH
4253do
4254  IFS=$as_save_IFS
4255  test -z "$as_dir" && as_dir=.
4256    for ac_exec_ext in '' $ac_executable_extensions; do
4257  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4258    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4259       ac_prog_rejected=yes
4260       continue
4261     fi
4262    ac_cv_prog_CC="cc"
4263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264    break 2
4265  fi
4266done
4267  done
4268IFS=$as_save_IFS
4269
4270if test $ac_prog_rejected = yes; then
4271  # We found a bogon in the path, so make sure we never use it.
4272  set dummy $ac_cv_prog_CC
4273  shift
4274  if test $# != 0; then
4275    # We chose a different compiler from the bogus one.
4276    # However, it has the same basename, so the bogon will be chosen
4277    # first if we set CC to just the basename; use the full file name.
4278    shift
4279    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4280  fi
4281fi
4282fi
4283fi
4284CC=$ac_cv_prog_CC
4285if test -n "$CC"; then
4286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4287$as_echo "$CC" >&6; }
4288else
4289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290$as_echo "no" >&6; }
4291fi
4292
4293
4294fi
4295if test -z "$CC"; then
4296  if test -n "$ac_tool_prefix"; then
4297  for ac_prog in cl.exe
4298  do
4299    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4300set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302$as_echo_n "checking for $ac_word... " >&6; }
4303if ${ac_cv_prog_CC+:} false; then :
4304  $as_echo_n "(cached) " >&6
4305else
4306  if test -n "$CC"; then
4307  ac_cv_prog_CC="$CC" # Let the user override the test.
4308else
4309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310for as_dir in $PATH
4311do
4312  IFS=$as_save_IFS
4313  test -z "$as_dir" && as_dir=.
4314    for ac_exec_ext in '' $ac_executable_extensions; do
4315  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318    break 2
4319  fi
4320done
4321  done
4322IFS=$as_save_IFS
4323
4324fi
4325fi
4326CC=$ac_cv_prog_CC
4327if test -n "$CC"; then
4328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4329$as_echo "$CC" >&6; }
4330else
4331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332$as_echo "no" >&6; }
4333fi
4334
4335
4336    test -n "$CC" && break
4337  done
4338fi
4339if test -z "$CC"; then
4340  ac_ct_CC=$CC
4341  for ac_prog in cl.exe
4342do
4343  # Extract the first word of "$ac_prog", so it can be a program name with args.
4344set dummy $ac_prog; ac_word=$2
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346$as_echo_n "checking for $ac_word... " >&6; }
4347if ${ac_cv_prog_ac_ct_CC+:} false; then :
4348  $as_echo_n "(cached) " >&6
4349else
4350  if test -n "$ac_ct_CC"; then
4351  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4352else
4353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354for as_dir in $PATH
4355do
4356  IFS=$as_save_IFS
4357  test -z "$as_dir" && as_dir=.
4358    for ac_exec_ext in '' $ac_executable_extensions; do
4359  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360    ac_cv_prog_ac_ct_CC="$ac_prog"
4361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362    break 2
4363  fi
4364done
4365  done
4366IFS=$as_save_IFS
4367
4368fi
4369fi
4370ac_ct_CC=$ac_cv_prog_ac_ct_CC
4371if test -n "$ac_ct_CC"; then
4372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4373$as_echo "$ac_ct_CC" >&6; }
4374else
4375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376$as_echo "no" >&6; }
4377fi
4378
4379
4380  test -n "$ac_ct_CC" && break
4381done
4382
4383  if test "x$ac_ct_CC" = x; then
4384    CC=""
4385  else
4386    case $cross_compiling:$ac_tool_warned in
4387yes:)
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4390ac_tool_warned=yes ;;
4391esac
4392    CC=$ac_ct_CC
4393  fi
4394fi
4395
4396fi
4397
4398
4399test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4401as_fn_error $? "no acceptable C compiler found in \$PATH
4402See \`config.log' for more details" "$LINENO" 5; }
4403
4404# Provide some information about the compiler.
4405$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4406set X $ac_compile
4407ac_compiler=$2
4408for ac_option in --version -v -V -qversion; do
4409  { { ac_try="$ac_compiler $ac_option >&5"
4410case "(($ac_try" in
4411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412  *) ac_try_echo=$ac_try;;
4413esac
4414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4415$as_echo "$ac_try_echo"; } >&5
4416  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4417  ac_status=$?
4418  if test -s conftest.err; then
4419    sed '10a\
4420... rest of stderr output deleted ...
4421         10q' conftest.err >conftest.er1
4422    cat conftest.er1 >&5
4423  fi
4424  rm -f conftest.er1 conftest.err
4425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4426  test $ac_status = 0; }
4427done
4428
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4430$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4431if ${ac_cv_c_compiler_gnu+:} false; then :
4432  $as_echo_n "(cached) " >&6
4433else
4434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435/* end confdefs.h.  */
4436
4437int
4438main ()
4439{
4440#ifndef __GNUC__
4441       choke me
4442#endif
4443
4444  ;
4445  return 0;
4446}
4447_ACEOF
4448if ac_fn_c_try_compile "$LINENO"; then :
4449  ac_compiler_gnu=yes
4450else
4451  ac_compiler_gnu=no
4452fi
4453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4454ac_cv_c_compiler_gnu=$ac_compiler_gnu
4455
4456fi
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4458$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4459if test $ac_compiler_gnu = yes; then
4460  GCC=yes
4461else
4462  GCC=
4463fi
4464ac_test_CFLAGS=${CFLAGS+set}
4465ac_save_CFLAGS=$CFLAGS
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4467$as_echo_n "checking whether $CC accepts -g... " >&6; }
4468if ${ac_cv_prog_cc_g+:} false; then :
4469  $as_echo_n "(cached) " >&6
4470else
4471  ac_save_c_werror_flag=$ac_c_werror_flag
4472   ac_c_werror_flag=yes
4473   ac_cv_prog_cc_g=no
4474   CFLAGS="-g"
4475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476/* end confdefs.h.  */
4477
4478int
4479main ()
4480{
4481
4482  ;
4483  return 0;
4484}
4485_ACEOF
4486if ac_fn_c_try_compile "$LINENO"; then :
4487  ac_cv_prog_cc_g=yes
4488else
4489  CFLAGS=""
4490      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491/* end confdefs.h.  */
4492
4493int
4494main ()
4495{
4496
4497  ;
4498  return 0;
4499}
4500_ACEOF
4501if ac_fn_c_try_compile "$LINENO"; then :
4502
4503else
4504  ac_c_werror_flag=$ac_save_c_werror_flag
4505	 CFLAGS="-g"
4506	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507/* end confdefs.h.  */
4508
4509int
4510main ()
4511{
4512
4513  ;
4514  return 0;
4515}
4516_ACEOF
4517if ac_fn_c_try_compile "$LINENO"; then :
4518  ac_cv_prog_cc_g=yes
4519fi
4520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521fi
4522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523fi
4524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525   ac_c_werror_flag=$ac_save_c_werror_flag
4526fi
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4528$as_echo "$ac_cv_prog_cc_g" >&6; }
4529if test "$ac_test_CFLAGS" = set; then
4530  CFLAGS=$ac_save_CFLAGS
4531elif test $ac_cv_prog_cc_g = yes; then
4532  if test "$GCC" = yes; then
4533    CFLAGS="-g -O2"
4534  else
4535    CFLAGS="-g"
4536  fi
4537else
4538  if test "$GCC" = yes; then
4539    CFLAGS="-O2"
4540  else
4541    CFLAGS=
4542  fi
4543fi
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4545$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4546if ${ac_cv_prog_cc_c89+:} false; then :
4547  $as_echo_n "(cached) " >&6
4548else
4549  ac_cv_prog_cc_c89=no
4550ac_save_CC=$CC
4551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552/* end confdefs.h.  */
4553#include <stdarg.h>
4554#include <stdio.h>
4555#include <sys/types.h>
4556#include <sys/stat.h>
4557/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4558struct buf { int x; };
4559FILE * (*rcsopen) (struct buf *, struct stat *, int);
4560static char *e (p, i)
4561     char **p;
4562     int i;
4563{
4564  return p[i];
4565}
4566static char *f (char * (*g) (char **, int), char **p, ...)
4567{
4568  char *s;
4569  va_list v;
4570  va_start (v,p);
4571  s = g (p, va_arg (v,int));
4572  va_end (v);
4573  return s;
4574}
4575
4576/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4577   function prototypes and stuff, but not '\xHH' hex character constants.
4578   These don't provoke an error unfortunately, instead are silently treated
4579   as 'x'.  The following induces an error, until -std is added to get
4580   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4581   array size at least.  It's necessary to write '\x00'==0 to get something
4582   that's true only with -std.  */
4583int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4584
4585/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4586   inside strings and character constants.  */
4587#define FOO(x) 'x'
4588int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4589
4590int test (int i, double x);
4591struct s1 {int (*f) (int a);};
4592struct s2 {int (*f) (double a);};
4593int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4594int argc;
4595char **argv;
4596int
4597main ()
4598{
4599return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4600  ;
4601  return 0;
4602}
4603_ACEOF
4604for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4605	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4606do
4607  CC="$ac_save_CC $ac_arg"
4608  if ac_fn_c_try_compile "$LINENO"; then :
4609  ac_cv_prog_cc_c89=$ac_arg
4610fi
4611rm -f core conftest.err conftest.$ac_objext
4612  test "x$ac_cv_prog_cc_c89" != "xno" && break
4613done
4614rm -f conftest.$ac_ext
4615CC=$ac_save_CC
4616
4617fi
4618# AC_CACHE_VAL
4619case "x$ac_cv_prog_cc_c89" in
4620  x)
4621    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4622$as_echo "none needed" >&6; } ;;
4623  xno)
4624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4625$as_echo "unsupported" >&6; } ;;
4626  *)
4627    CC="$CC $ac_cv_prog_cc_c89"
4628    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4629$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4630esac
4631if test "x$ac_cv_prog_cc_c89" != xno; then :
4632
4633fi
4634
4635ac_ext=c
4636ac_cpp='$CPP $CPPFLAGS'
4637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639ac_compiler_gnu=$ac_cv_c_compiler_gnu
4640
4641depcc="$CC"   am_compiler_list=
4642
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4644$as_echo_n "checking dependency style of $depcc... " >&6; }
4645if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4646  $as_echo_n "(cached) " >&6
4647else
4648  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4649  # We make a subdir and do the tests there.  Otherwise we can end up
4650  # making bogus files that we don't know about and never remove.  For
4651  # instance it was reported that on HP-UX the gcc test will end up
4652  # making a dummy file named `D' -- because `-MD' means `put the output
4653  # in D'.
4654  rm -rf conftest.dir
4655  mkdir conftest.dir
4656  # Copy depcomp to subdir because otherwise we won't find it if we're
4657  # using a relative directory.
4658  cp "$am_depcomp" conftest.dir
4659  cd conftest.dir
4660  # We will build objects and dependencies in a subdirectory because
4661  # it helps to detect inapplicable dependency modes.  For instance
4662  # both Tru64's cc and ICC support -MD to output dependencies as a
4663  # side effect of compilation, but ICC will put the dependencies in
4664  # the current directory while Tru64 will put them in the object
4665  # directory.
4666  mkdir sub
4667
4668  am_cv_CC_dependencies_compiler_type=none
4669  if test "$am_compiler_list" = ""; then
4670     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4671  fi
4672  am__universal=false
4673  case " $depcc " in #(
4674     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4675     esac
4676
4677  for depmode in $am_compiler_list; do
4678    # Setup a source with many dependencies, because some compilers
4679    # like to wrap large dependency lists on column 80 (with \), and
4680    # we should not choose a depcomp mode which is confused by this.
4681    #
4682    # We need to recreate these files for each test, as the compiler may
4683    # overwrite some of them when testing with obscure command lines.
4684    # This happens at least with the AIX C compiler.
4685    : > sub/conftest.c
4686    for i in 1 2 3 4 5 6; do
4687      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4688      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4689      # Solaris 8's {/usr,}/bin/sh.
4690      touch sub/conftst$i.h
4691    done
4692    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4693
4694    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4695    # mode.  It turns out that the SunPro C++ compiler does not properly
4696    # handle `-M -o', and we need to detect this.  Also, some Intel
4697    # versions had trouble with output in subdirs
4698    am__obj=sub/conftest.${OBJEXT-o}
4699    am__minus_obj="-o $am__obj"
4700    case $depmode in
4701    gcc)
4702      # This depmode causes a compiler race in universal mode.
4703      test "$am__universal" = false || continue
4704      ;;
4705    nosideeffect)
4706      # after this tag, mechanisms are not by side-effect, so they'll
4707      # only be used when explicitly requested
4708      if test "x$enable_dependency_tracking" = xyes; then
4709	continue
4710      else
4711	break
4712      fi
4713      ;;
4714    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4715      # This compiler won't grok `-c -o', but also, the minuso test has
4716      # not run yet.  These depmodes are late enough in the game, and
4717      # so weak that their functioning should not be impacted.
4718      am__obj=conftest.${OBJEXT-o}
4719      am__minus_obj=
4720      ;;
4721    none) break ;;
4722    esac
4723    if depmode=$depmode \
4724       source=sub/conftest.c object=$am__obj \
4725       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4726       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4727         >/dev/null 2>conftest.err &&
4728       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4729       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4730       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4731       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4732      # icc doesn't choke on unknown options, it will just issue warnings
4733      # or remarks (even with -Werror).  So we grep stderr for any message
4734      # that says an option was ignored or not supported.
4735      # When given -MP, icc 7.0 and 7.1 complain thusly:
4736      #   icc: Command line warning: ignoring option '-M'; no argument required
4737      # The diagnosis changed in icc 8.0:
4738      #   icc: Command line remark: option '-MP' not supported
4739      if (grep 'ignoring option' conftest.err ||
4740          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4741        am_cv_CC_dependencies_compiler_type=$depmode
4742        break
4743      fi
4744    fi
4745  done
4746
4747  cd ..
4748  rm -rf conftest.dir
4749else
4750  am_cv_CC_dependencies_compiler_type=none
4751fi
4752
4753fi
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4755$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4756CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4757
4758 if
4759  test "x$enable_dependency_tracking" != xno \
4760  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4761  am__fastdepCC_TRUE=
4762  am__fastdepCC_FALSE='#'
4763else
4764  am__fastdepCC_TRUE='#'
4765  am__fastdepCC_FALSE=
4766fi
4767
4768
4769case `pwd` in
4770  *\ * | *\	*)
4771    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4772$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4773esac
4774
4775
4776
4777macro_version='2.2.6b'
4778macro_revision='1.3017'
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792ltmain="$ac_aux_dir/ltmain.sh"
4793
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4795$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4796if ${ac_cv_path_SED+:} false; then :
4797  $as_echo_n "(cached) " >&6
4798else
4799            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4800     for ac_i in 1 2 3 4 5 6 7; do
4801       ac_script="$ac_script$as_nl$ac_script"
4802     done
4803     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4804     { ac_script=; unset ac_script;}
4805     if test -z "$SED"; then
4806  ac_path_SED_found=false
4807  # Loop through the user's path and test for each of PROGNAME-LIST
4808  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809for as_dir in $PATH
4810do
4811  IFS=$as_save_IFS
4812  test -z "$as_dir" && as_dir=.
4813    for ac_prog in sed gsed; do
4814    for ac_exec_ext in '' $ac_executable_extensions; do
4815      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4816      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4817# Check for GNU ac_path_SED and select it if it is found.
4818  # Check for GNU $ac_path_SED
4819case `"$ac_path_SED" --version 2>&1` in
4820*GNU*)
4821  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4822*)
4823  ac_count=0
4824  $as_echo_n 0123456789 >"conftest.in"
4825  while :
4826  do
4827    cat "conftest.in" "conftest.in" >"conftest.tmp"
4828    mv "conftest.tmp" "conftest.in"
4829    cp "conftest.in" "conftest.nl"
4830    $as_echo '' >> "conftest.nl"
4831    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4832    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4833    as_fn_arith $ac_count + 1 && ac_count=$as_val
4834    if test $ac_count -gt ${ac_path_SED_max-0}; then
4835      # Best one so far, save it but keep looking for a better one
4836      ac_cv_path_SED="$ac_path_SED"
4837      ac_path_SED_max=$ac_count
4838    fi
4839    # 10*(2^10) chars as input seems more than enough
4840    test $ac_count -gt 10 && break
4841  done
4842  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4843esac
4844
4845      $ac_path_SED_found && break 3
4846    done
4847  done
4848  done
4849IFS=$as_save_IFS
4850  if test -z "$ac_cv_path_SED"; then
4851    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4852  fi
4853else
4854  ac_cv_path_SED=$SED
4855fi
4856
4857fi
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4859$as_echo "$ac_cv_path_SED" >&6; }
4860 SED="$ac_cv_path_SED"
4861  rm -f conftest.sed
4862
4863test -z "$SED" && SED=sed
4864Xsed="$SED -e 1s/^X//"
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4877$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4878if ${ac_cv_path_GREP+:} false; then :
4879  $as_echo_n "(cached) " >&6
4880else
4881  if test -z "$GREP"; then
4882  ac_path_GREP_found=false
4883  # Loop through the user's path and test for each of PROGNAME-LIST
4884  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4886do
4887  IFS=$as_save_IFS
4888  test -z "$as_dir" && as_dir=.
4889    for ac_prog in grep ggrep; do
4890    for ac_exec_ext in '' $ac_executable_extensions; do
4891      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4892      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4893# Check for GNU ac_path_GREP and select it if it is found.
4894  # Check for GNU $ac_path_GREP
4895case `"$ac_path_GREP" --version 2>&1` in
4896*GNU*)
4897  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4898*)
4899  ac_count=0
4900  $as_echo_n 0123456789 >"conftest.in"
4901  while :
4902  do
4903    cat "conftest.in" "conftest.in" >"conftest.tmp"
4904    mv "conftest.tmp" "conftest.in"
4905    cp "conftest.in" "conftest.nl"
4906    $as_echo 'GREP' >> "conftest.nl"
4907    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4908    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4909    as_fn_arith $ac_count + 1 && ac_count=$as_val
4910    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4911      # Best one so far, save it but keep looking for a better one
4912      ac_cv_path_GREP="$ac_path_GREP"
4913      ac_path_GREP_max=$ac_count
4914    fi
4915    # 10*(2^10) chars as input seems more than enough
4916    test $ac_count -gt 10 && break
4917  done
4918  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4919esac
4920
4921      $ac_path_GREP_found && break 3
4922    done
4923  done
4924  done
4925IFS=$as_save_IFS
4926  if test -z "$ac_cv_path_GREP"; then
4927    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4928  fi
4929else
4930  ac_cv_path_GREP=$GREP
4931fi
4932
4933fi
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4935$as_echo "$ac_cv_path_GREP" >&6; }
4936 GREP="$ac_cv_path_GREP"
4937
4938
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4940$as_echo_n "checking for egrep... " >&6; }
4941if ${ac_cv_path_EGREP+:} false; then :
4942  $as_echo_n "(cached) " >&6
4943else
4944  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4945   then ac_cv_path_EGREP="$GREP -E"
4946   else
4947     if test -z "$EGREP"; then
4948  ac_path_EGREP_found=false
4949  # Loop through the user's path and test for each of PROGNAME-LIST
4950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4952do
4953  IFS=$as_save_IFS
4954  test -z "$as_dir" && as_dir=.
4955    for ac_prog in egrep; do
4956    for ac_exec_ext in '' $ac_executable_extensions; do
4957      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4958      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4959# Check for GNU ac_path_EGREP and select it if it is found.
4960  # Check for GNU $ac_path_EGREP
4961case `"$ac_path_EGREP" --version 2>&1` in
4962*GNU*)
4963  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4964*)
4965  ac_count=0
4966  $as_echo_n 0123456789 >"conftest.in"
4967  while :
4968  do
4969    cat "conftest.in" "conftest.in" >"conftest.tmp"
4970    mv "conftest.tmp" "conftest.in"
4971    cp "conftest.in" "conftest.nl"
4972    $as_echo 'EGREP' >> "conftest.nl"
4973    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4974    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4975    as_fn_arith $ac_count + 1 && ac_count=$as_val
4976    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4977      # Best one so far, save it but keep looking for a better one
4978      ac_cv_path_EGREP="$ac_path_EGREP"
4979      ac_path_EGREP_max=$ac_count
4980    fi
4981    # 10*(2^10) chars as input seems more than enough
4982    test $ac_count -gt 10 && break
4983  done
4984  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4985esac
4986
4987      $ac_path_EGREP_found && break 3
4988    done
4989  done
4990  done
4991IFS=$as_save_IFS
4992  if test -z "$ac_cv_path_EGREP"; then
4993    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4994  fi
4995else
4996  ac_cv_path_EGREP=$EGREP
4997fi
4998
4999   fi
5000fi
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5002$as_echo "$ac_cv_path_EGREP" >&6; }
5003 EGREP="$ac_cv_path_EGREP"
5004
5005
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5007$as_echo_n "checking for fgrep... " >&6; }
5008if ${ac_cv_path_FGREP+:} false; then :
5009  $as_echo_n "(cached) " >&6
5010else
5011  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5012   then ac_cv_path_FGREP="$GREP -F"
5013   else
5014     if test -z "$FGREP"; then
5015  ac_path_FGREP_found=false
5016  # Loop through the user's path and test for each of PROGNAME-LIST
5017  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5019do
5020  IFS=$as_save_IFS
5021  test -z "$as_dir" && as_dir=.
5022    for ac_prog in fgrep; do
5023    for ac_exec_ext in '' $ac_executable_extensions; do
5024      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5025      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5026# Check for GNU ac_path_FGREP and select it if it is found.
5027  # Check for GNU $ac_path_FGREP
5028case `"$ac_path_FGREP" --version 2>&1` in
5029*GNU*)
5030  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5031*)
5032  ac_count=0
5033  $as_echo_n 0123456789 >"conftest.in"
5034  while :
5035  do
5036    cat "conftest.in" "conftest.in" >"conftest.tmp"
5037    mv "conftest.tmp" "conftest.in"
5038    cp "conftest.in" "conftest.nl"
5039    $as_echo 'FGREP' >> "conftest.nl"
5040    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5041    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5042    as_fn_arith $ac_count + 1 && ac_count=$as_val
5043    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5044      # Best one so far, save it but keep looking for a better one
5045      ac_cv_path_FGREP="$ac_path_FGREP"
5046      ac_path_FGREP_max=$ac_count
5047    fi
5048    # 10*(2^10) chars as input seems more than enough
5049    test $ac_count -gt 10 && break
5050  done
5051  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5052esac
5053
5054      $ac_path_FGREP_found && break 3
5055    done
5056  done
5057  done
5058IFS=$as_save_IFS
5059  if test -z "$ac_cv_path_FGREP"; then
5060    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5061  fi
5062else
5063  ac_cv_path_FGREP=$FGREP
5064fi
5065
5066   fi
5067fi
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5069$as_echo "$ac_cv_path_FGREP" >&6; }
5070 FGREP="$ac_cv_path_FGREP"
5071
5072
5073test -z "$GREP" && GREP=grep
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093# Check whether --with-gnu-ld was given.
5094if test "${with_gnu_ld+set}" = set; then :
5095  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5096else
5097  with_gnu_ld=no
5098fi
5099
5100ac_prog=ld
5101if test "$GCC" = yes; then
5102  # Check if gcc -print-prog-name=ld gives a path.
5103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5104$as_echo_n "checking for ld used by $CC... " >&6; }
5105  case $host in
5106  *-*-mingw*)
5107    # gcc leaves a trailing carriage return which upsets mingw
5108    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5109  *)
5110    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5111  esac
5112  case $ac_prog in
5113    # Accept absolute paths.
5114    [\\/]* | ?:[\\/]*)
5115      re_direlt='/[^/][^/]*/\.\./'
5116      # Canonicalize the pathname of ld
5117      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5118      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5119	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5120      done
5121      test -z "$LD" && LD="$ac_prog"
5122      ;;
5123  "")
5124    # If it fails, then pretend we aren't using GCC.
5125    ac_prog=ld
5126    ;;
5127  *)
5128    # If it is relative, then search for the first ld in PATH.
5129    with_gnu_ld=unknown
5130    ;;
5131  esac
5132elif test "$with_gnu_ld" = yes; then
5133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5134$as_echo_n "checking for GNU ld... " >&6; }
5135else
5136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5137$as_echo_n "checking for non-GNU ld... " >&6; }
5138fi
5139if ${lt_cv_path_LD+:} false; then :
5140  $as_echo_n "(cached) " >&6
5141else
5142  if test -z "$LD"; then
5143  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5144  for ac_dir in $PATH; do
5145    IFS="$lt_save_ifs"
5146    test -z "$ac_dir" && ac_dir=.
5147    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5148      lt_cv_path_LD="$ac_dir/$ac_prog"
5149      # Check to see if the program is GNU ld.  I'd rather use --version,
5150      # but apparently some variants of GNU ld only accept -v.
5151      # Break only if it was the GNU/non-GNU ld that we prefer.
5152      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5153      *GNU* | *'with BFD'*)
5154	test "$with_gnu_ld" != no && break
5155	;;
5156      *)
5157	test "$with_gnu_ld" != yes && break
5158	;;
5159      esac
5160    fi
5161  done
5162  IFS="$lt_save_ifs"
5163else
5164  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5165fi
5166fi
5167
5168LD="$lt_cv_path_LD"
5169if test -n "$LD"; then
5170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5171$as_echo "$LD" >&6; }
5172else
5173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174$as_echo "no" >&6; }
5175fi
5176test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5178$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5179if ${lt_cv_prog_gnu_ld+:} false; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5183case `$LD -v 2>&1 </dev/null` in
5184*GNU* | *'with BFD'*)
5185  lt_cv_prog_gnu_ld=yes
5186  ;;
5187*)
5188  lt_cv_prog_gnu_ld=no
5189  ;;
5190esac
5191fi
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5193$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5194with_gnu_ld=$lt_cv_prog_gnu_ld
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5205$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5206if ${lt_cv_path_NM+:} false; then :
5207  $as_echo_n "(cached) " >&6
5208else
5209  if test -n "$NM"; then
5210  # Let the user override the test.
5211  lt_cv_path_NM="$NM"
5212else
5213  lt_nm_to_check="${ac_tool_prefix}nm"
5214  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5215    lt_nm_to_check="$lt_nm_to_check nm"
5216  fi
5217  for lt_tmp_nm in $lt_nm_to_check; do
5218    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5219    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5220      IFS="$lt_save_ifs"
5221      test -z "$ac_dir" && ac_dir=.
5222      tmp_nm="$ac_dir/$lt_tmp_nm"
5223      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5224	# Check to see if the nm accepts a BSD-compat flag.
5225	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5226	#   nm: unknown option "B" ignored
5227	# Tru64's nm complains that /dev/null is an invalid object file
5228	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5229	*/dev/null* | *'Invalid file or object type'*)
5230	  lt_cv_path_NM="$tmp_nm -B"
5231	  break
5232	  ;;
5233	*)
5234	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5235	  */dev/null*)
5236	    lt_cv_path_NM="$tmp_nm -p"
5237	    break
5238	    ;;
5239	  *)
5240	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5241	    continue # so that we can try to find one that supports BSD flags
5242	    ;;
5243	  esac
5244	  ;;
5245	esac
5246      fi
5247    done
5248    IFS="$lt_save_ifs"
5249  done
5250  : ${lt_cv_path_NM=no}
5251fi
5252fi
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5254$as_echo "$lt_cv_path_NM" >&6; }
5255if test "$lt_cv_path_NM" != "no"; then
5256  NM="$lt_cv_path_NM"
5257else
5258  # Didn't find any BSD compatible name lister, look for dumpbin.
5259  if test -n "$ac_tool_prefix"; then
5260  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5261  do
5262    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5263set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265$as_echo_n "checking for $ac_word... " >&6; }
5266if ${ac_cv_prog_DUMPBIN+:} false; then :
5267  $as_echo_n "(cached) " >&6
5268else
5269  if test -n "$DUMPBIN"; then
5270  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5271else
5272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273for as_dir in $PATH
5274do
5275  IFS=$as_save_IFS
5276  test -z "$as_dir" && as_dir=.
5277    for ac_exec_ext in '' $ac_executable_extensions; do
5278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281    break 2
5282  fi
5283done
5284  done
5285IFS=$as_save_IFS
5286
5287fi
5288fi
5289DUMPBIN=$ac_cv_prog_DUMPBIN
5290if test -n "$DUMPBIN"; then
5291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5292$as_echo "$DUMPBIN" >&6; }
5293else
5294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295$as_echo "no" >&6; }
5296fi
5297
5298
5299    test -n "$DUMPBIN" && break
5300  done
5301fi
5302if test -z "$DUMPBIN"; then
5303  ac_ct_DUMPBIN=$DUMPBIN
5304  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5305do
5306  # Extract the first word of "$ac_prog", so it can be a program name with args.
5307set dummy $ac_prog; ac_word=$2
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309$as_echo_n "checking for $ac_word... " >&6; }
5310if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5311  $as_echo_n "(cached) " >&6
5312else
5313  if test -n "$ac_ct_DUMPBIN"; then
5314  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5315else
5316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317for as_dir in $PATH
5318do
5319  IFS=$as_save_IFS
5320  test -z "$as_dir" && as_dir=.
5321    for ac_exec_ext in '' $ac_executable_extensions; do
5322  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5323    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325    break 2
5326  fi
5327done
5328  done
5329IFS=$as_save_IFS
5330
5331fi
5332fi
5333ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5334if test -n "$ac_ct_DUMPBIN"; then
5335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5336$as_echo "$ac_ct_DUMPBIN" >&6; }
5337else
5338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339$as_echo "no" >&6; }
5340fi
5341
5342
5343  test -n "$ac_ct_DUMPBIN" && break
5344done
5345
5346  if test "x$ac_ct_DUMPBIN" = x; then
5347    DUMPBIN=":"
5348  else
5349    case $cross_compiling:$ac_tool_warned in
5350yes:)
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5353ac_tool_warned=yes ;;
5354esac
5355    DUMPBIN=$ac_ct_DUMPBIN
5356  fi
5357fi
5358
5359
5360  if test "$DUMPBIN" != ":"; then
5361    NM="$DUMPBIN"
5362  fi
5363fi
5364test -z "$NM" && NM=nm
5365
5366
5367
5368
5369
5370
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5372$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5373if ${lt_cv_nm_interface+:} false; then :
5374  $as_echo_n "(cached) " >&6
5375else
5376  lt_cv_nm_interface="BSD nm"
5377  echo "int some_variable = 0;" > conftest.$ac_ext
5378  (eval echo "\"\$as_me:5378: $ac_compile\"" >&5)
5379  (eval "$ac_compile" 2>conftest.err)
5380  cat conftest.err >&5
5381  (eval echo "\"\$as_me:5381: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5382  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5383  cat conftest.err >&5
5384  (eval echo "\"\$as_me:5384: output\"" >&5)
5385  cat conftest.out >&5
5386  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5387    lt_cv_nm_interface="MS dumpbin"
5388  fi
5389  rm -f conftest*
5390fi
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5392$as_echo "$lt_cv_nm_interface" >&6; }
5393
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5395$as_echo_n "checking whether ln -s works... " >&6; }
5396LN_S=$as_ln_s
5397if test "$LN_S" = "ln -s"; then
5398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5399$as_echo "yes" >&6; }
5400else
5401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5402$as_echo "no, using $LN_S" >&6; }
5403fi
5404
5405# find the maximum length of command line arguments
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5407$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5408if ${lt_cv_sys_max_cmd_len+:} false; then :
5409  $as_echo_n "(cached) " >&6
5410else
5411    i=0
5412  teststring="ABCD"
5413
5414  case $build_os in
5415  msdosdjgpp*)
5416    # On DJGPP, this test can blow up pretty badly due to problems in libc
5417    # (any single argument exceeding 2000 bytes causes a buffer overrun
5418    # during glob expansion).  Even if it were fixed, the result of this
5419    # check would be larger than it should be.
5420    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5421    ;;
5422
5423  gnu*)
5424    # Under GNU Hurd, this test is not required because there is
5425    # no limit to the length of command line arguments.
5426    # Libtool will interpret -1 as no limit whatsoever
5427    lt_cv_sys_max_cmd_len=-1;
5428    ;;
5429
5430  cygwin* | mingw* | cegcc*)
5431    # On Win9x/ME, this test blows up -- it succeeds, but takes
5432    # about 5 minutes as the teststring grows exponentially.
5433    # Worse, since 9x/ME are not pre-emptively multitasking,
5434    # you end up with a "frozen" computer, even though with patience
5435    # the test eventually succeeds (with a max line length of 256k).
5436    # Instead, let's just punt: use the minimum linelength reported by
5437    # all of the supported platforms: 8192 (on NT/2K/XP).
5438    lt_cv_sys_max_cmd_len=8192;
5439    ;;
5440
5441  amigaos*)
5442    # On AmigaOS with pdksh, this test takes hours, literally.
5443    # So we just punt and use a minimum line length of 8192.
5444    lt_cv_sys_max_cmd_len=8192;
5445    ;;
5446
5447  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5448    # This has been around since 386BSD, at least.  Likely further.
5449    if test -x /sbin/sysctl; then
5450      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5451    elif test -x /usr/sbin/sysctl; then
5452      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5453    else
5454      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5455    fi
5456    # And add a safety zone
5457    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5458    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5459    ;;
5460
5461  interix*)
5462    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5463    lt_cv_sys_max_cmd_len=196608
5464    ;;
5465
5466  osf*)
5467    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5468    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5469    # nice to cause kernel panics so lets avoid the loop below.
5470    # First set a reasonable default.
5471    lt_cv_sys_max_cmd_len=16384
5472    #
5473    if test -x /sbin/sysconfig; then
5474      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5475        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5476      esac
5477    fi
5478    ;;
5479  sco3.2v5*)
5480    lt_cv_sys_max_cmd_len=102400
5481    ;;
5482  sysv5* | sco5v6* | sysv4.2uw2*)
5483    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5484    if test -n "$kargmax"; then
5485      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5486    else
5487      lt_cv_sys_max_cmd_len=32768
5488    fi
5489    ;;
5490  *)
5491    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5492    if test -n "$lt_cv_sys_max_cmd_len"; then
5493      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5494      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5495    else
5496      # Make teststring a little bigger before we do anything with it.
5497      # a 1K string should be a reasonable start.
5498      for i in 1 2 3 4 5 6 7 8 ; do
5499        teststring=$teststring$teststring
5500      done
5501      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5502      # If test is not a shell built-in, we'll probably end up computing a
5503      # maximum length that is only half of the actual maximum length, but
5504      # we can't tell.
5505      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5506	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5507	      test $i != 17 # 1/2 MB should be enough
5508      do
5509        i=`expr $i + 1`
5510        teststring=$teststring$teststring
5511      done
5512      # Only check the string length outside the loop.
5513      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5514      teststring=
5515      # Add a significant safety factor because C++ compilers can tack on
5516      # massive amounts of additional arguments before passing them to the
5517      # linker.  It appears as though 1/2 is a usable value.
5518      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5519    fi
5520    ;;
5521  esac
5522
5523fi
5524
5525if test -n $lt_cv_sys_max_cmd_len ; then
5526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5527$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5528else
5529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5530$as_echo "none" >&6; }
5531fi
5532max_cmd_len=$lt_cv_sys_max_cmd_len
5533
5534
5535
5536
5537
5538
5539: ${CP="cp -f"}
5540: ${MV="mv -f"}
5541: ${RM="rm -f"}
5542
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5544$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5545# Try some XSI features
5546xsi_shell=no
5547( _lt_dummy="a/b/c"
5548  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5549      = c,a/b,, \
5550    && eval 'test $(( 1 + 1 )) -eq 2 \
5551    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5552  && xsi_shell=yes
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5554$as_echo "$xsi_shell" >&6; }
5555
5556
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5558$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5559lt_shell_append=no
5560( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5561    >/dev/null 2>&1 \
5562  && lt_shell_append=yes
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5564$as_echo "$lt_shell_append" >&6; }
5565
5566
5567if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5568  lt_unset=unset
5569else
5570  lt_unset=false
5571fi
5572
5573
5574
5575
5576
5577# test EBCDIC or ASCII
5578case `echo X|tr X '\101'` in
5579 A) # ASCII based system
5580    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5581  lt_SP2NL='tr \040 \012'
5582  lt_NL2SP='tr \015\012 \040\040'
5583  ;;
5584 *) # EBCDIC based system
5585  lt_SP2NL='tr \100 \n'
5586  lt_NL2SP='tr \r\n \100\100'
5587  ;;
5588esac
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5599$as_echo_n "checking for $LD option to reload object files... " >&6; }
5600if ${lt_cv_ld_reload_flag+:} false; then :
5601  $as_echo_n "(cached) " >&6
5602else
5603  lt_cv_ld_reload_flag='-r'
5604fi
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5606$as_echo "$lt_cv_ld_reload_flag" >&6; }
5607reload_flag=$lt_cv_ld_reload_flag
5608case $reload_flag in
5609"" | " "*) ;;
5610*) reload_flag=" $reload_flag" ;;
5611esac
5612reload_cmds='$LD$reload_flag -o $output$reload_objs'
5613case $host_os in
5614  darwin*)
5615    if test "$GCC" = yes; then
5616      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5617    else
5618      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5619    fi
5620    ;;
5621esac
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631if test -n "$ac_tool_prefix"; then
5632  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5633set dummy ${ac_tool_prefix}objdump; ac_word=$2
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635$as_echo_n "checking for $ac_word... " >&6; }
5636if ${ac_cv_prog_OBJDUMP+:} false; then :
5637  $as_echo_n "(cached) " >&6
5638else
5639  if test -n "$OBJDUMP"; then
5640  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5641else
5642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643for as_dir in $PATH
5644do
5645  IFS=$as_save_IFS
5646  test -z "$as_dir" && as_dir=.
5647    for ac_exec_ext in '' $ac_executable_extensions; do
5648  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651    break 2
5652  fi
5653done
5654  done
5655IFS=$as_save_IFS
5656
5657fi
5658fi
5659OBJDUMP=$ac_cv_prog_OBJDUMP
5660if test -n "$OBJDUMP"; then
5661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5662$as_echo "$OBJDUMP" >&6; }
5663else
5664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665$as_echo "no" >&6; }
5666fi
5667
5668
5669fi
5670if test -z "$ac_cv_prog_OBJDUMP"; then
5671  ac_ct_OBJDUMP=$OBJDUMP
5672  # Extract the first word of "objdump", so it can be a program name with args.
5673set dummy objdump; ac_word=$2
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675$as_echo_n "checking for $ac_word... " >&6; }
5676if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5677  $as_echo_n "(cached) " >&6
5678else
5679  if test -n "$ac_ct_OBJDUMP"; then
5680  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5681else
5682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683for as_dir in $PATH
5684do
5685  IFS=$as_save_IFS
5686  test -z "$as_dir" && as_dir=.
5687    for ac_exec_ext in '' $ac_executable_extensions; do
5688  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5689    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691    break 2
5692  fi
5693done
5694  done
5695IFS=$as_save_IFS
5696
5697fi
5698fi
5699ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5700if test -n "$ac_ct_OBJDUMP"; then
5701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5702$as_echo "$ac_ct_OBJDUMP" >&6; }
5703else
5704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705$as_echo "no" >&6; }
5706fi
5707
5708  if test "x$ac_ct_OBJDUMP" = x; then
5709    OBJDUMP="false"
5710  else
5711    case $cross_compiling:$ac_tool_warned in
5712yes:)
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5715ac_tool_warned=yes ;;
5716esac
5717    OBJDUMP=$ac_ct_OBJDUMP
5718  fi
5719else
5720  OBJDUMP="$ac_cv_prog_OBJDUMP"
5721fi
5722
5723test -z "$OBJDUMP" && OBJDUMP=objdump
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5734$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5735if ${lt_cv_deplibs_check_method+:} false; then :
5736  $as_echo_n "(cached) " >&6
5737else
5738  lt_cv_file_magic_cmd='$MAGIC_CMD'
5739lt_cv_file_magic_test_file=
5740lt_cv_deplibs_check_method='unknown'
5741# Need to set the preceding variable on all platforms that support
5742# interlibrary dependencies.
5743# 'none' -- dependencies not supported.
5744# `unknown' -- same as none, but documents that we really don't know.
5745# 'pass_all' -- all dependencies passed with no checks.
5746# 'test_compile' -- check by making test program.
5747# 'file_magic [[regex]]' -- check by looking for files in library path
5748# which responds to the $file_magic_cmd with a given extended regex.
5749# If you have `file' or equivalent on your system and you're not sure
5750# whether `pass_all' will *always* work, you probably want this one.
5751
5752case $host_os in
5753aix[4-9]*)
5754  lt_cv_deplibs_check_method=pass_all
5755  ;;
5756
5757beos*)
5758  lt_cv_deplibs_check_method=pass_all
5759  ;;
5760
5761bsdi[45]*)
5762  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5763  lt_cv_file_magic_cmd='/usr/bin/file -L'
5764  lt_cv_file_magic_test_file=/shlib/libc.so
5765  ;;
5766
5767cygwin*)
5768  # func_win32_libid is a shell function defined in ltmain.sh
5769  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5770  lt_cv_file_magic_cmd='func_win32_libid'
5771  ;;
5772
5773mingw* | pw32*)
5774  # Base MSYS/MinGW do not provide the 'file' command needed by
5775  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5776  # unless we find 'file', for example because we are cross-compiling.
5777  if ( file / ) >/dev/null 2>&1; then
5778    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5779    lt_cv_file_magic_cmd='func_win32_libid'
5780  else
5781    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5782    lt_cv_file_magic_cmd='$OBJDUMP -f'
5783  fi
5784  ;;
5785
5786cegcc)
5787  # use the weaker test based on 'objdump'. See mingw*.
5788  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5789  lt_cv_file_magic_cmd='$OBJDUMP -f'
5790  ;;
5791
5792darwin* | rhapsody*)
5793  lt_cv_deplibs_check_method=pass_all
5794  ;;
5795
5796freebsd* | dragonfly*)
5797  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5798    case $host_cpu in
5799    i*86 )
5800      # Not sure whether the presence of OpenBSD here was a mistake.
5801      # Let's accept both of them until this is cleared up.
5802      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5803      lt_cv_file_magic_cmd=/usr/bin/file
5804      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5805      ;;
5806    esac
5807  else
5808    lt_cv_deplibs_check_method=pass_all
5809  fi
5810  ;;
5811
5812gnu*)
5813  lt_cv_deplibs_check_method=pass_all
5814  ;;
5815
5816hpux10.20* | hpux11*)
5817  lt_cv_file_magic_cmd=/usr/bin/file
5818  case $host_cpu in
5819  ia64*)
5820    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5821    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5822    ;;
5823  hppa*64*)
5824    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]'
5825    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5826    ;;
5827  *)
5828    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5829    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5830    ;;
5831  esac
5832  ;;
5833
5834interix[3-9]*)
5835  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5836  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5837  ;;
5838
5839irix5* | irix6* | nonstopux*)
5840  case $LD in
5841  *-32|*"-32 ") libmagic=32-bit;;
5842  *-n32|*"-n32 ") libmagic=N32;;
5843  *-64|*"-64 ") libmagic=64-bit;;
5844  *) libmagic=never-match;;
5845  esac
5846  lt_cv_deplibs_check_method=pass_all
5847  ;;
5848
5849# This must be Linux ELF.
5850linux* | k*bsd*-gnu)
5851  lt_cv_deplibs_check_method=pass_all
5852  ;;
5853
5854netbsd*)
5855  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5856    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5857  else
5858    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5859  fi
5860  ;;
5861
5862newos6*)
5863  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5864  lt_cv_file_magic_cmd=/usr/bin/file
5865  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5866  ;;
5867
5868*nto* | *qnx*)
5869  lt_cv_deplibs_check_method=pass_all
5870  ;;
5871
5872openbsd*)
5873  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5874    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5875  else
5876    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5877  fi
5878  ;;
5879
5880osf3* | osf4* | osf5*)
5881  lt_cv_deplibs_check_method=pass_all
5882  ;;
5883
5884rdos*)
5885  lt_cv_deplibs_check_method=pass_all
5886  ;;
5887
5888solaris*)
5889  lt_cv_deplibs_check_method=pass_all
5890  ;;
5891
5892sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5893  lt_cv_deplibs_check_method=pass_all
5894  ;;
5895
5896sysv4 | sysv4.3*)
5897  case $host_vendor in
5898  motorola)
5899    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]'
5900    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5901    ;;
5902  ncr)
5903    lt_cv_deplibs_check_method=pass_all
5904    ;;
5905  sequent)
5906    lt_cv_file_magic_cmd='/bin/file'
5907    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5908    ;;
5909  sni)
5910    lt_cv_file_magic_cmd='/bin/file'
5911    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5912    lt_cv_file_magic_test_file=/lib/libc.so
5913    ;;
5914  siemens)
5915    lt_cv_deplibs_check_method=pass_all
5916    ;;
5917  pc)
5918    lt_cv_deplibs_check_method=pass_all
5919    ;;
5920  esac
5921  ;;
5922
5923tpf*)
5924  lt_cv_deplibs_check_method=pass_all
5925  ;;
5926esac
5927
5928fi
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5930$as_echo "$lt_cv_deplibs_check_method" >&6; }
5931file_magic_cmd=$lt_cv_file_magic_cmd
5932deplibs_check_method=$lt_cv_deplibs_check_method
5933test -z "$deplibs_check_method" && deplibs_check_method=unknown
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946if test -n "$ac_tool_prefix"; then
5947  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5948set dummy ${ac_tool_prefix}ar; ac_word=$2
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950$as_echo_n "checking for $ac_word... " >&6; }
5951if ${ac_cv_prog_AR+:} false; then :
5952  $as_echo_n "(cached) " >&6
5953else
5954  if test -n "$AR"; then
5955  ac_cv_prog_AR="$AR" # Let the user override the test.
5956else
5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958for as_dir in $PATH
5959do
5960  IFS=$as_save_IFS
5961  test -z "$as_dir" && as_dir=.
5962    for ac_exec_ext in '' $ac_executable_extensions; do
5963  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5964    ac_cv_prog_AR="${ac_tool_prefix}ar"
5965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5966    break 2
5967  fi
5968done
5969  done
5970IFS=$as_save_IFS
5971
5972fi
5973fi
5974AR=$ac_cv_prog_AR
5975if test -n "$AR"; then
5976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5977$as_echo "$AR" >&6; }
5978else
5979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980$as_echo "no" >&6; }
5981fi
5982
5983
5984fi
5985if test -z "$ac_cv_prog_AR"; then
5986  ac_ct_AR=$AR
5987  # Extract the first word of "ar", so it can be a program name with args.
5988set dummy ar; ac_word=$2
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990$as_echo_n "checking for $ac_word... " >&6; }
5991if ${ac_cv_prog_ac_ct_AR+:} false; then :
5992  $as_echo_n "(cached) " >&6
5993else
5994  if test -n "$ac_ct_AR"; then
5995  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5996else
5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998for as_dir in $PATH
5999do
6000  IFS=$as_save_IFS
6001  test -z "$as_dir" && as_dir=.
6002    for ac_exec_ext in '' $ac_executable_extensions; do
6003  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004    ac_cv_prog_ac_ct_AR="ar"
6005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006    break 2
6007  fi
6008done
6009  done
6010IFS=$as_save_IFS
6011
6012fi
6013fi
6014ac_ct_AR=$ac_cv_prog_ac_ct_AR
6015if test -n "$ac_ct_AR"; then
6016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6017$as_echo "$ac_ct_AR" >&6; }
6018else
6019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020$as_echo "no" >&6; }
6021fi
6022
6023  if test "x$ac_ct_AR" = x; then
6024    AR="false"
6025  else
6026    case $cross_compiling:$ac_tool_warned in
6027yes:)
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6030ac_tool_warned=yes ;;
6031esac
6032    AR=$ac_ct_AR
6033  fi
6034else
6035  AR="$ac_cv_prog_AR"
6036fi
6037
6038test -z "$AR" && AR=ar
6039test -z "$AR_FLAGS" && AR_FLAGS=cru
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051if test -n "$ac_tool_prefix"; then
6052  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6053set dummy ${ac_tool_prefix}strip; ac_word=$2
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055$as_echo_n "checking for $ac_word... " >&6; }
6056if ${ac_cv_prog_STRIP+:} false; then :
6057  $as_echo_n "(cached) " >&6
6058else
6059  if test -n "$STRIP"; then
6060  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6061else
6062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063for as_dir in $PATH
6064do
6065  IFS=$as_save_IFS
6066  test -z "$as_dir" && as_dir=.
6067    for ac_exec_ext in '' $ac_executable_extensions; do
6068  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071    break 2
6072  fi
6073done
6074  done
6075IFS=$as_save_IFS
6076
6077fi
6078fi
6079STRIP=$ac_cv_prog_STRIP
6080if test -n "$STRIP"; then
6081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6082$as_echo "$STRIP" >&6; }
6083else
6084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085$as_echo "no" >&6; }
6086fi
6087
6088
6089fi
6090if test -z "$ac_cv_prog_STRIP"; then
6091  ac_ct_STRIP=$STRIP
6092  # Extract the first word of "strip", so it can be a program name with args.
6093set dummy strip; ac_word=$2
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095$as_echo_n "checking for $ac_word... " >&6; }
6096if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6097  $as_echo_n "(cached) " >&6
6098else
6099  if test -n "$ac_ct_STRIP"; then
6100  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6101else
6102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103for as_dir in $PATH
6104do
6105  IFS=$as_save_IFS
6106  test -z "$as_dir" && as_dir=.
6107    for ac_exec_ext in '' $ac_executable_extensions; do
6108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109    ac_cv_prog_ac_ct_STRIP="strip"
6110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111    break 2
6112  fi
6113done
6114  done
6115IFS=$as_save_IFS
6116
6117fi
6118fi
6119ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6120if test -n "$ac_ct_STRIP"; then
6121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6122$as_echo "$ac_ct_STRIP" >&6; }
6123else
6124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125$as_echo "no" >&6; }
6126fi
6127
6128  if test "x$ac_ct_STRIP" = x; then
6129    STRIP=":"
6130  else
6131    case $cross_compiling:$ac_tool_warned in
6132yes:)
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6135ac_tool_warned=yes ;;
6136esac
6137    STRIP=$ac_ct_STRIP
6138  fi
6139else
6140  STRIP="$ac_cv_prog_STRIP"
6141fi
6142
6143test -z "$STRIP" && STRIP=:
6144
6145
6146
6147
6148
6149
6150if test -n "$ac_tool_prefix"; then
6151  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6152set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154$as_echo_n "checking for $ac_word... " >&6; }
6155if ${ac_cv_prog_RANLIB+:} false; then :
6156  $as_echo_n "(cached) " >&6
6157else
6158  if test -n "$RANLIB"; then
6159  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6160else
6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162for as_dir in $PATH
6163do
6164  IFS=$as_save_IFS
6165  test -z "$as_dir" && as_dir=.
6166    for ac_exec_ext in '' $ac_executable_extensions; do
6167  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170    break 2
6171  fi
6172done
6173  done
6174IFS=$as_save_IFS
6175
6176fi
6177fi
6178RANLIB=$ac_cv_prog_RANLIB
6179if test -n "$RANLIB"; then
6180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6181$as_echo "$RANLIB" >&6; }
6182else
6183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184$as_echo "no" >&6; }
6185fi
6186
6187
6188fi
6189if test -z "$ac_cv_prog_RANLIB"; then
6190  ac_ct_RANLIB=$RANLIB
6191  # Extract the first word of "ranlib", so it can be a program name with args.
6192set dummy ranlib; ac_word=$2
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194$as_echo_n "checking for $ac_word... " >&6; }
6195if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6196  $as_echo_n "(cached) " >&6
6197else
6198  if test -n "$ac_ct_RANLIB"; then
6199  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6200else
6201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204  IFS=$as_save_IFS
6205  test -z "$as_dir" && as_dir=.
6206    for ac_exec_ext in '' $ac_executable_extensions; do
6207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208    ac_cv_prog_ac_ct_RANLIB="ranlib"
6209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210    break 2
6211  fi
6212done
6213  done
6214IFS=$as_save_IFS
6215
6216fi
6217fi
6218ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6219if test -n "$ac_ct_RANLIB"; then
6220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6221$as_echo "$ac_ct_RANLIB" >&6; }
6222else
6223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224$as_echo "no" >&6; }
6225fi
6226
6227  if test "x$ac_ct_RANLIB" = x; then
6228    RANLIB=":"
6229  else
6230    case $cross_compiling:$ac_tool_warned in
6231yes:)
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234ac_tool_warned=yes ;;
6235esac
6236    RANLIB=$ac_ct_RANLIB
6237  fi
6238else
6239  RANLIB="$ac_cv_prog_RANLIB"
6240fi
6241
6242test -z "$RANLIB" && RANLIB=:
6243
6244
6245
6246
6247
6248
6249# Determine commands to create old-style static archives.
6250old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6251old_postinstall_cmds='chmod 644 $oldlib'
6252old_postuninstall_cmds=
6253
6254if test -n "$RANLIB"; then
6255  case $host_os in
6256  openbsd*)
6257    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6258    ;;
6259  *)
6260    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6261    ;;
6262  esac
6263  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6264fi
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299# If no C compiler was specified, use CC.
6300LTCC=${LTCC-"$CC"}
6301
6302# If no C compiler flags were specified, use CFLAGS.
6303LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6304
6305# Allow CC to be a program name with arguments.
6306compiler=$CC
6307
6308
6309# Check for command to grab the raw symbol name followed by C symbol from nm.
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6311$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6312if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6313  $as_echo_n "(cached) " >&6
6314else
6315
6316# These are sane defaults that work on at least a few old systems.
6317# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6318
6319# Character class describing NM global symbol codes.
6320symcode='[BCDEGRST]'
6321
6322# Regexp to match symbols that can be accessed directly from C.
6323sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6324
6325# Define system-specific variables.
6326case $host_os in
6327aix*)
6328  symcode='[BCDT]'
6329  ;;
6330cygwin* | mingw* | pw32* | cegcc*)
6331  symcode='[ABCDGISTW]'
6332  ;;
6333hpux*)
6334  if test "$host_cpu" = ia64; then
6335    symcode='[ABCDEGRST]'
6336  fi
6337  ;;
6338irix* | nonstopux*)
6339  symcode='[BCDEGRST]'
6340  ;;
6341osf*)
6342  symcode='[BCDEGQRST]'
6343  ;;
6344solaris*)
6345  symcode='[BDRT]'
6346  ;;
6347sco3.2v5*)
6348  symcode='[DT]'
6349  ;;
6350sysv4.2uw2*)
6351  symcode='[DT]'
6352  ;;
6353sysv5* | sco5v6* | unixware* | OpenUNIX*)
6354  symcode='[ABDT]'
6355  ;;
6356sysv4)
6357  symcode='[DFNSTU]'
6358  ;;
6359esac
6360
6361# If we're using GNU nm, then use its standard symbol codes.
6362case `$NM -V 2>&1` in
6363*GNU* | *'with BFD'*)
6364  symcode='[ABCDGIRSTW]' ;;
6365esac
6366
6367# Transform an extracted symbol line into a proper C declaration.
6368# Some systems (esp. on ia64) link data and code symbols differently,
6369# so use this general approach.
6370lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6371
6372# Transform an extracted symbol line into symbol name and symbol address
6373lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6374lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6375
6376# Handle CRLF in mingw tool chain
6377opt_cr=
6378case $build_os in
6379mingw*)
6380  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6381  ;;
6382esac
6383
6384# Try without a prefix underscore, then with it.
6385for ac_symprfx in "" "_"; do
6386
6387  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6388  symxfrm="\\1 $ac_symprfx\\2 \\2"
6389
6390  # Write the raw and C identifiers.
6391  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6392    # Fake it for dumpbin and say T for any non-static function
6393    # and D for any global variable.
6394    # Also find C++ and __fastcall symbols from MSVC++,
6395    # which start with @ or ?.
6396    lt_cv_sys_global_symbol_pipe="$AWK '"\
6397"     {last_section=section; section=\$ 3};"\
6398"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6399"     \$ 0!~/External *\|/{next};"\
6400"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6401"     {if(hide[section]) next};"\
6402"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6403"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6404"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6405"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6406"     ' prfx=^$ac_symprfx"
6407  else
6408    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6409  fi
6410
6411  # Check to see that the pipe works correctly.
6412  pipe_works=no
6413
6414  rm -f conftest*
6415  cat > conftest.$ac_ext <<_LT_EOF
6416#ifdef __cplusplus
6417extern "C" {
6418#endif
6419char nm_test_var;
6420void nm_test_func(void);
6421void nm_test_func(void){}
6422#ifdef __cplusplus
6423}
6424#endif
6425int main(){nm_test_var='a';nm_test_func();return(0);}
6426_LT_EOF
6427
6428  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6429  (eval $ac_compile) 2>&5
6430  ac_status=$?
6431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6432  test $ac_status = 0; }; then
6433    # Now try to grab the symbols.
6434    nlist=conftest.nm
6435    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6436  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6437  ac_status=$?
6438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439  test $ac_status = 0; } && test -s "$nlist"; then
6440      # Try sorting and uniquifying the output.
6441      if sort "$nlist" | uniq > "$nlist"T; then
6442	mv -f "$nlist"T "$nlist"
6443      else
6444	rm -f "$nlist"T
6445      fi
6446
6447      # Make sure that we snagged all the symbols we need.
6448      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6449	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6450	  cat <<_LT_EOF > conftest.$ac_ext
6451#ifdef __cplusplus
6452extern "C" {
6453#endif
6454
6455_LT_EOF
6456	  # Now generate the symbol file.
6457	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6458
6459	  cat <<_LT_EOF >> conftest.$ac_ext
6460
6461/* The mapping between symbol names and symbols.  */
6462const struct {
6463  const char *name;
6464  void       *address;
6465}
6466lt__PROGRAM__LTX_preloaded_symbols[] =
6467{
6468  { "@PROGRAM@", (void *) 0 },
6469_LT_EOF
6470	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6471	  cat <<\_LT_EOF >> conftest.$ac_ext
6472  {0, (void *) 0}
6473};
6474
6475/* This works around a problem in FreeBSD linker */
6476#ifdef FREEBSD_WORKAROUND
6477static const void *lt_preloaded_setup() {
6478  return lt__PROGRAM__LTX_preloaded_symbols;
6479}
6480#endif
6481
6482#ifdef __cplusplus
6483}
6484#endif
6485_LT_EOF
6486	  # Now try linking the two files.
6487	  mv conftest.$ac_objext conftstm.$ac_objext
6488	  lt_save_LIBS="$LIBS"
6489	  lt_save_CFLAGS="$CFLAGS"
6490	  LIBS="conftstm.$ac_objext"
6491	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6492	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6493  (eval $ac_link) 2>&5
6494  ac_status=$?
6495  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6496  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6497	    pipe_works=yes
6498	  fi
6499	  LIBS="$lt_save_LIBS"
6500	  CFLAGS="$lt_save_CFLAGS"
6501	else
6502	  echo "cannot find nm_test_func in $nlist" >&5
6503	fi
6504      else
6505	echo "cannot find nm_test_var in $nlist" >&5
6506      fi
6507    else
6508      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6509    fi
6510  else
6511    echo "$progname: failed program was:" >&5
6512    cat conftest.$ac_ext >&5
6513  fi
6514  rm -rf conftest* conftst*
6515
6516  # Do not use the global_symbol_pipe unless it works.
6517  if test "$pipe_works" = yes; then
6518    break
6519  else
6520    lt_cv_sys_global_symbol_pipe=
6521  fi
6522done
6523
6524fi
6525
6526if test -z "$lt_cv_sys_global_symbol_pipe"; then
6527  lt_cv_sys_global_symbol_to_cdecl=
6528fi
6529if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6531$as_echo "failed" >&6; }
6532else
6533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6534$as_echo "ok" >&6; }
6535fi
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559# Check whether --enable-libtool-lock was given.
6560if test "${enable_libtool_lock+set}" = set; then :
6561  enableval=$enable_libtool_lock;
6562fi
6563
6564test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6565
6566# Some flags need to be propagated to the compiler or linker for good
6567# libtool support.
6568case $host in
6569ia64-*-hpux*)
6570  # Find out which ABI we are using.
6571  echo 'int i;' > conftest.$ac_ext
6572  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6573  (eval $ac_compile) 2>&5
6574  ac_status=$?
6575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6576  test $ac_status = 0; }; then
6577    case `/usr/bin/file conftest.$ac_objext` in
6578      *ELF-32*)
6579	HPUX_IA64_MODE="32"
6580	;;
6581      *ELF-64*)
6582	HPUX_IA64_MODE="64"
6583	;;
6584    esac
6585  fi
6586  rm -rf conftest*
6587  ;;
6588*-*-irix6*)
6589  # Find out which ABI we are using.
6590  echo '#line 6590 "configure"' > conftest.$ac_ext
6591  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6592  (eval $ac_compile) 2>&5
6593  ac_status=$?
6594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6595  test $ac_status = 0; }; then
6596    if test "$lt_cv_prog_gnu_ld" = yes; then
6597      case `/usr/bin/file conftest.$ac_objext` in
6598	*32-bit*)
6599	  LD="${LD-ld} -melf32bsmip"
6600	  ;;
6601	*N32*)
6602	  LD="${LD-ld} -melf32bmipn32"
6603	  ;;
6604	*64-bit*)
6605	  LD="${LD-ld} -melf64bmip"
6606	;;
6607      esac
6608    else
6609      case `/usr/bin/file conftest.$ac_objext` in
6610	*32-bit*)
6611	  LD="${LD-ld} -32"
6612	  ;;
6613	*N32*)
6614	  LD="${LD-ld} -n32"
6615	  ;;
6616	*64-bit*)
6617	  LD="${LD-ld} -64"
6618	  ;;
6619      esac
6620    fi
6621  fi
6622  rm -rf conftest*
6623  ;;
6624
6625x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6626s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6627  # Find out which ABI we are using.
6628  echo 'int i;' > conftest.$ac_ext
6629  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6630  (eval $ac_compile) 2>&5
6631  ac_status=$?
6632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6633  test $ac_status = 0; }; then
6634    case `/usr/bin/file conftest.o` in
6635      *32-bit*)
6636	case $host in
6637	  x86_64-*kfreebsd*-gnu)
6638	    LD="${LD-ld} -m elf_i386_fbsd"
6639	    ;;
6640	  x86_64-*linux*)
6641	    LD="${LD-ld} -m elf_i386"
6642	    ;;
6643	  ppc64-*linux*|powerpc64-*linux*)
6644	    LD="${LD-ld} -m elf32ppclinux"
6645	    ;;
6646	  s390x-*linux*)
6647	    LD="${LD-ld} -m elf_s390"
6648	    ;;
6649	  sparc64-*linux*)
6650	    LD="${LD-ld} -m elf32_sparc"
6651	    ;;
6652	esac
6653	;;
6654      *64-bit*)
6655	case $host in
6656	  x86_64-*kfreebsd*-gnu)
6657	    LD="${LD-ld} -m elf_x86_64_fbsd"
6658	    ;;
6659	  x86_64-*linux*)
6660	    LD="${LD-ld} -m elf_x86_64"
6661	    ;;
6662	  ppc*-*linux*|powerpc*-*linux*)
6663	    LD="${LD-ld} -m elf64ppc"
6664	    ;;
6665	  s390*-*linux*|s390*-*tpf*)
6666	    LD="${LD-ld} -m elf64_s390"
6667	    ;;
6668	  sparc*-*linux*)
6669	    LD="${LD-ld} -m elf64_sparc"
6670	    ;;
6671	esac
6672	;;
6673    esac
6674  fi
6675  rm -rf conftest*
6676  ;;
6677
6678*-*-sco3.2v5*)
6679  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6680  SAVE_CFLAGS="$CFLAGS"
6681  CFLAGS="$CFLAGS -belf"
6682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6683$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6684if ${lt_cv_cc_needs_belf+:} false; then :
6685  $as_echo_n "(cached) " >&6
6686else
6687  ac_ext=c
6688ac_cpp='$CPP $CPPFLAGS'
6689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6691ac_compiler_gnu=$ac_cv_c_compiler_gnu
6692
6693     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694/* end confdefs.h.  */
6695
6696int
6697main ()
6698{
6699
6700  ;
6701  return 0;
6702}
6703_ACEOF
6704if ac_fn_c_try_link "$LINENO"; then :
6705  lt_cv_cc_needs_belf=yes
6706else
6707  lt_cv_cc_needs_belf=no
6708fi
6709rm -f core conftest.err conftest.$ac_objext \
6710    conftest$ac_exeext conftest.$ac_ext
6711     ac_ext=c
6712ac_cpp='$CPP $CPPFLAGS'
6713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6715ac_compiler_gnu=$ac_cv_c_compiler_gnu
6716
6717fi
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6719$as_echo "$lt_cv_cc_needs_belf" >&6; }
6720  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6721    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6722    CFLAGS="$SAVE_CFLAGS"
6723  fi
6724  ;;
6725sparc*-*solaris*)
6726  # Find out which ABI we are using.
6727  echo 'int i;' > conftest.$ac_ext
6728  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6729  (eval $ac_compile) 2>&5
6730  ac_status=$?
6731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6732  test $ac_status = 0; }; then
6733    case `/usr/bin/file conftest.o` in
6734    *64-bit*)
6735      case $lt_cv_prog_gnu_ld in
6736      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6737      *)
6738	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6739	  LD="${LD-ld} -64"
6740	fi
6741	;;
6742      esac
6743      ;;
6744    esac
6745  fi
6746  rm -rf conftest*
6747  ;;
6748esac
6749
6750need_locks="$enable_libtool_lock"
6751
6752
6753  case $host_os in
6754    rhapsody* | darwin*)
6755    if test -n "$ac_tool_prefix"; then
6756  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6757set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759$as_echo_n "checking for $ac_word... " >&6; }
6760if ${ac_cv_prog_DSYMUTIL+:} false; then :
6761  $as_echo_n "(cached) " >&6
6762else
6763  if test -n "$DSYMUTIL"; then
6764  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769  IFS=$as_save_IFS
6770  test -z "$as_dir" && as_dir=.
6771    for ac_exec_ext in '' $ac_executable_extensions; do
6772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775    break 2
6776  fi
6777done
6778  done
6779IFS=$as_save_IFS
6780
6781fi
6782fi
6783DSYMUTIL=$ac_cv_prog_DSYMUTIL
6784if test -n "$DSYMUTIL"; then
6785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6786$as_echo "$DSYMUTIL" >&6; }
6787else
6788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789$as_echo "no" >&6; }
6790fi
6791
6792
6793fi
6794if test -z "$ac_cv_prog_DSYMUTIL"; then
6795  ac_ct_DSYMUTIL=$DSYMUTIL
6796  # Extract the first word of "dsymutil", so it can be a program name with args.
6797set dummy dsymutil; ac_word=$2
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799$as_echo_n "checking for $ac_word... " >&6; }
6800if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6801  $as_echo_n "(cached) " >&6
6802else
6803  if test -n "$ac_ct_DSYMUTIL"; then
6804  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6805else
6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807for as_dir in $PATH
6808do
6809  IFS=$as_save_IFS
6810  test -z "$as_dir" && as_dir=.
6811    for ac_exec_ext in '' $ac_executable_extensions; do
6812  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815    break 2
6816  fi
6817done
6818  done
6819IFS=$as_save_IFS
6820
6821fi
6822fi
6823ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6824if test -n "$ac_ct_DSYMUTIL"; then
6825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6826$as_echo "$ac_ct_DSYMUTIL" >&6; }
6827else
6828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829$as_echo "no" >&6; }
6830fi
6831
6832  if test "x$ac_ct_DSYMUTIL" = x; then
6833    DSYMUTIL=":"
6834  else
6835    case $cross_compiling:$ac_tool_warned in
6836yes:)
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6839ac_tool_warned=yes ;;
6840esac
6841    DSYMUTIL=$ac_ct_DSYMUTIL
6842  fi
6843else
6844  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6845fi
6846
6847    if test -n "$ac_tool_prefix"; then
6848  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6849set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851$as_echo_n "checking for $ac_word... " >&6; }
6852if ${ac_cv_prog_NMEDIT+:} false; then :
6853  $as_echo_n "(cached) " >&6
6854else
6855  if test -n "$NMEDIT"; then
6856  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6857else
6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861  IFS=$as_save_IFS
6862  test -z "$as_dir" && as_dir=.
6863    for ac_exec_ext in '' $ac_executable_extensions; do
6864  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6865    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867    break 2
6868  fi
6869done
6870  done
6871IFS=$as_save_IFS
6872
6873fi
6874fi
6875NMEDIT=$ac_cv_prog_NMEDIT
6876if test -n "$NMEDIT"; then
6877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6878$as_echo "$NMEDIT" >&6; }
6879else
6880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881$as_echo "no" >&6; }
6882fi
6883
6884
6885fi
6886if test -z "$ac_cv_prog_NMEDIT"; then
6887  ac_ct_NMEDIT=$NMEDIT
6888  # Extract the first word of "nmedit", so it can be a program name with args.
6889set dummy nmedit; ac_word=$2
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891$as_echo_n "checking for $ac_word... " >&6; }
6892if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6893  $as_echo_n "(cached) " >&6
6894else
6895  if test -n "$ac_ct_NMEDIT"; then
6896  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901  IFS=$as_save_IFS
6902  test -z "$as_dir" && as_dir=.
6903    for ac_exec_ext in '' $ac_executable_extensions; do
6904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6905    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907    break 2
6908  fi
6909done
6910  done
6911IFS=$as_save_IFS
6912
6913fi
6914fi
6915ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6916if test -n "$ac_ct_NMEDIT"; then
6917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6918$as_echo "$ac_ct_NMEDIT" >&6; }
6919else
6920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921$as_echo "no" >&6; }
6922fi
6923
6924  if test "x$ac_ct_NMEDIT" = x; then
6925    NMEDIT=":"
6926  else
6927    case $cross_compiling:$ac_tool_warned in
6928yes:)
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6931ac_tool_warned=yes ;;
6932esac
6933    NMEDIT=$ac_ct_NMEDIT
6934  fi
6935else
6936  NMEDIT="$ac_cv_prog_NMEDIT"
6937fi
6938
6939    if test -n "$ac_tool_prefix"; then
6940  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6941set dummy ${ac_tool_prefix}lipo; ac_word=$2
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943$as_echo_n "checking for $ac_word... " >&6; }
6944if ${ac_cv_prog_LIPO+:} false; then :
6945  $as_echo_n "(cached) " >&6
6946else
6947  if test -n "$LIPO"; then
6948  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6949else
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953  IFS=$as_save_IFS
6954  test -z "$as_dir" && as_dir=.
6955    for ac_exec_ext in '' $ac_executable_extensions; do
6956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6957    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959    break 2
6960  fi
6961done
6962  done
6963IFS=$as_save_IFS
6964
6965fi
6966fi
6967LIPO=$ac_cv_prog_LIPO
6968if test -n "$LIPO"; then
6969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6970$as_echo "$LIPO" >&6; }
6971else
6972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973$as_echo "no" >&6; }
6974fi
6975
6976
6977fi
6978if test -z "$ac_cv_prog_LIPO"; then
6979  ac_ct_LIPO=$LIPO
6980  # Extract the first word of "lipo", so it can be a program name with args.
6981set dummy lipo; ac_word=$2
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983$as_echo_n "checking for $ac_word... " >&6; }
6984if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6985  $as_echo_n "(cached) " >&6
6986else
6987  if test -n "$ac_ct_LIPO"; then
6988  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6989else
6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993  IFS=$as_save_IFS
6994  test -z "$as_dir" && as_dir=.
6995    for ac_exec_ext in '' $ac_executable_extensions; do
6996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6997    ac_cv_prog_ac_ct_LIPO="lipo"
6998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999    break 2
7000  fi
7001done
7002  done
7003IFS=$as_save_IFS
7004
7005fi
7006fi
7007ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7008if test -n "$ac_ct_LIPO"; then
7009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7010$as_echo "$ac_ct_LIPO" >&6; }
7011else
7012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013$as_echo "no" >&6; }
7014fi
7015
7016  if test "x$ac_ct_LIPO" = x; then
7017    LIPO=":"
7018  else
7019    case $cross_compiling:$ac_tool_warned in
7020yes:)
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7023ac_tool_warned=yes ;;
7024esac
7025    LIPO=$ac_ct_LIPO
7026  fi
7027else
7028  LIPO="$ac_cv_prog_LIPO"
7029fi
7030
7031    if test -n "$ac_tool_prefix"; then
7032  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7033set dummy ${ac_tool_prefix}otool; ac_word=$2
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035$as_echo_n "checking for $ac_word... " >&6; }
7036if ${ac_cv_prog_OTOOL+:} false; then :
7037  $as_echo_n "(cached) " >&6
7038else
7039  if test -n "$OTOOL"; then
7040  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7041else
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045  IFS=$as_save_IFS
7046  test -z "$as_dir" && as_dir=.
7047    for ac_exec_ext in '' $ac_executable_extensions; do
7048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7049    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051    break 2
7052  fi
7053done
7054  done
7055IFS=$as_save_IFS
7056
7057fi
7058fi
7059OTOOL=$ac_cv_prog_OTOOL
7060if test -n "$OTOOL"; then
7061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7062$as_echo "$OTOOL" >&6; }
7063else
7064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065$as_echo "no" >&6; }
7066fi
7067
7068
7069fi
7070if test -z "$ac_cv_prog_OTOOL"; then
7071  ac_ct_OTOOL=$OTOOL
7072  # Extract the first word of "otool", so it can be a program name with args.
7073set dummy otool; ac_word=$2
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075$as_echo_n "checking for $ac_word... " >&6; }
7076if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7077  $as_echo_n "(cached) " >&6
7078else
7079  if test -n "$ac_ct_OTOOL"; then
7080  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085  IFS=$as_save_IFS
7086  test -z "$as_dir" && as_dir=.
7087    for ac_exec_ext in '' $ac_executable_extensions; do
7088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7089    ac_cv_prog_ac_ct_OTOOL="otool"
7090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091    break 2
7092  fi
7093done
7094  done
7095IFS=$as_save_IFS
7096
7097fi
7098fi
7099ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7100if test -n "$ac_ct_OTOOL"; then
7101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7102$as_echo "$ac_ct_OTOOL" >&6; }
7103else
7104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105$as_echo "no" >&6; }
7106fi
7107
7108  if test "x$ac_ct_OTOOL" = x; then
7109    OTOOL=":"
7110  else
7111    case $cross_compiling:$ac_tool_warned in
7112yes:)
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7115ac_tool_warned=yes ;;
7116esac
7117    OTOOL=$ac_ct_OTOOL
7118  fi
7119else
7120  OTOOL="$ac_cv_prog_OTOOL"
7121fi
7122
7123    if test -n "$ac_tool_prefix"; then
7124  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7125set dummy ${ac_tool_prefix}otool64; ac_word=$2
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127$as_echo_n "checking for $ac_word... " >&6; }
7128if ${ac_cv_prog_OTOOL64+:} false; then :
7129  $as_echo_n "(cached) " >&6
7130else
7131  if test -n "$OTOOL64"; then
7132  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7133else
7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137  IFS=$as_save_IFS
7138  test -z "$as_dir" && as_dir=.
7139    for ac_exec_ext in '' $ac_executable_extensions; do
7140  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7141    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143    break 2
7144  fi
7145done
7146  done
7147IFS=$as_save_IFS
7148
7149fi
7150fi
7151OTOOL64=$ac_cv_prog_OTOOL64
7152if test -n "$OTOOL64"; then
7153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7154$as_echo "$OTOOL64" >&6; }
7155else
7156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157$as_echo "no" >&6; }
7158fi
7159
7160
7161fi
7162if test -z "$ac_cv_prog_OTOOL64"; then
7163  ac_ct_OTOOL64=$OTOOL64
7164  # Extract the first word of "otool64", so it can be a program name with args.
7165set dummy otool64; ac_word=$2
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167$as_echo_n "checking for $ac_word... " >&6; }
7168if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7169  $as_echo_n "(cached) " >&6
7170else
7171  if test -n "$ac_ct_OTOOL64"; then
7172  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7173else
7174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177  IFS=$as_save_IFS
7178  test -z "$as_dir" && as_dir=.
7179    for ac_exec_ext in '' $ac_executable_extensions; do
7180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7181    ac_cv_prog_ac_ct_OTOOL64="otool64"
7182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183    break 2
7184  fi
7185done
7186  done
7187IFS=$as_save_IFS
7188
7189fi
7190fi
7191ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7192if test -n "$ac_ct_OTOOL64"; then
7193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7194$as_echo "$ac_ct_OTOOL64" >&6; }
7195else
7196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197$as_echo "no" >&6; }
7198fi
7199
7200  if test "x$ac_ct_OTOOL64" = x; then
7201    OTOOL64=":"
7202  else
7203    case $cross_compiling:$ac_tool_warned in
7204yes:)
7205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7207ac_tool_warned=yes ;;
7208esac
7209    OTOOL64=$ac_ct_OTOOL64
7210  fi
7211else
7212  OTOOL64="$ac_cv_prog_OTOOL64"
7213fi
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7242$as_echo_n "checking for -single_module linker flag... " >&6; }
7243if ${lt_cv_apple_cc_single_mod+:} false; then :
7244  $as_echo_n "(cached) " >&6
7245else
7246  lt_cv_apple_cc_single_mod=no
7247      if test -z "${LT_MULTI_MODULE}"; then
7248	# By default we will add the -single_module flag. You can override
7249	# by either setting the environment variable LT_MULTI_MODULE
7250	# non-empty at configure time, or by adding -multi_module to the
7251	# link flags.
7252	rm -rf libconftest.dylib*
7253	echo "int foo(void){return 1;}" > conftest.c
7254	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7255-dynamiclib -Wl,-single_module conftest.c" >&5
7256	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7257	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7258        _lt_result=$?
7259	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7260	  lt_cv_apple_cc_single_mod=yes
7261	else
7262	  cat conftest.err >&5
7263	fi
7264	rm -rf libconftest.dylib*
7265	rm -f conftest.*
7266      fi
7267fi
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7269$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7270    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7271$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7272if ${lt_cv_ld_exported_symbols_list+:} false; then :
7273  $as_echo_n "(cached) " >&6
7274else
7275  lt_cv_ld_exported_symbols_list=no
7276      save_LDFLAGS=$LDFLAGS
7277      echo "_main" > conftest.sym
7278      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7279      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280/* end confdefs.h.  */
7281
7282int
7283main ()
7284{
7285
7286  ;
7287  return 0;
7288}
7289_ACEOF
7290if ac_fn_c_try_link "$LINENO"; then :
7291  lt_cv_ld_exported_symbols_list=yes
7292else
7293  lt_cv_ld_exported_symbols_list=no
7294fi
7295rm -f core conftest.err conftest.$ac_objext \
7296    conftest$ac_exeext conftest.$ac_ext
7297	LDFLAGS="$save_LDFLAGS"
7298
7299fi
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7301$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7302    case $host_os in
7303    rhapsody* | darwin1.[012])
7304      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7305    darwin1.*)
7306      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7307    darwin*) # darwin 5.x on
7308      # if running on 10.5 or later, the deployment target defaults
7309      # to the OS version, if on x86, and 10.4, the deployment
7310      # target defaults to 10.4. Don't you love it?
7311      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7312	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7313	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7314	10.[012]*)
7315	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7316	10.*)
7317	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7318      esac
7319    ;;
7320  esac
7321    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7322      _lt_dar_single_mod='$single_module'
7323    fi
7324    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7325      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7326    else
7327      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7328    fi
7329    if test "$DSYMUTIL" != ":"; then
7330      _lt_dsymutil='~$DSYMUTIL $lib || :'
7331    else
7332      _lt_dsymutil=
7333    fi
7334    ;;
7335  esac
7336
7337ac_ext=c
7338ac_cpp='$CPP $CPPFLAGS'
7339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7341ac_compiler_gnu=$ac_cv_c_compiler_gnu
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7343$as_echo_n "checking how to run the C preprocessor... " >&6; }
7344# On Suns, sometimes $CPP names a directory.
7345if test -n "$CPP" && test -d "$CPP"; then
7346  CPP=
7347fi
7348if test -z "$CPP"; then
7349  if ${ac_cv_prog_CPP+:} false; then :
7350  $as_echo_n "(cached) " >&6
7351else
7352      # Double quotes because CPP needs to be expanded
7353    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7354    do
7355      ac_preproc_ok=false
7356for ac_c_preproc_warn_flag in '' yes
7357do
7358  # Use a header file that comes with gcc, so configuring glibc
7359  # with a fresh cross-compiler works.
7360  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7361  # <limits.h> exists even on freestanding compilers.
7362  # On the NeXT, cc -E runs the code through the compiler's parser,
7363  # not just through cpp. "Syntax error" is here to catch this case.
7364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h.  */
7366#ifdef __STDC__
7367# include <limits.h>
7368#else
7369# include <assert.h>
7370#endif
7371		     Syntax error
7372_ACEOF
7373if ac_fn_c_try_cpp "$LINENO"; then :
7374
7375else
7376  # Broken: fails on valid input.
7377continue
7378fi
7379rm -f conftest.err conftest.i conftest.$ac_ext
7380
7381  # OK, works on sane cases.  Now check whether nonexistent headers
7382  # can be detected and how.
7383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384/* end confdefs.h.  */
7385#include <ac_nonexistent.h>
7386_ACEOF
7387if ac_fn_c_try_cpp "$LINENO"; then :
7388  # Broken: success on invalid input.
7389continue
7390else
7391  # Passes both tests.
7392ac_preproc_ok=:
7393break
7394fi
7395rm -f conftest.err conftest.i conftest.$ac_ext
7396
7397done
7398# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7399rm -f conftest.i conftest.err conftest.$ac_ext
7400if $ac_preproc_ok; then :
7401  break
7402fi
7403
7404    done
7405    ac_cv_prog_CPP=$CPP
7406
7407fi
7408  CPP=$ac_cv_prog_CPP
7409else
7410  ac_cv_prog_CPP=$CPP
7411fi
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7413$as_echo "$CPP" >&6; }
7414ac_preproc_ok=false
7415for ac_c_preproc_warn_flag in '' yes
7416do
7417  # Use a header file that comes with gcc, so configuring glibc
7418  # with a fresh cross-compiler works.
7419  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7420  # <limits.h> exists even on freestanding compilers.
7421  # On the NeXT, cc -E runs the code through the compiler's parser,
7422  # not just through cpp. "Syntax error" is here to catch this case.
7423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424/* end confdefs.h.  */
7425#ifdef __STDC__
7426# include <limits.h>
7427#else
7428# include <assert.h>
7429#endif
7430		     Syntax error
7431_ACEOF
7432if ac_fn_c_try_cpp "$LINENO"; then :
7433
7434else
7435  # Broken: fails on valid input.
7436continue
7437fi
7438rm -f conftest.err conftest.i conftest.$ac_ext
7439
7440  # OK, works on sane cases.  Now check whether nonexistent headers
7441  # can be detected and how.
7442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443/* end confdefs.h.  */
7444#include <ac_nonexistent.h>
7445_ACEOF
7446if ac_fn_c_try_cpp "$LINENO"; then :
7447  # Broken: success on invalid input.
7448continue
7449else
7450  # Passes both tests.
7451ac_preproc_ok=:
7452break
7453fi
7454rm -f conftest.err conftest.i conftest.$ac_ext
7455
7456done
7457# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7458rm -f conftest.i conftest.err conftest.$ac_ext
7459if $ac_preproc_ok; then :
7460
7461else
7462  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7464as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7465See \`config.log' for more details" "$LINENO" 5; }
7466fi
7467
7468ac_ext=c
7469ac_cpp='$CPP $CPPFLAGS'
7470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7472ac_compiler_gnu=$ac_cv_c_compiler_gnu
7473
7474
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7476$as_echo_n "checking for ANSI C header files... " >&6; }
7477if ${ac_cv_header_stdc+:} false; then :
7478  $as_echo_n "(cached) " >&6
7479else
7480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h.  */
7482#include <stdlib.h>
7483#include <stdarg.h>
7484#include <string.h>
7485#include <float.h>
7486
7487int
7488main ()
7489{
7490
7491  ;
7492  return 0;
7493}
7494_ACEOF
7495if ac_fn_c_try_compile "$LINENO"; then :
7496  ac_cv_header_stdc=yes
7497else
7498  ac_cv_header_stdc=no
7499fi
7500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501
7502if test $ac_cv_header_stdc = yes; then
7503  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505/* end confdefs.h.  */
7506#include <string.h>
7507
7508_ACEOF
7509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7510  $EGREP "memchr" >/dev/null 2>&1; then :
7511
7512else
7513  ac_cv_header_stdc=no
7514fi
7515rm -f conftest*
7516
7517fi
7518
7519if test $ac_cv_header_stdc = yes; then
7520  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522/* end confdefs.h.  */
7523#include <stdlib.h>
7524
7525_ACEOF
7526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7527  $EGREP "free" >/dev/null 2>&1; then :
7528
7529else
7530  ac_cv_header_stdc=no
7531fi
7532rm -f conftest*
7533
7534fi
7535
7536if test $ac_cv_header_stdc = yes; then
7537  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7538  if test "$cross_compiling" = yes; then :
7539  :
7540else
7541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542/* end confdefs.h.  */
7543#include <ctype.h>
7544#include <stdlib.h>
7545#if ((' ' & 0x0FF) == 0x020)
7546# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7547# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7548#else
7549# define ISLOWER(c) \
7550		   (('a' <= (c) && (c) <= 'i') \
7551		     || ('j' <= (c) && (c) <= 'r') \
7552		     || ('s' <= (c) && (c) <= 'z'))
7553# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7554#endif
7555
7556#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7557int
7558main ()
7559{
7560  int i;
7561  for (i = 0; i < 256; i++)
7562    if (XOR (islower (i), ISLOWER (i))
7563	|| toupper (i) != TOUPPER (i))
7564      return 2;
7565  return 0;
7566}
7567_ACEOF
7568if ac_fn_c_try_run "$LINENO"; then :
7569
7570else
7571  ac_cv_header_stdc=no
7572fi
7573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7574  conftest.$ac_objext conftest.beam conftest.$ac_ext
7575fi
7576
7577fi
7578fi
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7580$as_echo "$ac_cv_header_stdc" >&6; }
7581if test $ac_cv_header_stdc = yes; then
7582
7583$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7584
7585fi
7586
7587# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7588for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7589		  inttypes.h stdint.h unistd.h
7590do :
7591  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7592ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7593"
7594if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7595  cat >>confdefs.h <<_ACEOF
7596#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7597_ACEOF
7598
7599fi
7600
7601done
7602
7603
7604for ac_header in dlfcn.h
7605do :
7606  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7607"
7608if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7609  cat >>confdefs.h <<_ACEOF
7610#define HAVE_DLFCN_H 1
7611_ACEOF
7612
7613fi
7614
7615done
7616
7617
7618
7619ac_ext=cpp
7620ac_cpp='$CXXCPP $CPPFLAGS'
7621ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7624if test -z "$CXX"; then
7625  if test -n "$CCC"; then
7626    CXX=$CCC
7627  else
7628    if test -n "$ac_tool_prefix"; then
7629  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7630  do
7631    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7632set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634$as_echo_n "checking for $ac_word... " >&6; }
7635if ${ac_cv_prog_CXX+:} false; then :
7636  $as_echo_n "(cached) " >&6
7637else
7638  if test -n "$CXX"; then
7639  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7640else
7641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH
7643do
7644  IFS=$as_save_IFS
7645  test -z "$as_dir" && as_dir=.
7646    for ac_exec_ext in '' $ac_executable_extensions; do
7647  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7648    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650    break 2
7651  fi
7652done
7653  done
7654IFS=$as_save_IFS
7655
7656fi
7657fi
7658CXX=$ac_cv_prog_CXX
7659if test -n "$CXX"; then
7660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7661$as_echo "$CXX" >&6; }
7662else
7663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664$as_echo "no" >&6; }
7665fi
7666
7667
7668    test -n "$CXX" && break
7669  done
7670fi
7671if test -z "$CXX"; then
7672  ac_ct_CXX=$CXX
7673  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7674do
7675  # Extract the first word of "$ac_prog", so it can be a program name with args.
7676set dummy $ac_prog; ac_word=$2
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678$as_echo_n "checking for $ac_word... " >&6; }
7679if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7680  $as_echo_n "(cached) " >&6
7681else
7682  if test -n "$ac_ct_CXX"; then
7683  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7684else
7685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686for as_dir in $PATH
7687do
7688  IFS=$as_save_IFS
7689  test -z "$as_dir" && as_dir=.
7690    for ac_exec_ext in '' $ac_executable_extensions; do
7691  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7692    ac_cv_prog_ac_ct_CXX="$ac_prog"
7693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694    break 2
7695  fi
7696done
7697  done
7698IFS=$as_save_IFS
7699
7700fi
7701fi
7702ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7703if test -n "$ac_ct_CXX"; then
7704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7705$as_echo "$ac_ct_CXX" >&6; }
7706else
7707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708$as_echo "no" >&6; }
7709fi
7710
7711
7712  test -n "$ac_ct_CXX" && break
7713done
7714
7715  if test "x$ac_ct_CXX" = x; then
7716    CXX="g++"
7717  else
7718    case $cross_compiling:$ac_tool_warned in
7719yes:)
7720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7722ac_tool_warned=yes ;;
7723esac
7724    CXX=$ac_ct_CXX
7725  fi
7726fi
7727
7728  fi
7729fi
7730# Provide some information about the compiler.
7731$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7732set X $ac_compile
7733ac_compiler=$2
7734for ac_option in --version -v -V -qversion; do
7735  { { ac_try="$ac_compiler $ac_option >&5"
7736case "(($ac_try" in
7737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738  *) ac_try_echo=$ac_try;;
7739esac
7740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7741$as_echo "$ac_try_echo"; } >&5
7742  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7743  ac_status=$?
7744  if test -s conftest.err; then
7745    sed '10a\
7746... rest of stderr output deleted ...
7747         10q' conftest.err >conftest.er1
7748    cat conftest.er1 >&5
7749  fi
7750  rm -f conftest.er1 conftest.err
7751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7752  test $ac_status = 0; }
7753done
7754
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7756$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7757if ${ac_cv_cxx_compiler_gnu+:} false; then :
7758  $as_echo_n "(cached) " >&6
7759else
7760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761/* end confdefs.h.  */
7762
7763int
7764main ()
7765{
7766#ifndef __GNUC__
7767       choke me
7768#endif
7769
7770  ;
7771  return 0;
7772}
7773_ACEOF
7774if ac_fn_cxx_try_compile "$LINENO"; then :
7775  ac_compiler_gnu=yes
7776else
7777  ac_compiler_gnu=no
7778fi
7779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7781
7782fi
7783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7784$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7785if test $ac_compiler_gnu = yes; then
7786  GXX=yes
7787else
7788  GXX=
7789fi
7790ac_test_CXXFLAGS=${CXXFLAGS+set}
7791ac_save_CXXFLAGS=$CXXFLAGS
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7793$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7794if ${ac_cv_prog_cxx_g+:} false; then :
7795  $as_echo_n "(cached) " >&6
7796else
7797  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7798   ac_cxx_werror_flag=yes
7799   ac_cv_prog_cxx_g=no
7800   CXXFLAGS="-g"
7801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802/* end confdefs.h.  */
7803
7804int
7805main ()
7806{
7807
7808  ;
7809  return 0;
7810}
7811_ACEOF
7812if ac_fn_cxx_try_compile "$LINENO"; then :
7813  ac_cv_prog_cxx_g=yes
7814else
7815  CXXFLAGS=""
7816      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817/* end confdefs.h.  */
7818
7819int
7820main ()
7821{
7822
7823  ;
7824  return 0;
7825}
7826_ACEOF
7827if ac_fn_cxx_try_compile "$LINENO"; then :
7828
7829else
7830  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7831	 CXXFLAGS="-g"
7832	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833/* end confdefs.h.  */
7834
7835int
7836main ()
7837{
7838
7839  ;
7840  return 0;
7841}
7842_ACEOF
7843if ac_fn_cxx_try_compile "$LINENO"; then :
7844  ac_cv_prog_cxx_g=yes
7845fi
7846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7847fi
7848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7849fi
7850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7851   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7852fi
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7854$as_echo "$ac_cv_prog_cxx_g" >&6; }
7855if test "$ac_test_CXXFLAGS" = set; then
7856  CXXFLAGS=$ac_save_CXXFLAGS
7857elif test $ac_cv_prog_cxx_g = yes; then
7858  if test "$GXX" = yes; then
7859    CXXFLAGS="-g -O2"
7860  else
7861    CXXFLAGS="-g"
7862  fi
7863else
7864  if test "$GXX" = yes; then
7865    CXXFLAGS="-O2"
7866  else
7867    CXXFLAGS=
7868  fi
7869fi
7870ac_ext=c
7871ac_cpp='$CPP $CPPFLAGS'
7872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7874ac_compiler_gnu=$ac_cv_c_compiler_gnu
7875
7876depcc="$CXX"  am_compiler_list=
7877
7878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7879$as_echo_n "checking dependency style of $depcc... " >&6; }
7880if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7881  $as_echo_n "(cached) " >&6
7882else
7883  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7884  # We make a subdir and do the tests there.  Otherwise we can end up
7885  # making bogus files that we don't know about and never remove.  For
7886  # instance it was reported that on HP-UX the gcc test will end up
7887  # making a dummy file named `D' -- because `-MD' means `put the output
7888  # in D'.
7889  rm -rf conftest.dir
7890  mkdir conftest.dir
7891  # Copy depcomp to subdir because otherwise we won't find it if we're
7892  # using a relative directory.
7893  cp "$am_depcomp" conftest.dir
7894  cd conftest.dir
7895  # We will build objects and dependencies in a subdirectory because
7896  # it helps to detect inapplicable dependency modes.  For instance
7897  # both Tru64's cc and ICC support -MD to output dependencies as a
7898  # side effect of compilation, but ICC will put the dependencies in
7899  # the current directory while Tru64 will put them in the object
7900  # directory.
7901  mkdir sub
7902
7903  am_cv_CXX_dependencies_compiler_type=none
7904  if test "$am_compiler_list" = ""; then
7905     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7906  fi
7907  am__universal=false
7908  case " $depcc " in #(
7909     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7910     esac
7911
7912  for depmode in $am_compiler_list; do
7913    # Setup a source with many dependencies, because some compilers
7914    # like to wrap large dependency lists on column 80 (with \), and
7915    # we should not choose a depcomp mode which is confused by this.
7916    #
7917    # We need to recreate these files for each test, as the compiler may
7918    # overwrite some of them when testing with obscure command lines.
7919    # This happens at least with the AIX C compiler.
7920    : > sub/conftest.c
7921    for i in 1 2 3 4 5 6; do
7922      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7923      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7924      # Solaris 8's {/usr,}/bin/sh.
7925      touch sub/conftst$i.h
7926    done
7927    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7928
7929    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7930    # mode.  It turns out that the SunPro C++ compiler does not properly
7931    # handle `-M -o', and we need to detect this.  Also, some Intel
7932    # versions had trouble with output in subdirs
7933    am__obj=sub/conftest.${OBJEXT-o}
7934    am__minus_obj="-o $am__obj"
7935    case $depmode in
7936    gcc)
7937      # This depmode causes a compiler race in universal mode.
7938      test "$am__universal" = false || continue
7939      ;;
7940    nosideeffect)
7941      # after this tag, mechanisms are not by side-effect, so they'll
7942      # only be used when explicitly requested
7943      if test "x$enable_dependency_tracking" = xyes; then
7944	continue
7945      else
7946	break
7947      fi
7948      ;;
7949    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7950      # This compiler won't grok `-c -o', but also, the minuso test has
7951      # not run yet.  These depmodes are late enough in the game, and
7952      # so weak that their functioning should not be impacted.
7953      am__obj=conftest.${OBJEXT-o}
7954      am__minus_obj=
7955      ;;
7956    none) break ;;
7957    esac
7958    if depmode=$depmode \
7959       source=sub/conftest.c object=$am__obj \
7960       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7961       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7962         >/dev/null 2>conftest.err &&
7963       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7964       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7965       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7966       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7967      # icc doesn't choke on unknown options, it will just issue warnings
7968      # or remarks (even with -Werror).  So we grep stderr for any message
7969      # that says an option was ignored or not supported.
7970      # When given -MP, icc 7.0 and 7.1 complain thusly:
7971      #   icc: Command line warning: ignoring option '-M'; no argument required
7972      # The diagnosis changed in icc 8.0:
7973      #   icc: Command line remark: option '-MP' not supported
7974      if (grep 'ignoring option' conftest.err ||
7975          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7976        am_cv_CXX_dependencies_compiler_type=$depmode
7977        break
7978      fi
7979    fi
7980  done
7981
7982  cd ..
7983  rm -rf conftest.dir
7984else
7985  am_cv_CXX_dependencies_compiler_type=none
7986fi
7987
7988fi
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7990$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7991CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7992
7993 if
7994  test "x$enable_dependency_tracking" != xno \
7995  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7996  am__fastdepCXX_TRUE=
7997  am__fastdepCXX_FALSE='#'
7998else
7999  am__fastdepCXX_TRUE='#'
8000  am__fastdepCXX_FALSE=
8001fi
8002
8003
8004if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8005    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8006    (test "X$CXX" != "Xg++"))) ; then
8007  ac_ext=cpp
8008ac_cpp='$CXXCPP $CPPFLAGS'
8009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8013$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8014if test -z "$CXXCPP"; then
8015  if ${ac_cv_prog_CXXCPP+:} false; then :
8016  $as_echo_n "(cached) " >&6
8017else
8018      # Double quotes because CXXCPP needs to be expanded
8019    for CXXCPP in "$CXX -E" "/lib/cpp"
8020    do
8021      ac_preproc_ok=false
8022for ac_cxx_preproc_warn_flag in '' yes
8023do
8024  # Use a header file that comes with gcc, so configuring glibc
8025  # with a fresh cross-compiler works.
8026  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8027  # <limits.h> exists even on freestanding compilers.
8028  # On the NeXT, cc -E runs the code through the compiler's parser,
8029  # not just through cpp. "Syntax error" is here to catch this case.
8030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031/* end confdefs.h.  */
8032#ifdef __STDC__
8033# include <limits.h>
8034#else
8035# include <assert.h>
8036#endif
8037		     Syntax error
8038_ACEOF
8039if ac_fn_cxx_try_cpp "$LINENO"; then :
8040
8041else
8042  # Broken: fails on valid input.
8043continue
8044fi
8045rm -f conftest.err conftest.i conftest.$ac_ext
8046
8047  # OK, works on sane cases.  Now check whether nonexistent headers
8048  # can be detected and how.
8049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050/* end confdefs.h.  */
8051#include <ac_nonexistent.h>
8052_ACEOF
8053if ac_fn_cxx_try_cpp "$LINENO"; then :
8054  # Broken: success on invalid input.
8055continue
8056else
8057  # Passes both tests.
8058ac_preproc_ok=:
8059break
8060fi
8061rm -f conftest.err conftest.i conftest.$ac_ext
8062
8063done
8064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8065rm -f conftest.i conftest.err conftest.$ac_ext
8066if $ac_preproc_ok; then :
8067  break
8068fi
8069
8070    done
8071    ac_cv_prog_CXXCPP=$CXXCPP
8072
8073fi
8074  CXXCPP=$ac_cv_prog_CXXCPP
8075else
8076  ac_cv_prog_CXXCPP=$CXXCPP
8077fi
8078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8079$as_echo "$CXXCPP" >&6; }
8080ac_preproc_ok=false
8081for ac_cxx_preproc_warn_flag in '' yes
8082do
8083  # Use a header file that comes with gcc, so configuring glibc
8084  # with a fresh cross-compiler works.
8085  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8086  # <limits.h> exists even on freestanding compilers.
8087  # On the NeXT, cc -E runs the code through the compiler's parser,
8088  # not just through cpp. "Syntax error" is here to catch this case.
8089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090/* end confdefs.h.  */
8091#ifdef __STDC__
8092# include <limits.h>
8093#else
8094# include <assert.h>
8095#endif
8096		     Syntax error
8097_ACEOF
8098if ac_fn_cxx_try_cpp "$LINENO"; then :
8099
8100else
8101  # Broken: fails on valid input.
8102continue
8103fi
8104rm -f conftest.err conftest.i conftest.$ac_ext
8105
8106  # OK, works on sane cases.  Now check whether nonexistent headers
8107  # can be detected and how.
8108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109/* end confdefs.h.  */
8110#include <ac_nonexistent.h>
8111_ACEOF
8112if ac_fn_cxx_try_cpp "$LINENO"; then :
8113  # Broken: success on invalid input.
8114continue
8115else
8116  # Passes both tests.
8117ac_preproc_ok=:
8118break
8119fi
8120rm -f conftest.err conftest.i conftest.$ac_ext
8121
8122done
8123# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8124rm -f conftest.i conftest.err conftest.$ac_ext
8125if $ac_preproc_ok; then :
8126
8127else
8128  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8130_lt_caught_CXX_error=yes; }
8131fi
8132
8133ac_ext=c
8134ac_cpp='$CPP $CPPFLAGS'
8135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8137ac_compiler_gnu=$ac_cv_c_compiler_gnu
8138
8139else
8140  _lt_caught_CXX_error=yes
8141fi
8142
8143
8144
8145
8146
8147# Set options
8148
8149
8150
8151        enable_dlopen=no
8152
8153
8154  enable_win32_dll=no
8155
8156
8157            # Check whether --enable-shared was given.
8158if test "${enable_shared+set}" = set; then :
8159  enableval=$enable_shared; p=${PACKAGE-default}
8160    case $enableval in
8161    yes) enable_shared=yes ;;
8162    no) enable_shared=no ;;
8163    *)
8164      enable_shared=no
8165      # Look at the argument we got.  We use all the common list separators.
8166      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8167      for pkg in $enableval; do
8168	IFS="$lt_save_ifs"
8169	if test "X$pkg" = "X$p"; then
8170	  enable_shared=yes
8171	fi
8172      done
8173      IFS="$lt_save_ifs"
8174      ;;
8175    esac
8176else
8177  enable_shared=yes
8178fi
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188  # Check whether --enable-static was given.
8189if test "${enable_static+set}" = set; then :
8190  enableval=$enable_static; p=${PACKAGE-default}
8191    case $enableval in
8192    yes) enable_static=yes ;;
8193    no) enable_static=no ;;
8194    *)
8195     enable_static=no
8196      # Look at the argument we got.  We use all the common list separators.
8197      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8198      for pkg in $enableval; do
8199	IFS="$lt_save_ifs"
8200	if test "X$pkg" = "X$p"; then
8201	  enable_static=yes
8202	fi
8203      done
8204      IFS="$lt_save_ifs"
8205      ;;
8206    esac
8207else
8208  enable_static=yes
8209fi
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220# Check whether --with-pic was given.
8221if test "${with_pic+set}" = set; then :
8222  withval=$with_pic; pic_mode="$withval"
8223else
8224  pic_mode=default
8225fi
8226
8227
8228test -z "$pic_mode" && pic_mode=default
8229
8230
8231
8232
8233
8234
8235
8236  # Check whether --enable-fast-install was given.
8237if test "${enable_fast_install+set}" = set; then :
8238  enableval=$enable_fast_install; p=${PACKAGE-default}
8239    case $enableval in
8240    yes) enable_fast_install=yes ;;
8241    no) enable_fast_install=no ;;
8242    *)
8243      enable_fast_install=no
8244      # Look at the argument we got.  We use all the common list separators.
8245      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8246      for pkg in $enableval; do
8247	IFS="$lt_save_ifs"
8248	if test "X$pkg" = "X$p"; then
8249	  enable_fast_install=yes
8250	fi
8251      done
8252      IFS="$lt_save_ifs"
8253      ;;
8254    esac
8255else
8256  enable_fast_install=yes
8257fi
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269# This can be used to rebuild libtool when needed
8270LIBTOOL_DEPS="$ltmain"
8271
8272# Always use our own libtool.
8273LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299test -z "$LN_S" && LN_S="ln -s"
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314if test -n "${ZSH_VERSION+set}" ; then
8315   setopt NO_GLOB_SUBST
8316fi
8317
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8319$as_echo_n "checking for objdir... " >&6; }
8320if ${lt_cv_objdir+:} false; then :
8321  $as_echo_n "(cached) " >&6
8322else
8323  rm -f .libs 2>/dev/null
8324mkdir .libs 2>/dev/null
8325if test -d .libs; then
8326  lt_cv_objdir=.libs
8327else
8328  # MS-DOS does not allow filenames that begin with a dot.
8329  lt_cv_objdir=_libs
8330fi
8331rmdir .libs 2>/dev/null
8332fi
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8334$as_echo "$lt_cv_objdir" >&6; }
8335objdir=$lt_cv_objdir
8336
8337
8338
8339
8340
8341cat >>confdefs.h <<_ACEOF
8342#define LT_OBJDIR "$lt_cv_objdir/"
8343_ACEOF
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361case $host_os in
8362aix3*)
8363  # AIX sometimes has problems with the GCC collect2 program.  For some
8364  # reason, if we set the COLLECT_NAMES environment variable, the problems
8365  # vanish in a puff of smoke.
8366  if test "X${COLLECT_NAMES+set}" != Xset; then
8367    COLLECT_NAMES=
8368    export COLLECT_NAMES
8369  fi
8370  ;;
8371esac
8372
8373# Sed substitution that helps us do robust quoting.  It backslashifies
8374# metacharacters that are still active within double-quoted strings.
8375sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8376
8377# Same as above, but do not quote variable references.
8378double_quote_subst='s/\(["`\\]\)/\\\1/g'
8379
8380# Sed substitution to delay expansion of an escaped shell variable in a
8381# double_quote_subst'ed string.
8382delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8383
8384# Sed substitution to delay expansion of an escaped single quote.
8385delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8386
8387# Sed substitution to avoid accidental globbing in evaled expressions
8388no_glob_subst='s/\*/\\\*/g'
8389
8390# Global variables:
8391ofile=libtool
8392can_build_shared=yes
8393
8394# All known linkers require a `.a' archive for static linking (except MSVC,
8395# which needs '.lib').
8396libext=a
8397
8398with_gnu_ld="$lt_cv_prog_gnu_ld"
8399
8400old_CC="$CC"
8401old_CFLAGS="$CFLAGS"
8402
8403# Set sane defaults for various variables
8404test -z "$CC" && CC=cc
8405test -z "$LTCC" && LTCC=$CC
8406test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8407test -z "$LD" && LD=ld
8408test -z "$ac_objext" && ac_objext=o
8409
8410for cc_temp in $compiler""; do
8411  case $cc_temp in
8412    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8413    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8414    \-*) ;;
8415    *) break;;
8416  esac
8417done
8418cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8419
8420
8421# Only perform the check for file, if the check method requires it
8422test -z "$MAGIC_CMD" && MAGIC_CMD=file
8423case $deplibs_check_method in
8424file_magic*)
8425  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8426    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8427$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8428if ${lt_cv_path_MAGIC_CMD+:} false; then :
8429  $as_echo_n "(cached) " >&6
8430else
8431  case $MAGIC_CMD in
8432[\\/*] |  ?:[\\/]*)
8433  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8434  ;;
8435*)
8436  lt_save_MAGIC_CMD="$MAGIC_CMD"
8437  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8438  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8439  for ac_dir in $ac_dummy; do
8440    IFS="$lt_save_ifs"
8441    test -z "$ac_dir" && ac_dir=.
8442    if test -f $ac_dir/${ac_tool_prefix}file; then
8443      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8444      if test -n "$file_magic_test_file"; then
8445	case $deplibs_check_method in
8446	"file_magic "*)
8447	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8448	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8449	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8450	    $EGREP "$file_magic_regex" > /dev/null; then
8451	    :
8452	  else
8453	    cat <<_LT_EOF 1>&2
8454
8455*** Warning: the command libtool uses to detect shared libraries,
8456*** $file_magic_cmd, produces output that libtool cannot recognize.
8457*** The result is that libtool may fail to recognize shared libraries
8458*** as such.  This will affect the creation of libtool libraries that
8459*** depend on shared libraries, but programs linked with such libtool
8460*** libraries will work regardless of this problem.  Nevertheless, you
8461*** may want to report the problem to your system manager and/or to
8462*** bug-libtool@gnu.org
8463
8464_LT_EOF
8465	  fi ;;
8466	esac
8467      fi
8468      break
8469    fi
8470  done
8471  IFS="$lt_save_ifs"
8472  MAGIC_CMD="$lt_save_MAGIC_CMD"
8473  ;;
8474esac
8475fi
8476
8477MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8478if test -n "$MAGIC_CMD"; then
8479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8480$as_echo "$MAGIC_CMD" >&6; }
8481else
8482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483$as_echo "no" >&6; }
8484fi
8485
8486
8487
8488
8489
8490if test -z "$lt_cv_path_MAGIC_CMD"; then
8491  if test -n "$ac_tool_prefix"; then
8492    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8493$as_echo_n "checking for file... " >&6; }
8494if ${lt_cv_path_MAGIC_CMD+:} false; then :
8495  $as_echo_n "(cached) " >&6
8496else
8497  case $MAGIC_CMD in
8498[\\/*] |  ?:[\\/]*)
8499  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8500  ;;
8501*)
8502  lt_save_MAGIC_CMD="$MAGIC_CMD"
8503  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8504  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8505  for ac_dir in $ac_dummy; do
8506    IFS="$lt_save_ifs"
8507    test -z "$ac_dir" && ac_dir=.
8508    if test -f $ac_dir/file; then
8509      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8510      if test -n "$file_magic_test_file"; then
8511	case $deplibs_check_method in
8512	"file_magic "*)
8513	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8514	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8515	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8516	    $EGREP "$file_magic_regex" > /dev/null; then
8517	    :
8518	  else
8519	    cat <<_LT_EOF 1>&2
8520
8521*** Warning: the command libtool uses to detect shared libraries,
8522*** $file_magic_cmd, produces output that libtool cannot recognize.
8523*** The result is that libtool may fail to recognize shared libraries
8524*** as such.  This will affect the creation of libtool libraries that
8525*** depend on shared libraries, but programs linked with such libtool
8526*** libraries will work regardless of this problem.  Nevertheless, you
8527*** may want to report the problem to your system manager and/or to
8528*** bug-libtool@gnu.org
8529
8530_LT_EOF
8531	  fi ;;
8532	esac
8533      fi
8534      break
8535    fi
8536  done
8537  IFS="$lt_save_ifs"
8538  MAGIC_CMD="$lt_save_MAGIC_CMD"
8539  ;;
8540esac
8541fi
8542
8543MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8544if test -n "$MAGIC_CMD"; then
8545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8546$as_echo "$MAGIC_CMD" >&6; }
8547else
8548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549$as_echo "no" >&6; }
8550fi
8551
8552
8553  else
8554    MAGIC_CMD=:
8555  fi
8556fi
8557
8558  fi
8559  ;;
8560esac
8561
8562# Use C for the default configuration in the libtool script
8563
8564lt_save_CC="$CC"
8565ac_ext=c
8566ac_cpp='$CPP $CPPFLAGS'
8567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8569ac_compiler_gnu=$ac_cv_c_compiler_gnu
8570
8571
8572# Source file extension for C test sources.
8573ac_ext=c
8574
8575# Object file extension for compiled C test sources.
8576objext=o
8577objext=$objext
8578
8579# Code to be used in simple compile tests
8580lt_simple_compile_test_code="int some_variable = 0;"
8581
8582# Code to be used in simple link tests
8583lt_simple_link_test_code='int main(){return(0);}'
8584
8585
8586
8587
8588
8589
8590
8591# If no C compiler was specified, use CC.
8592LTCC=${LTCC-"$CC"}
8593
8594# If no C compiler flags were specified, use CFLAGS.
8595LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8596
8597# Allow CC to be a program name with arguments.
8598compiler=$CC
8599
8600# Save the default compiler, since it gets overwritten when the other
8601# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8602compiler_DEFAULT=$CC
8603
8604# save warnings/boilerplate of simple test code
8605ac_outfile=conftest.$ac_objext
8606echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8607eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8608_lt_compiler_boilerplate=`cat conftest.err`
8609$RM conftest*
8610
8611ac_outfile=conftest.$ac_objext
8612echo "$lt_simple_link_test_code" >conftest.$ac_ext
8613eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8614_lt_linker_boilerplate=`cat conftest.err`
8615$RM -r conftest*
8616
8617
8618## CAVEAT EMPTOR:
8619## There is no encapsulation within the following macros, do not change
8620## the running order or otherwise move them around unless you know exactly
8621## what you are doing...
8622if test -n "$compiler"; then
8623
8624lt_prog_compiler_no_builtin_flag=
8625
8626if test "$GCC" = yes; then
8627  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8628
8629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8630$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8631if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8632  $as_echo_n "(cached) " >&6
8633else
8634  lt_cv_prog_compiler_rtti_exceptions=no
8635   ac_outfile=conftest.$ac_objext
8636   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8637   lt_compiler_flag="-fno-rtti -fno-exceptions"
8638   # Insert the option either (1) after the last *FLAGS variable, or
8639   # (2) before a word containing "conftest.", or (3) at the end.
8640   # Note that $ac_compile itself does not contain backslashes and begins
8641   # with a dollar sign (not a hyphen), so the echo should work correctly.
8642   # The option is referenced via a variable to avoid confusing sed.
8643   lt_compile=`echo "$ac_compile" | $SED \
8644   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8645   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8646   -e 's:$: $lt_compiler_flag:'`
8647   (eval echo "\"\$as_me:8647: $lt_compile\"" >&5)
8648   (eval "$lt_compile" 2>conftest.err)
8649   ac_status=$?
8650   cat conftest.err >&5
8651   echo "$as_me:8651: \$? = $ac_status" >&5
8652   if (exit $ac_status) && test -s "$ac_outfile"; then
8653     # The compiler can only warn and ignore the option if not recognized
8654     # So say no if there are warnings other than the usual output.
8655     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8656     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8657     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8658       lt_cv_prog_compiler_rtti_exceptions=yes
8659     fi
8660   fi
8661   $RM conftest*
8662
8663fi
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8665$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8666
8667if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8668    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8669else
8670    :
8671fi
8672
8673fi
8674
8675
8676
8677
8678
8679
8680  lt_prog_compiler_wl=
8681lt_prog_compiler_pic=
8682lt_prog_compiler_static=
8683
8684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8685$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8686
8687  if test "$GCC" = yes; then
8688    lt_prog_compiler_wl='-Wl,'
8689    lt_prog_compiler_static='-static'
8690
8691    case $host_os in
8692      aix*)
8693      # All AIX code is PIC.
8694      if test "$host_cpu" = ia64; then
8695	# AIX 5 now supports IA64 processor
8696	lt_prog_compiler_static='-Bstatic'
8697      fi
8698      ;;
8699
8700    amigaos*)
8701      case $host_cpu in
8702      powerpc)
8703            # see comment about AmigaOS4 .so support
8704            lt_prog_compiler_pic='-fPIC'
8705        ;;
8706      m68k)
8707            # FIXME: we need at least 68020 code to build shared libraries, but
8708            # adding the `-m68020' flag to GCC prevents building anything better,
8709            # like `-m68040'.
8710            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8711        ;;
8712      esac
8713      ;;
8714
8715    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8716      # PIC is the default for these OSes.
8717      ;;
8718
8719    mingw* | cygwin* | pw32* | os2* | cegcc*)
8720      # This hack is so that the source file can tell whether it is being
8721      # built for inclusion in a dll (and should export symbols for example).
8722      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8723      # (--disable-auto-import) libraries
8724      lt_prog_compiler_pic='-DDLL_EXPORT'
8725      ;;
8726
8727    darwin* | rhapsody*)
8728      # PIC is the default on this platform
8729      # Common symbols not allowed in MH_DYLIB files
8730      lt_prog_compiler_pic='-fno-common'
8731      ;;
8732
8733    hpux*)
8734      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8735      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8736      # sets the default TLS model and affects inlining.
8737      case $host_cpu in
8738      hppa*64*)
8739	# +Z the default
8740	;;
8741      *)
8742	lt_prog_compiler_pic='-fPIC'
8743	;;
8744      esac
8745      ;;
8746
8747    interix[3-9]*)
8748      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8749      # Instead, we relocate shared libraries at runtime.
8750      ;;
8751
8752    msdosdjgpp*)
8753      # Just because we use GCC doesn't mean we suddenly get shared libraries
8754      # on systems that don't support them.
8755      lt_prog_compiler_can_build_shared=no
8756      enable_shared=no
8757      ;;
8758
8759    *nto* | *qnx*)
8760      # QNX uses GNU C++, but need to define -shared option too, otherwise
8761      # it will coredump.
8762      lt_prog_compiler_pic='-fPIC -shared'
8763      ;;
8764
8765    sysv4*MP*)
8766      if test -d /usr/nec; then
8767	lt_prog_compiler_pic=-Kconform_pic
8768      fi
8769      ;;
8770
8771    *)
8772      lt_prog_compiler_pic='-fPIC'
8773      ;;
8774    esac
8775  else
8776    # PORTME Check for flag to pass linker flags through the system compiler.
8777    case $host_os in
8778    aix*)
8779      lt_prog_compiler_wl='-Wl,'
8780      if test "$host_cpu" = ia64; then
8781	# AIX 5 now supports IA64 processor
8782	lt_prog_compiler_static='-Bstatic'
8783      else
8784	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8785      fi
8786      ;;
8787
8788    mingw* | cygwin* | pw32* | os2* | cegcc*)
8789      # This hack is so that the source file can tell whether it is being
8790      # built for inclusion in a dll (and should export symbols for example).
8791      lt_prog_compiler_pic='-DDLL_EXPORT'
8792      ;;
8793
8794    hpux9* | hpux10* | hpux11*)
8795      lt_prog_compiler_wl='-Wl,'
8796      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8797      # not for PA HP-UX.
8798      case $host_cpu in
8799      hppa*64*|ia64*)
8800	# +Z the default
8801	;;
8802      *)
8803	lt_prog_compiler_pic='+Z'
8804	;;
8805      esac
8806      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8807      lt_prog_compiler_static='${wl}-a ${wl}archive'
8808      ;;
8809
8810    irix5* | irix6* | nonstopux*)
8811      lt_prog_compiler_wl='-Wl,'
8812      # PIC (with -KPIC) is the default.
8813      lt_prog_compiler_static='-non_shared'
8814      ;;
8815
8816    linux* | k*bsd*-gnu)
8817      case $cc_basename in
8818      # old Intel for x86_64 which still supported -KPIC.
8819      ecc*)
8820	lt_prog_compiler_wl='-Wl,'
8821	lt_prog_compiler_pic='-KPIC'
8822	lt_prog_compiler_static='-static'
8823        ;;
8824      # icc used to be incompatible with GCC.
8825      # ICC 10 doesn't accept -KPIC any more.
8826      icc* | ifort*)
8827	lt_prog_compiler_wl='-Wl,'
8828	lt_prog_compiler_pic='-fPIC'
8829	lt_prog_compiler_static='-static'
8830        ;;
8831      # Lahey Fortran 8.1.
8832      lf95*)
8833	lt_prog_compiler_wl='-Wl,'
8834	lt_prog_compiler_pic='--shared'
8835	lt_prog_compiler_static='--static'
8836	;;
8837      pgcc* | pgf77* | pgf90* | pgf95*)
8838        # Portland Group compilers (*not* the Pentium gcc compiler,
8839	# which looks to be a dead project)
8840	lt_prog_compiler_wl='-Wl,'
8841	lt_prog_compiler_pic='-fpic'
8842	lt_prog_compiler_static='-Bstatic'
8843        ;;
8844      ccc*)
8845        lt_prog_compiler_wl='-Wl,'
8846        # All Alpha code is PIC.
8847        lt_prog_compiler_static='-non_shared'
8848        ;;
8849      xl*)
8850	# IBM XL C 8.0/Fortran 10.1 on PPC
8851	lt_prog_compiler_wl='-Wl,'
8852	lt_prog_compiler_pic='-qpic'
8853	lt_prog_compiler_static='-qstaticlink'
8854	;;
8855      *)
8856	case `$CC -V 2>&1 | sed 5q` in
8857	*Sun\ C*)
8858	  # Sun C 5.9
8859	  lt_prog_compiler_pic='-KPIC'
8860	  lt_prog_compiler_static='-Bstatic'
8861	  lt_prog_compiler_wl='-Wl,'
8862	  ;;
8863	*Sun\ F*)
8864	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8865	  lt_prog_compiler_pic='-KPIC'
8866	  lt_prog_compiler_static='-Bstatic'
8867	  lt_prog_compiler_wl=''
8868	  ;;
8869	esac
8870	;;
8871      esac
8872      ;;
8873
8874    newsos6)
8875      lt_prog_compiler_pic='-KPIC'
8876      lt_prog_compiler_static='-Bstatic'
8877      ;;
8878
8879    *nto* | *qnx*)
8880      # QNX uses GNU C++, but need to define -shared option too, otherwise
8881      # it will coredump.
8882      lt_prog_compiler_pic='-fPIC -shared'
8883      ;;
8884
8885    osf3* | osf4* | osf5*)
8886      lt_prog_compiler_wl='-Wl,'
8887      # All OSF/1 code is PIC.
8888      lt_prog_compiler_static='-non_shared'
8889      ;;
8890
8891    rdos*)
8892      lt_prog_compiler_static='-non_shared'
8893      ;;
8894
8895    solaris*)
8896      lt_prog_compiler_pic='-KPIC'
8897      lt_prog_compiler_static='-Bstatic'
8898      case $cc_basename in
8899      f77* | f90* | f95*)
8900	lt_prog_compiler_wl='-Qoption ld ';;
8901      *)
8902	lt_prog_compiler_wl='-Wl,';;
8903      esac
8904      ;;
8905
8906    sunos4*)
8907      lt_prog_compiler_wl='-Qoption ld '
8908      lt_prog_compiler_pic='-PIC'
8909      lt_prog_compiler_static='-Bstatic'
8910      ;;
8911
8912    sysv4 | sysv4.2uw2* | sysv4.3*)
8913      lt_prog_compiler_wl='-Wl,'
8914      lt_prog_compiler_pic='-KPIC'
8915      lt_prog_compiler_static='-Bstatic'
8916      ;;
8917
8918    sysv4*MP*)
8919      if test -d /usr/nec ;then
8920	lt_prog_compiler_pic='-Kconform_pic'
8921	lt_prog_compiler_static='-Bstatic'
8922      fi
8923      ;;
8924
8925    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8926      lt_prog_compiler_wl='-Wl,'
8927      lt_prog_compiler_pic='-KPIC'
8928      lt_prog_compiler_static='-Bstatic'
8929      ;;
8930
8931    unicos*)
8932      lt_prog_compiler_wl='-Wl,'
8933      lt_prog_compiler_can_build_shared=no
8934      ;;
8935
8936    uts4*)
8937      lt_prog_compiler_pic='-pic'
8938      lt_prog_compiler_static='-Bstatic'
8939      ;;
8940
8941    *)
8942      lt_prog_compiler_can_build_shared=no
8943      ;;
8944    esac
8945  fi
8946
8947case $host_os in
8948  # For platforms which do not support PIC, -DPIC is meaningless:
8949  *djgpp*)
8950    lt_prog_compiler_pic=
8951    ;;
8952  *)
8953    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8954    ;;
8955esac
8956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8957$as_echo "$lt_prog_compiler_pic" >&6; }
8958
8959
8960
8961
8962
8963
8964#
8965# Check to make sure the PIC flag actually works.
8966#
8967if test -n "$lt_prog_compiler_pic"; then
8968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8969$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8970if ${lt_cv_prog_compiler_pic_works+:} false; then :
8971  $as_echo_n "(cached) " >&6
8972else
8973  lt_cv_prog_compiler_pic_works=no
8974   ac_outfile=conftest.$ac_objext
8975   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8976   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8977   # Insert the option either (1) after the last *FLAGS variable, or
8978   # (2) before a word containing "conftest.", or (3) at the end.
8979   # Note that $ac_compile itself does not contain backslashes and begins
8980   # with a dollar sign (not a hyphen), so the echo should work correctly.
8981   # The option is referenced via a variable to avoid confusing sed.
8982   lt_compile=`echo "$ac_compile" | $SED \
8983   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8984   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8985   -e 's:$: $lt_compiler_flag:'`
8986   (eval echo "\"\$as_me:8986: $lt_compile\"" >&5)
8987   (eval "$lt_compile" 2>conftest.err)
8988   ac_status=$?
8989   cat conftest.err >&5
8990   echo "$as_me:8990: \$? = $ac_status" >&5
8991   if (exit $ac_status) && test -s "$ac_outfile"; then
8992     # The compiler can only warn and ignore the option if not recognized
8993     # So say no if there are warnings other than the usual output.
8994     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8995     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8996     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8997       lt_cv_prog_compiler_pic_works=yes
8998     fi
8999   fi
9000   $RM conftest*
9001
9002fi
9003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9004$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9005
9006if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9007    case $lt_prog_compiler_pic in
9008     "" | " "*) ;;
9009     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9010     esac
9011else
9012    lt_prog_compiler_pic=
9013     lt_prog_compiler_can_build_shared=no
9014fi
9015
9016fi
9017
9018
9019
9020
9021
9022
9023#
9024# Check to make sure the static flag actually works.
9025#
9026wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9028$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9029if ${lt_cv_prog_compiler_static_works+:} false; then :
9030  $as_echo_n "(cached) " >&6
9031else
9032  lt_cv_prog_compiler_static_works=no
9033   save_LDFLAGS="$LDFLAGS"
9034   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9035   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9036   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9037     # The linker can only warn and ignore the option if not recognized
9038     # So say no if there are warnings
9039     if test -s conftest.err; then
9040       # Append any errors to the config.log.
9041       cat conftest.err 1>&5
9042       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9043       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9044       if diff conftest.exp conftest.er2 >/dev/null; then
9045         lt_cv_prog_compiler_static_works=yes
9046       fi
9047     else
9048       lt_cv_prog_compiler_static_works=yes
9049     fi
9050   fi
9051   $RM -r conftest*
9052   LDFLAGS="$save_LDFLAGS"
9053
9054fi
9055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9056$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9057
9058if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9059    :
9060else
9061    lt_prog_compiler_static=
9062fi
9063
9064
9065
9066
9067
9068
9069
9070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9071$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9072if ${lt_cv_prog_compiler_c_o+:} false; then :
9073  $as_echo_n "(cached) " >&6
9074else
9075  lt_cv_prog_compiler_c_o=no
9076   $RM -r conftest 2>/dev/null
9077   mkdir conftest
9078   cd conftest
9079   mkdir out
9080   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9081
9082   lt_compiler_flag="-o out/conftest2.$ac_objext"
9083   # Insert the option either (1) after the last *FLAGS variable, or
9084   # (2) before a word containing "conftest.", or (3) at the end.
9085   # Note that $ac_compile itself does not contain backslashes and begins
9086   # with a dollar sign (not a hyphen), so the echo should work correctly.
9087   lt_compile=`echo "$ac_compile" | $SED \
9088   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9089   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9090   -e 's:$: $lt_compiler_flag:'`
9091   (eval echo "\"\$as_me:9091: $lt_compile\"" >&5)
9092   (eval "$lt_compile" 2>out/conftest.err)
9093   ac_status=$?
9094   cat out/conftest.err >&5
9095   echo "$as_me:9095: \$? = $ac_status" >&5
9096   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9097   then
9098     # The compiler can only warn and ignore the option if not recognized
9099     # So say no if there are warnings
9100     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9101     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9102     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9103       lt_cv_prog_compiler_c_o=yes
9104     fi
9105   fi
9106   chmod u+w . 2>&5
9107   $RM conftest*
9108   # SGI C++ compiler will create directory out/ii_files/ for
9109   # template instantiation
9110   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9111   $RM out/* && rmdir out
9112   cd ..
9113   $RM -r conftest
9114   $RM conftest*
9115
9116fi
9117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9118$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9119
9120
9121
9122
9123
9124
9125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9126$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9127if ${lt_cv_prog_compiler_c_o+:} false; then :
9128  $as_echo_n "(cached) " >&6
9129else
9130  lt_cv_prog_compiler_c_o=no
9131   $RM -r conftest 2>/dev/null
9132   mkdir conftest
9133   cd conftest
9134   mkdir out
9135   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9136
9137   lt_compiler_flag="-o out/conftest2.$ac_objext"
9138   # Insert the option either (1) after the last *FLAGS variable, or
9139   # (2) before a word containing "conftest.", or (3) at the end.
9140   # Note that $ac_compile itself does not contain backslashes and begins
9141   # with a dollar sign (not a hyphen), so the echo should work correctly.
9142   lt_compile=`echo "$ac_compile" | $SED \
9143   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9144   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9145   -e 's:$: $lt_compiler_flag:'`
9146   (eval echo "\"\$as_me:9146: $lt_compile\"" >&5)
9147   (eval "$lt_compile" 2>out/conftest.err)
9148   ac_status=$?
9149   cat out/conftest.err >&5
9150   echo "$as_me:9150: \$? = $ac_status" >&5
9151   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9152   then
9153     # The compiler can only warn and ignore the option if not recognized
9154     # So say no if there are warnings
9155     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9156     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9157     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9158       lt_cv_prog_compiler_c_o=yes
9159     fi
9160   fi
9161   chmod u+w . 2>&5
9162   $RM conftest*
9163   # SGI C++ compiler will create directory out/ii_files/ for
9164   # template instantiation
9165   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9166   $RM out/* && rmdir out
9167   cd ..
9168   $RM -r conftest
9169   $RM conftest*
9170
9171fi
9172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9173$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9174
9175
9176
9177
9178hard_links="nottested"
9179if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9180  # do not overwrite the value of need_locks provided by the user
9181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9182$as_echo_n "checking if we can lock with hard links... " >&6; }
9183  hard_links=yes
9184  $RM conftest*
9185  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9186  touch conftest.a
9187  ln conftest.a conftest.b 2>&5 || hard_links=no
9188  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9190$as_echo "$hard_links" >&6; }
9191  if test "$hard_links" = no; then
9192    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9193$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9194    need_locks=warn
9195  fi
9196else
9197  need_locks=no
9198fi
9199
9200
9201
9202
9203
9204
9205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9206$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9207
9208  runpath_var=
9209  allow_undefined_flag=
9210  always_export_symbols=no
9211  archive_cmds=
9212  archive_expsym_cmds=
9213  compiler_needs_object=no
9214  enable_shared_with_static_runtimes=no
9215  export_dynamic_flag_spec=
9216  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9217  hardcode_automatic=no
9218  hardcode_direct=no
9219  hardcode_direct_absolute=no
9220  hardcode_libdir_flag_spec=
9221  hardcode_libdir_flag_spec_ld=
9222  hardcode_libdir_separator=
9223  hardcode_minus_L=no
9224  hardcode_shlibpath_var=unsupported
9225  inherit_rpath=no
9226  link_all_deplibs=unknown
9227  module_cmds=
9228  module_expsym_cmds=
9229  old_archive_from_new_cmds=
9230  old_archive_from_expsyms_cmds=
9231  thread_safe_flag_spec=
9232  whole_archive_flag_spec=
9233  # include_expsyms should be a list of space-separated symbols to be *always*
9234  # included in the symbol list
9235  include_expsyms=
9236  # exclude_expsyms can be an extended regexp of symbols to exclude
9237  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9238  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9239  # as well as any symbol that contains `d'.
9240  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9241  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9242  # platforms (ab)use it in PIC code, but their linkers get confused if
9243  # the symbol is explicitly referenced.  Since portable code cannot
9244  # rely on this symbol name, it's probably fine to never include it in
9245  # preloaded symbol tables.
9246  # Exclude shared library initialization/finalization symbols.
9247  extract_expsyms_cmds=
9248
9249  case $host_os in
9250  cygwin* | mingw* | pw32* | cegcc*)
9251    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9252    # When not using gcc, we currently assume that we are using
9253    # Microsoft Visual C++.
9254    if test "$GCC" != yes; then
9255      with_gnu_ld=no
9256    fi
9257    ;;
9258  interix*)
9259    # we just hope/assume this is gcc and not c89 (= MSVC++)
9260    with_gnu_ld=yes
9261    ;;
9262  openbsd*)
9263    with_gnu_ld=no
9264    ;;
9265  esac
9266
9267  ld_shlibs=yes
9268  if test "$with_gnu_ld" = yes; then
9269    # If archive_cmds runs LD, not CC, wlarc should be empty
9270    wlarc='${wl}'
9271
9272    # Set some defaults for GNU ld with shared library support. These
9273    # are reset later if shared libraries are not supported. Putting them
9274    # here allows them to be overridden if necessary.
9275    runpath_var=LD_RUN_PATH
9276    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9277    export_dynamic_flag_spec='${wl}--export-dynamic'
9278    # ancient GNU ld didn't support --whole-archive et. al.
9279    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9280      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9281    else
9282      whole_archive_flag_spec=
9283    fi
9284    supports_anon_versioning=no
9285    case `$LD -v 2>&1` in
9286      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9287      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9288      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9289      *\ 2.11.*) ;; # other 2.11 versions
9290      *) supports_anon_versioning=yes ;;
9291    esac
9292
9293    # See if GNU ld supports shared libraries.
9294    case $host_os in
9295    aix[3-9]*)
9296      # On AIX/PPC, the GNU linker is very broken
9297      if test "$host_cpu" != ia64; then
9298	ld_shlibs=no
9299	cat <<_LT_EOF 1>&2
9300
9301*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9302*** to be unable to reliably create shared libraries on AIX.
9303*** Therefore, libtool is disabling shared libraries support.  If you
9304*** really care for shared libraries, you may want to modify your PATH
9305*** so that a non-GNU linker is found, and then restart.
9306
9307_LT_EOF
9308      fi
9309      ;;
9310
9311    amigaos*)
9312      case $host_cpu in
9313      powerpc)
9314            # see comment about AmigaOS4 .so support
9315            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9316            archive_expsym_cmds=''
9317        ;;
9318      m68k)
9319            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)'
9320            hardcode_libdir_flag_spec='-L$libdir'
9321            hardcode_minus_L=yes
9322        ;;
9323      esac
9324      ;;
9325
9326    beos*)
9327      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9328	allow_undefined_flag=unsupported
9329	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9330	# support --undefined.  This deserves some investigation.  FIXME
9331	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9332      else
9333	ld_shlibs=no
9334      fi
9335      ;;
9336
9337    cygwin* | mingw* | pw32* | cegcc*)
9338      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9339      # as there is no search path for DLLs.
9340      hardcode_libdir_flag_spec='-L$libdir'
9341      allow_undefined_flag=unsupported
9342      always_export_symbols=no
9343      enable_shared_with_static_runtimes=yes
9344      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9345
9346      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9347        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9348	# If the export-symbols file already is a .def file (1st line
9349	# is EXPORTS), use it as is; otherwise, prepend...
9350	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9351	  cp $export_symbols $output_objdir/$soname.def;
9352	else
9353	  echo EXPORTS > $output_objdir/$soname.def;
9354	  cat $export_symbols >> $output_objdir/$soname.def;
9355	fi~
9356	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9357      else
9358	ld_shlibs=no
9359      fi
9360      ;;
9361
9362    interix[3-9]*)
9363      hardcode_direct=no
9364      hardcode_shlibpath_var=no
9365      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9366      export_dynamic_flag_spec='${wl}-E'
9367      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9368      # Instead, shared libraries are loaded at an image base (0x10000000 by
9369      # default) and relocated if they conflict, which is a slow very memory
9370      # consuming and fragmenting process.  To avoid this, we pick a random,
9371      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9372      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9373      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9374      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'
9375      ;;
9376
9377    gnu* | linux* | tpf* | k*bsd*-gnu)
9378      tmp_diet=no
9379      if test "$host_os" = linux-dietlibc; then
9380	case $cc_basename in
9381	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9382	esac
9383      fi
9384      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9385	 && test "$tmp_diet" = no
9386      then
9387	tmp_addflag=
9388	tmp_sharedflag='-shared'
9389	case $cc_basename,$host_cpu in
9390        pgcc*)				# Portland Group C compiler
9391	  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'
9392	  tmp_addflag=' $pic_flag'
9393	  ;;
9394	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9395	  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'
9396	  tmp_addflag=' $pic_flag -Mnomain' ;;
9397	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9398	  tmp_addflag=' -i_dynamic' ;;
9399	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9400	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9401	ifc* | ifort*)			# Intel Fortran compiler
9402	  tmp_addflag=' -nofor_main' ;;
9403	lf95*)				# Lahey Fortran 8.1
9404	  whole_archive_flag_spec=
9405	  tmp_sharedflag='--shared' ;;
9406	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9407	  tmp_sharedflag='-qmkshrobj'
9408	  tmp_addflag= ;;
9409	esac
9410	case `$CC -V 2>&1 | sed 5q` in
9411	*Sun\ C*)			# Sun C 5.9
9412	  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'
9413	  compiler_needs_object=yes
9414	  tmp_sharedflag='-G' ;;
9415	*Sun\ F*)			# Sun Fortran 8.3
9416	  tmp_sharedflag='-G' ;;
9417	esac
9418	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9419
9420        if test "x$supports_anon_versioning" = xyes; then
9421          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9422	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9423	    echo "local: *; };" >> $output_objdir/$libname.ver~
9424	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9425        fi
9426
9427	case $cc_basename in
9428	xlf*)
9429	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9430	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9431	  hardcode_libdir_flag_spec=
9432	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9433	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9434	  if test "x$supports_anon_versioning" = xyes; then
9435	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9436	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9437	      echo "local: *; };" >> $output_objdir/$libname.ver~
9438	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9439	  fi
9440	  ;;
9441	esac
9442      else
9443        ld_shlibs=no
9444      fi
9445      ;;
9446
9447    netbsd*)
9448      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9449	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9450	wlarc=
9451      else
9452	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9453	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9454      fi
9455      ;;
9456
9457    solaris*)
9458      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9459	ld_shlibs=no
9460	cat <<_LT_EOF 1>&2
9461
9462*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9463*** create shared libraries on Solaris systems.  Therefore, libtool
9464*** is disabling shared libraries support.  We urge you to upgrade GNU
9465*** binutils to release 2.9.1 or newer.  Another option is to modify
9466*** your PATH or compiler configuration so that the native linker is
9467*** used, and then restart.
9468
9469_LT_EOF
9470      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9471	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9472	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9473      else
9474	ld_shlibs=no
9475      fi
9476      ;;
9477
9478    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9479      case `$LD -v 2>&1` in
9480        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9481	ld_shlibs=no
9482	cat <<_LT_EOF 1>&2
9483
9484*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9485*** reliably create shared libraries on SCO systems.  Therefore, libtool
9486*** is disabling shared libraries support.  We urge you to upgrade GNU
9487*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9488*** your PATH or compiler configuration so that the native linker is
9489*** used, and then restart.
9490
9491_LT_EOF
9492	;;
9493	*)
9494	  # For security reasons, it is highly recommended that you always
9495	  # use absolute paths for naming shared libraries, and exclude the
9496	  # DT_RUNPATH tag from executables and libraries.  But doing so
9497	  # requires that you compile everything twice, which is a pain.
9498	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9499	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9500	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9501	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9502	  else
9503	    ld_shlibs=no
9504	  fi
9505	;;
9506      esac
9507      ;;
9508
9509    sunos4*)
9510      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9511      wlarc=
9512      hardcode_direct=yes
9513      hardcode_shlibpath_var=no
9514      ;;
9515
9516    *)
9517      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9518	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9519	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9520      else
9521	ld_shlibs=no
9522      fi
9523      ;;
9524    esac
9525
9526    if test "$ld_shlibs" = no; then
9527      runpath_var=
9528      hardcode_libdir_flag_spec=
9529      export_dynamic_flag_spec=
9530      whole_archive_flag_spec=
9531    fi
9532  else
9533    # PORTME fill in a description of your system's linker (not GNU ld)
9534    case $host_os in
9535    aix3*)
9536      allow_undefined_flag=unsupported
9537      always_export_symbols=yes
9538      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'
9539      # Note: this linker hardcodes the directories in LIBPATH if there
9540      # are no directories specified by -L.
9541      hardcode_minus_L=yes
9542      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9543	# Neither direct hardcoding nor static linking is supported with a
9544	# broken collect2.
9545	hardcode_direct=unsupported
9546      fi
9547      ;;
9548
9549    aix[4-9]*)
9550      if test "$host_cpu" = ia64; then
9551	# On IA64, the linker does run time linking by default, so we don't
9552	# have to do anything special.
9553	aix_use_runtimelinking=no
9554	exp_sym_flag='-Bexport'
9555	no_entry_flag=""
9556      else
9557	# If we're using GNU nm, then we don't want the "-C" option.
9558	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9559	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9560	  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'
9561	else
9562	  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'
9563	fi
9564	aix_use_runtimelinking=no
9565
9566	# Test if we are trying to use run time linking or normal
9567	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9568	# need to do runtime linking.
9569	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9570	  for ld_flag in $LDFLAGS; do
9571	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9572	    aix_use_runtimelinking=yes
9573	    break
9574	  fi
9575	  done
9576	  ;;
9577	esac
9578
9579	exp_sym_flag='-bexport'
9580	no_entry_flag='-bnoentry'
9581      fi
9582
9583      # When large executables or shared objects are built, AIX ld can
9584      # have problems creating the table of contents.  If linking a library
9585      # or program results in "error TOC overflow" add -mminimal-toc to
9586      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9587      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9588
9589      archive_cmds=''
9590      hardcode_direct=yes
9591      hardcode_direct_absolute=yes
9592      hardcode_libdir_separator=':'
9593      link_all_deplibs=yes
9594      file_list_spec='${wl}-f,'
9595
9596      if test "$GCC" = yes; then
9597	case $host_os in aix4.[012]|aix4.[012].*)
9598	# We only want to do this on AIX 4.2 and lower, the check
9599	# below for broken collect2 doesn't work under 4.3+
9600	  collect2name=`${CC} -print-prog-name=collect2`
9601	  if test -f "$collect2name" &&
9602	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9603	  then
9604	  # We have reworked collect2
9605	  :
9606	  else
9607	  # We have old collect2
9608	  hardcode_direct=unsupported
9609	  # It fails to find uninstalled libraries when the uninstalled
9610	  # path is not listed in the libpath.  Setting hardcode_minus_L
9611	  # to unsupported forces relinking
9612	  hardcode_minus_L=yes
9613	  hardcode_libdir_flag_spec='-L$libdir'
9614	  hardcode_libdir_separator=
9615	  fi
9616	  ;;
9617	esac
9618	shared_flag='-shared'
9619	if test "$aix_use_runtimelinking" = yes; then
9620	  shared_flag="$shared_flag "'${wl}-G'
9621	fi
9622      else
9623	# not using gcc
9624	if test "$host_cpu" = ia64; then
9625	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9626	# chokes on -Wl,-G. The following line is correct:
9627	  shared_flag='-G'
9628	else
9629	  if test "$aix_use_runtimelinking" = yes; then
9630	    shared_flag='${wl}-G'
9631	  else
9632	    shared_flag='${wl}-bM:SRE'
9633	  fi
9634	fi
9635      fi
9636
9637      export_dynamic_flag_spec='${wl}-bexpall'
9638      # It seems that -bexpall does not export symbols beginning with
9639      # underscore (_), so it is better to generate a list of symbols to export.
9640      always_export_symbols=yes
9641      if test "$aix_use_runtimelinking" = yes; then
9642	# Warning - without using the other runtime loading flags (-brtl),
9643	# -berok will link without error, but may produce a broken library.
9644	allow_undefined_flag='-berok'
9645        # Determine the default libpath from the value encoded in an
9646        # empty executable.
9647        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648/* end confdefs.h.  */
9649
9650int
9651main ()
9652{
9653
9654  ;
9655  return 0;
9656}
9657_ACEOF
9658if ac_fn_c_try_link "$LINENO"; then :
9659
9660lt_aix_libpath_sed='
9661    /Import File Strings/,/^$/ {
9662	/^0/ {
9663	    s/^0  *\(.*\)$/\1/
9664	    p
9665	}
9666    }'
9667aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9668# Check for a 64-bit object if we didn't find anything.
9669if test -z "$aix_libpath"; then
9670  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9671fi
9672fi
9673rm -f core conftest.err conftest.$ac_objext \
9674    conftest$ac_exeext conftest.$ac_ext
9675if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9676
9677        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9678        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9679      else
9680	if test "$host_cpu" = ia64; then
9681	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9682	  allow_undefined_flag="-z nodefs"
9683	  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"
9684	else
9685	 # Determine the default libpath from the value encoded in an
9686	 # empty executable.
9687	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688/* end confdefs.h.  */
9689
9690int
9691main ()
9692{
9693
9694  ;
9695  return 0;
9696}
9697_ACEOF
9698if ac_fn_c_try_link "$LINENO"; then :
9699
9700lt_aix_libpath_sed='
9701    /Import File Strings/,/^$/ {
9702	/^0/ {
9703	    s/^0  *\(.*\)$/\1/
9704	    p
9705	}
9706    }'
9707aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9708# Check for a 64-bit object if we didn't find anything.
9709if test -z "$aix_libpath"; then
9710  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9711fi
9712fi
9713rm -f core conftest.err conftest.$ac_objext \
9714    conftest$ac_exeext conftest.$ac_ext
9715if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9716
9717	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9718	  # Warning - without using the other run time loading flags,
9719	  # -berok will link without error, but may produce a broken library.
9720	  no_undefined_flag=' ${wl}-bernotok'
9721	  allow_undefined_flag=' ${wl}-berok'
9722	  # Exported symbols can be pulled into shared objects from archives
9723	  whole_archive_flag_spec='$convenience'
9724	  archive_cmds_need_lc=yes
9725	  # This is similar to how AIX traditionally builds its shared libraries.
9726	  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'
9727	fi
9728      fi
9729      ;;
9730
9731    amigaos*)
9732      case $host_cpu in
9733      powerpc)
9734            # see comment about AmigaOS4 .so support
9735            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9736            archive_expsym_cmds=''
9737        ;;
9738      m68k)
9739            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)'
9740            hardcode_libdir_flag_spec='-L$libdir'
9741            hardcode_minus_L=yes
9742        ;;
9743      esac
9744      ;;
9745
9746    bsdi[45]*)
9747      export_dynamic_flag_spec=-rdynamic
9748      ;;
9749
9750    cygwin* | mingw* | pw32* | cegcc*)
9751      # When not using gcc, we currently assume that we are using
9752      # Microsoft Visual C++.
9753      # hardcode_libdir_flag_spec is actually meaningless, as there is
9754      # no search path for DLLs.
9755      hardcode_libdir_flag_spec=' '
9756      allow_undefined_flag=unsupported
9757      # Tell ltmain to make .lib files, not .a files.
9758      libext=lib
9759      # Tell ltmain to make .dll files, not .so files.
9760      shrext_cmds=".dll"
9761      # FIXME: Setting linknames here is a bad hack.
9762      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9763      # The linker will automatically build a .lib file if we build a DLL.
9764      old_archive_from_new_cmds='true'
9765      # FIXME: Should let the user specify the lib program.
9766      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9767      fix_srcfile_path='`cygpath -w "$srcfile"`'
9768      enable_shared_with_static_runtimes=yes
9769      ;;
9770
9771    darwin* | rhapsody*)
9772
9773
9774  archive_cmds_need_lc=no
9775  hardcode_direct=no
9776  hardcode_automatic=yes
9777  hardcode_shlibpath_var=unsupported
9778  whole_archive_flag_spec=''
9779  link_all_deplibs=yes
9780  allow_undefined_flag="$_lt_dar_allow_undefined"
9781  case $cc_basename in
9782     ifort*) _lt_dar_can_shared=yes ;;
9783     *) _lt_dar_can_shared=$GCC ;;
9784  esac
9785  if test "$_lt_dar_can_shared" = "yes"; then
9786    output_verbose_link_cmd=echo
9787    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9788    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9789    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9790    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9791
9792  else
9793  ld_shlibs=no
9794  fi
9795
9796      ;;
9797
9798    dgux*)
9799      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9800      hardcode_libdir_flag_spec='-L$libdir'
9801      hardcode_shlibpath_var=no
9802      ;;
9803
9804    freebsd1*)
9805      ld_shlibs=no
9806      ;;
9807
9808    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9809    # support.  Future versions do this automatically, but an explicit c++rt0.o
9810    # does not break anything, and helps significantly (at the cost of a little
9811    # extra space).
9812    freebsd2.2*)
9813      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9814      hardcode_libdir_flag_spec='-R$libdir'
9815      hardcode_direct=yes
9816      hardcode_shlibpath_var=no
9817      ;;
9818
9819    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9820    freebsd2*)
9821      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9822      hardcode_direct=yes
9823      hardcode_minus_L=yes
9824      hardcode_shlibpath_var=no
9825      ;;
9826
9827    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9828    freebsd* | dragonfly*)
9829      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9830      hardcode_libdir_flag_spec='-R$libdir'
9831      hardcode_direct=yes
9832      hardcode_shlibpath_var=no
9833      ;;
9834
9835    hpux9*)
9836      if test "$GCC" = yes; then
9837	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'
9838      else
9839	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'
9840      fi
9841      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9842      hardcode_libdir_separator=:
9843      hardcode_direct=yes
9844
9845      # hardcode_minus_L: Not really in the search PATH,
9846      # but as the default location of the library.
9847      hardcode_minus_L=yes
9848      export_dynamic_flag_spec='${wl}-E'
9849      ;;
9850
9851    hpux10*)
9852      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9853	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9854      else
9855	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9856      fi
9857      if test "$with_gnu_ld" = no; then
9858	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9859	hardcode_libdir_flag_spec_ld='+b $libdir'
9860	hardcode_libdir_separator=:
9861	hardcode_direct=yes
9862	hardcode_direct_absolute=yes
9863	export_dynamic_flag_spec='${wl}-E'
9864	# hardcode_minus_L: Not really in the search PATH,
9865	# but as the default location of the library.
9866	hardcode_minus_L=yes
9867      fi
9868      ;;
9869
9870    hpux11*)
9871      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9872	case $host_cpu in
9873	hppa*64*)
9874	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9875	  ;;
9876	ia64*)
9877	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9878	  ;;
9879	*)
9880	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9881	  ;;
9882	esac
9883      else
9884	case $host_cpu in
9885	hppa*64*)
9886	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9887	  ;;
9888	ia64*)
9889	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9890	  ;;
9891	*)
9892	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9893	  ;;
9894	esac
9895      fi
9896      if test "$with_gnu_ld" = no; then
9897	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9898	hardcode_libdir_separator=:
9899
9900	case $host_cpu in
9901	hppa*64*|ia64*)
9902	  hardcode_direct=no
9903	  hardcode_shlibpath_var=no
9904	  ;;
9905	*)
9906	  hardcode_direct=yes
9907	  hardcode_direct_absolute=yes
9908	  export_dynamic_flag_spec='${wl}-E'
9909
9910	  # hardcode_minus_L: Not really in the search PATH,
9911	  # but as the default location of the library.
9912	  hardcode_minus_L=yes
9913	  ;;
9914	esac
9915      fi
9916      ;;
9917
9918    irix5* | irix6* | nonstopux*)
9919      if test "$GCC" = yes; then
9920	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9921	# Try to use the -exported_symbol ld option, if it does not
9922	# work, assume that -exports_file does not work either and
9923	# implicitly export all symbols.
9924        save_LDFLAGS="$LDFLAGS"
9925        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9926        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927/* end confdefs.h.  */
9928int foo(void) {}
9929_ACEOF
9930if ac_fn_c_try_link "$LINENO"; then :
9931  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9932
9933fi
9934rm -f core conftest.err conftest.$ac_objext \
9935    conftest$ac_exeext conftest.$ac_ext
9936        LDFLAGS="$save_LDFLAGS"
9937      else
9938	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9939	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9940      fi
9941      archive_cmds_need_lc='no'
9942      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9943      hardcode_libdir_separator=:
9944      inherit_rpath=yes
9945      link_all_deplibs=yes
9946      ;;
9947
9948    netbsd*)
9949      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9950	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9951      else
9952	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9953      fi
9954      hardcode_libdir_flag_spec='-R$libdir'
9955      hardcode_direct=yes
9956      hardcode_shlibpath_var=no
9957      ;;
9958
9959    newsos6)
9960      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9961      hardcode_direct=yes
9962      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9963      hardcode_libdir_separator=:
9964      hardcode_shlibpath_var=no
9965      ;;
9966
9967    *nto* | *qnx*)
9968      ;;
9969
9970    openbsd*)
9971      if test -f /usr/libexec/ld.so; then
9972	hardcode_direct=yes
9973	hardcode_shlibpath_var=no
9974	hardcode_direct_absolute=yes
9975	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9976	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9977	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9978	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9979	  export_dynamic_flag_spec='${wl}-E'
9980	else
9981	  case $host_os in
9982	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9983	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9984	     hardcode_libdir_flag_spec='-R$libdir'
9985	     ;;
9986	   *)
9987	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9988	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9989	     ;;
9990	  esac
9991	fi
9992      else
9993	ld_shlibs=no
9994      fi
9995      ;;
9996
9997    os2*)
9998      hardcode_libdir_flag_spec='-L$libdir'
9999      hardcode_minus_L=yes
10000      allow_undefined_flag=unsupported
10001      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'
10002      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10003      ;;
10004
10005    osf3*)
10006      if test "$GCC" = yes; then
10007	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10008	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10009      else
10010	allow_undefined_flag=' -expect_unresolved \*'
10011	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10012      fi
10013      archive_cmds_need_lc='no'
10014      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10015      hardcode_libdir_separator=:
10016      ;;
10017
10018    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10019      if test "$GCC" = yes; then
10020	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10021	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10022	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10023      else
10024	allow_undefined_flag=' -expect_unresolved \*'
10025	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10026	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10027	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10028
10029	# Both c and cxx compiler support -rpath directly
10030	hardcode_libdir_flag_spec='-rpath $libdir'
10031      fi
10032      archive_cmds_need_lc='no'
10033      hardcode_libdir_separator=:
10034      ;;
10035
10036    solaris*)
10037      no_undefined_flag=' -z defs'
10038      if test "$GCC" = yes; then
10039	wlarc='${wl}'
10040	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10041	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10042	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10043      else
10044	case `$CC -V 2>&1` in
10045	*"Compilers 5.0"*)
10046	  wlarc=''
10047	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10048	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10049	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10050	  ;;
10051	*)
10052	  wlarc='${wl}'
10053	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10054	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10055	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10056	  ;;
10057	esac
10058      fi
10059      hardcode_libdir_flag_spec='-R$libdir'
10060      hardcode_shlibpath_var=no
10061      case $host_os in
10062      solaris2.[0-5] | solaris2.[0-5].*) ;;
10063      *)
10064	# The compiler driver will combine and reorder linker options,
10065	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10066	# but is careful enough not to reorder.
10067	# Supported since Solaris 2.6 (maybe 2.5.1?)
10068	if test "$GCC" = yes; then
10069	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10070	else
10071	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10072	fi
10073	;;
10074      esac
10075      link_all_deplibs=yes
10076      ;;
10077
10078    sunos4*)
10079      if test "x$host_vendor" = xsequent; then
10080	# Use $CC to link under sequent, because it throws in some extra .o
10081	# files that make .init and .fini sections work.
10082	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10083      else
10084	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10085      fi
10086      hardcode_libdir_flag_spec='-L$libdir'
10087      hardcode_direct=yes
10088      hardcode_minus_L=yes
10089      hardcode_shlibpath_var=no
10090      ;;
10091
10092    sysv4)
10093      case $host_vendor in
10094	sni)
10095	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10096	  hardcode_direct=yes # is this really true???
10097	;;
10098	siemens)
10099	  ## LD is ld it makes a PLAMLIB
10100	  ## CC just makes a GrossModule.
10101	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10102	  reload_cmds='$CC -r -o $output$reload_objs'
10103	  hardcode_direct=no
10104        ;;
10105	motorola)
10106	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10108	;;
10109      esac
10110      runpath_var='LD_RUN_PATH'
10111      hardcode_shlibpath_var=no
10112      ;;
10113
10114    sysv4.3*)
10115      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10116      hardcode_shlibpath_var=no
10117      export_dynamic_flag_spec='-Bexport'
10118      ;;
10119
10120    sysv4*MP*)
10121      if test -d /usr/nec; then
10122	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10123	hardcode_shlibpath_var=no
10124	runpath_var=LD_RUN_PATH
10125	hardcode_runpath_var=yes
10126	ld_shlibs=yes
10127      fi
10128      ;;
10129
10130    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10131      no_undefined_flag='${wl}-z,text'
10132      archive_cmds_need_lc=no
10133      hardcode_shlibpath_var=no
10134      runpath_var='LD_RUN_PATH'
10135
10136      if test "$GCC" = yes; then
10137	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10138	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10139      else
10140	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10141	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10142      fi
10143      ;;
10144
10145    sysv5* | sco3.2v5* | sco5v6*)
10146      # Note: We can NOT use -z defs as we might desire, because we do not
10147      # link with -lc, and that would cause any symbols used from libc to
10148      # always be unresolved, which means just about no library would
10149      # ever link correctly.  If we're not using GNU ld we use -z text
10150      # though, which does catch some bad symbols but isn't as heavy-handed
10151      # as -z defs.
10152      no_undefined_flag='${wl}-z,text'
10153      allow_undefined_flag='${wl}-z,nodefs'
10154      archive_cmds_need_lc=no
10155      hardcode_shlibpath_var=no
10156      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10157      hardcode_libdir_separator=':'
10158      link_all_deplibs=yes
10159      export_dynamic_flag_spec='${wl}-Bexport'
10160      runpath_var='LD_RUN_PATH'
10161
10162      if test "$GCC" = yes; then
10163	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10165      else
10166	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10167	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10168      fi
10169      ;;
10170
10171    uts4*)
10172      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10173      hardcode_libdir_flag_spec='-L$libdir'
10174      hardcode_shlibpath_var=no
10175      ;;
10176
10177    *)
10178      ld_shlibs=no
10179      ;;
10180    esac
10181
10182    if test x$host_vendor = xsni; then
10183      case $host in
10184      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10185	export_dynamic_flag_spec='${wl}-Blargedynsym'
10186	;;
10187      esac
10188    fi
10189  fi
10190
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10192$as_echo "$ld_shlibs" >&6; }
10193test "$ld_shlibs" = no && can_build_shared=no
10194
10195with_gnu_ld=$with_gnu_ld
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211#
10212# Do we need to explicitly link libc?
10213#
10214case "x$archive_cmds_need_lc" in
10215x|xyes)
10216  # Assume -lc should be added
10217  archive_cmds_need_lc=yes
10218
10219  if test "$enable_shared" = yes && test "$GCC" = yes; then
10220    case $archive_cmds in
10221    *'~'*)
10222      # FIXME: we may have to deal with multi-command sequences.
10223      ;;
10224    '$CC '*)
10225      # Test whether the compiler implicitly links with -lc since on some
10226      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10227      # to ld, don't add -lc before -lgcc.
10228      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10229$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10230      $RM conftest*
10231      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10232
10233      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10234  (eval $ac_compile) 2>&5
10235  ac_status=$?
10236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10237  test $ac_status = 0; } 2>conftest.err; then
10238        soname=conftest
10239        lib=conftest
10240        libobjs=conftest.$ac_objext
10241        deplibs=
10242        wl=$lt_prog_compiler_wl
10243	pic_flag=$lt_prog_compiler_pic
10244        compiler_flags=-v
10245        linker_flags=-v
10246        verstring=
10247        output_objdir=.
10248        libname=conftest
10249        lt_save_allow_undefined_flag=$allow_undefined_flag
10250        allow_undefined_flag=
10251        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10252  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10253  ac_status=$?
10254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10255  test $ac_status = 0; }
10256        then
10257	  archive_cmds_need_lc=no
10258        else
10259	  archive_cmds_need_lc=yes
10260        fi
10261        allow_undefined_flag=$lt_save_allow_undefined_flag
10262      else
10263        cat conftest.err 1>&5
10264      fi
10265      $RM conftest*
10266      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10267$as_echo "$archive_cmds_need_lc" >&6; }
10268      ;;
10269    esac
10270  fi
10271  ;;
10272esac
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10431$as_echo_n "checking dynamic linker characteristics... " >&6; }
10432
10433if test "$GCC" = yes; then
10434  case $host_os in
10435    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10436    *) lt_awk_arg="/^libraries:/" ;;
10437  esac
10438  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10439  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10440    # if the path contains ";" then we assume it to be the separator
10441    # otherwise default to the standard path separator (i.e. ":") - it is
10442    # assumed that no part of a normal pathname contains ";" but that should
10443    # okay in the real world where ";" in dirpaths is itself problematic.
10444    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10445  else
10446    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10447  fi
10448  # Ok, now we have the path, separated by spaces, we can step through it
10449  # and add multilib dir if necessary.
10450  lt_tmp_lt_search_path_spec=
10451  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10452  for lt_sys_path in $lt_search_path_spec; do
10453    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10454      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10455    else
10456      test -d "$lt_sys_path" && \
10457	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10458    fi
10459  done
10460  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10461BEGIN {RS=" "; FS="/|\n";} {
10462  lt_foo="";
10463  lt_count=0;
10464  for (lt_i = NF; lt_i > 0; lt_i--) {
10465    if ($lt_i != "" && $lt_i != ".") {
10466      if ($lt_i == "..") {
10467        lt_count++;
10468      } else {
10469        if (lt_count == 0) {
10470          lt_foo="/" $lt_i lt_foo;
10471        } else {
10472          lt_count--;
10473        }
10474      }
10475    }
10476  }
10477  if (lt_foo != "") { lt_freq[lt_foo]++; }
10478  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10479}'`
10480  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10481else
10482  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10483fi
10484library_names_spec=
10485libname_spec='lib$name'
10486soname_spec=
10487shrext_cmds=".so"
10488postinstall_cmds=
10489postuninstall_cmds=
10490finish_cmds=
10491finish_eval=
10492shlibpath_var=
10493shlibpath_overrides_runpath=unknown
10494version_type=none
10495dynamic_linker="$host_os ld.so"
10496sys_lib_dlsearch_path_spec="/lib /usr/lib"
10497need_lib_prefix=unknown
10498hardcode_into_libs=no
10499
10500# when you set need_version to no, make sure it does not cause -set_version
10501# flags to be left without arguments
10502need_version=unknown
10503
10504case $host_os in
10505aix3*)
10506  version_type=linux
10507  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10508  shlibpath_var=LIBPATH
10509
10510  # AIX 3 has no versioning support, so we append a major version to the name.
10511  soname_spec='${libname}${release}${shared_ext}$major'
10512  ;;
10513
10514aix[4-9]*)
10515  version_type=linux
10516  need_lib_prefix=no
10517  need_version=no
10518  hardcode_into_libs=yes
10519  if test "$host_cpu" = ia64; then
10520    # AIX 5 supports IA64
10521    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10522    shlibpath_var=LD_LIBRARY_PATH
10523  else
10524    # With GCC up to 2.95.x, collect2 would create an import file
10525    # for dependence libraries.  The import file would start with
10526    # the line `#! .'.  This would cause the generated library to
10527    # depend on `.', always an invalid library.  This was fixed in
10528    # development snapshots of GCC prior to 3.0.
10529    case $host_os in
10530      aix4 | aix4.[01] | aix4.[01].*)
10531      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10532	   echo ' yes '
10533	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10534	:
10535      else
10536	can_build_shared=no
10537      fi
10538      ;;
10539    esac
10540    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10541    # soname into executable. Probably we can add versioning support to
10542    # collect2, so additional links can be useful in future.
10543    if test "$aix_use_runtimelinking" = yes; then
10544      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10545      # instead of lib<name>.a to let people know that these are not
10546      # typical AIX shared libraries.
10547      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10548    else
10549      # We preserve .a as extension for shared libraries through AIX4.2
10550      # and later when we are not doing run time linking.
10551      library_names_spec='${libname}${release}.a $libname.a'
10552      soname_spec='${libname}${release}${shared_ext}$major'
10553    fi
10554    shlibpath_var=LIBPATH
10555  fi
10556  ;;
10557
10558amigaos*)
10559  case $host_cpu in
10560  powerpc)
10561    # Since July 2007 AmigaOS4 officially supports .so libraries.
10562    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10563    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564    ;;
10565  m68k)
10566    library_names_spec='$libname.ixlibrary $libname.a'
10567    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10568    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'
10569    ;;
10570  esac
10571  ;;
10572
10573beos*)
10574  library_names_spec='${libname}${shared_ext}'
10575  dynamic_linker="$host_os ld.so"
10576  shlibpath_var=LIBRARY_PATH
10577  ;;
10578
10579bsdi[45]*)
10580  version_type=linux
10581  need_version=no
10582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583  soname_spec='${libname}${release}${shared_ext}$major'
10584  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10585  shlibpath_var=LD_LIBRARY_PATH
10586  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10587  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10588  # the default ld.so.conf also contains /usr/contrib/lib and
10589  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10590  # libtool to hard-code these into programs
10591  ;;
10592
10593cygwin* | mingw* | pw32* | cegcc*)
10594  version_type=windows
10595  shrext_cmds=".dll"
10596  need_version=no
10597  need_lib_prefix=no
10598
10599  case $GCC,$host_os in
10600  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10601    library_names_spec='$libname.dll.a'
10602    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10603    postinstall_cmds='base_file=`basename \${file}`~
10604      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10605      dldir=$destdir/`dirname \$dlpath`~
10606      test -d \$dldir || mkdir -p \$dldir~
10607      $install_prog $dir/$dlname \$dldir/$dlname~
10608      chmod a+x \$dldir/$dlname~
10609      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10610        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10611      fi'
10612    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10613      dlpath=$dir/\$dldll~
10614       $RM \$dlpath'
10615    shlibpath_overrides_runpath=yes
10616
10617    case $host_os in
10618    cygwin*)
10619      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10620      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10621      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10622      ;;
10623    mingw* | cegcc*)
10624      # MinGW DLLs use traditional 'lib' prefix
10625      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10626      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10627      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10628        # It is most probably a Windows format PATH printed by
10629        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10630        # path with ; separators, and with drive letters. We can handle the
10631        # drive letters (cygwin fileutils understands them), so leave them,
10632        # especially as we might pass files found there to a mingw objdump,
10633        # which wouldn't understand a cygwinified path. Ahh.
10634        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10635      else
10636        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10637      fi
10638      ;;
10639    pw32*)
10640      # pw32 DLLs use 'pw' prefix rather than 'lib'
10641      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10642      ;;
10643    esac
10644    ;;
10645
10646  *)
10647    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10648    ;;
10649  esac
10650  dynamic_linker='Win32 ld.exe'
10651  # FIXME: first we should search . and the directory the executable is in
10652  shlibpath_var=PATH
10653  ;;
10654
10655darwin* | rhapsody*)
10656  dynamic_linker="$host_os dyld"
10657  version_type=darwin
10658  need_lib_prefix=no
10659  need_version=no
10660  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10661  soname_spec='${libname}${release}${major}$shared_ext'
10662  shlibpath_overrides_runpath=yes
10663  shlibpath_var=DYLD_LIBRARY_PATH
10664  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10665
10666  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10667  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10668  ;;
10669
10670dgux*)
10671  version_type=linux
10672  need_lib_prefix=no
10673  need_version=no
10674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10675  soname_spec='${libname}${release}${shared_ext}$major'
10676  shlibpath_var=LD_LIBRARY_PATH
10677  ;;
10678
10679freebsd1*)
10680  dynamic_linker=no
10681  ;;
10682
10683freebsd* | dragonfly*)
10684  # DragonFly does not have aout.  When/if they implement a new
10685  # versioning mechanism, adjust this.
10686  if test -x /usr/bin/objformat; then
10687    objformat=`/usr/bin/objformat`
10688  else
10689    case $host_os in
10690    freebsd[123]*) objformat=aout ;;
10691    *) objformat=elf ;;
10692    esac
10693  fi
10694  version_type=freebsd-$objformat
10695  case $version_type in
10696    freebsd-elf*)
10697      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10698      need_version=no
10699      need_lib_prefix=no
10700      ;;
10701    freebsd-*)
10702      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10703      need_version=yes
10704      ;;
10705  esac
10706  shlibpath_var=LD_LIBRARY_PATH
10707  case $host_os in
10708  freebsd2*)
10709    shlibpath_overrides_runpath=yes
10710    ;;
10711  freebsd3.[01]* | freebsdelf3.[01]*)
10712    shlibpath_overrides_runpath=yes
10713    hardcode_into_libs=yes
10714    ;;
10715  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10716  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10717    shlibpath_overrides_runpath=no
10718    hardcode_into_libs=yes
10719    ;;
10720  *) # from 4.6 on, and DragonFly
10721    shlibpath_overrides_runpath=yes
10722    hardcode_into_libs=yes
10723    ;;
10724  esac
10725  ;;
10726
10727gnu*)
10728  version_type=linux
10729  need_lib_prefix=no
10730  need_version=no
10731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10732  soname_spec='${libname}${release}${shared_ext}$major'
10733  shlibpath_var=LD_LIBRARY_PATH
10734  hardcode_into_libs=yes
10735  ;;
10736
10737hpux9* | hpux10* | hpux11*)
10738  # Give a soname corresponding to the major version so that dld.sl refuses to
10739  # link against other versions.
10740  version_type=sunos
10741  need_lib_prefix=no
10742  need_version=no
10743  case $host_cpu in
10744  ia64*)
10745    shrext_cmds='.so'
10746    hardcode_into_libs=yes
10747    dynamic_linker="$host_os dld.so"
10748    shlibpath_var=LD_LIBRARY_PATH
10749    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10750    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751    soname_spec='${libname}${release}${shared_ext}$major'
10752    if test "X$HPUX_IA64_MODE" = X32; then
10753      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10754    else
10755      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10756    fi
10757    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10758    ;;
10759  hppa*64*)
10760    shrext_cmds='.sl'
10761    hardcode_into_libs=yes
10762    dynamic_linker="$host_os dld.sl"
10763    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10764    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10765    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10766    soname_spec='${libname}${release}${shared_ext}$major'
10767    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10768    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10769    ;;
10770  *)
10771    shrext_cmds='.sl'
10772    dynamic_linker="$host_os dld.sl"
10773    shlibpath_var=SHLIB_PATH
10774    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10775    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776    soname_spec='${libname}${release}${shared_ext}$major'
10777    ;;
10778  esac
10779  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10780  postinstall_cmds='chmod 555 $lib'
10781  ;;
10782
10783interix[3-9]*)
10784  version_type=linux
10785  need_lib_prefix=no
10786  need_version=no
10787  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10788  soname_spec='${libname}${release}${shared_ext}$major'
10789  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10790  shlibpath_var=LD_LIBRARY_PATH
10791  shlibpath_overrides_runpath=no
10792  hardcode_into_libs=yes
10793  ;;
10794
10795irix5* | irix6* | nonstopux*)
10796  case $host_os in
10797    nonstopux*) version_type=nonstopux ;;
10798    *)
10799	if test "$lt_cv_prog_gnu_ld" = yes; then
10800		version_type=linux
10801	else
10802		version_type=irix
10803	fi ;;
10804  esac
10805  need_lib_prefix=no
10806  need_version=no
10807  soname_spec='${libname}${release}${shared_ext}$major'
10808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10809  case $host_os in
10810  irix5* | nonstopux*)
10811    libsuff= shlibsuff=
10812    ;;
10813  *)
10814    case $LD in # libtool.m4 will add one of these switches to LD
10815    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10816      libsuff= shlibsuff= libmagic=32-bit;;
10817    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10818      libsuff=32 shlibsuff=N32 libmagic=N32;;
10819    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10820      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10821    *) libsuff= shlibsuff= libmagic=never-match;;
10822    esac
10823    ;;
10824  esac
10825  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10826  shlibpath_overrides_runpath=no
10827  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10828  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10829  hardcode_into_libs=yes
10830  ;;
10831
10832# No shared lib support for Linux oldld, aout, or coff.
10833linux*oldld* | linux*aout* | linux*coff*)
10834  dynamic_linker=no
10835  ;;
10836
10837# This must be Linux ELF.
10838linux* | k*bsd*-gnu)
10839  version_type=linux
10840  need_lib_prefix=no
10841  need_version=no
10842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843  soname_spec='${libname}${release}${shared_ext}$major'
10844  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10845  shlibpath_var=LD_LIBRARY_PATH
10846  shlibpath_overrides_runpath=no
10847  # Some binutils ld are patched to set DT_RUNPATH
10848  save_LDFLAGS=$LDFLAGS
10849  save_libdir=$libdir
10850  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10851       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853/* end confdefs.h.  */
10854
10855int
10856main ()
10857{
10858
10859  ;
10860  return 0;
10861}
10862_ACEOF
10863if ac_fn_c_try_link "$LINENO"; then :
10864  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10865  shlibpath_overrides_runpath=yes
10866fi
10867fi
10868rm -f core conftest.err conftest.$ac_objext \
10869    conftest$ac_exeext conftest.$ac_ext
10870  LDFLAGS=$save_LDFLAGS
10871  libdir=$save_libdir
10872
10873  # This implies no fast_install, which is unacceptable.
10874  # Some rework will be needed to allow for fast_install
10875  # before this can be enabled.
10876  hardcode_into_libs=yes
10877
10878  # Add ABI-specific directories to the system library path.
10879  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10880
10881  # Append ld.so.conf contents to the search path
10882  if test -f /etc/ld.so.conf; then
10883    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' ' '`
10884    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10885  fi
10886
10887  # We used to test for /lib/ld.so.1 and disable shared libraries on
10888  # powerpc, because MkLinux only supported shared libraries with the
10889  # GNU dynamic linker.  Since this was broken with cross compilers,
10890  # most powerpc-linux boxes support dynamic linking these days and
10891  # people can always --disable-shared, the test was removed, and we
10892  # assume the GNU/Linux dynamic linker is in use.
10893  dynamic_linker='GNU/Linux ld.so'
10894  ;;
10895
10896netbsd*)
10897  version_type=sunos
10898  need_lib_prefix=no
10899  need_version=no
10900  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10901    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10902    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10903    dynamic_linker='NetBSD (a.out) ld.so'
10904  else
10905    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10906    soname_spec='${libname}${release}${shared_ext}$major'
10907    dynamic_linker='NetBSD ld.elf_so'
10908  fi
10909  shlibpath_var=LD_LIBRARY_PATH
10910  shlibpath_overrides_runpath=yes
10911  hardcode_into_libs=yes
10912  ;;
10913
10914newsos6)
10915  version_type=linux
10916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917  shlibpath_var=LD_LIBRARY_PATH
10918  shlibpath_overrides_runpath=yes
10919  ;;
10920
10921*nto* | *qnx*)
10922  version_type=qnx
10923  need_lib_prefix=no
10924  need_version=no
10925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926  soname_spec='${libname}${release}${shared_ext}$major'
10927  shlibpath_var=LD_LIBRARY_PATH
10928  shlibpath_overrides_runpath=no
10929  hardcode_into_libs=yes
10930  dynamic_linker='ldqnx.so'
10931  ;;
10932
10933openbsd*)
10934  version_type=sunos
10935  sys_lib_dlsearch_path_spec="/usr/lib"
10936  need_lib_prefix=no
10937  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10938  case $host_os in
10939    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10940    *)				need_version=no  ;;
10941  esac
10942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10943  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10944  shlibpath_var=LD_LIBRARY_PATH
10945  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10946    case $host_os in
10947      openbsd2.[89] | openbsd2.[89].*)
10948	shlibpath_overrides_runpath=no
10949	;;
10950      *)
10951	shlibpath_overrides_runpath=yes
10952	;;
10953      esac
10954  else
10955    shlibpath_overrides_runpath=yes
10956  fi
10957  ;;
10958
10959os2*)
10960  libname_spec='$name'
10961  shrext_cmds=".dll"
10962  need_lib_prefix=no
10963  library_names_spec='$libname${shared_ext} $libname.a'
10964  dynamic_linker='OS/2 ld.exe'
10965  shlibpath_var=LIBPATH
10966  ;;
10967
10968osf3* | osf4* | osf5*)
10969  version_type=osf
10970  need_lib_prefix=no
10971  need_version=no
10972  soname_spec='${libname}${release}${shared_ext}$major'
10973  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974  shlibpath_var=LD_LIBRARY_PATH
10975  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10976  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10977  ;;
10978
10979rdos*)
10980  dynamic_linker=no
10981  ;;
10982
10983solaris*)
10984  version_type=linux
10985  need_lib_prefix=no
10986  need_version=no
10987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988  soname_spec='${libname}${release}${shared_ext}$major'
10989  shlibpath_var=LD_LIBRARY_PATH
10990  shlibpath_overrides_runpath=yes
10991  hardcode_into_libs=yes
10992  # ldd complains unless libraries are executable
10993  postinstall_cmds='chmod +x $lib'
10994  ;;
10995
10996sunos4*)
10997  version_type=sunos
10998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10999  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11000  shlibpath_var=LD_LIBRARY_PATH
11001  shlibpath_overrides_runpath=yes
11002  if test "$with_gnu_ld" = yes; then
11003    need_lib_prefix=no
11004  fi
11005  need_version=yes
11006  ;;
11007
11008sysv4 | sysv4.3*)
11009  version_type=linux
11010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011  soname_spec='${libname}${release}${shared_ext}$major'
11012  shlibpath_var=LD_LIBRARY_PATH
11013  case $host_vendor in
11014    sni)
11015      shlibpath_overrides_runpath=no
11016      need_lib_prefix=no
11017      runpath_var=LD_RUN_PATH
11018      ;;
11019    siemens)
11020      need_lib_prefix=no
11021      ;;
11022    motorola)
11023      need_lib_prefix=no
11024      need_version=no
11025      shlibpath_overrides_runpath=no
11026      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11027      ;;
11028  esac
11029  ;;
11030
11031sysv4*MP*)
11032  if test -d /usr/nec ;then
11033    version_type=linux
11034    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11035    soname_spec='$libname${shared_ext}.$major'
11036    shlibpath_var=LD_LIBRARY_PATH
11037  fi
11038  ;;
11039
11040sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11041  version_type=freebsd-elf
11042  need_lib_prefix=no
11043  need_version=no
11044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11045  soname_spec='${libname}${release}${shared_ext}$major'
11046  shlibpath_var=LD_LIBRARY_PATH
11047  shlibpath_overrides_runpath=yes
11048  hardcode_into_libs=yes
11049  if test "$with_gnu_ld" = yes; then
11050    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11051  else
11052    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11053    case $host_os in
11054      sco3.2v5*)
11055        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11056	;;
11057    esac
11058  fi
11059  sys_lib_dlsearch_path_spec='/usr/lib'
11060  ;;
11061
11062tpf*)
11063  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11064  version_type=linux
11065  need_lib_prefix=no
11066  need_version=no
11067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068  shlibpath_var=LD_LIBRARY_PATH
11069  shlibpath_overrides_runpath=no
11070  hardcode_into_libs=yes
11071  ;;
11072
11073uts4*)
11074  version_type=linux
11075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076  soname_spec='${libname}${release}${shared_ext}$major'
11077  shlibpath_var=LD_LIBRARY_PATH
11078  ;;
11079
11080*)
11081  dynamic_linker=no
11082  ;;
11083esac
11084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11085$as_echo "$dynamic_linker" >&6; }
11086test "$dynamic_linker" = no && can_build_shared=no
11087
11088variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11089if test "$GCC" = yes; then
11090  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11091fi
11092
11093if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11094  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11095fi
11096if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11097  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11098fi
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11187$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11188hardcode_action=
11189if test -n "$hardcode_libdir_flag_spec" ||
11190   test -n "$runpath_var" ||
11191   test "X$hardcode_automatic" = "Xyes" ; then
11192
11193  # We can hardcode non-existent directories.
11194  if test "$hardcode_direct" != no &&
11195     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11196     # have to relink, otherwise we might link with an installed library
11197     # when we should be linking with a yet-to-be-installed one
11198     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11199     test "$hardcode_minus_L" != no; then
11200    # Linking always hardcodes the temporary library directory.
11201    hardcode_action=relink
11202  else
11203    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11204    hardcode_action=immediate
11205  fi
11206else
11207  # We cannot hardcode anything, or else we can only hardcode existing
11208  # directories.
11209  hardcode_action=unsupported
11210fi
11211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11212$as_echo "$hardcode_action" >&6; }
11213
11214if test "$hardcode_action" = relink ||
11215   test "$inherit_rpath" = yes; then
11216  # Fast installation is not supported
11217  enable_fast_install=no
11218elif test "$shlibpath_overrides_runpath" = yes ||
11219     test "$enable_shared" = no; then
11220  # Fast installation is not necessary
11221  enable_fast_install=needless
11222fi
11223
11224
11225
11226
11227
11228
11229  if test "x$enable_dlopen" != xyes; then
11230  enable_dlopen=unknown
11231  enable_dlopen_self=unknown
11232  enable_dlopen_self_static=unknown
11233else
11234  lt_cv_dlopen=no
11235  lt_cv_dlopen_libs=
11236
11237  case $host_os in
11238  beos*)
11239    lt_cv_dlopen="load_add_on"
11240    lt_cv_dlopen_libs=
11241    lt_cv_dlopen_self=yes
11242    ;;
11243
11244  mingw* | pw32* | cegcc*)
11245    lt_cv_dlopen="LoadLibrary"
11246    lt_cv_dlopen_libs=
11247    ;;
11248
11249  cygwin*)
11250    lt_cv_dlopen="dlopen"
11251    lt_cv_dlopen_libs=
11252    ;;
11253
11254  darwin*)
11255  # if libdl is installed we need to link against it
11256    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11257$as_echo_n "checking for dlopen in -ldl... " >&6; }
11258if ${ac_cv_lib_dl_dlopen+:} false; then :
11259  $as_echo_n "(cached) " >&6
11260else
11261  ac_check_lib_save_LIBS=$LIBS
11262LIBS="-ldl  $LIBS"
11263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264/* end confdefs.h.  */
11265
11266/* Override any GCC internal prototype to avoid an error.
11267   Use char because int might match the return type of a GCC
11268   builtin and then its argument prototype would still apply.  */
11269#ifdef __cplusplus
11270extern "C"
11271#endif
11272char dlopen ();
11273int
11274main ()
11275{
11276return dlopen ();
11277  ;
11278  return 0;
11279}
11280_ACEOF
11281if ac_fn_c_try_link "$LINENO"; then :
11282  ac_cv_lib_dl_dlopen=yes
11283else
11284  ac_cv_lib_dl_dlopen=no
11285fi
11286rm -f core conftest.err conftest.$ac_objext \
11287    conftest$ac_exeext conftest.$ac_ext
11288LIBS=$ac_check_lib_save_LIBS
11289fi
11290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11291$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11292if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11293  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11294else
11295
11296    lt_cv_dlopen="dyld"
11297    lt_cv_dlopen_libs=
11298    lt_cv_dlopen_self=yes
11299
11300fi
11301
11302    ;;
11303
11304  *)
11305    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11306if test "x$ac_cv_func_shl_load" = xyes; then :
11307  lt_cv_dlopen="shl_load"
11308else
11309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11310$as_echo_n "checking for shl_load in -ldld... " >&6; }
11311if ${ac_cv_lib_dld_shl_load+:} false; then :
11312  $as_echo_n "(cached) " >&6
11313else
11314  ac_check_lib_save_LIBS=$LIBS
11315LIBS="-ldld  $LIBS"
11316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317/* end confdefs.h.  */
11318
11319/* Override any GCC internal prototype to avoid an error.
11320   Use char because int might match the return type of a GCC
11321   builtin and then its argument prototype would still apply.  */
11322#ifdef __cplusplus
11323extern "C"
11324#endif
11325char shl_load ();
11326int
11327main ()
11328{
11329return shl_load ();
11330  ;
11331  return 0;
11332}
11333_ACEOF
11334if ac_fn_c_try_link "$LINENO"; then :
11335  ac_cv_lib_dld_shl_load=yes
11336else
11337  ac_cv_lib_dld_shl_load=no
11338fi
11339rm -f core conftest.err conftest.$ac_objext \
11340    conftest$ac_exeext conftest.$ac_ext
11341LIBS=$ac_check_lib_save_LIBS
11342fi
11343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11344$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11345if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11346  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11347else
11348  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11349if test "x$ac_cv_func_dlopen" = xyes; then :
11350  lt_cv_dlopen="dlopen"
11351else
11352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11353$as_echo_n "checking for dlopen in -ldl... " >&6; }
11354if ${ac_cv_lib_dl_dlopen+:} false; then :
11355  $as_echo_n "(cached) " >&6
11356else
11357  ac_check_lib_save_LIBS=$LIBS
11358LIBS="-ldl  $LIBS"
11359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360/* end confdefs.h.  */
11361
11362/* Override any GCC internal prototype to avoid an error.
11363   Use char because int might match the return type of a GCC
11364   builtin and then its argument prototype would still apply.  */
11365#ifdef __cplusplus
11366extern "C"
11367#endif
11368char dlopen ();
11369int
11370main ()
11371{
11372return dlopen ();
11373  ;
11374  return 0;
11375}
11376_ACEOF
11377if ac_fn_c_try_link "$LINENO"; then :
11378  ac_cv_lib_dl_dlopen=yes
11379else
11380  ac_cv_lib_dl_dlopen=no
11381fi
11382rm -f core conftest.err conftest.$ac_objext \
11383    conftest$ac_exeext conftest.$ac_ext
11384LIBS=$ac_check_lib_save_LIBS
11385fi
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11387$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11388if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11389  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11390else
11391  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11392$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11393if ${ac_cv_lib_svld_dlopen+:} false; then :
11394  $as_echo_n "(cached) " >&6
11395else
11396  ac_check_lib_save_LIBS=$LIBS
11397LIBS="-lsvld  $LIBS"
11398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399/* end confdefs.h.  */
11400
11401/* Override any GCC internal prototype to avoid an error.
11402   Use char because int might match the return type of a GCC
11403   builtin and then its argument prototype would still apply.  */
11404#ifdef __cplusplus
11405extern "C"
11406#endif
11407char dlopen ();
11408int
11409main ()
11410{
11411return dlopen ();
11412  ;
11413  return 0;
11414}
11415_ACEOF
11416if ac_fn_c_try_link "$LINENO"; then :
11417  ac_cv_lib_svld_dlopen=yes
11418else
11419  ac_cv_lib_svld_dlopen=no
11420fi
11421rm -f core conftest.err conftest.$ac_objext \
11422    conftest$ac_exeext conftest.$ac_ext
11423LIBS=$ac_check_lib_save_LIBS
11424fi
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11426$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11427if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11428  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11429else
11430  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11431$as_echo_n "checking for dld_link in -ldld... " >&6; }
11432if ${ac_cv_lib_dld_dld_link+:} false; then :
11433  $as_echo_n "(cached) " >&6
11434else
11435  ac_check_lib_save_LIBS=$LIBS
11436LIBS="-ldld  $LIBS"
11437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438/* end confdefs.h.  */
11439
11440/* Override any GCC internal prototype to avoid an error.
11441   Use char because int might match the return type of a GCC
11442   builtin and then its argument prototype would still apply.  */
11443#ifdef __cplusplus
11444extern "C"
11445#endif
11446char dld_link ();
11447int
11448main ()
11449{
11450return dld_link ();
11451  ;
11452  return 0;
11453}
11454_ACEOF
11455if ac_fn_c_try_link "$LINENO"; then :
11456  ac_cv_lib_dld_dld_link=yes
11457else
11458  ac_cv_lib_dld_dld_link=no
11459fi
11460rm -f core conftest.err conftest.$ac_objext \
11461    conftest$ac_exeext conftest.$ac_ext
11462LIBS=$ac_check_lib_save_LIBS
11463fi
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11465$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11466if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11467  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11468fi
11469
11470
11471fi
11472
11473
11474fi
11475
11476
11477fi
11478
11479
11480fi
11481
11482
11483fi
11484
11485    ;;
11486  esac
11487
11488  if test "x$lt_cv_dlopen" != xno; then
11489    enable_dlopen=yes
11490  else
11491    enable_dlopen=no
11492  fi
11493
11494  case $lt_cv_dlopen in
11495  dlopen)
11496    save_CPPFLAGS="$CPPFLAGS"
11497    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11498
11499    save_LDFLAGS="$LDFLAGS"
11500    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11501
11502    save_LIBS="$LIBS"
11503    LIBS="$lt_cv_dlopen_libs $LIBS"
11504
11505    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11506$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11507if ${lt_cv_dlopen_self+:} false; then :
11508  $as_echo_n "(cached) " >&6
11509else
11510  	  if test "$cross_compiling" = yes; then :
11511  lt_cv_dlopen_self=cross
11512else
11513  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11514  lt_status=$lt_dlunknown
11515  cat > conftest.$ac_ext <<_LT_EOF
11516#line 11516 "configure"
11517#include "confdefs.h"
11518
11519#if HAVE_DLFCN_H
11520#include <dlfcn.h>
11521#endif
11522
11523#include <stdio.h>
11524
11525#ifdef RTLD_GLOBAL
11526#  define LT_DLGLOBAL		RTLD_GLOBAL
11527#else
11528#  ifdef DL_GLOBAL
11529#    define LT_DLGLOBAL		DL_GLOBAL
11530#  else
11531#    define LT_DLGLOBAL		0
11532#  endif
11533#endif
11534
11535/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11536   find out it does not work in some platform. */
11537#ifndef LT_DLLAZY_OR_NOW
11538#  ifdef RTLD_LAZY
11539#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11540#  else
11541#    ifdef DL_LAZY
11542#      define LT_DLLAZY_OR_NOW		DL_LAZY
11543#    else
11544#      ifdef RTLD_NOW
11545#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11546#      else
11547#        ifdef DL_NOW
11548#          define LT_DLLAZY_OR_NOW	DL_NOW
11549#        else
11550#          define LT_DLLAZY_OR_NOW	0
11551#        endif
11552#      endif
11553#    endif
11554#  endif
11555#endif
11556
11557void fnord() { int i=42;}
11558int main ()
11559{
11560  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11561  int status = $lt_dlunknown;
11562
11563  if (self)
11564    {
11565      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11566      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11567      /* dlclose (self); */
11568    }
11569  else
11570    puts (dlerror ());
11571
11572  return status;
11573}
11574_LT_EOF
11575  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11576  (eval $ac_link) 2>&5
11577  ac_status=$?
11578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11579  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11580    (./conftest; exit; ) >&5 2>/dev/null
11581    lt_status=$?
11582    case x$lt_status in
11583      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11584      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11585      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11586    esac
11587  else :
11588    # compilation failed
11589    lt_cv_dlopen_self=no
11590  fi
11591fi
11592rm -fr conftest*
11593
11594
11595fi
11596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11597$as_echo "$lt_cv_dlopen_self" >&6; }
11598
11599    if test "x$lt_cv_dlopen_self" = xyes; then
11600      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11601      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11602$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11603if ${lt_cv_dlopen_self_static+:} false; then :
11604  $as_echo_n "(cached) " >&6
11605else
11606  	  if test "$cross_compiling" = yes; then :
11607  lt_cv_dlopen_self_static=cross
11608else
11609  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11610  lt_status=$lt_dlunknown
11611  cat > conftest.$ac_ext <<_LT_EOF
11612#line 11612 "configure"
11613#include "confdefs.h"
11614
11615#if HAVE_DLFCN_H
11616#include <dlfcn.h>
11617#endif
11618
11619#include <stdio.h>
11620
11621#ifdef RTLD_GLOBAL
11622#  define LT_DLGLOBAL		RTLD_GLOBAL
11623#else
11624#  ifdef DL_GLOBAL
11625#    define LT_DLGLOBAL		DL_GLOBAL
11626#  else
11627#    define LT_DLGLOBAL		0
11628#  endif
11629#endif
11630
11631/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11632   find out it does not work in some platform. */
11633#ifndef LT_DLLAZY_OR_NOW
11634#  ifdef RTLD_LAZY
11635#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11636#  else
11637#    ifdef DL_LAZY
11638#      define LT_DLLAZY_OR_NOW		DL_LAZY
11639#    else
11640#      ifdef RTLD_NOW
11641#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11642#      else
11643#        ifdef DL_NOW
11644#          define LT_DLLAZY_OR_NOW	DL_NOW
11645#        else
11646#          define LT_DLLAZY_OR_NOW	0
11647#        endif
11648#      endif
11649#    endif
11650#  endif
11651#endif
11652
11653void fnord() { int i=42;}
11654int main ()
11655{
11656  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11657  int status = $lt_dlunknown;
11658
11659  if (self)
11660    {
11661      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11662      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11663      /* dlclose (self); */
11664    }
11665  else
11666    puts (dlerror ());
11667
11668  return status;
11669}
11670_LT_EOF
11671  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11672  (eval $ac_link) 2>&5
11673  ac_status=$?
11674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11675  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11676    (./conftest; exit; ) >&5 2>/dev/null
11677    lt_status=$?
11678    case x$lt_status in
11679      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11680      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11681      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11682    esac
11683  else :
11684    # compilation failed
11685    lt_cv_dlopen_self_static=no
11686  fi
11687fi
11688rm -fr conftest*
11689
11690
11691fi
11692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11693$as_echo "$lt_cv_dlopen_self_static" >&6; }
11694    fi
11695
11696    CPPFLAGS="$save_CPPFLAGS"
11697    LDFLAGS="$save_LDFLAGS"
11698    LIBS="$save_LIBS"
11699    ;;
11700  esac
11701
11702  case $lt_cv_dlopen_self in
11703  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11704  *) enable_dlopen_self=unknown ;;
11705  esac
11706
11707  case $lt_cv_dlopen_self_static in
11708  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11709  *) enable_dlopen_self_static=unknown ;;
11710  esac
11711fi
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729striplib=
11730old_striplib=
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11732$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11733if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11734  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11735  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11737$as_echo "yes" >&6; }
11738else
11739# FIXME - insert some real tests, host_os isn't really good enough
11740  case $host_os in
11741  darwin*)
11742    if test -n "$STRIP" ; then
11743      striplib="$STRIP -x"
11744      old_striplib="$STRIP -S"
11745      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11746$as_echo "yes" >&6; }
11747    else
11748      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749$as_echo "no" >&6; }
11750    fi
11751    ;;
11752  *)
11753    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754$as_echo "no" >&6; }
11755    ;;
11756  esac
11757fi
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770  # Report which library types will actually be built
11771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11772$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11774$as_echo "$can_build_shared" >&6; }
11775
11776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11777$as_echo_n "checking whether to build shared libraries... " >&6; }
11778  test "$can_build_shared" = "no" && enable_shared=no
11779
11780  # On AIX, shared libraries and static libraries use the same namespace, and
11781  # are all built from PIC.
11782  case $host_os in
11783  aix3*)
11784    test "$enable_shared" = yes && enable_static=no
11785    if test -n "$RANLIB"; then
11786      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11787      postinstall_cmds='$RANLIB $lib'
11788    fi
11789    ;;
11790
11791  aix[4-9]*)
11792    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11793      test "$enable_shared" = yes && enable_static=no
11794    fi
11795    ;;
11796  esac
11797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11798$as_echo "$enable_shared" >&6; }
11799
11800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11801$as_echo_n "checking whether to build static libraries... " >&6; }
11802  # Make sure either enable_shared or enable_static is yes.
11803  test "$enable_shared" = yes || enable_static=yes
11804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11805$as_echo "$enable_static" >&6; }
11806
11807
11808
11809
11810fi
11811ac_ext=c
11812ac_cpp='$CPP $CPPFLAGS'
11813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11815ac_compiler_gnu=$ac_cv_c_compiler_gnu
11816
11817CC="$lt_save_CC"
11818
11819
11820ac_ext=cpp
11821ac_cpp='$CXXCPP $CPPFLAGS'
11822ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11823ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11824ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11825
11826archive_cmds_need_lc_CXX=no
11827allow_undefined_flag_CXX=
11828always_export_symbols_CXX=no
11829archive_expsym_cmds_CXX=
11830compiler_needs_object_CXX=no
11831export_dynamic_flag_spec_CXX=
11832hardcode_direct_CXX=no
11833hardcode_direct_absolute_CXX=no
11834hardcode_libdir_flag_spec_CXX=
11835hardcode_libdir_flag_spec_ld_CXX=
11836hardcode_libdir_separator_CXX=
11837hardcode_minus_L_CXX=no
11838hardcode_shlibpath_var_CXX=unsupported
11839hardcode_automatic_CXX=no
11840inherit_rpath_CXX=no
11841module_cmds_CXX=
11842module_expsym_cmds_CXX=
11843link_all_deplibs_CXX=unknown
11844old_archive_cmds_CXX=$old_archive_cmds
11845no_undefined_flag_CXX=
11846whole_archive_flag_spec_CXX=
11847enable_shared_with_static_runtimes_CXX=no
11848
11849# Source file extension for C++ test sources.
11850ac_ext=cpp
11851
11852# Object file extension for compiled C++ test sources.
11853objext=o
11854objext_CXX=$objext
11855
11856# No sense in running all these tests if we already determined that
11857# the CXX compiler isn't working.  Some variables (like enable_shared)
11858# are currently assumed to apply to all compilers on this platform,
11859# and will be corrupted by setting them based on a non-working compiler.
11860if test "$_lt_caught_CXX_error" != yes; then
11861  # Code to be used in simple compile tests
11862  lt_simple_compile_test_code="int some_variable = 0;"
11863
11864  # Code to be used in simple link tests
11865  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11866
11867  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11868
11869
11870
11871
11872
11873
11874# If no C compiler was specified, use CC.
11875LTCC=${LTCC-"$CC"}
11876
11877# If no C compiler flags were specified, use CFLAGS.
11878LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11879
11880# Allow CC to be a program name with arguments.
11881compiler=$CC
11882
11883
11884  # save warnings/boilerplate of simple test code
11885  ac_outfile=conftest.$ac_objext
11886echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11887eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11888_lt_compiler_boilerplate=`cat conftest.err`
11889$RM conftest*
11890
11891  ac_outfile=conftest.$ac_objext
11892echo "$lt_simple_link_test_code" >conftest.$ac_ext
11893eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11894_lt_linker_boilerplate=`cat conftest.err`
11895$RM -r conftest*
11896
11897
11898  # Allow CC to be a program name with arguments.
11899  lt_save_CC=$CC
11900  lt_save_LD=$LD
11901  lt_save_GCC=$GCC
11902  GCC=$GXX
11903  lt_save_with_gnu_ld=$with_gnu_ld
11904  lt_save_path_LD=$lt_cv_path_LD
11905  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11906    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11907  else
11908    $as_unset lt_cv_prog_gnu_ld
11909  fi
11910  if test -n "${lt_cv_path_LDCXX+set}"; then
11911    lt_cv_path_LD=$lt_cv_path_LDCXX
11912  else
11913    $as_unset lt_cv_path_LD
11914  fi
11915  test -z "${LDCXX+set}" || LD=$LDCXX
11916  CC=${CXX-"c++"}
11917  compiler=$CC
11918  compiler_CXX=$CC
11919  for cc_temp in $compiler""; do
11920  case $cc_temp in
11921    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11922    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11923    \-*) ;;
11924    *) break;;
11925  esac
11926done
11927cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11928
11929
11930  if test -n "$compiler"; then
11931    # We don't want -fno-exception when compiling C++ code, so set the
11932    # no_builtin_flag separately
11933    if test "$GXX" = yes; then
11934      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11935    else
11936      lt_prog_compiler_no_builtin_flag_CXX=
11937    fi
11938
11939    if test "$GXX" = yes; then
11940      # Set up default GNU C++ configuration
11941
11942
11943
11944# Check whether --with-gnu-ld was given.
11945if test "${with_gnu_ld+set}" = set; then :
11946  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11947else
11948  with_gnu_ld=no
11949fi
11950
11951ac_prog=ld
11952if test "$GCC" = yes; then
11953  # Check if gcc -print-prog-name=ld gives a path.
11954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11955$as_echo_n "checking for ld used by $CC... " >&6; }
11956  case $host in
11957  *-*-mingw*)
11958    # gcc leaves a trailing carriage return which upsets mingw
11959    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11960  *)
11961    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11962  esac
11963  case $ac_prog in
11964    # Accept absolute paths.
11965    [\\/]* | ?:[\\/]*)
11966      re_direlt='/[^/][^/]*/\.\./'
11967      # Canonicalize the pathname of ld
11968      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11969      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11970	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11971      done
11972      test -z "$LD" && LD="$ac_prog"
11973      ;;
11974  "")
11975    # If it fails, then pretend we aren't using GCC.
11976    ac_prog=ld
11977    ;;
11978  *)
11979    # If it is relative, then search for the first ld in PATH.
11980    with_gnu_ld=unknown
11981    ;;
11982  esac
11983elif test "$with_gnu_ld" = yes; then
11984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11985$as_echo_n "checking for GNU ld... " >&6; }
11986else
11987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11988$as_echo_n "checking for non-GNU ld... " >&6; }
11989fi
11990if ${lt_cv_path_LD+:} false; then :
11991  $as_echo_n "(cached) " >&6
11992else
11993  if test -z "$LD"; then
11994  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11995  for ac_dir in $PATH; do
11996    IFS="$lt_save_ifs"
11997    test -z "$ac_dir" && ac_dir=.
11998    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11999      lt_cv_path_LD="$ac_dir/$ac_prog"
12000      # Check to see if the program is GNU ld.  I'd rather use --version,
12001      # but apparently some variants of GNU ld only accept -v.
12002      # Break only if it was the GNU/non-GNU ld that we prefer.
12003      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12004      *GNU* | *'with BFD'*)
12005	test "$with_gnu_ld" != no && break
12006	;;
12007      *)
12008	test "$with_gnu_ld" != yes && break
12009	;;
12010      esac
12011    fi
12012  done
12013  IFS="$lt_save_ifs"
12014else
12015  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12016fi
12017fi
12018
12019LD="$lt_cv_path_LD"
12020if test -n "$LD"; then
12021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12022$as_echo "$LD" >&6; }
12023else
12024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025$as_echo "no" >&6; }
12026fi
12027test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12029$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12030if ${lt_cv_prog_gnu_ld+:} false; then :
12031  $as_echo_n "(cached) " >&6
12032else
12033  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12034case `$LD -v 2>&1 </dev/null` in
12035*GNU* | *'with BFD'*)
12036  lt_cv_prog_gnu_ld=yes
12037  ;;
12038*)
12039  lt_cv_prog_gnu_ld=no
12040  ;;
12041esac
12042fi
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12044$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12045with_gnu_ld=$lt_cv_prog_gnu_ld
12046
12047
12048
12049
12050
12051
12052
12053      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12054      # archiving commands below assume that GNU ld is being used.
12055      if test "$with_gnu_ld" = yes; then
12056        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12057        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'
12058
12059        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12060        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12061
12062        # If archive_cmds runs LD, not CC, wlarc should be empty
12063        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12064        #     investigate it a little bit more. (MM)
12065        wlarc='${wl}'
12066
12067        # ancient GNU ld didn't support --whole-archive et. al.
12068        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12069	  $GREP 'no-whole-archive' > /dev/null; then
12070          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12071        else
12072          whole_archive_flag_spec_CXX=
12073        fi
12074      else
12075        with_gnu_ld=no
12076        wlarc=
12077
12078        # A generic and very simple default shared library creation
12079        # command for GNU C++ for the case where it uses the native
12080        # linker, instead of GNU ld.  If possible, this setting should
12081        # overridden to take advantage of the native linker features on
12082        # the platform it is being used on.
12083        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12084      fi
12085
12086      # Commands to make compiler produce verbose output that lists
12087      # what "hidden" libraries, object files and flags are used when
12088      # linking a shared library.
12089      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12090
12091    else
12092      GXX=no
12093      with_gnu_ld=no
12094      wlarc=
12095    fi
12096
12097    # PORTME: fill in a description of your system's C++ link characteristics
12098    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12099$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12100    ld_shlibs_CXX=yes
12101    case $host_os in
12102      aix3*)
12103        # FIXME: insert proper C++ library support
12104        ld_shlibs_CXX=no
12105        ;;
12106      aix[4-9]*)
12107        if test "$host_cpu" = ia64; then
12108          # On IA64, the linker does run time linking by default, so we don't
12109          # have to do anything special.
12110          aix_use_runtimelinking=no
12111          exp_sym_flag='-Bexport'
12112          no_entry_flag=""
12113        else
12114          aix_use_runtimelinking=no
12115
12116          # Test if we are trying to use run time linking or normal
12117          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12118          # need to do runtime linking.
12119          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12120	    for ld_flag in $LDFLAGS; do
12121	      case $ld_flag in
12122	      *-brtl*)
12123	        aix_use_runtimelinking=yes
12124	        break
12125	        ;;
12126	      esac
12127	    done
12128	    ;;
12129          esac
12130
12131          exp_sym_flag='-bexport'
12132          no_entry_flag='-bnoentry'
12133        fi
12134
12135        # When large executables or shared objects are built, AIX ld can
12136        # have problems creating the table of contents.  If linking a library
12137        # or program results in "error TOC overflow" add -mminimal-toc to
12138        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12139        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12140
12141        archive_cmds_CXX=''
12142        hardcode_direct_CXX=yes
12143        hardcode_direct_absolute_CXX=yes
12144        hardcode_libdir_separator_CXX=':'
12145        link_all_deplibs_CXX=yes
12146        file_list_spec_CXX='${wl}-f,'
12147
12148        if test "$GXX" = yes; then
12149          case $host_os in aix4.[012]|aix4.[012].*)
12150          # We only want to do this on AIX 4.2 and lower, the check
12151          # below for broken collect2 doesn't work under 4.3+
12152	  collect2name=`${CC} -print-prog-name=collect2`
12153	  if test -f "$collect2name" &&
12154	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12155	  then
12156	    # We have reworked collect2
12157	    :
12158	  else
12159	    # We have old collect2
12160	    hardcode_direct_CXX=unsupported
12161	    # It fails to find uninstalled libraries when the uninstalled
12162	    # path is not listed in the libpath.  Setting hardcode_minus_L
12163	    # to unsupported forces relinking
12164	    hardcode_minus_L_CXX=yes
12165	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12166	    hardcode_libdir_separator_CXX=
12167	  fi
12168          esac
12169          shared_flag='-shared'
12170	  if test "$aix_use_runtimelinking" = yes; then
12171	    shared_flag="$shared_flag "'${wl}-G'
12172	  fi
12173        else
12174          # not using gcc
12175          if test "$host_cpu" = ia64; then
12176	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12177	  # chokes on -Wl,-G. The following line is correct:
12178	  shared_flag='-G'
12179          else
12180	    if test "$aix_use_runtimelinking" = yes; then
12181	      shared_flag='${wl}-G'
12182	    else
12183	      shared_flag='${wl}-bM:SRE'
12184	    fi
12185          fi
12186        fi
12187
12188        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12189        # It seems that -bexpall does not export symbols beginning with
12190        # underscore (_), so it is better to generate a list of symbols to
12191	# export.
12192        always_export_symbols_CXX=yes
12193        if test "$aix_use_runtimelinking" = yes; then
12194          # Warning - without using the other runtime loading flags (-brtl),
12195          # -berok will link without error, but may produce a broken library.
12196          allow_undefined_flag_CXX='-berok'
12197          # Determine the default libpath from the value encoded in an empty
12198          # executable.
12199          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200/* end confdefs.h.  */
12201
12202int
12203main ()
12204{
12205
12206  ;
12207  return 0;
12208}
12209_ACEOF
12210if ac_fn_cxx_try_link "$LINENO"; then :
12211
12212lt_aix_libpath_sed='
12213    /Import File Strings/,/^$/ {
12214	/^0/ {
12215	    s/^0  *\(.*\)$/\1/
12216	    p
12217	}
12218    }'
12219aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12220# Check for a 64-bit object if we didn't find anything.
12221if test -z "$aix_libpath"; then
12222  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12223fi
12224fi
12225rm -f core conftest.err conftest.$ac_objext \
12226    conftest$ac_exeext conftest.$ac_ext
12227if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12228
12229          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12230
12231          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12232        else
12233          if test "$host_cpu" = ia64; then
12234	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12235	    allow_undefined_flag_CXX="-z nodefs"
12236	    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"
12237          else
12238	    # Determine the default libpath from the value encoded in an
12239	    # empty executable.
12240	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241/* end confdefs.h.  */
12242
12243int
12244main ()
12245{
12246
12247  ;
12248  return 0;
12249}
12250_ACEOF
12251if ac_fn_cxx_try_link "$LINENO"; then :
12252
12253lt_aix_libpath_sed='
12254    /Import File Strings/,/^$/ {
12255	/^0/ {
12256	    s/^0  *\(.*\)$/\1/
12257	    p
12258	}
12259    }'
12260aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12261# Check for a 64-bit object if we didn't find anything.
12262if test -z "$aix_libpath"; then
12263  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12264fi
12265fi
12266rm -f core conftest.err conftest.$ac_objext \
12267    conftest$ac_exeext conftest.$ac_ext
12268if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12269
12270	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12271	    # Warning - without using the other run time loading flags,
12272	    # -berok will link without error, but may produce a broken library.
12273	    no_undefined_flag_CXX=' ${wl}-bernotok'
12274	    allow_undefined_flag_CXX=' ${wl}-berok'
12275	    # Exported symbols can be pulled into shared objects from archives
12276	    whole_archive_flag_spec_CXX='$convenience'
12277	    archive_cmds_need_lc_CXX=yes
12278	    # This is similar to how AIX traditionally builds its shared
12279	    # libraries.
12280	    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'
12281          fi
12282        fi
12283        ;;
12284
12285      beos*)
12286	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12287	  allow_undefined_flag_CXX=unsupported
12288	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12289	  # support --undefined.  This deserves some investigation.  FIXME
12290	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12291	else
12292	  ld_shlibs_CXX=no
12293	fi
12294	;;
12295
12296      chorus*)
12297        case $cc_basename in
12298          *)
12299	  # FIXME: insert proper C++ library support
12300	  ld_shlibs_CXX=no
12301	  ;;
12302        esac
12303        ;;
12304
12305      cygwin* | mingw* | pw32* | cegcc*)
12306        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12307        # as there is no search path for DLLs.
12308        hardcode_libdir_flag_spec_CXX='-L$libdir'
12309        allow_undefined_flag_CXX=unsupported
12310        always_export_symbols_CXX=no
12311        enable_shared_with_static_runtimes_CXX=yes
12312
12313        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12314          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'
12315          # If the export-symbols file already is a .def file (1st line
12316          # is EXPORTS), use it as is; otherwise, prepend...
12317          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12318	    cp $export_symbols $output_objdir/$soname.def;
12319          else
12320	    echo EXPORTS > $output_objdir/$soname.def;
12321	    cat $export_symbols >> $output_objdir/$soname.def;
12322          fi~
12323          $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'
12324        else
12325          ld_shlibs_CXX=no
12326        fi
12327        ;;
12328      darwin* | rhapsody*)
12329
12330
12331  archive_cmds_need_lc_CXX=no
12332  hardcode_direct_CXX=no
12333  hardcode_automatic_CXX=yes
12334  hardcode_shlibpath_var_CXX=unsupported
12335  whole_archive_flag_spec_CXX=''
12336  link_all_deplibs_CXX=yes
12337  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12338  case $cc_basename in
12339     ifort*) _lt_dar_can_shared=yes ;;
12340     *) _lt_dar_can_shared=$GCC ;;
12341  esac
12342  if test "$_lt_dar_can_shared" = "yes"; then
12343    output_verbose_link_cmd=echo
12344    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12345    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12346    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12347    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12348       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12349      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12350      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12351    fi
12352
12353  else
12354  ld_shlibs_CXX=no
12355  fi
12356
12357	;;
12358
12359      dgux*)
12360        case $cc_basename in
12361          ec++*)
12362	    # FIXME: insert proper C++ library support
12363	    ld_shlibs_CXX=no
12364	    ;;
12365          ghcx*)
12366	    # Green Hills C++ Compiler
12367	    # FIXME: insert proper C++ library support
12368	    ld_shlibs_CXX=no
12369	    ;;
12370          *)
12371	    # FIXME: insert proper C++ library support
12372	    ld_shlibs_CXX=no
12373	    ;;
12374        esac
12375        ;;
12376
12377      freebsd[12]*)
12378        # C++ shared libraries reported to be fairly broken before
12379	# switch to ELF
12380        ld_shlibs_CXX=no
12381        ;;
12382
12383      freebsd-elf*)
12384        archive_cmds_need_lc_CXX=no
12385        ;;
12386
12387      freebsd* | dragonfly*)
12388        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12389        # conventions
12390        ld_shlibs_CXX=yes
12391        ;;
12392
12393      gnu*)
12394        ;;
12395
12396      hpux9*)
12397        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12398        hardcode_libdir_separator_CXX=:
12399        export_dynamic_flag_spec_CXX='${wl}-E'
12400        hardcode_direct_CXX=yes
12401        hardcode_minus_L_CXX=yes # Not in the search PATH,
12402				             # but as the default
12403				             # location of the library.
12404
12405        case $cc_basename in
12406          CC*)
12407            # FIXME: insert proper C++ library support
12408            ld_shlibs_CXX=no
12409            ;;
12410          aCC*)
12411            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'
12412            # Commands to make compiler produce verbose output that lists
12413            # what "hidden" libraries, object files and flags are used when
12414            # linking a shared library.
12415            #
12416            # There doesn't appear to be a way to prevent this compiler from
12417            # explicitly linking system object files so we need to strip them
12418            # from the output so that they don't get included in the library
12419            # dependencies.
12420            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12421            ;;
12422          *)
12423            if test "$GXX" = yes; then
12424              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'
12425            else
12426              # FIXME: insert proper C++ library support
12427              ld_shlibs_CXX=no
12428            fi
12429            ;;
12430        esac
12431        ;;
12432
12433      hpux10*|hpux11*)
12434        if test $with_gnu_ld = no; then
12435	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12436	  hardcode_libdir_separator_CXX=:
12437
12438          case $host_cpu in
12439            hppa*64*|ia64*)
12440              ;;
12441            *)
12442	      export_dynamic_flag_spec_CXX='${wl}-E'
12443              ;;
12444          esac
12445        fi
12446        case $host_cpu in
12447          hppa*64*|ia64*)
12448            hardcode_direct_CXX=no
12449            hardcode_shlibpath_var_CXX=no
12450            ;;
12451          *)
12452            hardcode_direct_CXX=yes
12453            hardcode_direct_absolute_CXX=yes
12454            hardcode_minus_L_CXX=yes # Not in the search PATH,
12455					         # but as the default
12456					         # location of the library.
12457            ;;
12458        esac
12459
12460        case $cc_basename in
12461          CC*)
12462	    # FIXME: insert proper C++ library support
12463	    ld_shlibs_CXX=no
12464	    ;;
12465          aCC*)
12466	    case $host_cpu in
12467	      hppa*64*)
12468	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12469	        ;;
12470	      ia64*)
12471	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12472	        ;;
12473	      *)
12474	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12475	        ;;
12476	    esac
12477	    # Commands to make compiler produce verbose output that lists
12478	    # what "hidden" libraries, object files and flags are used when
12479	    # linking a shared library.
12480	    #
12481	    # There doesn't appear to be a way to prevent this compiler from
12482	    # explicitly linking system object files so we need to strip them
12483	    # from the output so that they don't get included in the library
12484	    # dependencies.
12485	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12486	    ;;
12487          *)
12488	    if test "$GXX" = yes; then
12489	      if test $with_gnu_ld = no; then
12490	        case $host_cpu in
12491	          hppa*64*)
12492	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12493	            ;;
12494	          ia64*)
12495	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12496	            ;;
12497	          *)
12498	            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'
12499	            ;;
12500	        esac
12501	      fi
12502	    else
12503	      # FIXME: insert proper C++ library support
12504	      ld_shlibs_CXX=no
12505	    fi
12506	    ;;
12507        esac
12508        ;;
12509
12510      interix[3-9]*)
12511	hardcode_direct_CXX=no
12512	hardcode_shlibpath_var_CXX=no
12513	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12514	export_dynamic_flag_spec_CXX='${wl}-E'
12515	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12516	# Instead, shared libraries are loaded at an image base (0x10000000 by
12517	# default) and relocated if they conflict, which is a slow very memory
12518	# consuming and fragmenting process.  To avoid this, we pick a random,
12519	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12520	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12521	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'
12522	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'
12523	;;
12524      irix5* | irix6*)
12525        case $cc_basename in
12526          CC*)
12527	    # SGI C++
12528	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12529
12530	    # Archives containing C++ object files must be created using
12531	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12532	    # necessary to make sure instantiated templates are included
12533	    # in the archive.
12534	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12535	    ;;
12536          *)
12537	    if test "$GXX" = yes; then
12538	      if test "$with_gnu_ld" = no; then
12539	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12540	      else
12541	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12542	      fi
12543	    fi
12544	    link_all_deplibs_CXX=yes
12545	    ;;
12546        esac
12547        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12548        hardcode_libdir_separator_CXX=:
12549        inherit_rpath_CXX=yes
12550        ;;
12551
12552      linux* | k*bsd*-gnu)
12553        case $cc_basename in
12554          KCC*)
12555	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12556
12557	    # KCC will only create a shared library if the output file
12558	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12559	    # to its proper name (with version) after linking.
12560	    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'
12561	    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'
12562	    # Commands to make compiler produce verbose output that lists
12563	    # what "hidden" libraries, object files and flags are used when
12564	    # linking a shared library.
12565	    #
12566	    # There doesn't appear to be a way to prevent this compiler from
12567	    # explicitly linking system object files so we need to strip them
12568	    # from the output so that they don't get included in the library
12569	    # dependencies.
12570	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12571
12572	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12573	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12574
12575	    # Archives containing C++ object files must be created using
12576	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12577	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12578	    ;;
12579	  icpc* | ecpc* )
12580	    # Intel C++
12581	    with_gnu_ld=yes
12582	    # version 8.0 and above of icpc choke on multiply defined symbols
12583	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12584	    # earlier do not add the objects themselves.
12585	    case `$CC -V 2>&1` in
12586	      *"Version 7."*)
12587	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12588		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'
12589		;;
12590	      *)  # Version 8.0 or newer
12591	        tmp_idyn=
12592	        case $host_cpu in
12593		  ia64*) tmp_idyn=' -i_dynamic';;
12594		esac
12595	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12596		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'
12597		;;
12598	    esac
12599	    archive_cmds_need_lc_CXX=no
12600	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12601	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12602	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12603	    ;;
12604          pgCC* | pgcpp*)
12605            # Portland Group C++ compiler
12606	    case `$CC -V` in
12607	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12608	      prelink_cmds_CXX='tpldir=Template.dir~
12609		rm -rf $tpldir~
12610		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12611		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12612	      old_archive_cmds_CXX='tpldir=Template.dir~
12613		rm -rf $tpldir~
12614		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12615		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12616		$RANLIB $oldlib'
12617	      archive_cmds_CXX='tpldir=Template.dir~
12618		rm -rf $tpldir~
12619		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12620		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12621	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12622		rm -rf $tpldir~
12623		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12624		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12625	      ;;
12626	    *) # Version 6 will use weak symbols
12627	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12628	      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'
12629	      ;;
12630	    esac
12631
12632	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12633	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12634	    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'
12635            ;;
12636	  cxx*)
12637	    # Compaq C++
12638	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12639	    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'
12640
12641	    runpath_var=LD_RUN_PATH
12642	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12643	    hardcode_libdir_separator_CXX=:
12644
12645	    # Commands to make compiler produce verbose output that lists
12646	    # what "hidden" libraries, object files and flags are used when
12647	    # linking a shared library.
12648	    #
12649	    # There doesn't appear to be a way to prevent this compiler from
12650	    # explicitly linking system object files so we need to strip them
12651	    # from the output so that they don't get included in the library
12652	    # dependencies.
12653	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12654	    ;;
12655	  xl*)
12656	    # IBM XL 8.0 on PPC, with GNU ld
12657	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12658	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12659	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12660	    if test "x$supports_anon_versioning" = xyes; then
12661	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12662		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12663		echo "local: *; };" >> $output_objdir/$libname.ver~
12664		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12665	    fi
12666	    ;;
12667	  *)
12668	    case `$CC -V 2>&1 | sed 5q` in
12669	    *Sun\ C*)
12670	      # Sun C++ 5.9
12671	      no_undefined_flag_CXX=' -zdefs'
12672	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12673	      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'
12674	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12675	      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'
12676	      compiler_needs_object_CXX=yes
12677
12678	      # Not sure whether something based on
12679	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12680	      # would be better.
12681	      output_verbose_link_cmd='echo'
12682
12683	      # Archives containing C++ object files must be created using
12684	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12685	      # necessary to make sure instantiated templates are included
12686	      # in the archive.
12687	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12688	      ;;
12689	    esac
12690	    ;;
12691	esac
12692	;;
12693
12694      lynxos*)
12695        # FIXME: insert proper C++ library support
12696	ld_shlibs_CXX=no
12697	;;
12698
12699      m88k*)
12700        # FIXME: insert proper C++ library support
12701        ld_shlibs_CXX=no
12702	;;
12703
12704      mvs*)
12705        case $cc_basename in
12706          cxx*)
12707	    # FIXME: insert proper C++ library support
12708	    ld_shlibs_CXX=no
12709	    ;;
12710	  *)
12711	    # FIXME: insert proper C++ library support
12712	    ld_shlibs_CXX=no
12713	    ;;
12714	esac
12715	;;
12716
12717      netbsd*)
12718        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12719	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12720	  wlarc=
12721	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12722	  hardcode_direct_CXX=yes
12723	  hardcode_shlibpath_var_CXX=no
12724	fi
12725	# Workaround some broken pre-1.5 toolchains
12726	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12727	;;
12728
12729      *nto* | *qnx*)
12730        ld_shlibs_CXX=yes
12731	;;
12732
12733      openbsd2*)
12734        # C++ shared libraries are fairly broken
12735	ld_shlibs_CXX=no
12736	;;
12737
12738      openbsd*)
12739	if test -f /usr/libexec/ld.so; then
12740	  hardcode_direct_CXX=yes
12741	  hardcode_shlibpath_var_CXX=no
12742	  hardcode_direct_absolute_CXX=yes
12743	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12744	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12745	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12746	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12747	    export_dynamic_flag_spec_CXX='${wl}-E'
12748	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12749	  fi
12750	  output_verbose_link_cmd=echo
12751	else
12752	  ld_shlibs_CXX=no
12753	fi
12754	;;
12755
12756      osf3* | osf4* | osf5*)
12757        case $cc_basename in
12758          KCC*)
12759	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12760
12761	    # KCC will only create a shared library if the output file
12762	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12763	    # to its proper name (with version) after linking.
12764	    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'
12765
12766	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12767	    hardcode_libdir_separator_CXX=:
12768
12769	    # Archives containing C++ object files must be created using
12770	    # the KAI C++ compiler.
12771	    case $host in
12772	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12773	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12774	    esac
12775	    ;;
12776          RCC*)
12777	    # Rational C++ 2.4.1
12778	    # FIXME: insert proper C++ library support
12779	    ld_shlibs_CXX=no
12780	    ;;
12781          cxx*)
12782	    case $host in
12783	      osf3*)
12784	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12785	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12786	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12787		;;
12788	      *)
12789	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12790	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12791	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12792	          echo "-hidden">> $lib.exp~
12793	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12794	          $RM $lib.exp'
12795	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12796		;;
12797	    esac
12798
12799	    hardcode_libdir_separator_CXX=:
12800
12801	    # Commands to make compiler produce verbose output that lists
12802	    # what "hidden" libraries, object files and flags are used when
12803	    # linking a shared library.
12804	    #
12805	    # There doesn't appear to be a way to prevent this compiler from
12806	    # explicitly linking system object files so we need to strip them
12807	    # from the output so that they don't get included in the library
12808	    # dependencies.
12809	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12810	    ;;
12811	  *)
12812	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12813	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12814	      case $host in
12815	        osf3*)
12816	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12817		  ;;
12818	        *)
12819	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12820		  ;;
12821	      esac
12822
12823	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12824	      hardcode_libdir_separator_CXX=:
12825
12826	      # Commands to make compiler produce verbose output that lists
12827	      # what "hidden" libraries, object files and flags are used when
12828	      # linking a shared library.
12829	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12830
12831	    else
12832	      # FIXME: insert proper C++ library support
12833	      ld_shlibs_CXX=no
12834	    fi
12835	    ;;
12836        esac
12837        ;;
12838
12839      psos*)
12840        # FIXME: insert proper C++ library support
12841        ld_shlibs_CXX=no
12842        ;;
12843
12844      sunos4*)
12845        case $cc_basename in
12846          CC*)
12847	    # Sun C++ 4.x
12848	    # FIXME: insert proper C++ library support
12849	    ld_shlibs_CXX=no
12850	    ;;
12851          lcc*)
12852	    # Lucid
12853	    # FIXME: insert proper C++ library support
12854	    ld_shlibs_CXX=no
12855	    ;;
12856          *)
12857	    # FIXME: insert proper C++ library support
12858	    ld_shlibs_CXX=no
12859	    ;;
12860        esac
12861        ;;
12862
12863      solaris*)
12864        case $cc_basename in
12865          CC*)
12866	    # Sun C++ 4.2, 5.x and Centerline C++
12867            archive_cmds_need_lc_CXX=yes
12868	    no_undefined_flag_CXX=' -zdefs'
12869	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12870	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12871	      $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'
12872
12873	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12874	    hardcode_shlibpath_var_CXX=no
12875	    case $host_os in
12876	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12877	      *)
12878		# The compiler driver will combine and reorder linker options,
12879		# but understands `-z linker_flag'.
12880	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12881		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12882	        ;;
12883	    esac
12884	    link_all_deplibs_CXX=yes
12885
12886	    output_verbose_link_cmd='echo'
12887
12888	    # Archives containing C++ object files must be created using
12889	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12890	    # necessary to make sure instantiated templates are included
12891	    # in the archive.
12892	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12893	    ;;
12894          gcx*)
12895	    # Green Hills C++ Compiler
12896	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12897
12898	    # The C++ compiler must be used to create the archive.
12899	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12900	    ;;
12901          *)
12902	    # GNU C++ compiler with Solaris linker
12903	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12904	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12905	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12906	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12907	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12908		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12909
12910	        # Commands to make compiler produce verbose output that lists
12911	        # what "hidden" libraries, object files and flags are used when
12912	        # linking a shared library.
12913	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12914	      else
12915	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
12916	        # platform.
12917	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12918	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12919		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12920
12921	        # Commands to make compiler produce verbose output that lists
12922	        # what "hidden" libraries, object files and flags are used when
12923	        # linking a shared library.
12924	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12925	      fi
12926
12927	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12928	      case $host_os in
12929		solaris2.[0-5] | solaris2.[0-5].*) ;;
12930		*)
12931		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12932		  ;;
12933	      esac
12934	    fi
12935	    ;;
12936        esac
12937        ;;
12938
12939    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12940      no_undefined_flag_CXX='${wl}-z,text'
12941      archive_cmds_need_lc_CXX=no
12942      hardcode_shlibpath_var_CXX=no
12943      runpath_var='LD_RUN_PATH'
12944
12945      case $cc_basename in
12946        CC*)
12947	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12948	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12949	  ;;
12950	*)
12951	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12952	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12953	  ;;
12954      esac
12955      ;;
12956
12957      sysv5* | sco3.2v5* | sco5v6*)
12958	# Note: We can NOT use -z defs as we might desire, because we do not
12959	# link with -lc, and that would cause any symbols used from libc to
12960	# always be unresolved, which means just about no library would
12961	# ever link correctly.  If we're not using GNU ld we use -z text
12962	# though, which does catch some bad symbols but isn't as heavy-handed
12963	# as -z defs.
12964	no_undefined_flag_CXX='${wl}-z,text'
12965	allow_undefined_flag_CXX='${wl}-z,nodefs'
12966	archive_cmds_need_lc_CXX=no
12967	hardcode_shlibpath_var_CXX=no
12968	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12969	hardcode_libdir_separator_CXX=':'
12970	link_all_deplibs_CXX=yes
12971	export_dynamic_flag_spec_CXX='${wl}-Bexport'
12972	runpath_var='LD_RUN_PATH'
12973
12974	case $cc_basename in
12975          CC*)
12976	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12977	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12978	    ;;
12979	  *)
12980	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12981	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12982	    ;;
12983	esac
12984      ;;
12985
12986      tandem*)
12987        case $cc_basename in
12988          NCC*)
12989	    # NonStop-UX NCC 3.20
12990	    # FIXME: insert proper C++ library support
12991	    ld_shlibs_CXX=no
12992	    ;;
12993          *)
12994	    # FIXME: insert proper C++ library support
12995	    ld_shlibs_CXX=no
12996	    ;;
12997        esac
12998        ;;
12999
13000      vxworks*)
13001        # FIXME: insert proper C++ library support
13002        ld_shlibs_CXX=no
13003        ;;
13004
13005      *)
13006        # FIXME: insert proper C++ library support
13007        ld_shlibs_CXX=no
13008        ;;
13009    esac
13010
13011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13012$as_echo "$ld_shlibs_CXX" >&6; }
13013    test "$ld_shlibs_CXX" = no && can_build_shared=no
13014
13015    GCC_CXX="$GXX"
13016    LD_CXX="$LD"
13017
13018    ## CAVEAT EMPTOR:
13019    ## There is no encapsulation within the following macros, do not change
13020    ## the running order or otherwise move them around unless you know exactly
13021    ## what you are doing...
13022    # Dependencies to place before and after the object being linked:
13023predep_objects_CXX=
13024postdep_objects_CXX=
13025predeps_CXX=
13026postdeps_CXX=
13027compiler_lib_search_path_CXX=
13028
13029cat > conftest.$ac_ext <<_LT_EOF
13030class Foo
13031{
13032public:
13033  Foo (void) { a = 0; }
13034private:
13035  int a;
13036};
13037_LT_EOF
13038
13039if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13040  (eval $ac_compile) 2>&5
13041  ac_status=$?
13042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13043  test $ac_status = 0; }; then
13044  # Parse the compiler output and extract the necessary
13045  # objects, libraries and library flags.
13046
13047  # Sentinel used to keep track of whether or not we are before
13048  # the conftest object file.
13049  pre_test_object_deps_done=no
13050
13051  for p in `eval "$output_verbose_link_cmd"`; do
13052    case $p in
13053
13054    -L* | -R* | -l*)
13055       # Some compilers place space between "-{L,R}" and the path.
13056       # Remove the space.
13057       if test $p = "-L" ||
13058          test $p = "-R"; then
13059	 prev=$p
13060	 continue
13061       else
13062	 prev=
13063       fi
13064
13065       if test "$pre_test_object_deps_done" = no; then
13066	 case $p in
13067	 -L* | -R*)
13068	   # Internal compiler library paths should come after those
13069	   # provided the user.  The postdeps already come after the
13070	   # user supplied libs so there is no need to process them.
13071	   if test -z "$compiler_lib_search_path_CXX"; then
13072	     compiler_lib_search_path_CXX="${prev}${p}"
13073	   else
13074	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13075	   fi
13076	   ;;
13077	 # The "-l" case would never come before the object being
13078	 # linked, so don't bother handling this case.
13079	 esac
13080       else
13081	 if test -z "$postdeps_CXX"; then
13082	   postdeps_CXX="${prev}${p}"
13083	 else
13084	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13085	 fi
13086       fi
13087       ;;
13088
13089    *.$objext)
13090       # This assumes that the test object file only shows up
13091       # once in the compiler output.
13092       if test "$p" = "conftest.$objext"; then
13093	 pre_test_object_deps_done=yes
13094	 continue
13095       fi
13096
13097       if test "$pre_test_object_deps_done" = no; then
13098	 if test -z "$predep_objects_CXX"; then
13099	   predep_objects_CXX="$p"
13100	 else
13101	   predep_objects_CXX="$predep_objects_CXX $p"
13102	 fi
13103       else
13104	 if test -z "$postdep_objects_CXX"; then
13105	   postdep_objects_CXX="$p"
13106	 else
13107	   postdep_objects_CXX="$postdep_objects_CXX $p"
13108	 fi
13109       fi
13110       ;;
13111
13112    *) ;; # Ignore the rest.
13113
13114    esac
13115  done
13116
13117  # Clean up.
13118  rm -f a.out a.exe
13119else
13120  echo "libtool.m4: error: problem compiling CXX test program"
13121fi
13122
13123$RM -f confest.$objext
13124
13125# PORTME: override above test on systems where it is broken
13126case $host_os in
13127interix[3-9]*)
13128  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13129  # hack all around it, let's just trust "g++" to DTRT.
13130  predep_objects_CXX=
13131  postdep_objects_CXX=
13132  postdeps_CXX=
13133  ;;
13134
13135linux*)
13136  case `$CC -V 2>&1 | sed 5q` in
13137  *Sun\ C*)
13138    # Sun C++ 5.9
13139
13140    # The more standards-conforming stlport4 library is
13141    # incompatible with the Cstd library. Avoid specifying
13142    # it if it's in CXXFLAGS. Ignore libCrun as
13143    # -library=stlport4 depends on it.
13144    case " $CXX $CXXFLAGS " in
13145    *" -library=stlport4 "*)
13146      solaris_use_stlport4=yes
13147      ;;
13148    esac
13149
13150    if test "$solaris_use_stlport4" != yes; then
13151      postdeps_CXX='-library=Cstd -library=Crun'
13152    fi
13153    ;;
13154  esac
13155  ;;
13156
13157solaris*)
13158  case $cc_basename in
13159  CC*)
13160    # The more standards-conforming stlport4 library is
13161    # incompatible with the Cstd library. Avoid specifying
13162    # it if it's in CXXFLAGS. Ignore libCrun as
13163    # -library=stlport4 depends on it.
13164    case " $CXX $CXXFLAGS " in
13165    *" -library=stlport4 "*)
13166      solaris_use_stlport4=yes
13167      ;;
13168    esac
13169
13170    # Adding this requires a known-good setup of shared libraries for
13171    # Sun compiler versions before 5.6, else PIC objects from an old
13172    # archive will be linked into the output, leading to subtle bugs.
13173    if test "$solaris_use_stlport4" != yes; then
13174      postdeps_CXX='-library=Cstd -library=Crun'
13175    fi
13176    ;;
13177  esac
13178  ;;
13179esac
13180
13181
13182case " $postdeps_CXX " in
13183*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13184esac
13185 compiler_lib_search_dirs_CXX=
13186if test -n "${compiler_lib_search_path_CXX}"; then
13187 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13188fi
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220    lt_prog_compiler_wl_CXX=
13221lt_prog_compiler_pic_CXX=
13222lt_prog_compiler_static_CXX=
13223
13224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13225$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13226
13227  # C++ specific cases for pic, static, wl, etc.
13228  if test "$GXX" = yes; then
13229    lt_prog_compiler_wl_CXX='-Wl,'
13230    lt_prog_compiler_static_CXX='-static'
13231
13232    case $host_os in
13233    aix*)
13234      # All AIX code is PIC.
13235      if test "$host_cpu" = ia64; then
13236	# AIX 5 now supports IA64 processor
13237	lt_prog_compiler_static_CXX='-Bstatic'
13238      fi
13239      ;;
13240
13241    amigaos*)
13242      case $host_cpu in
13243      powerpc)
13244            # see comment about AmigaOS4 .so support
13245            lt_prog_compiler_pic_CXX='-fPIC'
13246        ;;
13247      m68k)
13248            # FIXME: we need at least 68020 code to build shared libraries, but
13249            # adding the `-m68020' flag to GCC prevents building anything better,
13250            # like `-m68040'.
13251            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13252        ;;
13253      esac
13254      ;;
13255
13256    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13257      # PIC is the default for these OSes.
13258      ;;
13259    mingw* | cygwin* | os2* | pw32* | cegcc*)
13260      # This hack is so that the source file can tell whether it is being
13261      # built for inclusion in a dll (and should export symbols for example).
13262      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13263      # (--disable-auto-import) libraries
13264      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13265      ;;
13266    darwin* | rhapsody*)
13267      # PIC is the default on this platform
13268      # Common symbols not allowed in MH_DYLIB files
13269      lt_prog_compiler_pic_CXX='-fno-common'
13270      ;;
13271    *djgpp*)
13272      # DJGPP does not support shared libraries at all
13273      lt_prog_compiler_pic_CXX=
13274      ;;
13275    interix[3-9]*)
13276      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13277      # Instead, we relocate shared libraries at runtime.
13278      ;;
13279    sysv4*MP*)
13280      if test -d /usr/nec; then
13281	lt_prog_compiler_pic_CXX=-Kconform_pic
13282      fi
13283      ;;
13284    hpux*)
13285      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13286      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13287      # sets the default TLS model and affects inlining.
13288      case $host_cpu in
13289      hppa*64*)
13290	;;
13291      *)
13292	lt_prog_compiler_pic_CXX='-fPIC'
13293	;;
13294      esac
13295      ;;
13296    *qnx* | *nto*)
13297      # QNX uses GNU C++, but need to define -shared option too, otherwise
13298      # it will coredump.
13299      lt_prog_compiler_pic_CXX='-fPIC -shared'
13300      ;;
13301    *)
13302      lt_prog_compiler_pic_CXX='-fPIC'
13303      ;;
13304    esac
13305  else
13306    case $host_os in
13307      aix[4-9]*)
13308	# All AIX code is PIC.
13309	if test "$host_cpu" = ia64; then
13310	  # AIX 5 now supports IA64 processor
13311	  lt_prog_compiler_static_CXX='-Bstatic'
13312	else
13313	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13314	fi
13315	;;
13316      chorus*)
13317	case $cc_basename in
13318	cxch68*)
13319	  # Green Hills C++ Compiler
13320	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13321	  ;;
13322	esac
13323	;;
13324      dgux*)
13325	case $cc_basename in
13326	  ec++*)
13327	    lt_prog_compiler_pic_CXX='-KPIC'
13328	    ;;
13329	  ghcx*)
13330	    # Green Hills C++ Compiler
13331	    lt_prog_compiler_pic_CXX='-pic'
13332	    ;;
13333	  *)
13334	    ;;
13335	esac
13336	;;
13337      freebsd* | dragonfly*)
13338	# FreeBSD uses GNU C++
13339	;;
13340      hpux9* | hpux10* | hpux11*)
13341	case $cc_basename in
13342	  CC*)
13343	    lt_prog_compiler_wl_CXX='-Wl,'
13344	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13345	    if test "$host_cpu" != ia64; then
13346	      lt_prog_compiler_pic_CXX='+Z'
13347	    fi
13348	    ;;
13349	  aCC*)
13350	    lt_prog_compiler_wl_CXX='-Wl,'
13351	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13352	    case $host_cpu in
13353	    hppa*64*|ia64*)
13354	      # +Z the default
13355	      ;;
13356	    *)
13357	      lt_prog_compiler_pic_CXX='+Z'
13358	      ;;
13359	    esac
13360	    ;;
13361	  *)
13362	    ;;
13363	esac
13364	;;
13365      interix*)
13366	# This is c89, which is MS Visual C++ (no shared libs)
13367	# Anyone wants to do a port?
13368	;;
13369      irix5* | irix6* | nonstopux*)
13370	case $cc_basename in
13371	  CC*)
13372	    lt_prog_compiler_wl_CXX='-Wl,'
13373	    lt_prog_compiler_static_CXX='-non_shared'
13374	    # CC pic flag -KPIC is the default.
13375	    ;;
13376	  *)
13377	    ;;
13378	esac
13379	;;
13380      linux* | k*bsd*-gnu)
13381	case $cc_basename in
13382	  KCC*)
13383	    # KAI C++ Compiler
13384	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13385	    lt_prog_compiler_pic_CXX='-fPIC'
13386	    ;;
13387	  ecpc* )
13388	    # old Intel C++ for x86_64 which still supported -KPIC.
13389	    lt_prog_compiler_wl_CXX='-Wl,'
13390	    lt_prog_compiler_pic_CXX='-KPIC'
13391	    lt_prog_compiler_static_CXX='-static'
13392	    ;;
13393	  icpc* )
13394	    # Intel C++, used to be incompatible with GCC.
13395	    # ICC 10 doesn't accept -KPIC any more.
13396	    lt_prog_compiler_wl_CXX='-Wl,'
13397	    lt_prog_compiler_pic_CXX='-fPIC'
13398	    lt_prog_compiler_static_CXX='-static'
13399	    ;;
13400	  pgCC* | pgcpp*)
13401	    # Portland Group C++ compiler
13402	    lt_prog_compiler_wl_CXX='-Wl,'
13403	    lt_prog_compiler_pic_CXX='-fpic'
13404	    lt_prog_compiler_static_CXX='-Bstatic'
13405	    ;;
13406	  cxx*)
13407	    # Compaq C++
13408	    # Make sure the PIC flag is empty.  It appears that all Alpha
13409	    # Linux and Compaq Tru64 Unix objects are PIC.
13410	    lt_prog_compiler_pic_CXX=
13411	    lt_prog_compiler_static_CXX='-non_shared'
13412	    ;;
13413	  xlc* | xlC*)
13414	    # IBM XL 8.0 on PPC
13415	    lt_prog_compiler_wl_CXX='-Wl,'
13416	    lt_prog_compiler_pic_CXX='-qpic'
13417	    lt_prog_compiler_static_CXX='-qstaticlink'
13418	    ;;
13419	  *)
13420	    case `$CC -V 2>&1 | sed 5q` in
13421	    *Sun\ C*)
13422	      # Sun C++ 5.9
13423	      lt_prog_compiler_pic_CXX='-KPIC'
13424	      lt_prog_compiler_static_CXX='-Bstatic'
13425	      lt_prog_compiler_wl_CXX='-Qoption ld '
13426	      ;;
13427	    esac
13428	    ;;
13429	esac
13430	;;
13431      lynxos*)
13432	;;
13433      m88k*)
13434	;;
13435      mvs*)
13436	case $cc_basename in
13437	  cxx*)
13438	    lt_prog_compiler_pic_CXX='-W c,exportall'
13439	    ;;
13440	  *)
13441	    ;;
13442	esac
13443	;;
13444      netbsd*)
13445	;;
13446      *qnx* | *nto*)
13447        # QNX uses GNU C++, but need to define -shared option too, otherwise
13448        # it will coredump.
13449        lt_prog_compiler_pic_CXX='-fPIC -shared'
13450        ;;
13451      osf3* | osf4* | osf5*)
13452	case $cc_basename in
13453	  KCC*)
13454	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13455	    ;;
13456	  RCC*)
13457	    # Rational C++ 2.4.1
13458	    lt_prog_compiler_pic_CXX='-pic'
13459	    ;;
13460	  cxx*)
13461	    # Digital/Compaq C++
13462	    lt_prog_compiler_wl_CXX='-Wl,'
13463	    # Make sure the PIC flag is empty.  It appears that all Alpha
13464	    # Linux and Compaq Tru64 Unix objects are PIC.
13465	    lt_prog_compiler_pic_CXX=
13466	    lt_prog_compiler_static_CXX='-non_shared'
13467	    ;;
13468	  *)
13469	    ;;
13470	esac
13471	;;
13472      psos*)
13473	;;
13474      solaris*)
13475	case $cc_basename in
13476	  CC*)
13477	    # Sun C++ 4.2, 5.x and Centerline C++
13478	    lt_prog_compiler_pic_CXX='-KPIC'
13479	    lt_prog_compiler_static_CXX='-Bstatic'
13480	    lt_prog_compiler_wl_CXX='-Qoption ld '
13481	    ;;
13482	  gcx*)
13483	    # Green Hills C++ Compiler
13484	    lt_prog_compiler_pic_CXX='-PIC'
13485	    ;;
13486	  *)
13487	    ;;
13488	esac
13489	;;
13490      sunos4*)
13491	case $cc_basename in
13492	  CC*)
13493	    # Sun C++ 4.x
13494	    lt_prog_compiler_pic_CXX='-pic'
13495	    lt_prog_compiler_static_CXX='-Bstatic'
13496	    ;;
13497	  lcc*)
13498	    # Lucid
13499	    lt_prog_compiler_pic_CXX='-pic'
13500	    ;;
13501	  *)
13502	    ;;
13503	esac
13504	;;
13505      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13506	case $cc_basename in
13507	  CC*)
13508	    lt_prog_compiler_wl_CXX='-Wl,'
13509	    lt_prog_compiler_pic_CXX='-KPIC'
13510	    lt_prog_compiler_static_CXX='-Bstatic'
13511	    ;;
13512	esac
13513	;;
13514      tandem*)
13515	case $cc_basename in
13516	  NCC*)
13517	    # NonStop-UX NCC 3.20
13518	    lt_prog_compiler_pic_CXX='-KPIC'
13519	    ;;
13520	  *)
13521	    ;;
13522	esac
13523	;;
13524      vxworks*)
13525	;;
13526      *)
13527	lt_prog_compiler_can_build_shared_CXX=no
13528	;;
13529    esac
13530  fi
13531
13532case $host_os in
13533  # For platforms which do not support PIC, -DPIC is meaningless:
13534  *djgpp*)
13535    lt_prog_compiler_pic_CXX=
13536    ;;
13537  *)
13538    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13539    ;;
13540esac
13541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13542$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13543
13544
13545
13546#
13547# Check to make sure the PIC flag actually works.
13548#
13549if test -n "$lt_prog_compiler_pic_CXX"; then
13550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13551$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13552if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13553  $as_echo_n "(cached) " >&6
13554else
13555  lt_cv_prog_compiler_pic_works_CXX=no
13556   ac_outfile=conftest.$ac_objext
13557   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13558   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13559   # Insert the option either (1) after the last *FLAGS variable, or
13560   # (2) before a word containing "conftest.", or (3) at the end.
13561   # Note that $ac_compile itself does not contain backslashes and begins
13562   # with a dollar sign (not a hyphen), so the echo should work correctly.
13563   # The option is referenced via a variable to avoid confusing sed.
13564   lt_compile=`echo "$ac_compile" | $SED \
13565   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13566   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13567   -e 's:$: $lt_compiler_flag:'`
13568   (eval echo "\"\$as_me:13568: $lt_compile\"" >&5)
13569   (eval "$lt_compile" 2>conftest.err)
13570   ac_status=$?
13571   cat conftest.err >&5
13572   echo "$as_me:13572: \$? = $ac_status" >&5
13573   if (exit $ac_status) && test -s "$ac_outfile"; then
13574     # The compiler can only warn and ignore the option if not recognized
13575     # So say no if there are warnings other than the usual output.
13576     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13577     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13578     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13579       lt_cv_prog_compiler_pic_works_CXX=yes
13580     fi
13581   fi
13582   $RM conftest*
13583
13584fi
13585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13586$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13587
13588if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13589    case $lt_prog_compiler_pic_CXX in
13590     "" | " "*) ;;
13591     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13592     esac
13593else
13594    lt_prog_compiler_pic_CXX=
13595     lt_prog_compiler_can_build_shared_CXX=no
13596fi
13597
13598fi
13599
13600
13601
13602#
13603# Check to make sure the static flag actually works.
13604#
13605wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13607$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13608if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13609  $as_echo_n "(cached) " >&6
13610else
13611  lt_cv_prog_compiler_static_works_CXX=no
13612   save_LDFLAGS="$LDFLAGS"
13613   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13614   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13615   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13616     # The linker can only warn and ignore the option if not recognized
13617     # So say no if there are warnings
13618     if test -s conftest.err; then
13619       # Append any errors to the config.log.
13620       cat conftest.err 1>&5
13621       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13622       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13623       if diff conftest.exp conftest.er2 >/dev/null; then
13624         lt_cv_prog_compiler_static_works_CXX=yes
13625       fi
13626     else
13627       lt_cv_prog_compiler_static_works_CXX=yes
13628     fi
13629   fi
13630   $RM -r conftest*
13631   LDFLAGS="$save_LDFLAGS"
13632
13633fi
13634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13635$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13636
13637if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13638    :
13639else
13640    lt_prog_compiler_static_CXX=
13641fi
13642
13643
13644
13645
13646    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13647$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13648if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13649  $as_echo_n "(cached) " >&6
13650else
13651  lt_cv_prog_compiler_c_o_CXX=no
13652   $RM -r conftest 2>/dev/null
13653   mkdir conftest
13654   cd conftest
13655   mkdir out
13656   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13657
13658   lt_compiler_flag="-o out/conftest2.$ac_objext"
13659   # Insert the option either (1) after the last *FLAGS variable, or
13660   # (2) before a word containing "conftest.", or (3) at the end.
13661   # Note that $ac_compile itself does not contain backslashes and begins
13662   # with a dollar sign (not a hyphen), so the echo should work correctly.
13663   lt_compile=`echo "$ac_compile" | $SED \
13664   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13665   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13666   -e 's:$: $lt_compiler_flag:'`
13667   (eval echo "\"\$as_me:13667: $lt_compile\"" >&5)
13668   (eval "$lt_compile" 2>out/conftest.err)
13669   ac_status=$?
13670   cat out/conftest.err >&5
13671   echo "$as_me:13671: \$? = $ac_status" >&5
13672   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13673   then
13674     # The compiler can only warn and ignore the option if not recognized
13675     # So say no if there are warnings
13676     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13677     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13678     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13679       lt_cv_prog_compiler_c_o_CXX=yes
13680     fi
13681   fi
13682   chmod u+w . 2>&5
13683   $RM conftest*
13684   # SGI C++ compiler will create directory out/ii_files/ for
13685   # template instantiation
13686   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13687   $RM out/* && rmdir out
13688   cd ..
13689   $RM -r conftest
13690   $RM conftest*
13691
13692fi
13693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13694$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13695
13696
13697
13698    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13699$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13700if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13701  $as_echo_n "(cached) " >&6
13702else
13703  lt_cv_prog_compiler_c_o_CXX=no
13704   $RM -r conftest 2>/dev/null
13705   mkdir conftest
13706   cd conftest
13707   mkdir out
13708   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13709
13710   lt_compiler_flag="-o out/conftest2.$ac_objext"
13711   # Insert the option either (1) after the last *FLAGS variable, or
13712   # (2) before a word containing "conftest.", or (3) at the end.
13713   # Note that $ac_compile itself does not contain backslashes and begins
13714   # with a dollar sign (not a hyphen), so the echo should work correctly.
13715   lt_compile=`echo "$ac_compile" | $SED \
13716   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13717   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13718   -e 's:$: $lt_compiler_flag:'`
13719   (eval echo "\"\$as_me:13719: $lt_compile\"" >&5)
13720   (eval "$lt_compile" 2>out/conftest.err)
13721   ac_status=$?
13722   cat out/conftest.err >&5
13723   echo "$as_me:13723: \$? = $ac_status" >&5
13724   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13725   then
13726     # The compiler can only warn and ignore the option if not recognized
13727     # So say no if there are warnings
13728     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13729     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13730     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13731       lt_cv_prog_compiler_c_o_CXX=yes
13732     fi
13733   fi
13734   chmod u+w . 2>&5
13735   $RM conftest*
13736   # SGI C++ compiler will create directory out/ii_files/ for
13737   # template instantiation
13738   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13739   $RM out/* && rmdir out
13740   cd ..
13741   $RM -r conftest
13742   $RM conftest*
13743
13744fi
13745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13746$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13747
13748
13749
13750
13751hard_links="nottested"
13752if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13753  # do not overwrite the value of need_locks provided by the user
13754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13755$as_echo_n "checking if we can lock with hard links... " >&6; }
13756  hard_links=yes
13757  $RM conftest*
13758  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13759  touch conftest.a
13760  ln conftest.a conftest.b 2>&5 || hard_links=no
13761  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13763$as_echo "$hard_links" >&6; }
13764  if test "$hard_links" = no; then
13765    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13766$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13767    need_locks=warn
13768  fi
13769else
13770  need_locks=no
13771fi
13772
13773
13774
13775    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13776$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13777
13778  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13779  case $host_os in
13780  aix[4-9]*)
13781    # If we're using GNU nm, then we don't want the "-C" option.
13782    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13783    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13784      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'
13785    else
13786      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'
13787    fi
13788    ;;
13789  pw32*)
13790    export_symbols_cmds_CXX="$ltdll_cmds"
13791  ;;
13792  cygwin* | mingw* | cegcc*)
13793    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'
13794  ;;
13795  *)
13796    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13797  ;;
13798  esac
13799  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13800
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13802$as_echo "$ld_shlibs_CXX" >&6; }
13803test "$ld_shlibs_CXX" = no && can_build_shared=no
13804
13805with_gnu_ld_CXX=$with_gnu_ld
13806
13807
13808
13809
13810
13811
13812#
13813# Do we need to explicitly link libc?
13814#
13815case "x$archive_cmds_need_lc_CXX" in
13816x|xyes)
13817  # Assume -lc should be added
13818  archive_cmds_need_lc_CXX=yes
13819
13820  if test "$enable_shared" = yes && test "$GCC" = yes; then
13821    case $archive_cmds_CXX in
13822    *'~'*)
13823      # FIXME: we may have to deal with multi-command sequences.
13824      ;;
13825    '$CC '*)
13826      # Test whether the compiler implicitly links with -lc since on some
13827      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13828      # to ld, don't add -lc before -lgcc.
13829      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13830$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13831      $RM conftest*
13832      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13833
13834      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13835  (eval $ac_compile) 2>&5
13836  ac_status=$?
13837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13838  test $ac_status = 0; } 2>conftest.err; then
13839        soname=conftest
13840        lib=conftest
13841        libobjs=conftest.$ac_objext
13842        deplibs=
13843        wl=$lt_prog_compiler_wl_CXX
13844	pic_flag=$lt_prog_compiler_pic_CXX
13845        compiler_flags=-v
13846        linker_flags=-v
13847        verstring=
13848        output_objdir=.
13849        libname=conftest
13850        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13851        allow_undefined_flag_CXX=
13852        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13853  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13854  ac_status=$?
13855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13856  test $ac_status = 0; }
13857        then
13858	  archive_cmds_need_lc_CXX=no
13859        else
13860	  archive_cmds_need_lc_CXX=yes
13861        fi
13862        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13863      else
13864        cat conftest.err 1>&5
13865      fi
13866      $RM conftest*
13867      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13868$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13869      ;;
13870    esac
13871  fi
13872  ;;
13873esac
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13939$as_echo_n "checking dynamic linker characteristics... " >&6; }
13940
13941library_names_spec=
13942libname_spec='lib$name'
13943soname_spec=
13944shrext_cmds=".so"
13945postinstall_cmds=
13946postuninstall_cmds=
13947finish_cmds=
13948finish_eval=
13949shlibpath_var=
13950shlibpath_overrides_runpath=unknown
13951version_type=none
13952dynamic_linker="$host_os ld.so"
13953sys_lib_dlsearch_path_spec="/lib /usr/lib"
13954need_lib_prefix=unknown
13955hardcode_into_libs=no
13956
13957# when you set need_version to no, make sure it does not cause -set_version
13958# flags to be left without arguments
13959need_version=unknown
13960
13961case $host_os in
13962aix3*)
13963  version_type=linux
13964  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13965  shlibpath_var=LIBPATH
13966
13967  # AIX 3 has no versioning support, so we append a major version to the name.
13968  soname_spec='${libname}${release}${shared_ext}$major'
13969  ;;
13970
13971aix[4-9]*)
13972  version_type=linux
13973  need_lib_prefix=no
13974  need_version=no
13975  hardcode_into_libs=yes
13976  if test "$host_cpu" = ia64; then
13977    # AIX 5 supports IA64
13978    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13979    shlibpath_var=LD_LIBRARY_PATH
13980  else
13981    # With GCC up to 2.95.x, collect2 would create an import file
13982    # for dependence libraries.  The import file would start with
13983    # the line `#! .'.  This would cause the generated library to
13984    # depend on `.', always an invalid library.  This was fixed in
13985    # development snapshots of GCC prior to 3.0.
13986    case $host_os in
13987      aix4 | aix4.[01] | aix4.[01].*)
13988      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13989	   echo ' yes '
13990	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13991	:
13992      else
13993	can_build_shared=no
13994      fi
13995      ;;
13996    esac
13997    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13998    # soname into executable. Probably we can add versioning support to
13999    # collect2, so additional links can be useful in future.
14000    if test "$aix_use_runtimelinking" = yes; then
14001      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14002      # instead of lib<name>.a to let people know that these are not
14003      # typical AIX shared libraries.
14004      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14005    else
14006      # We preserve .a as extension for shared libraries through AIX4.2
14007      # and later when we are not doing run time linking.
14008      library_names_spec='${libname}${release}.a $libname.a'
14009      soname_spec='${libname}${release}${shared_ext}$major'
14010    fi
14011    shlibpath_var=LIBPATH
14012  fi
14013  ;;
14014
14015amigaos*)
14016  case $host_cpu in
14017  powerpc)
14018    # Since July 2007 AmigaOS4 officially supports .so libraries.
14019    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14020    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14021    ;;
14022  m68k)
14023    library_names_spec='$libname.ixlibrary $libname.a'
14024    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14025    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'
14026    ;;
14027  esac
14028  ;;
14029
14030beos*)
14031  library_names_spec='${libname}${shared_ext}'
14032  dynamic_linker="$host_os ld.so"
14033  shlibpath_var=LIBRARY_PATH
14034  ;;
14035
14036bsdi[45]*)
14037  version_type=linux
14038  need_version=no
14039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14040  soname_spec='${libname}${release}${shared_ext}$major'
14041  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14042  shlibpath_var=LD_LIBRARY_PATH
14043  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14044  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14045  # the default ld.so.conf also contains /usr/contrib/lib and
14046  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14047  # libtool to hard-code these into programs
14048  ;;
14049
14050cygwin* | mingw* | pw32* | cegcc*)
14051  version_type=windows
14052  shrext_cmds=".dll"
14053  need_version=no
14054  need_lib_prefix=no
14055
14056  case $GCC,$host_os in
14057  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14058    library_names_spec='$libname.dll.a'
14059    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14060    postinstall_cmds='base_file=`basename \${file}`~
14061      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14062      dldir=$destdir/`dirname \$dlpath`~
14063      test -d \$dldir || mkdir -p \$dldir~
14064      $install_prog $dir/$dlname \$dldir/$dlname~
14065      chmod a+x \$dldir/$dlname~
14066      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14067        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14068      fi'
14069    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14070      dlpath=$dir/\$dldll~
14071       $RM \$dlpath'
14072    shlibpath_overrides_runpath=yes
14073
14074    case $host_os in
14075    cygwin*)
14076      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14077      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14078      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14079      ;;
14080    mingw* | cegcc*)
14081      # MinGW DLLs use traditional 'lib' prefix
14082      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14083      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14084      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14085        # It is most probably a Windows format PATH printed by
14086        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14087        # path with ; separators, and with drive letters. We can handle the
14088        # drive letters (cygwin fileutils understands them), so leave them,
14089        # especially as we might pass files found there to a mingw objdump,
14090        # which wouldn't understand a cygwinified path. Ahh.
14091        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14092      else
14093        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14094      fi
14095      ;;
14096    pw32*)
14097      # pw32 DLLs use 'pw' prefix rather than 'lib'
14098      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14099      ;;
14100    esac
14101    ;;
14102
14103  *)
14104    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14105    ;;
14106  esac
14107  dynamic_linker='Win32 ld.exe'
14108  # FIXME: first we should search . and the directory the executable is in
14109  shlibpath_var=PATH
14110  ;;
14111
14112darwin* | rhapsody*)
14113  dynamic_linker="$host_os dyld"
14114  version_type=darwin
14115  need_lib_prefix=no
14116  need_version=no
14117  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14118  soname_spec='${libname}${release}${major}$shared_ext'
14119  shlibpath_overrides_runpath=yes
14120  shlibpath_var=DYLD_LIBRARY_PATH
14121  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14122
14123  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14124  ;;
14125
14126dgux*)
14127  version_type=linux
14128  need_lib_prefix=no
14129  need_version=no
14130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14131  soname_spec='${libname}${release}${shared_ext}$major'
14132  shlibpath_var=LD_LIBRARY_PATH
14133  ;;
14134
14135freebsd1*)
14136  dynamic_linker=no
14137  ;;
14138
14139freebsd* | dragonfly*)
14140  # DragonFly does not have aout.  When/if they implement a new
14141  # versioning mechanism, adjust this.
14142  if test -x /usr/bin/objformat; then
14143    objformat=`/usr/bin/objformat`
14144  else
14145    case $host_os in
14146    freebsd[123]*) objformat=aout ;;
14147    *) objformat=elf ;;
14148    esac
14149  fi
14150  version_type=freebsd-$objformat
14151  case $version_type in
14152    freebsd-elf*)
14153      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14154      need_version=no
14155      need_lib_prefix=no
14156      ;;
14157    freebsd-*)
14158      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14159      need_version=yes
14160      ;;
14161  esac
14162  shlibpath_var=LD_LIBRARY_PATH
14163  case $host_os in
14164  freebsd2*)
14165    shlibpath_overrides_runpath=yes
14166    ;;
14167  freebsd3.[01]* | freebsdelf3.[01]*)
14168    shlibpath_overrides_runpath=yes
14169    hardcode_into_libs=yes
14170    ;;
14171  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14172  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14173    shlibpath_overrides_runpath=no
14174    hardcode_into_libs=yes
14175    ;;
14176  *) # from 4.6 on, and DragonFly
14177    shlibpath_overrides_runpath=yes
14178    hardcode_into_libs=yes
14179    ;;
14180  esac
14181  ;;
14182
14183gnu*)
14184  version_type=linux
14185  need_lib_prefix=no
14186  need_version=no
14187  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14188  soname_spec='${libname}${release}${shared_ext}$major'
14189  shlibpath_var=LD_LIBRARY_PATH
14190  hardcode_into_libs=yes
14191  ;;
14192
14193hpux9* | hpux10* | hpux11*)
14194  # Give a soname corresponding to the major version so that dld.sl refuses to
14195  # link against other versions.
14196  version_type=sunos
14197  need_lib_prefix=no
14198  need_version=no
14199  case $host_cpu in
14200  ia64*)
14201    shrext_cmds='.so'
14202    hardcode_into_libs=yes
14203    dynamic_linker="$host_os dld.so"
14204    shlibpath_var=LD_LIBRARY_PATH
14205    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14206    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14207    soname_spec='${libname}${release}${shared_ext}$major'
14208    if test "X$HPUX_IA64_MODE" = X32; then
14209      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14210    else
14211      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14212    fi
14213    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14214    ;;
14215  hppa*64*)
14216    shrext_cmds='.sl'
14217    hardcode_into_libs=yes
14218    dynamic_linker="$host_os dld.sl"
14219    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14220    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14221    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14222    soname_spec='${libname}${release}${shared_ext}$major'
14223    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14224    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14225    ;;
14226  *)
14227    shrext_cmds='.sl'
14228    dynamic_linker="$host_os dld.sl"
14229    shlibpath_var=SHLIB_PATH
14230    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14231    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14232    soname_spec='${libname}${release}${shared_ext}$major'
14233    ;;
14234  esac
14235  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14236  postinstall_cmds='chmod 555 $lib'
14237  ;;
14238
14239interix[3-9]*)
14240  version_type=linux
14241  need_lib_prefix=no
14242  need_version=no
14243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14244  soname_spec='${libname}${release}${shared_ext}$major'
14245  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14246  shlibpath_var=LD_LIBRARY_PATH
14247  shlibpath_overrides_runpath=no
14248  hardcode_into_libs=yes
14249  ;;
14250
14251irix5* | irix6* | nonstopux*)
14252  case $host_os in
14253    nonstopux*) version_type=nonstopux ;;
14254    *)
14255	if test "$lt_cv_prog_gnu_ld" = yes; then
14256		version_type=linux
14257	else
14258		version_type=irix
14259	fi ;;
14260  esac
14261  need_lib_prefix=no
14262  need_version=no
14263  soname_spec='${libname}${release}${shared_ext}$major'
14264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14265  case $host_os in
14266  irix5* | nonstopux*)
14267    libsuff= shlibsuff=
14268    ;;
14269  *)
14270    case $LD in # libtool.m4 will add one of these switches to LD
14271    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14272      libsuff= shlibsuff= libmagic=32-bit;;
14273    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14274      libsuff=32 shlibsuff=N32 libmagic=N32;;
14275    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14276      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14277    *) libsuff= shlibsuff= libmagic=never-match;;
14278    esac
14279    ;;
14280  esac
14281  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14282  shlibpath_overrides_runpath=no
14283  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14284  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14285  hardcode_into_libs=yes
14286  ;;
14287
14288# No shared lib support for Linux oldld, aout, or coff.
14289linux*oldld* | linux*aout* | linux*coff*)
14290  dynamic_linker=no
14291  ;;
14292
14293# This must be Linux ELF.
14294linux* | k*bsd*-gnu)
14295  version_type=linux
14296  need_lib_prefix=no
14297  need_version=no
14298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14299  soname_spec='${libname}${release}${shared_ext}$major'
14300  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14301  shlibpath_var=LD_LIBRARY_PATH
14302  shlibpath_overrides_runpath=no
14303  # Some binutils ld are patched to set DT_RUNPATH
14304  save_LDFLAGS=$LDFLAGS
14305  save_libdir=$libdir
14306  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14307       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309/* end confdefs.h.  */
14310
14311int
14312main ()
14313{
14314
14315  ;
14316  return 0;
14317}
14318_ACEOF
14319if ac_fn_cxx_try_link "$LINENO"; then :
14320  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14321  shlibpath_overrides_runpath=yes
14322fi
14323fi
14324rm -f core conftest.err conftest.$ac_objext \
14325    conftest$ac_exeext conftest.$ac_ext
14326  LDFLAGS=$save_LDFLAGS
14327  libdir=$save_libdir
14328
14329  # This implies no fast_install, which is unacceptable.
14330  # Some rework will be needed to allow for fast_install
14331  # before this can be enabled.
14332  hardcode_into_libs=yes
14333
14334  # Add ABI-specific directories to the system library path.
14335  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14336
14337  # Append ld.so.conf contents to the search path
14338  if test -f /etc/ld.so.conf; then
14339    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' ' '`
14340    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14341  fi
14342
14343  # We used to test for /lib/ld.so.1 and disable shared libraries on
14344  # powerpc, because MkLinux only supported shared libraries with the
14345  # GNU dynamic linker.  Since this was broken with cross compilers,
14346  # most powerpc-linux boxes support dynamic linking these days and
14347  # people can always --disable-shared, the test was removed, and we
14348  # assume the GNU/Linux dynamic linker is in use.
14349  dynamic_linker='GNU/Linux ld.so'
14350  ;;
14351
14352netbsd*)
14353  version_type=sunos
14354  need_lib_prefix=no
14355  need_version=no
14356  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14357    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14358    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14359    dynamic_linker='NetBSD (a.out) ld.so'
14360  else
14361    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14362    soname_spec='${libname}${release}${shared_ext}$major'
14363    dynamic_linker='NetBSD ld.elf_so'
14364  fi
14365  shlibpath_var=LD_LIBRARY_PATH
14366  shlibpath_overrides_runpath=yes
14367  hardcode_into_libs=yes
14368  ;;
14369
14370newsos6)
14371  version_type=linux
14372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14373  shlibpath_var=LD_LIBRARY_PATH
14374  shlibpath_overrides_runpath=yes
14375  ;;
14376
14377*nto* | *qnx*)
14378  version_type=qnx
14379  need_lib_prefix=no
14380  need_version=no
14381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14382  soname_spec='${libname}${release}${shared_ext}$major'
14383  shlibpath_var=LD_LIBRARY_PATH
14384  shlibpath_overrides_runpath=no
14385  hardcode_into_libs=yes
14386  dynamic_linker='ldqnx.so'
14387  ;;
14388
14389openbsd*)
14390  version_type=sunos
14391  sys_lib_dlsearch_path_spec="/usr/lib"
14392  need_lib_prefix=no
14393  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14394  case $host_os in
14395    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14396    *)				need_version=no  ;;
14397  esac
14398  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14399  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14400  shlibpath_var=LD_LIBRARY_PATH
14401  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14402    case $host_os in
14403      openbsd2.[89] | openbsd2.[89].*)
14404	shlibpath_overrides_runpath=no
14405	;;
14406      *)
14407	shlibpath_overrides_runpath=yes
14408	;;
14409      esac
14410  else
14411    shlibpath_overrides_runpath=yes
14412  fi
14413  ;;
14414
14415os2*)
14416  libname_spec='$name'
14417  shrext_cmds=".dll"
14418  need_lib_prefix=no
14419  library_names_spec='$libname${shared_ext} $libname.a'
14420  dynamic_linker='OS/2 ld.exe'
14421  shlibpath_var=LIBPATH
14422  ;;
14423
14424osf3* | osf4* | osf5*)
14425  version_type=osf
14426  need_lib_prefix=no
14427  need_version=no
14428  soname_spec='${libname}${release}${shared_ext}$major'
14429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14430  shlibpath_var=LD_LIBRARY_PATH
14431  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14432  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14433  ;;
14434
14435rdos*)
14436  dynamic_linker=no
14437  ;;
14438
14439solaris*)
14440  version_type=linux
14441  need_lib_prefix=no
14442  need_version=no
14443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14444  soname_spec='${libname}${release}${shared_ext}$major'
14445  shlibpath_var=LD_LIBRARY_PATH
14446  shlibpath_overrides_runpath=yes
14447  hardcode_into_libs=yes
14448  # ldd complains unless libraries are executable
14449  postinstall_cmds='chmod +x $lib'
14450  ;;
14451
14452sunos4*)
14453  version_type=sunos
14454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14455  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14456  shlibpath_var=LD_LIBRARY_PATH
14457  shlibpath_overrides_runpath=yes
14458  if test "$with_gnu_ld" = yes; then
14459    need_lib_prefix=no
14460  fi
14461  need_version=yes
14462  ;;
14463
14464sysv4 | sysv4.3*)
14465  version_type=linux
14466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14467  soname_spec='${libname}${release}${shared_ext}$major'
14468  shlibpath_var=LD_LIBRARY_PATH
14469  case $host_vendor in
14470    sni)
14471      shlibpath_overrides_runpath=no
14472      need_lib_prefix=no
14473      runpath_var=LD_RUN_PATH
14474      ;;
14475    siemens)
14476      need_lib_prefix=no
14477      ;;
14478    motorola)
14479      need_lib_prefix=no
14480      need_version=no
14481      shlibpath_overrides_runpath=no
14482      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14483      ;;
14484  esac
14485  ;;
14486
14487sysv4*MP*)
14488  if test -d /usr/nec ;then
14489    version_type=linux
14490    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14491    soname_spec='$libname${shared_ext}.$major'
14492    shlibpath_var=LD_LIBRARY_PATH
14493  fi
14494  ;;
14495
14496sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14497  version_type=freebsd-elf
14498  need_lib_prefix=no
14499  need_version=no
14500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14501  soname_spec='${libname}${release}${shared_ext}$major'
14502  shlibpath_var=LD_LIBRARY_PATH
14503  shlibpath_overrides_runpath=yes
14504  hardcode_into_libs=yes
14505  if test "$with_gnu_ld" = yes; then
14506    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14507  else
14508    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14509    case $host_os in
14510      sco3.2v5*)
14511        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14512	;;
14513    esac
14514  fi
14515  sys_lib_dlsearch_path_spec='/usr/lib'
14516  ;;
14517
14518tpf*)
14519  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14520  version_type=linux
14521  need_lib_prefix=no
14522  need_version=no
14523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14524  shlibpath_var=LD_LIBRARY_PATH
14525  shlibpath_overrides_runpath=no
14526  hardcode_into_libs=yes
14527  ;;
14528
14529uts4*)
14530  version_type=linux
14531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14532  soname_spec='${libname}${release}${shared_ext}$major'
14533  shlibpath_var=LD_LIBRARY_PATH
14534  ;;
14535
14536*)
14537  dynamic_linker=no
14538  ;;
14539esac
14540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14541$as_echo "$dynamic_linker" >&6; }
14542test "$dynamic_linker" = no && can_build_shared=no
14543
14544variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14545if test "$GCC" = yes; then
14546  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14547fi
14548
14549if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14550  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14551fi
14552if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14553  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14554fi
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14592$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14593hardcode_action_CXX=
14594if test -n "$hardcode_libdir_flag_spec_CXX" ||
14595   test -n "$runpath_var_CXX" ||
14596   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14597
14598  # We can hardcode non-existent directories.
14599  if test "$hardcode_direct_CXX" != no &&
14600     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14601     # have to relink, otherwise we might link with an installed library
14602     # when we should be linking with a yet-to-be-installed one
14603     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14604     test "$hardcode_minus_L_CXX" != no; then
14605    # Linking always hardcodes the temporary library directory.
14606    hardcode_action_CXX=relink
14607  else
14608    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14609    hardcode_action_CXX=immediate
14610  fi
14611else
14612  # We cannot hardcode anything, or else we can only hardcode existing
14613  # directories.
14614  hardcode_action_CXX=unsupported
14615fi
14616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14617$as_echo "$hardcode_action_CXX" >&6; }
14618
14619if test "$hardcode_action_CXX" = relink ||
14620   test "$inherit_rpath_CXX" = yes; then
14621  # Fast installation is not supported
14622  enable_fast_install=no
14623elif test "$shlibpath_overrides_runpath" = yes ||
14624     test "$enable_shared" = no; then
14625  # Fast installation is not necessary
14626  enable_fast_install=needless
14627fi
14628
14629
14630
14631
14632
14633
14634
14635  fi # test -n "$compiler"
14636
14637  CC=$lt_save_CC
14638  LDCXX=$LD
14639  LD=$lt_save_LD
14640  GCC=$lt_save_GCC
14641  with_gnu_ld=$lt_save_with_gnu_ld
14642  lt_cv_path_LDCXX=$lt_cv_path_LD
14643  lt_cv_path_LD=$lt_save_path_LD
14644  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14645  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14646fi # test "$_lt_caught_CXX_error" != yes
14647
14648ac_ext=c
14649ac_cpp='$CPP $CPPFLAGS'
14650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14652ac_compiler_gnu=$ac_cv_c_compiler_gnu
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666        ac_config_commands="$ac_config_commands libtool"
14667
14668
14669
14670
14671# Only expand once:
14672
14673
14674enable_win32_dll=yes
14675
14676case $host in
14677*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
14678  if test -n "$ac_tool_prefix"; then
14679  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14680set dummy ${ac_tool_prefix}as; ac_word=$2
14681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14682$as_echo_n "checking for $ac_word... " >&6; }
14683if ${ac_cv_prog_AS+:} false; then :
14684  $as_echo_n "(cached) " >&6
14685else
14686  if test -n "$AS"; then
14687  ac_cv_prog_AS="$AS" # Let the user override the test.
14688else
14689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14690for as_dir in $PATH
14691do
14692  IFS=$as_save_IFS
14693  test -z "$as_dir" && as_dir=.
14694    for ac_exec_ext in '' $ac_executable_extensions; do
14695  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14696    ac_cv_prog_AS="${ac_tool_prefix}as"
14697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14698    break 2
14699  fi
14700done
14701  done
14702IFS=$as_save_IFS
14703
14704fi
14705fi
14706AS=$ac_cv_prog_AS
14707if test -n "$AS"; then
14708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14709$as_echo "$AS" >&6; }
14710else
14711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14712$as_echo "no" >&6; }
14713fi
14714
14715
14716fi
14717if test -z "$ac_cv_prog_AS"; then
14718  ac_ct_AS=$AS
14719  # Extract the first word of "as", so it can be a program name with args.
14720set dummy as; ac_word=$2
14721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14722$as_echo_n "checking for $ac_word... " >&6; }
14723if ${ac_cv_prog_ac_ct_AS+:} false; then :
14724  $as_echo_n "(cached) " >&6
14725else
14726  if test -n "$ac_ct_AS"; then
14727  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14728else
14729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14730for as_dir in $PATH
14731do
14732  IFS=$as_save_IFS
14733  test -z "$as_dir" && as_dir=.
14734    for ac_exec_ext in '' $ac_executable_extensions; do
14735  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14736    ac_cv_prog_ac_ct_AS="as"
14737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14738    break 2
14739  fi
14740done
14741  done
14742IFS=$as_save_IFS
14743
14744fi
14745fi
14746ac_ct_AS=$ac_cv_prog_ac_ct_AS
14747if test -n "$ac_ct_AS"; then
14748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14749$as_echo "$ac_ct_AS" >&6; }
14750else
14751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752$as_echo "no" >&6; }
14753fi
14754
14755  if test "x$ac_ct_AS" = x; then
14756    AS="false"
14757  else
14758    case $cross_compiling:$ac_tool_warned in
14759yes:)
14760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14762ac_tool_warned=yes ;;
14763esac
14764    AS=$ac_ct_AS
14765  fi
14766else
14767  AS="$ac_cv_prog_AS"
14768fi
14769
14770  if test -n "$ac_tool_prefix"; then
14771  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14772set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14774$as_echo_n "checking for $ac_word... " >&6; }
14775if ${ac_cv_prog_DLLTOOL+:} false; then :
14776  $as_echo_n "(cached) " >&6
14777else
14778  if test -n "$DLLTOOL"; then
14779  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14780else
14781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14782for as_dir in $PATH
14783do
14784  IFS=$as_save_IFS
14785  test -z "$as_dir" && as_dir=.
14786    for ac_exec_ext in '' $ac_executable_extensions; do
14787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14788    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14790    break 2
14791  fi
14792done
14793  done
14794IFS=$as_save_IFS
14795
14796fi
14797fi
14798DLLTOOL=$ac_cv_prog_DLLTOOL
14799if test -n "$DLLTOOL"; then
14800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14801$as_echo "$DLLTOOL" >&6; }
14802else
14803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14804$as_echo "no" >&6; }
14805fi
14806
14807
14808fi
14809if test -z "$ac_cv_prog_DLLTOOL"; then
14810  ac_ct_DLLTOOL=$DLLTOOL
14811  # Extract the first word of "dlltool", so it can be a program name with args.
14812set dummy dlltool; ac_word=$2
14813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14814$as_echo_n "checking for $ac_word... " >&6; }
14815if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
14816  $as_echo_n "(cached) " >&6
14817else
14818  if test -n "$ac_ct_DLLTOOL"; then
14819  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14820else
14821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14822for as_dir in $PATH
14823do
14824  IFS=$as_save_IFS
14825  test -z "$as_dir" && as_dir=.
14826    for ac_exec_ext in '' $ac_executable_extensions; do
14827  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14828    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14830    break 2
14831  fi
14832done
14833  done
14834IFS=$as_save_IFS
14835
14836fi
14837fi
14838ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14839if test -n "$ac_ct_DLLTOOL"; then
14840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14841$as_echo "$ac_ct_DLLTOOL" >&6; }
14842else
14843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14844$as_echo "no" >&6; }
14845fi
14846
14847  if test "x$ac_ct_DLLTOOL" = x; then
14848    DLLTOOL="false"
14849  else
14850    case $cross_compiling:$ac_tool_warned in
14851yes:)
14852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14854ac_tool_warned=yes ;;
14855esac
14856    DLLTOOL=$ac_ct_DLLTOOL
14857  fi
14858else
14859  DLLTOOL="$ac_cv_prog_DLLTOOL"
14860fi
14861
14862  if test -n "$ac_tool_prefix"; then
14863  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14864set dummy ${ac_tool_prefix}objdump; ac_word=$2
14865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14866$as_echo_n "checking for $ac_word... " >&6; }
14867if ${ac_cv_prog_OBJDUMP+:} false; then :
14868  $as_echo_n "(cached) " >&6
14869else
14870  if test -n "$OBJDUMP"; then
14871  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14872else
14873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14874for as_dir in $PATH
14875do
14876  IFS=$as_save_IFS
14877  test -z "$as_dir" && as_dir=.
14878    for ac_exec_ext in '' $ac_executable_extensions; do
14879  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14880    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14882    break 2
14883  fi
14884done
14885  done
14886IFS=$as_save_IFS
14887
14888fi
14889fi
14890OBJDUMP=$ac_cv_prog_OBJDUMP
14891if test -n "$OBJDUMP"; then
14892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14893$as_echo "$OBJDUMP" >&6; }
14894else
14895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14896$as_echo "no" >&6; }
14897fi
14898
14899
14900fi
14901if test -z "$ac_cv_prog_OBJDUMP"; then
14902  ac_ct_OBJDUMP=$OBJDUMP
14903  # Extract the first word of "objdump", so it can be a program name with args.
14904set dummy objdump; ac_word=$2
14905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14906$as_echo_n "checking for $ac_word... " >&6; }
14907if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14908  $as_echo_n "(cached) " >&6
14909else
14910  if test -n "$ac_ct_OBJDUMP"; then
14911  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14912else
14913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14914for as_dir in $PATH
14915do
14916  IFS=$as_save_IFS
14917  test -z "$as_dir" && as_dir=.
14918    for ac_exec_ext in '' $ac_executable_extensions; do
14919  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14920    ac_cv_prog_ac_ct_OBJDUMP="objdump"
14921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14922    break 2
14923  fi
14924done
14925  done
14926IFS=$as_save_IFS
14927
14928fi
14929fi
14930ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14931if test -n "$ac_ct_OBJDUMP"; then
14932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14933$as_echo "$ac_ct_OBJDUMP" >&6; }
14934else
14935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14936$as_echo "no" >&6; }
14937fi
14938
14939  if test "x$ac_ct_OBJDUMP" = x; then
14940    OBJDUMP="false"
14941  else
14942    case $cross_compiling:$ac_tool_warned in
14943yes:)
14944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14946ac_tool_warned=yes ;;
14947esac
14948    OBJDUMP=$ac_ct_OBJDUMP
14949  fi
14950else
14951  OBJDUMP="$ac_cv_prog_OBJDUMP"
14952fi
14953
14954  ;;
14955esac
14956
14957test -z "$AS" && AS=as
14958
14959
14960
14961
14962
14963test -z "$DLLTOOL" && DLLTOOL=dlltool
14964
14965
14966
14967
14968
14969test -z "$OBJDUMP" && OBJDUMP=objdump
14970
14971
14972
14973
14974
14975# Checks for libraries.
14976
14977# Checks for header files.
14978
14979for ac_header in fcntl.h libintl.h locale.h unistd.h error.h
14980do :
14981  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14982ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14983if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14984  cat >>confdefs.h <<_ACEOF
14985#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14986_ACEOF
14987
14988fi
14989
14990done
14991
14992
14993# Checks for typedefs, structures, and compiler characteristics.
14994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14995$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14996if ${ac_cv_c_const+:} false; then :
14997  $as_echo_n "(cached) " >&6
14998else
14999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000/* end confdefs.h.  */
15001
15002int
15003main ()
15004{
15005/* FIXME: Include the comments suggested by Paul. */
15006#ifndef __cplusplus
15007  /* Ultrix mips cc rejects this.  */
15008  typedef int charset[2];
15009  const charset cs;
15010  /* SunOS 4.1.1 cc rejects this.  */
15011  char const *const *pcpcc;
15012  char **ppc;
15013  /* NEC SVR4.0.2 mips cc rejects this.  */
15014  struct point {int x, y;};
15015  static struct point const zero = {0,0};
15016  /* AIX XL C 1.02.0.0 rejects this.
15017     It does not let you subtract one const X* pointer from another in
15018     an arm of an if-expression whose if-part is not a constant
15019     expression */
15020  const char *g = "string";
15021  pcpcc = &g + (g ? g-g : 0);
15022  /* HPUX 7.0 cc rejects these. */
15023  ++pcpcc;
15024  ppc = (char**) pcpcc;
15025  pcpcc = (char const *const *) ppc;
15026  { /* SCO 3.2v4 cc rejects this.  */
15027    char *t;
15028    char const *s = 0 ? (char *) 0 : (char const *) 0;
15029
15030    *t++ = 0;
15031    if (s) return 0;
15032  }
15033  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15034    int x[] = {25, 17};
15035    const int *foo = &x[0];
15036    ++foo;
15037  }
15038  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15039    typedef const int *iptr;
15040    iptr p = 0;
15041    ++p;
15042  }
15043  { /* AIX XL C 1.02.0.0 rejects this saying
15044       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15045    struct s { int j; const int *ap[3]; };
15046    struct s *b; b->j = 5;
15047  }
15048  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15049    const int foo = 10;
15050    if (!foo) return 0;
15051  }
15052  return !cs[0] && !zero.x;
15053#endif
15054
15055  ;
15056  return 0;
15057}
15058_ACEOF
15059if ac_fn_c_try_compile "$LINENO"; then :
15060  ac_cv_c_const=yes
15061else
15062  ac_cv_c_const=no
15063fi
15064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15065fi
15066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15067$as_echo "$ac_cv_c_const" >&6; }
15068if test $ac_cv_c_const = no; then
15069
15070$as_echo "#define const /**/" >>confdefs.h
15071
15072fi
15073
15074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15075$as_echo_n "checking for inline... " >&6; }
15076if ${ac_cv_c_inline+:} false; then :
15077  $as_echo_n "(cached) " >&6
15078else
15079  ac_cv_c_inline=no
15080for ac_kw in inline __inline__ __inline; do
15081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082/* end confdefs.h.  */
15083#ifndef __cplusplus
15084typedef int foo_t;
15085static $ac_kw foo_t static_foo () {return 0; }
15086$ac_kw foo_t foo () {return 0; }
15087#endif
15088
15089_ACEOF
15090if ac_fn_c_try_compile "$LINENO"; then :
15091  ac_cv_c_inline=$ac_kw
15092fi
15093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15094  test "$ac_cv_c_inline" != no && break
15095done
15096
15097fi
15098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15099$as_echo "$ac_cv_c_inline" >&6; }
15100
15101case $ac_cv_c_inline in
15102  inline | yes) ;;
15103  *)
15104    case $ac_cv_c_inline in
15105      no) ac_val=;;
15106      *) ac_val=$ac_cv_c_inline;;
15107    esac
15108    cat >>confdefs.h <<_ACEOF
15109#ifndef __cplusplus
15110#define inline $ac_val
15111#endif
15112_ACEOF
15113    ;;
15114esac
15115
15116
15117# Checks for library functions.
15118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
15119$as_echo_n "checking for error_at_line... " >&6; }
15120if ${ac_cv_lib_error_at_line+:} false; then :
15121  $as_echo_n "(cached) " >&6
15122else
15123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124/* end confdefs.h.  */
15125#include <error.h>
15126int
15127main ()
15128{
15129error_at_line (0, 0, "", 0, "an error occurred");
15130  ;
15131  return 0;
15132}
15133_ACEOF
15134if ac_fn_c_try_link "$LINENO"; then :
15135  ac_cv_lib_error_at_line=yes
15136else
15137  ac_cv_lib_error_at_line=no
15138fi
15139rm -f core conftest.err conftest.$ac_objext \
15140    conftest$ac_exeext conftest.$ac_ext
15141fi
15142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
15143$as_echo "$ac_cv_lib_error_at_line" >&6; }
15144if test $ac_cv_lib_error_at_line = no; then
15145  case " $LIBOBJS " in
15146  *" error.$ac_objext "* ) ;;
15147  *) LIBOBJS="$LIBOBJS error.$ac_objext"
15148 ;;
15149esac
15150
15151fi
15152
15153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15154$as_echo_n "checking for ANSI C header files... " >&6; }
15155if ${ac_cv_header_stdc+:} false; then :
15156  $as_echo_n "(cached) " >&6
15157else
15158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159/* end confdefs.h.  */
15160#include <stdlib.h>
15161#include <stdarg.h>
15162#include <string.h>
15163#include <float.h>
15164
15165int
15166main ()
15167{
15168
15169  ;
15170  return 0;
15171}
15172_ACEOF
15173if ac_fn_c_try_compile "$LINENO"; then :
15174  ac_cv_header_stdc=yes
15175else
15176  ac_cv_header_stdc=no
15177fi
15178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15179
15180if test $ac_cv_header_stdc = yes; then
15181  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183/* end confdefs.h.  */
15184#include <string.h>
15185
15186_ACEOF
15187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15188  $EGREP "memchr" >/dev/null 2>&1; then :
15189
15190else
15191  ac_cv_header_stdc=no
15192fi
15193rm -f conftest*
15194
15195fi
15196
15197if test $ac_cv_header_stdc = yes; then
15198  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15200/* end confdefs.h.  */
15201#include <stdlib.h>
15202
15203_ACEOF
15204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15205  $EGREP "free" >/dev/null 2>&1; then :
15206
15207else
15208  ac_cv_header_stdc=no
15209fi
15210rm -f conftest*
15211
15212fi
15213
15214if test $ac_cv_header_stdc = yes; then
15215  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15216  if test "$cross_compiling" = yes; then :
15217  :
15218else
15219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220/* end confdefs.h.  */
15221#include <ctype.h>
15222#include <stdlib.h>
15223#if ((' ' & 0x0FF) == 0x020)
15224# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15225# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15226#else
15227# define ISLOWER(c) \
15228		   (('a' <= (c) && (c) <= 'i') \
15229		     || ('j' <= (c) && (c) <= 'r') \
15230		     || ('s' <= (c) && (c) <= 'z'))
15231# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15232#endif
15233
15234#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15235int
15236main ()
15237{
15238  int i;
15239  for (i = 0; i < 256; i++)
15240    if (XOR (islower (i), ISLOWER (i))
15241	|| toupper (i) != TOUPPER (i))
15242      return 2;
15243  return 0;
15244}
15245_ACEOF
15246if ac_fn_c_try_run "$LINENO"; then :
15247
15248else
15249  ac_cv_header_stdc=no
15250fi
15251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15252  conftest.$ac_objext conftest.beam conftest.$ac_ext
15253fi
15254
15255fi
15256fi
15257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15258$as_echo "$ac_cv_header_stdc" >&6; }
15259if test $ac_cv_header_stdc = yes; then
15260
15261$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15262
15263fi
15264
15265for ac_func in memchr setlocale strchr strstr
15266do :
15267  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15268ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15269if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15270  cat >>confdefs.h <<_ACEOF
15271#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15272_ACEOF
15273
15274fi
15275done
15276
15277
15278
15279  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15280$as_echo_n "checking whether NLS is requested... " >&6; }
15281    # Check whether --enable-nls was given.
15282if test "${enable_nls+set}" = set; then :
15283  enableval=$enable_nls; USE_NLS=$enableval
15284else
15285  USE_NLS=yes
15286fi
15287
15288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15289$as_echo "$USE_NLS" >&6; }
15290
15291
15292
15293
15294      GETTEXT_MACRO_VERSION=0.17
15295
15296
15297
15298
15299# Prepare PATH_SEPARATOR.
15300# The user is always right.
15301if test "${PATH_SEPARATOR+set}" != set; then
15302  echo "#! /bin/sh" >conf$$.sh
15303  echo  "exit 0"   >>conf$$.sh
15304  chmod +x conf$$.sh
15305  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15306    PATH_SEPARATOR=';'
15307  else
15308    PATH_SEPARATOR=:
15309  fi
15310  rm -f conf$$.sh
15311fi
15312
15313# Find out how to test for executable files. Don't use a zero-byte file,
15314# as systems may use methods other than mode bits to determine executability.
15315cat >conf$$.file <<_ASEOF
15316#! /bin/sh
15317exit 0
15318_ASEOF
15319chmod +x conf$$.file
15320if test -x conf$$.file >/dev/null 2>&1; then
15321  ac_executable_p="test -x"
15322else
15323  ac_executable_p="test -f"
15324fi
15325rm -f conf$$.file
15326
15327# Extract the first word of "msgfmt", so it can be a program name with args.
15328set dummy msgfmt; ac_word=$2
15329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15330$as_echo_n "checking for $ac_word... " >&6; }
15331if ${ac_cv_path_MSGFMT+:} false; then :
15332  $as_echo_n "(cached) " >&6
15333else
15334  case "$MSGFMT" in
15335  [\\/]* | ?:[\\/]*)
15336    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15337    ;;
15338  *)
15339    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15340    for ac_dir in $PATH; do
15341      IFS="$ac_save_IFS"
15342      test -z "$ac_dir" && ac_dir=.
15343      for ac_exec_ext in '' $ac_executable_extensions; do
15344        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15345          echo "$as_me: trying $ac_dir/$ac_word..." >&5
15346          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
15347     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15348            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15349            break 2
15350          fi
15351        fi
15352      done
15353    done
15354    IFS="$ac_save_IFS"
15355  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15356    ;;
15357esac
15358fi
15359MSGFMT="$ac_cv_path_MSGFMT"
15360if test "$MSGFMT" != ":"; then
15361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15362$as_echo "$MSGFMT" >&6; }
15363else
15364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15365$as_echo "no" >&6; }
15366fi
15367
15368  # Extract the first word of "gmsgfmt", so it can be a program name with args.
15369set dummy gmsgfmt; ac_word=$2
15370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15371$as_echo_n "checking for $ac_word... " >&6; }
15372if ${ac_cv_path_GMSGFMT+:} false; then :
15373  $as_echo_n "(cached) " >&6
15374else
15375  case $GMSGFMT in
15376  [\\/]* | ?:[\\/]*)
15377  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15378  ;;
15379  *)
15380  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15381for as_dir in $PATH
15382do
15383  IFS=$as_save_IFS
15384  test -z "$as_dir" && as_dir=.
15385    for ac_exec_ext in '' $ac_executable_extensions; do
15386  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15387    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15389    break 2
15390  fi
15391done
15392  done
15393IFS=$as_save_IFS
15394
15395  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15396  ;;
15397esac
15398fi
15399GMSGFMT=$ac_cv_path_GMSGFMT
15400if test -n "$GMSGFMT"; then
15401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15402$as_echo "$GMSGFMT" >&6; }
15403else
15404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15405$as_echo "no" >&6; }
15406fi
15407
15408
15409
15410    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15411    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
15412    *) MSGFMT_015=$MSGFMT ;;
15413  esac
15414
15415  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15416    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
15417    *) GMSGFMT_015=$GMSGFMT ;;
15418  esac
15419
15420
15421
15422# Prepare PATH_SEPARATOR.
15423# The user is always right.
15424if test "${PATH_SEPARATOR+set}" != set; then
15425  echo "#! /bin/sh" >conf$$.sh
15426  echo  "exit 0"   >>conf$$.sh
15427  chmod +x conf$$.sh
15428  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15429    PATH_SEPARATOR=';'
15430  else
15431    PATH_SEPARATOR=:
15432  fi
15433  rm -f conf$$.sh
15434fi
15435
15436# Find out how to test for executable files. Don't use a zero-byte file,
15437# as systems may use methods other than mode bits to determine executability.
15438cat >conf$$.file <<_ASEOF
15439#! /bin/sh
15440exit 0
15441_ASEOF
15442chmod +x conf$$.file
15443if test -x conf$$.file >/dev/null 2>&1; then
15444  ac_executable_p="test -x"
15445else
15446  ac_executable_p="test -f"
15447fi
15448rm -f conf$$.file
15449
15450# Extract the first word of "xgettext", so it can be a program name with args.
15451set dummy xgettext; ac_word=$2
15452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15453$as_echo_n "checking for $ac_word... " >&6; }
15454if ${ac_cv_path_XGETTEXT+:} false; then :
15455  $as_echo_n "(cached) " >&6
15456else
15457  case "$XGETTEXT" in
15458  [\\/]* | ?:[\\/]*)
15459    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15460    ;;
15461  *)
15462    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15463    for ac_dir in $PATH; do
15464      IFS="$ac_save_IFS"
15465      test -z "$ac_dir" && ac_dir=.
15466      for ac_exec_ext in '' $ac_executable_extensions; do
15467        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15468          echo "$as_me: trying $ac_dir/$ac_word..." >&5
15469          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
15470     (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
15471            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15472            break 2
15473          fi
15474        fi
15475      done
15476    done
15477    IFS="$ac_save_IFS"
15478  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15479    ;;
15480esac
15481fi
15482XGETTEXT="$ac_cv_path_XGETTEXT"
15483if test "$XGETTEXT" != ":"; then
15484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15485$as_echo "$XGETTEXT" >&6; }
15486else
15487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15488$as_echo "no" >&6; }
15489fi
15490
15491    rm -f messages.po
15492
15493    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15494    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
15495    *) XGETTEXT_015=$XGETTEXT ;;
15496  esac
15497
15498
15499
15500# Prepare PATH_SEPARATOR.
15501# The user is always right.
15502if test "${PATH_SEPARATOR+set}" != set; then
15503  echo "#! /bin/sh" >conf$$.sh
15504  echo  "exit 0"   >>conf$$.sh
15505  chmod +x conf$$.sh
15506  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15507    PATH_SEPARATOR=';'
15508  else
15509    PATH_SEPARATOR=:
15510  fi
15511  rm -f conf$$.sh
15512fi
15513
15514# Find out how to test for executable files. Don't use a zero-byte file,
15515# as systems may use methods other than mode bits to determine executability.
15516cat >conf$$.file <<_ASEOF
15517#! /bin/sh
15518exit 0
15519_ASEOF
15520chmod +x conf$$.file
15521if test -x conf$$.file >/dev/null 2>&1; then
15522  ac_executable_p="test -x"
15523else
15524  ac_executable_p="test -f"
15525fi
15526rm -f conf$$.file
15527
15528# Extract the first word of "msgmerge", so it can be a program name with args.
15529set dummy msgmerge; ac_word=$2
15530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15531$as_echo_n "checking for $ac_word... " >&6; }
15532if ${ac_cv_path_MSGMERGE+:} false; then :
15533  $as_echo_n "(cached) " >&6
15534else
15535  case "$MSGMERGE" in
15536  [\\/]* | ?:[\\/]*)
15537    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15538    ;;
15539  *)
15540    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15541    for ac_dir in $PATH; do
15542      IFS="$ac_save_IFS"
15543      test -z "$ac_dir" && ac_dir=.
15544      for ac_exec_ext in '' $ac_executable_extensions; do
15545        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15546          echo "$as_me: trying $ac_dir/$ac_word..." >&5
15547          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
15548            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15549            break 2
15550          fi
15551        fi
15552      done
15553    done
15554    IFS="$ac_save_IFS"
15555  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15556    ;;
15557esac
15558fi
15559MSGMERGE="$ac_cv_path_MSGMERGE"
15560if test "$MSGMERGE" != ":"; then
15561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15562$as_echo "$MSGMERGE" >&6; }
15563else
15564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15565$as_echo "no" >&6; }
15566fi
15567
15568
15569        test -n "$localedir" || localedir='${datadir}/locale'
15570
15571
15572    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
15573
15574
15575  ac_config_commands="$ac_config_commands po-directories"
15576
15577
15578
15579    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
15580$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
15581if ${ac_cv_gnu_library_2+:} false; then :
15582  $as_echo_n "(cached) " >&6
15583else
15584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585/* end confdefs.h.  */
15586
15587#include <features.h>
15588#ifdef __GNU_LIBRARY__
15589 #if (__GLIBC__ >= 2)
15590  Lucky GNU user
15591 #endif
15592#endif
15593
15594_ACEOF
15595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15596  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
15597  ac_cv_gnu_library_2=yes
15598else
15599  ac_cv_gnu_library_2=no
15600fi
15601rm -f conftest*
15602
15603
15604
15605fi
15606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
15607$as_echo "$ac_cv_gnu_library_2" >&6; }
15608
15609    GLIBC2="$ac_cv_gnu_library_2"
15610
15611
15612if test -n "$ac_tool_prefix"; then
15613  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15614set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15616$as_echo_n "checking for $ac_word... " >&6; }
15617if ${ac_cv_prog_RANLIB+:} false; then :
15618  $as_echo_n "(cached) " >&6
15619else
15620  if test -n "$RANLIB"; then
15621  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15622else
15623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15624for as_dir in $PATH
15625do
15626  IFS=$as_save_IFS
15627  test -z "$as_dir" && as_dir=.
15628    for ac_exec_ext in '' $ac_executable_extensions; do
15629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15630    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15632    break 2
15633  fi
15634done
15635  done
15636IFS=$as_save_IFS
15637
15638fi
15639fi
15640RANLIB=$ac_cv_prog_RANLIB
15641if test -n "$RANLIB"; then
15642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15643$as_echo "$RANLIB" >&6; }
15644else
15645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15646$as_echo "no" >&6; }
15647fi
15648
15649
15650fi
15651if test -z "$ac_cv_prog_RANLIB"; then
15652  ac_ct_RANLIB=$RANLIB
15653  # Extract the first word of "ranlib", so it can be a program name with args.
15654set dummy ranlib; ac_word=$2
15655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15656$as_echo_n "checking for $ac_word... " >&6; }
15657if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15658  $as_echo_n "(cached) " >&6
15659else
15660  if test -n "$ac_ct_RANLIB"; then
15661  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15662else
15663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15664for as_dir in $PATH
15665do
15666  IFS=$as_save_IFS
15667  test -z "$as_dir" && as_dir=.
15668    for ac_exec_ext in '' $ac_executable_extensions; do
15669  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15670    ac_cv_prog_ac_ct_RANLIB="ranlib"
15671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15672    break 2
15673  fi
15674done
15675  done
15676IFS=$as_save_IFS
15677
15678fi
15679fi
15680ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15681if test -n "$ac_ct_RANLIB"; then
15682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15683$as_echo "$ac_ct_RANLIB" >&6; }
15684else
15685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15686$as_echo "no" >&6; }
15687fi
15688
15689  if test "x$ac_ct_RANLIB" = x; then
15690    RANLIB=":"
15691  else
15692    case $cross_compiling:$ac_tool_warned in
15693yes:)
15694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15696ac_tool_warned=yes ;;
15697esac
15698    RANLIB=$ac_ct_RANLIB
15699  fi
15700else
15701  RANLIB="$ac_cv_prog_RANLIB"
15702fi
15703
15704
15705
15706  CFLAG_VISIBILITY=
15707  HAVE_VISIBILITY=0
15708  if test -n "$GCC"; then
15709    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
15710$as_echo_n "checking for simple visibility declarations... " >&6; }
15711    if ${gl_cv_cc_visibility+:} false; then :
15712  $as_echo_n "(cached) " >&6
15713else
15714
15715      gl_save_CFLAGS="$CFLAGS"
15716      CFLAGS="$CFLAGS -fvisibility=hidden"
15717      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718/* end confdefs.h.  */
15719extern __attribute__((__visibility__("hidden"))) int hiddenvar;
15720         extern __attribute__((__visibility__("default"))) int exportedvar;
15721         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
15722         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
15723int
15724main ()
15725{
15726
15727  ;
15728  return 0;
15729}
15730_ACEOF
15731if ac_fn_c_try_compile "$LINENO"; then :
15732  gl_cv_cc_visibility=yes
15733else
15734  gl_cv_cc_visibility=no
15735fi
15736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15737      CFLAGS="$gl_save_CFLAGS"
15738fi
15739
15740    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
15741$as_echo "$gl_cv_cc_visibility" >&6; }
15742    if test $gl_cv_cc_visibility = yes; then
15743      CFLAG_VISIBILITY="-fvisibility=hidden"
15744      HAVE_VISIBILITY=1
15745    fi
15746  fi
15747
15748
15749
15750cat >>confdefs.h <<_ACEOF
15751#define HAVE_VISIBILITY $HAVE_VISIBILITY
15752_ACEOF
15753
15754
15755ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15756if test "x$ac_cv_type_size_t" = xyes; then :
15757
15758else
15759
15760cat >>confdefs.h <<_ACEOF
15761#define size_t unsigned int
15762_ACEOF
15763
15764fi
15765
15766
15767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
15768$as_echo_n "checking for stdint.h... " >&6; }
15769if ${gl_cv_header_stdint_h+:} false; then :
15770  $as_echo_n "(cached) " >&6
15771else
15772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773/* end confdefs.h.  */
15774#include <sys/types.h>
15775#include <stdint.h>
15776int
15777main ()
15778{
15779uintmax_t i = (uintmax_t) -1; return !i;
15780  ;
15781  return 0;
15782}
15783_ACEOF
15784if ac_fn_c_try_compile "$LINENO"; then :
15785  gl_cv_header_stdint_h=yes
15786else
15787  gl_cv_header_stdint_h=no
15788fi
15789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15790fi
15791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
15792$as_echo "$gl_cv_header_stdint_h" >&6; }
15793  if test $gl_cv_header_stdint_h = yes; then
15794
15795cat >>confdefs.h <<_ACEOF
15796#define HAVE_STDINT_H_WITH_UINTMAX 1
15797_ACEOF
15798
15799  fi
15800
15801# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15802# for constant arguments.  Useless!
15803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15804$as_echo_n "checking for working alloca.h... " >&6; }
15805if ${ac_cv_working_alloca_h+:} false; then :
15806  $as_echo_n "(cached) " >&6
15807else
15808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809/* end confdefs.h.  */
15810#include <alloca.h>
15811int
15812main ()
15813{
15814char *p = (char *) alloca (2 * sizeof (int));
15815			  if (p) return 0;
15816  ;
15817  return 0;
15818}
15819_ACEOF
15820if ac_fn_c_try_link "$LINENO"; then :
15821  ac_cv_working_alloca_h=yes
15822else
15823  ac_cv_working_alloca_h=no
15824fi
15825rm -f core conftest.err conftest.$ac_objext \
15826    conftest$ac_exeext conftest.$ac_ext
15827fi
15828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15829$as_echo "$ac_cv_working_alloca_h" >&6; }
15830if test $ac_cv_working_alloca_h = yes; then
15831
15832$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15833
15834fi
15835
15836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15837$as_echo_n "checking for alloca... " >&6; }
15838if ${ac_cv_func_alloca_works+:} false; then :
15839  $as_echo_n "(cached) " >&6
15840else
15841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842/* end confdefs.h.  */
15843#ifdef __GNUC__
15844# define alloca __builtin_alloca
15845#else
15846# ifdef _MSC_VER
15847#  include <malloc.h>
15848#  define alloca _alloca
15849# else
15850#  ifdef HAVE_ALLOCA_H
15851#   include <alloca.h>
15852#  else
15853#   ifdef _AIX
15854 #pragma alloca
15855#   else
15856#    ifndef alloca /* predefined by HP cc +Olibcalls */
15857void *alloca (size_t);
15858#    endif
15859#   endif
15860#  endif
15861# endif
15862#endif
15863
15864int
15865main ()
15866{
15867char *p = (char *) alloca (1);
15868				    if (p) return 0;
15869  ;
15870  return 0;
15871}
15872_ACEOF
15873if ac_fn_c_try_link "$LINENO"; then :
15874  ac_cv_func_alloca_works=yes
15875else
15876  ac_cv_func_alloca_works=no
15877fi
15878rm -f core conftest.err conftest.$ac_objext \
15879    conftest$ac_exeext conftest.$ac_ext
15880fi
15881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15882$as_echo "$ac_cv_func_alloca_works" >&6; }
15883
15884if test $ac_cv_func_alloca_works = yes; then
15885
15886$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15887
15888else
15889  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15890# that cause trouble.  Some versions do not even contain alloca or
15891# contain a buggy version.  If you still want to use their alloca,
15892# use ar to extract alloca.o from them instead of compiling alloca.c.
15893
15894ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15895
15896$as_echo "#define C_ALLOCA 1" >>confdefs.h
15897
15898
15899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15900$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15901if ${ac_cv_os_cray+:} false; then :
15902  $as_echo_n "(cached) " >&6
15903else
15904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905/* end confdefs.h.  */
15906#if defined CRAY && ! defined CRAY2
15907webecray
15908#else
15909wenotbecray
15910#endif
15911
15912_ACEOF
15913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15914  $EGREP "webecray" >/dev/null 2>&1; then :
15915  ac_cv_os_cray=yes
15916else
15917  ac_cv_os_cray=no
15918fi
15919rm -f conftest*
15920
15921fi
15922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15923$as_echo "$ac_cv_os_cray" >&6; }
15924if test $ac_cv_os_cray = yes; then
15925  for ac_func in _getb67 GETB67 getb67; do
15926    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15927ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15928if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15929
15930cat >>confdefs.h <<_ACEOF
15931#define CRAY_STACKSEG_END $ac_func
15932_ACEOF
15933
15934    break
15935fi
15936
15937  done
15938fi
15939
15940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15941$as_echo_n "checking stack direction for C alloca... " >&6; }
15942if ${ac_cv_c_stack_direction+:} false; then :
15943  $as_echo_n "(cached) " >&6
15944else
15945  if test "$cross_compiling" = yes; then :
15946  ac_cv_c_stack_direction=0
15947else
15948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15949/* end confdefs.h.  */
15950$ac_includes_default
15951int
15952find_stack_direction ()
15953{
15954  static char *addr = 0;
15955  auto char dummy;
15956  if (addr == 0)
15957    {
15958      addr = &dummy;
15959      return find_stack_direction ();
15960    }
15961  else
15962    return (&dummy > addr) ? 1 : -1;
15963}
15964
15965int
15966main ()
15967{
15968  return find_stack_direction () < 0;
15969}
15970_ACEOF
15971if ac_fn_c_try_run "$LINENO"; then :
15972  ac_cv_c_stack_direction=1
15973else
15974  ac_cv_c_stack_direction=-1
15975fi
15976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15977  conftest.$ac_objext conftest.beam conftest.$ac_ext
15978fi
15979
15980fi
15981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15982$as_echo "$ac_cv_c_stack_direction" >&6; }
15983cat >>confdefs.h <<_ACEOF
15984#define STACK_DIRECTION $ac_cv_c_stack_direction
15985_ACEOF
15986
15987
15988fi
15989
15990
15991
15992
15993  for ac_header in $ac_header_list
15994do :
15995  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15996ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15997"
15998if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15999  cat >>confdefs.h <<_ACEOF
16000#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16001_ACEOF
16002
16003fi
16004
16005done
16006
16007
16008
16009
16010
16011
16012
16013
16014for ac_func in getpagesize
16015do :
16016  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16017if test "x$ac_cv_func_getpagesize" = xyes; then :
16018  cat >>confdefs.h <<_ACEOF
16019#define HAVE_GETPAGESIZE 1
16020_ACEOF
16021
16022fi
16023done
16024
16025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16026$as_echo_n "checking for working mmap... " >&6; }
16027if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16028  $as_echo_n "(cached) " >&6
16029else
16030  if test "$cross_compiling" = yes; then :
16031  ac_cv_func_mmap_fixed_mapped=no
16032else
16033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034/* end confdefs.h.  */
16035$ac_includes_default
16036/* malloc might have been renamed as rpl_malloc. */
16037#undef malloc
16038
16039/* Thanks to Mike Haertel and Jim Avera for this test.
16040   Here is a matrix of mmap possibilities:
16041	mmap private not fixed
16042	mmap private fixed at somewhere currently unmapped
16043	mmap private fixed at somewhere already mapped
16044	mmap shared not fixed
16045	mmap shared fixed at somewhere currently unmapped
16046	mmap shared fixed at somewhere already mapped
16047   For private mappings, we should verify that changes cannot be read()
16048   back from the file, nor mmap's back from the file at a different
16049   address.  (There have been systems where private was not correctly
16050   implemented like the infamous i386 svr4.0, and systems where the
16051   VM page cache was not coherent with the file system buffer cache
16052   like early versions of FreeBSD and possibly contemporary NetBSD.)
16053   For shared mappings, we should conversely verify that changes get
16054   propagated back to all the places they're supposed to be.
16055
16056   Grep wants private fixed already mapped.
16057   The main things grep needs to know about mmap are:
16058   * does it exist and is it safe to write into the mmap'd area
16059   * how to use it (BSD variants)  */
16060
16061#include <fcntl.h>
16062#include <sys/mman.h>
16063
16064#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16065char *malloc ();
16066#endif
16067
16068/* This mess was copied from the GNU getpagesize.h.  */
16069#ifndef HAVE_GETPAGESIZE
16070# ifdef _SC_PAGESIZE
16071#  define getpagesize() sysconf(_SC_PAGESIZE)
16072# else /* no _SC_PAGESIZE */
16073#  ifdef HAVE_SYS_PARAM_H
16074#   include <sys/param.h>
16075#   ifdef EXEC_PAGESIZE
16076#    define getpagesize() EXEC_PAGESIZE
16077#   else /* no EXEC_PAGESIZE */
16078#    ifdef NBPG
16079#     define getpagesize() NBPG * CLSIZE
16080#     ifndef CLSIZE
16081#      define CLSIZE 1
16082#     endif /* no CLSIZE */
16083#    else /* no NBPG */
16084#     ifdef NBPC
16085#      define getpagesize() NBPC
16086#     else /* no NBPC */
16087#      ifdef PAGESIZE
16088#       define getpagesize() PAGESIZE
16089#      endif /* PAGESIZE */
16090#     endif /* no NBPC */
16091#    endif /* no NBPG */
16092#   endif /* no EXEC_PAGESIZE */
16093#  else /* no HAVE_SYS_PARAM_H */
16094#   define getpagesize() 8192	/* punt totally */
16095#  endif /* no HAVE_SYS_PARAM_H */
16096# endif /* no _SC_PAGESIZE */
16097
16098#endif /* no HAVE_GETPAGESIZE */
16099
16100int
16101main ()
16102{
16103  char *data, *data2, *data3;
16104  const char *cdata2;
16105  int i, pagesize;
16106  int fd, fd2;
16107
16108  pagesize = getpagesize ();
16109
16110  /* First, make a file with some known garbage in it. */
16111  data = (char *) malloc (pagesize);
16112  if (!data)
16113    return 1;
16114  for (i = 0; i < pagesize; ++i)
16115    *(data + i) = rand ();
16116  umask (0);
16117  fd = creat ("conftest.mmap", 0600);
16118  if (fd < 0)
16119    return 2;
16120  if (write (fd, data, pagesize) != pagesize)
16121    return 3;
16122  close (fd);
16123
16124  /* Next, check that the tail of a page is zero-filled.  File must have
16125     non-zero length, otherwise we risk SIGBUS for entire page.  */
16126  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16127  if (fd2 < 0)
16128    return 4;
16129  cdata2 = "";
16130  if (write (fd2, cdata2, 1) != 1)
16131    return 5;
16132  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16133  if (data2 == MAP_FAILED)
16134    return 6;
16135  for (i = 0; i < pagesize; ++i)
16136    if (*(data2 + i))
16137      return 7;
16138  close (fd2);
16139  if (munmap (data2, pagesize))
16140    return 8;
16141
16142  /* Next, try to mmap the file at a fixed address which already has
16143     something else allocated at it.  If we can, also make sure that
16144     we see the same garbage.  */
16145  fd = open ("conftest.mmap", O_RDWR);
16146  if (fd < 0)
16147    return 9;
16148  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16149		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
16150    return 10;
16151  for (i = 0; i < pagesize; ++i)
16152    if (*(data + i) != *(data2 + i))
16153      return 11;
16154
16155  /* Finally, make sure that changes to the mapped area do not
16156     percolate back to the file as seen by read().  (This is a bug on
16157     some variants of i386 svr4.0.)  */
16158  for (i = 0; i < pagesize; ++i)
16159    *(data2 + i) = *(data2 + i) + 1;
16160  data3 = (char *) malloc (pagesize);
16161  if (!data3)
16162    return 12;
16163  if (read (fd, data3, pagesize) != pagesize)
16164    return 13;
16165  for (i = 0; i < pagesize; ++i)
16166    if (*(data + i) != *(data3 + i))
16167      return 14;
16168  close (fd);
16169  return 0;
16170}
16171_ACEOF
16172if ac_fn_c_try_run "$LINENO"; then :
16173  ac_cv_func_mmap_fixed_mapped=yes
16174else
16175  ac_cv_func_mmap_fixed_mapped=no
16176fi
16177rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16178  conftest.$ac_objext conftest.beam conftest.$ac_ext
16179fi
16180
16181fi
16182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16183$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16184if test $ac_cv_func_mmap_fixed_mapped = yes; then
16185
16186$as_echo "#define HAVE_MMAP 1" >>confdefs.h
16187
16188fi
16189rm -f conftest.mmap conftest.txt
16190
16191
16192
16193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
16194$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
16195if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
16196  $as_echo_n "(cached) " >&6
16197else
16198
16199      gt_cv_int_divbyzero_sigfpe=
16200      case "$host_os" in
16201        macos* | darwin[6-9]* | darwin[1-9][0-9]*)
16202          # On MacOS X 10.2 or newer, just assume the same as when cross-
16203          # compiling. If we were to perform the real test, 1 Crash Report
16204          # dialog window would pop up.
16205          case "$host_cpu" in
16206            i[34567]86 | x86_64)
16207              gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
16208          esac
16209          ;;
16210      esac
16211      if test -z "$gt_cv_int_divbyzero_sigfpe"; then
16212        if test "$cross_compiling" = yes; then :
16213
16214            # Guess based on the CPU.
16215            case "$host_cpu" in
16216              alpha* | i[34567]86 | x86_64 | m68k | s390*)
16217                gt_cv_int_divbyzero_sigfpe="guessing yes";;
16218              *)
16219                gt_cv_int_divbyzero_sigfpe="guessing no";;
16220            esac
16221
16222else
16223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224/* end confdefs.h.  */
16225
16226#include <stdlib.h>
16227#include <signal.h>
16228
16229static void
16230sigfpe_handler (int sig)
16231{
16232  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
16233  exit (sig != SIGFPE);
16234}
16235
16236int x = 1;
16237int y = 0;
16238int z;
16239int nan;
16240
16241int main ()
16242{
16243  signal (SIGFPE, sigfpe_handler);
16244/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
16245#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
16246  signal (SIGTRAP, sigfpe_handler);
16247#endif
16248/* Linux/SPARC yields signal SIGILL.  */
16249#if defined (__sparc__) && defined (__linux__)
16250  signal (SIGILL, sigfpe_handler);
16251#endif
16252
16253  z = x / y;
16254  nan = y / y;
16255  exit (1);
16256}
16257
16258_ACEOF
16259if ac_fn_c_try_run "$LINENO"; then :
16260  gt_cv_int_divbyzero_sigfpe=yes
16261else
16262  gt_cv_int_divbyzero_sigfpe=no
16263fi
16264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16265  conftest.$ac_objext conftest.beam conftest.$ac_ext
16266fi
16267
16268      fi
16269
16270fi
16271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
16272$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
16273  case "$gt_cv_int_divbyzero_sigfpe" in
16274    *yes) value=1;;
16275    *) value=0;;
16276  esac
16277
16278cat >>confdefs.h <<_ACEOF
16279#define INTDIV0_RAISES_SIGFPE $value
16280_ACEOF
16281
16282
16283
16284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
16285$as_echo_n "checking for inttypes.h... " >&6; }
16286if ${gl_cv_header_inttypes_h+:} false; then :
16287  $as_echo_n "(cached) " >&6
16288else
16289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290/* end confdefs.h.  */
16291#include <sys/types.h>
16292#include <inttypes.h>
16293int
16294main ()
16295{
16296uintmax_t i = (uintmax_t) -1; return !i;
16297  ;
16298  return 0;
16299}
16300_ACEOF
16301if ac_fn_c_try_compile "$LINENO"; then :
16302  gl_cv_header_inttypes_h=yes
16303else
16304  gl_cv_header_inttypes_h=no
16305fi
16306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16307fi
16308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
16309$as_echo "$gl_cv_header_inttypes_h" >&6; }
16310  if test $gl_cv_header_inttypes_h = yes; then
16311
16312cat >>confdefs.h <<_ACEOF
16313#define HAVE_INTTYPES_H_WITH_UINTMAX 1
16314_ACEOF
16315
16316  fi
16317
16318
16319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16320$as_echo_n "checking for unsigned long long int... " >&6; }
16321if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16322  $as_echo_n "(cached) " >&6
16323else
16324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325/* end confdefs.h.  */
16326
16327  /* Test preprocessor.  */
16328      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16329        error in preprocessor;
16330      #endif
16331      #if ! (18446744073709551615ULL <= -1ull)
16332        error in preprocessor;
16333      #endif
16334      /* Test literals.  */
16335      long long int ll = 9223372036854775807ll;
16336      long long int nll = -9223372036854775807LL;
16337      unsigned long long int ull = 18446744073709551615ULL;
16338      /* Test constant expressions.   */
16339      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16340		     ? 1 : -1)];
16341      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16342		     ? 1 : -1)];
16343      int i = 63;
16344int
16345main ()
16346{
16347/* Test availability of runtime routines for shift and division.  */
16348      long long int llmax = 9223372036854775807ll;
16349      unsigned long long int ullmax = 18446744073709551615ull;
16350      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16351	      | (llmax / ll) | (llmax % ll)
16352	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16353	      | (ullmax / ull) | (ullmax % ull));
16354  ;
16355  return 0;
16356}
16357
16358_ACEOF
16359if ac_fn_c_try_link "$LINENO"; then :
16360  ac_cv_type_unsigned_long_long_int=yes
16361else
16362  ac_cv_type_unsigned_long_long_int=no
16363fi
16364rm -f core conftest.err conftest.$ac_objext \
16365    conftest$ac_exeext conftest.$ac_ext
16366fi
16367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16368$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16369  if test $ac_cv_type_unsigned_long_long_int = yes; then
16370
16371$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16372
16373  fi
16374
16375
16376
16377
16378  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
16379
16380    test $ac_cv_type_unsigned_long_long_int = yes \
16381      && ac_type='unsigned long long' \
16382      || ac_type='unsigned long'
16383
16384cat >>confdefs.h <<_ACEOF
16385#define uintmax_t $ac_type
16386_ACEOF
16387
16388  else
16389
16390$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
16391
16392  fi
16393
16394
16395  for ac_header in inttypes.h
16396do :
16397  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
16398if test "x$ac_cv_header_inttypes_h" = xyes; then :
16399  cat >>confdefs.h <<_ACEOF
16400#define HAVE_INTTYPES_H 1
16401_ACEOF
16402
16403fi
16404
16405done
16406
16407  if test $ac_cv_header_inttypes_h = yes; then
16408    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
16409$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
16410if ${gt_cv_inttypes_pri_broken+:} false; then :
16411  $as_echo_n "(cached) " >&6
16412else
16413
16414        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16415/* end confdefs.h.  */
16416#include <inttypes.h>
16417#ifdef PRId32
16418char *p = PRId32;
16419#endif
16420
16421int
16422main ()
16423{
16424
16425  ;
16426  return 0;
16427}
16428_ACEOF
16429if ac_fn_c_try_compile "$LINENO"; then :
16430  gt_cv_inttypes_pri_broken=no
16431else
16432  gt_cv_inttypes_pri_broken=yes
16433fi
16434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16435
16436fi
16437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
16438$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
16439  fi
16440  if test "$gt_cv_inttypes_pri_broken" = yes; then
16441
16442cat >>confdefs.h <<_ACEOF
16443#define PRI_MACROS_BROKEN 1
16444_ACEOF
16445
16446    PRI_MACROS_BROKEN=1
16447  else
16448    PRI_MACROS_BROKEN=0
16449  fi
16450
16451
16452
16453  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
16454if test "x$ac_cv_header_minix_config_h" = xyes; then :
16455  MINIX=yes
16456else
16457  MINIX=
16458fi
16459
16460
16461  if test "$MINIX" = yes; then
16462
16463$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
16464
16465
16466$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
16467
16468
16469$as_echo "#define _MINIX 1" >>confdefs.h
16470
16471  fi
16472
16473
16474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
16475$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
16476if ${ac_cv_safe_to_define___extensions__+:} false; then :
16477  $as_echo_n "(cached) " >&6
16478else
16479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16480/* end confdefs.h.  */
16481
16482#	  define __EXTENSIONS__ 1
16483	  $ac_includes_default
16484int
16485main ()
16486{
16487
16488  ;
16489  return 0;
16490}
16491_ACEOF
16492if ac_fn_c_try_compile "$LINENO"; then :
16493  ac_cv_safe_to_define___extensions__=yes
16494else
16495  ac_cv_safe_to_define___extensions__=no
16496fi
16497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16498fi
16499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
16500$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
16501  test $ac_cv_safe_to_define___extensions__ = yes &&
16502    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
16503
16504  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
16505
16506  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
16507
16508  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
16509
16510  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
16511
16512
16513
16514
16515
16516
16517    # Check whether --enable-threads was given.
16518if test "${enable_threads+set}" = set; then :
16519  enableval=$enable_threads; gl_use_threads=$enableval
16520else
16521  case "$host_os" in
16522                            osf*) gl_use_threads=no ;;
16523       *)    gl_use_threads=yes ;;
16524     esac
16525
16526fi
16527
16528  if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
16529    # For using <pthread.h>:
16530    case "$host_os" in
16531      osf*)
16532        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
16533        # groks <pthread.h>. cc also understands the flag -pthread, but
16534        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
16535        # 2. putting a flag into CPPFLAGS that has an effect on the linker
16536        # causes the AC_TRY_LINK test below to succeed unexpectedly,
16537        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
16538        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
16539        ;;
16540    esac
16541    # Some systems optimize for single-threaded programs by default, and
16542    # need special flags to disable these optimizations. For example, the
16543    # definition of 'errno' in <errno.h>.
16544    case "$host_os" in
16545      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
16546      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
16547    esac
16548  fi
16549
16550
16551
16552
16553
16554      if test "X$prefix" = "XNONE"; then
16555    acl_final_prefix="$ac_default_prefix"
16556  else
16557    acl_final_prefix="$prefix"
16558  fi
16559  if test "X$exec_prefix" = "XNONE"; then
16560    acl_final_exec_prefix='${prefix}'
16561  else
16562    acl_final_exec_prefix="$exec_prefix"
16563  fi
16564  acl_save_prefix="$prefix"
16565  prefix="$acl_final_prefix"
16566  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16567  prefix="$acl_save_prefix"
16568
16569
16570# Check whether --with-gnu-ld was given.
16571if test "${with_gnu_ld+set}" = set; then :
16572  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16573else
16574  with_gnu_ld=no
16575fi
16576
16577# Prepare PATH_SEPARATOR.
16578# The user is always right.
16579if test "${PATH_SEPARATOR+set}" != set; then
16580  echo "#! /bin/sh" >conf$$.sh
16581  echo  "exit 0"   >>conf$$.sh
16582  chmod +x conf$$.sh
16583  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16584    PATH_SEPARATOR=';'
16585  else
16586    PATH_SEPARATOR=:
16587  fi
16588  rm -f conf$$.sh
16589fi
16590ac_prog=ld
16591if test "$GCC" = yes; then
16592  # Check if gcc -print-prog-name=ld gives a path.
16593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16594$as_echo_n "checking for ld used by GCC... " >&6; }
16595  case $host in
16596  *-*-mingw*)
16597    # gcc leaves a trailing carriage return which upsets mingw
16598    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16599  *)
16600    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16601  esac
16602  case $ac_prog in
16603    # Accept absolute paths.
16604    [\\/]* | [A-Za-z]:[\\/]*)
16605      re_direlt='/[^/][^/]*/\.\./'
16606      # Canonicalize the path of ld
16607      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16608      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16609	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16610      done
16611      test -z "$LD" && LD="$ac_prog"
16612      ;;
16613  "")
16614    # If it fails, then pretend we aren't using GCC.
16615    ac_prog=ld
16616    ;;
16617  *)
16618    # If it is relative, then search for the first ld in PATH.
16619    with_gnu_ld=unknown
16620    ;;
16621  esac
16622elif test "$with_gnu_ld" = yes; then
16623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16624$as_echo_n "checking for GNU ld... " >&6; }
16625else
16626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16627$as_echo_n "checking for non-GNU ld... " >&6; }
16628fi
16629if ${acl_cv_path_LD+:} false; then :
16630  $as_echo_n "(cached) " >&6
16631else
16632  if test -z "$LD"; then
16633  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16634  for ac_dir in $PATH; do
16635    test -z "$ac_dir" && ac_dir=.
16636    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16637      acl_cv_path_LD="$ac_dir/$ac_prog"
16638      # Check to see if the program is GNU ld.  I'd rather use --version,
16639      # but apparently some GNU ld's only accept -v.
16640      # Break only if it was the GNU/non-GNU ld that we prefer.
16641      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16642      *GNU* | *'with BFD'*)
16643	test "$with_gnu_ld" != no && break ;;
16644      *)
16645	test "$with_gnu_ld" != yes && break ;;
16646      esac
16647    fi
16648  done
16649  IFS="$ac_save_ifs"
16650else
16651  acl_cv_path_LD="$LD" # Let the user override the test with a path.
16652fi
16653fi
16654
16655LD="$acl_cv_path_LD"
16656if test -n "$LD"; then
16657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16658$as_echo "$LD" >&6; }
16659else
16660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16661$as_echo "no" >&6; }
16662fi
16663test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16665$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16666if ${acl_cv_prog_gnu_ld+:} false; then :
16667  $as_echo_n "(cached) " >&6
16668else
16669  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16670case `$LD -v 2>&1 </dev/null` in
16671*GNU* | *'with BFD'*)
16672  acl_cv_prog_gnu_ld=yes ;;
16673*)
16674  acl_cv_prog_gnu_ld=no ;;
16675esac
16676fi
16677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16678$as_echo "$acl_cv_prog_gnu_ld" >&6; }
16679with_gnu_ld=$acl_cv_prog_gnu_ld
16680
16681
16682
16683
16684                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16685$as_echo_n "checking for shared library run path origin... " >&6; }
16686if ${acl_cv_rpath+:} false; then :
16687  $as_echo_n "(cached) " >&6
16688else
16689
16690    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16691    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16692    . ./conftest.sh
16693    rm -f ./conftest.sh
16694    acl_cv_rpath=done
16695
16696fi
16697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16698$as_echo "$acl_cv_rpath" >&6; }
16699  wl="$acl_cv_wl"
16700  acl_libext="$acl_cv_libext"
16701  acl_shlibext="$acl_cv_shlibext"
16702  acl_libname_spec="$acl_cv_libname_spec"
16703  acl_library_names_spec="$acl_cv_library_names_spec"
16704  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16705  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16706  acl_hardcode_direct="$acl_cv_hardcode_direct"
16707  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16708    # Check whether --enable-rpath was given.
16709if test "${enable_rpath+set}" = set; then :
16710  enableval=$enable_rpath; :
16711else
16712  enable_rpath=yes
16713fi
16714
16715
16716
16717                  acl_libdirstem=lib
16718  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16719  if test -n "$searchpath"; then
16720    acl_save_IFS="${IFS= 	}"; IFS=":"
16721    for searchdir in $searchpath; do
16722      if test -d "$searchdir"; then
16723        case "$searchdir" in
16724          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16725          *) searchdir=`cd "$searchdir" && pwd`
16726             case "$searchdir" in
16727               */lib64 ) acl_libdirstem=lib64 ;;
16728             esac ;;
16729        esac
16730      fi
16731    done
16732    IFS="$acl_save_IFS"
16733  fi
16734
16735
16736
16737  gl_threads_api=none
16738  LIBTHREAD=
16739  LTLIBTHREAD=
16740  LIBMULTITHREAD=
16741  LTLIBMULTITHREAD=
16742  if test "$gl_use_threads" != no; then
16743        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
16744$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
16745    gl_have_weak=no
16746    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747/* end confdefs.h.  */
16748extern void xyzzy ();
16749#pragma weak xyzzy
16750int
16751main ()
16752{
16753xyzzy();
16754  ;
16755  return 0;
16756}
16757_ACEOF
16758if ac_fn_c_try_link "$LINENO"; then :
16759  gl_have_weak=yes
16760fi
16761rm -f core conftest.err conftest.$ac_objext \
16762    conftest$ac_exeext conftest.$ac_ext
16763    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
16764$as_echo "$gl_have_weak" >&6; }
16765    if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
16766      # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
16767      # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
16768      ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16769if test "x$ac_cv_header_pthread_h" = xyes; then :
16770  gl_have_pthread_h=yes
16771else
16772  gl_have_pthread_h=no
16773fi
16774
16775
16776      if test "$gl_have_pthread_h" = yes; then
16777        # Other possible tests:
16778        #   -lpthreads (FSU threads, PCthreads)
16779        #   -lgthreads
16780        gl_have_pthread=
16781        # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
16782        # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
16783        # the second one only in libpthread, and lock.c needs it.
16784        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16785/* end confdefs.h.  */
16786#include <pthread.h>
16787int
16788main ()
16789{
16790pthread_mutex_lock((pthread_mutex_t*)0);
16791           pthread_mutexattr_init((pthread_mutexattr_t*)0);
16792  ;
16793  return 0;
16794}
16795_ACEOF
16796if ac_fn_c_try_link "$LINENO"; then :
16797  gl_have_pthread=yes
16798fi
16799rm -f core conftest.err conftest.$ac_objext \
16800    conftest$ac_exeext conftest.$ac_ext
16801        # Test for libpthread by looking for pthread_kill. (Not pthread_self,
16802        # since it is defined as a macro on OSF/1.)
16803        if test -n "$gl_have_pthread"; then
16804          # The program links fine without libpthread. But it may actually
16805          # need to link with libpthread in order to create multiple threads.
16806          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16807$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16808if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16809  $as_echo_n "(cached) " >&6
16810else
16811  ac_check_lib_save_LIBS=$LIBS
16812LIBS="-lpthread  $LIBS"
16813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814/* end confdefs.h.  */
16815
16816/* Override any GCC internal prototype to avoid an error.
16817   Use char because int might match the return type of a GCC
16818   builtin and then its argument prototype would still apply.  */
16819#ifdef __cplusplus
16820extern "C"
16821#endif
16822char pthread_kill ();
16823int
16824main ()
16825{
16826return pthread_kill ();
16827  ;
16828  return 0;
16829}
16830_ACEOF
16831if ac_fn_c_try_link "$LINENO"; then :
16832  ac_cv_lib_pthread_pthread_kill=yes
16833else
16834  ac_cv_lib_pthread_pthread_kill=no
16835fi
16836rm -f core conftest.err conftest.$ac_objext \
16837    conftest$ac_exeext conftest.$ac_ext
16838LIBS=$ac_check_lib_save_LIBS
16839fi
16840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16841$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16842if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16843  LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16844             # On Solaris and HP-UX, most pthread functions exist also in libc.
16845             # Therefore pthread_in_use() needs to actually try to create a
16846             # thread: pthread_create from libc will fail, whereas
16847             # pthread_create will actually create a thread.
16848             case "$host_os" in
16849               solaris* | hpux*)
16850
16851$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
16852
16853             esac
16854
16855fi
16856
16857        else
16858          # Some library is needed. Try libpthread and libc_r.
16859          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16860$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16861if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16862  $as_echo_n "(cached) " >&6
16863else
16864  ac_check_lib_save_LIBS=$LIBS
16865LIBS="-lpthread  $LIBS"
16866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16867/* end confdefs.h.  */
16868
16869/* Override any GCC internal prototype to avoid an error.
16870   Use char because int might match the return type of a GCC
16871   builtin and then its argument prototype would still apply.  */
16872#ifdef __cplusplus
16873extern "C"
16874#endif
16875char pthread_kill ();
16876int
16877main ()
16878{
16879return pthread_kill ();
16880  ;
16881  return 0;
16882}
16883_ACEOF
16884if ac_fn_c_try_link "$LINENO"; then :
16885  ac_cv_lib_pthread_pthread_kill=yes
16886else
16887  ac_cv_lib_pthread_pthread_kill=no
16888fi
16889rm -f core conftest.err conftest.$ac_objext \
16890    conftest$ac_exeext conftest.$ac_ext
16891LIBS=$ac_check_lib_save_LIBS
16892fi
16893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16894$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16895if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16896  gl_have_pthread=yes
16897             LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
16898             LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16899fi
16900
16901          if test -z "$gl_have_pthread"; then
16902            # For FreeBSD 4.
16903            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
16904$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
16905if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
16906  $as_echo_n "(cached) " >&6
16907else
16908  ac_check_lib_save_LIBS=$LIBS
16909LIBS="-lc_r  $LIBS"
16910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16911/* end confdefs.h.  */
16912
16913/* Override any GCC internal prototype to avoid an error.
16914   Use char because int might match the return type of a GCC
16915   builtin and then its argument prototype would still apply.  */
16916#ifdef __cplusplus
16917extern "C"
16918#endif
16919char pthread_kill ();
16920int
16921main ()
16922{
16923return pthread_kill ();
16924  ;
16925  return 0;
16926}
16927_ACEOF
16928if ac_fn_c_try_link "$LINENO"; then :
16929  ac_cv_lib_c_r_pthread_kill=yes
16930else
16931  ac_cv_lib_c_r_pthread_kill=no
16932fi
16933rm -f core conftest.err conftest.$ac_objext \
16934    conftest$ac_exeext conftest.$ac_ext
16935LIBS=$ac_check_lib_save_LIBS
16936fi
16937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
16938$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
16939if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
16940  gl_have_pthread=yes
16941               LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
16942               LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
16943fi
16944
16945          fi
16946        fi
16947        if test -n "$gl_have_pthread"; then
16948          gl_threads_api=posix
16949
16950$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
16951
16952          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
16953            if test $gl_have_weak = yes; then
16954
16955$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
16956
16957              LIBTHREAD=
16958              LTLIBTHREAD=
16959            fi
16960          fi
16961          # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
16962          # pthread_rwlock_* functions.
16963          ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
16964"
16965if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
16966
16967$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
16968
16969fi
16970
16971          # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
16972          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973/* end confdefs.h.  */
16974#include <pthread.h>
16975int
16976main ()
16977{
16978#if __FreeBSD__ == 4
16979error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
16980#else
16981int x = (int)PTHREAD_MUTEX_RECURSIVE;
16982return !x;
16983#endif
16984  ;
16985  return 0;
16986}
16987_ACEOF
16988if ac_fn_c_try_compile "$LINENO"; then :
16989
16990$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
16991
16992fi
16993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16994        fi
16995      fi
16996    fi
16997    if test -z "$gl_have_pthread"; then
16998      if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
16999        gl_have_solaristhread=
17000        gl_save_LIBS="$LIBS"
17001        LIBS="$LIBS -lthread"
17002        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003/* end confdefs.h.  */
17004#include <thread.h>
17005#include <synch.h>
17006int
17007main ()
17008{
17009thr_self();
17010  ;
17011  return 0;
17012}
17013_ACEOF
17014if ac_fn_c_try_link "$LINENO"; then :
17015  gl_have_solaristhread=yes
17016fi
17017rm -f core conftest.err conftest.$ac_objext \
17018    conftest$ac_exeext conftest.$ac_ext
17019        LIBS="$gl_save_LIBS"
17020        if test -n "$gl_have_solaristhread"; then
17021          gl_threads_api=solaris
17022          LIBTHREAD=-lthread
17023          LTLIBTHREAD=-lthread
17024          LIBMULTITHREAD="$LIBTHREAD"
17025          LTLIBMULTITHREAD="$LTLIBTHREAD"
17026
17027$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
17028
17029          if test $gl_have_weak = yes; then
17030
17031$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
17032
17033            LIBTHREAD=
17034            LTLIBTHREAD=
17035          fi
17036        fi
17037      fi
17038    fi
17039    if test "$gl_use_threads" = pth; then
17040      gl_save_CPPFLAGS="$CPPFLAGS"
17041
17042
17043
17044
17045
17046  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
17047$as_echo_n "checking how to link with libpth... " >&6; }
17048if ${ac_cv_libpth_libs+:} false; then :
17049  $as_echo_n "(cached) " >&6
17050else
17051
17052
17053
17054
17055
17056    use_additional=yes
17057
17058  acl_save_prefix="$prefix"
17059  prefix="$acl_final_prefix"
17060  acl_save_exec_prefix="$exec_prefix"
17061  exec_prefix="$acl_final_exec_prefix"
17062
17063    eval additional_includedir=\"$includedir\"
17064    eval additional_libdir=\"$libdir\"
17065
17066  exec_prefix="$acl_save_exec_prefix"
17067  prefix="$acl_save_prefix"
17068
17069
17070# Check whether --with-libpth-prefix was given.
17071if test "${with_libpth_prefix+set}" = set; then :
17072  withval=$with_libpth_prefix;
17073    if test "X$withval" = "Xno"; then
17074      use_additional=no
17075    else
17076      if test "X$withval" = "X"; then
17077
17078  acl_save_prefix="$prefix"
17079  prefix="$acl_final_prefix"
17080  acl_save_exec_prefix="$exec_prefix"
17081  exec_prefix="$acl_final_exec_prefix"
17082
17083          eval additional_includedir=\"$includedir\"
17084          eval additional_libdir=\"$libdir\"
17085
17086  exec_prefix="$acl_save_exec_prefix"
17087  prefix="$acl_save_prefix"
17088
17089      else
17090        additional_includedir="$withval/include"
17091        additional_libdir="$withval/$acl_libdirstem"
17092      fi
17093    fi
17094
17095fi
17096
17097      LIBPTH=
17098  LTLIBPTH=
17099  INCPTH=
17100  LIBPTH_PREFIX=
17101  rpathdirs=
17102  ltrpathdirs=
17103  names_already_handled=
17104  names_next_round='pth '
17105  while test -n "$names_next_round"; do
17106    names_this_round="$names_next_round"
17107    names_next_round=
17108    for name in $names_this_round; do
17109      already_handled=
17110      for n in $names_already_handled; do
17111        if test "$n" = "$name"; then
17112          already_handled=yes
17113          break
17114        fi
17115      done
17116      if test -z "$already_handled"; then
17117        names_already_handled="$names_already_handled $name"
17118                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17119        eval value=\"\$HAVE_LIB$uppername\"
17120        if test -n "$value"; then
17121          if test "$value" = yes; then
17122            eval value=\"\$LIB$uppername\"
17123            test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
17124            eval value=\"\$LTLIB$uppername\"
17125            test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
17126          else
17127                                    :
17128          fi
17129        else
17130                              found_dir=
17131          found_la=
17132          found_so=
17133          found_a=
17134          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
17135          if test -n "$acl_shlibext"; then
17136            shrext=".$acl_shlibext"             # typically: shrext=.so
17137          else
17138            shrext=
17139          fi
17140          if test $use_additional = yes; then
17141            dir="$additional_libdir"
17142                                    if test -n "$acl_shlibext"; then
17143              if test -f "$dir/$libname$shrext"; then
17144                found_dir="$dir"
17145                found_so="$dir/$libname$shrext"
17146              else
17147                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17148                  ver=`(cd "$dir" && \
17149                        for f in "$libname$shrext".*; do echo "$f"; done \
17150                        | sed -e "s,^$libname$shrext\\\\.,," \
17151                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17152                        | sed 1q ) 2>/dev/null`
17153                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17154                    found_dir="$dir"
17155                    found_so="$dir/$libname$shrext.$ver"
17156                  fi
17157                else
17158                  eval library_names=\"$acl_library_names_spec\"
17159                  for f in $library_names; do
17160                    if test -f "$dir/$f"; then
17161                      found_dir="$dir"
17162                      found_so="$dir/$f"
17163                      break
17164                    fi
17165                  done
17166                fi
17167              fi
17168            fi
17169                        if test "X$found_dir" = "X"; then
17170              if test -f "$dir/$libname.$acl_libext"; then
17171                found_dir="$dir"
17172                found_a="$dir/$libname.$acl_libext"
17173              fi
17174            fi
17175            if test "X$found_dir" != "X"; then
17176              if test -f "$dir/$libname.la"; then
17177                found_la="$dir/$libname.la"
17178              fi
17179            fi
17180          fi
17181          if test "X$found_dir" = "X"; then
17182            for x in $LDFLAGS $LTLIBPTH; do
17183
17184  acl_save_prefix="$prefix"
17185  prefix="$acl_final_prefix"
17186  acl_save_exec_prefix="$exec_prefix"
17187  exec_prefix="$acl_final_exec_prefix"
17188  eval x=\"$x\"
17189  exec_prefix="$acl_save_exec_prefix"
17190  prefix="$acl_save_prefix"
17191
17192              case "$x" in
17193                -L*)
17194                  dir=`echo "X$x" | sed -e 's/^X-L//'`
17195                                    if test -n "$acl_shlibext"; then
17196                    if test -f "$dir/$libname$shrext"; then
17197                      found_dir="$dir"
17198                      found_so="$dir/$libname$shrext"
17199                    else
17200                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17201                        ver=`(cd "$dir" && \
17202                              for f in "$libname$shrext".*; do echo "$f"; done \
17203                              | sed -e "s,^$libname$shrext\\\\.,," \
17204                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17205                              | sed 1q ) 2>/dev/null`
17206                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17207                          found_dir="$dir"
17208                          found_so="$dir/$libname$shrext.$ver"
17209                        fi
17210                      else
17211                        eval library_names=\"$acl_library_names_spec\"
17212                        for f in $library_names; do
17213                          if test -f "$dir/$f"; then
17214                            found_dir="$dir"
17215                            found_so="$dir/$f"
17216                            break
17217                          fi
17218                        done
17219                      fi
17220                    fi
17221                  fi
17222                                    if test "X$found_dir" = "X"; then
17223                    if test -f "$dir/$libname.$acl_libext"; then
17224                      found_dir="$dir"
17225                      found_a="$dir/$libname.$acl_libext"
17226                    fi
17227                  fi
17228                  if test "X$found_dir" != "X"; then
17229                    if test -f "$dir/$libname.la"; then
17230                      found_la="$dir/$libname.la"
17231                    fi
17232                  fi
17233                  ;;
17234              esac
17235              if test "X$found_dir" != "X"; then
17236                break
17237              fi
17238            done
17239          fi
17240          if test "X$found_dir" != "X"; then
17241                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
17242            if test "X$found_so" != "X"; then
17243                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
17244                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17245              else
17246                                                                                haveit=
17247                for x in $ltrpathdirs; do
17248                  if test "X$x" = "X$found_dir"; then
17249                    haveit=yes
17250                    break
17251                  fi
17252                done
17253                if test -z "$haveit"; then
17254                  ltrpathdirs="$ltrpathdirs $found_dir"
17255                fi
17256                                if test "$acl_hardcode_direct" = yes; then
17257                                                      LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17258                else
17259                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17260                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17261                                                            haveit=
17262                    for x in $rpathdirs; do
17263                      if test "X$x" = "X$found_dir"; then
17264                        haveit=yes
17265                        break
17266                      fi
17267                    done
17268                    if test -z "$haveit"; then
17269                      rpathdirs="$rpathdirs $found_dir"
17270                    fi
17271                  else
17272                                                                                haveit=
17273                    for x in $LDFLAGS $LIBPTH; do
17274
17275  acl_save_prefix="$prefix"
17276  prefix="$acl_final_prefix"
17277  acl_save_exec_prefix="$exec_prefix"
17278  exec_prefix="$acl_final_exec_prefix"
17279  eval x=\"$x\"
17280  exec_prefix="$acl_save_exec_prefix"
17281  prefix="$acl_save_prefix"
17282
17283                      if test "X$x" = "X-L$found_dir"; then
17284                        haveit=yes
17285                        break
17286                      fi
17287                    done
17288                    if test -z "$haveit"; then
17289                      LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
17290                    fi
17291                    if test "$acl_hardcode_minus_L" != no; then
17292                                                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17293                    else
17294                                                                                                                                                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17295                    fi
17296                  fi
17297                fi
17298              fi
17299            else
17300              if test "X$found_a" != "X"; then
17301                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
17302              else
17303                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
17304              fi
17305            fi
17306                        additional_includedir=
17307            case "$found_dir" in
17308              */$acl_libdirstem | */$acl_libdirstem/)
17309                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17310                LIBPTH_PREFIX="$basedir"
17311                additional_includedir="$basedir/include"
17312                ;;
17313            esac
17314            if test "X$additional_includedir" != "X"; then
17315                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
17316                haveit=
17317                if test "X$additional_includedir" = "X/usr/local/include"; then
17318                  if test -n "$GCC"; then
17319                    case $host_os in
17320                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17321                    esac
17322                  fi
17323                fi
17324                if test -z "$haveit"; then
17325                  for x in $CPPFLAGS $INCPTH; do
17326
17327  acl_save_prefix="$prefix"
17328  prefix="$acl_final_prefix"
17329  acl_save_exec_prefix="$exec_prefix"
17330  exec_prefix="$acl_final_exec_prefix"
17331  eval x=\"$x\"
17332  exec_prefix="$acl_save_exec_prefix"
17333  prefix="$acl_save_prefix"
17334
17335                    if test "X$x" = "X-I$additional_includedir"; then
17336                      haveit=yes
17337                      break
17338                    fi
17339                  done
17340                  if test -z "$haveit"; then
17341                    if test -d "$additional_includedir"; then
17342                                            INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
17343                    fi
17344                  fi
17345                fi
17346              fi
17347            fi
17348                        if test -n "$found_la"; then
17349                                                        save_libdir="$libdir"
17350              case "$found_la" in
17351                */* | *\\*) . "$found_la" ;;
17352                *) . "./$found_la" ;;
17353              esac
17354              libdir="$save_libdir"
17355                            for dep in $dependency_libs; do
17356                case "$dep" in
17357                  -L*)
17358                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17359                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
17360                      haveit=
17361                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
17362                        if test -n "$GCC"; then
17363                          case $host_os in
17364                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17365                          esac
17366                        fi
17367                      fi
17368                      if test -z "$haveit"; then
17369                        haveit=
17370                        for x in $LDFLAGS $LIBPTH; do
17371
17372  acl_save_prefix="$prefix"
17373  prefix="$acl_final_prefix"
17374  acl_save_exec_prefix="$exec_prefix"
17375  exec_prefix="$acl_final_exec_prefix"
17376  eval x=\"$x\"
17377  exec_prefix="$acl_save_exec_prefix"
17378  prefix="$acl_save_prefix"
17379
17380                          if test "X$x" = "X-L$additional_libdir"; then
17381                            haveit=yes
17382                            break
17383                          fi
17384                        done
17385                        if test -z "$haveit"; then
17386                          if test -d "$additional_libdir"; then
17387                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
17388                          fi
17389                        fi
17390                        haveit=
17391                        for x in $LDFLAGS $LTLIBPTH; do
17392
17393  acl_save_prefix="$prefix"
17394  prefix="$acl_final_prefix"
17395  acl_save_exec_prefix="$exec_prefix"
17396  exec_prefix="$acl_final_exec_prefix"
17397  eval x=\"$x\"
17398  exec_prefix="$acl_save_exec_prefix"
17399  prefix="$acl_save_prefix"
17400
17401                          if test "X$x" = "X-L$additional_libdir"; then
17402                            haveit=yes
17403                            break
17404                          fi
17405                        done
17406                        if test -z "$haveit"; then
17407                          if test -d "$additional_libdir"; then
17408                                                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
17409                          fi
17410                        fi
17411                      fi
17412                    fi
17413                    ;;
17414                  -R*)
17415                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
17416                    if test "$enable_rpath" != no; then
17417                                                                  haveit=
17418                      for x in $rpathdirs; do
17419                        if test "X$x" = "X$dir"; then
17420                          haveit=yes
17421                          break
17422                        fi
17423                      done
17424                      if test -z "$haveit"; then
17425                        rpathdirs="$rpathdirs $dir"
17426                      fi
17427                                                                  haveit=
17428                      for x in $ltrpathdirs; do
17429                        if test "X$x" = "X$dir"; then
17430                          haveit=yes
17431                          break
17432                        fi
17433                      done
17434                      if test -z "$haveit"; then
17435                        ltrpathdirs="$ltrpathdirs $dir"
17436                      fi
17437                    fi
17438                    ;;
17439                  -l*)
17440                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17441                    ;;
17442                  *.la)
17443                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17444                    ;;
17445                  *)
17446                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
17447                    LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
17448                    ;;
17449                esac
17450              done
17451            fi
17452          else
17453                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17454            LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
17455          fi
17456        fi
17457      fi
17458    done
17459  done
17460  if test "X$rpathdirs" != "X"; then
17461    if test -n "$acl_hardcode_libdir_separator"; then
17462                        alldirs=
17463      for found_dir in $rpathdirs; do
17464        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17465      done
17466            acl_save_libdir="$libdir"
17467      libdir="$alldirs"
17468      eval flag=\"$acl_hardcode_libdir_flag_spec\"
17469      libdir="$acl_save_libdir"
17470      LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17471    else
17472            for found_dir in $rpathdirs; do
17473        acl_save_libdir="$libdir"
17474        libdir="$found_dir"
17475        eval flag=\"$acl_hardcode_libdir_flag_spec\"
17476        libdir="$acl_save_libdir"
17477        LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17478      done
17479    fi
17480  fi
17481  if test "X$ltrpathdirs" != "X"; then
17482            for found_dir in $ltrpathdirs; do
17483      LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
17484    done
17485  fi
17486
17487    ac_cv_libpth_libs="$LIBPTH"
17488    ac_cv_libpth_ltlibs="$LTLIBPTH"
17489    ac_cv_libpth_cppflags="$INCPTH"
17490    ac_cv_libpth_prefix="$LIBPTH_PREFIX"
17491
17492fi
17493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
17494$as_echo "$ac_cv_libpth_libs" >&6; }
17495  LIBPTH="$ac_cv_libpth_libs"
17496  LTLIBPTH="$ac_cv_libpth_ltlibs"
17497  INCPTH="$ac_cv_libpth_cppflags"
17498  LIBPTH_PREFIX="$ac_cv_libpth_prefix"
17499
17500  for element in $INCPTH; do
17501    haveit=
17502    for x in $CPPFLAGS; do
17503
17504  acl_save_prefix="$prefix"
17505  prefix="$acl_final_prefix"
17506  acl_save_exec_prefix="$exec_prefix"
17507  exec_prefix="$acl_final_exec_prefix"
17508  eval x=\"$x\"
17509  exec_prefix="$acl_save_exec_prefix"
17510  prefix="$acl_save_prefix"
17511
17512      if test "X$x" = "X$element"; then
17513        haveit=yes
17514        break
17515      fi
17516    done
17517    if test -z "$haveit"; then
17518      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17519    fi
17520  done
17521
17522
17523
17524
17525      HAVE_LIBPTH=yes
17526
17527
17528
17529      gl_have_pth=
17530      gl_save_LIBS="$LIBS"
17531      LIBS="$LIBS -lpth"
17532      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17533/* end confdefs.h.  */
17534#include <pth.h>
17535int
17536main ()
17537{
17538pth_self();
17539  ;
17540  return 0;
17541}
17542_ACEOF
17543if ac_fn_c_try_link "$LINENO"; then :
17544  gl_have_pth=yes
17545fi
17546rm -f core conftest.err conftest.$ac_objext \
17547    conftest$ac_exeext conftest.$ac_ext
17548      LIBS="$gl_save_LIBS"
17549      if test -n "$gl_have_pth"; then
17550        gl_threads_api=pth
17551        LIBTHREAD="$LIBPTH"
17552        LTLIBTHREAD="$LTLIBPTH"
17553        LIBMULTITHREAD="$LIBTHREAD"
17554        LTLIBMULTITHREAD="$LTLIBTHREAD"
17555
17556$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
17557
17558        if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17559          if test $gl_have_weak = yes; then
17560
17561$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
17562
17563            LIBTHREAD=
17564            LTLIBTHREAD=
17565          fi
17566        fi
17567      else
17568        CPPFLAGS="$gl_save_CPPFLAGS"
17569      fi
17570    fi
17571    if test -z "$gl_have_pthread"; then
17572      if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
17573        if { case "$host_os" in
17574               mingw*) true;;
17575               *) false;;
17576             esac
17577           }; then
17578          gl_threads_api=win32
17579
17580$as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
17581
17582        fi
17583      fi
17584    fi
17585  fi
17586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
17587$as_echo_n "checking for multithread API to use... " >&6; }
17588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
17589$as_echo "$gl_threads_api" >&6; }
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610    use_additional=yes
17611
17612  acl_save_prefix="$prefix"
17613  prefix="$acl_final_prefix"
17614  acl_save_exec_prefix="$exec_prefix"
17615  exec_prefix="$acl_final_exec_prefix"
17616
17617    eval additional_includedir=\"$includedir\"
17618    eval additional_libdir=\"$libdir\"
17619
17620  exec_prefix="$acl_save_exec_prefix"
17621  prefix="$acl_save_prefix"
17622
17623
17624# Check whether --with-libiconv-prefix was given.
17625if test "${with_libiconv_prefix+set}" = set; then :
17626  withval=$with_libiconv_prefix;
17627    if test "X$withval" = "Xno"; then
17628      use_additional=no
17629    else
17630      if test "X$withval" = "X"; then
17631
17632  acl_save_prefix="$prefix"
17633  prefix="$acl_final_prefix"
17634  acl_save_exec_prefix="$exec_prefix"
17635  exec_prefix="$acl_final_exec_prefix"
17636
17637          eval additional_includedir=\"$includedir\"
17638          eval additional_libdir=\"$libdir\"
17639
17640  exec_prefix="$acl_save_exec_prefix"
17641  prefix="$acl_save_prefix"
17642
17643      else
17644        additional_includedir="$withval/include"
17645        additional_libdir="$withval/$acl_libdirstem"
17646      fi
17647    fi
17648
17649fi
17650
17651      LIBICONV=
17652  LTLIBICONV=
17653  INCICONV=
17654  LIBICONV_PREFIX=
17655  rpathdirs=
17656  ltrpathdirs=
17657  names_already_handled=
17658  names_next_round='iconv '
17659  while test -n "$names_next_round"; do
17660    names_this_round="$names_next_round"
17661    names_next_round=
17662    for name in $names_this_round; do
17663      already_handled=
17664      for n in $names_already_handled; do
17665        if test "$n" = "$name"; then
17666          already_handled=yes
17667          break
17668        fi
17669      done
17670      if test -z "$already_handled"; then
17671        names_already_handled="$names_already_handled $name"
17672                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17673        eval value=\"\$HAVE_LIB$uppername\"
17674        if test -n "$value"; then
17675          if test "$value" = yes; then
17676            eval value=\"\$LIB$uppername\"
17677            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17678            eval value=\"\$LTLIB$uppername\"
17679            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17680          else
17681                                    :
17682          fi
17683        else
17684                              found_dir=
17685          found_la=
17686          found_so=
17687          found_a=
17688          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
17689          if test -n "$acl_shlibext"; then
17690            shrext=".$acl_shlibext"             # typically: shrext=.so
17691          else
17692            shrext=
17693          fi
17694          if test $use_additional = yes; then
17695            dir="$additional_libdir"
17696                                    if test -n "$acl_shlibext"; then
17697              if test -f "$dir/$libname$shrext"; then
17698                found_dir="$dir"
17699                found_so="$dir/$libname$shrext"
17700              else
17701                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17702                  ver=`(cd "$dir" && \
17703                        for f in "$libname$shrext".*; do echo "$f"; done \
17704                        | sed -e "s,^$libname$shrext\\\\.,," \
17705                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17706                        | sed 1q ) 2>/dev/null`
17707                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17708                    found_dir="$dir"
17709                    found_so="$dir/$libname$shrext.$ver"
17710                  fi
17711                else
17712                  eval library_names=\"$acl_library_names_spec\"
17713                  for f in $library_names; do
17714                    if test -f "$dir/$f"; then
17715                      found_dir="$dir"
17716                      found_so="$dir/$f"
17717                      break
17718                    fi
17719                  done
17720                fi
17721              fi
17722            fi
17723                        if test "X$found_dir" = "X"; then
17724              if test -f "$dir/$libname.$acl_libext"; then
17725                found_dir="$dir"
17726                found_a="$dir/$libname.$acl_libext"
17727              fi
17728            fi
17729            if test "X$found_dir" != "X"; then
17730              if test -f "$dir/$libname.la"; then
17731                found_la="$dir/$libname.la"
17732              fi
17733            fi
17734          fi
17735          if test "X$found_dir" = "X"; then
17736            for x in $LDFLAGS $LTLIBICONV; do
17737
17738  acl_save_prefix="$prefix"
17739  prefix="$acl_final_prefix"
17740  acl_save_exec_prefix="$exec_prefix"
17741  exec_prefix="$acl_final_exec_prefix"
17742  eval x=\"$x\"
17743  exec_prefix="$acl_save_exec_prefix"
17744  prefix="$acl_save_prefix"
17745
17746              case "$x" in
17747                -L*)
17748                  dir=`echo "X$x" | sed -e 's/^X-L//'`
17749                                    if test -n "$acl_shlibext"; then
17750                    if test -f "$dir/$libname$shrext"; then
17751                      found_dir="$dir"
17752                      found_so="$dir/$libname$shrext"
17753                    else
17754                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17755                        ver=`(cd "$dir" && \
17756                              for f in "$libname$shrext".*; do echo "$f"; done \
17757                              | sed -e "s,^$libname$shrext\\\\.,," \
17758                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17759                              | sed 1q ) 2>/dev/null`
17760                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17761                          found_dir="$dir"
17762                          found_so="$dir/$libname$shrext.$ver"
17763                        fi
17764                      else
17765                        eval library_names=\"$acl_library_names_spec\"
17766                        for f in $library_names; do
17767                          if test -f "$dir/$f"; then
17768                            found_dir="$dir"
17769                            found_so="$dir/$f"
17770                            break
17771                          fi
17772                        done
17773                      fi
17774                    fi
17775                  fi
17776                                    if test "X$found_dir" = "X"; then
17777                    if test -f "$dir/$libname.$acl_libext"; then
17778                      found_dir="$dir"
17779                      found_a="$dir/$libname.$acl_libext"
17780                    fi
17781                  fi
17782                  if test "X$found_dir" != "X"; then
17783                    if test -f "$dir/$libname.la"; then
17784                      found_la="$dir/$libname.la"
17785                    fi
17786                  fi
17787                  ;;
17788              esac
17789              if test "X$found_dir" != "X"; then
17790                break
17791              fi
17792            done
17793          fi
17794          if test "X$found_dir" != "X"; then
17795                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17796            if test "X$found_so" != "X"; then
17797                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
17798                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17799              else
17800                                                                                haveit=
17801                for x in $ltrpathdirs; do
17802                  if test "X$x" = "X$found_dir"; then
17803                    haveit=yes
17804                    break
17805                  fi
17806                done
17807                if test -z "$haveit"; then
17808                  ltrpathdirs="$ltrpathdirs $found_dir"
17809                fi
17810                                if test "$acl_hardcode_direct" = yes; then
17811                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17812                else
17813                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17814                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17815                                                            haveit=
17816                    for x in $rpathdirs; do
17817                      if test "X$x" = "X$found_dir"; then
17818                        haveit=yes
17819                        break
17820                      fi
17821                    done
17822                    if test -z "$haveit"; then
17823                      rpathdirs="$rpathdirs $found_dir"
17824                    fi
17825                  else
17826                                                                                haveit=
17827                    for x in $LDFLAGS $LIBICONV; do
17828
17829  acl_save_prefix="$prefix"
17830  prefix="$acl_final_prefix"
17831  acl_save_exec_prefix="$exec_prefix"
17832  exec_prefix="$acl_final_exec_prefix"
17833  eval x=\"$x\"
17834  exec_prefix="$acl_save_exec_prefix"
17835  prefix="$acl_save_prefix"
17836
17837                      if test "X$x" = "X-L$found_dir"; then
17838                        haveit=yes
17839                        break
17840                      fi
17841                    done
17842                    if test -z "$haveit"; then
17843                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17844                    fi
17845                    if test "$acl_hardcode_minus_L" != no; then
17846                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17847                    else
17848                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17849                    fi
17850                  fi
17851                fi
17852              fi
17853            else
17854              if test "X$found_a" != "X"; then
17855                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17856              else
17857                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17858              fi
17859            fi
17860                        additional_includedir=
17861            case "$found_dir" in
17862              */$acl_libdirstem | */$acl_libdirstem/)
17863                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17864                LIBICONV_PREFIX="$basedir"
17865                additional_includedir="$basedir/include"
17866                ;;
17867            esac
17868            if test "X$additional_includedir" != "X"; then
17869                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
17870                haveit=
17871                if test "X$additional_includedir" = "X/usr/local/include"; then
17872                  if test -n "$GCC"; then
17873                    case $host_os in
17874                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17875                    esac
17876                  fi
17877                fi
17878                if test -z "$haveit"; then
17879                  for x in $CPPFLAGS $INCICONV; do
17880
17881  acl_save_prefix="$prefix"
17882  prefix="$acl_final_prefix"
17883  acl_save_exec_prefix="$exec_prefix"
17884  exec_prefix="$acl_final_exec_prefix"
17885  eval x=\"$x\"
17886  exec_prefix="$acl_save_exec_prefix"
17887  prefix="$acl_save_prefix"
17888
17889                    if test "X$x" = "X-I$additional_includedir"; then
17890                      haveit=yes
17891                      break
17892                    fi
17893                  done
17894                  if test -z "$haveit"; then
17895                    if test -d "$additional_includedir"; then
17896                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17897                    fi
17898                  fi
17899                fi
17900              fi
17901            fi
17902                        if test -n "$found_la"; then
17903                                                        save_libdir="$libdir"
17904              case "$found_la" in
17905                */* | *\\*) . "$found_la" ;;
17906                *) . "./$found_la" ;;
17907              esac
17908              libdir="$save_libdir"
17909                            for dep in $dependency_libs; do
17910                case "$dep" in
17911                  -L*)
17912                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17913                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
17914                      haveit=
17915                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
17916                        if test -n "$GCC"; then
17917                          case $host_os in
17918                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17919                          esac
17920                        fi
17921                      fi
17922                      if test -z "$haveit"; then
17923                        haveit=
17924                        for x in $LDFLAGS $LIBICONV; do
17925
17926  acl_save_prefix="$prefix"
17927  prefix="$acl_final_prefix"
17928  acl_save_exec_prefix="$exec_prefix"
17929  exec_prefix="$acl_final_exec_prefix"
17930  eval x=\"$x\"
17931  exec_prefix="$acl_save_exec_prefix"
17932  prefix="$acl_save_prefix"
17933
17934                          if test "X$x" = "X-L$additional_libdir"; then
17935                            haveit=yes
17936                            break
17937                          fi
17938                        done
17939                        if test -z "$haveit"; then
17940                          if test -d "$additional_libdir"; then
17941                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17942                          fi
17943                        fi
17944                        haveit=
17945                        for x in $LDFLAGS $LTLIBICONV; do
17946
17947  acl_save_prefix="$prefix"
17948  prefix="$acl_final_prefix"
17949  acl_save_exec_prefix="$exec_prefix"
17950  exec_prefix="$acl_final_exec_prefix"
17951  eval x=\"$x\"
17952  exec_prefix="$acl_save_exec_prefix"
17953  prefix="$acl_save_prefix"
17954
17955                          if test "X$x" = "X-L$additional_libdir"; then
17956                            haveit=yes
17957                            break
17958                          fi
17959                        done
17960                        if test -z "$haveit"; then
17961                          if test -d "$additional_libdir"; then
17962                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17963                          fi
17964                        fi
17965                      fi
17966                    fi
17967                    ;;
17968                  -R*)
17969                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
17970                    if test "$enable_rpath" != no; then
17971                                                                  haveit=
17972                      for x in $rpathdirs; do
17973                        if test "X$x" = "X$dir"; then
17974                          haveit=yes
17975                          break
17976                        fi
17977                      done
17978                      if test -z "$haveit"; then
17979                        rpathdirs="$rpathdirs $dir"
17980                      fi
17981                                                                  haveit=
17982                      for x in $ltrpathdirs; do
17983                        if test "X$x" = "X$dir"; then
17984                          haveit=yes
17985                          break
17986                        fi
17987                      done
17988                      if test -z "$haveit"; then
17989                        ltrpathdirs="$ltrpathdirs $dir"
17990                      fi
17991                    fi
17992                    ;;
17993                  -l*)
17994                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17995                    ;;
17996                  *.la)
17997                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17998                    ;;
17999                  *)
18000                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18001                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18002                    ;;
18003                esac
18004              done
18005            fi
18006          else
18007                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18008            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18009          fi
18010        fi
18011      fi
18012    done
18013  done
18014  if test "X$rpathdirs" != "X"; then
18015    if test -n "$acl_hardcode_libdir_separator"; then
18016                        alldirs=
18017      for found_dir in $rpathdirs; do
18018        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18019      done
18020            acl_save_libdir="$libdir"
18021      libdir="$alldirs"
18022      eval flag=\"$acl_hardcode_libdir_flag_spec\"
18023      libdir="$acl_save_libdir"
18024      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18025    else
18026            for found_dir in $rpathdirs; do
18027        acl_save_libdir="$libdir"
18028        libdir="$found_dir"
18029        eval flag=\"$acl_hardcode_libdir_flag_spec\"
18030        libdir="$acl_save_libdir"
18031        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18032      done
18033    fi
18034  fi
18035  if test "X$ltrpathdirs" != "X"; then
18036            for found_dir in $ltrpathdirs; do
18037      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18038    done
18039  fi
18040
18041
18042
18043
18044
18045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046/* end confdefs.h.  */
18047int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
18048int
18049main ()
18050{
18051
18052  ;
18053  return 0;
18054}
18055_ACEOF
18056if ac_fn_c_try_link "$LINENO"; then :
18057
18058$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
18059
18060fi
18061rm -f core conftest.err conftest.$ac_objext \
18062    conftest$ac_exeext conftest.$ac_ext
18063
18064  for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
18065do :
18066  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18067ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18068if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18069  cat >>confdefs.h <<_ACEOF
18070#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18071_ACEOF
18072
18073fi
18074
18075done
18076
18077  for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
18078    stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
18079    argz_next __fsetlocking
18080do :
18081  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18082ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18083if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18084  cat >>confdefs.h <<_ACEOF
18085#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18086_ACEOF
18087
18088fi
18089done
18090
18091
18092
18093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
18094$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
18095if ${ac_cv_have_decl_feof_unlocked+:} false; then :
18096  $as_echo_n "(cached) " >&6
18097else
18098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18099/* end confdefs.h.  */
18100#include <stdio.h>
18101int
18102main ()
18103{
18104
18105#ifndef feof_unlocked
18106  char *p = (char *) feof_unlocked;
18107#endif
18108
18109  ;
18110  return 0;
18111}
18112_ACEOF
18113if ac_fn_c_try_compile "$LINENO"; then :
18114  ac_cv_have_decl_feof_unlocked=yes
18115else
18116  ac_cv_have_decl_feof_unlocked=no
18117fi
18118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18119fi
18120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
18121$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
18122  if test $ac_cv_have_decl_feof_unlocked = yes; then
18123    gt_value=1
18124  else
18125    gt_value=0
18126  fi
18127
18128cat >>confdefs.h <<_ACEOF
18129#define HAVE_DECL_FEOF_UNLOCKED $gt_value
18130_ACEOF
18131
18132
18133
18134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
18135$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
18136if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
18137  $as_echo_n "(cached) " >&6
18138else
18139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18140/* end confdefs.h.  */
18141#include <stdio.h>
18142int
18143main ()
18144{
18145
18146#ifndef fgets_unlocked
18147  char *p = (char *) fgets_unlocked;
18148#endif
18149
18150  ;
18151  return 0;
18152}
18153_ACEOF
18154if ac_fn_c_try_compile "$LINENO"; then :
18155  ac_cv_have_decl_fgets_unlocked=yes
18156else
18157  ac_cv_have_decl_fgets_unlocked=no
18158fi
18159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18160fi
18161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
18162$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
18163  if test $ac_cv_have_decl_fgets_unlocked = yes; then
18164    gt_value=1
18165  else
18166    gt_value=0
18167  fi
18168
18169cat >>confdefs.h <<_ACEOF
18170#define HAVE_DECL_FGETS_UNLOCKED $gt_value
18171_ACEOF
18172
18173
18174
18175
18176
18177
18178
18179
18180          am_save_CPPFLAGS="$CPPFLAGS"
18181
18182  for element in $INCICONV; do
18183    haveit=
18184    for x in $CPPFLAGS; do
18185
18186  acl_save_prefix="$prefix"
18187  prefix="$acl_final_prefix"
18188  acl_save_exec_prefix="$exec_prefix"
18189  exec_prefix="$acl_final_exec_prefix"
18190  eval x=\"$x\"
18191  exec_prefix="$acl_save_exec_prefix"
18192  prefix="$acl_save_prefix"
18193
18194      if test "X$x" = "X$element"; then
18195        haveit=yes
18196        break
18197      fi
18198    done
18199    if test -z "$haveit"; then
18200      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18201    fi
18202  done
18203
18204
18205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18206$as_echo_n "checking for iconv... " >&6; }
18207if ${am_cv_func_iconv+:} false; then :
18208  $as_echo_n "(cached) " >&6
18209else
18210
18211    am_cv_func_iconv="no, consider installing GNU libiconv"
18212    am_cv_lib_iconv=no
18213    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18214/* end confdefs.h.  */
18215#include <stdlib.h>
18216#include <iconv.h>
18217int
18218main ()
18219{
18220iconv_t cd = iconv_open("","");
18221       iconv(cd,NULL,NULL,NULL,NULL);
18222       iconv_close(cd);
18223  ;
18224  return 0;
18225}
18226_ACEOF
18227if ac_fn_c_try_link "$LINENO"; then :
18228  am_cv_func_iconv=yes
18229fi
18230rm -f core conftest.err conftest.$ac_objext \
18231    conftest$ac_exeext conftest.$ac_ext
18232    if test "$am_cv_func_iconv" != yes; then
18233      am_save_LIBS="$LIBS"
18234      LIBS="$LIBS $LIBICONV"
18235      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236/* end confdefs.h.  */
18237#include <stdlib.h>
18238#include <iconv.h>
18239int
18240main ()
18241{
18242iconv_t cd = iconv_open("","");
18243         iconv(cd,NULL,NULL,NULL,NULL);
18244         iconv_close(cd);
18245  ;
18246  return 0;
18247}
18248_ACEOF
18249if ac_fn_c_try_link "$LINENO"; then :
18250  am_cv_lib_iconv=yes
18251        am_cv_func_iconv=yes
18252fi
18253rm -f core conftest.err conftest.$ac_objext \
18254    conftest$ac_exeext conftest.$ac_ext
18255      LIBS="$am_save_LIBS"
18256    fi
18257
18258fi
18259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18260$as_echo "$am_cv_func_iconv" >&6; }
18261  if test "$am_cv_func_iconv" = yes; then
18262    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
18263$as_echo_n "checking for working iconv... " >&6; }
18264if ${am_cv_func_iconv_works+:} false; then :
18265  $as_echo_n "(cached) " >&6
18266else
18267
18268            am_save_LIBS="$LIBS"
18269      if test $am_cv_lib_iconv = yes; then
18270        LIBS="$LIBS $LIBICONV"
18271      fi
18272      if test "$cross_compiling" = yes; then :
18273  case "$host_os" in
18274           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
18275           *)            am_cv_func_iconv_works="guessing yes" ;;
18276         esac
18277else
18278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279/* end confdefs.h.  */
18280
18281#include <iconv.h>
18282#include <string.h>
18283int main ()
18284{
18285  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
18286     returns.  */
18287  {
18288    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
18289    if (cd_utf8_to_88591 != (iconv_t)(-1))
18290      {
18291        static const char input[] = "\342\202\254"; /* EURO SIGN */
18292        char buf[10];
18293        const char *inptr = input;
18294        size_t inbytesleft = strlen (input);
18295        char *outptr = buf;
18296        size_t outbytesleft = sizeof (buf);
18297        size_t res = iconv (cd_utf8_to_88591,
18298                            (char **) &inptr, &inbytesleft,
18299                            &outptr, &outbytesleft);
18300        if (res == 0)
18301          return 1;
18302      }
18303  }
18304#if 0 /* This bug could be worked around by the caller.  */
18305  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
18306  {
18307    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
18308    if (cd_88591_to_utf8 != (iconv_t)(-1))
18309      {
18310        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
18311        char buf[50];
18312        const char *inptr = input;
18313        size_t inbytesleft = strlen (input);
18314        char *outptr = buf;
18315        size_t outbytesleft = sizeof (buf);
18316        size_t res = iconv (cd_88591_to_utf8,
18317                            (char **) &inptr, &inbytesleft,
18318                            &outptr, &outbytesleft);
18319        if ((int)res > 0)
18320          return 1;
18321      }
18322  }
18323#endif
18324  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
18325     provided.  */
18326  if (/* Try standardized names.  */
18327      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
18328      /* Try IRIX, OSF/1 names.  */
18329      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
18330      /* Try AIX names.  */
18331      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
18332      /* Try HP-UX names.  */
18333      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
18334    return 1;
18335  return 0;
18336}
18337_ACEOF
18338if ac_fn_c_try_run "$LINENO"; then :
18339  am_cv_func_iconv_works=yes
18340else
18341  am_cv_func_iconv_works=no
18342fi
18343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18344  conftest.$ac_objext conftest.beam conftest.$ac_ext
18345fi
18346
18347      LIBS="$am_save_LIBS"
18348
18349fi
18350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
18351$as_echo "$am_cv_func_iconv_works" >&6; }
18352    case "$am_cv_func_iconv_works" in
18353      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
18354      *)   am_func_iconv=yes ;;
18355    esac
18356  else
18357    am_func_iconv=no am_cv_lib_iconv=no
18358  fi
18359  if test "$am_func_iconv" = yes; then
18360
18361$as_echo "#define HAVE_ICONV 1" >>confdefs.h
18362
18363  fi
18364  if test "$am_cv_lib_iconv" = yes; then
18365    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18366$as_echo_n "checking how to link with libiconv... " >&6; }
18367    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18368$as_echo "$LIBICONV" >&6; }
18369  else
18370            CPPFLAGS="$am_save_CPPFLAGS"
18371    LIBICONV=
18372    LTLIBICONV=
18373  fi
18374
18375
18376
18377  if test "$am_cv_func_iconv" = yes; then
18378    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18379$as_echo_n "checking for iconv declaration... " >&6; }
18380    if ${am_cv_proto_iconv+:} false; then :
18381  $as_echo_n "(cached) " >&6
18382else
18383
18384      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385/* end confdefs.h.  */
18386
18387#include <stdlib.h>
18388#include <iconv.h>
18389extern
18390#ifdef __cplusplus
18391"C"
18392#endif
18393#if defined(__STDC__) || defined(__cplusplus)
18394size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18395#else
18396size_t iconv();
18397#endif
18398
18399int
18400main ()
18401{
18402
18403  ;
18404  return 0;
18405}
18406_ACEOF
18407if ac_fn_c_try_compile "$LINENO"; then :
18408  am_cv_proto_iconv_arg1=""
18409else
18410  am_cv_proto_iconv_arg1="const"
18411fi
18412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18413      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);"
18414fi
18415
18416    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18417    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
18418         }$am_cv_proto_iconv" >&5
18419$as_echo "${ac_t:-
18420         }$am_cv_proto_iconv" >&6; }
18421
18422cat >>confdefs.h <<_ACEOF
18423#define ICONV_CONST $am_cv_proto_iconv_arg1
18424_ACEOF
18425
18426  fi
18427
18428
18429      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
18430$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
18431if ${gt_cv_nl_locale_name+:} false; then :
18432  $as_echo_n "(cached) " >&6
18433else
18434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18435/* end confdefs.h.  */
18436#include <langinfo.h>
18437#include <locale.h>
18438int
18439main ()
18440{
18441char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
18442       return !cs;
18443
18444  ;
18445  return 0;
18446}
18447_ACEOF
18448if ac_fn_c_try_link "$LINENO"; then :
18449  gt_cv_nl_locale_name=yes
18450else
18451  gt_cv_nl_locale_name=no
18452fi
18453rm -f core conftest.err conftest.$ac_objext \
18454    conftest$ac_exeext conftest.$ac_ext
18455
18456fi
18457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
18458$as_echo "$gt_cv_nl_locale_name" >&6; }
18459  if test $gt_cv_nl_locale_name = yes; then
18460
18461$as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
18462
18463  fi
18464
18465                      for ac_prog in bison
18466do
18467  # Extract the first word of "$ac_prog", so it can be a program name with args.
18468set dummy $ac_prog; ac_word=$2
18469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18470$as_echo_n "checking for $ac_word... " >&6; }
18471if ${ac_cv_prog_INTLBISON+:} false; then :
18472  $as_echo_n "(cached) " >&6
18473else
18474  if test -n "$INTLBISON"; then
18475  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
18476else
18477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18478for as_dir in $PATH
18479do
18480  IFS=$as_save_IFS
18481  test -z "$as_dir" && as_dir=.
18482    for ac_exec_ext in '' $ac_executable_extensions; do
18483  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18484    ac_cv_prog_INTLBISON="$ac_prog"
18485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18486    break 2
18487  fi
18488done
18489  done
18490IFS=$as_save_IFS
18491
18492fi
18493fi
18494INTLBISON=$ac_cv_prog_INTLBISON
18495if test -n "$INTLBISON"; then
18496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
18497$as_echo "$INTLBISON" >&6; }
18498else
18499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18500$as_echo "no" >&6; }
18501fi
18502
18503
18504  test -n "$INTLBISON" && break
18505done
18506
18507  if test -z "$INTLBISON"; then
18508    ac_verc_fail=yes
18509  else
18510        { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
18511$as_echo_n "checking version of bison... " >&6; }
18512    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
18513    case $ac_prog_version in
18514      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
18515      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
18516         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
18517      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
18518    esac
18519    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
18520$as_echo "$ac_prog_version" >&6; }
18521  fi
18522  if test $ac_verc_fail = yes; then
18523    INTLBISON=:
18524  fi
18525
18526
18527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18528$as_echo_n "checking for long long int... " >&6; }
18529if ${ac_cv_type_long_long_int+:} false; then :
18530  $as_echo_n "(cached) " >&6
18531else
18532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18533/* end confdefs.h.  */
18534
18535  /* Test preprocessor.  */
18536      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18537        error in preprocessor;
18538      #endif
18539      #if ! (18446744073709551615ULL <= -1ull)
18540        error in preprocessor;
18541      #endif
18542      /* Test literals.  */
18543      long long int ll = 9223372036854775807ll;
18544      long long int nll = -9223372036854775807LL;
18545      unsigned long long int ull = 18446744073709551615ULL;
18546      /* Test constant expressions.   */
18547      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18548		     ? 1 : -1)];
18549      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18550		     ? 1 : -1)];
18551      int i = 63;
18552int
18553main ()
18554{
18555/* Test availability of runtime routines for shift and division.  */
18556      long long int llmax = 9223372036854775807ll;
18557      unsigned long long int ullmax = 18446744073709551615ull;
18558      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18559	      | (llmax / ll) | (llmax % ll)
18560	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18561	      | (ullmax / ull) | (ullmax % ull));
18562  ;
18563  return 0;
18564}
18565
18566_ACEOF
18567if ac_fn_c_try_link "$LINENO"; then :
18568  			if test "$cross_compiling" = yes; then :
18569  ac_cv_type_long_long_int=yes
18570else
18571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18572/* end confdefs.h.  */
18573#include <limits.h>
18574	       #ifndef LLONG_MAX
18575	       # define HALF \
18576			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
18577	       # define LLONG_MAX (HALF - 1 + HALF)
18578	       #endif
18579int
18580main ()
18581{
18582long long int n = 1;
18583	       int i;
18584	       for (i = 0; ; i++)
18585		 {
18586		   long long int m = n << i;
18587		   if (m >> i != n)
18588		     return 1;
18589		   if (LLONG_MAX / 2 < m)
18590		     break;
18591		 }
18592	       return 0;
18593  ;
18594  return 0;
18595}
18596_ACEOF
18597if ac_fn_c_try_run "$LINENO"; then :
18598  ac_cv_type_long_long_int=yes
18599else
18600  ac_cv_type_long_long_int=no
18601fi
18602rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18603  conftest.$ac_objext conftest.beam conftest.$ac_ext
18604fi
18605
18606else
18607  ac_cv_type_long_long_int=no
18608fi
18609rm -f core conftest.err conftest.$ac_objext \
18610    conftest$ac_exeext conftest.$ac_ext
18611fi
18612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18613$as_echo "$ac_cv_type_long_long_int" >&6; }
18614  if test $ac_cv_type_long_long_int = yes; then
18615
18616$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18617
18618  fi
18619
18620
18621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18622$as_echo_n "checking for wchar_t... " >&6; }
18623if ${gt_cv_c_wchar_t+:} false; then :
18624  $as_echo_n "(cached) " >&6
18625else
18626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18627/* end confdefs.h.  */
18628#include <stddef.h>
18629       wchar_t foo = (wchar_t)'\0';
18630int
18631main ()
18632{
18633
18634  ;
18635  return 0;
18636}
18637_ACEOF
18638if ac_fn_c_try_compile "$LINENO"; then :
18639  gt_cv_c_wchar_t=yes
18640else
18641  gt_cv_c_wchar_t=no
18642fi
18643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18644fi
18645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18646$as_echo "$gt_cv_c_wchar_t" >&6; }
18647  if test $gt_cv_c_wchar_t = yes; then
18648
18649$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18650
18651  fi
18652
18653
18654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18655$as_echo_n "checking for wint_t... " >&6; }
18656if ${gt_cv_c_wint_t+:} false; then :
18657  $as_echo_n "(cached) " >&6
18658else
18659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18660/* end confdefs.h.  */
18661
18662/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18663   <wchar.h>.
18664   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18665   before <wchar.h>.  */
18666#include <stddef.h>
18667#include <stdio.h>
18668#include <time.h>
18669#include <wchar.h>
18670       wint_t foo = (wchar_t)'\0';
18671int
18672main ()
18673{
18674
18675  ;
18676  return 0;
18677}
18678_ACEOF
18679if ac_fn_c_try_compile "$LINENO"; then :
18680  gt_cv_c_wint_t=yes
18681else
18682  gt_cv_c_wint_t=no
18683fi
18684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18685fi
18686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18687$as_echo "$gt_cv_c_wint_t" >&6; }
18688  if test $gt_cv_c_wint_t = yes; then
18689
18690$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18691
18692  fi
18693
18694
18695
18696
18697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18698$as_echo_n "checking for intmax_t... " >&6; }
18699if ${gt_cv_c_intmax_t+:} false; then :
18700  $as_echo_n "(cached) " >&6
18701else
18702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18703/* end confdefs.h.  */
18704
18705#include <stddef.h>
18706#include <stdlib.h>
18707#if HAVE_STDINT_H_WITH_UINTMAX
18708#include <stdint.h>
18709#endif
18710#if HAVE_INTTYPES_H_WITH_UINTMAX
18711#include <inttypes.h>
18712#endif
18713
18714int
18715main ()
18716{
18717intmax_t x = -1;
18718        return !x;
18719  ;
18720  return 0;
18721}
18722_ACEOF
18723if ac_fn_c_try_compile "$LINENO"; then :
18724  gt_cv_c_intmax_t=yes
18725else
18726  gt_cv_c_intmax_t=no
18727fi
18728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18729fi
18730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18731$as_echo "$gt_cv_c_intmax_t" >&6; }
18732  if test $gt_cv_c_intmax_t = yes; then
18733
18734$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18735
18736  fi
18737
18738
18739
18740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18741$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18742if ${gt_cv_func_printf_posix+:} false; then :
18743  $as_echo_n "(cached) " >&6
18744else
18745
18746      if test "$cross_compiling" = yes; then :
18747
18748        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18749/* end confdefs.h.  */
18750
18751#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18752  notposix
18753#endif
18754
18755_ACEOF
18756if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18757  $EGREP "notposix" >/dev/null 2>&1; then :
18758  gt_cv_func_printf_posix="guessing no"
18759else
18760  gt_cv_func_printf_posix="guessing yes"
18761fi
18762rm -f conftest*
18763
18764
18765else
18766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18767/* end confdefs.h.  */
18768
18769#include <stdio.h>
18770#include <string.h>
18771/* The string "%2$d %1$d", with dollar characters protected from the shell's
18772   dollar expansion (possibly an autoconf bug).  */
18773static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18774static char buf[100];
18775int main ()
18776{
18777  sprintf (buf, format, 33, 55);
18778  return (strcmp (buf, "55 33") != 0);
18779}
18780_ACEOF
18781if ac_fn_c_try_run "$LINENO"; then :
18782  gt_cv_func_printf_posix=yes
18783else
18784  gt_cv_func_printf_posix=no
18785fi
18786rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18787  conftest.$ac_objext conftest.beam conftest.$ac_ext
18788fi
18789
18790
18791fi
18792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18793$as_echo "$gt_cv_func_printf_posix" >&6; }
18794  case $gt_cv_func_printf_posix in
18795    *yes)
18796
18797$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18798
18799      ;;
18800  esac
18801
18802
18803    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18804$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18805if ${ac_cv_gnu_library_2_1+:} false; then :
18806  $as_echo_n "(cached) " >&6
18807else
18808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18809/* end confdefs.h.  */
18810
18811#include <features.h>
18812#ifdef __GNU_LIBRARY__
18813 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18814  Lucky GNU user
18815 #endif
18816#endif
18817
18818_ACEOF
18819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18820  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18821  ac_cv_gnu_library_2_1=yes
18822else
18823  ac_cv_gnu_library_2_1=no
18824fi
18825rm -f conftest*
18826
18827
18828
18829fi
18830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18831$as_echo "$ac_cv_gnu_library_2_1" >&6; }
18832
18833    GLIBC21="$ac_cv_gnu_library_2_1"
18834
18835
18836
18837  for ac_header in stdint.h
18838do :
18839  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18840if test "x$ac_cv_header_stdint_h" = xyes; then :
18841  cat >>confdefs.h <<_ACEOF
18842#define HAVE_STDINT_H 1
18843_ACEOF
18844
18845fi
18846
18847done
18848
18849    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
18850$as_echo_n "checking for SIZE_MAX... " >&6; }
18851  if ${gl_cv_size_max+:} false; then :
18852  $as_echo_n "(cached) " >&6
18853else
18854
18855    gl_cv_size_max=
18856    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18857/* end confdefs.h.  */
18858
18859#include <limits.h>
18860#if HAVE_STDINT_H
18861#include <stdint.h>
18862#endif
18863#ifdef SIZE_MAX
18864Found it
18865#endif
18866
18867_ACEOF
18868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18869  $EGREP "Found it" >/dev/null 2>&1; then :
18870  gl_cv_size_max=yes
18871fi
18872rm -f conftest*
18873
18874    if test -z "$gl_cv_size_max"; then
18875                        if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
18876#include <limits.h>"; then :
18877
18878else
18879  size_t_bits_minus_1=
18880fi
18881
18882      if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
18883
18884else
18885  fits_in_uint=
18886fi
18887
18888      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
18889        if test $fits_in_uint = 1; then
18890                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891/* end confdefs.h.  */
18892#include <stddef.h>
18893            extern size_t foo;
18894            extern unsigned long foo;
18895
18896int
18897main ()
18898{
18899
18900  ;
18901  return 0;
18902}
18903_ACEOF
18904if ac_fn_c_try_compile "$LINENO"; then :
18905  fits_in_uint=0
18906fi
18907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18908        fi
18909                                if test $fits_in_uint = 1; then
18910          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
18911        else
18912          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
18913        fi
18914      else
18915                gl_cv_size_max='((size_t)~(size_t)0)'
18916      fi
18917    fi
18918
18919fi
18920
18921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
18922$as_echo "$gl_cv_size_max" >&6; }
18923  if test "$gl_cv_size_max" != yes; then
18924
18925cat >>confdefs.h <<_ACEOF
18926#define SIZE_MAX $gl_cv_size_max
18927_ACEOF
18928
18929  fi
18930
18931
18932
18933
18934  for ac_header in stdint.h
18935do :
18936  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18937if test "x$ac_cv_header_stdint_h" = xyes; then :
18938  cat >>confdefs.h <<_ACEOF
18939#define HAVE_STDINT_H 1
18940_ACEOF
18941
18942fi
18943
18944done
18945
18946
18947
18948    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18949$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18950if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18951  $as_echo_n "(cached) " >&6
18952else
18953  gt_save_LIBS="$LIBS"
18954     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18955     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18956/* end confdefs.h.  */
18957#include <CoreFoundation/CFPreferences.h>
18958int
18959main ()
18960{
18961CFPreferencesCopyAppValue(NULL, NULL)
18962  ;
18963  return 0;
18964}
18965_ACEOF
18966if ac_fn_c_try_link "$LINENO"; then :
18967  gt_cv_func_CFPreferencesCopyAppValue=yes
18968else
18969  gt_cv_func_CFPreferencesCopyAppValue=no
18970fi
18971rm -f core conftest.err conftest.$ac_objext \
18972    conftest$ac_exeext conftest.$ac_ext
18973     LIBS="$gt_save_LIBS"
18974fi
18975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18976$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18977  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18978
18979$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18980
18981  fi
18982    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18983$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18984if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18985  $as_echo_n "(cached) " >&6
18986else
18987  gt_save_LIBS="$LIBS"
18988     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18989     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18990/* end confdefs.h.  */
18991#include <CoreFoundation/CFLocale.h>
18992int
18993main ()
18994{
18995CFLocaleCopyCurrent();
18996  ;
18997  return 0;
18998}
18999_ACEOF
19000if ac_fn_c_try_link "$LINENO"; then :
19001  gt_cv_func_CFLocaleCopyCurrent=yes
19002else
19003  gt_cv_func_CFLocaleCopyCurrent=no
19004fi
19005rm -f core conftest.err conftest.$ac_objext \
19006    conftest$ac_exeext conftest.$ac_ext
19007     LIBS="$gt_save_LIBS"
19008fi
19009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19010$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19011  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19012
19013$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19014
19015  fi
19016  INTL_MACOSX_LIBS=
19017  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19018    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19019  fi
19020
19021
19022
19023
19024
19025
19026
19027  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19028if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19029
19030else
19031
19032$as_echo "#define ptrdiff_t long" >>confdefs.h
19033
19034
19035fi
19036
19037  for ac_header in stddef.h stdlib.h string.h
19038do :
19039  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19040ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19041if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19042  cat >>confdefs.h <<_ACEOF
19043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19044_ACEOF
19045
19046fi
19047
19048done
19049
19050  for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
19051do :
19052  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19053ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19054if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19055  cat >>confdefs.h <<_ACEOF
19056#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19057_ACEOF
19058
19059fi
19060done
19061
19062
19063
19064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19065$as_echo_n "checking whether _snprintf is declared... " >&6; }
19066if ${ac_cv_have_decl__snprintf+:} false; then :
19067  $as_echo_n "(cached) " >&6
19068else
19069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19070/* end confdefs.h.  */
19071#include <stdio.h>
19072int
19073main ()
19074{
19075
19076#ifndef _snprintf
19077  char *p = (char *) _snprintf;
19078#endif
19079
19080  ;
19081  return 0;
19082}
19083_ACEOF
19084if ac_fn_c_try_compile "$LINENO"; then :
19085  ac_cv_have_decl__snprintf=yes
19086else
19087  ac_cv_have_decl__snprintf=no
19088fi
19089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19090fi
19091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19092$as_echo "$ac_cv_have_decl__snprintf" >&6; }
19093  if test $ac_cv_have_decl__snprintf = yes; then
19094    gt_value=1
19095  else
19096    gt_value=0
19097  fi
19098
19099cat >>confdefs.h <<_ACEOF
19100#define HAVE_DECL__SNPRINTF $gt_value
19101_ACEOF
19102
19103
19104
19105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19106$as_echo_n "checking whether _snwprintf is declared... " >&6; }
19107if ${ac_cv_have_decl__snwprintf+:} false; then :
19108  $as_echo_n "(cached) " >&6
19109else
19110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111/* end confdefs.h.  */
19112#include <stdio.h>
19113int
19114main ()
19115{
19116
19117#ifndef _snwprintf
19118  char *p = (char *) _snwprintf;
19119#endif
19120
19121  ;
19122  return 0;
19123}
19124_ACEOF
19125if ac_fn_c_try_compile "$LINENO"; then :
19126  ac_cv_have_decl__snwprintf=yes
19127else
19128  ac_cv_have_decl__snwprintf=no
19129fi
19130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19131fi
19132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19133$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19134  if test $ac_cv_have_decl__snwprintf = yes; then
19135    gt_value=1
19136  else
19137    gt_value=0
19138  fi
19139
19140cat >>confdefs.h <<_ACEOF
19141#define HAVE_DECL__SNWPRINTF $gt_value
19142_ACEOF
19143
19144
19145
19146
19147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19148$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19149if ${ac_cv_have_decl_getc_unlocked+:} false; then :
19150  $as_echo_n "(cached) " >&6
19151else
19152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19153/* end confdefs.h.  */
19154#include <stdio.h>
19155int
19156main ()
19157{
19158
19159#ifndef getc_unlocked
19160  char *p = (char *) getc_unlocked;
19161#endif
19162
19163  ;
19164  return 0;
19165}
19166_ACEOF
19167if ac_fn_c_try_compile "$LINENO"; then :
19168  ac_cv_have_decl_getc_unlocked=yes
19169else
19170  ac_cv_have_decl_getc_unlocked=no
19171fi
19172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19173fi
19174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19175$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19176  if test $ac_cv_have_decl_getc_unlocked = yes; then
19177    gt_value=1
19178  else
19179    gt_value=0
19180  fi
19181
19182cat >>confdefs.h <<_ACEOF
19183#define HAVE_DECL_GETC_UNLOCKED $gt_value
19184_ACEOF
19185
19186
19187
19188  case $gt_cv_func_printf_posix in
19189    *yes) HAVE_POSIX_PRINTF=1 ;;
19190    *) HAVE_POSIX_PRINTF=0 ;;
19191  esac
19192
19193  if test "$ac_cv_func_asprintf" = yes; then
19194    HAVE_ASPRINTF=1
19195  else
19196    HAVE_ASPRINTF=0
19197  fi
19198
19199  if test "$ac_cv_func_snprintf" = yes; then
19200    HAVE_SNPRINTF=1
19201  else
19202    HAVE_SNPRINTF=0
19203  fi
19204
19205  if test "$ac_cv_func_wprintf" = yes; then
19206    HAVE_WPRINTF=1
19207  else
19208    HAVE_WPRINTF=0
19209  fi
19210
19211
19212
19213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19214$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19215if ${am_cv_langinfo_codeset+:} false; then :
19216  $as_echo_n "(cached) " >&6
19217else
19218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19219/* end confdefs.h.  */
19220#include <langinfo.h>
19221int
19222main ()
19223{
19224char* cs = nl_langinfo(CODESET); return !cs;
19225  ;
19226  return 0;
19227}
19228_ACEOF
19229if ac_fn_c_try_link "$LINENO"; then :
19230  am_cv_langinfo_codeset=yes
19231else
19232  am_cv_langinfo_codeset=no
19233fi
19234rm -f core conftest.err conftest.$ac_objext \
19235    conftest$ac_exeext conftest.$ac_ext
19236
19237fi
19238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19239$as_echo "$am_cv_langinfo_codeset" >&6; }
19240  if test $am_cv_langinfo_codeset = yes; then
19241
19242$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19243
19244  fi
19245
19246
19247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19248$as_echo_n "checking for LC_MESSAGES... " >&6; }
19249if ${gt_cv_val_LC_MESSAGES+:} false; then :
19250  $as_echo_n "(cached) " >&6
19251else
19252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19253/* end confdefs.h.  */
19254#include <locale.h>
19255int
19256main ()
19257{
19258return LC_MESSAGES
19259  ;
19260  return 0;
19261}
19262_ACEOF
19263if ac_fn_c_try_link "$LINENO"; then :
19264  gt_cv_val_LC_MESSAGES=yes
19265else
19266  gt_cv_val_LC_MESSAGES=no
19267fi
19268rm -f core conftest.err conftest.$ac_objext \
19269    conftest$ac_exeext conftest.$ac_ext
19270fi
19271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19272$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19273  if test $gt_cv_val_LC_MESSAGES = yes; then
19274
19275$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19276
19277  fi
19278
19279
19280                if test "$enable_shared" = yes; then
19281    case "$host_os" in
19282      mingw* | cygwin*) is_woe32dll=yes ;;
19283      *) is_woe32dll=no ;;
19284    esac
19285  else
19286    is_woe32dll=no
19287  fi
19288  WOE32DLL=$is_woe32dll
19289
19290
19291      case "$host_os" in
19292    mingw* | cygwin*) is_woe32=yes ;;
19293    *) is_woe32=no ;;
19294  esac
19295  WOE32=$is_woe32
19296
19297  if test $WOE32 = yes; then
19298        if test -n "$ac_tool_prefix"; then
19299  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19300set dummy ${ac_tool_prefix}windres; ac_word=$2
19301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19302$as_echo_n "checking for $ac_word... " >&6; }
19303if ${ac_cv_prog_WINDRES+:} false; then :
19304  $as_echo_n "(cached) " >&6
19305else
19306  if test -n "$WINDRES"; then
19307  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19308else
19309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19310for as_dir in $PATH
19311do
19312  IFS=$as_save_IFS
19313  test -z "$as_dir" && as_dir=.
19314    for ac_exec_ext in '' $ac_executable_extensions; do
19315  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19316    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19318    break 2
19319  fi
19320done
19321  done
19322IFS=$as_save_IFS
19323
19324fi
19325fi
19326WINDRES=$ac_cv_prog_WINDRES
19327if test -n "$WINDRES"; then
19328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19329$as_echo "$WINDRES" >&6; }
19330else
19331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19332$as_echo "no" >&6; }
19333fi
19334
19335
19336fi
19337if test -z "$ac_cv_prog_WINDRES"; then
19338  ac_ct_WINDRES=$WINDRES
19339  # Extract the first word of "windres", so it can be a program name with args.
19340set dummy windres; ac_word=$2
19341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19342$as_echo_n "checking for $ac_word... " >&6; }
19343if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19344  $as_echo_n "(cached) " >&6
19345else
19346  if test -n "$ac_ct_WINDRES"; then
19347  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19348else
19349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19350for as_dir in $PATH
19351do
19352  IFS=$as_save_IFS
19353  test -z "$as_dir" && as_dir=.
19354    for ac_exec_ext in '' $ac_executable_extensions; do
19355  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19356    ac_cv_prog_ac_ct_WINDRES="windres"
19357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19358    break 2
19359  fi
19360done
19361  done
19362IFS=$as_save_IFS
19363
19364fi
19365fi
19366ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19367if test -n "$ac_ct_WINDRES"; then
19368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19369$as_echo "$ac_ct_WINDRES" >&6; }
19370else
19371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19372$as_echo "no" >&6; }
19373fi
19374
19375  if test "x$ac_ct_WINDRES" = x; then
19376    WINDRES=""
19377  else
19378    case $cross_compiling:$ac_tool_warned in
19379yes:)
19380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19382ac_tool_warned=yes ;;
19383esac
19384    WINDRES=$ac_ct_WINDRES
19385  fi
19386else
19387  WINDRES="$ac_cv_prog_WINDRES"
19388fi
19389
19390  fi
19391
19392              case "$host_os" in
19393    hpux*) LTLIBC="" ;;
19394    *)     LTLIBC="-lc" ;;
19395  esac
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19423$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19424if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19425  $as_echo_n "(cached) " >&6
19426else
19427  gt_save_LIBS="$LIBS"
19428     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19429     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19430/* end confdefs.h.  */
19431#include <CoreFoundation/CFPreferences.h>
19432int
19433main ()
19434{
19435CFPreferencesCopyAppValue(NULL, NULL)
19436  ;
19437  return 0;
19438}
19439_ACEOF
19440if ac_fn_c_try_link "$LINENO"; then :
19441  gt_cv_func_CFPreferencesCopyAppValue=yes
19442else
19443  gt_cv_func_CFPreferencesCopyAppValue=no
19444fi
19445rm -f core conftest.err conftest.$ac_objext \
19446    conftest$ac_exeext conftest.$ac_ext
19447     LIBS="$gt_save_LIBS"
19448fi
19449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19450$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19451  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19452
19453$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19454
19455  fi
19456    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19457$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19458if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19459  $as_echo_n "(cached) " >&6
19460else
19461  gt_save_LIBS="$LIBS"
19462     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19463     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19464/* end confdefs.h.  */
19465#include <CoreFoundation/CFLocale.h>
19466int
19467main ()
19468{
19469CFLocaleCopyCurrent();
19470  ;
19471  return 0;
19472}
19473_ACEOF
19474if ac_fn_c_try_link "$LINENO"; then :
19475  gt_cv_func_CFLocaleCopyCurrent=yes
19476else
19477  gt_cv_func_CFLocaleCopyCurrent=no
19478fi
19479rm -f core conftest.err conftest.$ac_objext \
19480    conftest$ac_exeext conftest.$ac_ext
19481     LIBS="$gt_save_LIBS"
19482fi
19483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19484$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19485  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19486
19487$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19488
19489  fi
19490  INTL_MACOSX_LIBS=
19491  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19492    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19493  fi
19494
19495
19496
19497
19498
19499
19500    BUILD_INCLUDED_LIBINTL=no
19501    USE_INCLUDED_LIBINTL=no
19502
19503  LIBINTL=
19504  LTLIBINTL=
19505  POSUB=
19506
19507    case " $gt_needs " in
19508    *" need-formatstring-macros "*) gt_api_version=3 ;;
19509    *" need-ngettext "*) gt_api_version=2 ;;
19510    *) gt_api_version=1 ;;
19511  esac
19512  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
19513  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
19514
19515    if test "$USE_NLS" = "yes"; then
19516    gt_use_preinstalled_gnugettext=no
19517
19518      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19519$as_echo_n "checking whether included gettext is requested... " >&6; }
19520
19521# Check whether --with-included-gettext was given.
19522if test "${with_included_gettext+set}" = set; then :
19523  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19524else
19525  nls_cv_force_use_gnu_gettext=no
19526fi
19527
19528      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19529$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19530
19531      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19532      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19533
19534
19535        if test $gt_api_version -ge 3; then
19536          gt_revision_test_code='
19537#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19538#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
19539#endif
19540typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
19541'
19542        else
19543          gt_revision_test_code=
19544        fi
19545        if test $gt_api_version -ge 2; then
19546          gt_expression_test_code=' + * ngettext ("", "", 0)'
19547        else
19548          gt_expression_test_code=
19549        fi
19550
19551        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19552$as_echo_n "checking for GNU gettext in libc... " >&6; }
19553if eval \${$gt_func_gnugettext_libc+:} false; then :
19554  $as_echo_n "(cached) " >&6
19555else
19556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557/* end confdefs.h.  */
19558#include <libintl.h>
19559$gt_revision_test_code
19560extern int _nl_msg_cat_cntr;
19561extern int *_nl_domain_bindings;
19562int
19563main ()
19564{
19565bindtextdomain ("", "");
19566return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
19567  ;
19568  return 0;
19569}
19570_ACEOF
19571if ac_fn_c_try_link "$LINENO"; then :
19572  eval "$gt_func_gnugettext_libc=yes"
19573else
19574  eval "$gt_func_gnugettext_libc=no"
19575fi
19576rm -f core conftest.err conftest.$ac_objext \
19577    conftest$ac_exeext conftest.$ac_ext
19578fi
19579eval ac_res=\$$gt_func_gnugettext_libc
19580	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19581$as_echo "$ac_res" >&6; }
19582
19583        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
19584
19585
19586
19587
19588
19589    use_additional=yes
19590
19591  acl_save_prefix="$prefix"
19592  prefix="$acl_final_prefix"
19593  acl_save_exec_prefix="$exec_prefix"
19594  exec_prefix="$acl_final_exec_prefix"
19595
19596    eval additional_includedir=\"$includedir\"
19597    eval additional_libdir=\"$libdir\"
19598
19599  exec_prefix="$acl_save_exec_prefix"
19600  prefix="$acl_save_prefix"
19601
19602
19603# Check whether --with-libintl-prefix was given.
19604if test "${with_libintl_prefix+set}" = set; then :
19605  withval=$with_libintl_prefix;
19606    if test "X$withval" = "Xno"; then
19607      use_additional=no
19608    else
19609      if test "X$withval" = "X"; then
19610
19611  acl_save_prefix="$prefix"
19612  prefix="$acl_final_prefix"
19613  acl_save_exec_prefix="$exec_prefix"
19614  exec_prefix="$acl_final_exec_prefix"
19615
19616          eval additional_includedir=\"$includedir\"
19617          eval additional_libdir=\"$libdir\"
19618
19619  exec_prefix="$acl_save_exec_prefix"
19620  prefix="$acl_save_prefix"
19621
19622      else
19623        additional_includedir="$withval/include"
19624        additional_libdir="$withval/$acl_libdirstem"
19625      fi
19626    fi
19627
19628fi
19629
19630      LIBINTL=
19631  LTLIBINTL=
19632  INCINTL=
19633  LIBINTL_PREFIX=
19634  rpathdirs=
19635  ltrpathdirs=
19636  names_already_handled=
19637  names_next_round='intl '
19638  while test -n "$names_next_round"; do
19639    names_this_round="$names_next_round"
19640    names_next_round=
19641    for name in $names_this_round; do
19642      already_handled=
19643      for n in $names_already_handled; do
19644        if test "$n" = "$name"; then
19645          already_handled=yes
19646          break
19647        fi
19648      done
19649      if test -z "$already_handled"; then
19650        names_already_handled="$names_already_handled $name"
19651                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19652        eval value=\"\$HAVE_LIB$uppername\"
19653        if test -n "$value"; then
19654          if test "$value" = yes; then
19655            eval value=\"\$LIB$uppername\"
19656            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
19657            eval value=\"\$LTLIB$uppername\"
19658            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
19659          else
19660                                    :
19661          fi
19662        else
19663                              found_dir=
19664          found_la=
19665          found_so=
19666          found_a=
19667          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
19668          if test -n "$acl_shlibext"; then
19669            shrext=".$acl_shlibext"             # typically: shrext=.so
19670          else
19671            shrext=
19672          fi
19673          if test $use_additional = yes; then
19674            dir="$additional_libdir"
19675                                    if test -n "$acl_shlibext"; then
19676              if test -f "$dir/$libname$shrext"; then
19677                found_dir="$dir"
19678                found_so="$dir/$libname$shrext"
19679              else
19680                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19681                  ver=`(cd "$dir" && \
19682                        for f in "$libname$shrext".*; do echo "$f"; done \
19683                        | sed -e "s,^$libname$shrext\\\\.,," \
19684                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19685                        | sed 1q ) 2>/dev/null`
19686                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19687                    found_dir="$dir"
19688                    found_so="$dir/$libname$shrext.$ver"
19689                  fi
19690                else
19691                  eval library_names=\"$acl_library_names_spec\"
19692                  for f in $library_names; do
19693                    if test -f "$dir/$f"; then
19694                      found_dir="$dir"
19695                      found_so="$dir/$f"
19696                      break
19697                    fi
19698                  done
19699                fi
19700              fi
19701            fi
19702                        if test "X$found_dir" = "X"; then
19703              if test -f "$dir/$libname.$acl_libext"; then
19704                found_dir="$dir"
19705                found_a="$dir/$libname.$acl_libext"
19706              fi
19707            fi
19708            if test "X$found_dir" != "X"; then
19709              if test -f "$dir/$libname.la"; then
19710                found_la="$dir/$libname.la"
19711              fi
19712            fi
19713          fi
19714          if test "X$found_dir" = "X"; then
19715            for x in $LDFLAGS $LTLIBINTL; do
19716
19717  acl_save_prefix="$prefix"
19718  prefix="$acl_final_prefix"
19719  acl_save_exec_prefix="$exec_prefix"
19720  exec_prefix="$acl_final_exec_prefix"
19721  eval x=\"$x\"
19722  exec_prefix="$acl_save_exec_prefix"
19723  prefix="$acl_save_prefix"
19724
19725              case "$x" in
19726                -L*)
19727                  dir=`echo "X$x" | sed -e 's/^X-L//'`
19728                                    if test -n "$acl_shlibext"; then
19729                    if test -f "$dir/$libname$shrext"; then
19730                      found_dir="$dir"
19731                      found_so="$dir/$libname$shrext"
19732                    else
19733                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19734                        ver=`(cd "$dir" && \
19735                              for f in "$libname$shrext".*; do echo "$f"; done \
19736                              | sed -e "s,^$libname$shrext\\\\.,," \
19737                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19738                              | sed 1q ) 2>/dev/null`
19739                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19740                          found_dir="$dir"
19741                          found_so="$dir/$libname$shrext.$ver"
19742                        fi
19743                      else
19744                        eval library_names=\"$acl_library_names_spec\"
19745                        for f in $library_names; do
19746                          if test -f "$dir/$f"; then
19747                            found_dir="$dir"
19748                            found_so="$dir/$f"
19749                            break
19750                          fi
19751                        done
19752                      fi
19753                    fi
19754                  fi
19755                                    if test "X$found_dir" = "X"; then
19756                    if test -f "$dir/$libname.$acl_libext"; then
19757                      found_dir="$dir"
19758                      found_a="$dir/$libname.$acl_libext"
19759                    fi
19760                  fi
19761                  if test "X$found_dir" != "X"; then
19762                    if test -f "$dir/$libname.la"; then
19763                      found_la="$dir/$libname.la"
19764                    fi
19765                  fi
19766                  ;;
19767              esac
19768              if test "X$found_dir" != "X"; then
19769                break
19770              fi
19771            done
19772          fi
19773          if test "X$found_dir" != "X"; then
19774                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
19775            if test "X$found_so" != "X"; then
19776                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
19777                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19778              else
19779                                                                                haveit=
19780                for x in $ltrpathdirs; do
19781                  if test "X$x" = "X$found_dir"; then
19782                    haveit=yes
19783                    break
19784                  fi
19785                done
19786                if test -z "$haveit"; then
19787                  ltrpathdirs="$ltrpathdirs $found_dir"
19788                fi
19789                                if test "$acl_hardcode_direct" = yes; then
19790                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19791                else
19792                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19793                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19794                                                            haveit=
19795                    for x in $rpathdirs; do
19796                      if test "X$x" = "X$found_dir"; then
19797                        haveit=yes
19798                        break
19799                      fi
19800                    done
19801                    if test -z "$haveit"; then
19802                      rpathdirs="$rpathdirs $found_dir"
19803                    fi
19804                  else
19805                                                                                haveit=
19806                    for x in $LDFLAGS $LIBINTL; do
19807
19808  acl_save_prefix="$prefix"
19809  prefix="$acl_final_prefix"
19810  acl_save_exec_prefix="$exec_prefix"
19811  exec_prefix="$acl_final_exec_prefix"
19812  eval x=\"$x\"
19813  exec_prefix="$acl_save_exec_prefix"
19814  prefix="$acl_save_prefix"
19815
19816                      if test "X$x" = "X-L$found_dir"; then
19817                        haveit=yes
19818                        break
19819                      fi
19820                    done
19821                    if test -z "$haveit"; then
19822                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
19823                    fi
19824                    if test "$acl_hardcode_minus_L" != no; then
19825                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19826                    else
19827                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19828                    fi
19829                  fi
19830                fi
19831              fi
19832            else
19833              if test "X$found_a" != "X"; then
19834                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
19835              else
19836                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
19837              fi
19838            fi
19839                        additional_includedir=
19840            case "$found_dir" in
19841              */$acl_libdirstem | */$acl_libdirstem/)
19842                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19843                LIBINTL_PREFIX="$basedir"
19844                additional_includedir="$basedir/include"
19845                ;;
19846            esac
19847            if test "X$additional_includedir" != "X"; then
19848                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
19849                haveit=
19850                if test "X$additional_includedir" = "X/usr/local/include"; then
19851                  if test -n "$GCC"; then
19852                    case $host_os in
19853                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19854                    esac
19855                  fi
19856                fi
19857                if test -z "$haveit"; then
19858                  for x in $CPPFLAGS $INCINTL; do
19859
19860  acl_save_prefix="$prefix"
19861  prefix="$acl_final_prefix"
19862  acl_save_exec_prefix="$exec_prefix"
19863  exec_prefix="$acl_final_exec_prefix"
19864  eval x=\"$x\"
19865  exec_prefix="$acl_save_exec_prefix"
19866  prefix="$acl_save_prefix"
19867
19868                    if test "X$x" = "X-I$additional_includedir"; then
19869                      haveit=yes
19870                      break
19871                    fi
19872                  done
19873                  if test -z "$haveit"; then
19874                    if test -d "$additional_includedir"; then
19875                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
19876                    fi
19877                  fi
19878                fi
19879              fi
19880            fi
19881                        if test -n "$found_la"; then
19882                                                        save_libdir="$libdir"
19883              case "$found_la" in
19884                */* | *\\*) . "$found_la" ;;
19885                *) . "./$found_la" ;;
19886              esac
19887              libdir="$save_libdir"
19888                            for dep in $dependency_libs; do
19889                case "$dep" in
19890                  -L*)
19891                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19892                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
19893                      haveit=
19894                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
19895                        if test -n "$GCC"; then
19896                          case $host_os in
19897                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19898                          esac
19899                        fi
19900                      fi
19901                      if test -z "$haveit"; then
19902                        haveit=
19903                        for x in $LDFLAGS $LIBINTL; do
19904
19905  acl_save_prefix="$prefix"
19906  prefix="$acl_final_prefix"
19907  acl_save_exec_prefix="$exec_prefix"
19908  exec_prefix="$acl_final_exec_prefix"
19909  eval x=\"$x\"
19910  exec_prefix="$acl_save_exec_prefix"
19911  prefix="$acl_save_prefix"
19912
19913                          if test "X$x" = "X-L$additional_libdir"; then
19914                            haveit=yes
19915                            break
19916                          fi
19917                        done
19918                        if test -z "$haveit"; then
19919                          if test -d "$additional_libdir"; then
19920                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
19921                          fi
19922                        fi
19923                        haveit=
19924                        for x in $LDFLAGS $LTLIBINTL; do
19925
19926  acl_save_prefix="$prefix"
19927  prefix="$acl_final_prefix"
19928  acl_save_exec_prefix="$exec_prefix"
19929  exec_prefix="$acl_final_exec_prefix"
19930  eval x=\"$x\"
19931  exec_prefix="$acl_save_exec_prefix"
19932  prefix="$acl_save_prefix"
19933
19934                          if test "X$x" = "X-L$additional_libdir"; then
19935                            haveit=yes
19936                            break
19937                          fi
19938                        done
19939                        if test -z "$haveit"; then
19940                          if test -d "$additional_libdir"; then
19941                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
19942                          fi
19943                        fi
19944                      fi
19945                    fi
19946                    ;;
19947                  -R*)
19948                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
19949                    if test "$enable_rpath" != no; then
19950                                                                  haveit=
19951                      for x in $rpathdirs; do
19952                        if test "X$x" = "X$dir"; then
19953                          haveit=yes
19954                          break
19955                        fi
19956                      done
19957                      if test -z "$haveit"; then
19958                        rpathdirs="$rpathdirs $dir"
19959                      fi
19960                                                                  haveit=
19961                      for x in $ltrpathdirs; do
19962                        if test "X$x" = "X$dir"; then
19963                          haveit=yes
19964                          break
19965                        fi
19966                      done
19967                      if test -z "$haveit"; then
19968                        ltrpathdirs="$ltrpathdirs $dir"
19969                      fi
19970                    fi
19971                    ;;
19972                  -l*)
19973                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19974                    ;;
19975                  *.la)
19976                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19977                    ;;
19978                  *)
19979                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
19980                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
19981                    ;;
19982                esac
19983              done
19984            fi
19985          else
19986                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19987            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
19988          fi
19989        fi
19990      fi
19991    done
19992  done
19993  if test "X$rpathdirs" != "X"; then
19994    if test -n "$acl_hardcode_libdir_separator"; then
19995                        alldirs=
19996      for found_dir in $rpathdirs; do
19997        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19998      done
19999            acl_save_libdir="$libdir"
20000      libdir="$alldirs"
20001      eval flag=\"$acl_hardcode_libdir_flag_spec\"
20002      libdir="$acl_save_libdir"
20003      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20004    else
20005            for found_dir in $rpathdirs; do
20006        acl_save_libdir="$libdir"
20007        libdir="$found_dir"
20008        eval flag=\"$acl_hardcode_libdir_flag_spec\"
20009        libdir="$acl_save_libdir"
20010        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20011      done
20012    fi
20013  fi
20014  if test "X$ltrpathdirs" != "X"; then
20015            for found_dir in $ltrpathdirs; do
20016      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20017    done
20018  fi
20019
20020          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20021$as_echo_n "checking for GNU gettext in libintl... " >&6; }
20022if eval \${$gt_func_gnugettext_libintl+:} false; then :
20023  $as_echo_n "(cached) " >&6
20024else
20025  gt_save_CPPFLAGS="$CPPFLAGS"
20026            CPPFLAGS="$CPPFLAGS $INCINTL"
20027            gt_save_LIBS="$LIBS"
20028            LIBS="$LIBS $LIBINTL"
20029                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20030/* end confdefs.h.  */
20031#include <libintl.h>
20032$gt_revision_test_code
20033extern int _nl_msg_cat_cntr;
20034extern
20035#ifdef __cplusplus
20036"C"
20037#endif
20038const char *_nl_expand_alias (const char *);
20039int
20040main ()
20041{
20042bindtextdomain ("", "");
20043return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20044  ;
20045  return 0;
20046}
20047_ACEOF
20048if ac_fn_c_try_link "$LINENO"; then :
20049  eval "$gt_func_gnugettext_libintl=yes"
20050else
20051  eval "$gt_func_gnugettext_libintl=no"
20052fi
20053rm -f core conftest.err conftest.$ac_objext \
20054    conftest$ac_exeext conftest.$ac_ext
20055                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
20056              LIBS="$LIBS $LIBICONV"
20057              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20058/* end confdefs.h.  */
20059#include <libintl.h>
20060$gt_revision_test_code
20061extern int _nl_msg_cat_cntr;
20062extern
20063#ifdef __cplusplus
20064"C"
20065#endif
20066const char *_nl_expand_alias (const char *);
20067int
20068main ()
20069{
20070bindtextdomain ("", "");
20071return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20072  ;
20073  return 0;
20074}
20075_ACEOF
20076if ac_fn_c_try_link "$LINENO"; then :
20077  LIBINTL="$LIBINTL $LIBICONV"
20078                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20079                eval "$gt_func_gnugettext_libintl=yes"
20080
20081fi
20082rm -f core conftest.err conftest.$ac_objext \
20083    conftest$ac_exeext conftest.$ac_ext
20084            fi
20085            CPPFLAGS="$gt_save_CPPFLAGS"
20086            LIBS="$gt_save_LIBS"
20087fi
20088eval ac_res=\$$gt_func_gnugettext_libintl
20089	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20090$as_echo "$ac_res" >&6; }
20091        fi
20092
20093                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
20094           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
20095                && test "$PACKAGE" != gettext-runtime \
20096                && test "$PACKAGE" != gettext-tools; }; then
20097          gt_use_preinstalled_gnugettext=yes
20098        else
20099                    LIBINTL=
20100          LTLIBINTL=
20101          INCINTL=
20102        fi
20103
20104
20105        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20106                              nls_cv_use_gnu_gettext=yes
20107        fi
20108      fi
20109
20110      if test "$nls_cv_use_gnu_gettext" = "yes"; then
20111                BUILD_INCLUDED_LIBINTL=yes
20112        USE_INCLUDED_LIBINTL=yes
20113        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
20114        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
20115        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20116      fi
20117
20118      CATOBJEXT=
20119      if test "$gt_use_preinstalled_gnugettext" = "yes" \
20120         || test "$nls_cv_use_gnu_gettext" = "yes"; then
20121                CATOBJEXT=.gmo
20122      fi
20123
20124
20125    if test -n "$INTL_MACOSX_LIBS"; then
20126      if test "$gt_use_preinstalled_gnugettext" = "yes" \
20127         || test "$nls_cv_use_gnu_gettext" = "yes"; then
20128                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20129        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20130      fi
20131    fi
20132
20133    if test "$gt_use_preinstalled_gnugettext" = "yes" \
20134       || test "$nls_cv_use_gnu_gettext" = "yes"; then
20135
20136$as_echo "#define ENABLE_NLS 1" >>confdefs.h
20137
20138    else
20139      USE_NLS=no
20140    fi
20141  fi
20142
20143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20144$as_echo_n "checking whether to use NLS... " >&6; }
20145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20146$as_echo "$USE_NLS" >&6; }
20147  if test "$USE_NLS" = "yes"; then
20148    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20149$as_echo_n "checking where the gettext function comes from... " >&6; }
20150    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20151      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20152        gt_source="external libintl"
20153      else
20154        gt_source="libc"
20155      fi
20156    else
20157      gt_source="included intl directory"
20158    fi
20159    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20160$as_echo "$gt_source" >&6; }
20161  fi
20162
20163  if test "$USE_NLS" = "yes"; then
20164
20165    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20166      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20167        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20168$as_echo_n "checking how to link with libintl... " >&6; }
20169        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20170$as_echo "$LIBINTL" >&6; }
20171
20172  for element in $INCINTL; do
20173    haveit=
20174    for x in $CPPFLAGS; do
20175
20176  acl_save_prefix="$prefix"
20177  prefix="$acl_final_prefix"
20178  acl_save_exec_prefix="$exec_prefix"
20179  exec_prefix="$acl_final_exec_prefix"
20180  eval x=\"$x\"
20181  exec_prefix="$acl_save_exec_prefix"
20182  prefix="$acl_save_prefix"
20183
20184      if test "X$x" = "X$element"; then
20185        haveit=yes
20186        break
20187      fi
20188    done
20189    if test -z "$haveit"; then
20190      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20191    fi
20192  done
20193
20194      fi
20195
20196
20197$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20198
20199
20200$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20201
20202    fi
20203
20204        POSUB=po
20205  fi
20206
20207
20208            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20209      BUILD_INCLUDED_LIBINTL=yes
20210    fi
20211
20212
20213
20214
20215
20216        nls_cv_header_intl=
20217    nls_cv_header_libgt=
20218
20219        DATADIRNAME=share
20220
20221
20222        INSTOBJEXT=.mo
20223
20224
20225        GENCAT=gencat
20226
20227
20228        INTLOBJS=
20229    if test "$USE_INCLUDED_LIBINTL" = yes; then
20230      INTLOBJS="\$(GETTOBJS)"
20231    fi
20232
20233
20234        INTL_LIBTOOL_SUFFIX_PREFIX=
20235
20236
20237
20238    INTLLIBS="$LIBINTL"
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248# Check whether --with-warnings was given.
20249if test "${with_warnings+set}" = set; then :
20250  withval=$with_warnings;
20251
20252$as_echo "#define HUNSPELL_WARNING_ON 1" >>confdefs.h
20253
20254
20255fi
20256
20257
20258
20259# Check whether --with-experimental was given.
20260if test "${with_experimental+set}" = set; then :
20261  withval=$with_experimental;
20262
20263$as_echo "#define HUNSPELL_EXPERIMENTAL 1" >>confdefs.h
20264
20265
20266fi
20267
20268
20269CURSESLIB=""
20270
20271# Check whether --with-ui was given.
20272if test "${with_ui+set}" = set; then :
20273  withval=$with_ui;
20274else
20275  with_ui=no
20276
20277fi
20278
20279if test "x$with_ui" != xno; then :
20280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm in -lncursesw" >&5
20281$as_echo_n "checking for tparm in -lncursesw... " >&6; }
20282if ${ac_cv_lib_ncursesw_tparm+:} false; then :
20283  $as_echo_n "(cached) " >&6
20284else
20285  ac_check_lib_save_LIBS=$LIBS
20286LIBS="-lncursesw  $LIBS"
20287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20288/* end confdefs.h.  */
20289
20290/* Override any GCC internal prototype to avoid an error.
20291   Use char because int might match the return type of a GCC
20292   builtin and then its argument prototype would still apply.  */
20293#ifdef __cplusplus
20294extern "C"
20295#endif
20296char tparm ();
20297int
20298main ()
20299{
20300return tparm ();
20301  ;
20302  return 0;
20303}
20304_ACEOF
20305if ac_fn_c_try_link "$LINENO"; then :
20306  ac_cv_lib_ncursesw_tparm=yes
20307else
20308  ac_cv_lib_ncursesw_tparm=no
20309fi
20310rm -f core conftest.err conftest.$ac_objext \
20311    conftest$ac_exeext conftest.$ac_ext
20312LIBS=$ac_check_lib_save_LIBS
20313fi
20314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tparm" >&5
20315$as_echo "$ac_cv_lib_ncursesw_tparm" >&6; }
20316if test "x$ac_cv_lib_ncursesw_tparm" = xyes; then :
20317  CURSESLIB=-lncursesw
20318else
20319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm in -lcurses" >&5
20320$as_echo_n "checking for tparm in -lcurses... " >&6; }
20321if ${ac_cv_lib_curses_tparm+:} false; then :
20322  $as_echo_n "(cached) " >&6
20323else
20324  ac_check_lib_save_LIBS=$LIBS
20325LIBS="-lcurses  $LIBS"
20326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20327/* end confdefs.h.  */
20328
20329/* Override any GCC internal prototype to avoid an error.
20330   Use char because int might match the return type of a GCC
20331   builtin and then its argument prototype would still apply.  */
20332#ifdef __cplusplus
20333extern "C"
20334#endif
20335char tparm ();
20336int
20337main ()
20338{
20339return tparm ();
20340  ;
20341  return 0;
20342}
20343_ACEOF
20344if ac_fn_c_try_link "$LINENO"; then :
20345  ac_cv_lib_curses_tparm=yes
20346else
20347  ac_cv_lib_curses_tparm=no
20348fi
20349rm -f core conftest.err conftest.$ac_objext \
20350    conftest$ac_exeext conftest.$ac_ext
20351LIBS=$ac_check_lib_save_LIBS
20352fi
20353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tparm" >&5
20354$as_echo "$ac_cv_lib_curses_tparm" >&6; }
20355if test "x$ac_cv_lib_curses_tparm" = xyes; then :
20356  CURSESLIB=-lcurses
20357else
20358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm in -lncurses" >&5
20359$as_echo_n "checking for tparm in -lncurses... " >&6; }
20360if ${ac_cv_lib_ncurses_tparm+:} false; then :
20361  $as_echo_n "(cached) " >&6
20362else
20363  ac_check_lib_save_LIBS=$LIBS
20364LIBS="-lncurses  $LIBS"
20365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20366/* end confdefs.h.  */
20367
20368/* Override any GCC internal prototype to avoid an error.
20369   Use char because int might match the return type of a GCC
20370   builtin and then its argument prototype would still apply.  */
20371#ifdef __cplusplus
20372extern "C"
20373#endif
20374char tparm ();
20375int
20376main ()
20377{
20378return tparm ();
20379  ;
20380  return 0;
20381}
20382_ACEOF
20383if ac_fn_c_try_link "$LINENO"; then :
20384  ac_cv_lib_ncurses_tparm=yes
20385else
20386  ac_cv_lib_ncurses_tparm=no
20387fi
20388rm -f core conftest.err conftest.$ac_objext \
20389    conftest$ac_exeext conftest.$ac_ext
20390LIBS=$ac_check_lib_save_LIBS
20391fi
20392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tparm" >&5
20393$as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20394if test "x$ac_cv_lib_ncurses_tparm" = xyes; then :
20395  CURSESLIB=-lncurses
20396fi
20397
20398fi
20399
20400fi
20401
20402   if test "$CURSESLIB" != "" ; then
20403     echo Compiling with curses user interface.
20404
20405$as_echo "#define HAVE_CURSES_H 1" >>confdefs.h
20406
20407     if test "$CURSESLIB" != "-lncursesw" ; then
20408       echo "No Unicode support on interactive console. (Install Ncursesw library.)"
20409     else
20410
20411$as_echo "#define HAVE_NCURSESW_H 1" >>confdefs.h
20412
20413     fi
20414
20415$as_echo "#define HUNSPELL_WARNING_ON 1" >>confdefs.h
20416
20417   fi
20418
20419fi
20420
20421
20422
20423# Check whether --with-readline was given.
20424if test "${with_readline+set}" = set; then :
20425  withval=$with_readline;
20426else
20427  with_readline=no
20428
20429fi
20430
20431rl=n
20432if test "x$with_readline" != xno; then :
20433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm in -lcurses" >&5
20434$as_echo_n "checking for tparm in -lcurses... " >&6; }
20435if ${ac_cv_lib_curses_tparm+:} false; then :
20436  $as_echo_n "(cached) " >&6
20437else
20438  ac_check_lib_save_LIBS=$LIBS
20439LIBS="-lcurses  $LIBS"
20440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20441/* end confdefs.h.  */
20442
20443/* Override any GCC internal prototype to avoid an error.
20444   Use char because int might match the return type of a GCC
20445   builtin and then its argument prototype would still apply.  */
20446#ifdef __cplusplus
20447extern "C"
20448#endif
20449char tparm ();
20450int
20451main ()
20452{
20453return tparm ();
20454  ;
20455  return 0;
20456}
20457_ACEOF
20458if ac_fn_c_try_link "$LINENO"; then :
20459  ac_cv_lib_curses_tparm=yes
20460else
20461  ac_cv_lib_curses_tparm=no
20462fi
20463rm -f core conftest.err conftest.$ac_objext \
20464    conftest$ac_exeext conftest.$ac_ext
20465LIBS=$ac_check_lib_save_LIBS
20466fi
20467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tparm" >&5
20468$as_echo "$ac_cv_lib_curses_tparm" >&6; }
20469if test "x$ac_cv_lib_curses_tparm" = xyes; then :
20470  TERMLIB=-lncurses
20471else
20472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
20473$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
20474if ${ac_cv_lib_termcap_tgetent+:} false; then :
20475  $as_echo_n "(cached) " >&6
20476else
20477  ac_check_lib_save_LIBS=$LIBS
20478LIBS="-ltermcap  $LIBS"
20479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20480/* end confdefs.h.  */
20481
20482/* Override any GCC internal prototype to avoid an error.
20483   Use char because int might match the return type of a GCC
20484   builtin and then its argument prototype would still apply.  */
20485#ifdef __cplusplus
20486extern "C"
20487#endif
20488char tgetent ();
20489int
20490main ()
20491{
20492return tgetent ();
20493  ;
20494  return 0;
20495}
20496_ACEOF
20497if ac_fn_c_try_link "$LINENO"; then :
20498  ac_cv_lib_termcap_tgetent=yes
20499else
20500  ac_cv_lib_termcap_tgetent=no
20501fi
20502rm -f core conftest.err conftest.$ac_objext \
20503    conftest$ac_exeext conftest.$ac_ext
20504LIBS=$ac_check_lib_save_LIBS
20505fi
20506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
20507$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
20508if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
20509  TERMLIB=-ltermcap
20510fi
20511
20512fi
20513
20514   LDSAVE=$LDFLAGS
20515   LDFLAGS="$LDFLAGS $TERMLIB"
20516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
20517$as_echo_n "checking for readline in -lreadline... " >&6; }
20518if ${ac_cv_lib_readline_readline+:} false; then :
20519  $as_echo_n "(cached) " >&6
20520else
20521  ac_check_lib_save_LIBS=$LIBS
20522LIBS="-lreadline  $LIBS"
20523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20524/* end confdefs.h.  */
20525
20526/* Override any GCC internal prototype to avoid an error.
20527   Use char because int might match the return type of a GCC
20528   builtin and then its argument prototype would still apply.  */
20529#ifdef __cplusplus
20530extern "C"
20531#endif
20532char readline ();
20533int
20534main ()
20535{
20536return readline ();
20537  ;
20538  return 0;
20539}
20540_ACEOF
20541if ac_fn_c_try_link "$LINENO"; then :
20542  ac_cv_lib_readline_readline=yes
20543else
20544  ac_cv_lib_readline_readline=no
20545fi
20546rm -f core conftest.err conftest.$ac_objext \
20547    conftest$ac_exeext conftest.$ac_ext
20548LIBS=$ac_check_lib_save_LIBS
20549fi
20550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
20551$as_echo "$ac_cv_lib_readline_readline" >&6; }
20552if test "x$ac_cv_lib_readline_readline" = xyes; then :
20553  ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
20554if test "x$ac_cv_header_readline_readline_h" = xyes; then :
20555  READLINELIB="-lreadline $TERMLIB";rl=y
20556fi
20557
20558
20559else
20560  READLINELIB=""
20561fi
20562
20563   if test "$rl" = "y" ; then
20564     echo Using the readline library.
20565
20566$as_echo "#define HAVE_READLINE 1" >>confdefs.h
20567
20568   fi
20569   LDFLAGS=$LDSAVE
20570
20571fi
20572
20573
20574ac_config_files="$ac_config_files Makefile hunspell.pc man/Makefile man/hu/Makefile intl/Makefile po/Makefile.in m4/Makefile src/Makefile src/hunspell/Makefile src/hunspell/hunvisapi.h src/parsers/Makefile src/tools/Makefile src/win_api/Makefile tests/Makefile tests/suggestiontest/Makefile"
20575
20576cat >confcache <<\_ACEOF
20577# This file is a shell script that caches the results of configure
20578# tests run on this system so they can be shared between configure
20579# scripts and configure runs, see configure's option --config-cache.
20580# It is not useful on other systems.  If it contains results you don't
20581# want to keep, you may remove or edit it.
20582#
20583# config.status only pays attention to the cache file if you give it
20584# the --recheck option to rerun configure.
20585#
20586# `ac_cv_env_foo' variables (set or unset) will be overridden when
20587# loading this file, other *unset* `ac_cv_foo' will be assigned the
20588# following values.
20589
20590_ACEOF
20591
20592# The following way of writing the cache mishandles newlines in values,
20593# but we know of no workaround that is simple, portable, and efficient.
20594# So, we kill variables containing newlines.
20595# Ultrix sh set writes to stderr and can't be redirected directly,
20596# and sets the high bit in the cache file unless we assign to the vars.
20597(
20598  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20599    eval ac_val=\$$ac_var
20600    case $ac_val in #(
20601    *${as_nl}*)
20602      case $ac_var in #(
20603      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20604$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20605      esac
20606      case $ac_var in #(
20607      _ | IFS | as_nl) ;; #(
20608      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20609      *) { eval $ac_var=; unset $ac_var;} ;;
20610      esac ;;
20611    esac
20612  done
20613
20614  (set) 2>&1 |
20615    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20616    *${as_nl}ac_space=\ *)
20617      # `set' does not quote correctly, so add quotes: double-quote
20618      # substitution turns \\\\ into \\, and sed turns \\ into \.
20619      sed -n \
20620	"s/'/'\\\\''/g;
20621	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20622      ;; #(
20623    *)
20624      # `set' quotes correctly as required by POSIX, so do not add quotes.
20625      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20626      ;;
20627    esac |
20628    sort
20629) |
20630  sed '
20631     /^ac_cv_env_/b end
20632     t clear
20633     :clear
20634     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20635     t end
20636     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20637     :end' >>confcache
20638if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20639  if test -w "$cache_file"; then
20640    if test "x$cache_file" != "x/dev/null"; then
20641      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20642$as_echo "$as_me: updating cache $cache_file" >&6;}
20643      if test ! -f "$cache_file" || test -h "$cache_file"; then
20644	cat confcache >"$cache_file"
20645      else
20646        case $cache_file in #(
20647        */* | ?:*)
20648	  mv -f confcache "$cache_file"$$ &&
20649	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20650        *)
20651	  mv -f confcache "$cache_file" ;;
20652	esac
20653      fi
20654    fi
20655  else
20656    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20657$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20658  fi
20659fi
20660rm -f confcache
20661
20662test "x$prefix" = xNONE && prefix=$ac_default_prefix
20663# Let make expand exec_prefix.
20664test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20665
20666DEFS=-DHAVE_CONFIG_H
20667
20668ac_libobjs=
20669ac_ltlibobjs=
20670U=
20671for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20672  # 1. Remove the extension, and $U if already installed.
20673  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20674  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20675  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20676  #    will be set to the directory where LIBOBJS objects are built.
20677  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20678  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20679done
20680LIBOBJS=$ac_libobjs
20681
20682LTLIBOBJS=$ac_ltlibobjs
20683
20684
20685 if test -n "$EXEEXT"; then
20686  am__EXEEXT_TRUE=
20687  am__EXEEXT_FALSE='#'
20688else
20689  am__EXEEXT_TRUE='#'
20690  am__EXEEXT_FALSE=
20691fi
20692
20693if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20694  as_fn_error $? "conditional \"AMDEP\" was never defined.
20695Usually this means the macro was only invoked conditionally." "$LINENO" 5
20696fi
20697if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20698  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20699Usually this means the macro was only invoked conditionally." "$LINENO" 5
20700fi
20701if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20702  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20703Usually this means the macro was only invoked conditionally." "$LINENO" 5
20704fi
20705if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20706  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20707Usually this means the macro was only invoked conditionally." "$LINENO" 5
20708fi
20709
20710: "${CONFIG_STATUS=./config.status}"
20711ac_write_fail=0
20712ac_clean_files_save=$ac_clean_files
20713ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20714{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20715$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20716as_write_fail=0
20717cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20718#! $SHELL
20719# Generated by $as_me.
20720# Run this file to recreate the current configuration.
20721# Compiler output produced by configure, useful for debugging
20722# configure, is in config.log if it exists.
20723
20724debug=false
20725ac_cs_recheck=false
20726ac_cs_silent=false
20727
20728SHELL=\${CONFIG_SHELL-$SHELL}
20729export SHELL
20730_ASEOF
20731cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20732## -------------------- ##
20733## M4sh Initialization. ##
20734## -------------------- ##
20735
20736# Be more Bourne compatible
20737DUALCASE=1; export DUALCASE # for MKS sh
20738if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20739  emulate sh
20740  NULLCMD=:
20741  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20742  # is contrary to our usage.  Disable this feature.
20743  alias -g '${1+"$@"}'='"$@"'
20744  setopt NO_GLOB_SUBST
20745else
20746  case `(set -o) 2>/dev/null` in #(
20747  *posix*) :
20748    set -o posix ;; #(
20749  *) :
20750     ;;
20751esac
20752fi
20753
20754
20755as_nl='
20756'
20757export as_nl
20758# Printing a long string crashes Solaris 7 /usr/bin/printf.
20759as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20760as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20761as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20762# Prefer a ksh shell builtin over an external printf program on Solaris,
20763# but without wasting forks for bash or zsh.
20764if test -z "$BASH_VERSION$ZSH_VERSION" \
20765    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20766  as_echo='print -r --'
20767  as_echo_n='print -rn --'
20768elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20769  as_echo='printf %s\n'
20770  as_echo_n='printf %s'
20771else
20772  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20773    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20774    as_echo_n='/usr/ucb/echo -n'
20775  else
20776    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20777    as_echo_n_body='eval
20778      arg=$1;
20779      case $arg in #(
20780      *"$as_nl"*)
20781	expr "X$arg" : "X\\(.*\\)$as_nl";
20782	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20783      esac;
20784      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20785    '
20786    export as_echo_n_body
20787    as_echo_n='sh -c $as_echo_n_body as_echo'
20788  fi
20789  export as_echo_body
20790  as_echo='sh -c $as_echo_body as_echo'
20791fi
20792
20793# The user is always right.
20794if test "${PATH_SEPARATOR+set}" != set; then
20795  PATH_SEPARATOR=:
20796  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20797    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20798      PATH_SEPARATOR=';'
20799  }
20800fi
20801
20802
20803# IFS
20804# We need space, tab and new line, in precisely that order.  Quoting is
20805# there to prevent editors from complaining about space-tab.
20806# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20807# splitting by setting IFS to empty value.)
20808IFS=" ""	$as_nl"
20809
20810# Find who we are.  Look in the path if we contain no directory separator.
20811as_myself=
20812case $0 in #((
20813  *[\\/]* ) as_myself=$0 ;;
20814  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20815for as_dir in $PATH
20816do
20817  IFS=$as_save_IFS
20818  test -z "$as_dir" && as_dir=.
20819    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20820  done
20821IFS=$as_save_IFS
20822
20823     ;;
20824esac
20825# We did not find ourselves, most probably we were run as `sh COMMAND'
20826# in which case we are not to be found in the path.
20827if test "x$as_myself" = x; then
20828  as_myself=$0
20829fi
20830if test ! -f "$as_myself"; then
20831  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20832  exit 1
20833fi
20834
20835# Unset variables that we do not need and which cause bugs (e.g. in
20836# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20837# suppresses any "Segmentation fault" message there.  '((' could
20838# trigger a bug in pdksh 5.2.14.
20839for as_var in BASH_ENV ENV MAIL MAILPATH
20840do eval test x\${$as_var+set} = xset \
20841  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20842done
20843PS1='$ '
20844PS2='> '
20845PS4='+ '
20846
20847# NLS nuisances.
20848LC_ALL=C
20849export LC_ALL
20850LANGUAGE=C
20851export LANGUAGE
20852
20853# CDPATH.
20854(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20855
20856
20857# as_fn_error STATUS ERROR [LINENO LOG_FD]
20858# ----------------------------------------
20859# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20860# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20861# script with STATUS, using 1 if that was 0.
20862as_fn_error ()
20863{
20864  as_status=$1; test $as_status -eq 0 && as_status=1
20865  if test "$4"; then
20866    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20867    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20868  fi
20869  $as_echo "$as_me: error: $2" >&2
20870  as_fn_exit $as_status
20871} # as_fn_error
20872
20873
20874# as_fn_set_status STATUS
20875# -----------------------
20876# Set $? to STATUS, without forking.
20877as_fn_set_status ()
20878{
20879  return $1
20880} # as_fn_set_status
20881
20882# as_fn_exit STATUS
20883# -----------------
20884# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20885as_fn_exit ()
20886{
20887  set +e
20888  as_fn_set_status $1
20889  exit $1
20890} # as_fn_exit
20891
20892# as_fn_unset VAR
20893# ---------------
20894# Portably unset VAR.
20895as_fn_unset ()
20896{
20897  { eval $1=; unset $1;}
20898}
20899as_unset=as_fn_unset
20900# as_fn_append VAR VALUE
20901# ----------------------
20902# Append the text in VALUE to the end of the definition contained in VAR. Take
20903# advantage of any shell optimizations that allow amortized linear growth over
20904# repeated appends, instead of the typical quadratic growth present in naive
20905# implementations.
20906if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20907  eval 'as_fn_append ()
20908  {
20909    eval $1+=\$2
20910  }'
20911else
20912  as_fn_append ()
20913  {
20914    eval $1=\$$1\$2
20915  }
20916fi # as_fn_append
20917
20918# as_fn_arith ARG...
20919# ------------------
20920# Perform arithmetic evaluation on the ARGs, and store the result in the
20921# global $as_val. Take advantage of shells that can avoid forks. The arguments
20922# must be portable across $(()) and expr.
20923if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20924  eval 'as_fn_arith ()
20925  {
20926    as_val=$(( $* ))
20927  }'
20928else
20929  as_fn_arith ()
20930  {
20931    as_val=`expr "$@" || test $? -eq 1`
20932  }
20933fi # as_fn_arith
20934
20935
20936if expr a : '\(a\)' >/dev/null 2>&1 &&
20937   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20938  as_expr=expr
20939else
20940  as_expr=false
20941fi
20942
20943if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20944  as_basename=basename
20945else
20946  as_basename=false
20947fi
20948
20949if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20950  as_dirname=dirname
20951else
20952  as_dirname=false
20953fi
20954
20955as_me=`$as_basename -- "$0" ||
20956$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20957	 X"$0" : 'X\(//\)$' \| \
20958	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20959$as_echo X/"$0" |
20960    sed '/^.*\/\([^/][^/]*\)\/*$/{
20961	    s//\1/
20962	    q
20963	  }
20964	  /^X\/\(\/\/\)$/{
20965	    s//\1/
20966	    q
20967	  }
20968	  /^X\/\(\/\).*/{
20969	    s//\1/
20970	    q
20971	  }
20972	  s/.*/./; q'`
20973
20974# Avoid depending upon Character Ranges.
20975as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20976as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20977as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20978as_cr_digits='0123456789'
20979as_cr_alnum=$as_cr_Letters$as_cr_digits
20980
20981ECHO_C= ECHO_N= ECHO_T=
20982case `echo -n x` in #(((((
20983-n*)
20984  case `echo 'xy\c'` in
20985  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20986  xy)  ECHO_C='\c';;
20987  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20988       ECHO_T='	';;
20989  esac;;
20990*)
20991  ECHO_N='-n';;
20992esac
20993
20994rm -f conf$$ conf$$.exe conf$$.file
20995if test -d conf$$.dir; then
20996  rm -f conf$$.dir/conf$$.file
20997else
20998  rm -f conf$$.dir
20999  mkdir conf$$.dir 2>/dev/null
21000fi
21001if (echo >conf$$.file) 2>/dev/null; then
21002  if ln -s conf$$.file conf$$ 2>/dev/null; then
21003    as_ln_s='ln -s'
21004    # ... but there are two gotchas:
21005    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21006    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21007    # In both cases, we have to default to `cp -p'.
21008    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21009      as_ln_s='cp -p'
21010  elif ln conf$$.file conf$$ 2>/dev/null; then
21011    as_ln_s=ln
21012  else
21013    as_ln_s='cp -p'
21014  fi
21015else
21016  as_ln_s='cp -p'
21017fi
21018rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21019rmdir conf$$.dir 2>/dev/null
21020
21021
21022# as_fn_mkdir_p
21023# -------------
21024# Create "$as_dir" as a directory, including parents if necessary.
21025as_fn_mkdir_p ()
21026{
21027
21028  case $as_dir in #(
21029  -*) as_dir=./$as_dir;;
21030  esac
21031  test -d "$as_dir" || eval $as_mkdir_p || {
21032    as_dirs=
21033    while :; do
21034      case $as_dir in #(
21035      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21036      *) as_qdir=$as_dir;;
21037      esac
21038      as_dirs="'$as_qdir' $as_dirs"
21039      as_dir=`$as_dirname -- "$as_dir" ||
21040$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21041	 X"$as_dir" : 'X\(//\)[^/]' \| \
21042	 X"$as_dir" : 'X\(//\)$' \| \
21043	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21044$as_echo X"$as_dir" |
21045    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21046	    s//\1/
21047	    q
21048	  }
21049	  /^X\(\/\/\)[^/].*/{
21050	    s//\1/
21051	    q
21052	  }
21053	  /^X\(\/\/\)$/{
21054	    s//\1/
21055	    q
21056	  }
21057	  /^X\(\/\).*/{
21058	    s//\1/
21059	    q
21060	  }
21061	  s/.*/./; q'`
21062      test -d "$as_dir" && break
21063    done
21064    test -z "$as_dirs" || eval "mkdir $as_dirs"
21065  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21066
21067
21068} # as_fn_mkdir_p
21069if mkdir -p . 2>/dev/null; then
21070  as_mkdir_p='mkdir -p "$as_dir"'
21071else
21072  test -d ./-p && rmdir ./-p
21073  as_mkdir_p=false
21074fi
21075
21076if test -x / >/dev/null 2>&1; then
21077  as_test_x='test -x'
21078else
21079  if ls -dL / >/dev/null 2>&1; then
21080    as_ls_L_option=L
21081  else
21082    as_ls_L_option=
21083  fi
21084  as_test_x='
21085    eval sh -c '\''
21086      if test -d "$1"; then
21087	test -d "$1/.";
21088      else
21089	case $1 in #(
21090	-*)set "./$1";;
21091	esac;
21092	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21093	???[sx]*):;;*)false;;esac;fi
21094    '\'' sh
21095  '
21096fi
21097as_executable_p=$as_test_x
21098
21099# Sed expression to map a string onto a valid CPP name.
21100as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21101
21102# Sed expression to map a string onto a valid variable name.
21103as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21104
21105
21106exec 6>&1
21107## ----------------------------------- ##
21108## Main body of $CONFIG_STATUS script. ##
21109## ----------------------------------- ##
21110_ASEOF
21111test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21112
21113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21114# Save the log message, to keep $0 and so on meaningful, and to
21115# report actual input values of CONFIG_FILES etc. instead of their
21116# values after options handling.
21117ac_log="
21118This file was extended by hunspell $as_me 1.3.3, which was
21119generated by GNU Autoconf 2.68.  Invocation command line was
21120
21121  CONFIG_FILES    = $CONFIG_FILES
21122  CONFIG_HEADERS  = $CONFIG_HEADERS
21123  CONFIG_LINKS    = $CONFIG_LINKS
21124  CONFIG_COMMANDS = $CONFIG_COMMANDS
21125  $ $0 $@
21126
21127on `(hostname || uname -n) 2>/dev/null | sed 1q`
21128"
21129
21130_ACEOF
21131
21132case $ac_config_files in *"
21133"*) set x $ac_config_files; shift; ac_config_files=$*;;
21134esac
21135
21136case $ac_config_headers in *"
21137"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21138esac
21139
21140
21141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21142# Files that config.status was made for.
21143config_files="$ac_config_files"
21144config_headers="$ac_config_headers"
21145config_commands="$ac_config_commands"
21146
21147_ACEOF
21148
21149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21150ac_cs_usage="\
21151\`$as_me' instantiates files and other configuration actions
21152from templates according to the current configuration.  Unless the files
21153and actions are specified as TAGs, all are instantiated by default.
21154
21155Usage: $0 [OPTION]... [TAG]...
21156
21157  -h, --help       print this help, then exit
21158  -V, --version    print version number and configuration settings, then exit
21159      --config     print configuration, then exit
21160  -q, --quiet, --silent
21161                   do not print progress messages
21162  -d, --debug      don't remove temporary files
21163      --recheck    update $as_me by reconfiguring in the same conditions
21164      --file=FILE[:TEMPLATE]
21165                   instantiate the configuration file FILE
21166      --header=FILE[:TEMPLATE]
21167                   instantiate the configuration header FILE
21168
21169Configuration files:
21170$config_files
21171
21172Configuration headers:
21173$config_headers
21174
21175Configuration commands:
21176$config_commands
21177
21178Report bugs to <nemeth@numbertext.org>."
21179
21180_ACEOF
21181cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21182ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21183ac_cs_version="\\
21184hunspell config.status 1.3.3
21185configured by $0, generated by GNU Autoconf 2.68,
21186  with options \\"\$ac_cs_config\\"
21187
21188Copyright (C) 2010 Free Software Foundation, Inc.
21189This config.status script is free software; the Free Software Foundation
21190gives unlimited permission to copy, distribute and modify it."
21191
21192ac_pwd='$ac_pwd'
21193srcdir='$srcdir'
21194INSTALL='$INSTALL'
21195MKDIR_P='$MKDIR_P'
21196AWK='$AWK'
21197test -n "\$AWK" || AWK=awk
21198_ACEOF
21199
21200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21201# The default lists apply if the user does not specify any file.
21202ac_need_defaults=:
21203while test $# != 0
21204do
21205  case $1 in
21206  --*=?*)
21207    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21208    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21209    ac_shift=:
21210    ;;
21211  --*=)
21212    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21213    ac_optarg=
21214    ac_shift=:
21215    ;;
21216  *)
21217    ac_option=$1
21218    ac_optarg=$2
21219    ac_shift=shift
21220    ;;
21221  esac
21222
21223  case $ac_option in
21224  # Handling of the options.
21225  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21226    ac_cs_recheck=: ;;
21227  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21228    $as_echo "$ac_cs_version"; exit ;;
21229  --config | --confi | --conf | --con | --co | --c )
21230    $as_echo "$ac_cs_config"; exit ;;
21231  --debug | --debu | --deb | --de | --d | -d )
21232    debug=: ;;
21233  --file | --fil | --fi | --f )
21234    $ac_shift
21235    case $ac_optarg in
21236    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21237    '') as_fn_error $? "missing file argument" ;;
21238    esac
21239    as_fn_append CONFIG_FILES " '$ac_optarg'"
21240    ac_need_defaults=false;;
21241  --header | --heade | --head | --hea )
21242    $ac_shift
21243    case $ac_optarg in
21244    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21245    esac
21246    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21247    ac_need_defaults=false;;
21248  --he | --h)
21249    # Conflict between --help and --header
21250    as_fn_error $? "ambiguous option: \`$1'
21251Try \`$0 --help' for more information.";;
21252  --help | --hel | -h )
21253    $as_echo "$ac_cs_usage"; exit ;;
21254  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21255  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21256    ac_cs_silent=: ;;
21257
21258  # This is an error.
21259  -*) as_fn_error $? "unrecognized option: \`$1'
21260Try \`$0 --help' for more information." ;;
21261
21262  *) as_fn_append ac_config_targets " $1"
21263     ac_need_defaults=false ;;
21264
21265  esac
21266  shift
21267done
21268
21269ac_configure_extra_args=
21270
21271if $ac_cs_silent; then
21272  exec 6>/dev/null
21273  ac_configure_extra_args="$ac_configure_extra_args --silent"
21274fi
21275
21276_ACEOF
21277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21278if \$ac_cs_recheck; then
21279  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21280  shift
21281  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21282  CONFIG_SHELL='$SHELL'
21283  export CONFIG_SHELL
21284  exec "\$@"
21285fi
21286
21287_ACEOF
21288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21289exec 5>>config.log
21290{
21291  echo
21292  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21293## Running $as_me. ##
21294_ASBOX
21295  $as_echo "$ac_log"
21296} >&5
21297
21298_ACEOF
21299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21300#
21301# INIT-COMMANDS
21302#
21303AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21304
21305
21306# The HP-UX ksh and POSIX shell print the target directory to stdout
21307# if CDPATH is set.
21308(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21309
21310sed_quote_subst='$sed_quote_subst'
21311double_quote_subst='$double_quote_subst'
21312delay_variable_subst='$delay_variable_subst'
21313macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21314macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21315enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21316enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21317pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21318enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21319host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21320host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21321host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21322build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21323build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21324build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21325SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21326Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21327GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21328EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21329FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21330LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21331NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21332LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21333max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21334ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21335exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21336lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21337lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21338lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21339reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21340reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21341OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21342deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21343file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21344AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21345AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21346STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21347RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21348old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21349old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21350old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21351CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21352CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21353compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21354GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21355lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21356lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21357lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
21358lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21359objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21360SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21361ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21362MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21363lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21364lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21365lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21366lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21367lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21368need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21369DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21370NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21371LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21372OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21373OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21374libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21375shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21376extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21377archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21378enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21379export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21380whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21381compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21382old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21383old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21384archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21385archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21386module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21387module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21388with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21389allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21390no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21391hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21392hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21393hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21394hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21395hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21396hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21397hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21398hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21399inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21400link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21401fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21402always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21403export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21404exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21405include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21406prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21407file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21408variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21409need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21410need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21411version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21412runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21413shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21414shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21415libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21416library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21417soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21418postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21419postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21420finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21421finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21422hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21423sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21424sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21425hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21426enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21427enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21428enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21429old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21430striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21431compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
21432predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21433postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21434predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
21435postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
21436compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
21437AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
21438DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21439LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21440old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21441compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21442GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21443lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21444lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21445lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21446lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21447lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21448archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21449enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21450export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21451whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21452compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21453old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21454old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21455archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21456archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21457module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21458module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21459with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21460allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21461no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21462hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21463hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21464hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21465hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21466hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21467hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21468hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21469hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21470inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21471link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21472fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21473always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21474export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21475exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21476include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21477prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21478file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21479hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21480compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21481predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21482postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21483predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21484postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21485compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21486
21487LTCC='$LTCC'
21488LTCFLAGS='$LTCFLAGS'
21489compiler='$compiler_DEFAULT'
21490
21491# Quote evaled strings.
21492for var in SED \
21493GREP \
21494EGREP \
21495FGREP \
21496LD \
21497NM \
21498LN_S \
21499lt_SP2NL \
21500lt_NL2SP \
21501reload_flag \
21502OBJDUMP \
21503deplibs_check_method \
21504file_magic_cmd \
21505AR \
21506AR_FLAGS \
21507STRIP \
21508RANLIB \
21509CC \
21510CFLAGS \
21511compiler \
21512lt_cv_sys_global_symbol_pipe \
21513lt_cv_sys_global_symbol_to_cdecl \
21514lt_cv_sys_global_symbol_to_c_name_address \
21515lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21516SHELL \
21517ECHO \
21518lt_prog_compiler_no_builtin_flag \
21519lt_prog_compiler_wl \
21520lt_prog_compiler_pic \
21521lt_prog_compiler_static \
21522lt_cv_prog_compiler_c_o \
21523need_locks \
21524DSYMUTIL \
21525NMEDIT \
21526LIPO \
21527OTOOL \
21528OTOOL64 \
21529shrext_cmds \
21530export_dynamic_flag_spec \
21531whole_archive_flag_spec \
21532compiler_needs_object \
21533with_gnu_ld \
21534allow_undefined_flag \
21535no_undefined_flag \
21536hardcode_libdir_flag_spec \
21537hardcode_libdir_flag_spec_ld \
21538hardcode_libdir_separator \
21539fix_srcfile_path \
21540exclude_expsyms \
21541include_expsyms \
21542file_list_spec \
21543variables_saved_for_relink \
21544libname_spec \
21545library_names_spec \
21546soname_spec \
21547finish_eval \
21548old_striplib \
21549striplib \
21550compiler_lib_search_dirs \
21551predep_objects \
21552postdep_objects \
21553predeps \
21554postdeps \
21555compiler_lib_search_path \
21556LD_CXX \
21557compiler_CXX \
21558lt_prog_compiler_no_builtin_flag_CXX \
21559lt_prog_compiler_wl_CXX \
21560lt_prog_compiler_pic_CXX \
21561lt_prog_compiler_static_CXX \
21562lt_cv_prog_compiler_c_o_CXX \
21563export_dynamic_flag_spec_CXX \
21564whole_archive_flag_spec_CXX \
21565compiler_needs_object_CXX \
21566with_gnu_ld_CXX \
21567allow_undefined_flag_CXX \
21568no_undefined_flag_CXX \
21569hardcode_libdir_flag_spec_CXX \
21570hardcode_libdir_flag_spec_ld_CXX \
21571hardcode_libdir_separator_CXX \
21572fix_srcfile_path_CXX \
21573exclude_expsyms_CXX \
21574include_expsyms_CXX \
21575file_list_spec_CXX \
21576compiler_lib_search_dirs_CXX \
21577predep_objects_CXX \
21578postdep_objects_CXX \
21579predeps_CXX \
21580postdeps_CXX \
21581compiler_lib_search_path_CXX; do
21582    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21583    *[\\\\\\\`\\"\\\$]*)
21584      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21585      ;;
21586    *)
21587      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21588      ;;
21589    esac
21590done
21591
21592# Double-quote double-evaled strings.
21593for var in reload_cmds \
21594old_postinstall_cmds \
21595old_postuninstall_cmds \
21596old_archive_cmds \
21597extract_expsyms_cmds \
21598old_archive_from_new_cmds \
21599old_archive_from_expsyms_cmds \
21600archive_cmds \
21601archive_expsym_cmds \
21602module_cmds \
21603module_expsym_cmds \
21604export_symbols_cmds \
21605prelink_cmds \
21606postinstall_cmds \
21607postuninstall_cmds \
21608finish_cmds \
21609sys_lib_search_path_spec \
21610sys_lib_dlsearch_path_spec \
21611old_archive_cmds_CXX \
21612old_archive_from_new_cmds_CXX \
21613old_archive_from_expsyms_cmds_CXX \
21614archive_cmds_CXX \
21615archive_expsym_cmds_CXX \
21616module_cmds_CXX \
21617module_expsym_cmds_CXX \
21618export_symbols_cmds_CXX \
21619prelink_cmds_CXX; do
21620    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21621    *[\\\\\\\`\\"\\\$]*)
21622      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21623      ;;
21624    *)
21625      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21626      ;;
21627    esac
21628done
21629
21630# Fix-up fallback echo if it was mangled by the above quoting rules.
21631case \$lt_ECHO in
21632*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21633  ;;
21634esac
21635
21636ac_aux_dir='$ac_aux_dir'
21637xsi_shell='$xsi_shell'
21638lt_shell_append='$lt_shell_append'
21639
21640# See if we are running on zsh, and set the options which allow our
21641# commands through without removal of \ escapes INIT.
21642if test -n "\${ZSH_VERSION+set}" ; then
21643   setopt NO_GLOB_SUBST
21644fi
21645
21646
21647    PACKAGE='$PACKAGE'
21648    VERSION='$VERSION'
21649    TIMESTAMP='$TIMESTAMP'
21650    RM='$RM'
21651    ofile='$ofile'
21652
21653
21654
21655
21656
21657# Capture the value of obsolete ALL_LINGUAS because we need it to compute
21658    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21659    # from automake < 1.5.
21660    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21661    # Capture the value of LINGUAS because we need it to compute CATALOGS.
21662    LINGUAS="${LINGUAS-%UNSET%}"
21663
21664
21665_ACEOF
21666
21667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21668
21669# Handling of arguments.
21670for ac_config_target in $ac_config_targets
21671do
21672  case $ac_config_target in
21673    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21674    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21675    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21676    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21677    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21678    "hunspell.pc") CONFIG_FILES="$CONFIG_FILES hunspell.pc" ;;
21679    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21680    "man/hu/Makefile") CONFIG_FILES="$CONFIG_FILES man/hu/Makefile" ;;
21681    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
21682    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21683    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
21684    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21685    "src/hunspell/Makefile") CONFIG_FILES="$CONFIG_FILES src/hunspell/Makefile" ;;
21686    "src/hunspell/hunvisapi.h") CONFIG_FILES="$CONFIG_FILES src/hunspell/hunvisapi.h" ;;
21687    "src/parsers/Makefile") CONFIG_FILES="$CONFIG_FILES src/parsers/Makefile" ;;
21688    "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21689    "src/win_api/Makefile") CONFIG_FILES="$CONFIG_FILES src/win_api/Makefile" ;;
21690    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21691    "tests/suggestiontest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/suggestiontest/Makefile" ;;
21692
21693  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21694  esac
21695done
21696
21697
21698# If the user did not use the arguments to specify the items to instantiate,
21699# then the envvar interface is used.  Set only those that are not.
21700# We use the long form for the default assignment because of an extremely
21701# bizarre bug on SunOS 4.1.3.
21702if $ac_need_defaults; then
21703  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21704  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21705  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21706fi
21707
21708# Have a temporary directory for convenience.  Make it in the build tree
21709# simply because there is no reason against having it here, and in addition,
21710# creating and moving files from /tmp can sometimes cause problems.
21711# Hook for its removal unless debugging.
21712# Note that there is a small window in which the directory will not be cleaned:
21713# after its creation but before its name has been assigned to `$tmp'.
21714$debug ||
21715{
21716  tmp= ac_tmp=
21717  trap 'exit_status=$?
21718  : "${ac_tmp:=$tmp}"
21719  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21720' 0
21721  trap 'as_fn_exit 1' 1 2 13 15
21722}
21723# Create a (secure) tmp directory for tmp files.
21724
21725{
21726  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21727  test -d "$tmp"
21728}  ||
21729{
21730  tmp=./conf$$-$RANDOM
21731  (umask 077 && mkdir "$tmp")
21732} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21733ac_tmp=$tmp
21734
21735# Set up the scripts for CONFIG_FILES section.
21736# No need to generate them if there are no CONFIG_FILES.
21737# This happens for instance with `./config.status config.h'.
21738if test -n "$CONFIG_FILES"; then
21739
21740
21741ac_cr=`echo X | tr X '\015'`
21742# On cygwin, bash can eat \r inside `` if the user requested igncr.
21743# But we know of no other shell where ac_cr would be empty at this
21744# point, so we can use a bashism as a fallback.
21745if test "x$ac_cr" = x; then
21746  eval ac_cr=\$\'\\r\'
21747fi
21748ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21749if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21750  ac_cs_awk_cr='\\r'
21751else
21752  ac_cs_awk_cr=$ac_cr
21753fi
21754
21755echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21756_ACEOF
21757
21758
21759{
21760  echo "cat >conf$$subs.awk <<_ACEOF" &&
21761  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21762  echo "_ACEOF"
21763} >conf$$subs.sh ||
21764  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21765ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21766ac_delim='%!_!# '
21767for ac_last_try in false false false false false :; do
21768  . ./conf$$subs.sh ||
21769    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21770
21771  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21772  if test $ac_delim_n = $ac_delim_num; then
21773    break
21774  elif $ac_last_try; then
21775    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21776  else
21777    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21778  fi
21779done
21780rm -f conf$$subs.sh
21781
21782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21783cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21784_ACEOF
21785sed -n '
21786h
21787s/^/S["/; s/!.*/"]=/
21788p
21789g
21790s/^[^!]*!//
21791:repl
21792t repl
21793s/'"$ac_delim"'$//
21794t delim
21795:nl
21796h
21797s/\(.\{148\}\)..*/\1/
21798t more1
21799s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21800p
21801n
21802b repl
21803:more1
21804s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21805p
21806g
21807s/.\{148\}//
21808t nl
21809:delim
21810h
21811s/\(.\{148\}\)..*/\1/
21812t more2
21813s/["\\]/\\&/g; s/^/"/; s/$/"/
21814p
21815b
21816:more2
21817s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21818p
21819g
21820s/.\{148\}//
21821t delim
21822' <conf$$subs.awk | sed '
21823/^[^""]/{
21824  N
21825  s/\n//
21826}
21827' >>$CONFIG_STATUS || ac_write_fail=1
21828rm -f conf$$subs.awk
21829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21830_ACAWK
21831cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21832  for (key in S) S_is_set[key] = 1
21833  FS = ""
21834
21835}
21836{
21837  line = $ 0
21838  nfields = split(line, field, "@")
21839  substed = 0
21840  len = length(field[1])
21841  for (i = 2; i < nfields; i++) {
21842    key = field[i]
21843    keylen = length(key)
21844    if (S_is_set[key]) {
21845      value = S[key]
21846      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21847      len += length(value) + length(field[++i])
21848      substed = 1
21849    } else
21850      len += 1 + keylen
21851  }
21852
21853  print line
21854}
21855
21856_ACAWK
21857_ACEOF
21858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21859if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21860  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21861else
21862  cat
21863fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21864  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21865_ACEOF
21866
21867# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21868# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21869# trailing colons and then remove the whole line if VPATH becomes empty
21870# (actually we leave an empty line to preserve line numbers).
21871if test "x$srcdir" = x.; then
21872  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21873h
21874s///
21875s/^/:/
21876s/[	 ]*$/:/
21877s/:\$(srcdir):/:/g
21878s/:\${srcdir}:/:/g
21879s/:@srcdir@:/:/g
21880s/^:*//
21881s/:*$//
21882x
21883s/\(=[	 ]*\).*/\1/
21884G
21885s/\n//
21886s/^[^=]*=[	 ]*$//
21887}'
21888fi
21889
21890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21891fi # test -n "$CONFIG_FILES"
21892
21893# Set up the scripts for CONFIG_HEADERS section.
21894# No need to generate them if there are no CONFIG_HEADERS.
21895# This happens for instance with `./config.status Makefile'.
21896if test -n "$CONFIG_HEADERS"; then
21897cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21898BEGIN {
21899_ACEOF
21900
21901# Transform confdefs.h into an awk script `defines.awk', embedded as
21902# here-document in config.status, that substitutes the proper values into
21903# config.h.in to produce config.h.
21904
21905# Create a delimiter string that does not exist in confdefs.h, to ease
21906# handling of long lines.
21907ac_delim='%!_!# '
21908for ac_last_try in false false :; do
21909  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21910  if test -z "$ac_tt"; then
21911    break
21912  elif $ac_last_try; then
21913    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21914  else
21915    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21916  fi
21917done
21918
21919# For the awk script, D is an array of macro values keyed by name,
21920# likewise P contains macro parameters if any.  Preserve backslash
21921# newline sequences.
21922
21923ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21924sed -n '
21925s/.\{148\}/&'"$ac_delim"'/g
21926t rset
21927:rset
21928s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21929t def
21930d
21931:def
21932s/\\$//
21933t bsnl
21934s/["\\]/\\&/g
21935s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21936D["\1"]=" \3"/p
21937s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21938d
21939:bsnl
21940s/["\\]/\\&/g
21941s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21942D["\1"]=" \3\\\\\\n"\\/p
21943t cont
21944s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21945t cont
21946d
21947:cont
21948n
21949s/.\{148\}/&'"$ac_delim"'/g
21950t clear
21951:clear
21952s/\\$//
21953t bsnlc
21954s/["\\]/\\&/g; s/^/"/; s/$/"/p
21955d
21956:bsnlc
21957s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21958b cont
21959' <confdefs.h | sed '
21960s/'"$ac_delim"'/"\\\
21961"/g' >>$CONFIG_STATUS || ac_write_fail=1
21962
21963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21964  for (key in D) D_is_set[key] = 1
21965  FS = ""
21966}
21967/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21968  line = \$ 0
21969  split(line, arg, " ")
21970  if (arg[1] == "#") {
21971    defundef = arg[2]
21972    mac1 = arg[3]
21973  } else {
21974    defundef = substr(arg[1], 2)
21975    mac1 = arg[2]
21976  }
21977  split(mac1, mac2, "(") #)
21978  macro = mac2[1]
21979  prefix = substr(line, 1, index(line, defundef) - 1)
21980  if (D_is_set[macro]) {
21981    # Preserve the white space surrounding the "#".
21982    print prefix "define", macro P[macro] D[macro]
21983    next
21984  } else {
21985    # Replace #undef with comments.  This is necessary, for example,
21986    # in the case of _POSIX_SOURCE, which is predefined and required
21987    # on some systems where configure will not decide to define it.
21988    if (defundef == "undef") {
21989      print "/*", prefix defundef, macro, "*/"
21990      next
21991    }
21992  }
21993}
21994{ print }
21995_ACAWK
21996_ACEOF
21997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21998  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21999fi # test -n "$CONFIG_HEADERS"
22000
22001
22002eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22003shift
22004for ac_tag
22005do
22006  case $ac_tag in
22007  :[FHLC]) ac_mode=$ac_tag; continue;;
22008  esac
22009  case $ac_mode$ac_tag in
22010  :[FHL]*:*);;
22011  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22012  :[FH]-) ac_tag=-:-;;
22013  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22014  esac
22015  ac_save_IFS=$IFS
22016  IFS=:
22017  set x $ac_tag
22018  IFS=$ac_save_IFS
22019  shift
22020  ac_file=$1
22021  shift
22022
22023  case $ac_mode in
22024  :L) ac_source=$1;;
22025  :[FH])
22026    ac_file_inputs=
22027    for ac_f
22028    do
22029      case $ac_f in
22030      -) ac_f="$ac_tmp/stdin";;
22031      *) # Look for the file first in the build tree, then in the source tree
22032	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22033	 # because $ac_f cannot contain `:'.
22034	 test -f "$ac_f" ||
22035	   case $ac_f in
22036	   [\\/$]*) false;;
22037	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22038	   esac ||
22039	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22040      esac
22041      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22042      as_fn_append ac_file_inputs " '$ac_f'"
22043    done
22044
22045    # Let's still pretend it is `configure' which instantiates (i.e., don't
22046    # use $as_me), people would be surprised to read:
22047    #    /* config.h.  Generated by config.status.  */
22048    configure_input='Generated from '`
22049	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22050	`' by configure.'
22051    if test x"$ac_file" != x-; then
22052      configure_input="$ac_file.  $configure_input"
22053      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22054$as_echo "$as_me: creating $ac_file" >&6;}
22055    fi
22056    # Neutralize special characters interpreted by sed in replacement strings.
22057    case $configure_input in #(
22058    *\&* | *\|* | *\\* )
22059       ac_sed_conf_input=`$as_echo "$configure_input" |
22060       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22061    *) ac_sed_conf_input=$configure_input;;
22062    esac
22063
22064    case $ac_tag in
22065    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22066      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22067    esac
22068    ;;
22069  esac
22070
22071  ac_dir=`$as_dirname -- "$ac_file" ||
22072$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22073	 X"$ac_file" : 'X\(//\)[^/]' \| \
22074	 X"$ac_file" : 'X\(//\)$' \| \
22075	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22076$as_echo X"$ac_file" |
22077    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22078	    s//\1/
22079	    q
22080	  }
22081	  /^X\(\/\/\)[^/].*/{
22082	    s//\1/
22083	    q
22084	  }
22085	  /^X\(\/\/\)$/{
22086	    s//\1/
22087	    q
22088	  }
22089	  /^X\(\/\).*/{
22090	    s//\1/
22091	    q
22092	  }
22093	  s/.*/./; q'`
22094  as_dir="$ac_dir"; as_fn_mkdir_p
22095  ac_builddir=.
22096
22097case "$ac_dir" in
22098.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22099*)
22100  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22101  # A ".." for each directory in $ac_dir_suffix.
22102  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22103  case $ac_top_builddir_sub in
22104  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22105  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22106  esac ;;
22107esac
22108ac_abs_top_builddir=$ac_pwd
22109ac_abs_builddir=$ac_pwd$ac_dir_suffix
22110# for backward compatibility:
22111ac_top_builddir=$ac_top_build_prefix
22112
22113case $srcdir in
22114  .)  # We are building in place.
22115    ac_srcdir=.
22116    ac_top_srcdir=$ac_top_builddir_sub
22117    ac_abs_top_srcdir=$ac_pwd ;;
22118  [\\/]* | ?:[\\/]* )  # Absolute name.
22119    ac_srcdir=$srcdir$ac_dir_suffix;
22120    ac_top_srcdir=$srcdir
22121    ac_abs_top_srcdir=$srcdir ;;
22122  *) # Relative name.
22123    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22124    ac_top_srcdir=$ac_top_build_prefix$srcdir
22125    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22126esac
22127ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22128
22129
22130  case $ac_mode in
22131  :F)
22132  #
22133  # CONFIG_FILE
22134  #
22135
22136  case $INSTALL in
22137  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22138  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22139  esac
22140  ac_MKDIR_P=$MKDIR_P
22141  case $MKDIR_P in
22142  [\\/$]* | ?:[\\/]* ) ;;
22143  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22144  esac
22145_ACEOF
22146
22147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22148# If the template does not know about datarootdir, expand it.
22149# FIXME: This hack should be removed a few years after 2.60.
22150ac_datarootdir_hack=; ac_datarootdir_seen=
22151ac_sed_dataroot='
22152/datarootdir/ {
22153  p
22154  q
22155}
22156/@datadir@/p
22157/@docdir@/p
22158/@infodir@/p
22159/@localedir@/p
22160/@mandir@/p'
22161case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22162*datarootdir*) ac_datarootdir_seen=yes;;
22163*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22164  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22165$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22166_ACEOF
22167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22168  ac_datarootdir_hack='
22169  s&@datadir@&$datadir&g
22170  s&@docdir@&$docdir&g
22171  s&@infodir@&$infodir&g
22172  s&@localedir@&$localedir&g
22173  s&@mandir@&$mandir&g
22174  s&\\\${datarootdir}&$datarootdir&g' ;;
22175esac
22176_ACEOF
22177
22178# Neutralize VPATH when `$srcdir' = `.'.
22179# Shell code in configure.ac might set extrasub.
22180# FIXME: do we really want to maintain this feature?
22181cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22182ac_sed_extra="$ac_vpsub
22183$extrasub
22184_ACEOF
22185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22186:t
22187/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22188s|@configure_input@|$ac_sed_conf_input|;t t
22189s&@top_builddir@&$ac_top_builddir_sub&;t t
22190s&@top_build_prefix@&$ac_top_build_prefix&;t t
22191s&@srcdir@&$ac_srcdir&;t t
22192s&@abs_srcdir@&$ac_abs_srcdir&;t t
22193s&@top_srcdir@&$ac_top_srcdir&;t t
22194s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22195s&@builddir@&$ac_builddir&;t t
22196s&@abs_builddir@&$ac_abs_builddir&;t t
22197s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22198s&@INSTALL@&$ac_INSTALL&;t t
22199s&@MKDIR_P@&$ac_MKDIR_P&;t t
22200$ac_datarootdir_hack
22201"
22202eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22203  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22204
22205test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22206  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22207  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22208      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22209  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22210which seems to be undefined.  Please make sure it is defined" >&5
22211$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22212which seems to be undefined.  Please make sure it is defined" >&2;}
22213
22214  rm -f "$ac_tmp/stdin"
22215  case $ac_file in
22216  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22217  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22218  esac \
22219  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22220 ;;
22221  :H)
22222  #
22223  # CONFIG_HEADER
22224  #
22225  if test x"$ac_file" != x-; then
22226    {
22227      $as_echo "/* $configure_input  */" \
22228      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22229    } >"$ac_tmp/config.h" \
22230      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22231    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22232      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22233$as_echo "$as_me: $ac_file is unchanged" >&6;}
22234    else
22235      rm -f "$ac_file"
22236      mv "$ac_tmp/config.h" "$ac_file" \
22237	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22238    fi
22239  else
22240    $as_echo "/* $configure_input  */" \
22241      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22242      || as_fn_error $? "could not create -" "$LINENO" 5
22243  fi
22244# Compute "$ac_file"'s index in $config_headers.
22245_am_arg="$ac_file"
22246_am_stamp_count=1
22247for _am_header in $config_headers :; do
22248  case $_am_header in
22249    $_am_arg | $_am_arg:* )
22250      break ;;
22251    * )
22252      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22253  esac
22254done
22255echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22256$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22257	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22258	 X"$_am_arg" : 'X\(//\)$' \| \
22259	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22260$as_echo X"$_am_arg" |
22261    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22262	    s//\1/
22263	    q
22264	  }
22265	  /^X\(\/\/\)[^/].*/{
22266	    s//\1/
22267	    q
22268	  }
22269	  /^X\(\/\/\)$/{
22270	    s//\1/
22271	    q
22272	  }
22273	  /^X\(\/\).*/{
22274	    s//\1/
22275	    q
22276	  }
22277	  s/.*/./; q'`/stamp-h$_am_stamp_count
22278 ;;
22279
22280  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22281$as_echo "$as_me: executing $ac_file commands" >&6;}
22282 ;;
22283  esac
22284
22285
22286  case $ac_file$ac_mode in
22287    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22288  # Autoconf 2.62 quotes --file arguments for eval, but not when files
22289  # are listed without --file.  Let's play safe and only enable the eval
22290  # if we detect the quoting.
22291  case $CONFIG_FILES in
22292  *\'*) eval set x "$CONFIG_FILES" ;;
22293  *)   set x $CONFIG_FILES ;;
22294  esac
22295  shift
22296  for mf
22297  do
22298    # Strip MF so we end up with the name of the file.
22299    mf=`echo "$mf" | sed -e 's/:.*$//'`
22300    # Check whether this is an Automake generated Makefile or not.
22301    # We used to match only the files named `Makefile.in', but
22302    # some people rename them; so instead we look at the file content.
22303    # Grep'ing the first line is not enough: some people post-process
22304    # each Makefile.in and add a new line on top of each file to say so.
22305    # Grep'ing the whole file is not good either: AIX grep has a line
22306    # limit of 2048, but all sed's we know have understand at least 4000.
22307    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22308      dirpart=`$as_dirname -- "$mf" ||
22309$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22310	 X"$mf" : 'X\(//\)[^/]' \| \
22311	 X"$mf" : 'X\(//\)$' \| \
22312	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22313$as_echo X"$mf" |
22314    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22315	    s//\1/
22316	    q
22317	  }
22318	  /^X\(\/\/\)[^/].*/{
22319	    s//\1/
22320	    q
22321	  }
22322	  /^X\(\/\/\)$/{
22323	    s//\1/
22324	    q
22325	  }
22326	  /^X\(\/\).*/{
22327	    s//\1/
22328	    q
22329	  }
22330	  s/.*/./; q'`
22331    else
22332      continue
22333    fi
22334    # Extract the definition of DEPDIR, am__include, and am__quote
22335    # from the Makefile without running `make'.
22336    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22337    test -z "$DEPDIR" && continue
22338    am__include=`sed -n 's/^am__include = //p' < "$mf"`
22339    test -z "am__include" && continue
22340    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22341    # When using ansi2knr, U may be empty or an underscore; expand it
22342    U=`sed -n 's/^U = //p' < "$mf"`
22343    # Find all dependency output files, they are included files with
22344    # $(DEPDIR) in their names.  We invoke sed twice because it is the
22345    # simplest approach to changing $(DEPDIR) to its actual value in the
22346    # expansion.
22347    for file in `sed -n "
22348      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22349	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22350      # Make sure the directory exists.
22351      test -f "$dirpart/$file" && continue
22352      fdir=`$as_dirname -- "$file" ||
22353$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22354	 X"$file" : 'X\(//\)[^/]' \| \
22355	 X"$file" : 'X\(//\)$' \| \
22356	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22357$as_echo X"$file" |
22358    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22359	    s//\1/
22360	    q
22361	  }
22362	  /^X\(\/\/\)[^/].*/{
22363	    s//\1/
22364	    q
22365	  }
22366	  /^X\(\/\/\)$/{
22367	    s//\1/
22368	    q
22369	  }
22370	  /^X\(\/\).*/{
22371	    s//\1/
22372	    q
22373	  }
22374	  s/.*/./; q'`
22375      as_dir=$dirpart/$fdir; as_fn_mkdir_p
22376      # echo "creating $dirpart/$file"
22377      echo '# dummy' > "$dirpart/$file"
22378    done
22379  done
22380}
22381 ;;
22382    "libtool":C)
22383
22384    # See if we are running on zsh, and set the options which allow our
22385    # commands through without removal of \ escapes.
22386    if test -n "${ZSH_VERSION+set}" ; then
22387      setopt NO_GLOB_SUBST
22388    fi
22389
22390    cfgfile="${ofile}T"
22391    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22392    $RM "$cfgfile"
22393
22394    cat <<_LT_EOF >> "$cfgfile"
22395#! $SHELL
22396
22397# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22398# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22399# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22400# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22401#
22402#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22403#                 2006, 2007, 2008 Free Software Foundation, Inc.
22404#   Written by Gordon Matzigkeit, 1996
22405#
22406#   This file is part of GNU Libtool.
22407#
22408# GNU Libtool is free software; you can redistribute it and/or
22409# modify it under the terms of the GNU General Public License as
22410# published by the Free Software Foundation; either version 2 of
22411# the License, or (at your option) any later version.
22412#
22413# As a special exception to the GNU General Public License,
22414# if you distribute this file as part of a program or library that
22415# is built using GNU Libtool, you may include this file under the
22416# same distribution terms that you use for the rest of that program.
22417#
22418# GNU Libtool is distributed in the hope that it will be useful,
22419# but WITHOUT ANY WARRANTY; without even the implied warranty of
22420# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22421# GNU General Public License for more details.
22422#
22423# You should have received a copy of the GNU General Public License
22424# along with GNU Libtool; see the file COPYING.  If not, a copy
22425# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22426# obtained by writing to the Free Software Foundation, Inc.,
22427# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22428
22429
22430# The names of the tagged configurations supported by this script.
22431available_tags="CXX "
22432
22433# ### BEGIN LIBTOOL CONFIG
22434
22435# Which release of libtool.m4 was used?
22436macro_version=$macro_version
22437macro_revision=$macro_revision
22438
22439# Whether or not to build shared libraries.
22440build_libtool_libs=$enable_shared
22441
22442# Whether or not to build static libraries.
22443build_old_libs=$enable_static
22444
22445# What type of objects to build.
22446pic_mode=$pic_mode
22447
22448# Whether or not to optimize for fast installation.
22449fast_install=$enable_fast_install
22450
22451# The host system.
22452host_alias=$host_alias
22453host=$host
22454host_os=$host_os
22455
22456# The build system.
22457build_alias=$build_alias
22458build=$build
22459build_os=$build_os
22460
22461# A sed program that does not truncate output.
22462SED=$lt_SED
22463
22464# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22465Xsed="\$SED -e 1s/^X//"
22466
22467# A grep program that handles long lines.
22468GREP=$lt_GREP
22469
22470# An ERE matcher.
22471EGREP=$lt_EGREP
22472
22473# A literal string matcher.
22474FGREP=$lt_FGREP
22475
22476# A BSD- or MS-compatible name lister.
22477NM=$lt_NM
22478
22479# Whether we need soft or hard links.
22480LN_S=$lt_LN_S
22481
22482# What is the maximum length of a command?
22483max_cmd_len=$max_cmd_len
22484
22485# Object file suffix (normally "o").
22486objext=$ac_objext
22487
22488# Executable file suffix (normally "").
22489exeext=$exeext
22490
22491# whether the shell understands "unset".
22492lt_unset=$lt_unset
22493
22494# turn spaces into newlines.
22495SP2NL=$lt_lt_SP2NL
22496
22497# turn newlines into spaces.
22498NL2SP=$lt_lt_NL2SP
22499
22500# How to create reloadable object files.
22501reload_flag=$lt_reload_flag
22502reload_cmds=$lt_reload_cmds
22503
22504# An object symbol dumper.
22505OBJDUMP=$lt_OBJDUMP
22506
22507# Method to check whether dependent libraries are shared objects.
22508deplibs_check_method=$lt_deplibs_check_method
22509
22510# Command to use when deplibs_check_method == "file_magic".
22511file_magic_cmd=$lt_file_magic_cmd
22512
22513# The archiver.
22514AR=$lt_AR
22515AR_FLAGS=$lt_AR_FLAGS
22516
22517# A symbol stripping program.
22518STRIP=$lt_STRIP
22519
22520# Commands used to install an old-style archive.
22521RANLIB=$lt_RANLIB
22522old_postinstall_cmds=$lt_old_postinstall_cmds
22523old_postuninstall_cmds=$lt_old_postuninstall_cmds
22524
22525# A C compiler.
22526LTCC=$lt_CC
22527
22528# LTCC compiler flags.
22529LTCFLAGS=$lt_CFLAGS
22530
22531# Take the output of nm and produce a listing of raw symbols and C names.
22532global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22533
22534# Transform the output of nm in a proper C declaration.
22535global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22536
22537# Transform the output of nm in a C name address pair.
22538global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22539
22540# Transform the output of nm in a C name address pair when lib prefix is needed.
22541global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22542
22543# The name of the directory that contains temporary libtool files.
22544objdir=$objdir
22545
22546# Shell to use when invoking shell scripts.
22547SHELL=$lt_SHELL
22548
22549# An echo program that does not interpret backslashes.
22550ECHO=$lt_ECHO
22551
22552# Used to examine libraries when file_magic_cmd begins with "file".
22553MAGIC_CMD=$MAGIC_CMD
22554
22555# Must we lock files when doing compilation?
22556need_locks=$lt_need_locks
22557
22558# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22559DSYMUTIL=$lt_DSYMUTIL
22560
22561# Tool to change global to local symbols on Mac OS X.
22562NMEDIT=$lt_NMEDIT
22563
22564# Tool to manipulate fat objects and archives on Mac OS X.
22565LIPO=$lt_LIPO
22566
22567# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22568OTOOL=$lt_OTOOL
22569
22570# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22571OTOOL64=$lt_OTOOL64
22572
22573# Old archive suffix (normally "a").
22574libext=$libext
22575
22576# Shared library suffix (normally ".so").
22577shrext_cmds=$lt_shrext_cmds
22578
22579# The commands to extract the exported symbol list from a shared archive.
22580extract_expsyms_cmds=$lt_extract_expsyms_cmds
22581
22582# Variables whose values should be saved in libtool wrapper scripts and
22583# restored at link time.
22584variables_saved_for_relink=$lt_variables_saved_for_relink
22585
22586# Do we need the "lib" prefix for modules?
22587need_lib_prefix=$need_lib_prefix
22588
22589# Do we need a version for libraries?
22590need_version=$need_version
22591
22592# Library versioning type.
22593version_type=$version_type
22594
22595# Shared library runtime path variable.
22596runpath_var=$runpath_var
22597
22598# Shared library path variable.
22599shlibpath_var=$shlibpath_var
22600
22601# Is shlibpath searched before the hard-coded library search path?
22602shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22603
22604# Format of library name prefix.
22605libname_spec=$lt_libname_spec
22606
22607# List of archive names.  First name is the real one, the rest are links.
22608# The last name is the one that the linker finds with -lNAME
22609library_names_spec=$lt_library_names_spec
22610
22611# The coded name of the library, if different from the real name.
22612soname_spec=$lt_soname_spec
22613
22614# Command to use after installation of a shared archive.
22615postinstall_cmds=$lt_postinstall_cmds
22616
22617# Command to use after uninstallation of a shared archive.
22618postuninstall_cmds=$lt_postuninstall_cmds
22619
22620# Commands used to finish a libtool library installation in a directory.
22621finish_cmds=$lt_finish_cmds
22622
22623# As "finish_cmds", except a single script fragment to be evaled but
22624# not shown.
22625finish_eval=$lt_finish_eval
22626
22627# Whether we should hardcode library paths into libraries.
22628hardcode_into_libs=$hardcode_into_libs
22629
22630# Compile-time system search path for libraries.
22631sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22632
22633# Run-time system search path for libraries.
22634sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22635
22636# Whether dlopen is supported.
22637dlopen_support=$enable_dlopen
22638
22639# Whether dlopen of programs is supported.
22640dlopen_self=$enable_dlopen_self
22641
22642# Whether dlopen of statically linked programs is supported.
22643dlopen_self_static=$enable_dlopen_self_static
22644
22645# Commands to strip libraries.
22646old_striplib=$lt_old_striplib
22647striplib=$lt_striplib
22648
22649# Assembler program.
22650AS=$AS
22651
22652# DLL creation program.
22653DLLTOOL=$DLLTOOL
22654
22655
22656# The linker used to build libraries.
22657LD=$lt_LD
22658
22659# Commands used to build an old-style archive.
22660old_archive_cmds=$lt_old_archive_cmds
22661
22662# A language specific compiler.
22663CC=$lt_compiler
22664
22665# Is the compiler the GNU compiler?
22666with_gcc=$GCC
22667
22668# Compiler flag to turn off builtin functions.
22669no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22670
22671# How to pass a linker flag through the compiler.
22672wl=$lt_lt_prog_compiler_wl
22673
22674# Additional compiler flags for building library objects.
22675pic_flag=$lt_lt_prog_compiler_pic
22676
22677# Compiler flag to prevent dynamic linking.
22678link_static_flag=$lt_lt_prog_compiler_static
22679
22680# Does compiler simultaneously support -c and -o options?
22681compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22682
22683# Whether or not to add -lc for building shared libraries.
22684build_libtool_need_lc=$archive_cmds_need_lc
22685
22686# Whether or not to disallow shared libs when runtime libs are static.
22687allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22688
22689# Compiler flag to allow reflexive dlopens.
22690export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22691
22692# Compiler flag to generate shared objects directly from archives.
22693whole_archive_flag_spec=$lt_whole_archive_flag_spec
22694
22695# Whether the compiler copes with passing no objects directly.
22696compiler_needs_object=$lt_compiler_needs_object
22697
22698# Create an old-style archive from a shared archive.
22699old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22700
22701# Create a temporary old-style archive to link instead of a shared archive.
22702old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22703
22704# Commands used to build a shared archive.
22705archive_cmds=$lt_archive_cmds
22706archive_expsym_cmds=$lt_archive_expsym_cmds
22707
22708# Commands used to build a loadable module if different from building
22709# a shared archive.
22710module_cmds=$lt_module_cmds
22711module_expsym_cmds=$lt_module_expsym_cmds
22712
22713# Whether we are building with GNU ld or not.
22714with_gnu_ld=$lt_with_gnu_ld
22715
22716# Flag that allows shared libraries with undefined symbols to be built.
22717allow_undefined_flag=$lt_allow_undefined_flag
22718
22719# Flag that enforces no undefined symbols.
22720no_undefined_flag=$lt_no_undefined_flag
22721
22722# Flag to hardcode \$libdir into a binary during linking.
22723# This must work even if \$libdir does not exist
22724hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22725
22726# If ld is used when linking, flag to hardcode \$libdir into a binary
22727# during linking.  This must work even if \$libdir does not exist.
22728hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22729
22730# Whether we need a single "-rpath" flag with a separated argument.
22731hardcode_libdir_separator=$lt_hardcode_libdir_separator
22732
22733# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22734# DIR into the resulting binary.
22735hardcode_direct=$hardcode_direct
22736
22737# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22738# DIR into the resulting binary and the resulting library dependency is
22739# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22740# library is relocated.
22741hardcode_direct_absolute=$hardcode_direct_absolute
22742
22743# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22744# into the resulting binary.
22745hardcode_minus_L=$hardcode_minus_L
22746
22747# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22748# into the resulting binary.
22749hardcode_shlibpath_var=$hardcode_shlibpath_var
22750
22751# Set to "yes" if building a shared library automatically hardcodes DIR
22752# into the library and all subsequent libraries and executables linked
22753# against it.
22754hardcode_automatic=$hardcode_automatic
22755
22756# Set to yes if linker adds runtime paths of dependent libraries
22757# to runtime path list.
22758inherit_rpath=$inherit_rpath
22759
22760# Whether libtool must link a program against all its dependency libraries.
22761link_all_deplibs=$link_all_deplibs
22762
22763# Fix the shell variable \$srcfile for the compiler.
22764fix_srcfile_path=$lt_fix_srcfile_path
22765
22766# Set to "yes" if exported symbols are required.
22767always_export_symbols=$always_export_symbols
22768
22769# The commands to list exported symbols.
22770export_symbols_cmds=$lt_export_symbols_cmds
22771
22772# Symbols that should not be listed in the preloaded symbols.
22773exclude_expsyms=$lt_exclude_expsyms
22774
22775# Symbols that must always be exported.
22776include_expsyms=$lt_include_expsyms
22777
22778# Commands necessary for linking programs (against libraries) with templates.
22779prelink_cmds=$lt_prelink_cmds
22780
22781# Specify filename containing input files.
22782file_list_spec=$lt_file_list_spec
22783
22784# How to hardcode a shared library path into an executable.
22785hardcode_action=$hardcode_action
22786
22787# The directories searched by this compiler when creating a shared library.
22788compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22789
22790# Dependencies to place before and after the objects being linked to
22791# create a shared library.
22792predep_objects=$lt_predep_objects
22793postdep_objects=$lt_postdep_objects
22794predeps=$lt_predeps
22795postdeps=$lt_postdeps
22796
22797# The library search path used internally by the compiler when linking
22798# a shared library.
22799compiler_lib_search_path=$lt_compiler_lib_search_path
22800
22801# ### END LIBTOOL CONFIG
22802
22803_LT_EOF
22804
22805  case $host_os in
22806  aix3*)
22807    cat <<\_LT_EOF >> "$cfgfile"
22808# AIX sometimes has problems with the GCC collect2 program.  For some
22809# reason, if we set the COLLECT_NAMES environment variable, the problems
22810# vanish in a puff of smoke.
22811if test "X${COLLECT_NAMES+set}" != Xset; then
22812  COLLECT_NAMES=
22813  export COLLECT_NAMES
22814fi
22815_LT_EOF
22816    ;;
22817  esac
22818
22819
22820ltmain="$ac_aux_dir/ltmain.sh"
22821
22822
22823  # We use sed instead of cat because bash on DJGPP gets confused if
22824  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22825  # text mode, it properly converts lines to CR/LF.  This bash problem
22826  # is reportedly fixed, but why not run on old versions too?
22827  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22828    || (rm -f "$cfgfile"; exit 1)
22829
22830  case $xsi_shell in
22831  yes)
22832    cat << \_LT_EOF >> "$cfgfile"
22833
22834# func_dirname file append nondir_replacement
22835# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22836# otherwise set result to NONDIR_REPLACEMENT.
22837func_dirname ()
22838{
22839  case ${1} in
22840    */*) func_dirname_result="${1%/*}${2}" ;;
22841    *  ) func_dirname_result="${3}" ;;
22842  esac
22843}
22844
22845# func_basename file
22846func_basename ()
22847{
22848  func_basename_result="${1##*/}"
22849}
22850
22851# func_dirname_and_basename file append nondir_replacement
22852# perform func_basename and func_dirname in a single function
22853# call:
22854#   dirname:  Compute the dirname of FILE.  If nonempty,
22855#             add APPEND to the result, otherwise set result
22856#             to NONDIR_REPLACEMENT.
22857#             value returned in "$func_dirname_result"
22858#   basename: Compute filename of FILE.
22859#             value retuned in "$func_basename_result"
22860# Implementation must be kept synchronized with func_dirname
22861# and func_basename. For efficiency, we do not delegate to
22862# those functions but instead duplicate the functionality here.
22863func_dirname_and_basename ()
22864{
22865  case ${1} in
22866    */*) func_dirname_result="${1%/*}${2}" ;;
22867    *  ) func_dirname_result="${3}" ;;
22868  esac
22869  func_basename_result="${1##*/}"
22870}
22871
22872# func_stripname prefix suffix name
22873# strip PREFIX and SUFFIX off of NAME.
22874# PREFIX and SUFFIX must not contain globbing or regex special
22875# characters, hashes, percent signs, but SUFFIX may contain a leading
22876# dot (in which case that matches only a dot).
22877func_stripname ()
22878{
22879  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22880  # positional parameters, so assign one to ordinary parameter first.
22881  func_stripname_result=${3}
22882  func_stripname_result=${func_stripname_result#"${1}"}
22883  func_stripname_result=${func_stripname_result%"${2}"}
22884}
22885
22886# func_opt_split
22887func_opt_split ()
22888{
22889  func_opt_split_opt=${1%%=*}
22890  func_opt_split_arg=${1#*=}
22891}
22892
22893# func_lo2o object
22894func_lo2o ()
22895{
22896  case ${1} in
22897    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22898    *)    func_lo2o_result=${1} ;;
22899  esac
22900}
22901
22902# func_xform libobj-or-source
22903func_xform ()
22904{
22905  func_xform_result=${1%.*}.lo
22906}
22907
22908# func_arith arithmetic-term...
22909func_arith ()
22910{
22911  func_arith_result=$(( $* ))
22912}
22913
22914# func_len string
22915# STRING may not start with a hyphen.
22916func_len ()
22917{
22918  func_len_result=${#1}
22919}
22920
22921_LT_EOF
22922    ;;
22923  *) # Bourne compatible functions.
22924    cat << \_LT_EOF >> "$cfgfile"
22925
22926# func_dirname file append nondir_replacement
22927# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22928# otherwise set result to NONDIR_REPLACEMENT.
22929func_dirname ()
22930{
22931  # Extract subdirectory from the argument.
22932  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22933  if test "X$func_dirname_result" = "X${1}"; then
22934    func_dirname_result="${3}"
22935  else
22936    func_dirname_result="$func_dirname_result${2}"
22937  fi
22938}
22939
22940# func_basename file
22941func_basename ()
22942{
22943  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22944}
22945
22946
22947# func_stripname prefix suffix name
22948# strip PREFIX and SUFFIX off of NAME.
22949# PREFIX and SUFFIX must not contain globbing or regex special
22950# characters, hashes, percent signs, but SUFFIX may contain a leading
22951# dot (in which case that matches only a dot).
22952# func_strip_suffix prefix name
22953func_stripname ()
22954{
22955  case ${2} in
22956    .*) func_stripname_result=`$ECHO "X${3}" \
22957           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22958    *)  func_stripname_result=`$ECHO "X${3}" \
22959           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22960  esac
22961}
22962
22963# sed scripts:
22964my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22965my_sed_long_arg='1s/^-[^=]*=//'
22966
22967# func_opt_split
22968func_opt_split ()
22969{
22970  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22971  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22972}
22973
22974# func_lo2o object
22975func_lo2o ()
22976{
22977  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22978}
22979
22980# func_xform libobj-or-source
22981func_xform ()
22982{
22983  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22984}
22985
22986# func_arith arithmetic-term...
22987func_arith ()
22988{
22989  func_arith_result=`expr "$@"`
22990}
22991
22992# func_len string
22993# STRING may not start with a hyphen.
22994func_len ()
22995{
22996  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22997}
22998
22999_LT_EOF
23000esac
23001
23002case $lt_shell_append in
23003  yes)
23004    cat << \_LT_EOF >> "$cfgfile"
23005
23006# func_append var value
23007# Append VALUE to the end of shell variable VAR.
23008func_append ()
23009{
23010  eval "$1+=\$2"
23011}
23012_LT_EOF
23013    ;;
23014  *)
23015    cat << \_LT_EOF >> "$cfgfile"
23016
23017# func_append var value
23018# Append VALUE to the end of shell variable VAR.
23019func_append ()
23020{
23021  eval "$1=\$$1\$2"
23022}
23023
23024_LT_EOF
23025    ;;
23026  esac
23027
23028
23029  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23030    || (rm -f "$cfgfile"; exit 1)
23031
23032  mv -f "$cfgfile" "$ofile" ||
23033    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23034  chmod +x "$ofile"
23035
23036
23037    cat <<_LT_EOF >> "$ofile"
23038
23039# ### BEGIN LIBTOOL TAG CONFIG: CXX
23040
23041# The linker used to build libraries.
23042LD=$lt_LD_CXX
23043
23044# Commands used to build an old-style archive.
23045old_archive_cmds=$lt_old_archive_cmds_CXX
23046
23047# A language specific compiler.
23048CC=$lt_compiler_CXX
23049
23050# Is the compiler the GNU compiler?
23051with_gcc=$GCC_CXX
23052
23053# Compiler flag to turn off builtin functions.
23054no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23055
23056# How to pass a linker flag through the compiler.
23057wl=$lt_lt_prog_compiler_wl_CXX
23058
23059# Additional compiler flags for building library objects.
23060pic_flag=$lt_lt_prog_compiler_pic_CXX
23061
23062# Compiler flag to prevent dynamic linking.
23063link_static_flag=$lt_lt_prog_compiler_static_CXX
23064
23065# Does compiler simultaneously support -c and -o options?
23066compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23067
23068# Whether or not to add -lc for building shared libraries.
23069build_libtool_need_lc=$archive_cmds_need_lc_CXX
23070
23071# Whether or not to disallow shared libs when runtime libs are static.
23072allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23073
23074# Compiler flag to allow reflexive dlopens.
23075export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23076
23077# Compiler flag to generate shared objects directly from archives.
23078whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23079
23080# Whether the compiler copes with passing no objects directly.
23081compiler_needs_object=$lt_compiler_needs_object_CXX
23082
23083# Create an old-style archive from a shared archive.
23084old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23085
23086# Create a temporary old-style archive to link instead of a shared archive.
23087old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23088
23089# Commands used to build a shared archive.
23090archive_cmds=$lt_archive_cmds_CXX
23091archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23092
23093# Commands used to build a loadable module if different from building
23094# a shared archive.
23095module_cmds=$lt_module_cmds_CXX
23096module_expsym_cmds=$lt_module_expsym_cmds_CXX
23097
23098# Whether we are building with GNU ld or not.
23099with_gnu_ld=$lt_with_gnu_ld_CXX
23100
23101# Flag that allows shared libraries with undefined symbols to be built.
23102allow_undefined_flag=$lt_allow_undefined_flag_CXX
23103
23104# Flag that enforces no undefined symbols.
23105no_undefined_flag=$lt_no_undefined_flag_CXX
23106
23107# Flag to hardcode \$libdir into a binary during linking.
23108# This must work even if \$libdir does not exist
23109hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23110
23111# If ld is used when linking, flag to hardcode \$libdir into a binary
23112# during linking.  This must work even if \$libdir does not exist.
23113hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
23114
23115# Whether we need a single "-rpath" flag with a separated argument.
23116hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23117
23118# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23119# DIR into the resulting binary.
23120hardcode_direct=$hardcode_direct_CXX
23121
23122# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23123# DIR into the resulting binary and the resulting library dependency is
23124# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23125# library is relocated.
23126hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23127
23128# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23129# into the resulting binary.
23130hardcode_minus_L=$hardcode_minus_L_CXX
23131
23132# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23133# into the resulting binary.
23134hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23135
23136# Set to "yes" if building a shared library automatically hardcodes DIR
23137# into the library and all subsequent libraries and executables linked
23138# against it.
23139hardcode_automatic=$hardcode_automatic_CXX
23140
23141# Set to yes if linker adds runtime paths of dependent libraries
23142# to runtime path list.
23143inherit_rpath=$inherit_rpath_CXX
23144
23145# Whether libtool must link a program against all its dependency libraries.
23146link_all_deplibs=$link_all_deplibs_CXX
23147
23148# Fix the shell variable \$srcfile for the compiler.
23149fix_srcfile_path=$lt_fix_srcfile_path_CXX
23150
23151# Set to "yes" if exported symbols are required.
23152always_export_symbols=$always_export_symbols_CXX
23153
23154# The commands to list exported symbols.
23155export_symbols_cmds=$lt_export_symbols_cmds_CXX
23156
23157# Symbols that should not be listed in the preloaded symbols.
23158exclude_expsyms=$lt_exclude_expsyms_CXX
23159
23160# Symbols that must always be exported.
23161include_expsyms=$lt_include_expsyms_CXX
23162
23163# Commands necessary for linking programs (against libraries) with templates.
23164prelink_cmds=$lt_prelink_cmds_CXX
23165
23166# Specify filename containing input files.
23167file_list_spec=$lt_file_list_spec_CXX
23168
23169# How to hardcode a shared library path into an executable.
23170hardcode_action=$hardcode_action_CXX
23171
23172# The directories searched by this compiler when creating a shared library.
23173compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23174
23175# Dependencies to place before and after the objects being linked to
23176# create a shared library.
23177predep_objects=$lt_predep_objects_CXX
23178postdep_objects=$lt_postdep_objects_CXX
23179predeps=$lt_predeps_CXX
23180postdeps=$lt_postdeps_CXX
23181
23182# The library search path used internally by the compiler when linking
23183# a shared library.
23184compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23185
23186# ### END LIBTOOL TAG CONFIG: CXX
23187_LT_EOF
23188
23189 ;;
23190    "po-directories":C)
23191    for ac_file in $CONFIG_FILES; do
23192      # Support "outfile[:infile[:infile...]]"
23193      case "$ac_file" in
23194        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23195      esac
23196      # PO directories have a Makefile.in generated from Makefile.in.in.
23197      case "$ac_file" in */Makefile.in)
23198        # Adjust a relative srcdir.
23199        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23200        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23201        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23202        # In autoconf-2.13 it is called $ac_given_srcdir.
23203        # In autoconf-2.50 it is called $srcdir.
23204        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23205        case "$ac_given_srcdir" in
23206          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23207          /*) top_srcdir="$ac_given_srcdir" ;;
23208          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
23209        esac
23210        # Treat a directory as a PO directory if and only if it has a
23211        # POTFILES.in file. This allows packages to have multiple PO
23212        # directories under different names or in different locations.
23213        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23214          rm -f "$ac_dir/POTFILES"
23215          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23216          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23217          POMAKEFILEDEPS="POTFILES.in"
23218          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23219          # on $ac_dir but don't depend on user-specified configuration
23220          # parameters.
23221          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23222            # The LINGUAS file contains the set of available languages.
23223            if test -n "$OBSOLETE_ALL_LINGUAS"; then
23224              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23225            fi
23226            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23227            # Hide the ALL_LINGUAS assigment from automake < 1.5.
23228            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23229            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23230          else
23231            # The set of available languages was given in configure.in.
23232            # Hide the ALL_LINGUAS assigment from automake < 1.5.
23233            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23234          fi
23235          # Compute POFILES
23236          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23237          # Compute UPDATEPOFILES
23238          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23239          # Compute DUMMYPOFILES
23240          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23241          # Compute GMOFILES
23242          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23243          case "$ac_given_srcdir" in
23244            .) srcdirpre= ;;
23245            *) srcdirpre='$(srcdir)/' ;;
23246          esac
23247          POFILES=
23248          UPDATEPOFILES=
23249          DUMMYPOFILES=
23250          GMOFILES=
23251          for lang in $ALL_LINGUAS; do
23252            POFILES="$POFILES $srcdirpre$lang.po"
23253            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23254            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23255            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23256          done
23257          # CATALOGS depends on both $ac_dir and the user's LINGUAS
23258          # environment variable.
23259          INST_LINGUAS=
23260          if test -n "$ALL_LINGUAS"; then
23261            for presentlang in $ALL_LINGUAS; do
23262              useit=no
23263              if test "%UNSET%" != "$LINGUAS"; then
23264                desiredlanguages="$LINGUAS"
23265              else
23266                desiredlanguages="$ALL_LINGUAS"
23267              fi
23268              for desiredlang in $desiredlanguages; do
23269                # Use the presentlang catalog if desiredlang is
23270                #   a. equal to presentlang, or
23271                #   b. a variant of presentlang (because in this case,
23272                #      presentlang can be used as a fallback for messages
23273                #      which are not translated in the desiredlang catalog).
23274                case "$desiredlang" in
23275                  "$presentlang"*) useit=yes;;
23276                esac
23277              done
23278              if test $useit = yes; then
23279                INST_LINGUAS="$INST_LINGUAS $presentlang"
23280              fi
23281            done
23282          fi
23283          CATALOGS=
23284          if test -n "$INST_LINGUAS"; then
23285            for lang in $INST_LINGUAS; do
23286              CATALOGS="$CATALOGS $lang.gmo"
23287            done
23288          fi
23289          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23290          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"
23291          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23292            if test -f "$f"; then
23293              case "$f" in
23294                *.orig | *.bak | *~) ;;
23295                *) cat "$f" >> "$ac_dir/Makefile" ;;
23296              esac
23297            fi
23298          done
23299        fi
23300        ;;
23301      esac
23302    done ;;
23303
23304  esac
23305done # for ac_tag
23306
23307
23308as_fn_exit 0
23309_ACEOF
23310ac_clean_files=$ac_clean_files_save
23311
23312test $ac_write_fail = 0 ||
23313  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23314
23315
23316# configure is writing to config.log, and then calls config.status.
23317# config.status does its own redirection, appending to config.log.
23318# Unfortunately, on DOS this fails, as config.log is still kept open
23319# by configure, so config.status won't be able to write to it; its
23320# output is simply discarded.  So we exec the FD to /dev/null,
23321# effectively closing config.log, so it can be properly (re)opened and
23322# appended to by config.status.  When coming back to configure, we
23323# need to make the FD available again.
23324if test "$no_create" != yes; then
23325  ac_cs_success=:
23326  ac_config_status_args=
23327  test "$silent" = yes &&
23328    ac_config_status_args="$ac_config_status_args --quiet"
23329  exec 5>/dev/null
23330  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23331  exec 5>>config.log
23332  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23333  # would make configure fail if this is the last instruction.
23334  $ac_cs_success || as_fn_exit 1
23335fi
23336if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23337  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23338$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23339fi
23340
23341