1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for MFS 3.0.116.
4#
5# Report bugs to <bugs@moosefs.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and bugs@moosefs.com
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='MFS'
592PACKAGE_TARNAME='moosefs'
593PACKAGE_VERSION='3.0.116'
594PACKAGE_STRING='MFS 3.0.116'
595PACKAGE_BUGREPORT='bugs@moosefs.com'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637buildno
638release
639LIGHT_MFS
640PROTO_BASE
641DEFAULT_MASTERNAME
642DEFAULT_CGISERV_HTTP_PORT
643DEFAULT_CS_DATA_PORT
644DEFAULT_MASTER_CLIENT_PORT
645DEFAULT_MASTER_CS_PORT
646DEFAULT_MASTER_CONTROL_PORT
647DEFAULT_PORTBASE
648DEFAULT_GROUP
649DEFAULT_USER
650ZLIB_LIBS
651CREATE_DATA_DIR_FALSE
652CREATE_DATA_DIR_TRUE
653CREATE_ETC_MFS_FALSE
654CREATE_ETC_MFS_TRUE
655BUILD_CLIENT_FALSE
656BUILD_CLIENT_TRUE
657WITH_MOUNT_FALSE
658WITH_MOUNT_TRUE
659FUSE_LIBS
660FUSE_CFLAGS
661WITH_BDEV_FALSE
662WITH_BDEV_TRUE
663BUILD_NETDUMP_FALSE
664BUILD_NETDUMP_TRUE
665PCAP_LIBS
666BUILD_CHUNKSERVER_FALSE
667BUILD_CHUNKSERVER_TRUE
668BUILD_SUPERVISOR_FALSE
669BUILD_SUPERVISOR_TRUE
670BUILD_METALOGGER_FALSE
671BUILD_METALOGGER_TRUE
672BUILD_MASTER_FALSE
673BUILD_MASTER_TRUE
674CGISERVDIR
675CGIDIR
676INSTALL_MOOSEFS_MOUNT_FALSE
677INSTALL_MOOSEFS_MOUNT_TRUE
678INSTALL_CGISERV_FALSE
679INSTALL_CGISERV_TRUE
680INSTALL_CLI_FALSE
681INSTALL_CLI_TRUE
682INSTALL_CGI_FALSE
683INSTALL_CGI_TRUE
684BUILD_SCRIPTS_FALSE
685BUILD_SCRIPTS_TRUE
686WITH_PYTHON_FALSE
687WITH_PYTHON_TRUE
688PYTHON
689WITH_SYSTEMD_FALSE
690WITH_SYSTEMD_TRUE
691systemdunitdir
692SYSTEMD_LIBS
693SYSTEMD_CFLAGS
694PKG_CONFIG_LIBDIR
695PKG_CONFIG_PATH
696PKG_CONFIG
697KILL
698LIBOBJS
699MATH_LIBS
700PTHREAD_CFLAGS
701PTHREAD_LIBS
702PTHREAD_CC
703ax_pthread_config
704root_sbindir
705CPP
706LT_SYS_LIBRARY_PATH
707OTOOL64
708OTOOL
709LIPO
710NMEDIT
711DSYMUTIL
712MANIFEST_TOOL
713RANLIB
714DLLTOOL
715OBJDUMP
716NM
717ac_ct_DUMPBIN
718DUMPBIN
719LD
720FGREP
721EGREP
722GREP
723SED
724LIBTOOL
725LN_S
726am__fastdepCC_FALSE
727am__fastdepCC_TRUE
728CCDEPMODE
729am__nodep
730AMDEPBACKSLASH
731AMDEP_FALSE
732AMDEP_TRUE
733am__include
734DEPDIR
735OBJEXT
736EXEEXT
737ac_ct_CC
738CPPFLAGS
739LDFLAGS
740CFLAGS
741CC
742ac_ct_AR
743AR
744RUN_PATH
745SBIN_PATH
746BIN_PATH
747ETC_PATH
748DATA_PATH
749AM_BACKSLASH
750AM_DEFAULT_VERBOSITY
751AM_DEFAULT_V
752AM_V
753am__untar
754am__tar
755AMTAR
756am__leading_dot
757SET_MAKE
758AWK
759mkdir_p
760MKDIR_P
761INSTALL_STRIP_PROGRAM
762STRIP
763install_sh
764MAKEINFO
765AUTOHEADER
766AUTOMAKE
767AUTOCONF
768ACLOCAL
769VERSION
770PACKAGE
771CYGPATH_W
772am__isrc
773INSTALL_DATA
774INSTALL_SCRIPT
775INSTALL_PROGRAM
776target_os
777target_vendor
778target_cpu
779target
780host_os
781host_vendor
782host_cpu
783host
784build_os
785build_vendor
786build_cpu
787build
788target_alias
789host_alias
790build_alias
791LIBS
792ECHO_T
793ECHO_N
794ECHO_C
795DEFS
796mandir
797localedir
798libdir
799psdir
800pdfdir
801dvidir
802htmldir
803infodir
804docdir
805oldincludedir
806includedir
807localstatedir
808sharedstatedir
809sysconfdir
810datadir
811datarootdir
812libexecdir
813sbindir
814bindir
815program_transform_name
816prefix
817exec_prefix
818PACKAGE_URL
819PACKAGE_BUGREPORT
820PACKAGE_STRING
821PACKAGE_VERSION
822PACKAGE_TARNAME
823PACKAGE_NAME
824PATH_SEPARATOR
825SHELL
826am__quote'
827ac_subst_files=''
828ac_user_opts='
829enable_option_checking
830enable_silent_rules
831enable_dependency_tracking
832enable_shared
833enable_static
834with_pic
835enable_fast_install
836with_aix_soname
837with_gnu_ld
838with_sysroot
839enable_libtool_lock
840enable_externalcflags
841enable_gperftools
842enable_debug
843enable_largefile
844enable_all
845enable_mfsmaster
846enable_mfsmetalogger
847enable_mfssupervisor
848enable_mfschunkserver
849enable_mfsmount
850enable_mfsbdev
851enable_mfscgi
852enable_mfscli
853enable_mfscgiserv
854enable_mfsnetdump
855with_mfscgi_dir
856with_mfscgiserv_dir
857with_zlib
858with_systemdsystemunitdir
859with_default_user
860with_default_group
861with_default_portbase
862with_default_mastername
863'
864      ac_precious_vars='build_alias
865host_alias
866target_alias
867CC
868CFLAGS
869LDFLAGS
870LIBS
871CPPFLAGS
872LT_SYS_LIBRARY_PATH
873CPP
874PKG_CONFIG
875PKG_CONFIG_PATH
876PKG_CONFIG_LIBDIR
877SYSTEMD_CFLAGS
878SYSTEMD_LIBS
879FUSE_CFLAGS
880FUSE_LIBS'
881
882
883# Initialize some variables set by options.
884ac_init_help=
885ac_init_version=false
886ac_unrecognized_opts=
887ac_unrecognized_sep=
888# The variables have the same names as the options, with
889# dashes changed to underlines.
890cache_file=/dev/null
891exec_prefix=NONE
892no_create=
893no_recursion=
894prefix=NONE
895program_prefix=NONE
896program_suffix=NONE
897program_transform_name=s,x,x,
898silent=
899site=
900srcdir=
901verbose=
902x_includes=NONE
903x_libraries=NONE
904
905# Installation directory options.
906# These are left unexpanded so users can "make install exec_prefix=/foo"
907# and all the variables that are supposed to be based on exec_prefix
908# by default will actually change.
909# Use braces instead of parens because sh, perl, etc. also accept them.
910# (The list follows the same order as the GNU Coding Standards.)
911bindir='${exec_prefix}/bin'
912sbindir='${exec_prefix}/sbin'
913libexecdir='${exec_prefix}/libexec'
914datarootdir='${prefix}/share'
915datadir='${datarootdir}'
916sysconfdir='${prefix}/etc'
917sharedstatedir='${prefix}/com'
918localstatedir='${prefix}/var'
919includedir='${prefix}/include'
920oldincludedir='/usr/include'
921docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
922infodir='${datarootdir}/info'
923htmldir='${docdir}'
924dvidir='${docdir}'
925pdfdir='${docdir}'
926psdir='${docdir}'
927libdir='${exec_prefix}/lib'
928localedir='${datarootdir}/locale'
929mandir='${datarootdir}/man'
930
931ac_prev=
932ac_dashdash=
933for ac_option
934do
935  # If the previous option needs an argument, assign it.
936  if test -n "$ac_prev"; then
937    eval $ac_prev=\$ac_option
938    ac_prev=
939    continue
940  fi
941
942  case $ac_option in
943  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944  *=)   ac_optarg= ;;
945  *)    ac_optarg=yes ;;
946  esac
947
948  # Accept the important Cygnus configure options, so we can diagnose typos.
949
950  case $ac_dashdash$ac_option in
951  --)
952    ac_dashdash=yes ;;
953
954  -bindir | --bindir | --bindi | --bind | --bin | --bi)
955    ac_prev=bindir ;;
956  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957    bindir=$ac_optarg ;;
958
959  -build | --build | --buil | --bui | --bu)
960    ac_prev=build_alias ;;
961  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962    build_alias=$ac_optarg ;;
963
964  -cache-file | --cache-file | --cache-fil | --cache-fi \
965  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966    ac_prev=cache_file ;;
967  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969    cache_file=$ac_optarg ;;
970
971  --config-cache | -C)
972    cache_file=config.cache ;;
973
974  -datadir | --datadir | --datadi | --datad)
975    ac_prev=datadir ;;
976  -datadir=* | --datadir=* | --datadi=* | --datad=*)
977    datadir=$ac_optarg ;;
978
979  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980  | --dataroo | --dataro | --datar)
981    ac_prev=datarootdir ;;
982  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984    datarootdir=$ac_optarg ;;
985
986  -disable-* | --disable-*)
987    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988    # Reject names that are not valid shell variable names.
989    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990      as_fn_error $? "invalid feature name: $ac_useropt"
991    ac_useropt_orig=$ac_useropt
992    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993    case $ac_user_opts in
994      *"
995"enable_$ac_useropt"
996"*) ;;
997      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998	 ac_unrecognized_sep=', ';;
999    esac
1000    eval enable_$ac_useropt=no ;;
1001
1002  -docdir | --docdir | --docdi | --doc | --do)
1003    ac_prev=docdir ;;
1004  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005    docdir=$ac_optarg ;;
1006
1007  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008    ac_prev=dvidir ;;
1009  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010    dvidir=$ac_optarg ;;
1011
1012  -enable-* | --enable-*)
1013    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014    # Reject names that are not valid shell variable names.
1015    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016      as_fn_error $? "invalid feature name: $ac_useropt"
1017    ac_useropt_orig=$ac_useropt
1018    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019    case $ac_user_opts in
1020      *"
1021"enable_$ac_useropt"
1022"*) ;;
1023      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024	 ac_unrecognized_sep=', ';;
1025    esac
1026    eval enable_$ac_useropt=\$ac_optarg ;;
1027
1028  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030  | --exec | --exe | --ex)
1031    ac_prev=exec_prefix ;;
1032  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034  | --exec=* | --exe=* | --ex=*)
1035    exec_prefix=$ac_optarg ;;
1036
1037  -gas | --gas | --ga | --g)
1038    # Obsolete; use --with-gas.
1039    with_gas=yes ;;
1040
1041  -help | --help | --hel | --he | -h)
1042    ac_init_help=long ;;
1043  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044    ac_init_help=recursive ;;
1045  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046    ac_init_help=short ;;
1047
1048  -host | --host | --hos | --ho)
1049    ac_prev=host_alias ;;
1050  -host=* | --host=* | --hos=* | --ho=*)
1051    host_alias=$ac_optarg ;;
1052
1053  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054    ac_prev=htmldir ;;
1055  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056  | --ht=*)
1057    htmldir=$ac_optarg ;;
1058
1059  -includedir | --includedir | --includedi | --included | --include \
1060  | --includ | --inclu | --incl | --inc)
1061    ac_prev=includedir ;;
1062  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063  | --includ=* | --inclu=* | --incl=* | --inc=*)
1064    includedir=$ac_optarg ;;
1065
1066  -infodir | --infodir | --infodi | --infod | --info | --inf)
1067    ac_prev=infodir ;;
1068  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069    infodir=$ac_optarg ;;
1070
1071  -libdir | --libdir | --libdi | --libd)
1072    ac_prev=libdir ;;
1073  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074    libdir=$ac_optarg ;;
1075
1076  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077  | --libexe | --libex | --libe)
1078    ac_prev=libexecdir ;;
1079  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080  | --libexe=* | --libex=* | --libe=*)
1081    libexecdir=$ac_optarg ;;
1082
1083  -localedir | --localedir | --localedi | --localed | --locale)
1084    ac_prev=localedir ;;
1085  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086    localedir=$ac_optarg ;;
1087
1088  -localstatedir | --localstatedir | --localstatedi | --localstated \
1089  | --localstate | --localstat | --localsta | --localst | --locals)
1090    ac_prev=localstatedir ;;
1091  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093    localstatedir=$ac_optarg ;;
1094
1095  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096    ac_prev=mandir ;;
1097  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098    mandir=$ac_optarg ;;
1099
1100  -nfp | --nfp | --nf)
1101    # Obsolete; use --without-fp.
1102    with_fp=no ;;
1103
1104  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105  | --no-cr | --no-c | -n)
1106    no_create=yes ;;
1107
1108  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110    no_recursion=yes ;;
1111
1112  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114  | --oldin | --oldi | --old | --ol | --o)
1115    ac_prev=oldincludedir ;;
1116  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119    oldincludedir=$ac_optarg ;;
1120
1121  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122    ac_prev=prefix ;;
1123  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124    prefix=$ac_optarg ;;
1125
1126  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127  | --program-pre | --program-pr | --program-p)
1128    ac_prev=program_prefix ;;
1129  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131    program_prefix=$ac_optarg ;;
1132
1133  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134  | --program-suf | --program-su | --program-s)
1135    ac_prev=program_suffix ;;
1136  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138    program_suffix=$ac_optarg ;;
1139
1140  -program-transform-name | --program-transform-name \
1141  | --program-transform-nam | --program-transform-na \
1142  | --program-transform-n | --program-transform- \
1143  | --program-transform | --program-transfor \
1144  | --program-transfo | --program-transf \
1145  | --program-trans | --program-tran \
1146  | --progr-tra | --program-tr | --program-t)
1147    ac_prev=program_transform_name ;;
1148  -program-transform-name=* | --program-transform-name=* \
1149  | --program-transform-nam=* | --program-transform-na=* \
1150  | --program-transform-n=* | --program-transform-=* \
1151  | --program-transform=* | --program-transfor=* \
1152  | --program-transfo=* | --program-transf=* \
1153  | --program-trans=* | --program-tran=* \
1154  | --progr-tra=* | --program-tr=* | --program-t=*)
1155    program_transform_name=$ac_optarg ;;
1156
1157  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158    ac_prev=pdfdir ;;
1159  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160    pdfdir=$ac_optarg ;;
1161
1162  -psdir | --psdir | --psdi | --psd | --ps)
1163    ac_prev=psdir ;;
1164  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165    psdir=$ac_optarg ;;
1166
1167  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168  | -silent | --silent | --silen | --sile | --sil)
1169    silent=yes ;;
1170
1171  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172    ac_prev=sbindir ;;
1173  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174  | --sbi=* | --sb=*)
1175    sbindir=$ac_optarg ;;
1176
1177  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179  | --sharedst | --shareds | --shared | --share | --shar \
1180  | --sha | --sh)
1181    ac_prev=sharedstatedir ;;
1182  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185  | --sha=* | --sh=*)
1186    sharedstatedir=$ac_optarg ;;
1187
1188  -site | --site | --sit)
1189    ac_prev=site ;;
1190  -site=* | --site=* | --sit=*)
1191    site=$ac_optarg ;;
1192
1193  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194    ac_prev=srcdir ;;
1195  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196    srcdir=$ac_optarg ;;
1197
1198  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199  | --syscon | --sysco | --sysc | --sys | --sy)
1200    ac_prev=sysconfdir ;;
1201  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203    sysconfdir=$ac_optarg ;;
1204
1205  -target | --target | --targe | --targ | --tar | --ta | --t)
1206    ac_prev=target_alias ;;
1207  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208    target_alias=$ac_optarg ;;
1209
1210  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211    verbose=yes ;;
1212
1213  -version | --version | --versio | --versi | --vers | -V)
1214    ac_init_version=: ;;
1215
1216  -with-* | --with-*)
1217    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218    # Reject names that are not valid shell variable names.
1219    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220      as_fn_error $? "invalid package name: $ac_useropt"
1221    ac_useropt_orig=$ac_useropt
1222    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223    case $ac_user_opts in
1224      *"
1225"with_$ac_useropt"
1226"*) ;;
1227      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228	 ac_unrecognized_sep=', ';;
1229    esac
1230    eval with_$ac_useropt=\$ac_optarg ;;
1231
1232  -without-* | --without-*)
1233    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234    # Reject names that are not valid shell variable names.
1235    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236      as_fn_error $? "invalid package name: $ac_useropt"
1237    ac_useropt_orig=$ac_useropt
1238    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239    case $ac_user_opts in
1240      *"
1241"with_$ac_useropt"
1242"*) ;;
1243      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244	 ac_unrecognized_sep=', ';;
1245    esac
1246    eval with_$ac_useropt=no ;;
1247
1248  --x)
1249    # Obsolete; use --with-x.
1250    with_x=yes ;;
1251
1252  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253  | --x-incl | --x-inc | --x-in | --x-i)
1254    ac_prev=x_includes ;;
1255  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257    x_includes=$ac_optarg ;;
1258
1259  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261    ac_prev=x_libraries ;;
1262  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264    x_libraries=$ac_optarg ;;
1265
1266  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1267Try \`$0 --help' for more information"
1268    ;;
1269
1270  *=*)
1271    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272    # Reject names that are not valid shell variable names.
1273    case $ac_envvar in #(
1274      '' | [0-9]* | *[!_$as_cr_alnum]* )
1275      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1276    esac
1277    eval $ac_envvar=\$ac_optarg
1278    export $ac_envvar ;;
1279
1280  *)
1281    # FIXME: should be removed in autoconf 3.0.
1282    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1286    ;;
1287
1288  esac
1289done
1290
1291if test -n "$ac_prev"; then
1292  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293  as_fn_error $? "missing argument to $ac_option"
1294fi
1295
1296if test -n "$ac_unrecognized_opts"; then
1297  case $enable_option_checking in
1298    no) ;;
1299    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1300    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301  esac
1302fi
1303
1304# Check all directory arguments for consistency.
1305for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306		datadir sysconfdir sharedstatedir localstatedir includedir \
1307		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308		libdir localedir mandir
1309do
1310  eval ac_val=\$$ac_var
1311  # Remove trailing slashes.
1312  case $ac_val in
1313    */ )
1314      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315      eval $ac_var=\$ac_val;;
1316  esac
1317  # Be sure to have absolute directory names.
1318  case $ac_val in
1319    [\\/$]* | ?:[\\/]* )  continue;;
1320    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321  esac
1322  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1323done
1324
1325# There might be people who depend on the old broken behavior: `$host'
1326# used to hold the argument of --host etc.
1327# FIXME: To remove some day.
1328build=$build_alias
1329host=$host_alias
1330target=$target_alias
1331
1332# FIXME: To remove some day.
1333if test "x$host_alias" != x; then
1334  if test "x$build_alias" = x; then
1335    cross_compiling=maybe
1336  elif test "x$build_alias" != "x$host_alias"; then
1337    cross_compiling=yes
1338  fi
1339fi
1340
1341ac_tool_prefix=
1342test -n "$host_alias" && ac_tool_prefix=$host_alias-
1343
1344test "$silent" = yes && exec 6>/dev/null
1345
1346
1347ac_pwd=`pwd` && test -n "$ac_pwd" &&
1348ac_ls_di=`ls -di .` &&
1349ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1350  as_fn_error $? "working directory cannot be determined"
1351test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352  as_fn_error $? "pwd does not report name of working directory"
1353
1354
1355# Find the source files, if location was not specified.
1356if test -z "$srcdir"; then
1357  ac_srcdir_defaulted=yes
1358  # Try the directory containing this script, then the parent directory.
1359  ac_confdir=`$as_dirname -- "$as_myself" ||
1360$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361	 X"$as_myself" : 'X\(//\)[^/]' \| \
1362	 X"$as_myself" : 'X\(//\)$' \| \
1363	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1364$as_echo X"$as_myself" |
1365    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366	    s//\1/
1367	    q
1368	  }
1369	  /^X\(\/\/\)[^/].*/{
1370	    s//\1/
1371	    q
1372	  }
1373	  /^X\(\/\/\)$/{
1374	    s//\1/
1375	    q
1376	  }
1377	  /^X\(\/\).*/{
1378	    s//\1/
1379	    q
1380	  }
1381	  s/.*/./; q'`
1382  srcdir=$ac_confdir
1383  if test ! -r "$srcdir/$ac_unique_file"; then
1384    srcdir=..
1385  fi
1386else
1387  ac_srcdir_defaulted=no
1388fi
1389if test ! -r "$srcdir/$ac_unique_file"; then
1390  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1392fi
1393ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394ac_abs_confdir=`(
1395	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1396	pwd)`
1397# When building in place, set srcdir=.
1398if test "$ac_abs_confdir" = "$ac_pwd"; then
1399  srcdir=.
1400fi
1401# Remove unnecessary trailing slashes from srcdir.
1402# Double slashes in file names in object file debugging info
1403# mess up M-x gdb in Emacs.
1404case $srcdir in
1405*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406esac
1407for ac_var in $ac_precious_vars; do
1408  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409  eval ac_env_${ac_var}_value=\$${ac_var}
1410  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412done
1413
1414#
1415# Report the --help message.
1416#
1417if test "$ac_init_help" = "long"; then
1418  # Omit some internal or obsolete options to make the list less imposing.
1419  # This message is too long to be a string in the A/UX 3.1 sh.
1420  cat <<_ACEOF
1421\`configure' configures MFS 3.0.116 to adapt to many kinds of systems.
1422
1423Usage: $0 [OPTION]... [VAR=VALUE]...
1424
1425To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426VAR=VALUE.  See below for descriptions of some of the useful variables.
1427
1428Defaults for the options are specified in brackets.
1429
1430Configuration:
1431  -h, --help              display this help and exit
1432      --help=short        display options specific to this package
1433      --help=recursive    display the short help of all the included packages
1434  -V, --version           display version information and exit
1435  -q, --quiet, --silent   do not print \`checking ...' messages
1436      --cache-file=FILE   cache test results in FILE [disabled]
1437  -C, --config-cache      alias for \`--cache-file=config.cache'
1438  -n, --no-create         do not create output files
1439      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1440
1441Installation directories:
1442  --prefix=PREFIX         install architecture-independent files in PREFIX
1443                          [$ac_default_prefix]
1444  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1445                          [PREFIX]
1446
1447By default, \`make install' will install all the files in
1448\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1449an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450for instance \`--prefix=\$HOME'.
1451
1452For better control, use the options below.
1453
1454Fine tuning of the installation directories:
1455  --bindir=DIR            user executables [EPREFIX/bin]
1456  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1457  --libexecdir=DIR        program executables [EPREFIX/libexec]
1458  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1459  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1460  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1461  --libdir=DIR            object code libraries [EPREFIX/lib]
1462  --includedir=DIR        C header files [PREFIX/include]
1463  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1464  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1465  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1466  --infodir=DIR           info documentation [DATAROOTDIR/info]
1467  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1468  --mandir=DIR            man documentation [DATAROOTDIR/man]
1469  --docdir=DIR            documentation root [DATAROOTDIR/doc/moosefs]
1470  --htmldir=DIR           html documentation [DOCDIR]
1471  --dvidir=DIR            dvi documentation [DOCDIR]
1472  --pdfdir=DIR            pdf documentation [DOCDIR]
1473  --psdir=DIR             ps documentation [DOCDIR]
1474_ACEOF
1475
1476  cat <<\_ACEOF
1477
1478Program names:
1479  --program-prefix=PREFIX            prepend PREFIX to installed program names
1480  --program-suffix=SUFFIX            append SUFFIX to installed program names
1481  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1482
1483System types:
1484  --build=BUILD     configure for building on BUILD [guessed]
1485  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1486  --target=TARGET   configure for building compilers for TARGET [HOST]
1487_ACEOF
1488fi
1489
1490if test -n "$ac_init_help"; then
1491  case $ac_init_help in
1492     short | recursive ) echo "Configuration of MFS 3.0.116:";;
1493   esac
1494  cat <<\_ACEOF
1495
1496Optional Features:
1497  --disable-option-checking  ignore unrecognized --enable/--with options
1498  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1499  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1500  --enable-silent-rules   less verbose build output (undo: "make V=1")
1501  --disable-silent-rules  verbose build output (undo: "make V=0")
1502  --enable-dependency-tracking
1503                          do not reject slow dependency extractors
1504  --disable-dependency-tracking
1505                          speeds up one-time build
1506  --enable-shared[=PKGS]  build shared libraries [default=yes]
1507  --enable-static[=PKGS]  build static libraries [default=yes]
1508  --enable-fast-install[=PKGS]
1509                          optimize for fast installation [default=yes]
1510  --disable-libtool-lock  avoid locking (might break parallel builds)
1511  --enable-externalcflags Build with default CFLAGS
1512  --enable-gperftools     Build with google perftools on (debug only)
1513  --enable-debug          Build version without optimizations
1514  --disable-largefile     omit support for large files
1515  --disable-all           By default do not build anything except for manually
1516                          enabled modules
1517  --disable-mfsmaster     Do not build mfsmaster
1518  --disable-mfsmetalogger Do not build mfsmetalogger
1519  --disable-mfssupervisor Do not build mfssupervisor
1520  --disable-mfschunkserver
1521                          Do not build mfschunkserver
1522  --disable-mfsmount      Do not build mfsmount
1523  --disable-mfsbdev       Do not build mfsbdev
1524  --disable-mfscgi        Do not install CGI scripts
1525  --disable-mfscli        Do not install CLI script
1526  --disable-mfscgiserv    Do not install CGI server
1527  --disable-mfsnetdump    Do not build mfsnetdump
1528
1529Optional Packages:
1530  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1531  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1532  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1533                          both]
1534  --with-aix-soname=aix|svr4|both
1535                          shared library versioning (aka "SONAME") variant to
1536                          provide on AIX, [default=aix].
1537  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1538  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1539                          compiler's sysroot if not specified).
1540  --with-mfscgi-dir=CGIDIR
1541                          Choose CGI directory (default=DATADIR/mfscgi)
1542  --with-mfscgiserv-dir=CGISERVDIR
1543                          Choose CGI directory (default=SBINDIR)
1544  --without-zlib          Do not use zlib for PNG compression
1545  --with-systemdsystemunitdir=PATH
1546                          Path to install systemd units (no=omit)
1547  --with-default-user=USER
1548                          Choose default user to run daemons as
1549  --with-default-group=GROUP
1550                          Choose default group to run daemons as
1551  --with-default-portbase=NUMBER
1552                          Default communiaction port base (default=9400, which
1553                          means ports 9419,9420,etc.)
1554  --with-default-mastername=MASTER_DNS_NAME
1555                          Defines default DNS name pointing to all masters
1556                          (default=mfsmaster)
1557
1558Some influential environment variables:
1559  CC          C compiler command
1560  CFLAGS      C compiler flags
1561  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1562              nonstandard directory <lib dir>
1563  LIBS        libraries to pass to the linker, e.g. -l<library>
1564  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1565              you have headers in a nonstandard directory <include dir>
1566  LT_SYS_LIBRARY_PATH
1567              User-defined run-time library search path.
1568  CPP         C preprocessor
1569  PKG_CONFIG  path to pkg-config utility
1570  PKG_CONFIG_PATH
1571              directories to add to pkg-config's search path
1572  PKG_CONFIG_LIBDIR
1573              path overriding pkg-config's built-in search path
1574  SYSTEMD_CFLAGS
1575              C compiler flags for SYSTEMD, overriding pkg-config
1576  SYSTEMD_LIBS
1577              linker flags for SYSTEMD, overriding pkg-config
1578  FUSE_CFLAGS C compiler flags for FUSE, overriding pkg-config
1579  FUSE_LIBS   linker flags for FUSE, overriding pkg-config
1580
1581Use these variables to override the choices made by `configure' or to help
1582it to find libraries and programs with nonstandard names/locations.
1583
1584Report bugs to <bugs@moosefs.com>.
1585_ACEOF
1586ac_status=$?
1587fi
1588
1589if test "$ac_init_help" = "recursive"; then
1590  # If there are subdirs, report their specific --help.
1591  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1592    test -d "$ac_dir" ||
1593      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1594      continue
1595    ac_builddir=.
1596
1597case "$ac_dir" in
1598.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599*)
1600  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1601  # A ".." for each directory in $ac_dir_suffix.
1602  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1603  case $ac_top_builddir_sub in
1604  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606  esac ;;
1607esac
1608ac_abs_top_builddir=$ac_pwd
1609ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610# for backward compatibility:
1611ac_top_builddir=$ac_top_build_prefix
1612
1613case $srcdir in
1614  .)  # We are building in place.
1615    ac_srcdir=.
1616    ac_top_srcdir=$ac_top_builddir_sub
1617    ac_abs_top_srcdir=$ac_pwd ;;
1618  [\\/]* | ?:[\\/]* )  # Absolute name.
1619    ac_srcdir=$srcdir$ac_dir_suffix;
1620    ac_top_srcdir=$srcdir
1621    ac_abs_top_srcdir=$srcdir ;;
1622  *) # Relative name.
1623    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624    ac_top_srcdir=$ac_top_build_prefix$srcdir
1625    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626esac
1627ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628
1629    cd "$ac_dir" || { ac_status=$?; continue; }
1630    # Check for guested configure.
1631    if test -f "$ac_srcdir/configure.gnu"; then
1632      echo &&
1633      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634    elif test -f "$ac_srcdir/configure"; then
1635      echo &&
1636      $SHELL "$ac_srcdir/configure" --help=recursive
1637    else
1638      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639    fi || ac_status=$?
1640    cd "$ac_pwd" || { ac_status=$?; break; }
1641  done
1642fi
1643
1644test -n "$ac_init_help" && exit $ac_status
1645if $ac_init_version; then
1646  cat <<\_ACEOF
1647MFS configure 3.0.116
1648generated by GNU Autoconf 2.69
1649
1650Copyright (C) 2012 Free Software Foundation, Inc.
1651This configure script is free software; the Free Software Foundation
1652gives unlimited permission to copy, distribute and modify it.
1653_ACEOF
1654  exit
1655fi
1656
1657## ------------------------ ##
1658## Autoconf initialization. ##
1659## ------------------------ ##
1660
1661# ac_fn_c_try_compile LINENO
1662# --------------------------
1663# Try to compile conftest.$ac_ext, and return whether this succeeded.
1664ac_fn_c_try_compile ()
1665{
1666  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667  rm -f conftest.$ac_objext
1668  if { { ac_try="$ac_compile"
1669case "(($ac_try" in
1670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671  *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675  (eval "$ac_compile") 2>conftest.err
1676  ac_status=$?
1677  if test -s conftest.err; then
1678    grep -v '^ *+' conftest.err >conftest.er1
1679    cat conftest.er1 >&5
1680    mv -f conftest.er1 conftest.err
1681  fi
1682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683  test $ac_status = 0; } && {
1684	 test -z "$ac_c_werror_flag" ||
1685	 test ! -s conftest.err
1686       } && test -s conftest.$ac_objext; then :
1687  ac_retval=0
1688else
1689  $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692	ac_retval=1
1693fi
1694  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695  as_fn_set_status $ac_retval
1696
1697} # ac_fn_c_try_compile
1698
1699# ac_fn_c_try_link LINENO
1700# -----------------------
1701# Try to link conftest.$ac_ext, and return whether this succeeded.
1702ac_fn_c_try_link ()
1703{
1704  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705  rm -f conftest.$ac_objext conftest$ac_exeext
1706  if { { ac_try="$ac_link"
1707case "(($ac_try" in
1708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709  *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713  (eval "$ac_link") 2>conftest.err
1714  ac_status=$?
1715  if test -s conftest.err; then
1716    grep -v '^ *+' conftest.err >conftest.er1
1717    cat conftest.er1 >&5
1718    mv -f conftest.er1 conftest.err
1719  fi
1720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721  test $ac_status = 0; } && {
1722	 test -z "$ac_c_werror_flag" ||
1723	 test ! -s conftest.err
1724       } && test -s conftest$ac_exeext && {
1725	 test "$cross_compiling" = yes ||
1726	 test -x conftest$ac_exeext
1727       }; then :
1728  ac_retval=0
1729else
1730  $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733	ac_retval=1
1734fi
1735  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737  # interfere with the next link command; also delete a directory that is
1738  # left behind by Apple's compiler.  We do this before executing the actions.
1739  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741  as_fn_set_status $ac_retval
1742
1743} # ac_fn_c_try_link
1744
1745# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746# -------------------------------------------------------
1747# Tests whether HEADER exists and can be compiled using the include files in
1748# INCLUDES, setting the cache variable VAR accordingly.
1749ac_fn_c_check_header_compile ()
1750{
1751  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753$as_echo_n "checking for $2... " >&6; }
1754if eval \${$3+:} false; then :
1755  $as_echo_n "(cached) " >&6
1756else
1757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758/* end confdefs.h.  */
1759$4
1760#include <$2>
1761_ACEOF
1762if ac_fn_c_try_compile "$LINENO"; then :
1763  eval "$3=yes"
1764else
1765  eval "$3=no"
1766fi
1767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768fi
1769eval ac_res=\$$3
1770	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771$as_echo "$ac_res" >&6; }
1772  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773
1774} # ac_fn_c_check_header_compile
1775
1776# ac_fn_c_try_cpp LINENO
1777# ----------------------
1778# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1779ac_fn_c_try_cpp ()
1780{
1781  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782  if { { ac_try="$ac_cpp conftest.$ac_ext"
1783case "(($ac_try" in
1784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785  *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788$as_echo "$ac_try_echo"; } >&5
1789  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1790  ac_status=$?
1791  if test -s conftest.err; then
1792    grep -v '^ *+' conftest.err >conftest.er1
1793    cat conftest.er1 >&5
1794    mv -f conftest.er1 conftest.err
1795  fi
1796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797  test $ac_status = 0; } > conftest.i && {
1798	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1799	 test ! -s conftest.err
1800       }; then :
1801  ac_retval=0
1802else
1803  $as_echo "$as_me: failed program was:" >&5
1804sed 's/^/| /' conftest.$ac_ext >&5
1805
1806    ac_retval=1
1807fi
1808  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809  as_fn_set_status $ac_retval
1810
1811} # ac_fn_c_try_cpp
1812
1813# ac_fn_c_try_run LINENO
1814# ----------------------
1815# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1816# that executables *can* be run.
1817ac_fn_c_try_run ()
1818{
1819  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820  if { { ac_try="$ac_link"
1821case "(($ac_try" in
1822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823  *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827  (eval "$ac_link") 2>&5
1828  ac_status=$?
1829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1831  { { case "(($ac_try" in
1832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833  *) ac_try_echo=$ac_try;;
1834esac
1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836$as_echo "$ac_try_echo"; } >&5
1837  (eval "$ac_try") 2>&5
1838  ac_status=$?
1839  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840  test $ac_status = 0; }; }; then :
1841  ac_retval=0
1842else
1843  $as_echo "$as_me: program exited with status $ac_status" >&5
1844       $as_echo "$as_me: failed program was:" >&5
1845sed 's/^/| /' conftest.$ac_ext >&5
1846
1847       ac_retval=$ac_status
1848fi
1849  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851  as_fn_set_status $ac_retval
1852
1853} # ac_fn_c_try_run
1854
1855# ac_fn_c_check_func LINENO FUNC VAR
1856# ----------------------------------
1857# Tests whether FUNC exists, setting the cache variable VAR accordingly
1858ac_fn_c_check_func ()
1859{
1860  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
1863if eval \${$3+:} false; then :
1864  $as_echo_n "(cached) " >&6
1865else
1866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h.  */
1868/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1869   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1870#define $2 innocuous_$2
1871
1872/* System header to define __stub macros and hopefully few prototypes,
1873    which can conflict with char $2 (); below.
1874    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1875    <limits.h> exists even on freestanding compilers.  */
1876
1877#ifdef __STDC__
1878# include <limits.h>
1879#else
1880# include <assert.h>
1881#endif
1882
1883#undef $2
1884
1885/* Override any GCC internal prototype to avoid an error.
1886   Use char because int might match the return type of a GCC
1887   builtin and then its argument prototype would still apply.  */
1888#ifdef __cplusplus
1889extern "C"
1890#endif
1891char $2 ();
1892/* The GNU C library defines this for functions which it implements
1893    to always fail with ENOSYS.  Some functions are actually named
1894    something starting with __ and the normal name is an alias.  */
1895#if defined __stub_$2 || defined __stub___$2
1896choke me
1897#endif
1898
1899int
1900main ()
1901{
1902return $2 ();
1903  ;
1904  return 0;
1905}
1906_ACEOF
1907if ac_fn_c_try_link "$LINENO"; then :
1908  eval "$3=yes"
1909else
1910  eval "$3=no"
1911fi
1912rm -f core conftest.err conftest.$ac_objext \
1913    conftest$ac_exeext conftest.$ac_ext
1914fi
1915eval ac_res=\$$3
1916	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917$as_echo "$ac_res" >&6; }
1918  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919
1920} # ac_fn_c_check_func
1921
1922# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1923# -------------------------------------------------------
1924# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1925# the include files in INCLUDES and setting the cache variable VAR
1926# accordingly.
1927ac_fn_c_check_header_mongrel ()
1928{
1929  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930  if eval \${$3+:} false; then :
1931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932$as_echo_n "checking for $2... " >&6; }
1933if eval \${$3+:} false; then :
1934  $as_echo_n "(cached) " >&6
1935fi
1936eval ac_res=\$$3
1937	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938$as_echo "$ac_res" >&6; }
1939else
1940  # Is the header compilable?
1941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1942$as_echo_n "checking $2 usability... " >&6; }
1943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h.  */
1945$4
1946#include <$2>
1947_ACEOF
1948if ac_fn_c_try_compile "$LINENO"; then :
1949  ac_header_compiler=yes
1950else
1951  ac_header_compiler=no
1952fi
1953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1955$as_echo "$ac_header_compiler" >&6; }
1956
1957# Is the header present?
1958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1959$as_echo_n "checking $2 presence... " >&6; }
1960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961/* end confdefs.h.  */
1962#include <$2>
1963_ACEOF
1964if ac_fn_c_try_cpp "$LINENO"; then :
1965  ac_header_preproc=yes
1966else
1967  ac_header_preproc=no
1968fi
1969rm -f conftest.err conftest.i conftest.$ac_ext
1970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1971$as_echo "$ac_header_preproc" >&6; }
1972
1973# So?  What about this header?
1974case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1975  yes:no: )
1976    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1977$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1978    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1979$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1980    ;;
1981  no:yes:* )
1982    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1983$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1984    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1985$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1986    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1987$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1988    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1989$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1990    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1991$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1992( $as_echo "## ------------------------------- ##
1993## Report this to bugs@moosefs.com ##
1994## ------------------------------- ##"
1995     ) | sed "s/^/$as_me: WARNING:     /" >&2
1996    ;;
1997esac
1998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999$as_echo_n "checking for $2... " >&6; }
2000if eval \${$3+:} false; then :
2001  $as_echo_n "(cached) " >&6
2002else
2003  eval "$3=\$ac_header_compiler"
2004fi
2005eval ac_res=\$$3
2006	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007$as_echo "$ac_res" >&6; }
2008fi
2009  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010
2011} # ac_fn_c_check_header_mongrel
2012
2013# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2014# -------------------------------------------
2015# Tests whether TYPE exists after having included INCLUDES, setting cache
2016# variable VAR accordingly.
2017ac_fn_c_check_type ()
2018{
2019  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021$as_echo_n "checking for $2... " >&6; }
2022if eval \${$3+:} false; then :
2023  $as_echo_n "(cached) " >&6
2024else
2025  eval "$3=no"
2026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027/* end confdefs.h.  */
2028$4
2029int
2030main ()
2031{
2032if (sizeof ($2))
2033	 return 0;
2034  ;
2035  return 0;
2036}
2037_ACEOF
2038if ac_fn_c_try_compile "$LINENO"; then :
2039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040/* end confdefs.h.  */
2041$4
2042int
2043main ()
2044{
2045if (sizeof (($2)))
2046	    return 0;
2047  ;
2048  return 0;
2049}
2050_ACEOF
2051if ac_fn_c_try_compile "$LINENO"; then :
2052
2053else
2054  eval "$3=yes"
2055fi
2056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057fi
2058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059fi
2060eval ac_res=\$$3
2061	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062$as_echo "$ac_res" >&6; }
2063  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064
2065} # ac_fn_c_check_type
2066
2067# ac_fn_c_find_intX_t LINENO BITS VAR
2068# -----------------------------------
2069# Finds a signed integer type with width BITS, setting cache variable VAR
2070# accordingly.
2071ac_fn_c_find_intX_t ()
2072{
2073  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2075$as_echo_n "checking for int$2_t... " >&6; }
2076if eval \${$3+:} false; then :
2077  $as_echo_n "(cached) " >&6
2078else
2079  eval "$3=no"
2080     # Order is important - never check a type that is potentially smaller
2081     # than half of the expected target width.
2082     for ac_type in int$2_t 'int' 'long int' \
2083	 'long long int' 'short int' 'signed char'; do
2084       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h.  */
2086$ac_includes_default
2087	     enum { N = $2 / 2 - 1 };
2088int
2089main ()
2090{
2091static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2092test_array [0] = 0;
2093return test_array [0];
2094
2095  ;
2096  return 0;
2097}
2098_ACEOF
2099if ac_fn_c_try_compile "$LINENO"; then :
2100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h.  */
2102$ac_includes_default
2103	        enum { N = $2 / 2 - 1 };
2104int
2105main ()
2106{
2107static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2108		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2109test_array [0] = 0;
2110return test_array [0];
2111
2112  ;
2113  return 0;
2114}
2115_ACEOF
2116if ac_fn_c_try_compile "$LINENO"; then :
2117
2118else
2119  case $ac_type in #(
2120  int$2_t) :
2121    eval "$3=yes" ;; #(
2122  *) :
2123    eval "$3=\$ac_type" ;;
2124esac
2125fi
2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127fi
2128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129       if eval test \"x\$"$3"\" = x"no"; then :
2130
2131else
2132  break
2133fi
2134     done
2135fi
2136eval ac_res=\$$3
2137	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138$as_echo "$ac_res" >&6; }
2139  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140
2141} # ac_fn_c_find_intX_t
2142
2143# ac_fn_c_find_uintX_t LINENO BITS VAR
2144# ------------------------------------
2145# Finds an unsigned integer type with width BITS, setting cache variable VAR
2146# accordingly.
2147ac_fn_c_find_uintX_t ()
2148{
2149  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2151$as_echo_n "checking for uint$2_t... " >&6; }
2152if eval \${$3+:} false; then :
2153  $as_echo_n "(cached) " >&6
2154else
2155  eval "$3=no"
2156     # Order is important - never check a type that is potentially smaller
2157     # than half of the expected target width.
2158     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2159	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2160       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161/* end confdefs.h.  */
2162$ac_includes_default
2163int
2164main ()
2165{
2166static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2167test_array [0] = 0;
2168return test_array [0];
2169
2170  ;
2171  return 0;
2172}
2173_ACEOF
2174if ac_fn_c_try_compile "$LINENO"; then :
2175  case $ac_type in #(
2176  uint$2_t) :
2177    eval "$3=yes" ;; #(
2178  *) :
2179    eval "$3=\$ac_type" ;;
2180esac
2181fi
2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183       if eval test \"x\$"$3"\" = x"no"; then :
2184
2185else
2186  break
2187fi
2188     done
2189fi
2190eval ac_res=\$$3
2191	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192$as_echo "$ac_res" >&6; }
2193  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194
2195} # ac_fn_c_find_uintX_t
2196
2197# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2198# ----------------------------------------------------
2199# Tries to find if the field MEMBER exists in type AGGR, after including
2200# INCLUDES, setting cache variable VAR accordingly.
2201ac_fn_c_check_member ()
2202{
2203  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2205$as_echo_n "checking for $2.$3... " >&6; }
2206if eval \${$4+:} false; then :
2207  $as_echo_n "(cached) " >&6
2208else
2209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210/* end confdefs.h.  */
2211$5
2212int
2213main ()
2214{
2215static $2 ac_aggr;
2216if (ac_aggr.$3)
2217return 0;
2218  ;
2219  return 0;
2220}
2221_ACEOF
2222if ac_fn_c_try_compile "$LINENO"; then :
2223  eval "$4=yes"
2224else
2225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226/* end confdefs.h.  */
2227$5
2228int
2229main ()
2230{
2231static $2 ac_aggr;
2232if (sizeof ac_aggr.$3)
2233return 0;
2234  ;
2235  return 0;
2236}
2237_ACEOF
2238if ac_fn_c_try_compile "$LINENO"; then :
2239  eval "$4=yes"
2240else
2241  eval "$4=no"
2242fi
2243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244fi
2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246fi
2247eval ac_res=\$$4
2248	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2249$as_echo "$ac_res" >&6; }
2250  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251
2252} # ac_fn_c_check_member
2253
2254# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2255# ---------------------------------------------
2256# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2257# accordingly.
2258ac_fn_c_check_decl ()
2259{
2260  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261  as_decl_name=`echo $2|sed 's/ *(.*//'`
2262  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2263  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2264$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2265if eval \${$3+:} false; then :
2266  $as_echo_n "(cached) " >&6
2267else
2268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269/* end confdefs.h.  */
2270$4
2271int
2272main ()
2273{
2274#ifndef $as_decl_name
2275#ifdef __cplusplus
2276  (void) $as_decl_use;
2277#else
2278  (void) $as_decl_name;
2279#endif
2280#endif
2281
2282  ;
2283  return 0;
2284}
2285_ACEOF
2286if ac_fn_c_try_compile "$LINENO"; then :
2287  eval "$3=yes"
2288else
2289  eval "$3=no"
2290fi
2291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292fi
2293eval ac_res=\$$3
2294	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295$as_echo "$ac_res" >&6; }
2296  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297
2298} # ac_fn_c_check_decl
2299cat >config.log <<_ACEOF
2300This file contains any messages produced by compilers while
2301running configure, to aid debugging if configure makes a mistake.
2302
2303It was created by MFS $as_me 3.0.116, which was
2304generated by GNU Autoconf 2.69.  Invocation command line was
2305
2306  $ $0 $@
2307
2308_ACEOF
2309exec 5>>config.log
2310{
2311cat <<_ASUNAME
2312## --------- ##
2313## Platform. ##
2314## --------- ##
2315
2316hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2317uname -m = `(uname -m) 2>/dev/null || echo unknown`
2318uname -r = `(uname -r) 2>/dev/null || echo unknown`
2319uname -s = `(uname -s) 2>/dev/null || echo unknown`
2320uname -v = `(uname -v) 2>/dev/null || echo unknown`
2321
2322/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2323/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2324
2325/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2326/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2327/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2328/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2329/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2330/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2331/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2332
2333_ASUNAME
2334
2335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336for as_dir in $PATH
2337do
2338  IFS=$as_save_IFS
2339  test -z "$as_dir" && as_dir=.
2340    $as_echo "PATH: $as_dir"
2341  done
2342IFS=$as_save_IFS
2343
2344} >&5
2345
2346cat >&5 <<_ACEOF
2347
2348
2349## ----------- ##
2350## Core tests. ##
2351## ----------- ##
2352
2353_ACEOF
2354
2355
2356# Keep a trace of the command line.
2357# Strip out --no-create and --no-recursion so they do not pile up.
2358# Strip out --silent because we don't want to record it for future runs.
2359# Also quote any args containing shell meta-characters.
2360# Make two passes to allow for proper duplicate-argument suppression.
2361ac_configure_args=
2362ac_configure_args0=
2363ac_configure_args1=
2364ac_must_keep_next=false
2365for ac_pass in 1 2
2366do
2367  for ac_arg
2368  do
2369    case $ac_arg in
2370    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2371    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2372    | -silent | --silent | --silen | --sile | --sil)
2373      continue ;;
2374    *\'*)
2375      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2376    esac
2377    case $ac_pass in
2378    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2379    2)
2380      as_fn_append ac_configure_args1 " '$ac_arg'"
2381      if test $ac_must_keep_next = true; then
2382	ac_must_keep_next=false # Got value, back to normal.
2383      else
2384	case $ac_arg in
2385	  *=* | --config-cache | -C | -disable-* | --disable-* \
2386	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2387	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2388	  | -with-* | --with-* | -without-* | --without-* | --x)
2389	    case "$ac_configure_args0 " in
2390	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2391	    esac
2392	    ;;
2393	  -* ) ac_must_keep_next=true ;;
2394	esac
2395      fi
2396      as_fn_append ac_configure_args " '$ac_arg'"
2397      ;;
2398    esac
2399  done
2400done
2401{ ac_configure_args0=; unset ac_configure_args0;}
2402{ ac_configure_args1=; unset ac_configure_args1;}
2403
2404# When interrupted or exit'd, cleanup temporary files, and complete
2405# config.log.  We remove comments because anyway the quotes in there
2406# would cause problems or look ugly.
2407# WARNING: Use '\'' to represent an apostrophe within the trap.
2408# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2409trap 'exit_status=$?
2410  # Save into config.log some information that might help in debugging.
2411  {
2412    echo
2413
2414    $as_echo "## ---------------- ##
2415## Cache variables. ##
2416## ---------------- ##"
2417    echo
2418    # The following way of writing the cache mishandles newlines in values,
2419(
2420  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2421    eval ac_val=\$$ac_var
2422    case $ac_val in #(
2423    *${as_nl}*)
2424      case $ac_var in #(
2425      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2426$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2427      esac
2428      case $ac_var in #(
2429      _ | IFS | as_nl) ;; #(
2430      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2431      *) { eval $ac_var=; unset $ac_var;} ;;
2432      esac ;;
2433    esac
2434  done
2435  (set) 2>&1 |
2436    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2437    *${as_nl}ac_space=\ *)
2438      sed -n \
2439	"s/'\''/'\''\\\\'\'''\''/g;
2440	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2441      ;; #(
2442    *)
2443      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2444      ;;
2445    esac |
2446    sort
2447)
2448    echo
2449
2450    $as_echo "## ----------------- ##
2451## Output variables. ##
2452## ----------------- ##"
2453    echo
2454    for ac_var in $ac_subst_vars
2455    do
2456      eval ac_val=\$$ac_var
2457      case $ac_val in
2458      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2459      esac
2460      $as_echo "$ac_var='\''$ac_val'\''"
2461    done | sort
2462    echo
2463
2464    if test -n "$ac_subst_files"; then
2465      $as_echo "## ------------------- ##
2466## File substitutions. ##
2467## ------------------- ##"
2468      echo
2469      for ac_var in $ac_subst_files
2470      do
2471	eval ac_val=\$$ac_var
2472	case $ac_val in
2473	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2474	esac
2475	$as_echo "$ac_var='\''$ac_val'\''"
2476      done | sort
2477      echo
2478    fi
2479
2480    if test -s confdefs.h; then
2481      $as_echo "## ----------- ##
2482## confdefs.h. ##
2483## ----------- ##"
2484      echo
2485      cat confdefs.h
2486      echo
2487    fi
2488    test "$ac_signal" != 0 &&
2489      $as_echo "$as_me: caught signal $ac_signal"
2490    $as_echo "$as_me: exit $exit_status"
2491  } >&5
2492  rm -f core *.core core.conftest.* &&
2493    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2494    exit $exit_status
2495' 0
2496for ac_signal in 1 2 13 15; do
2497  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2498done
2499ac_signal=0
2500
2501# confdefs.h avoids OS command line length limits that DEFS can exceed.
2502rm -f -r conftest* confdefs.h
2503
2504$as_echo "/* confdefs.h */" > confdefs.h
2505
2506# Predefined preprocessor variables.
2507
2508cat >>confdefs.h <<_ACEOF
2509#define PACKAGE_NAME "$PACKAGE_NAME"
2510_ACEOF
2511
2512cat >>confdefs.h <<_ACEOF
2513#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2514_ACEOF
2515
2516cat >>confdefs.h <<_ACEOF
2517#define PACKAGE_VERSION "$PACKAGE_VERSION"
2518_ACEOF
2519
2520cat >>confdefs.h <<_ACEOF
2521#define PACKAGE_STRING "$PACKAGE_STRING"
2522_ACEOF
2523
2524cat >>confdefs.h <<_ACEOF
2525#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2526_ACEOF
2527
2528cat >>confdefs.h <<_ACEOF
2529#define PACKAGE_URL "$PACKAGE_URL"
2530_ACEOF
2531
2532
2533# Let the site file select an alternate cache file if it wants to.
2534# Prefer an explicitly selected file to automatically selected ones.
2535ac_site_file1=NONE
2536ac_site_file2=NONE
2537if test -n "$CONFIG_SITE"; then
2538  # We do not want a PATH search for config.site.
2539  case $CONFIG_SITE in #((
2540    -*)  ac_site_file1=./$CONFIG_SITE;;
2541    */*) ac_site_file1=$CONFIG_SITE;;
2542    *)   ac_site_file1=./$CONFIG_SITE;;
2543  esac
2544elif test "x$prefix" != xNONE; then
2545  ac_site_file1=$prefix/share/config.site
2546  ac_site_file2=$prefix/etc/config.site
2547else
2548  ac_site_file1=$ac_default_prefix/share/config.site
2549  ac_site_file2=$ac_default_prefix/etc/config.site
2550fi
2551for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2552do
2553  test "x$ac_site_file" = xNONE && continue
2554  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2555    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2556$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2557    sed 's/^/| /' "$ac_site_file" >&5
2558    . "$ac_site_file" \
2559      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2561as_fn_error $? "failed to load site script $ac_site_file
2562See \`config.log' for more details" "$LINENO" 5; }
2563  fi
2564done
2565
2566if test -r "$cache_file"; then
2567  # Some versions of bash will fail to source /dev/null (special files
2568  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2569  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2570    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2571$as_echo "$as_me: loading cache $cache_file" >&6;}
2572    case $cache_file in
2573      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2574      *)                      . "./$cache_file";;
2575    esac
2576  fi
2577else
2578  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2579$as_echo "$as_me: creating cache $cache_file" >&6;}
2580  >$cache_file
2581fi
2582
2583# Check that the precious variables saved in the cache have kept the same
2584# value.
2585ac_cache_corrupted=false
2586for ac_var in $ac_precious_vars; do
2587  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2588  eval ac_new_set=\$ac_env_${ac_var}_set
2589  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2590  eval ac_new_val=\$ac_env_${ac_var}_value
2591  case $ac_old_set,$ac_new_set in
2592    set,)
2593      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2594$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2595      ac_cache_corrupted=: ;;
2596    ,set)
2597      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2598$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2599      ac_cache_corrupted=: ;;
2600    ,);;
2601    *)
2602      if test "x$ac_old_val" != "x$ac_new_val"; then
2603	# differences in whitespace do not lead to failure.
2604	ac_old_val_w=`echo x $ac_old_val`
2605	ac_new_val_w=`echo x $ac_new_val`
2606	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2607	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2608$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2609	  ac_cache_corrupted=:
2610	else
2611	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2612$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2613	  eval $ac_var=\$ac_old_val
2614	fi
2615	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2616$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2617	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2618$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2619      fi;;
2620  esac
2621  # Pass precious variables to config.status.
2622  if test "$ac_new_set" = set; then
2623    case $ac_new_val in
2624    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2625    *) ac_arg=$ac_var=$ac_new_val ;;
2626    esac
2627    case " $ac_configure_args " in
2628      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2629      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2630    esac
2631  fi
2632done
2633if $ac_cache_corrupted; then
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2636  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2637$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2638  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2639fi
2640## -------------------- ##
2641## Main body of script. ##
2642## -------------------- ##
2643
2644ac_ext=c
2645ac_cpp='$CPP $CPPFLAGS'
2646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2648ac_compiler_gnu=$ac_cv_c_compiler_gnu
2649
2650
2651release=1
2652buildno=$(cat buildno.txt)
2653
2654ac_config_headers="$ac_config_headers config.h"
2655
2656ac_aux_dir=
2657for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2658  if test -f "$ac_dir/install-sh"; then
2659    ac_aux_dir=$ac_dir
2660    ac_install_sh="$ac_aux_dir/install-sh -c"
2661    break
2662  elif test -f "$ac_dir/install.sh"; then
2663    ac_aux_dir=$ac_dir
2664    ac_install_sh="$ac_aux_dir/install.sh -c"
2665    break
2666  elif test -f "$ac_dir/shtool"; then
2667    ac_aux_dir=$ac_dir
2668    ac_install_sh="$ac_aux_dir/shtool install -c"
2669    break
2670  fi
2671done
2672if test -z "$ac_aux_dir"; then
2673  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2674fi
2675
2676# These three variables are undocumented and unsupported,
2677# and are intended to be withdrawn in a future Autoconf release.
2678# They can cause serious problems if a builder's source tree is in a directory
2679# whose full name contains unusual characters.
2680ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2681ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2682ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2683
2684
2685# Make sure we can run config.sub.
2686$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2687  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2688
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2690$as_echo_n "checking build system type... " >&6; }
2691if ${ac_cv_build+:} false; then :
2692  $as_echo_n "(cached) " >&6
2693else
2694  ac_build_alias=$build_alias
2695test "x$ac_build_alias" = x &&
2696  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2697test "x$ac_build_alias" = x &&
2698  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2699ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2700  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2701
2702fi
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2704$as_echo "$ac_cv_build" >&6; }
2705case $ac_cv_build in
2706*-*-*) ;;
2707*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2708esac
2709build=$ac_cv_build
2710ac_save_IFS=$IFS; IFS='-'
2711set x $ac_cv_build
2712shift
2713build_cpu=$1
2714build_vendor=$2
2715shift; shift
2716# Remember, the first character of IFS is used to create $*,
2717# except with old shells:
2718build_os=$*
2719IFS=$ac_save_IFS
2720case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2721
2722
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2724$as_echo_n "checking host system type... " >&6; }
2725if ${ac_cv_host+:} false; then :
2726  $as_echo_n "(cached) " >&6
2727else
2728  if test "x$host_alias" = x; then
2729  ac_cv_host=$ac_cv_build
2730else
2731  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2732    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2733fi
2734
2735fi
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2737$as_echo "$ac_cv_host" >&6; }
2738case $ac_cv_host in
2739*-*-*) ;;
2740*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2741esac
2742host=$ac_cv_host
2743ac_save_IFS=$IFS; IFS='-'
2744set x $ac_cv_host
2745shift
2746host_cpu=$1
2747host_vendor=$2
2748shift; shift
2749# Remember, the first character of IFS is used to create $*,
2750# except with old shells:
2751host_os=$*
2752IFS=$ac_save_IFS
2753case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2754
2755
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2757$as_echo_n "checking target system type... " >&6; }
2758if ${ac_cv_target+:} false; then :
2759  $as_echo_n "(cached) " >&6
2760else
2761  if test "x$target_alias" = x; then
2762  ac_cv_target=$ac_cv_host
2763else
2764  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2765    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2766fi
2767
2768fi
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2770$as_echo "$ac_cv_target" >&6; }
2771case $ac_cv_target in
2772*-*-*) ;;
2773*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2774esac
2775target=$ac_cv_target
2776ac_save_IFS=$IFS; IFS='-'
2777set x $ac_cv_target
2778shift
2779target_cpu=$1
2780target_vendor=$2
2781shift; shift
2782# Remember, the first character of IFS is used to create $*,
2783# except with old shells:
2784target_os=$*
2785IFS=$ac_save_IFS
2786case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2787
2788
2789# The aliases save the names the user supplied, while $host etc.
2790# will get canonicalized.
2791test -n "$target_alias" &&
2792  test "$program_prefix$program_suffix$program_transform_name" = \
2793    NONENONEs,x,x, &&
2794  program_prefix=${target_alias}-
2795am__api_version='1.16'
2796
2797# Find a good install program.  We prefer a C program (faster),
2798# so one script is as good as another.  But avoid the broken or
2799# incompatible versions:
2800# SysV /etc/install, /usr/sbin/install
2801# SunOS /usr/etc/install
2802# IRIX /sbin/install
2803# AIX /bin/install
2804# AmigaOS /C/install, which installs bootblocks on floppy discs
2805# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2806# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2807# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2808# OS/2's system install, which has a completely different semantic
2809# ./install, which can be erroneously created by make from ./install.sh.
2810# Reject install programs that cannot install multiple files.
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2812$as_echo_n "checking for a BSD-compatible install... " >&6; }
2813if test -z "$INSTALL"; then
2814if ${ac_cv_path_install+:} false; then :
2815  $as_echo_n "(cached) " >&6
2816else
2817  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818for as_dir in $PATH
2819do
2820  IFS=$as_save_IFS
2821  test -z "$as_dir" && as_dir=.
2822    # Account for people who put trailing slashes in PATH elements.
2823case $as_dir/ in #((
2824  ./ | .// | /[cC]/* | \
2825  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2826  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2827  /usr/ucb/* ) ;;
2828  *)
2829    # OSF1 and SCO ODT 3.0 have their own names for install.
2830    # Don't use installbsd from OSF since it installs stuff as root
2831    # by default.
2832    for ac_prog in ginstall scoinst install; do
2833      for ac_exec_ext in '' $ac_executable_extensions; do
2834	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2835	  if test $ac_prog = install &&
2836	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2837	    # AIX install.  It has an incompatible calling convention.
2838	    :
2839	  elif test $ac_prog = install &&
2840	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2841	    # program-specific install script used by HP pwplus--don't use.
2842	    :
2843	  else
2844	    rm -rf conftest.one conftest.two conftest.dir
2845	    echo one > conftest.one
2846	    echo two > conftest.two
2847	    mkdir conftest.dir
2848	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2849	      test -s conftest.one && test -s conftest.two &&
2850	      test -s conftest.dir/conftest.one &&
2851	      test -s conftest.dir/conftest.two
2852	    then
2853	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2854	      break 3
2855	    fi
2856	  fi
2857	fi
2858      done
2859    done
2860    ;;
2861esac
2862
2863  done
2864IFS=$as_save_IFS
2865
2866rm -rf conftest.one conftest.two conftest.dir
2867
2868fi
2869  if test "${ac_cv_path_install+set}" = set; then
2870    INSTALL=$ac_cv_path_install
2871  else
2872    # As a last resort, use the slow shell script.  Don't cache a
2873    # value for INSTALL within a source directory, because that will
2874    # break other packages using the cache if that directory is
2875    # removed, or if the value is a relative name.
2876    INSTALL=$ac_install_sh
2877  fi
2878fi
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2880$as_echo "$INSTALL" >&6; }
2881
2882# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2883# It thinks the first close brace ends the variable substitution.
2884test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2885
2886test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2887
2888test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2889
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2891$as_echo_n "checking whether build environment is sane... " >&6; }
2892# Reject unsafe characters in $srcdir or the absolute working directory
2893# name.  Accept space and tab only in the latter.
2894am_lf='
2895'
2896case `pwd` in
2897  *[\\\"\#\$\&\'\`$am_lf]*)
2898    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2899esac
2900case $srcdir in
2901  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2902    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2903esac
2904
2905# Do 'set' in a subshell so we don't clobber the current shell's
2906# arguments.  Must try -L first in case configure is actually a
2907# symlink; some systems play weird games with the mod time of symlinks
2908# (eg FreeBSD returns the mod time of the symlink's containing
2909# directory).
2910if (
2911   am_has_slept=no
2912   for am_try in 1 2; do
2913     echo "timestamp, slept: $am_has_slept" > conftest.file
2914     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2915     if test "$*" = "X"; then
2916	# -L didn't work.
2917	set X `ls -t "$srcdir/configure" conftest.file`
2918     fi
2919     if test "$*" != "X $srcdir/configure conftest.file" \
2920	&& test "$*" != "X conftest.file $srcdir/configure"; then
2921
2922	# If neither matched, then we have a broken ls.  This can happen
2923	# if, for instance, CONFIG_SHELL is bash and it inherits a
2924	# broken ls alias from the environment.  This has actually
2925	# happened.  Such a system could not be considered "sane".
2926	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2927  alias in your environment" "$LINENO" 5
2928     fi
2929     if test "$2" = conftest.file || test $am_try -eq 2; then
2930       break
2931     fi
2932     # Just in case.
2933     sleep 1
2934     am_has_slept=yes
2935   done
2936   test "$2" = conftest.file
2937   )
2938then
2939   # Ok.
2940   :
2941else
2942   as_fn_error $? "newly created file is older than distributed files!
2943Check your system clock" "$LINENO" 5
2944fi
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2946$as_echo "yes" >&6; }
2947# If we didn't sleep, we still need to ensure time stamps of config.status and
2948# generated files are strictly newer.
2949am_sleep_pid=
2950if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2951  ( sleep 1 ) &
2952  am_sleep_pid=$!
2953fi
2954
2955rm -f conftest.file
2956
2957test "$program_prefix" != NONE &&
2958  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2959# Use a double $ so make ignores it.
2960test "$program_suffix" != NONE &&
2961  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2962# Double any \ or $.
2963# By default was `s,x,x', remove it if useless.
2964ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2965program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2966
2967# Expand $ac_aux_dir to an absolute path.
2968am_aux_dir=`cd "$ac_aux_dir" && pwd`
2969
2970if test x"${MISSING+set}" != xset; then
2971  case $am_aux_dir in
2972  *\ * | *\	*)
2973    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2974  *)
2975    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2976  esac
2977fi
2978# Use eval to expand $SHELL
2979if eval "$MISSING --is-lightweight"; then
2980  am_missing_run="$MISSING "
2981else
2982  am_missing_run=
2983  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2984$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2985fi
2986
2987if test x"${install_sh+set}" != xset; then
2988  case $am_aux_dir in
2989  *\ * | *\	*)
2990    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2991  *)
2992    install_sh="\${SHELL} $am_aux_dir/install-sh"
2993  esac
2994fi
2995
2996# Installed binaries are usually stripped using 'strip' when the user
2997# run "make install-strip".  However 'strip' might not be the right
2998# tool to use in cross-compilation environments, therefore Automake
2999# will honor the 'STRIP' environment variable to overrule this program.
3000if test "$cross_compiling" != no; then
3001  if test -n "$ac_tool_prefix"; then
3002  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3003set dummy ${ac_tool_prefix}strip; ac_word=$2
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005$as_echo_n "checking for $ac_word... " >&6; }
3006if ${ac_cv_prog_STRIP+:} false; then :
3007  $as_echo_n "(cached) " >&6
3008else
3009  if test -n "$STRIP"; then
3010  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3011else
3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015  IFS=$as_save_IFS
3016  test -z "$as_dir" && as_dir=.
3017    for ac_exec_ext in '' $ac_executable_extensions; do
3018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021    break 2
3022  fi
3023done
3024  done
3025IFS=$as_save_IFS
3026
3027fi
3028fi
3029STRIP=$ac_cv_prog_STRIP
3030if test -n "$STRIP"; then
3031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3032$as_echo "$STRIP" >&6; }
3033else
3034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035$as_echo "no" >&6; }
3036fi
3037
3038
3039fi
3040if test -z "$ac_cv_prog_STRIP"; then
3041  ac_ct_STRIP=$STRIP
3042  # Extract the first word of "strip", so it can be a program name with args.
3043set dummy strip; ac_word=$2
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045$as_echo_n "checking for $ac_word... " >&6; }
3046if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3047  $as_echo_n "(cached) " >&6
3048else
3049  if test -n "$ac_ct_STRIP"; then
3050  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3051else
3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055  IFS=$as_save_IFS
3056  test -z "$as_dir" && as_dir=.
3057    for ac_exec_ext in '' $ac_executable_extensions; do
3058  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059    ac_cv_prog_ac_ct_STRIP="strip"
3060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061    break 2
3062  fi
3063done
3064  done
3065IFS=$as_save_IFS
3066
3067fi
3068fi
3069ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3070if test -n "$ac_ct_STRIP"; then
3071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3072$as_echo "$ac_ct_STRIP" >&6; }
3073else
3074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075$as_echo "no" >&6; }
3076fi
3077
3078  if test "x$ac_ct_STRIP" = x; then
3079    STRIP=":"
3080  else
3081    case $cross_compiling:$ac_tool_warned in
3082yes:)
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3085ac_tool_warned=yes ;;
3086esac
3087    STRIP=$ac_ct_STRIP
3088  fi
3089else
3090  STRIP="$ac_cv_prog_STRIP"
3091fi
3092
3093fi
3094INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3095
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3097$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3098if test -z "$MKDIR_P"; then
3099  if ${ac_cv_path_mkdir+:} false; then :
3100  $as_echo_n "(cached) " >&6
3101else
3102  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3104do
3105  IFS=$as_save_IFS
3106  test -z "$as_dir" && as_dir=.
3107    for ac_prog in mkdir gmkdir; do
3108	 for ac_exec_ext in '' $ac_executable_extensions; do
3109	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3110	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3111	     'mkdir (GNU coreutils) '* | \
3112	     'mkdir (coreutils) '* | \
3113	     'mkdir (fileutils) '4.1*)
3114	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3115	       break 3;;
3116	   esac
3117	 done
3118       done
3119  done
3120IFS=$as_save_IFS
3121
3122fi
3123
3124  test -d ./--version && rmdir ./--version
3125  if test "${ac_cv_path_mkdir+set}" = set; then
3126    MKDIR_P="$ac_cv_path_mkdir -p"
3127  else
3128    # As a last resort, use the slow shell script.  Don't cache a
3129    # value for MKDIR_P within a source directory, because that will
3130    # break other packages using the cache if that directory is
3131    # removed, or if the value is a relative name.
3132    MKDIR_P="$ac_install_sh -d"
3133  fi
3134fi
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3136$as_echo "$MKDIR_P" >&6; }
3137
3138for ac_prog in gawk mawk nawk awk
3139do
3140  # Extract the first word of "$ac_prog", so it can be a program name with args.
3141set dummy $ac_prog; ac_word=$2
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143$as_echo_n "checking for $ac_word... " >&6; }
3144if ${ac_cv_prog_AWK+:} false; then :
3145  $as_echo_n "(cached) " >&6
3146else
3147  if test -n "$AWK"; then
3148  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3149else
3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151for as_dir in $PATH
3152do
3153  IFS=$as_save_IFS
3154  test -z "$as_dir" && as_dir=.
3155    for ac_exec_ext in '' $ac_executable_extensions; do
3156  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157    ac_cv_prog_AWK="$ac_prog"
3158    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159    break 2
3160  fi
3161done
3162  done
3163IFS=$as_save_IFS
3164
3165fi
3166fi
3167AWK=$ac_cv_prog_AWK
3168if test -n "$AWK"; then
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3170$as_echo "$AWK" >&6; }
3171else
3172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173$as_echo "no" >&6; }
3174fi
3175
3176
3177  test -n "$AWK" && break
3178done
3179
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3181$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3182set x ${MAKE-make}
3183ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3184if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3185  $as_echo_n "(cached) " >&6
3186else
3187  cat >conftest.make <<\_ACEOF
3188SHELL = /bin/sh
3189all:
3190	@echo '@@@%%%=$(MAKE)=@@@%%%'
3191_ACEOF
3192# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3193case `${MAKE-make} -f conftest.make 2>/dev/null` in
3194  *@@@%%%=?*=@@@%%%*)
3195    eval ac_cv_prog_make_${ac_make}_set=yes;;
3196  *)
3197    eval ac_cv_prog_make_${ac_make}_set=no;;
3198esac
3199rm -f conftest.make
3200fi
3201if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203$as_echo "yes" >&6; }
3204  SET_MAKE=
3205else
3206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207$as_echo "no" >&6; }
3208  SET_MAKE="MAKE=${MAKE-make}"
3209fi
3210
3211rm -rf .tst 2>/dev/null
3212mkdir .tst 2>/dev/null
3213if test -d .tst; then
3214  am__leading_dot=.
3215else
3216  am__leading_dot=_
3217fi
3218rmdir .tst 2>/dev/null
3219
3220# Check whether --enable-silent-rules was given.
3221if test "${enable_silent_rules+set}" = set; then :
3222  enableval=$enable_silent_rules;
3223fi
3224
3225case $enable_silent_rules in # (((
3226  yes) AM_DEFAULT_VERBOSITY=0;;
3227   no) AM_DEFAULT_VERBOSITY=1;;
3228    *) AM_DEFAULT_VERBOSITY=1;;
3229esac
3230am_make=${MAKE-make}
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3232$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3233if ${am_cv_make_support_nested_variables+:} false; then :
3234  $as_echo_n "(cached) " >&6
3235else
3236  if $as_echo 'TRUE=$(BAR$(V))
3237BAR0=false
3238BAR1=true
3239V=1
3240am__doit:
3241	@$(TRUE)
3242.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3243  am_cv_make_support_nested_variables=yes
3244else
3245  am_cv_make_support_nested_variables=no
3246fi
3247fi
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3249$as_echo "$am_cv_make_support_nested_variables" >&6; }
3250if test $am_cv_make_support_nested_variables = yes; then
3251    AM_V='$(V)'
3252  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3253else
3254  AM_V=$AM_DEFAULT_VERBOSITY
3255  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3256fi
3257AM_BACKSLASH='\'
3258
3259if test "`cd $srcdir && pwd`" != "`pwd`"; then
3260  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3261  # is not polluted with repeated "-I."
3262  am__isrc=' -I$(srcdir)'
3263  # test to see if srcdir already configured
3264  if test -f $srcdir/config.status; then
3265    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3266  fi
3267fi
3268
3269# test whether we have cygpath
3270if test -z "$CYGPATH_W"; then
3271  if (cygpath --version) >/dev/null 2>/dev/null; then
3272    CYGPATH_W='cygpath -w'
3273  else
3274    CYGPATH_W=echo
3275  fi
3276fi
3277
3278
3279# Define the identity of the package.
3280 PACKAGE='moosefs'
3281 VERSION='3.0.116'
3282
3283
3284cat >>confdefs.h <<_ACEOF
3285#define PACKAGE "$PACKAGE"
3286_ACEOF
3287
3288
3289cat >>confdefs.h <<_ACEOF
3290#define VERSION "$VERSION"
3291_ACEOF
3292
3293# Some tools Automake needs.
3294
3295ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3296
3297
3298AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3299
3300
3301AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3302
3303
3304AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3305
3306
3307MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3308
3309# For better backward compatibility.  To be removed once Automake 1.9.x
3310# dies out for good.  For more background, see:
3311# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3312# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3313mkdir_p='$(MKDIR_P)'
3314
3315# We need awk for the "check" target (and possibly the TAP driver).  The
3316# system "awk" is bad on some platforms.
3317# Always define AMTAR for backward compatibility.  Yes, it's still used
3318# in the wild :-(  We should find a proper way to deprecate it ...
3319AMTAR='$${TAR-tar}'
3320
3321
3322# We'll loop over all known methods to create a tar archive until one works.
3323_am_tools='gnutar  pax cpio none'
3324
3325am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3326
3327
3328
3329
3330
3331
3332# POSIX will say in a future version that running "rm -f" with no argument
3333# is OK; and we want to be able to make that assumption in our Makefile
3334# recipes.  So use an aggressive probe to check that the usage we want is
3335# actually supported "in the wild" to an acceptable degree.
3336# See automake bug#10828.
3337# To make any issue more visible, cause the running configure to be aborted
3338# by default if the 'rm' program in use doesn't match our expectations; the
3339# user can still override this though.
3340if rm -f && rm -fr && rm -rf; then : OK; else
3341  cat >&2 <<'END'
3342Oops!
3343
3344Your 'rm' program seems unable to run without file operands specified
3345on the command line, even when the '-f' option is present.  This is contrary
3346to the behaviour of most rm programs out there, and not conforming with
3347the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3348
3349Please tell bug-automake@gnu.org about your system, including the value
3350of your $PATH and any error possibly output before this message.  This
3351can help us improve future automake versions.
3352
3353END
3354  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3355    echo 'Configuration will proceed anyway, since you have set the' >&2
3356    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3357    echo >&2
3358  else
3359    cat >&2 <<'END'
3360Aborting the configuration process, to ensure you take notice of the issue.
3361
3362You can download and install GNU coreutils to get an 'rm' implementation
3363that behaves properly: <https://www.gnu.org/software/coreutils/>.
3364
3365If you want to complete the configuration process using your problematic
3366'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3367to "yes", and re-run configure.
3368
3369END
3370    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3371  fi
3372fi
3373
3374# Check whether --enable-silent-rules was given.
3375if test "${enable_silent_rules+set}" = set; then :
3376  enableval=$enable_silent_rules;
3377fi
3378
3379case $enable_silent_rules in # (((
3380  yes) AM_DEFAULT_VERBOSITY=0;;
3381   no) AM_DEFAULT_VERBOSITY=1;;
3382    *) AM_DEFAULT_VERBOSITY=0;;
3383esac
3384am_make=${MAKE-make}
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3386$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3387if ${am_cv_make_support_nested_variables+:} false; then :
3388  $as_echo_n "(cached) " >&6
3389else
3390  if $as_echo 'TRUE=$(BAR$(V))
3391BAR0=false
3392BAR1=true
3393V=1
3394am__doit:
3395	@$(TRUE)
3396.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3397  am_cv_make_support_nested_variables=yes
3398else
3399  am_cv_make_support_nested_variables=no
3400fi
3401fi
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3403$as_echo "$am_cv_make_support_nested_variables" >&6; }
3404if test $am_cv_make_support_nested_variables = yes; then
3405    AM_V='$(V)'
3406  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3407else
3408  AM_V=$AM_DEFAULT_VERBOSITY
3409  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3410fi
3411AM_BACKSLASH='\'
3412
3413
3414
3415versmaj=$(echo $PACKAGE_VERSION | cut -d. -f1)
3416versmid=$(echo $PACKAGE_VERSION | cut -d. -f2)
3417versmin=$(echo $PACKAGE_VERSION | cut -d. -f3)
3418
3419cat >>confdefs.h <<_ACEOF
3420#define VERSMAJ $versmaj
3421_ACEOF
3422
3423
3424cat >>confdefs.h <<_ACEOF
3425#define VERSMID $versmid
3426_ACEOF
3427
3428
3429cat >>confdefs.h <<_ACEOF
3430#define VERSMIN ($versmin)*2
3431_ACEOF
3432
3433
3434cat >>confdefs.h <<_ACEOF
3435#define VERSHEX (($versmaj)*0x10000+($versmid)*0x100+($versmin)*2)
3436_ACEOF
3437
3438#AC_DEFINE_UNQUOTED([VERSMIN], [$versmin], [Minor MFS version])
3439#AC_DEFINE_UNQUOTED([VERSHEX], [(($versmaj)*0x10000+($versmid)*0x100+($versmin))], [Full MFS version as a hex number])
3440
3441cat >>confdefs.h <<_ACEOF
3442#define RELEASE $release
3443_ACEOF
3444
3445
3446cat >>confdefs.h <<_ACEOF
3447#define BUILDNO $buildno
3448_ACEOF
3449
3450
3451$as_echo "#define VERSION2INT(maj,med,min) ((maj)*0x10000+(med)*0x100+(((maj)>1)?((min)*2):(min)))" >>confdefs.h
3452
3453
3454cat >>confdefs.h <<_ACEOF
3455#define VERSSTR "${PACKAGE_VERSION}-${release}"
3456_ACEOF
3457
3458
3459# Define paths
3460test "$prefix" = "NONE" && prefix="$ac_default_prefix"
3461test "$exec_prefix" = "NONE" && exec_prefix="$prefix"
3462eval DATA_PATH="${localstatedir}/mfs"
3463eval ETC_PATH="${sysconfdir}"
3464eval BIN_PATH="${bindir}"
3465eval SBIN_PATH="${sbindir}"
3466# use system /var/run when using system-wide installation prefix
3467if test "${prefix#/usr}" != "${prefix}" -o "${prefix#/opt}" != "${prefix}"; then
3468	RUN_PATH="/var/run/mfs"
3469else
3470	RUN_PATH="${prefix}/var/run/mfs"
3471fi
3472
3473
3474
3475
3476
3477
3478cat >>confdefs.h <<_ACEOF
3479#define PREFIX "${prefix}"
3480_ACEOF
3481
3482
3483cat >>confdefs.h <<_ACEOF
3484#define ETC_PATH "$ETC_PATH"
3485_ACEOF
3486
3487
3488cat >>confdefs.h <<_ACEOF
3489#define DATA_PATH "$DATA_PATH"
3490_ACEOF
3491
3492
3493cat >>confdefs.h <<_ACEOF
3494#define RUN_PATH "$RUN_PATH"
3495_ACEOF
3496
3497
3498# Checks for programs.
3499DEPDIR="${am__leading_dot}deps"
3500
3501ac_config_commands="$ac_config_commands depfiles"
3502
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3504$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3505cat > confinc.mk << 'END'
3506am__doit:
3507	@echo this is the am__doit target >confinc.out
3508.PHONY: am__doit
3509END
3510am__include="#"
3511am__quote=
3512# BSD make does it like this.
3513echo '.include "confinc.mk" # ignored' > confmf.BSD
3514# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3515echo 'include confinc.mk # ignored' > confmf.GNU
3516_am_result=no
3517for s in GNU BSD; do
3518  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3519   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3520   ac_status=$?
3521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522   (exit $ac_status); }
3523  case $?:`cat confinc.out 2>/dev/null` in #(
3524  '0:this is the am__doit target') :
3525    case $s in #(
3526  BSD) :
3527    am__include='.include' am__quote='"' ;; #(
3528  *) :
3529    am__include='include' am__quote='' ;;
3530esac ;; #(
3531  *) :
3532     ;;
3533esac
3534  if test "$am__include" != "#"; then
3535    _am_result="yes ($s style)"
3536    break
3537  fi
3538done
3539rm -f confinc.* confmf.*
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3541$as_echo "${_am_result}" >&6; }
3542
3543# Check whether --enable-dependency-tracking was given.
3544if test "${enable_dependency_tracking+set}" = set; then :
3545  enableval=$enable_dependency_tracking;
3546fi
3547
3548if test "x$enable_dependency_tracking" != xno; then
3549  am_depcomp="$ac_aux_dir/depcomp"
3550  AMDEPBACKSLASH='\'
3551  am__nodep='_no'
3552fi
3553 if test "x$enable_dependency_tracking" != xno; then
3554  AMDEP_TRUE=
3555  AMDEP_FALSE='#'
3556else
3557  AMDEP_TRUE='#'
3558  AMDEP_FALSE=
3559fi
3560
3561
3562ac_ext=c
3563ac_cpp='$CPP $CPPFLAGS'
3564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567if test -n "$ac_tool_prefix"; then
3568  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3569set dummy ${ac_tool_prefix}gcc; ac_word=$2
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571$as_echo_n "checking for $ac_word... " >&6; }
3572if ${ac_cv_prog_CC+:} false; then :
3573  $as_echo_n "(cached) " >&6
3574else
3575  if test -n "$CC"; then
3576  ac_cv_prog_CC="$CC" # Let the user override the test.
3577else
3578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579for as_dir in $PATH
3580do
3581  IFS=$as_save_IFS
3582  test -z "$as_dir" && as_dir=.
3583    for ac_exec_ext in '' $ac_executable_extensions; do
3584  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587    break 2
3588  fi
3589done
3590  done
3591IFS=$as_save_IFS
3592
3593fi
3594fi
3595CC=$ac_cv_prog_CC
3596if test -n "$CC"; then
3597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3598$as_echo "$CC" >&6; }
3599else
3600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601$as_echo "no" >&6; }
3602fi
3603
3604
3605fi
3606if test -z "$ac_cv_prog_CC"; then
3607  ac_ct_CC=$CC
3608  # Extract the first word of "gcc", so it can be a program name with args.
3609set dummy gcc; ac_word=$2
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611$as_echo_n "checking for $ac_word... " >&6; }
3612if ${ac_cv_prog_ac_ct_CC+:} false; then :
3613  $as_echo_n "(cached) " >&6
3614else
3615  if test -n "$ac_ct_CC"; then
3616  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3617else
3618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619for as_dir in $PATH
3620do
3621  IFS=$as_save_IFS
3622  test -z "$as_dir" && as_dir=.
3623    for ac_exec_ext in '' $ac_executable_extensions; do
3624  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3625    ac_cv_prog_ac_ct_CC="gcc"
3626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627    break 2
3628  fi
3629done
3630  done
3631IFS=$as_save_IFS
3632
3633fi
3634fi
3635ac_ct_CC=$ac_cv_prog_ac_ct_CC
3636if test -n "$ac_ct_CC"; then
3637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3638$as_echo "$ac_ct_CC" >&6; }
3639else
3640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641$as_echo "no" >&6; }
3642fi
3643
3644  if test "x$ac_ct_CC" = x; then
3645    CC=""
3646  else
3647    case $cross_compiling:$ac_tool_warned in
3648yes:)
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3651ac_tool_warned=yes ;;
3652esac
3653    CC=$ac_ct_CC
3654  fi
3655else
3656  CC="$ac_cv_prog_CC"
3657fi
3658
3659if test -z "$CC"; then
3660          if test -n "$ac_tool_prefix"; then
3661    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3662set dummy ${ac_tool_prefix}cc; ac_word=$2
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664$as_echo_n "checking for $ac_word... " >&6; }
3665if ${ac_cv_prog_CC+:} false; then :
3666  $as_echo_n "(cached) " >&6
3667else
3668  if test -n "$CC"; then
3669  ac_cv_prog_CC="$CC" # Let the user override the test.
3670else
3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672for as_dir in $PATH
3673do
3674  IFS=$as_save_IFS
3675  test -z "$as_dir" && as_dir=.
3676    for ac_exec_ext in '' $ac_executable_extensions; do
3677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3678    ac_cv_prog_CC="${ac_tool_prefix}cc"
3679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680    break 2
3681  fi
3682done
3683  done
3684IFS=$as_save_IFS
3685
3686fi
3687fi
3688CC=$ac_cv_prog_CC
3689if test -n "$CC"; then
3690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3691$as_echo "$CC" >&6; }
3692else
3693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694$as_echo "no" >&6; }
3695fi
3696
3697
3698  fi
3699fi
3700if test -z "$CC"; then
3701  # Extract the first word of "cc", so it can be a program name with args.
3702set dummy cc; ac_word=$2
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704$as_echo_n "checking for $ac_word... " >&6; }
3705if ${ac_cv_prog_CC+:} false; then :
3706  $as_echo_n "(cached) " >&6
3707else
3708  if test -n "$CC"; then
3709  ac_cv_prog_CC="$CC" # Let the user override the test.
3710else
3711  ac_prog_rejected=no
3712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713for as_dir in $PATH
3714do
3715  IFS=$as_save_IFS
3716  test -z "$as_dir" && as_dir=.
3717    for ac_exec_ext in '' $ac_executable_extensions; do
3718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3719    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3720       ac_prog_rejected=yes
3721       continue
3722     fi
3723    ac_cv_prog_CC="cc"
3724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725    break 2
3726  fi
3727done
3728  done
3729IFS=$as_save_IFS
3730
3731if test $ac_prog_rejected = yes; then
3732  # We found a bogon in the path, so make sure we never use it.
3733  set dummy $ac_cv_prog_CC
3734  shift
3735  if test $# != 0; then
3736    # We chose a different compiler from the bogus one.
3737    # However, it has the same basename, so the bogon will be chosen
3738    # first if we set CC to just the basename; use the full file name.
3739    shift
3740    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3741  fi
3742fi
3743fi
3744fi
3745CC=$ac_cv_prog_CC
3746if test -n "$CC"; then
3747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3748$as_echo "$CC" >&6; }
3749else
3750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751$as_echo "no" >&6; }
3752fi
3753
3754
3755fi
3756if test -z "$CC"; then
3757  if test -n "$ac_tool_prefix"; then
3758  for ac_prog in cl.exe
3759  do
3760    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3761set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763$as_echo_n "checking for $ac_word... " >&6; }
3764if ${ac_cv_prog_CC+:} false; then :
3765  $as_echo_n "(cached) " >&6
3766else
3767  if test -n "$CC"; then
3768  ac_cv_prog_CC="$CC" # Let the user override the test.
3769else
3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH
3772do
3773  IFS=$as_save_IFS
3774  test -z "$as_dir" && as_dir=.
3775    for ac_exec_ext in '' $ac_executable_extensions; do
3776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3777    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779    break 2
3780  fi
3781done
3782  done
3783IFS=$as_save_IFS
3784
3785fi
3786fi
3787CC=$ac_cv_prog_CC
3788if test -n "$CC"; then
3789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3790$as_echo "$CC" >&6; }
3791else
3792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793$as_echo "no" >&6; }
3794fi
3795
3796
3797    test -n "$CC" && break
3798  done
3799fi
3800if test -z "$CC"; then
3801  ac_ct_CC=$CC
3802  for ac_prog in cl.exe
3803do
3804  # Extract the first word of "$ac_prog", so it can be a program name with args.
3805set dummy $ac_prog; ac_word=$2
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3807$as_echo_n "checking for $ac_word... " >&6; }
3808if ${ac_cv_prog_ac_ct_CC+:} false; then :
3809  $as_echo_n "(cached) " >&6
3810else
3811  if test -n "$ac_ct_CC"; then
3812  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3813else
3814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815for as_dir in $PATH
3816do
3817  IFS=$as_save_IFS
3818  test -z "$as_dir" && as_dir=.
3819    for ac_exec_ext in '' $ac_executable_extensions; do
3820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3821    ac_cv_prog_ac_ct_CC="$ac_prog"
3822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3823    break 2
3824  fi
3825done
3826  done
3827IFS=$as_save_IFS
3828
3829fi
3830fi
3831ac_ct_CC=$ac_cv_prog_ac_ct_CC
3832if test -n "$ac_ct_CC"; then
3833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3834$as_echo "$ac_ct_CC" >&6; }
3835else
3836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837$as_echo "no" >&6; }
3838fi
3839
3840
3841  test -n "$ac_ct_CC" && break
3842done
3843
3844  if test "x$ac_ct_CC" = x; then
3845    CC=""
3846  else
3847    case $cross_compiling:$ac_tool_warned in
3848yes:)
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3851ac_tool_warned=yes ;;
3852esac
3853    CC=$ac_ct_CC
3854  fi
3855fi
3856
3857fi
3858
3859
3860test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862as_fn_error $? "no acceptable C compiler found in \$PATH
3863See \`config.log' for more details" "$LINENO" 5; }
3864
3865# Provide some information about the compiler.
3866$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3867set X $ac_compile
3868ac_compiler=$2
3869for ac_option in --version -v -V -qversion; do
3870  { { ac_try="$ac_compiler $ac_option >&5"
3871case "(($ac_try" in
3872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873  *) ac_try_echo=$ac_try;;
3874esac
3875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876$as_echo "$ac_try_echo"; } >&5
3877  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3878  ac_status=$?
3879  if test -s conftest.err; then
3880    sed '10a\
3881... rest of stderr output deleted ...
3882         10q' conftest.err >conftest.er1
3883    cat conftest.er1 >&5
3884  fi
3885  rm -f conftest.er1 conftest.err
3886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887  test $ac_status = 0; }
3888done
3889
3890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891/* end confdefs.h.  */
3892
3893int
3894main ()
3895{
3896
3897  ;
3898  return 0;
3899}
3900_ACEOF
3901ac_clean_files_save=$ac_clean_files
3902ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3903# Try to create an executable without -o first, disregard a.out.
3904# It will help us diagnose broken compilers, and finding out an intuition
3905# of exeext.
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3907$as_echo_n "checking whether the C compiler works... " >&6; }
3908ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3909
3910# The possible output files:
3911ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3912
3913ac_rmfiles=
3914for ac_file in $ac_files
3915do
3916  case $ac_file in
3917    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3918    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3919  esac
3920done
3921rm -f $ac_rmfiles
3922
3923if { { ac_try="$ac_link_default"
3924case "(($ac_try" in
3925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926  *) ac_try_echo=$ac_try;;
3927esac
3928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929$as_echo "$ac_try_echo"; } >&5
3930  (eval "$ac_link_default") 2>&5
3931  ac_status=$?
3932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933  test $ac_status = 0; }; then :
3934  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3935# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3936# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3937# so that the user can short-circuit this test for compilers unknown to
3938# Autoconf.
3939for ac_file in $ac_files ''
3940do
3941  test -f "$ac_file" || continue
3942  case $ac_file in
3943    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3944	;;
3945    [ab].out )
3946	# We found the default executable, but exeext='' is most
3947	# certainly right.
3948	break;;
3949    *.* )
3950	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3951	then :; else
3952	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3953	fi
3954	# We set ac_cv_exeext here because the later test for it is not
3955	# safe: cross compilers may not add the suffix if given an `-o'
3956	# argument, so we may need to know it at that point already.
3957	# Even if this section looks crufty: it has the advantage of
3958	# actually working.
3959	break;;
3960    * )
3961	break;;
3962  esac
3963done
3964test "$ac_cv_exeext" = no && ac_cv_exeext=
3965
3966else
3967  ac_file=''
3968fi
3969if test -z "$ac_file"; then :
3970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971$as_echo "no" >&6; }
3972$as_echo "$as_me: failed program was:" >&5
3973sed 's/^/| /' conftest.$ac_ext >&5
3974
3975{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3977as_fn_error 77 "C compiler cannot create executables
3978See \`config.log' for more details" "$LINENO" 5; }
3979else
3980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3981$as_echo "yes" >&6; }
3982fi
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3984$as_echo_n "checking for C compiler default output file name... " >&6; }
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3986$as_echo "$ac_file" >&6; }
3987ac_exeext=$ac_cv_exeext
3988
3989rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3990ac_clean_files=$ac_clean_files_save
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3992$as_echo_n "checking for suffix of executables... " >&6; }
3993if { { ac_try="$ac_link"
3994case "(($ac_try" in
3995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996  *) ac_try_echo=$ac_try;;
3997esac
3998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3999$as_echo "$ac_try_echo"; } >&5
4000  (eval "$ac_link") 2>&5
4001  ac_status=$?
4002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4003  test $ac_status = 0; }; then :
4004  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4005# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4006# work properly (i.e., refer to `conftest.exe'), while it won't with
4007# `rm'.
4008for ac_file in conftest.exe conftest conftest.*; do
4009  test -f "$ac_file" || continue
4010  case $ac_file in
4011    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4012    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4013	  break;;
4014    * ) break;;
4015  esac
4016done
4017else
4018  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4020as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4021See \`config.log' for more details" "$LINENO" 5; }
4022fi
4023rm -f conftest conftest$ac_cv_exeext
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4025$as_echo "$ac_cv_exeext" >&6; }
4026
4027rm -f conftest.$ac_ext
4028EXEEXT=$ac_cv_exeext
4029ac_exeext=$EXEEXT
4030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h.  */
4032#include <stdio.h>
4033int
4034main ()
4035{
4036FILE *f = fopen ("conftest.out", "w");
4037 return ferror (f) || fclose (f) != 0;
4038
4039  ;
4040  return 0;
4041}
4042_ACEOF
4043ac_clean_files="$ac_clean_files conftest.out"
4044# Check that the compiler produces executables we can run.  If not, either
4045# the compiler is broken, or we cross compile.
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4047$as_echo_n "checking whether we are cross compiling... " >&6; }
4048if test "$cross_compiling" != yes; then
4049  { { ac_try="$ac_link"
4050case "(($ac_try" in
4051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052  *) ac_try_echo=$ac_try;;
4053esac
4054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055$as_echo "$ac_try_echo"; } >&5
4056  (eval "$ac_link") 2>&5
4057  ac_status=$?
4058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059  test $ac_status = 0; }
4060  if { ac_try='./conftest$ac_cv_exeext'
4061  { { case "(($ac_try" in
4062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063  *) ac_try_echo=$ac_try;;
4064esac
4065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4066$as_echo "$ac_try_echo"; } >&5
4067  (eval "$ac_try") 2>&5
4068  ac_status=$?
4069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4070  test $ac_status = 0; }; }; then
4071    cross_compiling=no
4072  else
4073    if test "$cross_compiling" = maybe; then
4074	cross_compiling=yes
4075    else
4076	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4078as_fn_error $? "cannot run C compiled programs.
4079If you meant to cross compile, use \`--host'.
4080See \`config.log' for more details" "$LINENO" 5; }
4081    fi
4082  fi
4083fi
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4085$as_echo "$cross_compiling" >&6; }
4086
4087rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4088ac_clean_files=$ac_clean_files_save
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4090$as_echo_n "checking for suffix of object files... " >&6; }
4091if ${ac_cv_objext+:} false; then :
4092  $as_echo_n "(cached) " >&6
4093else
4094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095/* end confdefs.h.  */
4096
4097int
4098main ()
4099{
4100
4101  ;
4102  return 0;
4103}
4104_ACEOF
4105rm -f conftest.o conftest.obj
4106if { { ac_try="$ac_compile"
4107case "(($ac_try" in
4108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109  *) ac_try_echo=$ac_try;;
4110esac
4111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4112$as_echo "$ac_try_echo"; } >&5
4113  (eval "$ac_compile") 2>&5
4114  ac_status=$?
4115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4116  test $ac_status = 0; }; then :
4117  for ac_file in conftest.o conftest.obj conftest.*; do
4118  test -f "$ac_file" || continue;
4119  case $ac_file in
4120    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4121    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4122       break;;
4123  esac
4124done
4125else
4126  $as_echo "$as_me: failed program was:" >&5
4127sed 's/^/| /' conftest.$ac_ext >&5
4128
4129{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4131as_fn_error $? "cannot compute suffix of object files: cannot compile
4132See \`config.log' for more details" "$LINENO" 5; }
4133fi
4134rm -f conftest.$ac_cv_objext conftest.$ac_ext
4135fi
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4137$as_echo "$ac_cv_objext" >&6; }
4138OBJEXT=$ac_cv_objext
4139ac_objext=$OBJEXT
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4141$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4142if ${ac_cv_c_compiler_gnu+:} false; then :
4143  $as_echo_n "(cached) " >&6
4144else
4145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146/* end confdefs.h.  */
4147
4148int
4149main ()
4150{
4151#ifndef __GNUC__
4152       choke me
4153#endif
4154
4155  ;
4156  return 0;
4157}
4158_ACEOF
4159if ac_fn_c_try_compile "$LINENO"; then :
4160  ac_compiler_gnu=yes
4161else
4162  ac_compiler_gnu=no
4163fi
4164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165ac_cv_c_compiler_gnu=$ac_compiler_gnu
4166
4167fi
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4169$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4170if test $ac_compiler_gnu = yes; then
4171  GCC=yes
4172else
4173  GCC=
4174fi
4175ac_test_CFLAGS=${CFLAGS+set}
4176ac_save_CFLAGS=$CFLAGS
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4178$as_echo_n "checking whether $CC accepts -g... " >&6; }
4179if ${ac_cv_prog_cc_g+:} false; then :
4180  $as_echo_n "(cached) " >&6
4181else
4182  ac_save_c_werror_flag=$ac_c_werror_flag
4183   ac_c_werror_flag=yes
4184   ac_cv_prog_cc_g=no
4185   CFLAGS="-g"
4186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h.  */
4188
4189int
4190main ()
4191{
4192
4193  ;
4194  return 0;
4195}
4196_ACEOF
4197if ac_fn_c_try_compile "$LINENO"; then :
4198  ac_cv_prog_cc_g=yes
4199else
4200  CFLAGS=""
4201      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202/* end confdefs.h.  */
4203
4204int
4205main ()
4206{
4207
4208  ;
4209  return 0;
4210}
4211_ACEOF
4212if ac_fn_c_try_compile "$LINENO"; then :
4213
4214else
4215  ac_c_werror_flag=$ac_save_c_werror_flag
4216	 CFLAGS="-g"
4217	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218/* end confdefs.h.  */
4219
4220int
4221main ()
4222{
4223
4224  ;
4225  return 0;
4226}
4227_ACEOF
4228if ac_fn_c_try_compile "$LINENO"; then :
4229  ac_cv_prog_cc_g=yes
4230fi
4231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232fi
4233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234fi
4235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236   ac_c_werror_flag=$ac_save_c_werror_flag
4237fi
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4239$as_echo "$ac_cv_prog_cc_g" >&6; }
4240if test "$ac_test_CFLAGS" = set; then
4241  CFLAGS=$ac_save_CFLAGS
4242elif test $ac_cv_prog_cc_g = yes; then
4243  if test "$GCC" = yes; then
4244    CFLAGS="-g -O2"
4245  else
4246    CFLAGS="-g"
4247  fi
4248else
4249  if test "$GCC" = yes; then
4250    CFLAGS="-O2"
4251  else
4252    CFLAGS=
4253  fi
4254fi
4255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4256$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4257if ${ac_cv_prog_cc_c89+:} false; then :
4258  $as_echo_n "(cached) " >&6
4259else
4260  ac_cv_prog_cc_c89=no
4261ac_save_CC=$CC
4262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263/* end confdefs.h.  */
4264#include <stdarg.h>
4265#include <stdio.h>
4266struct stat;
4267/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4268struct buf { int x; };
4269FILE * (*rcsopen) (struct buf *, struct stat *, int);
4270static char *e (p, i)
4271     char **p;
4272     int i;
4273{
4274  return p[i];
4275}
4276static char *f (char * (*g) (char **, int), char **p, ...)
4277{
4278  char *s;
4279  va_list v;
4280  va_start (v,p);
4281  s = g (p, va_arg (v,int));
4282  va_end (v);
4283  return s;
4284}
4285
4286/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4287   function prototypes and stuff, but not '\xHH' hex character constants.
4288   These don't provoke an error unfortunately, instead are silently treated
4289   as 'x'.  The following induces an error, until -std is added to get
4290   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4291   array size at least.  It's necessary to write '\x00'==0 to get something
4292   that's true only with -std.  */
4293int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4294
4295/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4296   inside strings and character constants.  */
4297#define FOO(x) 'x'
4298int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4299
4300int test (int i, double x);
4301struct s1 {int (*f) (int a);};
4302struct s2 {int (*f) (double a);};
4303int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4304int argc;
4305char **argv;
4306int
4307main ()
4308{
4309return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4310  ;
4311  return 0;
4312}
4313_ACEOF
4314for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4315	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4316do
4317  CC="$ac_save_CC $ac_arg"
4318  if ac_fn_c_try_compile "$LINENO"; then :
4319  ac_cv_prog_cc_c89=$ac_arg
4320fi
4321rm -f core conftest.err conftest.$ac_objext
4322  test "x$ac_cv_prog_cc_c89" != "xno" && break
4323done
4324rm -f conftest.$ac_ext
4325CC=$ac_save_CC
4326
4327fi
4328# AC_CACHE_VAL
4329case "x$ac_cv_prog_cc_c89" in
4330  x)
4331    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4332$as_echo "none needed" >&6; } ;;
4333  xno)
4334    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4335$as_echo "unsupported" >&6; } ;;
4336  *)
4337    CC="$CC $ac_cv_prog_cc_c89"
4338    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4339$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4340esac
4341if test "x$ac_cv_prog_cc_c89" != xno; then :
4342
4343fi
4344
4345ac_ext=c
4346ac_cpp='$CPP $CPPFLAGS'
4347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350
4351ac_ext=c
4352ac_cpp='$CPP $CPPFLAGS'
4353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4357$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4358if ${am_cv_prog_cc_c_o+:} false; then :
4359  $as_echo_n "(cached) " >&6
4360else
4361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362/* end confdefs.h.  */
4363
4364int
4365main ()
4366{
4367
4368  ;
4369  return 0;
4370}
4371_ACEOF
4372  # Make sure it works both with $CC and with simple cc.
4373  # Following AC_PROG_CC_C_O, we do the test twice because some
4374  # compilers refuse to overwrite an existing .o file with -o,
4375  # though they will create one.
4376  am_cv_prog_cc_c_o=yes
4377  for am_i in 1 2; do
4378    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4379   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); } \
4383         && test -f conftest2.$ac_objext; then
4384      : OK
4385    else
4386      am_cv_prog_cc_c_o=no
4387      break
4388    fi
4389  done
4390  rm -f core conftest*
4391  unset am_i
4392fi
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4394$as_echo "$am_cv_prog_cc_c_o" >&6; }
4395if test "$am_cv_prog_cc_c_o" != yes; then
4396   # Losing compiler, so override with the script.
4397   # FIXME: It is wrong to rewrite CC.
4398   # But if we don't then we get into trouble of one sort or another.
4399   # A longer-term fix would be to have automake use am__CC in this case,
4400   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4401   CC="$am_aux_dir/compile $CC"
4402fi
4403ac_ext=c
4404ac_cpp='$CPP $CPPFLAGS'
4405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407ac_compiler_gnu=$ac_cv_c_compiler_gnu
4408
4409
4410depcc="$CC"   am_compiler_list=
4411
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4413$as_echo_n "checking dependency style of $depcc... " >&6; }
4414if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4415  $as_echo_n "(cached) " >&6
4416else
4417  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4418  # We make a subdir and do the tests there.  Otherwise we can end up
4419  # making bogus files that we don't know about and never remove.  For
4420  # instance it was reported that on HP-UX the gcc test will end up
4421  # making a dummy file named 'D' -- because '-MD' means "put the output
4422  # in D".
4423  rm -rf conftest.dir
4424  mkdir conftest.dir
4425  # Copy depcomp to subdir because otherwise we won't find it if we're
4426  # using a relative directory.
4427  cp "$am_depcomp" conftest.dir
4428  cd conftest.dir
4429  # We will build objects and dependencies in a subdirectory because
4430  # it helps to detect inapplicable dependency modes.  For instance
4431  # both Tru64's cc and ICC support -MD to output dependencies as a
4432  # side effect of compilation, but ICC will put the dependencies in
4433  # the current directory while Tru64 will put them in the object
4434  # directory.
4435  mkdir sub
4436
4437  am_cv_CC_dependencies_compiler_type=none
4438  if test "$am_compiler_list" = ""; then
4439     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4440  fi
4441  am__universal=false
4442  case " $depcc " in #(
4443     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4444     esac
4445
4446  for depmode in $am_compiler_list; do
4447    # Setup a source with many dependencies, because some compilers
4448    # like to wrap large dependency lists on column 80 (with \), and
4449    # we should not choose a depcomp mode which is confused by this.
4450    #
4451    # We need to recreate these files for each test, as the compiler may
4452    # overwrite some of them when testing with obscure command lines.
4453    # This happens at least with the AIX C compiler.
4454    : > sub/conftest.c
4455    for i in 1 2 3 4 5 6; do
4456      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4457      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4458      # Solaris 10 /bin/sh.
4459      echo '/* dummy */' > sub/conftst$i.h
4460    done
4461    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4462
4463    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4464    # mode.  It turns out that the SunPro C++ compiler does not properly
4465    # handle '-M -o', and we need to detect this.  Also, some Intel
4466    # versions had trouble with output in subdirs.
4467    am__obj=sub/conftest.${OBJEXT-o}
4468    am__minus_obj="-o $am__obj"
4469    case $depmode in
4470    gcc)
4471      # This depmode causes a compiler race in universal mode.
4472      test "$am__universal" = false || continue
4473      ;;
4474    nosideeffect)
4475      # After this tag, mechanisms are not by side-effect, so they'll
4476      # only be used when explicitly requested.
4477      if test "x$enable_dependency_tracking" = xyes; then
4478	continue
4479      else
4480	break
4481      fi
4482      ;;
4483    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4484      # This compiler won't grok '-c -o', but also, the minuso test has
4485      # not run yet.  These depmodes are late enough in the game, and
4486      # so weak that their functioning should not be impacted.
4487      am__obj=conftest.${OBJEXT-o}
4488      am__minus_obj=
4489      ;;
4490    none) break ;;
4491    esac
4492    if depmode=$depmode \
4493       source=sub/conftest.c object=$am__obj \
4494       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4495       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4496         >/dev/null 2>conftest.err &&
4497       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4498       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4499       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4500       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4501      # icc doesn't choke on unknown options, it will just issue warnings
4502      # or remarks (even with -Werror).  So we grep stderr for any message
4503      # that says an option was ignored or not supported.
4504      # When given -MP, icc 7.0 and 7.1 complain thusly:
4505      #   icc: Command line warning: ignoring option '-M'; no argument required
4506      # The diagnosis changed in icc 8.0:
4507      #   icc: Command line remark: option '-MP' not supported
4508      if (grep 'ignoring option' conftest.err ||
4509          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4510        am_cv_CC_dependencies_compiler_type=$depmode
4511        break
4512      fi
4513    fi
4514  done
4515
4516  cd ..
4517  rm -rf conftest.dir
4518else
4519  am_cv_CC_dependencies_compiler_type=none
4520fi
4521
4522fi
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4524$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4525CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4526
4527 if
4528  test "x$enable_dependency_tracking" != xno \
4529  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4530  am__fastdepCC_TRUE=
4531  am__fastdepCC_FALSE='#'
4532else
4533  am__fastdepCC_TRUE='#'
4534  am__fastdepCC_FALSE=
4535fi
4536
4537
4538
4539if test -n "$ac_tool_prefix"; then
4540  for ac_prog in ar lib "link -lib"
4541  do
4542    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4543set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545$as_echo_n "checking for $ac_word... " >&6; }
4546if ${ac_cv_prog_AR+:} false; then :
4547  $as_echo_n "(cached) " >&6
4548else
4549  if test -n "$AR"; then
4550  ac_cv_prog_AR="$AR" # Let the user override the test.
4551else
4552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555  IFS=$as_save_IFS
4556  test -z "$as_dir" && as_dir=.
4557    for ac_exec_ext in '' $ac_executable_extensions; do
4558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561    break 2
4562  fi
4563done
4564  done
4565IFS=$as_save_IFS
4566
4567fi
4568fi
4569AR=$ac_cv_prog_AR
4570if test -n "$AR"; then
4571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4572$as_echo "$AR" >&6; }
4573else
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575$as_echo "no" >&6; }
4576fi
4577
4578
4579    test -n "$AR" && break
4580  done
4581fi
4582if test -z "$AR"; then
4583  ac_ct_AR=$AR
4584  for ac_prog in ar lib "link -lib"
4585do
4586  # Extract the first word of "$ac_prog", so it can be a program name with args.
4587set dummy $ac_prog; ac_word=$2
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589$as_echo_n "checking for $ac_word... " >&6; }
4590if ${ac_cv_prog_ac_ct_AR+:} false; then :
4591  $as_echo_n "(cached) " >&6
4592else
4593  if test -n "$ac_ct_AR"; then
4594  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4595else
4596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH
4598do
4599  IFS=$as_save_IFS
4600  test -z "$as_dir" && as_dir=.
4601    for ac_exec_ext in '' $ac_executable_extensions; do
4602  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603    ac_cv_prog_ac_ct_AR="$ac_prog"
4604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605    break 2
4606  fi
4607done
4608  done
4609IFS=$as_save_IFS
4610
4611fi
4612fi
4613ac_ct_AR=$ac_cv_prog_ac_ct_AR
4614if test -n "$ac_ct_AR"; then
4615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4616$as_echo "$ac_ct_AR" >&6; }
4617else
4618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619$as_echo "no" >&6; }
4620fi
4621
4622
4623  test -n "$ac_ct_AR" && break
4624done
4625
4626  if test "x$ac_ct_AR" = x; then
4627    AR="false"
4628  else
4629    case $cross_compiling:$ac_tool_warned in
4630yes:)
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4633ac_tool_warned=yes ;;
4634esac
4635    AR=$ac_ct_AR
4636  fi
4637fi
4638
4639: ${AR=ar}
4640
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4642$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4643if ${am_cv_ar_interface+:} false; then :
4644  $as_echo_n "(cached) " >&6
4645else
4646  ac_ext=c
4647ac_cpp='$CPP $CPPFLAGS'
4648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651
4652   am_cv_ar_interface=ar
4653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654/* end confdefs.h.  */
4655int some_variable = 0;
4656_ACEOF
4657if ac_fn_c_try_compile "$LINENO"; then :
4658  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4659      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4660  (eval $am_ar_try) 2>&5
4661  ac_status=$?
4662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4663  test $ac_status = 0; }
4664      if test "$ac_status" -eq 0; then
4665        am_cv_ar_interface=ar
4666      else
4667        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4668        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4669  (eval $am_ar_try) 2>&5
4670  ac_status=$?
4671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4672  test $ac_status = 0; }
4673        if test "$ac_status" -eq 0; then
4674          am_cv_ar_interface=lib
4675        else
4676          am_cv_ar_interface=unknown
4677        fi
4678      fi
4679      rm -f conftest.lib libconftest.a
4680
4681fi
4682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683   ac_ext=c
4684ac_cpp='$CPP $CPPFLAGS'
4685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688
4689fi
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4691$as_echo "$am_cv_ar_interface" >&6; }
4692
4693case $am_cv_ar_interface in
4694ar)
4695  ;;
4696lib)
4697  # Microsoft lib, so override with the ar-lib wrapper script.
4698  # FIXME: It is wrong to rewrite AR.
4699  # But if we don't then we get into trouble of one sort or another.
4700  # A longer-term fix would be to have automake use am__AR in this case,
4701  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4702  # similar.
4703  AR="$am_aux_dir/ar-lib $AR"
4704  ;;
4705unknown)
4706  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4707  ;;
4708esac
4709
4710ac_ext=c
4711ac_cpp='$CPP $CPPFLAGS'
4712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4714ac_compiler_gnu=$ac_cv_c_compiler_gnu
4715if test -n "$ac_tool_prefix"; then
4716  for ac_prog in mycc gcc llvm-gcc clang
4717  do
4718    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4719set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721$as_echo_n "checking for $ac_word... " >&6; }
4722if ${ac_cv_prog_CC+:} false; then :
4723  $as_echo_n "(cached) " >&6
4724else
4725  if test -n "$CC"; then
4726  ac_cv_prog_CC="$CC" # Let the user override the test.
4727else
4728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729for as_dir in $PATH
4730do
4731  IFS=$as_save_IFS
4732  test -z "$as_dir" && as_dir=.
4733    for ac_exec_ext in '' $ac_executable_extensions; do
4734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737    break 2
4738  fi
4739done
4740  done
4741IFS=$as_save_IFS
4742
4743fi
4744fi
4745CC=$ac_cv_prog_CC
4746if test -n "$CC"; then
4747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4748$as_echo "$CC" >&6; }
4749else
4750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751$as_echo "no" >&6; }
4752fi
4753
4754
4755    test -n "$CC" && break
4756  done
4757fi
4758if test -z "$CC"; then
4759  ac_ct_CC=$CC
4760  for ac_prog in mycc gcc llvm-gcc clang
4761do
4762  # Extract the first word of "$ac_prog", so it can be a program name with args.
4763set dummy $ac_prog; ac_word=$2
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765$as_echo_n "checking for $ac_word... " >&6; }
4766if ${ac_cv_prog_ac_ct_CC+:} false; then :
4767  $as_echo_n "(cached) " >&6
4768else
4769  if test -n "$ac_ct_CC"; then
4770  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4771else
4772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH
4774do
4775  IFS=$as_save_IFS
4776  test -z "$as_dir" && as_dir=.
4777    for ac_exec_ext in '' $ac_executable_extensions; do
4778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779    ac_cv_prog_ac_ct_CC="$ac_prog"
4780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781    break 2
4782  fi
4783done
4784  done
4785IFS=$as_save_IFS
4786
4787fi
4788fi
4789ac_ct_CC=$ac_cv_prog_ac_ct_CC
4790if test -n "$ac_ct_CC"; then
4791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4792$as_echo "$ac_ct_CC" >&6; }
4793else
4794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795$as_echo "no" >&6; }
4796fi
4797
4798
4799  test -n "$ac_ct_CC" && break
4800done
4801
4802  if test "x$ac_ct_CC" = x; then
4803    CC=""
4804  else
4805    case $cross_compiling:$ac_tool_warned in
4806yes:)
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4809ac_tool_warned=yes ;;
4810esac
4811    CC=$ac_ct_CC
4812  fi
4813fi
4814
4815
4816test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4818as_fn_error $? "no acceptable C compiler found in \$PATH
4819See \`config.log' for more details" "$LINENO" 5; }
4820
4821# Provide some information about the compiler.
4822$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4823set X $ac_compile
4824ac_compiler=$2
4825for ac_option in --version -v -V -qversion; do
4826  { { ac_try="$ac_compiler $ac_option >&5"
4827case "(($ac_try" in
4828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829  *) ac_try_echo=$ac_try;;
4830esac
4831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4832$as_echo "$ac_try_echo"; } >&5
4833  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4834  ac_status=$?
4835  if test -s conftest.err; then
4836    sed '10a\
4837... rest of stderr output deleted ...
4838         10q' conftest.err >conftest.er1
4839    cat conftest.er1 >&5
4840  fi
4841  rm -f conftest.er1 conftest.err
4842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4843  test $ac_status = 0; }
4844done
4845
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4847$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4848if ${ac_cv_c_compiler_gnu+:} false; then :
4849  $as_echo_n "(cached) " >&6
4850else
4851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852/* end confdefs.h.  */
4853
4854int
4855main ()
4856{
4857#ifndef __GNUC__
4858       choke me
4859#endif
4860
4861  ;
4862  return 0;
4863}
4864_ACEOF
4865if ac_fn_c_try_compile "$LINENO"; then :
4866  ac_compiler_gnu=yes
4867else
4868  ac_compiler_gnu=no
4869fi
4870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871ac_cv_c_compiler_gnu=$ac_compiler_gnu
4872
4873fi
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4875$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4876if test $ac_compiler_gnu = yes; then
4877  GCC=yes
4878else
4879  GCC=
4880fi
4881ac_test_CFLAGS=${CFLAGS+set}
4882ac_save_CFLAGS=$CFLAGS
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4884$as_echo_n "checking whether $CC accepts -g... " >&6; }
4885if ${ac_cv_prog_cc_g+:} false; then :
4886  $as_echo_n "(cached) " >&6
4887else
4888  ac_save_c_werror_flag=$ac_c_werror_flag
4889   ac_c_werror_flag=yes
4890   ac_cv_prog_cc_g=no
4891   CFLAGS="-g"
4892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893/* end confdefs.h.  */
4894
4895int
4896main ()
4897{
4898
4899  ;
4900  return 0;
4901}
4902_ACEOF
4903if ac_fn_c_try_compile "$LINENO"; then :
4904  ac_cv_prog_cc_g=yes
4905else
4906  CFLAGS=""
4907      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908/* end confdefs.h.  */
4909
4910int
4911main ()
4912{
4913
4914  ;
4915  return 0;
4916}
4917_ACEOF
4918if ac_fn_c_try_compile "$LINENO"; then :
4919
4920else
4921  ac_c_werror_flag=$ac_save_c_werror_flag
4922	 CFLAGS="-g"
4923	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924/* end confdefs.h.  */
4925
4926int
4927main ()
4928{
4929
4930  ;
4931  return 0;
4932}
4933_ACEOF
4934if ac_fn_c_try_compile "$LINENO"; then :
4935  ac_cv_prog_cc_g=yes
4936fi
4937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938fi
4939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940fi
4941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942   ac_c_werror_flag=$ac_save_c_werror_flag
4943fi
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4945$as_echo "$ac_cv_prog_cc_g" >&6; }
4946if test "$ac_test_CFLAGS" = set; then
4947  CFLAGS=$ac_save_CFLAGS
4948elif test $ac_cv_prog_cc_g = yes; then
4949  if test "$GCC" = yes; then
4950    CFLAGS="-g -O2"
4951  else
4952    CFLAGS="-g"
4953  fi
4954else
4955  if test "$GCC" = yes; then
4956    CFLAGS="-O2"
4957  else
4958    CFLAGS=
4959  fi
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4962$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4963if ${ac_cv_prog_cc_c89+:} false; then :
4964  $as_echo_n "(cached) " >&6
4965else
4966  ac_cv_prog_cc_c89=no
4967ac_save_CC=$CC
4968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969/* end confdefs.h.  */
4970#include <stdarg.h>
4971#include <stdio.h>
4972struct stat;
4973/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4974struct buf { int x; };
4975FILE * (*rcsopen) (struct buf *, struct stat *, int);
4976static char *e (p, i)
4977     char **p;
4978     int i;
4979{
4980  return p[i];
4981}
4982static char *f (char * (*g) (char **, int), char **p, ...)
4983{
4984  char *s;
4985  va_list v;
4986  va_start (v,p);
4987  s = g (p, va_arg (v,int));
4988  va_end (v);
4989  return s;
4990}
4991
4992/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4993   function prototypes and stuff, but not '\xHH' hex character constants.
4994   These don't provoke an error unfortunately, instead are silently treated
4995   as 'x'.  The following induces an error, until -std is added to get
4996   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4997   array size at least.  It's necessary to write '\x00'==0 to get something
4998   that's true only with -std.  */
4999int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5000
5001/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5002   inside strings and character constants.  */
5003#define FOO(x) 'x'
5004int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5005
5006int test (int i, double x);
5007struct s1 {int (*f) (int a);};
5008struct s2 {int (*f) (double a);};
5009int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5010int argc;
5011char **argv;
5012int
5013main ()
5014{
5015return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5016  ;
5017  return 0;
5018}
5019_ACEOF
5020for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5021	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5022do
5023  CC="$ac_save_CC $ac_arg"
5024  if ac_fn_c_try_compile "$LINENO"; then :
5025  ac_cv_prog_cc_c89=$ac_arg
5026fi
5027rm -f core conftest.err conftest.$ac_objext
5028  test "x$ac_cv_prog_cc_c89" != "xno" && break
5029done
5030rm -f conftest.$ac_ext
5031CC=$ac_save_CC
5032
5033fi
5034# AC_CACHE_VAL
5035case "x$ac_cv_prog_cc_c89" in
5036  x)
5037    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5038$as_echo "none needed" >&6; } ;;
5039  xno)
5040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5041$as_echo "unsupported" >&6; } ;;
5042  *)
5043    CC="$CC $ac_cv_prog_cc_c89"
5044    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5045$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5046esac
5047if test "x$ac_cv_prog_cc_c89" != xno; then :
5048
5049fi
5050
5051ac_ext=c
5052ac_cpp='$CPP $CPPFLAGS'
5053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055ac_compiler_gnu=$ac_cv_c_compiler_gnu
5056
5057ac_ext=c
5058ac_cpp='$CPP $CPPFLAGS'
5059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061ac_compiler_gnu=$ac_cv_c_compiler_gnu
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5063$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5064if ${am_cv_prog_cc_c_o+:} false; then :
5065  $as_echo_n "(cached) " >&6
5066else
5067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068/* end confdefs.h.  */
5069
5070int
5071main ()
5072{
5073
5074  ;
5075  return 0;
5076}
5077_ACEOF
5078  # Make sure it works both with $CC and with simple cc.
5079  # Following AC_PROG_CC_C_O, we do the test twice because some
5080  # compilers refuse to overwrite an existing .o file with -o,
5081  # though they will create one.
5082  am_cv_prog_cc_c_o=yes
5083  for am_i in 1 2; do
5084    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5085   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5086   ac_status=$?
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); } \
5089         && test -f conftest2.$ac_objext; then
5090      : OK
5091    else
5092      am_cv_prog_cc_c_o=no
5093      break
5094    fi
5095  done
5096  rm -f core conftest*
5097  unset am_i
5098fi
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5100$as_echo "$am_cv_prog_cc_c_o" >&6; }
5101if test "$am_cv_prog_cc_c_o" != yes; then
5102   # Losing compiler, so override with the script.
5103   # FIXME: It is wrong to rewrite CC.
5104   # But if we don't then we get into trouble of one sort or another.
5105   # A longer-term fix would be to have automake use am__CC in this case,
5106   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5107   CC="$am_aux_dir/compile $CC"
5108fi
5109ac_ext=c
5110ac_cpp='$CPP $CPPFLAGS'
5111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113ac_compiler_gnu=$ac_cv_c_compiler_gnu
5114
5115
5116depcc="$CC"   am_compiler_list=
5117
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5119$as_echo_n "checking dependency style of $depcc... " >&6; }
5120if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5121  $as_echo_n "(cached) " >&6
5122else
5123  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5124  # We make a subdir and do the tests there.  Otherwise we can end up
5125  # making bogus files that we don't know about and never remove.  For
5126  # instance it was reported that on HP-UX the gcc test will end up
5127  # making a dummy file named 'D' -- because '-MD' means "put the output
5128  # in D".
5129  rm -rf conftest.dir
5130  mkdir conftest.dir
5131  # Copy depcomp to subdir because otherwise we won't find it if we're
5132  # using a relative directory.
5133  cp "$am_depcomp" conftest.dir
5134  cd conftest.dir
5135  # We will build objects and dependencies in a subdirectory because
5136  # it helps to detect inapplicable dependency modes.  For instance
5137  # both Tru64's cc and ICC support -MD to output dependencies as a
5138  # side effect of compilation, but ICC will put the dependencies in
5139  # the current directory while Tru64 will put them in the object
5140  # directory.
5141  mkdir sub
5142
5143  am_cv_CC_dependencies_compiler_type=none
5144  if test "$am_compiler_list" = ""; then
5145     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5146  fi
5147  am__universal=false
5148  case " $depcc " in #(
5149     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5150     esac
5151
5152  for depmode in $am_compiler_list; do
5153    # Setup a source with many dependencies, because some compilers
5154    # like to wrap large dependency lists on column 80 (with \), and
5155    # we should not choose a depcomp mode which is confused by this.
5156    #
5157    # We need to recreate these files for each test, as the compiler may
5158    # overwrite some of them when testing with obscure command lines.
5159    # This happens at least with the AIX C compiler.
5160    : > sub/conftest.c
5161    for i in 1 2 3 4 5 6; do
5162      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5163      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5164      # Solaris 10 /bin/sh.
5165      echo '/* dummy */' > sub/conftst$i.h
5166    done
5167    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5168
5169    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5170    # mode.  It turns out that the SunPro C++ compiler does not properly
5171    # handle '-M -o', and we need to detect this.  Also, some Intel
5172    # versions had trouble with output in subdirs.
5173    am__obj=sub/conftest.${OBJEXT-o}
5174    am__minus_obj="-o $am__obj"
5175    case $depmode in
5176    gcc)
5177      # This depmode causes a compiler race in universal mode.
5178      test "$am__universal" = false || continue
5179      ;;
5180    nosideeffect)
5181      # After this tag, mechanisms are not by side-effect, so they'll
5182      # only be used when explicitly requested.
5183      if test "x$enable_dependency_tracking" = xyes; then
5184	continue
5185      else
5186	break
5187      fi
5188      ;;
5189    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5190      # This compiler won't grok '-c -o', but also, the minuso test has
5191      # not run yet.  These depmodes are late enough in the game, and
5192      # so weak that their functioning should not be impacted.
5193      am__obj=conftest.${OBJEXT-o}
5194      am__minus_obj=
5195      ;;
5196    none) break ;;
5197    esac
5198    if depmode=$depmode \
5199       source=sub/conftest.c object=$am__obj \
5200       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5201       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5202         >/dev/null 2>conftest.err &&
5203       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5204       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5205       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5206       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5207      # icc doesn't choke on unknown options, it will just issue warnings
5208      # or remarks (even with -Werror).  So we grep stderr for any message
5209      # that says an option was ignored or not supported.
5210      # When given -MP, icc 7.0 and 7.1 complain thusly:
5211      #   icc: Command line warning: ignoring option '-M'; no argument required
5212      # The diagnosis changed in icc 8.0:
5213      #   icc: Command line remark: option '-MP' not supported
5214      if (grep 'ignoring option' conftest.err ||
5215          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5216        am_cv_CC_dependencies_compiler_type=$depmode
5217        break
5218      fi
5219    fi
5220  done
5221
5222  cd ..
5223  rm -rf conftest.dir
5224else
5225  am_cv_CC_dependencies_compiler_type=none
5226fi
5227
5228fi
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5230$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5231CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5232
5233 if
5234  test "x$enable_dependency_tracking" != xno \
5235  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5236  am__fastdepCC_TRUE=
5237  am__fastdepCC_FALSE='#'
5238else
5239  am__fastdepCC_TRUE='#'
5240  am__fastdepCC_FALSE=
5241fi
5242
5243
5244
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5246$as_echo_n "checking whether ln -s works... " >&6; }
5247LN_S=$as_ln_s
5248if test "$LN_S" = "ln -s"; then
5249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5250$as_echo "yes" >&6; }
5251else
5252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5253$as_echo "no, using $LN_S" >&6; }
5254fi
5255
5256case `pwd` in
5257  *\ * | *\	*)
5258    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5259$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5260esac
5261
5262
5263
5264macro_version='2.4.6'
5265macro_revision='2.4.6'
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279ltmain=$ac_aux_dir/ltmain.sh
5280
5281# Backslashify metacharacters that are still active within
5282# double-quoted strings.
5283sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5284
5285# Same as above, but do not quote variable references.
5286double_quote_subst='s/\(["`\\]\)/\\\1/g'
5287
5288# Sed substitution to delay expansion of an escaped shell variable in a
5289# double_quote_subst'ed string.
5290delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5291
5292# Sed substitution to delay expansion of an escaped single quote.
5293delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5294
5295# Sed substitution to avoid accidental globbing in evaled expressions
5296no_glob_subst='s/\*/\\\*/g'
5297
5298ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5299ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5300ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5301
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5303$as_echo_n "checking how to print strings... " >&6; }
5304# Test print first, because it will be a builtin if present.
5305if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5306   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5307  ECHO='print -r --'
5308elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5309  ECHO='printf %s\n'
5310else
5311  # Use this function as a fallback that always works.
5312  func_fallback_echo ()
5313  {
5314    eval 'cat <<_LTECHO_EOF
5315$1
5316_LTECHO_EOF'
5317  }
5318  ECHO='func_fallback_echo'
5319fi
5320
5321# func_echo_all arg...
5322# Invoke $ECHO with all args, space-separated.
5323func_echo_all ()
5324{
5325    $ECHO ""
5326}
5327
5328case $ECHO in
5329  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5330$as_echo "printf" >&6; } ;;
5331  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5332$as_echo "print -r" >&6; } ;;
5333  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5334$as_echo "cat" >&6; } ;;
5335esac
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5351$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5352if ${ac_cv_path_SED+:} false; then :
5353  $as_echo_n "(cached) " >&6
5354else
5355            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5356     for ac_i in 1 2 3 4 5 6 7; do
5357       ac_script="$ac_script$as_nl$ac_script"
5358     done
5359     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5360     { ac_script=; unset ac_script;}
5361     if test -z "$SED"; then
5362  ac_path_SED_found=false
5363  # Loop through the user's path and test for each of PROGNAME-LIST
5364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365for as_dir in $PATH
5366do
5367  IFS=$as_save_IFS
5368  test -z "$as_dir" && as_dir=.
5369    for ac_prog in sed gsed; do
5370    for ac_exec_ext in '' $ac_executable_extensions; do
5371      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5372      as_fn_executable_p "$ac_path_SED" || continue
5373# Check for GNU ac_path_SED and select it if it is found.
5374  # Check for GNU $ac_path_SED
5375case `"$ac_path_SED" --version 2>&1` in
5376*GNU*)
5377  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5378*)
5379  ac_count=0
5380  $as_echo_n 0123456789 >"conftest.in"
5381  while :
5382  do
5383    cat "conftest.in" "conftest.in" >"conftest.tmp"
5384    mv "conftest.tmp" "conftest.in"
5385    cp "conftest.in" "conftest.nl"
5386    $as_echo '' >> "conftest.nl"
5387    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5388    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5389    as_fn_arith $ac_count + 1 && ac_count=$as_val
5390    if test $ac_count -gt ${ac_path_SED_max-0}; then
5391      # Best one so far, save it but keep looking for a better one
5392      ac_cv_path_SED="$ac_path_SED"
5393      ac_path_SED_max=$ac_count
5394    fi
5395    # 10*(2^10) chars as input seems more than enough
5396    test $ac_count -gt 10 && break
5397  done
5398  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5399esac
5400
5401      $ac_path_SED_found && break 3
5402    done
5403  done
5404  done
5405IFS=$as_save_IFS
5406  if test -z "$ac_cv_path_SED"; then
5407    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5408  fi
5409else
5410  ac_cv_path_SED=$SED
5411fi
5412
5413fi
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5415$as_echo "$ac_cv_path_SED" >&6; }
5416 SED="$ac_cv_path_SED"
5417  rm -f conftest.sed
5418
5419test -z "$SED" && SED=sed
5420Xsed="$SED -e 1s/^X//"
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5433$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5434if ${ac_cv_path_GREP+:} false; then :
5435  $as_echo_n "(cached) " >&6
5436else
5437  if test -z "$GREP"; then
5438  ac_path_GREP_found=false
5439  # Loop through the user's path and test for each of PROGNAME-LIST
5440  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5442do
5443  IFS=$as_save_IFS
5444  test -z "$as_dir" && as_dir=.
5445    for ac_prog in grep ggrep; do
5446    for ac_exec_ext in '' $ac_executable_extensions; do
5447      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5448      as_fn_executable_p "$ac_path_GREP" || continue
5449# Check for GNU ac_path_GREP and select it if it is found.
5450  # Check for GNU $ac_path_GREP
5451case `"$ac_path_GREP" --version 2>&1` in
5452*GNU*)
5453  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5454*)
5455  ac_count=0
5456  $as_echo_n 0123456789 >"conftest.in"
5457  while :
5458  do
5459    cat "conftest.in" "conftest.in" >"conftest.tmp"
5460    mv "conftest.tmp" "conftest.in"
5461    cp "conftest.in" "conftest.nl"
5462    $as_echo 'GREP' >> "conftest.nl"
5463    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5464    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5465    as_fn_arith $ac_count + 1 && ac_count=$as_val
5466    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5467      # Best one so far, save it but keep looking for a better one
5468      ac_cv_path_GREP="$ac_path_GREP"
5469      ac_path_GREP_max=$ac_count
5470    fi
5471    # 10*(2^10) chars as input seems more than enough
5472    test $ac_count -gt 10 && break
5473  done
5474  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5475esac
5476
5477      $ac_path_GREP_found && break 3
5478    done
5479  done
5480  done
5481IFS=$as_save_IFS
5482  if test -z "$ac_cv_path_GREP"; then
5483    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5484  fi
5485else
5486  ac_cv_path_GREP=$GREP
5487fi
5488
5489fi
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5491$as_echo "$ac_cv_path_GREP" >&6; }
5492 GREP="$ac_cv_path_GREP"
5493
5494
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5496$as_echo_n "checking for egrep... " >&6; }
5497if ${ac_cv_path_EGREP+:} false; then :
5498  $as_echo_n "(cached) " >&6
5499else
5500  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5501   then ac_cv_path_EGREP="$GREP -E"
5502   else
5503     if test -z "$EGREP"; then
5504  ac_path_EGREP_found=false
5505  # Loop through the user's path and test for each of PROGNAME-LIST
5506  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5508do
5509  IFS=$as_save_IFS
5510  test -z "$as_dir" && as_dir=.
5511    for ac_prog in egrep; do
5512    for ac_exec_ext in '' $ac_executable_extensions; do
5513      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5514      as_fn_executable_p "$ac_path_EGREP" || continue
5515# Check for GNU ac_path_EGREP and select it if it is found.
5516  # Check for GNU $ac_path_EGREP
5517case `"$ac_path_EGREP" --version 2>&1` in
5518*GNU*)
5519  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5520*)
5521  ac_count=0
5522  $as_echo_n 0123456789 >"conftest.in"
5523  while :
5524  do
5525    cat "conftest.in" "conftest.in" >"conftest.tmp"
5526    mv "conftest.tmp" "conftest.in"
5527    cp "conftest.in" "conftest.nl"
5528    $as_echo 'EGREP' >> "conftest.nl"
5529    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5530    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5531    as_fn_arith $ac_count + 1 && ac_count=$as_val
5532    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5533      # Best one so far, save it but keep looking for a better one
5534      ac_cv_path_EGREP="$ac_path_EGREP"
5535      ac_path_EGREP_max=$ac_count
5536    fi
5537    # 10*(2^10) chars as input seems more than enough
5538    test $ac_count -gt 10 && break
5539  done
5540  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5541esac
5542
5543      $ac_path_EGREP_found && break 3
5544    done
5545  done
5546  done
5547IFS=$as_save_IFS
5548  if test -z "$ac_cv_path_EGREP"; then
5549    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5550  fi
5551else
5552  ac_cv_path_EGREP=$EGREP
5553fi
5554
5555   fi
5556fi
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5558$as_echo "$ac_cv_path_EGREP" >&6; }
5559 EGREP="$ac_cv_path_EGREP"
5560
5561
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5563$as_echo_n "checking for fgrep... " >&6; }
5564if ${ac_cv_path_FGREP+:} false; then :
5565  $as_echo_n "(cached) " >&6
5566else
5567  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5568   then ac_cv_path_FGREP="$GREP -F"
5569   else
5570     if test -z "$FGREP"; then
5571  ac_path_FGREP_found=false
5572  # Loop through the user's path and test for each of PROGNAME-LIST
5573  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5575do
5576  IFS=$as_save_IFS
5577  test -z "$as_dir" && as_dir=.
5578    for ac_prog in fgrep; do
5579    for ac_exec_ext in '' $ac_executable_extensions; do
5580      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5581      as_fn_executable_p "$ac_path_FGREP" || continue
5582# Check for GNU ac_path_FGREP and select it if it is found.
5583  # Check for GNU $ac_path_FGREP
5584case `"$ac_path_FGREP" --version 2>&1` in
5585*GNU*)
5586  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5587*)
5588  ac_count=0
5589  $as_echo_n 0123456789 >"conftest.in"
5590  while :
5591  do
5592    cat "conftest.in" "conftest.in" >"conftest.tmp"
5593    mv "conftest.tmp" "conftest.in"
5594    cp "conftest.in" "conftest.nl"
5595    $as_echo 'FGREP' >> "conftest.nl"
5596    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5597    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5598    as_fn_arith $ac_count + 1 && ac_count=$as_val
5599    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5600      # Best one so far, save it but keep looking for a better one
5601      ac_cv_path_FGREP="$ac_path_FGREP"
5602      ac_path_FGREP_max=$ac_count
5603    fi
5604    # 10*(2^10) chars as input seems more than enough
5605    test $ac_count -gt 10 && break
5606  done
5607  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5608esac
5609
5610      $ac_path_FGREP_found && break 3
5611    done
5612  done
5613  done
5614IFS=$as_save_IFS
5615  if test -z "$ac_cv_path_FGREP"; then
5616    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5617  fi
5618else
5619  ac_cv_path_FGREP=$FGREP
5620fi
5621
5622   fi
5623fi
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5625$as_echo "$ac_cv_path_FGREP" >&6; }
5626 FGREP="$ac_cv_path_FGREP"
5627
5628
5629test -z "$GREP" && GREP=grep
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649# Check whether --with-gnu-ld was given.
5650if test "${with_gnu_ld+set}" = set; then :
5651  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5652else
5653  with_gnu_ld=no
5654fi
5655
5656ac_prog=ld
5657if test yes = "$GCC"; then
5658  # Check if gcc -print-prog-name=ld gives a path.
5659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5660$as_echo_n "checking for ld used by $CC... " >&6; }
5661  case $host in
5662  *-*-mingw*)
5663    # gcc leaves a trailing carriage return, which upsets mingw
5664    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5665  *)
5666    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5667  esac
5668  case $ac_prog in
5669    # Accept absolute paths.
5670    [\\/]* | ?:[\\/]*)
5671      re_direlt='/[^/][^/]*/\.\./'
5672      # Canonicalize the pathname of ld
5673      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5674      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5675	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5676      done
5677      test -z "$LD" && LD=$ac_prog
5678      ;;
5679  "")
5680    # If it fails, then pretend we aren't using GCC.
5681    ac_prog=ld
5682    ;;
5683  *)
5684    # If it is relative, then search for the first ld in PATH.
5685    with_gnu_ld=unknown
5686    ;;
5687  esac
5688elif test yes = "$with_gnu_ld"; then
5689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5690$as_echo_n "checking for GNU ld... " >&6; }
5691else
5692  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5693$as_echo_n "checking for non-GNU ld... " >&6; }
5694fi
5695if ${lt_cv_path_LD+:} false; then :
5696  $as_echo_n "(cached) " >&6
5697else
5698  if test -z "$LD"; then
5699  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5700  for ac_dir in $PATH; do
5701    IFS=$lt_save_ifs
5702    test -z "$ac_dir" && ac_dir=.
5703    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5704      lt_cv_path_LD=$ac_dir/$ac_prog
5705      # Check to see if the program is GNU ld.  I'd rather use --version,
5706      # but apparently some variants of GNU ld only accept -v.
5707      # Break only if it was the GNU/non-GNU ld that we prefer.
5708      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5709      *GNU* | *'with BFD'*)
5710	test no != "$with_gnu_ld" && break
5711	;;
5712      *)
5713	test yes != "$with_gnu_ld" && break
5714	;;
5715      esac
5716    fi
5717  done
5718  IFS=$lt_save_ifs
5719else
5720  lt_cv_path_LD=$LD # Let the user override the test with a path.
5721fi
5722fi
5723
5724LD=$lt_cv_path_LD
5725if test -n "$LD"; then
5726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5727$as_echo "$LD" >&6; }
5728else
5729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730$as_echo "no" >&6; }
5731fi
5732test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5734$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5735if ${lt_cv_prog_gnu_ld+:} false; then :
5736  $as_echo_n "(cached) " >&6
5737else
5738  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5739case `$LD -v 2>&1 </dev/null` in
5740*GNU* | *'with BFD'*)
5741  lt_cv_prog_gnu_ld=yes
5742  ;;
5743*)
5744  lt_cv_prog_gnu_ld=no
5745  ;;
5746esac
5747fi
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5749$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5750with_gnu_ld=$lt_cv_prog_gnu_ld
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5761$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5762if ${lt_cv_path_NM+:} false; then :
5763  $as_echo_n "(cached) " >&6
5764else
5765  if test -n "$NM"; then
5766  # Let the user override the test.
5767  lt_cv_path_NM=$NM
5768else
5769  lt_nm_to_check=${ac_tool_prefix}nm
5770  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5771    lt_nm_to_check="$lt_nm_to_check nm"
5772  fi
5773  for lt_tmp_nm in $lt_nm_to_check; do
5774    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5775    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5776      IFS=$lt_save_ifs
5777      test -z "$ac_dir" && ac_dir=.
5778      tmp_nm=$ac_dir/$lt_tmp_nm
5779      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5780	# Check to see if the nm accepts a BSD-compat flag.
5781	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5782	#   nm: unknown option "B" ignored
5783	# Tru64's nm complains that /dev/null is an invalid object file
5784	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5785	case $build_os in
5786	mingw*) lt_bad_file=conftest.nm/nofile ;;
5787	*) lt_bad_file=/dev/null ;;
5788	esac
5789	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5790	*$lt_bad_file* | *'Invalid file or object type'*)
5791	  lt_cv_path_NM="$tmp_nm -B"
5792	  break 2
5793	  ;;
5794	*)
5795	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5796	  */dev/null*)
5797	    lt_cv_path_NM="$tmp_nm -p"
5798	    break 2
5799	    ;;
5800	  *)
5801	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5802	    continue # so that we can try to find one that supports BSD flags
5803	    ;;
5804	  esac
5805	  ;;
5806	esac
5807      fi
5808    done
5809    IFS=$lt_save_ifs
5810  done
5811  : ${lt_cv_path_NM=no}
5812fi
5813fi
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5815$as_echo "$lt_cv_path_NM" >&6; }
5816if test no != "$lt_cv_path_NM"; then
5817  NM=$lt_cv_path_NM
5818else
5819  # Didn't find any BSD compatible name lister, look for dumpbin.
5820  if test -n "$DUMPBIN"; then :
5821    # Let the user override the test.
5822  else
5823    if test -n "$ac_tool_prefix"; then
5824  for ac_prog in dumpbin "link -dump"
5825  do
5826    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5827set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829$as_echo_n "checking for $ac_word... " >&6; }
5830if ${ac_cv_prog_DUMPBIN+:} false; then :
5831  $as_echo_n "(cached) " >&6
5832else
5833  if test -n "$DUMPBIN"; then
5834  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5835else
5836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837for as_dir in $PATH
5838do
5839  IFS=$as_save_IFS
5840  test -z "$as_dir" && as_dir=.
5841    for ac_exec_ext in '' $ac_executable_extensions; do
5842  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5843    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845    break 2
5846  fi
5847done
5848  done
5849IFS=$as_save_IFS
5850
5851fi
5852fi
5853DUMPBIN=$ac_cv_prog_DUMPBIN
5854if test -n "$DUMPBIN"; then
5855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5856$as_echo "$DUMPBIN" >&6; }
5857else
5858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859$as_echo "no" >&6; }
5860fi
5861
5862
5863    test -n "$DUMPBIN" && break
5864  done
5865fi
5866if test -z "$DUMPBIN"; then
5867  ac_ct_DUMPBIN=$DUMPBIN
5868  for ac_prog in dumpbin "link -dump"
5869do
5870  # Extract the first word of "$ac_prog", so it can be a program name with args.
5871set dummy $ac_prog; ac_word=$2
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5873$as_echo_n "checking for $ac_word... " >&6; }
5874if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5875  $as_echo_n "(cached) " >&6
5876else
5877  if test -n "$ac_ct_DUMPBIN"; then
5878  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5879else
5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH
5882do
5883  IFS=$as_save_IFS
5884  test -z "$as_dir" && as_dir=.
5885    for ac_exec_ext in '' $ac_executable_extensions; do
5886  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5887    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5889    break 2
5890  fi
5891done
5892  done
5893IFS=$as_save_IFS
5894
5895fi
5896fi
5897ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5898if test -n "$ac_ct_DUMPBIN"; then
5899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5900$as_echo "$ac_ct_DUMPBIN" >&6; }
5901else
5902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5903$as_echo "no" >&6; }
5904fi
5905
5906
5907  test -n "$ac_ct_DUMPBIN" && break
5908done
5909
5910  if test "x$ac_ct_DUMPBIN" = x; then
5911    DUMPBIN=":"
5912  else
5913    case $cross_compiling:$ac_tool_warned in
5914yes:)
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5917ac_tool_warned=yes ;;
5918esac
5919    DUMPBIN=$ac_ct_DUMPBIN
5920  fi
5921fi
5922
5923    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5924    *COFF*)
5925      DUMPBIN="$DUMPBIN -symbols -headers"
5926      ;;
5927    *)
5928      DUMPBIN=:
5929      ;;
5930    esac
5931  fi
5932
5933  if test : != "$DUMPBIN"; then
5934    NM=$DUMPBIN
5935  fi
5936fi
5937test -z "$NM" && NM=nm
5938
5939
5940
5941
5942
5943
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5945$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5946if ${lt_cv_nm_interface+:} false; then :
5947  $as_echo_n "(cached) " >&6
5948else
5949  lt_cv_nm_interface="BSD nm"
5950  echo "int some_variable = 0;" > conftest.$ac_ext
5951  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5952  (eval "$ac_compile" 2>conftest.err)
5953  cat conftest.err >&5
5954  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5955  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5956  cat conftest.err >&5
5957  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5958  cat conftest.out >&5
5959  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5960    lt_cv_nm_interface="MS dumpbin"
5961  fi
5962  rm -f conftest*
5963fi
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5965$as_echo "$lt_cv_nm_interface" >&6; }
5966
5967# find the maximum length of command line arguments
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5969$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5970if ${lt_cv_sys_max_cmd_len+:} false; then :
5971  $as_echo_n "(cached) " >&6
5972else
5973    i=0
5974  teststring=ABCD
5975
5976  case $build_os in
5977  msdosdjgpp*)
5978    # On DJGPP, this test can blow up pretty badly due to problems in libc
5979    # (any single argument exceeding 2000 bytes causes a buffer overrun
5980    # during glob expansion).  Even if it were fixed, the result of this
5981    # check would be larger than it should be.
5982    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5983    ;;
5984
5985  gnu*)
5986    # Under GNU Hurd, this test is not required because there is
5987    # no limit to the length of command line arguments.
5988    # Libtool will interpret -1 as no limit whatsoever
5989    lt_cv_sys_max_cmd_len=-1;
5990    ;;
5991
5992  cygwin* | mingw* | cegcc*)
5993    # On Win9x/ME, this test blows up -- it succeeds, but takes
5994    # about 5 minutes as the teststring grows exponentially.
5995    # Worse, since 9x/ME are not pre-emptively multitasking,
5996    # you end up with a "frozen" computer, even though with patience
5997    # the test eventually succeeds (with a max line length of 256k).
5998    # Instead, let's just punt: use the minimum linelength reported by
5999    # all of the supported platforms: 8192 (on NT/2K/XP).
6000    lt_cv_sys_max_cmd_len=8192;
6001    ;;
6002
6003  mint*)
6004    # On MiNT this can take a long time and run out of memory.
6005    lt_cv_sys_max_cmd_len=8192;
6006    ;;
6007
6008  amigaos*)
6009    # On AmigaOS with pdksh, this test takes hours, literally.
6010    # So we just punt and use a minimum line length of 8192.
6011    lt_cv_sys_max_cmd_len=8192;
6012    ;;
6013
6014  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6015    # This has been around since 386BSD, at least.  Likely further.
6016    if test -x /sbin/sysctl; then
6017      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6018    elif test -x /usr/sbin/sysctl; then
6019      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6020    else
6021      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6022    fi
6023    # And add a safety zone
6024    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6025    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6026    ;;
6027
6028  interix*)
6029    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6030    lt_cv_sys_max_cmd_len=196608
6031    ;;
6032
6033  os2*)
6034    # The test takes a long time on OS/2.
6035    lt_cv_sys_max_cmd_len=8192
6036    ;;
6037
6038  osf*)
6039    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6040    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6041    # nice to cause kernel panics so lets avoid the loop below.
6042    # First set a reasonable default.
6043    lt_cv_sys_max_cmd_len=16384
6044    #
6045    if test -x /sbin/sysconfig; then
6046      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6047        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6048      esac
6049    fi
6050    ;;
6051  sco3.2v5*)
6052    lt_cv_sys_max_cmd_len=102400
6053    ;;
6054  sysv5* | sco5v6* | sysv4.2uw2*)
6055    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6056    if test -n "$kargmax"; then
6057      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6058    else
6059      lt_cv_sys_max_cmd_len=32768
6060    fi
6061    ;;
6062  *)
6063    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6064    if test -n "$lt_cv_sys_max_cmd_len" && \
6065       test undefined != "$lt_cv_sys_max_cmd_len"; then
6066      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6067      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6068    else
6069      # Make teststring a little bigger before we do anything with it.
6070      # a 1K string should be a reasonable start.
6071      for i in 1 2 3 4 5 6 7 8; do
6072        teststring=$teststring$teststring
6073      done
6074      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6075      # If test is not a shell built-in, we'll probably end up computing a
6076      # maximum length that is only half of the actual maximum length, but
6077      # we can't tell.
6078      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6079	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6080	      test 17 != "$i" # 1/2 MB should be enough
6081      do
6082        i=`expr $i + 1`
6083        teststring=$teststring$teststring
6084      done
6085      # Only check the string length outside the loop.
6086      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6087      teststring=
6088      # Add a significant safety factor because C++ compilers can tack on
6089      # massive amounts of additional arguments before passing them to the
6090      # linker.  It appears as though 1/2 is a usable value.
6091      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6092    fi
6093    ;;
6094  esac
6095
6096fi
6097
6098if test -n "$lt_cv_sys_max_cmd_len"; then
6099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6100$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6101else
6102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6103$as_echo "none" >&6; }
6104fi
6105max_cmd_len=$lt_cv_sys_max_cmd_len
6106
6107
6108
6109
6110
6111
6112: ${CP="cp -f"}
6113: ${MV="mv -f"}
6114: ${RM="rm -f"}
6115
6116if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6117  lt_unset=unset
6118else
6119  lt_unset=false
6120fi
6121
6122
6123
6124
6125
6126# test EBCDIC or ASCII
6127case `echo X|tr X '\101'` in
6128 A) # ASCII based system
6129    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6130  lt_SP2NL='tr \040 \012'
6131  lt_NL2SP='tr \015\012 \040\040'
6132  ;;
6133 *) # EBCDIC based system
6134  lt_SP2NL='tr \100 \n'
6135  lt_NL2SP='tr \r\n \100\100'
6136  ;;
6137esac
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6148$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6149if ${lt_cv_to_host_file_cmd+:} false; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152  case $host in
6153  *-*-mingw* )
6154    case $build in
6155      *-*-mingw* ) # actually msys
6156        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6157        ;;
6158      *-*-cygwin* )
6159        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6160        ;;
6161      * ) # otherwise, assume *nix
6162        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6163        ;;
6164    esac
6165    ;;
6166  *-*-cygwin* )
6167    case $build in
6168      *-*-mingw* ) # actually msys
6169        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6170        ;;
6171      *-*-cygwin* )
6172        lt_cv_to_host_file_cmd=func_convert_file_noop
6173        ;;
6174      * ) # otherwise, assume *nix
6175        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6176        ;;
6177    esac
6178    ;;
6179  * ) # unhandled hosts (and "normal" native builds)
6180    lt_cv_to_host_file_cmd=func_convert_file_noop
6181    ;;
6182esac
6183
6184fi
6185
6186to_host_file_cmd=$lt_cv_to_host_file_cmd
6187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6188$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6189
6190
6191
6192
6193
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6195$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6196if ${lt_cv_to_tool_file_cmd+:} false; then :
6197  $as_echo_n "(cached) " >&6
6198else
6199  #assume ordinary cross tools, or native build.
6200lt_cv_to_tool_file_cmd=func_convert_file_noop
6201case $host in
6202  *-*-mingw* )
6203    case $build in
6204      *-*-mingw* ) # actually msys
6205        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6206        ;;
6207    esac
6208    ;;
6209esac
6210
6211fi
6212
6213to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6215$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6216
6217
6218
6219
6220
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6222$as_echo_n "checking for $LD option to reload object files... " >&6; }
6223if ${lt_cv_ld_reload_flag+:} false; then :
6224  $as_echo_n "(cached) " >&6
6225else
6226  lt_cv_ld_reload_flag='-r'
6227fi
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6229$as_echo "$lt_cv_ld_reload_flag" >&6; }
6230reload_flag=$lt_cv_ld_reload_flag
6231case $reload_flag in
6232"" | " "*) ;;
6233*) reload_flag=" $reload_flag" ;;
6234esac
6235reload_cmds='$LD$reload_flag -o $output$reload_objs'
6236case $host_os in
6237  cygwin* | mingw* | pw32* | cegcc*)
6238    if test yes != "$GCC"; then
6239      reload_cmds=false
6240    fi
6241    ;;
6242  darwin*)
6243    if test yes = "$GCC"; then
6244      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6245    else
6246      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6247    fi
6248    ;;
6249esac
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259if test -n "$ac_tool_prefix"; then
6260  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6261set dummy ${ac_tool_prefix}objdump; ac_word=$2
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263$as_echo_n "checking for $ac_word... " >&6; }
6264if ${ac_cv_prog_OBJDUMP+:} false; then :
6265  $as_echo_n "(cached) " >&6
6266else
6267  if test -n "$OBJDUMP"; then
6268  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6269else
6270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271for as_dir in $PATH
6272do
6273  IFS=$as_save_IFS
6274  test -z "$as_dir" && as_dir=.
6275    for ac_exec_ext in '' $ac_executable_extensions; do
6276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279    break 2
6280  fi
6281done
6282  done
6283IFS=$as_save_IFS
6284
6285fi
6286fi
6287OBJDUMP=$ac_cv_prog_OBJDUMP
6288if test -n "$OBJDUMP"; then
6289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6290$as_echo "$OBJDUMP" >&6; }
6291else
6292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293$as_echo "no" >&6; }
6294fi
6295
6296
6297fi
6298if test -z "$ac_cv_prog_OBJDUMP"; then
6299  ac_ct_OBJDUMP=$OBJDUMP
6300  # Extract the first word of "objdump", so it can be a program name with args.
6301set dummy objdump; ac_word=$2
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303$as_echo_n "checking for $ac_word... " >&6; }
6304if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6305  $as_echo_n "(cached) " >&6
6306else
6307  if test -n "$ac_ct_OBJDUMP"; then
6308  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6309else
6310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311for as_dir in $PATH
6312do
6313  IFS=$as_save_IFS
6314  test -z "$as_dir" && as_dir=.
6315    for ac_exec_ext in '' $ac_executable_extensions; do
6316  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319    break 2
6320  fi
6321done
6322  done
6323IFS=$as_save_IFS
6324
6325fi
6326fi
6327ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6328if test -n "$ac_ct_OBJDUMP"; then
6329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6330$as_echo "$ac_ct_OBJDUMP" >&6; }
6331else
6332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333$as_echo "no" >&6; }
6334fi
6335
6336  if test "x$ac_ct_OBJDUMP" = x; then
6337    OBJDUMP="false"
6338  else
6339    case $cross_compiling:$ac_tool_warned in
6340yes:)
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343ac_tool_warned=yes ;;
6344esac
6345    OBJDUMP=$ac_ct_OBJDUMP
6346  fi
6347else
6348  OBJDUMP="$ac_cv_prog_OBJDUMP"
6349fi
6350
6351test -z "$OBJDUMP" && OBJDUMP=objdump
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6362$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6363if ${lt_cv_deplibs_check_method+:} false; then :
6364  $as_echo_n "(cached) " >&6
6365else
6366  lt_cv_file_magic_cmd='$MAGIC_CMD'
6367lt_cv_file_magic_test_file=
6368lt_cv_deplibs_check_method='unknown'
6369# Need to set the preceding variable on all platforms that support
6370# interlibrary dependencies.
6371# 'none' -- dependencies not supported.
6372# 'unknown' -- same as none, but documents that we really don't know.
6373# 'pass_all' -- all dependencies passed with no checks.
6374# 'test_compile' -- check by making test program.
6375# 'file_magic [[regex]]' -- check by looking for files in library path
6376# that responds to the $file_magic_cmd with a given extended regex.
6377# If you have 'file' or equivalent on your system and you're not sure
6378# whether 'pass_all' will *always* work, you probably want this one.
6379
6380case $host_os in
6381aix[4-9]*)
6382  lt_cv_deplibs_check_method=pass_all
6383  ;;
6384
6385beos*)
6386  lt_cv_deplibs_check_method=pass_all
6387  ;;
6388
6389bsdi[45]*)
6390  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6391  lt_cv_file_magic_cmd='/usr/bin/file -L'
6392  lt_cv_file_magic_test_file=/shlib/libc.so
6393  ;;
6394
6395cygwin*)
6396  # func_win32_libid is a shell function defined in ltmain.sh
6397  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6398  lt_cv_file_magic_cmd='func_win32_libid'
6399  ;;
6400
6401mingw* | pw32*)
6402  # Base MSYS/MinGW do not provide the 'file' command needed by
6403  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6404  # unless we find 'file', for example because we are cross-compiling.
6405  if ( file / ) >/dev/null 2>&1; then
6406    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6407    lt_cv_file_magic_cmd='func_win32_libid'
6408  else
6409    # Keep this pattern in sync with the one in func_win32_libid.
6410    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6411    lt_cv_file_magic_cmd='$OBJDUMP -f'
6412  fi
6413  ;;
6414
6415cegcc*)
6416  # use the weaker test based on 'objdump'. See mingw*.
6417  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6418  lt_cv_file_magic_cmd='$OBJDUMP -f'
6419  ;;
6420
6421darwin* | rhapsody*)
6422  lt_cv_deplibs_check_method=pass_all
6423  ;;
6424
6425freebsd* | dragonfly*)
6426  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6427    case $host_cpu in
6428    i*86 )
6429      # Not sure whether the presence of OpenBSD here was a mistake.
6430      # Let's accept both of them until this is cleared up.
6431      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6432      lt_cv_file_magic_cmd=/usr/bin/file
6433      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6434      ;;
6435    esac
6436  else
6437    lt_cv_deplibs_check_method=pass_all
6438  fi
6439  ;;
6440
6441haiku*)
6442  lt_cv_deplibs_check_method=pass_all
6443  ;;
6444
6445hpux10.20* | hpux11*)
6446  lt_cv_file_magic_cmd=/usr/bin/file
6447  case $host_cpu in
6448  ia64*)
6449    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6450    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6451    ;;
6452  hppa*64*)
6453    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6454    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6455    ;;
6456  *)
6457    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6458    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6459    ;;
6460  esac
6461  ;;
6462
6463interix[3-9]*)
6464  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6465  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6466  ;;
6467
6468irix5* | irix6* | nonstopux*)
6469  case $LD in
6470  *-32|*"-32 ") libmagic=32-bit;;
6471  *-n32|*"-n32 ") libmagic=N32;;
6472  *-64|*"-64 ") libmagic=64-bit;;
6473  *) libmagic=never-match;;
6474  esac
6475  lt_cv_deplibs_check_method=pass_all
6476  ;;
6477
6478# This must be glibc/ELF.
6479linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6480  lt_cv_deplibs_check_method=pass_all
6481  ;;
6482
6483netbsd*)
6484  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6485    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6486  else
6487    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6488  fi
6489  ;;
6490
6491newos6*)
6492  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6493  lt_cv_file_magic_cmd=/usr/bin/file
6494  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6495  ;;
6496
6497*nto* | *qnx*)
6498  lt_cv_deplibs_check_method=pass_all
6499  ;;
6500
6501openbsd* | bitrig*)
6502  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6503    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6504  else
6505    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6506  fi
6507  ;;
6508
6509osf3* | osf4* | osf5*)
6510  lt_cv_deplibs_check_method=pass_all
6511  ;;
6512
6513rdos*)
6514  lt_cv_deplibs_check_method=pass_all
6515  ;;
6516
6517solaris*)
6518  lt_cv_deplibs_check_method=pass_all
6519  ;;
6520
6521sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6522  lt_cv_deplibs_check_method=pass_all
6523  ;;
6524
6525sysv4 | sysv4.3*)
6526  case $host_vendor in
6527  motorola)
6528    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]'
6529    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6530    ;;
6531  ncr)
6532    lt_cv_deplibs_check_method=pass_all
6533    ;;
6534  sequent)
6535    lt_cv_file_magic_cmd='/bin/file'
6536    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6537    ;;
6538  sni)
6539    lt_cv_file_magic_cmd='/bin/file'
6540    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6541    lt_cv_file_magic_test_file=/lib/libc.so
6542    ;;
6543  siemens)
6544    lt_cv_deplibs_check_method=pass_all
6545    ;;
6546  pc)
6547    lt_cv_deplibs_check_method=pass_all
6548    ;;
6549  esac
6550  ;;
6551
6552tpf*)
6553  lt_cv_deplibs_check_method=pass_all
6554  ;;
6555os2*)
6556  lt_cv_deplibs_check_method=pass_all
6557  ;;
6558esac
6559
6560fi
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6562$as_echo "$lt_cv_deplibs_check_method" >&6; }
6563
6564file_magic_glob=
6565want_nocaseglob=no
6566if test "$build" = "$host"; then
6567  case $host_os in
6568  mingw* | pw32*)
6569    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6570      want_nocaseglob=yes
6571    else
6572      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6573    fi
6574    ;;
6575  esac
6576fi
6577
6578file_magic_cmd=$lt_cv_file_magic_cmd
6579deplibs_check_method=$lt_cv_deplibs_check_method
6580test -z "$deplibs_check_method" && deplibs_check_method=unknown
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603if test -n "$ac_tool_prefix"; then
6604  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6605set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607$as_echo_n "checking for $ac_word... " >&6; }
6608if ${ac_cv_prog_DLLTOOL+:} false; then :
6609  $as_echo_n "(cached) " >&6
6610else
6611  if test -n "$DLLTOOL"; then
6612  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6613else
6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617  IFS=$as_save_IFS
6618  test -z "$as_dir" && as_dir=.
6619    for ac_exec_ext in '' $ac_executable_extensions; do
6620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623    break 2
6624  fi
6625done
6626  done
6627IFS=$as_save_IFS
6628
6629fi
6630fi
6631DLLTOOL=$ac_cv_prog_DLLTOOL
6632if test -n "$DLLTOOL"; then
6633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6634$as_echo "$DLLTOOL" >&6; }
6635else
6636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637$as_echo "no" >&6; }
6638fi
6639
6640
6641fi
6642if test -z "$ac_cv_prog_DLLTOOL"; then
6643  ac_ct_DLLTOOL=$DLLTOOL
6644  # Extract the first word of "dlltool", so it can be a program name with args.
6645set dummy dlltool; ac_word=$2
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647$as_echo_n "checking for $ac_word... " >&6; }
6648if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6649  $as_echo_n "(cached) " >&6
6650else
6651  if test -n "$ac_ct_DLLTOOL"; then
6652  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6653else
6654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655for as_dir in $PATH
6656do
6657  IFS=$as_save_IFS
6658  test -z "$as_dir" && as_dir=.
6659    for ac_exec_ext in '' $ac_executable_extensions; do
6660  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6661    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6663    break 2
6664  fi
6665done
6666  done
6667IFS=$as_save_IFS
6668
6669fi
6670fi
6671ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6672if test -n "$ac_ct_DLLTOOL"; then
6673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6674$as_echo "$ac_ct_DLLTOOL" >&6; }
6675else
6676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677$as_echo "no" >&6; }
6678fi
6679
6680  if test "x$ac_ct_DLLTOOL" = x; then
6681    DLLTOOL="false"
6682  else
6683    case $cross_compiling:$ac_tool_warned in
6684yes:)
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6687ac_tool_warned=yes ;;
6688esac
6689    DLLTOOL=$ac_ct_DLLTOOL
6690  fi
6691else
6692  DLLTOOL="$ac_cv_prog_DLLTOOL"
6693fi
6694
6695test -z "$DLLTOOL" && DLLTOOL=dlltool
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6707$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6708if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6709  $as_echo_n "(cached) " >&6
6710else
6711  lt_cv_sharedlib_from_linklib_cmd='unknown'
6712
6713case $host_os in
6714cygwin* | mingw* | pw32* | cegcc*)
6715  # two different shell functions defined in ltmain.sh;
6716  # decide which one to use based on capabilities of $DLLTOOL
6717  case `$DLLTOOL --help 2>&1` in
6718  *--identify-strict*)
6719    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6720    ;;
6721  *)
6722    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6723    ;;
6724  esac
6725  ;;
6726*)
6727  # fallback: assume linklib IS sharedlib
6728  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6729  ;;
6730esac
6731
6732fi
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6734$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6735sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6736test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6737
6738
6739
6740
6741
6742
6743
6744if test -n "$ac_tool_prefix"; then
6745  for ac_prog in ar
6746  do
6747    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6748set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750$as_echo_n "checking for $ac_word... " >&6; }
6751if ${ac_cv_prog_AR+:} false; then :
6752  $as_echo_n "(cached) " >&6
6753else
6754  if test -n "$AR"; then
6755  ac_cv_prog_AR="$AR" # Let the user override the test.
6756else
6757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760  IFS=$as_save_IFS
6761  test -z "$as_dir" && as_dir=.
6762    for ac_exec_ext in '' $ac_executable_extensions; do
6763  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6764    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766    break 2
6767  fi
6768done
6769  done
6770IFS=$as_save_IFS
6771
6772fi
6773fi
6774AR=$ac_cv_prog_AR
6775if test -n "$AR"; then
6776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6777$as_echo "$AR" >&6; }
6778else
6779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780$as_echo "no" >&6; }
6781fi
6782
6783
6784    test -n "$AR" && break
6785  done
6786fi
6787if test -z "$AR"; then
6788  ac_ct_AR=$AR
6789  for ac_prog in ar
6790do
6791  # Extract the first word of "$ac_prog", so it can be a program name with args.
6792set dummy $ac_prog; ac_word=$2
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794$as_echo_n "checking for $ac_word... " >&6; }
6795if ${ac_cv_prog_ac_ct_AR+:} false; then :
6796  $as_echo_n "(cached) " >&6
6797else
6798  if test -n "$ac_ct_AR"; then
6799  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6800else
6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804  IFS=$as_save_IFS
6805  test -z "$as_dir" && as_dir=.
6806    for ac_exec_ext in '' $ac_executable_extensions; do
6807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808    ac_cv_prog_ac_ct_AR="$ac_prog"
6809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810    break 2
6811  fi
6812done
6813  done
6814IFS=$as_save_IFS
6815
6816fi
6817fi
6818ac_ct_AR=$ac_cv_prog_ac_ct_AR
6819if test -n "$ac_ct_AR"; then
6820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6821$as_echo "$ac_ct_AR" >&6; }
6822else
6823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824$as_echo "no" >&6; }
6825fi
6826
6827
6828  test -n "$ac_ct_AR" && break
6829done
6830
6831  if test "x$ac_ct_AR" = x; then
6832    AR="false"
6833  else
6834    case $cross_compiling:$ac_tool_warned in
6835yes:)
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6838ac_tool_warned=yes ;;
6839esac
6840    AR=$ac_ct_AR
6841  fi
6842fi
6843
6844: ${AR=ar}
6845: ${AR_FLAGS=cru}
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6858$as_echo_n "checking for archiver @FILE support... " >&6; }
6859if ${lt_cv_ar_at_file+:} false; then :
6860  $as_echo_n "(cached) " >&6
6861else
6862  lt_cv_ar_at_file=no
6863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864/* end confdefs.h.  */
6865
6866int
6867main ()
6868{
6869
6870  ;
6871  return 0;
6872}
6873_ACEOF
6874if ac_fn_c_try_compile "$LINENO"; then :
6875  echo conftest.$ac_objext > conftest.lst
6876      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6877      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6878  (eval $lt_ar_try) 2>&5
6879  ac_status=$?
6880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6881  test $ac_status = 0; }
6882      if test 0 -eq "$ac_status"; then
6883	# Ensure the archiver fails upon bogus file names.
6884	rm -f conftest.$ac_objext libconftest.a
6885	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6886  (eval $lt_ar_try) 2>&5
6887  ac_status=$?
6888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6889  test $ac_status = 0; }
6890	if test 0 -ne "$ac_status"; then
6891          lt_cv_ar_at_file=@
6892        fi
6893      fi
6894      rm -f conftest.* libconftest.a
6895
6896fi
6897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6898
6899fi
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6901$as_echo "$lt_cv_ar_at_file" >&6; }
6902
6903if test no = "$lt_cv_ar_at_file"; then
6904  archiver_list_spec=
6905else
6906  archiver_list_spec=$lt_cv_ar_at_file
6907fi
6908
6909
6910
6911
6912
6913
6914
6915if test -n "$ac_tool_prefix"; then
6916  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6917set dummy ${ac_tool_prefix}strip; ac_word=$2
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919$as_echo_n "checking for $ac_word... " >&6; }
6920if ${ac_cv_prog_STRIP+:} false; then :
6921  $as_echo_n "(cached) " >&6
6922else
6923  if test -n "$STRIP"; then
6924  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6925else
6926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927for as_dir in $PATH
6928do
6929  IFS=$as_save_IFS
6930  test -z "$as_dir" && as_dir=.
6931    for ac_exec_ext in '' $ac_executable_extensions; do
6932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6933    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935    break 2
6936  fi
6937done
6938  done
6939IFS=$as_save_IFS
6940
6941fi
6942fi
6943STRIP=$ac_cv_prog_STRIP
6944if test -n "$STRIP"; then
6945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6946$as_echo "$STRIP" >&6; }
6947else
6948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949$as_echo "no" >&6; }
6950fi
6951
6952
6953fi
6954if test -z "$ac_cv_prog_STRIP"; then
6955  ac_ct_STRIP=$STRIP
6956  # Extract the first word of "strip", so it can be a program name with args.
6957set dummy strip; ac_word=$2
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959$as_echo_n "checking for $ac_word... " >&6; }
6960if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6961  $as_echo_n "(cached) " >&6
6962else
6963  if test -n "$ac_ct_STRIP"; then
6964  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6965else
6966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967for as_dir in $PATH
6968do
6969  IFS=$as_save_IFS
6970  test -z "$as_dir" && as_dir=.
6971    for ac_exec_ext in '' $ac_executable_extensions; do
6972  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973    ac_cv_prog_ac_ct_STRIP="strip"
6974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975    break 2
6976  fi
6977done
6978  done
6979IFS=$as_save_IFS
6980
6981fi
6982fi
6983ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6984if test -n "$ac_ct_STRIP"; then
6985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6986$as_echo "$ac_ct_STRIP" >&6; }
6987else
6988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989$as_echo "no" >&6; }
6990fi
6991
6992  if test "x$ac_ct_STRIP" = x; then
6993    STRIP=":"
6994  else
6995    case $cross_compiling:$ac_tool_warned in
6996yes:)
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6999ac_tool_warned=yes ;;
7000esac
7001    STRIP=$ac_ct_STRIP
7002  fi
7003else
7004  STRIP="$ac_cv_prog_STRIP"
7005fi
7006
7007test -z "$STRIP" && STRIP=:
7008
7009
7010
7011
7012
7013
7014if test -n "$ac_tool_prefix"; then
7015  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7016set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018$as_echo_n "checking for $ac_word... " >&6; }
7019if ${ac_cv_prog_RANLIB+:} false; then :
7020  $as_echo_n "(cached) " >&6
7021else
7022  if test -n "$RANLIB"; then
7023  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7024else
7025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026for as_dir in $PATH
7027do
7028  IFS=$as_save_IFS
7029  test -z "$as_dir" && as_dir=.
7030    for ac_exec_ext in '' $ac_executable_extensions; do
7031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034    break 2
7035  fi
7036done
7037  done
7038IFS=$as_save_IFS
7039
7040fi
7041fi
7042RANLIB=$ac_cv_prog_RANLIB
7043if test -n "$RANLIB"; then
7044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7045$as_echo "$RANLIB" >&6; }
7046else
7047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048$as_echo "no" >&6; }
7049fi
7050
7051
7052fi
7053if test -z "$ac_cv_prog_RANLIB"; then
7054  ac_ct_RANLIB=$RANLIB
7055  # Extract the first word of "ranlib", so it can be a program name with args.
7056set dummy ranlib; ac_word=$2
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058$as_echo_n "checking for $ac_word... " >&6; }
7059if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7060  $as_echo_n "(cached) " >&6
7061else
7062  if test -n "$ac_ct_RANLIB"; then
7063  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7064else
7065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066for as_dir in $PATH
7067do
7068  IFS=$as_save_IFS
7069  test -z "$as_dir" && as_dir=.
7070    for ac_exec_ext in '' $ac_executable_extensions; do
7071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072    ac_cv_prog_ac_ct_RANLIB="ranlib"
7073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074    break 2
7075  fi
7076done
7077  done
7078IFS=$as_save_IFS
7079
7080fi
7081fi
7082ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7083if test -n "$ac_ct_RANLIB"; then
7084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7085$as_echo "$ac_ct_RANLIB" >&6; }
7086else
7087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088$as_echo "no" >&6; }
7089fi
7090
7091  if test "x$ac_ct_RANLIB" = x; then
7092    RANLIB=":"
7093  else
7094    case $cross_compiling:$ac_tool_warned in
7095yes:)
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7098ac_tool_warned=yes ;;
7099esac
7100    RANLIB=$ac_ct_RANLIB
7101  fi
7102else
7103  RANLIB="$ac_cv_prog_RANLIB"
7104fi
7105
7106test -z "$RANLIB" && RANLIB=:
7107
7108
7109
7110
7111
7112
7113# Determine commands to create old-style static archives.
7114old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7115old_postinstall_cmds='chmod 644 $oldlib'
7116old_postuninstall_cmds=
7117
7118if test -n "$RANLIB"; then
7119  case $host_os in
7120  bitrig* | openbsd*)
7121    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7122    ;;
7123  *)
7124    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7125    ;;
7126  esac
7127  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7128fi
7129
7130case $host_os in
7131  darwin*)
7132    lock_old_archive_extraction=yes ;;
7133  *)
7134    lock_old_archive_extraction=no ;;
7135esac
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175# If no C compiler was specified, use CC.
7176LTCC=${LTCC-"$CC"}
7177
7178# If no C compiler flags were specified, use CFLAGS.
7179LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7180
7181# Allow CC to be a program name with arguments.
7182compiler=$CC
7183
7184
7185# Check for command to grab the raw symbol name followed by C symbol from nm.
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7187$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7188if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7189  $as_echo_n "(cached) " >&6
7190else
7191
7192# These are sane defaults that work on at least a few old systems.
7193# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7194
7195# Character class describing NM global symbol codes.
7196symcode='[BCDEGRST]'
7197
7198# Regexp to match symbols that can be accessed directly from C.
7199sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7200
7201# Define system-specific variables.
7202case $host_os in
7203aix*)
7204  symcode='[BCDT]'
7205  ;;
7206cygwin* | mingw* | pw32* | cegcc*)
7207  symcode='[ABCDGISTW]'
7208  ;;
7209hpux*)
7210  if test ia64 = "$host_cpu"; then
7211    symcode='[ABCDEGRST]'
7212  fi
7213  ;;
7214irix* | nonstopux*)
7215  symcode='[BCDEGRST]'
7216  ;;
7217osf*)
7218  symcode='[BCDEGQRST]'
7219  ;;
7220solaris*)
7221  symcode='[BDRT]'
7222  ;;
7223sco3.2v5*)
7224  symcode='[DT]'
7225  ;;
7226sysv4.2uw2*)
7227  symcode='[DT]'
7228  ;;
7229sysv5* | sco5v6* | unixware* | OpenUNIX*)
7230  symcode='[ABDT]'
7231  ;;
7232sysv4)
7233  symcode='[DFNSTU]'
7234  ;;
7235esac
7236
7237# If we're using GNU nm, then use its standard symbol codes.
7238case `$NM -V 2>&1` in
7239*GNU* | *'with BFD'*)
7240  symcode='[ABCDGIRSTW]' ;;
7241esac
7242
7243if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7244  # Gets list of data symbols to import.
7245  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7246  # Adjust the below global symbol transforms to fixup imported variables.
7247  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7248  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7249  lt_c_name_lib_hook="\
7250  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7251  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7252else
7253  # Disable hooks by default.
7254  lt_cv_sys_global_symbol_to_import=
7255  lt_cdecl_hook=
7256  lt_c_name_hook=
7257  lt_c_name_lib_hook=
7258fi
7259
7260# Transform an extracted symbol line into a proper C declaration.
7261# Some systems (esp. on ia64) link data and code symbols differently,
7262# so use this general approach.
7263lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7264$lt_cdecl_hook\
7265" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7266" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7267
7268# Transform an extracted symbol line into symbol name and symbol address
7269lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7270$lt_c_name_hook\
7271" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7272" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7273
7274# Transform an extracted symbol line into symbol name with lib prefix and
7275# symbol address.
7276lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7277$lt_c_name_lib_hook\
7278" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7279" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7280" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7281
7282# Handle CRLF in mingw tool chain
7283opt_cr=
7284case $build_os in
7285mingw*)
7286  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7287  ;;
7288esac
7289
7290# Try without a prefix underscore, then with it.
7291for ac_symprfx in "" "_"; do
7292
7293  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7294  symxfrm="\\1 $ac_symprfx\\2 \\2"
7295
7296  # Write the raw and C identifiers.
7297  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7298    # Fake it for dumpbin and say T for any non-static function,
7299    # D for any global variable and I for any imported variable.
7300    # Also find C++ and __fastcall symbols from MSVC++,
7301    # which start with @ or ?.
7302    lt_cv_sys_global_symbol_pipe="$AWK '"\
7303"     {last_section=section; section=\$ 3};"\
7304"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7305"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7306"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7307"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7308"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7309"     \$ 0!~/External *\|/{next};"\
7310"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7311"     {if(hide[section]) next};"\
7312"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7313"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7314"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7315"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7316"     ' prfx=^$ac_symprfx"
7317  else
7318    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7319  fi
7320  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7321
7322  # Check to see that the pipe works correctly.
7323  pipe_works=no
7324
7325  rm -f conftest*
7326  cat > conftest.$ac_ext <<_LT_EOF
7327#ifdef __cplusplus
7328extern "C" {
7329#endif
7330char nm_test_var;
7331void nm_test_func(void);
7332void nm_test_func(void){}
7333#ifdef __cplusplus
7334}
7335#endif
7336int main(){nm_test_var='a';nm_test_func();return(0);}
7337_LT_EOF
7338
7339  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7340  (eval $ac_compile) 2>&5
7341  ac_status=$?
7342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7343  test $ac_status = 0; }; then
7344    # Now try to grab the symbols.
7345    nlist=conftest.nm
7346    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7347  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7348  ac_status=$?
7349  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7350  test $ac_status = 0; } && test -s "$nlist"; then
7351      # Try sorting and uniquifying the output.
7352      if sort "$nlist" | uniq > "$nlist"T; then
7353	mv -f "$nlist"T "$nlist"
7354      else
7355	rm -f "$nlist"T
7356      fi
7357
7358      # Make sure that we snagged all the symbols we need.
7359      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7360	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7361	  cat <<_LT_EOF > conftest.$ac_ext
7362/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7363#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7364/* DATA imports from DLLs on WIN32 can't be const, because runtime
7365   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7366# define LT_DLSYM_CONST
7367#elif defined __osf__
7368/* This system does not cope well with relocations in const data.  */
7369# define LT_DLSYM_CONST
7370#else
7371# define LT_DLSYM_CONST const
7372#endif
7373
7374#ifdef __cplusplus
7375extern "C" {
7376#endif
7377
7378_LT_EOF
7379	  # Now generate the symbol file.
7380	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7381
7382	  cat <<_LT_EOF >> conftest.$ac_ext
7383
7384/* The mapping between symbol names and symbols.  */
7385LT_DLSYM_CONST struct {
7386  const char *name;
7387  void       *address;
7388}
7389lt__PROGRAM__LTX_preloaded_symbols[] =
7390{
7391  { "@PROGRAM@", (void *) 0 },
7392_LT_EOF
7393	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7394	  cat <<\_LT_EOF >> conftest.$ac_ext
7395  {0, (void *) 0}
7396};
7397
7398/* This works around a problem in FreeBSD linker */
7399#ifdef FREEBSD_WORKAROUND
7400static const void *lt_preloaded_setup() {
7401  return lt__PROGRAM__LTX_preloaded_symbols;
7402}
7403#endif
7404
7405#ifdef __cplusplus
7406}
7407#endif
7408_LT_EOF
7409	  # Now try linking the two files.
7410	  mv conftest.$ac_objext conftstm.$ac_objext
7411	  lt_globsym_save_LIBS=$LIBS
7412	  lt_globsym_save_CFLAGS=$CFLAGS
7413	  LIBS=conftstm.$ac_objext
7414	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7415	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7416  (eval $ac_link) 2>&5
7417  ac_status=$?
7418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7419  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7420	    pipe_works=yes
7421	  fi
7422	  LIBS=$lt_globsym_save_LIBS
7423	  CFLAGS=$lt_globsym_save_CFLAGS
7424	else
7425	  echo "cannot find nm_test_func in $nlist" >&5
7426	fi
7427      else
7428	echo "cannot find nm_test_var in $nlist" >&5
7429      fi
7430    else
7431      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7432    fi
7433  else
7434    echo "$progname: failed program was:" >&5
7435    cat conftest.$ac_ext >&5
7436  fi
7437  rm -rf conftest* conftst*
7438
7439  # Do not use the global_symbol_pipe unless it works.
7440  if test yes = "$pipe_works"; then
7441    break
7442  else
7443    lt_cv_sys_global_symbol_pipe=
7444  fi
7445done
7446
7447fi
7448
7449if test -z "$lt_cv_sys_global_symbol_pipe"; then
7450  lt_cv_sys_global_symbol_to_cdecl=
7451fi
7452if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7454$as_echo "failed" >&6; }
7455else
7456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7457$as_echo "ok" >&6; }
7458fi
7459
7460# Response file support.
7461if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7462  nm_file_list_spec='@'
7463elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7464  nm_file_list_spec='@'
7465fi
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7504$as_echo_n "checking for sysroot... " >&6; }
7505
7506# Check whether --with-sysroot was given.
7507if test "${with_sysroot+set}" = set; then :
7508  withval=$with_sysroot;
7509else
7510  with_sysroot=no
7511fi
7512
7513
7514lt_sysroot=
7515case $with_sysroot in #(
7516 yes)
7517   if test yes = "$GCC"; then
7518     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7519   fi
7520   ;; #(
7521 /*)
7522   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7523   ;; #(
7524 no|'')
7525   ;; #(
7526 *)
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7528$as_echo "$with_sysroot" >&6; }
7529   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7530   ;;
7531esac
7532
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7534$as_echo "${lt_sysroot:-no}" >&6; }
7535
7536
7537
7538
7539
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7541$as_echo_n "checking for a working dd... " >&6; }
7542if ${ac_cv_path_lt_DD+:} false; then :
7543  $as_echo_n "(cached) " >&6
7544else
7545  printf 0123456789abcdef0123456789abcdef >conftest.i
7546cat conftest.i conftest.i >conftest2.i
7547: ${lt_DD:=$DD}
7548if test -z "$lt_DD"; then
7549  ac_path_lt_DD_found=false
7550  # Loop through the user's path and test for each of PROGNAME-LIST
7551  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552for as_dir in $PATH
7553do
7554  IFS=$as_save_IFS
7555  test -z "$as_dir" && as_dir=.
7556    for ac_prog in dd; do
7557    for ac_exec_ext in '' $ac_executable_extensions; do
7558      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7559      as_fn_executable_p "$ac_path_lt_DD" || continue
7560if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7561  cmp -s conftest.i conftest.out \
7562  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7563fi
7564      $ac_path_lt_DD_found && break 3
7565    done
7566  done
7567  done
7568IFS=$as_save_IFS
7569  if test -z "$ac_cv_path_lt_DD"; then
7570    :
7571  fi
7572else
7573  ac_cv_path_lt_DD=$lt_DD
7574fi
7575
7576rm -f conftest.i conftest2.i conftest.out
7577fi
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7579$as_echo "$ac_cv_path_lt_DD" >&6; }
7580
7581
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7583$as_echo_n "checking how to truncate binary pipes... " >&6; }
7584if ${lt_cv_truncate_bin+:} false; then :
7585  $as_echo_n "(cached) " >&6
7586else
7587  printf 0123456789abcdef0123456789abcdef >conftest.i
7588cat conftest.i conftest.i >conftest2.i
7589lt_cv_truncate_bin=
7590if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7591  cmp -s conftest.i conftest.out \
7592  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7593fi
7594rm -f conftest.i conftest2.i conftest.out
7595test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7596fi
7597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7598$as_echo "$lt_cv_truncate_bin" >&6; }
7599
7600
7601
7602
7603
7604
7605
7606# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7607func_cc_basename ()
7608{
7609    for cc_temp in $*""; do
7610      case $cc_temp in
7611        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7612        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7613        \-*) ;;
7614        *) break;;
7615      esac
7616    done
7617    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7618}
7619
7620# Check whether --enable-libtool-lock was given.
7621if test "${enable_libtool_lock+set}" = set; then :
7622  enableval=$enable_libtool_lock;
7623fi
7624
7625test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7626
7627# Some flags need to be propagated to the compiler or linker for good
7628# libtool support.
7629case $host in
7630ia64-*-hpux*)
7631  # Find out what ABI is being produced by ac_compile, and set mode
7632  # options accordingly.
7633  echo 'int i;' > conftest.$ac_ext
7634  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7635  (eval $ac_compile) 2>&5
7636  ac_status=$?
7637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7638  test $ac_status = 0; }; then
7639    case `/usr/bin/file conftest.$ac_objext` in
7640      *ELF-32*)
7641	HPUX_IA64_MODE=32
7642	;;
7643      *ELF-64*)
7644	HPUX_IA64_MODE=64
7645	;;
7646    esac
7647  fi
7648  rm -rf conftest*
7649  ;;
7650*-*-irix6*)
7651  # Find out what ABI is being produced by ac_compile, and set linker
7652  # options accordingly.
7653  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7654  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7655  (eval $ac_compile) 2>&5
7656  ac_status=$?
7657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7658  test $ac_status = 0; }; then
7659    if test yes = "$lt_cv_prog_gnu_ld"; then
7660      case `/usr/bin/file conftest.$ac_objext` in
7661	*32-bit*)
7662	  LD="${LD-ld} -melf32bsmip"
7663	  ;;
7664	*N32*)
7665	  LD="${LD-ld} -melf32bmipn32"
7666	  ;;
7667	*64-bit*)
7668	  LD="${LD-ld} -melf64bmip"
7669	;;
7670      esac
7671    else
7672      case `/usr/bin/file conftest.$ac_objext` in
7673	*32-bit*)
7674	  LD="${LD-ld} -32"
7675	  ;;
7676	*N32*)
7677	  LD="${LD-ld} -n32"
7678	  ;;
7679	*64-bit*)
7680	  LD="${LD-ld} -64"
7681	  ;;
7682      esac
7683    fi
7684  fi
7685  rm -rf conftest*
7686  ;;
7687
7688mips64*-*linux*)
7689  # Find out what ABI is being produced by ac_compile, and set linker
7690  # options accordingly.
7691  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7692  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7693  (eval $ac_compile) 2>&5
7694  ac_status=$?
7695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7696  test $ac_status = 0; }; then
7697    emul=elf
7698    case `/usr/bin/file conftest.$ac_objext` in
7699      *32-bit*)
7700	emul="${emul}32"
7701	;;
7702      *64-bit*)
7703	emul="${emul}64"
7704	;;
7705    esac
7706    case `/usr/bin/file conftest.$ac_objext` in
7707      *MSB*)
7708	emul="${emul}btsmip"
7709	;;
7710      *LSB*)
7711	emul="${emul}ltsmip"
7712	;;
7713    esac
7714    case `/usr/bin/file conftest.$ac_objext` in
7715      *N32*)
7716	emul="${emul}n32"
7717	;;
7718    esac
7719    LD="${LD-ld} -m $emul"
7720  fi
7721  rm -rf conftest*
7722  ;;
7723
7724x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7725s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7726  # Find out what ABI is being produced by ac_compile, and set linker
7727  # options accordingly.  Note that the listed cases only cover the
7728  # situations where additional linker options are needed (such as when
7729  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7730  # vice versa); the common cases where no linker options are needed do
7731  # not appear in the list.
7732  echo 'int i;' > conftest.$ac_ext
7733  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7734  (eval $ac_compile) 2>&5
7735  ac_status=$?
7736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7737  test $ac_status = 0; }; then
7738    case `/usr/bin/file conftest.o` in
7739      *32-bit*)
7740	case $host in
7741	  x86_64-*kfreebsd*-gnu)
7742	    LD="${LD-ld} -m elf_i386_fbsd"
7743	    ;;
7744	  x86_64-*linux*)
7745	    case `/usr/bin/file conftest.o` in
7746	      *x86-64*)
7747		LD="${LD-ld} -m elf32_x86_64"
7748		;;
7749	      *)
7750		LD="${LD-ld} -m elf_i386"
7751		;;
7752	    esac
7753	    ;;
7754	  powerpc64le-*linux*)
7755	    LD="${LD-ld} -m elf32lppclinux"
7756	    ;;
7757	  powerpc64-*linux*)
7758	    LD="${LD-ld} -m elf32ppclinux"
7759	    ;;
7760	  s390x-*linux*)
7761	    LD="${LD-ld} -m elf_s390"
7762	    ;;
7763	  sparc64-*linux*)
7764	    LD="${LD-ld} -m elf32_sparc"
7765	    ;;
7766	esac
7767	;;
7768      *64-bit*)
7769	case $host in
7770	  x86_64-*kfreebsd*-gnu)
7771	    LD="${LD-ld} -m elf_x86_64_fbsd"
7772	    ;;
7773	  x86_64-*linux*)
7774	    LD="${LD-ld} -m elf_x86_64"
7775	    ;;
7776	  powerpcle-*linux*)
7777	    LD="${LD-ld} -m elf64lppc"
7778	    ;;
7779	  powerpc-*linux*)
7780	    LD="${LD-ld} -m elf64ppc"
7781	    ;;
7782	  s390*-*linux*|s390*-*tpf*)
7783	    LD="${LD-ld} -m elf64_s390"
7784	    ;;
7785	  sparc*-*linux*)
7786	    LD="${LD-ld} -m elf64_sparc"
7787	    ;;
7788	esac
7789	;;
7790    esac
7791  fi
7792  rm -rf conftest*
7793  ;;
7794
7795*-*-sco3.2v5*)
7796  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7797  SAVE_CFLAGS=$CFLAGS
7798  CFLAGS="$CFLAGS -belf"
7799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7800$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7801if ${lt_cv_cc_needs_belf+:} false; then :
7802  $as_echo_n "(cached) " >&6
7803else
7804  ac_ext=c
7805ac_cpp='$CPP $CPPFLAGS'
7806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7808ac_compiler_gnu=$ac_cv_c_compiler_gnu
7809
7810     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811/* end confdefs.h.  */
7812
7813int
7814main ()
7815{
7816
7817  ;
7818  return 0;
7819}
7820_ACEOF
7821if ac_fn_c_try_link "$LINENO"; then :
7822  lt_cv_cc_needs_belf=yes
7823else
7824  lt_cv_cc_needs_belf=no
7825fi
7826rm -f core conftest.err conftest.$ac_objext \
7827    conftest$ac_exeext conftest.$ac_ext
7828     ac_ext=c
7829ac_cpp='$CPP $CPPFLAGS'
7830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832ac_compiler_gnu=$ac_cv_c_compiler_gnu
7833
7834fi
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7836$as_echo "$lt_cv_cc_needs_belf" >&6; }
7837  if test yes != "$lt_cv_cc_needs_belf"; then
7838    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7839    CFLAGS=$SAVE_CFLAGS
7840  fi
7841  ;;
7842*-*solaris*)
7843  # Find out what ABI is being produced by ac_compile, and set linker
7844  # options accordingly.
7845  echo 'int i;' > conftest.$ac_ext
7846  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7847  (eval $ac_compile) 2>&5
7848  ac_status=$?
7849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7850  test $ac_status = 0; }; then
7851    case `/usr/bin/file conftest.o` in
7852    *64-bit*)
7853      case $lt_cv_prog_gnu_ld in
7854      yes*)
7855        case $host in
7856        i?86-*-solaris*|x86_64-*-solaris*)
7857          LD="${LD-ld} -m elf_x86_64"
7858          ;;
7859        sparc*-*-solaris*)
7860          LD="${LD-ld} -m elf64_sparc"
7861          ;;
7862        esac
7863        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7864        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7865          LD=${LD-ld}_sol2
7866        fi
7867        ;;
7868      *)
7869	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7870	  LD="${LD-ld} -64"
7871	fi
7872	;;
7873      esac
7874      ;;
7875    esac
7876  fi
7877  rm -rf conftest*
7878  ;;
7879esac
7880
7881need_locks=$enable_libtool_lock
7882
7883if test -n "$ac_tool_prefix"; then
7884  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7885set dummy ${ac_tool_prefix}mt; ac_word=$2
7886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887$as_echo_n "checking for $ac_word... " >&6; }
7888if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7889  $as_echo_n "(cached) " >&6
7890else
7891  if test -n "$MANIFEST_TOOL"; then
7892  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7893else
7894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895for as_dir in $PATH
7896do
7897  IFS=$as_save_IFS
7898  test -z "$as_dir" && as_dir=.
7899    for ac_exec_ext in '' $ac_executable_extensions; do
7900  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7901    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903    break 2
7904  fi
7905done
7906  done
7907IFS=$as_save_IFS
7908
7909fi
7910fi
7911MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7912if test -n "$MANIFEST_TOOL"; then
7913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7914$as_echo "$MANIFEST_TOOL" >&6; }
7915else
7916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917$as_echo "no" >&6; }
7918fi
7919
7920
7921fi
7922if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7923  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7924  # Extract the first word of "mt", so it can be a program name with args.
7925set dummy mt; ac_word=$2
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927$as_echo_n "checking for $ac_word... " >&6; }
7928if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7929  $as_echo_n "(cached) " >&6
7930else
7931  if test -n "$ac_ct_MANIFEST_TOOL"; then
7932  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7933else
7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937  IFS=$as_save_IFS
7938  test -z "$as_dir" && as_dir=.
7939    for ac_exec_ext in '' $ac_executable_extensions; do
7940  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7941    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943    break 2
7944  fi
7945done
7946  done
7947IFS=$as_save_IFS
7948
7949fi
7950fi
7951ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7952if test -n "$ac_ct_MANIFEST_TOOL"; then
7953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7954$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7955else
7956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957$as_echo "no" >&6; }
7958fi
7959
7960  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7961    MANIFEST_TOOL=":"
7962  else
7963    case $cross_compiling:$ac_tool_warned in
7964yes:)
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7967ac_tool_warned=yes ;;
7968esac
7969    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7970  fi
7971else
7972  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7973fi
7974
7975test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7977$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7978if ${lt_cv_path_mainfest_tool+:} false; then :
7979  $as_echo_n "(cached) " >&6
7980else
7981  lt_cv_path_mainfest_tool=no
7982  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7983  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7984  cat conftest.err >&5
7985  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7986    lt_cv_path_mainfest_tool=yes
7987  fi
7988  rm -f conftest*
7989fi
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7991$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7992if test yes != "$lt_cv_path_mainfest_tool"; then
7993  MANIFEST_TOOL=:
7994fi
7995
7996
7997
7998
7999
8000
8001  case $host_os in
8002    rhapsody* | darwin*)
8003    if test -n "$ac_tool_prefix"; then
8004  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8005set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007$as_echo_n "checking for $ac_word... " >&6; }
8008if ${ac_cv_prog_DSYMUTIL+:} false; then :
8009  $as_echo_n "(cached) " >&6
8010else
8011  if test -n "$DSYMUTIL"; then
8012  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8013else
8014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015for as_dir in $PATH
8016do
8017  IFS=$as_save_IFS
8018  test -z "$as_dir" && as_dir=.
8019    for ac_exec_ext in '' $ac_executable_extensions; do
8020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8021    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8023    break 2
8024  fi
8025done
8026  done
8027IFS=$as_save_IFS
8028
8029fi
8030fi
8031DSYMUTIL=$ac_cv_prog_DSYMUTIL
8032if test -n "$DSYMUTIL"; then
8033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8034$as_echo "$DSYMUTIL" >&6; }
8035else
8036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037$as_echo "no" >&6; }
8038fi
8039
8040
8041fi
8042if test -z "$ac_cv_prog_DSYMUTIL"; then
8043  ac_ct_DSYMUTIL=$DSYMUTIL
8044  # Extract the first word of "dsymutil", so it can be a program name with args.
8045set dummy dsymutil; ac_word=$2
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8047$as_echo_n "checking for $ac_word... " >&6; }
8048if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8049  $as_echo_n "(cached) " >&6
8050else
8051  if test -n "$ac_ct_DSYMUTIL"; then
8052  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8053else
8054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055for as_dir in $PATH
8056do
8057  IFS=$as_save_IFS
8058  test -z "$as_dir" && as_dir=.
8059    for ac_exec_ext in '' $ac_executable_extensions; do
8060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8061    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063    break 2
8064  fi
8065done
8066  done
8067IFS=$as_save_IFS
8068
8069fi
8070fi
8071ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8072if test -n "$ac_ct_DSYMUTIL"; then
8073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8074$as_echo "$ac_ct_DSYMUTIL" >&6; }
8075else
8076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077$as_echo "no" >&6; }
8078fi
8079
8080  if test "x$ac_ct_DSYMUTIL" = x; then
8081    DSYMUTIL=":"
8082  else
8083    case $cross_compiling:$ac_tool_warned in
8084yes:)
8085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8087ac_tool_warned=yes ;;
8088esac
8089    DSYMUTIL=$ac_ct_DSYMUTIL
8090  fi
8091else
8092  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8093fi
8094
8095    if test -n "$ac_tool_prefix"; then
8096  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8097set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099$as_echo_n "checking for $ac_word... " >&6; }
8100if ${ac_cv_prog_NMEDIT+:} false; then :
8101  $as_echo_n "(cached) " >&6
8102else
8103  if test -n "$NMEDIT"; then
8104  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8105else
8106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107for as_dir in $PATH
8108do
8109  IFS=$as_save_IFS
8110  test -z "$as_dir" && as_dir=.
8111    for ac_exec_ext in '' $ac_executable_extensions; do
8112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8113    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8115    break 2
8116  fi
8117done
8118  done
8119IFS=$as_save_IFS
8120
8121fi
8122fi
8123NMEDIT=$ac_cv_prog_NMEDIT
8124if test -n "$NMEDIT"; then
8125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8126$as_echo "$NMEDIT" >&6; }
8127else
8128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129$as_echo "no" >&6; }
8130fi
8131
8132
8133fi
8134if test -z "$ac_cv_prog_NMEDIT"; then
8135  ac_ct_NMEDIT=$NMEDIT
8136  # Extract the first word of "nmedit", so it can be a program name with args.
8137set dummy nmedit; ac_word=$2
8138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8139$as_echo_n "checking for $ac_word... " >&6; }
8140if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8141  $as_echo_n "(cached) " >&6
8142else
8143  if test -n "$ac_ct_NMEDIT"; then
8144  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8145else
8146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147for as_dir in $PATH
8148do
8149  IFS=$as_save_IFS
8150  test -z "$as_dir" && as_dir=.
8151    for ac_exec_ext in '' $ac_executable_extensions; do
8152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8153    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8155    break 2
8156  fi
8157done
8158  done
8159IFS=$as_save_IFS
8160
8161fi
8162fi
8163ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8164if test -n "$ac_ct_NMEDIT"; then
8165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8166$as_echo "$ac_ct_NMEDIT" >&6; }
8167else
8168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169$as_echo "no" >&6; }
8170fi
8171
8172  if test "x$ac_ct_NMEDIT" = x; then
8173    NMEDIT=":"
8174  else
8175    case $cross_compiling:$ac_tool_warned in
8176yes:)
8177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8179ac_tool_warned=yes ;;
8180esac
8181    NMEDIT=$ac_ct_NMEDIT
8182  fi
8183else
8184  NMEDIT="$ac_cv_prog_NMEDIT"
8185fi
8186
8187    if test -n "$ac_tool_prefix"; then
8188  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8189set dummy ${ac_tool_prefix}lipo; ac_word=$2
8190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191$as_echo_n "checking for $ac_word... " >&6; }
8192if ${ac_cv_prog_LIPO+:} false; then :
8193  $as_echo_n "(cached) " >&6
8194else
8195  if test -n "$LIPO"; then
8196  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8197else
8198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199for as_dir in $PATH
8200do
8201  IFS=$as_save_IFS
8202  test -z "$as_dir" && as_dir=.
8203    for ac_exec_ext in '' $ac_executable_extensions; do
8204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8205    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8207    break 2
8208  fi
8209done
8210  done
8211IFS=$as_save_IFS
8212
8213fi
8214fi
8215LIPO=$ac_cv_prog_LIPO
8216if test -n "$LIPO"; then
8217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8218$as_echo "$LIPO" >&6; }
8219else
8220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221$as_echo "no" >&6; }
8222fi
8223
8224
8225fi
8226if test -z "$ac_cv_prog_LIPO"; then
8227  ac_ct_LIPO=$LIPO
8228  # Extract the first word of "lipo", so it can be a program name with args.
8229set dummy lipo; ac_word=$2
8230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231$as_echo_n "checking for $ac_word... " >&6; }
8232if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8233  $as_echo_n "(cached) " >&6
8234else
8235  if test -n "$ac_ct_LIPO"; then
8236  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8237else
8238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239for as_dir in $PATH
8240do
8241  IFS=$as_save_IFS
8242  test -z "$as_dir" && as_dir=.
8243    for ac_exec_ext in '' $ac_executable_extensions; do
8244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8245    ac_cv_prog_ac_ct_LIPO="lipo"
8246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8247    break 2
8248  fi
8249done
8250  done
8251IFS=$as_save_IFS
8252
8253fi
8254fi
8255ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8256if test -n "$ac_ct_LIPO"; then
8257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8258$as_echo "$ac_ct_LIPO" >&6; }
8259else
8260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261$as_echo "no" >&6; }
8262fi
8263
8264  if test "x$ac_ct_LIPO" = x; then
8265    LIPO=":"
8266  else
8267    case $cross_compiling:$ac_tool_warned in
8268yes:)
8269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8271ac_tool_warned=yes ;;
8272esac
8273    LIPO=$ac_ct_LIPO
8274  fi
8275else
8276  LIPO="$ac_cv_prog_LIPO"
8277fi
8278
8279    if test -n "$ac_tool_prefix"; then
8280  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8281set dummy ${ac_tool_prefix}otool; ac_word=$2
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283$as_echo_n "checking for $ac_word... " >&6; }
8284if ${ac_cv_prog_OTOOL+:} false; then :
8285  $as_echo_n "(cached) " >&6
8286else
8287  if test -n "$OTOOL"; then
8288  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8289else
8290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291for as_dir in $PATH
8292do
8293  IFS=$as_save_IFS
8294  test -z "$as_dir" && as_dir=.
8295    for ac_exec_ext in '' $ac_executable_extensions; do
8296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8297    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299    break 2
8300  fi
8301done
8302  done
8303IFS=$as_save_IFS
8304
8305fi
8306fi
8307OTOOL=$ac_cv_prog_OTOOL
8308if test -n "$OTOOL"; then
8309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8310$as_echo "$OTOOL" >&6; }
8311else
8312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313$as_echo "no" >&6; }
8314fi
8315
8316
8317fi
8318if test -z "$ac_cv_prog_OTOOL"; then
8319  ac_ct_OTOOL=$OTOOL
8320  # Extract the first word of "otool", so it can be a program name with args.
8321set dummy otool; ac_word=$2
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323$as_echo_n "checking for $ac_word... " >&6; }
8324if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8325  $as_echo_n "(cached) " >&6
8326else
8327  if test -n "$ac_ct_OTOOL"; then
8328  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8329else
8330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331for as_dir in $PATH
8332do
8333  IFS=$as_save_IFS
8334  test -z "$as_dir" && as_dir=.
8335    for ac_exec_ext in '' $ac_executable_extensions; do
8336  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8337    ac_cv_prog_ac_ct_OTOOL="otool"
8338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339    break 2
8340  fi
8341done
8342  done
8343IFS=$as_save_IFS
8344
8345fi
8346fi
8347ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8348if test -n "$ac_ct_OTOOL"; then
8349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8350$as_echo "$ac_ct_OTOOL" >&6; }
8351else
8352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353$as_echo "no" >&6; }
8354fi
8355
8356  if test "x$ac_ct_OTOOL" = x; then
8357    OTOOL=":"
8358  else
8359    case $cross_compiling:$ac_tool_warned in
8360yes:)
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8363ac_tool_warned=yes ;;
8364esac
8365    OTOOL=$ac_ct_OTOOL
8366  fi
8367else
8368  OTOOL="$ac_cv_prog_OTOOL"
8369fi
8370
8371    if test -n "$ac_tool_prefix"; then
8372  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8373set dummy ${ac_tool_prefix}otool64; ac_word=$2
8374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375$as_echo_n "checking for $ac_word... " >&6; }
8376if ${ac_cv_prog_OTOOL64+:} false; then :
8377  $as_echo_n "(cached) " >&6
8378else
8379  if test -n "$OTOOL64"; then
8380  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8381else
8382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383for as_dir in $PATH
8384do
8385  IFS=$as_save_IFS
8386  test -z "$as_dir" && as_dir=.
8387    for ac_exec_ext in '' $ac_executable_extensions; do
8388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8389    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391    break 2
8392  fi
8393done
8394  done
8395IFS=$as_save_IFS
8396
8397fi
8398fi
8399OTOOL64=$ac_cv_prog_OTOOL64
8400if test -n "$OTOOL64"; then
8401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8402$as_echo "$OTOOL64" >&6; }
8403else
8404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405$as_echo "no" >&6; }
8406fi
8407
8408
8409fi
8410if test -z "$ac_cv_prog_OTOOL64"; then
8411  ac_ct_OTOOL64=$OTOOL64
8412  # Extract the first word of "otool64", so it can be a program name with args.
8413set dummy otool64; ac_word=$2
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415$as_echo_n "checking for $ac_word... " >&6; }
8416if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8417  $as_echo_n "(cached) " >&6
8418else
8419  if test -n "$ac_ct_OTOOL64"; then
8420  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8421else
8422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423for as_dir in $PATH
8424do
8425  IFS=$as_save_IFS
8426  test -z "$as_dir" && as_dir=.
8427    for ac_exec_ext in '' $ac_executable_extensions; do
8428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8429    ac_cv_prog_ac_ct_OTOOL64="otool64"
8430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431    break 2
8432  fi
8433done
8434  done
8435IFS=$as_save_IFS
8436
8437fi
8438fi
8439ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8440if test -n "$ac_ct_OTOOL64"; then
8441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8442$as_echo "$ac_ct_OTOOL64" >&6; }
8443else
8444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445$as_echo "no" >&6; }
8446fi
8447
8448  if test "x$ac_ct_OTOOL64" = x; then
8449    OTOOL64=":"
8450  else
8451    case $cross_compiling:$ac_tool_warned in
8452yes:)
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8455ac_tool_warned=yes ;;
8456esac
8457    OTOOL64=$ac_ct_OTOOL64
8458  fi
8459else
8460  OTOOL64="$ac_cv_prog_OTOOL64"
8461fi
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8490$as_echo_n "checking for -single_module linker flag... " >&6; }
8491if ${lt_cv_apple_cc_single_mod+:} false; then :
8492  $as_echo_n "(cached) " >&6
8493else
8494  lt_cv_apple_cc_single_mod=no
8495      if test -z "$LT_MULTI_MODULE"; then
8496	# By default we will add the -single_module flag. You can override
8497	# by either setting the environment variable LT_MULTI_MODULE
8498	# non-empty at configure time, or by adding -multi_module to the
8499	# link flags.
8500	rm -rf libconftest.dylib*
8501	echo "int foo(void){return 1;}" > conftest.c
8502	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8503-dynamiclib -Wl,-single_module conftest.c" >&5
8504	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8505	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8506        _lt_result=$?
8507	# If there is a non-empty error log, and "single_module"
8508	# appears in it, assume the flag caused a linker warning
8509        if test -s conftest.err && $GREP single_module conftest.err; then
8510	  cat conftest.err >&5
8511	# Otherwise, if the output was created with a 0 exit code from
8512	# the compiler, it worked.
8513	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8514	  lt_cv_apple_cc_single_mod=yes
8515	else
8516	  cat conftest.err >&5
8517	fi
8518	rm -rf libconftest.dylib*
8519	rm -f conftest.*
8520      fi
8521fi
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8523$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8524
8525    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8526$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8527if ${lt_cv_ld_exported_symbols_list+:} false; then :
8528  $as_echo_n "(cached) " >&6
8529else
8530  lt_cv_ld_exported_symbols_list=no
8531      save_LDFLAGS=$LDFLAGS
8532      echo "_main" > conftest.sym
8533      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8534      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535/* end confdefs.h.  */
8536
8537int
8538main ()
8539{
8540
8541  ;
8542  return 0;
8543}
8544_ACEOF
8545if ac_fn_c_try_link "$LINENO"; then :
8546  lt_cv_ld_exported_symbols_list=yes
8547else
8548  lt_cv_ld_exported_symbols_list=no
8549fi
8550rm -f core conftest.err conftest.$ac_objext \
8551    conftest$ac_exeext conftest.$ac_ext
8552	LDFLAGS=$save_LDFLAGS
8553
8554fi
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8556$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8557
8558    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8559$as_echo_n "checking for -force_load linker flag... " >&6; }
8560if ${lt_cv_ld_force_load+:} false; then :
8561  $as_echo_n "(cached) " >&6
8562else
8563  lt_cv_ld_force_load=no
8564      cat > conftest.c << _LT_EOF
8565int forced_loaded() { return 2;}
8566_LT_EOF
8567      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8568      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8569      echo "$AR cru libconftest.a conftest.o" >&5
8570      $AR cru libconftest.a conftest.o 2>&5
8571      echo "$RANLIB libconftest.a" >&5
8572      $RANLIB libconftest.a 2>&5
8573      cat > conftest.c << _LT_EOF
8574int main() { return 0;}
8575_LT_EOF
8576      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8577      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8578      _lt_result=$?
8579      if test -s conftest.err && $GREP force_load conftest.err; then
8580	cat conftest.err >&5
8581      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8582	lt_cv_ld_force_load=yes
8583      else
8584	cat conftest.err >&5
8585      fi
8586        rm -f conftest.err libconftest.a conftest conftest.c
8587        rm -rf conftest.dSYM
8588
8589fi
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8591$as_echo "$lt_cv_ld_force_load" >&6; }
8592    case $host_os in
8593    rhapsody* | darwin1.[012])
8594      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8595    darwin1.*)
8596      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8597    darwin*) # darwin 5.x on
8598      # if running on 10.5 or later, the deployment target defaults
8599      # to the OS version, if on x86, and 10.4, the deployment
8600      # target defaults to 10.4. Don't you love it?
8601      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8602	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8603	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8604	10.[012][,.]*)
8605	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8606	10.*)
8607	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8608      esac
8609    ;;
8610  esac
8611    if test yes = "$lt_cv_apple_cc_single_mod"; then
8612      _lt_dar_single_mod='$single_module'
8613    fi
8614    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8615      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8616    else
8617      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8618    fi
8619    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8620      _lt_dsymutil='~$DSYMUTIL $lib || :'
8621    else
8622      _lt_dsymutil=
8623    fi
8624    ;;
8625  esac
8626
8627# func_munge_path_list VARIABLE PATH
8628# -----------------------------------
8629# VARIABLE is name of variable containing _space_ separated list of
8630# directories to be munged by the contents of PATH, which is string
8631# having a format:
8632# "DIR[:DIR]:"
8633#       string "DIR[ DIR]" will be prepended to VARIABLE
8634# ":DIR[:DIR]"
8635#       string "DIR[ DIR]" will be appended to VARIABLE
8636# "DIRP[:DIRP]::[DIRA:]DIRA"
8637#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8638#       "DIRA[ DIRA]" will be appended to VARIABLE
8639# "DIR[:DIR]"
8640#       VARIABLE will be replaced by "DIR[ DIR]"
8641func_munge_path_list ()
8642{
8643    case x$2 in
8644    x)
8645        ;;
8646    *:)
8647        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8648        ;;
8649    x:*)
8650        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8651        ;;
8652    *::*)
8653        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8654        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8655        ;;
8656    *)
8657        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8658        ;;
8659    esac
8660}
8661
8662ac_ext=c
8663ac_cpp='$CPP $CPPFLAGS'
8664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8666ac_compiler_gnu=$ac_cv_c_compiler_gnu
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8668$as_echo_n "checking how to run the C preprocessor... " >&6; }
8669# On Suns, sometimes $CPP names a directory.
8670if test -n "$CPP" && test -d "$CPP"; then
8671  CPP=
8672fi
8673if test -z "$CPP"; then
8674  if ${ac_cv_prog_CPP+:} false; then :
8675  $as_echo_n "(cached) " >&6
8676else
8677      # Double quotes because CPP needs to be expanded
8678    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8679    do
8680      ac_preproc_ok=false
8681for ac_c_preproc_warn_flag in '' yes
8682do
8683  # Use a header file that comes with gcc, so configuring glibc
8684  # with a fresh cross-compiler works.
8685  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8686  # <limits.h> exists even on freestanding compilers.
8687  # On the NeXT, cc -E runs the code through the compiler's parser,
8688  # not just through cpp. "Syntax error" is here to catch this case.
8689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690/* end confdefs.h.  */
8691#ifdef __STDC__
8692# include <limits.h>
8693#else
8694# include <assert.h>
8695#endif
8696		     Syntax error
8697_ACEOF
8698if ac_fn_c_try_cpp "$LINENO"; then :
8699
8700else
8701  # Broken: fails on valid input.
8702continue
8703fi
8704rm -f conftest.err conftest.i conftest.$ac_ext
8705
8706  # OK, works on sane cases.  Now check whether nonexistent headers
8707  # can be detected and how.
8708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709/* end confdefs.h.  */
8710#include <ac_nonexistent.h>
8711_ACEOF
8712if ac_fn_c_try_cpp "$LINENO"; then :
8713  # Broken: success on invalid input.
8714continue
8715else
8716  # Passes both tests.
8717ac_preproc_ok=:
8718break
8719fi
8720rm -f conftest.err conftest.i conftest.$ac_ext
8721
8722done
8723# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8724rm -f conftest.i conftest.err conftest.$ac_ext
8725if $ac_preproc_ok; then :
8726  break
8727fi
8728
8729    done
8730    ac_cv_prog_CPP=$CPP
8731
8732fi
8733  CPP=$ac_cv_prog_CPP
8734else
8735  ac_cv_prog_CPP=$CPP
8736fi
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8738$as_echo "$CPP" >&6; }
8739ac_preproc_ok=false
8740for ac_c_preproc_warn_flag in '' yes
8741do
8742  # Use a header file that comes with gcc, so configuring glibc
8743  # with a fresh cross-compiler works.
8744  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8745  # <limits.h> exists even on freestanding compilers.
8746  # On the NeXT, cc -E runs the code through the compiler's parser,
8747  # not just through cpp. "Syntax error" is here to catch this case.
8748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h.  */
8750#ifdef __STDC__
8751# include <limits.h>
8752#else
8753# include <assert.h>
8754#endif
8755		     Syntax error
8756_ACEOF
8757if ac_fn_c_try_cpp "$LINENO"; then :
8758
8759else
8760  # Broken: fails on valid input.
8761continue
8762fi
8763rm -f conftest.err conftest.i conftest.$ac_ext
8764
8765  # OK, works on sane cases.  Now check whether nonexistent headers
8766  # can be detected and how.
8767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768/* end confdefs.h.  */
8769#include <ac_nonexistent.h>
8770_ACEOF
8771if ac_fn_c_try_cpp "$LINENO"; then :
8772  # Broken: success on invalid input.
8773continue
8774else
8775  # Passes both tests.
8776ac_preproc_ok=:
8777break
8778fi
8779rm -f conftest.err conftest.i conftest.$ac_ext
8780
8781done
8782# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8783rm -f conftest.i conftest.err conftest.$ac_ext
8784if $ac_preproc_ok; then :
8785
8786else
8787  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8789as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8790See \`config.log' for more details" "$LINENO" 5; }
8791fi
8792
8793ac_ext=c
8794ac_cpp='$CPP $CPPFLAGS'
8795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8797ac_compiler_gnu=$ac_cv_c_compiler_gnu
8798
8799
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8801$as_echo_n "checking for ANSI C header files... " >&6; }
8802if ${ac_cv_header_stdc+:} false; then :
8803  $as_echo_n "(cached) " >&6
8804else
8805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806/* end confdefs.h.  */
8807#include <stdlib.h>
8808#include <stdarg.h>
8809#include <string.h>
8810#include <float.h>
8811
8812int
8813main ()
8814{
8815
8816  ;
8817  return 0;
8818}
8819_ACEOF
8820if ac_fn_c_try_compile "$LINENO"; then :
8821  ac_cv_header_stdc=yes
8822else
8823  ac_cv_header_stdc=no
8824fi
8825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826
8827if test $ac_cv_header_stdc = yes; then
8828  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830/* end confdefs.h.  */
8831#include <string.h>
8832
8833_ACEOF
8834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8835  $EGREP "memchr" >/dev/null 2>&1; then :
8836
8837else
8838  ac_cv_header_stdc=no
8839fi
8840rm -f conftest*
8841
8842fi
8843
8844if test $ac_cv_header_stdc = yes; then
8845  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847/* end confdefs.h.  */
8848#include <stdlib.h>
8849
8850_ACEOF
8851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8852  $EGREP "free" >/dev/null 2>&1; then :
8853
8854else
8855  ac_cv_header_stdc=no
8856fi
8857rm -f conftest*
8858
8859fi
8860
8861if test $ac_cv_header_stdc = yes; then
8862  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8863  if test "$cross_compiling" = yes; then :
8864  :
8865else
8866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867/* end confdefs.h.  */
8868#include <ctype.h>
8869#include <stdlib.h>
8870#if ((' ' & 0x0FF) == 0x020)
8871# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8872# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8873#else
8874# define ISLOWER(c) \
8875		   (('a' <= (c) && (c) <= 'i') \
8876		     || ('j' <= (c) && (c) <= 'r') \
8877		     || ('s' <= (c) && (c) <= 'z'))
8878# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8879#endif
8880
8881#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8882int
8883main ()
8884{
8885  int i;
8886  for (i = 0; i < 256; i++)
8887    if (XOR (islower (i), ISLOWER (i))
8888	|| toupper (i) != TOUPPER (i))
8889      return 2;
8890  return 0;
8891}
8892_ACEOF
8893if ac_fn_c_try_run "$LINENO"; then :
8894
8895else
8896  ac_cv_header_stdc=no
8897fi
8898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8899  conftest.$ac_objext conftest.beam conftest.$ac_ext
8900fi
8901
8902fi
8903fi
8904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8905$as_echo "$ac_cv_header_stdc" >&6; }
8906if test $ac_cv_header_stdc = yes; then
8907
8908$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8909
8910fi
8911
8912# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8913for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8914		  inttypes.h stdint.h unistd.h
8915do :
8916  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8917ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8918"
8919if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8920  cat >>confdefs.h <<_ACEOF
8921#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8922_ACEOF
8923
8924fi
8925
8926done
8927
8928
8929for ac_header in dlfcn.h
8930do :
8931  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8932"
8933if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8934  cat >>confdefs.h <<_ACEOF
8935#define HAVE_DLFCN_H 1
8936_ACEOF
8937
8938fi
8939
8940done
8941
8942
8943
8944
8945
8946# Set options
8947
8948
8949
8950        enable_dlopen=no
8951
8952
8953  enable_win32_dll=no
8954
8955
8956            # Check whether --enable-shared was given.
8957if test "${enable_shared+set}" = set; then :
8958  enableval=$enable_shared; p=${PACKAGE-default}
8959    case $enableval in
8960    yes) enable_shared=yes ;;
8961    no) enable_shared=no ;;
8962    *)
8963      enable_shared=no
8964      # Look at the argument we got.  We use all the common list separators.
8965      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8966      for pkg in $enableval; do
8967	IFS=$lt_save_ifs
8968	if test "X$pkg" = "X$p"; then
8969	  enable_shared=yes
8970	fi
8971      done
8972      IFS=$lt_save_ifs
8973      ;;
8974    esac
8975else
8976  enable_shared=yes
8977fi
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987  # Check whether --enable-static was given.
8988if test "${enable_static+set}" = set; then :
8989  enableval=$enable_static; p=${PACKAGE-default}
8990    case $enableval in
8991    yes) enable_static=yes ;;
8992    no) enable_static=no ;;
8993    *)
8994     enable_static=no
8995      # Look at the argument we got.  We use all the common list separators.
8996      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8997      for pkg in $enableval; do
8998	IFS=$lt_save_ifs
8999	if test "X$pkg" = "X$p"; then
9000	  enable_static=yes
9001	fi
9002      done
9003      IFS=$lt_save_ifs
9004      ;;
9005    esac
9006else
9007  enable_static=yes
9008fi
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019# Check whether --with-pic was given.
9020if test "${with_pic+set}" = set; then :
9021  withval=$with_pic; lt_p=${PACKAGE-default}
9022    case $withval in
9023    yes|no) pic_mode=$withval ;;
9024    *)
9025      pic_mode=default
9026      # Look at the argument we got.  We use all the common list separators.
9027      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9028      for lt_pkg in $withval; do
9029	IFS=$lt_save_ifs
9030	if test "X$lt_pkg" = "X$lt_p"; then
9031	  pic_mode=yes
9032	fi
9033      done
9034      IFS=$lt_save_ifs
9035      ;;
9036    esac
9037else
9038  pic_mode=default
9039fi
9040
9041
9042
9043
9044
9045
9046
9047
9048  # Check whether --enable-fast-install was given.
9049if test "${enable_fast_install+set}" = set; then :
9050  enableval=$enable_fast_install; p=${PACKAGE-default}
9051    case $enableval in
9052    yes) enable_fast_install=yes ;;
9053    no) enable_fast_install=no ;;
9054    *)
9055      enable_fast_install=no
9056      # Look at the argument we got.  We use all the common list separators.
9057      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9058      for pkg in $enableval; do
9059	IFS=$lt_save_ifs
9060	if test "X$pkg" = "X$p"; then
9061	  enable_fast_install=yes
9062	fi
9063      done
9064      IFS=$lt_save_ifs
9065      ;;
9066    esac
9067else
9068  enable_fast_install=yes
9069fi
9070
9071
9072
9073
9074
9075
9076
9077
9078  shared_archive_member_spec=
9079case $host,$enable_shared in
9080power*-*-aix[5-9]*,yes)
9081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9082$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9083
9084# Check whether --with-aix-soname was given.
9085if test "${with_aix_soname+set}" = set; then :
9086  withval=$with_aix_soname; case $withval in
9087    aix|svr4|both)
9088      ;;
9089    *)
9090      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9091      ;;
9092    esac
9093    lt_cv_with_aix_soname=$with_aix_soname
9094else
9095  if ${lt_cv_with_aix_soname+:} false; then :
9096  $as_echo_n "(cached) " >&6
9097else
9098  lt_cv_with_aix_soname=aix
9099fi
9100
9101    with_aix_soname=$lt_cv_with_aix_soname
9102fi
9103
9104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9105$as_echo "$with_aix_soname" >&6; }
9106  if test aix != "$with_aix_soname"; then
9107    # For the AIX way of multilib, we name the shared archive member
9108    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9109    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9110    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9111    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9112    if test 64 = "${OBJECT_MODE-32}"; then
9113      shared_archive_member_spec=shr_64
9114    else
9115      shared_archive_member_spec=shr
9116    fi
9117  fi
9118  ;;
9119*)
9120  with_aix_soname=aix
9121  ;;
9122esac
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133# This can be used to rebuild libtool when needed
9134LIBTOOL_DEPS=$ltmain
9135
9136# Always use our own libtool.
9137LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168test -z "$LN_S" && LN_S="ln -s"
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183if test -n "${ZSH_VERSION+set}"; then
9184   setopt NO_GLOB_SUBST
9185fi
9186
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9188$as_echo_n "checking for objdir... " >&6; }
9189if ${lt_cv_objdir+:} false; then :
9190  $as_echo_n "(cached) " >&6
9191else
9192  rm -f .libs 2>/dev/null
9193mkdir .libs 2>/dev/null
9194if test -d .libs; then
9195  lt_cv_objdir=.libs
9196else
9197  # MS-DOS does not allow filenames that begin with a dot.
9198  lt_cv_objdir=_libs
9199fi
9200rmdir .libs 2>/dev/null
9201fi
9202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9203$as_echo "$lt_cv_objdir" >&6; }
9204objdir=$lt_cv_objdir
9205
9206
9207
9208
9209
9210cat >>confdefs.h <<_ACEOF
9211#define LT_OBJDIR "$lt_cv_objdir/"
9212_ACEOF
9213
9214
9215
9216
9217case $host_os in
9218aix3*)
9219  # AIX sometimes has problems with the GCC collect2 program.  For some
9220  # reason, if we set the COLLECT_NAMES environment variable, the problems
9221  # vanish in a puff of smoke.
9222  if test set != "${COLLECT_NAMES+set}"; then
9223    COLLECT_NAMES=
9224    export COLLECT_NAMES
9225  fi
9226  ;;
9227esac
9228
9229# Global variables:
9230ofile=libtool
9231can_build_shared=yes
9232
9233# All known linkers require a '.a' archive for static linking (except MSVC,
9234# which needs '.lib').
9235libext=a
9236
9237with_gnu_ld=$lt_cv_prog_gnu_ld
9238
9239old_CC=$CC
9240old_CFLAGS=$CFLAGS
9241
9242# Set sane defaults for various variables
9243test -z "$CC" && CC=cc
9244test -z "$LTCC" && LTCC=$CC
9245test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9246test -z "$LD" && LD=ld
9247test -z "$ac_objext" && ac_objext=o
9248
9249func_cc_basename $compiler
9250cc_basename=$func_cc_basename_result
9251
9252
9253# Only perform the check for file, if the check method requires it
9254test -z "$MAGIC_CMD" && MAGIC_CMD=file
9255case $deplibs_check_method in
9256file_magic*)
9257  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9259$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9260if ${lt_cv_path_MAGIC_CMD+:} false; then :
9261  $as_echo_n "(cached) " >&6
9262else
9263  case $MAGIC_CMD in
9264[\\/*] |  ?:[\\/]*)
9265  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9266  ;;
9267*)
9268  lt_save_MAGIC_CMD=$MAGIC_CMD
9269  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9270  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9271  for ac_dir in $ac_dummy; do
9272    IFS=$lt_save_ifs
9273    test -z "$ac_dir" && ac_dir=.
9274    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9275      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9276      if test -n "$file_magic_test_file"; then
9277	case $deplibs_check_method in
9278	"file_magic "*)
9279	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9280	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9281	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9282	    $EGREP "$file_magic_regex" > /dev/null; then
9283	    :
9284	  else
9285	    cat <<_LT_EOF 1>&2
9286
9287*** Warning: the command libtool uses to detect shared libraries,
9288*** $file_magic_cmd, produces output that libtool cannot recognize.
9289*** The result is that libtool may fail to recognize shared libraries
9290*** as such.  This will affect the creation of libtool libraries that
9291*** depend on shared libraries, but programs linked with such libtool
9292*** libraries will work regardless of this problem.  Nevertheless, you
9293*** may want to report the problem to your system manager and/or to
9294*** bug-libtool@gnu.org
9295
9296_LT_EOF
9297	  fi ;;
9298	esac
9299      fi
9300      break
9301    fi
9302  done
9303  IFS=$lt_save_ifs
9304  MAGIC_CMD=$lt_save_MAGIC_CMD
9305  ;;
9306esac
9307fi
9308
9309MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9310if test -n "$MAGIC_CMD"; then
9311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9312$as_echo "$MAGIC_CMD" >&6; }
9313else
9314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315$as_echo "no" >&6; }
9316fi
9317
9318
9319
9320
9321
9322if test -z "$lt_cv_path_MAGIC_CMD"; then
9323  if test -n "$ac_tool_prefix"; then
9324    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9325$as_echo_n "checking for file... " >&6; }
9326if ${lt_cv_path_MAGIC_CMD+:} false; then :
9327  $as_echo_n "(cached) " >&6
9328else
9329  case $MAGIC_CMD in
9330[\\/*] |  ?:[\\/]*)
9331  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9332  ;;
9333*)
9334  lt_save_MAGIC_CMD=$MAGIC_CMD
9335  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9336  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9337  for ac_dir in $ac_dummy; do
9338    IFS=$lt_save_ifs
9339    test -z "$ac_dir" && ac_dir=.
9340    if test -f "$ac_dir/file"; then
9341      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9342      if test -n "$file_magic_test_file"; then
9343	case $deplibs_check_method in
9344	"file_magic "*)
9345	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9346	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9347	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9348	    $EGREP "$file_magic_regex" > /dev/null; then
9349	    :
9350	  else
9351	    cat <<_LT_EOF 1>&2
9352
9353*** Warning: the command libtool uses to detect shared libraries,
9354*** $file_magic_cmd, produces output that libtool cannot recognize.
9355*** The result is that libtool may fail to recognize shared libraries
9356*** as such.  This will affect the creation of libtool libraries that
9357*** depend on shared libraries, but programs linked with such libtool
9358*** libraries will work regardless of this problem.  Nevertheless, you
9359*** may want to report the problem to your system manager and/or to
9360*** bug-libtool@gnu.org
9361
9362_LT_EOF
9363	  fi ;;
9364	esac
9365      fi
9366      break
9367    fi
9368  done
9369  IFS=$lt_save_ifs
9370  MAGIC_CMD=$lt_save_MAGIC_CMD
9371  ;;
9372esac
9373fi
9374
9375MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9376if test -n "$MAGIC_CMD"; then
9377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9378$as_echo "$MAGIC_CMD" >&6; }
9379else
9380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381$as_echo "no" >&6; }
9382fi
9383
9384
9385  else
9386    MAGIC_CMD=:
9387  fi
9388fi
9389
9390  fi
9391  ;;
9392esac
9393
9394# Use C for the default configuration in the libtool script
9395
9396lt_save_CC=$CC
9397ac_ext=c
9398ac_cpp='$CPP $CPPFLAGS'
9399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9401ac_compiler_gnu=$ac_cv_c_compiler_gnu
9402
9403
9404# Source file extension for C test sources.
9405ac_ext=c
9406
9407# Object file extension for compiled C test sources.
9408objext=o
9409objext=$objext
9410
9411# Code to be used in simple compile tests
9412lt_simple_compile_test_code="int some_variable = 0;"
9413
9414# Code to be used in simple link tests
9415lt_simple_link_test_code='int main(){return(0);}'
9416
9417
9418
9419
9420
9421
9422
9423# If no C compiler was specified, use CC.
9424LTCC=${LTCC-"$CC"}
9425
9426# If no C compiler flags were specified, use CFLAGS.
9427LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9428
9429# Allow CC to be a program name with arguments.
9430compiler=$CC
9431
9432# Save the default compiler, since it gets overwritten when the other
9433# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9434compiler_DEFAULT=$CC
9435
9436# save warnings/boilerplate of simple test code
9437ac_outfile=conftest.$ac_objext
9438echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9439eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9440_lt_compiler_boilerplate=`cat conftest.err`
9441$RM conftest*
9442
9443ac_outfile=conftest.$ac_objext
9444echo "$lt_simple_link_test_code" >conftest.$ac_ext
9445eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9446_lt_linker_boilerplate=`cat conftest.err`
9447$RM -r conftest*
9448
9449
9450## CAVEAT EMPTOR:
9451## There is no encapsulation within the following macros, do not change
9452## the running order or otherwise move them around unless you know exactly
9453## what you are doing...
9454if test -n "$compiler"; then
9455
9456lt_prog_compiler_no_builtin_flag=
9457
9458if test yes = "$GCC"; then
9459  case $cc_basename in
9460  nvcc*)
9461    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9462  *)
9463    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9464  esac
9465
9466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9467$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9468if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9469  $as_echo_n "(cached) " >&6
9470else
9471  lt_cv_prog_compiler_rtti_exceptions=no
9472   ac_outfile=conftest.$ac_objext
9473   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9474   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9475   # Insert the option either (1) after the last *FLAGS variable, or
9476   # (2) before a word containing "conftest.", or (3) at the end.
9477   # Note that $ac_compile itself does not contain backslashes and begins
9478   # with a dollar sign (not a hyphen), so the echo should work correctly.
9479   # The option is referenced via a variable to avoid confusing sed.
9480   lt_compile=`echo "$ac_compile" | $SED \
9481   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9482   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9483   -e 's:$: $lt_compiler_flag:'`
9484   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9485   (eval "$lt_compile" 2>conftest.err)
9486   ac_status=$?
9487   cat conftest.err >&5
9488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489   if (exit $ac_status) && test -s "$ac_outfile"; then
9490     # The compiler can only warn and ignore the option if not recognized
9491     # So say no if there are warnings other than the usual output.
9492     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9493     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9494     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9495       lt_cv_prog_compiler_rtti_exceptions=yes
9496     fi
9497   fi
9498   $RM conftest*
9499
9500fi
9501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9502$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9503
9504if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9505    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9506else
9507    :
9508fi
9509
9510fi
9511
9512
9513
9514
9515
9516
9517  lt_prog_compiler_wl=
9518lt_prog_compiler_pic=
9519lt_prog_compiler_static=
9520
9521
9522  if test yes = "$GCC"; then
9523    lt_prog_compiler_wl='-Wl,'
9524    lt_prog_compiler_static='-static'
9525
9526    case $host_os in
9527      aix*)
9528      # All AIX code is PIC.
9529      if test ia64 = "$host_cpu"; then
9530	# AIX 5 now supports IA64 processor
9531	lt_prog_compiler_static='-Bstatic'
9532      fi
9533      lt_prog_compiler_pic='-fPIC'
9534      ;;
9535
9536    amigaos*)
9537      case $host_cpu in
9538      powerpc)
9539            # see comment about AmigaOS4 .so support
9540            lt_prog_compiler_pic='-fPIC'
9541        ;;
9542      m68k)
9543            # FIXME: we need at least 68020 code to build shared libraries, but
9544            # adding the '-m68020' flag to GCC prevents building anything better,
9545            # like '-m68040'.
9546            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9547        ;;
9548      esac
9549      ;;
9550
9551    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9552      # PIC is the default for these OSes.
9553      ;;
9554
9555    mingw* | cygwin* | pw32* | os2* | cegcc*)
9556      # This hack is so that the source file can tell whether it is being
9557      # built for inclusion in a dll (and should export symbols for example).
9558      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9559      # (--disable-auto-import) libraries
9560      lt_prog_compiler_pic='-DDLL_EXPORT'
9561      case $host_os in
9562      os2*)
9563	lt_prog_compiler_static='$wl-static'
9564	;;
9565      esac
9566      ;;
9567
9568    darwin* | rhapsody*)
9569      # PIC is the default on this platform
9570      # Common symbols not allowed in MH_DYLIB files
9571      lt_prog_compiler_pic='-fno-common'
9572      ;;
9573
9574    haiku*)
9575      # PIC is the default for Haiku.
9576      # The "-static" flag exists, but is broken.
9577      lt_prog_compiler_static=
9578      ;;
9579
9580    hpux*)
9581      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9582      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9583      # sets the default TLS model and affects inlining.
9584      case $host_cpu in
9585      hppa*64*)
9586	# +Z the default
9587	;;
9588      *)
9589	lt_prog_compiler_pic='-fPIC'
9590	;;
9591      esac
9592      ;;
9593
9594    interix[3-9]*)
9595      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9596      # Instead, we relocate shared libraries at runtime.
9597      ;;
9598
9599    msdosdjgpp*)
9600      # Just because we use GCC doesn't mean we suddenly get shared libraries
9601      # on systems that don't support them.
9602      lt_prog_compiler_can_build_shared=no
9603      enable_shared=no
9604      ;;
9605
9606    *nto* | *qnx*)
9607      # QNX uses GNU C++, but need to define -shared option too, otherwise
9608      # it will coredump.
9609      lt_prog_compiler_pic='-fPIC -shared'
9610      ;;
9611
9612    sysv4*MP*)
9613      if test -d /usr/nec; then
9614	lt_prog_compiler_pic=-Kconform_pic
9615      fi
9616      ;;
9617
9618    *)
9619      lt_prog_compiler_pic='-fPIC'
9620      ;;
9621    esac
9622
9623    case $cc_basename in
9624    nvcc*) # Cuda Compiler Driver 2.2
9625      lt_prog_compiler_wl='-Xlinker '
9626      if test -n "$lt_prog_compiler_pic"; then
9627        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9628      fi
9629      ;;
9630    esac
9631  else
9632    # PORTME Check for flag to pass linker flags through the system compiler.
9633    case $host_os in
9634    aix*)
9635      lt_prog_compiler_wl='-Wl,'
9636      if test ia64 = "$host_cpu"; then
9637	# AIX 5 now supports IA64 processor
9638	lt_prog_compiler_static='-Bstatic'
9639      else
9640	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9641      fi
9642      ;;
9643
9644    darwin* | rhapsody*)
9645      # PIC is the default on this platform
9646      # Common symbols not allowed in MH_DYLIB files
9647      lt_prog_compiler_pic='-fno-common'
9648      case $cc_basename in
9649      nagfor*)
9650        # NAG Fortran compiler
9651        lt_prog_compiler_wl='-Wl,-Wl,,'
9652        lt_prog_compiler_pic='-PIC'
9653        lt_prog_compiler_static='-Bstatic'
9654        ;;
9655      esac
9656      ;;
9657
9658    mingw* | cygwin* | pw32* | os2* | cegcc*)
9659      # This hack is so that the source file can tell whether it is being
9660      # built for inclusion in a dll (and should export symbols for example).
9661      lt_prog_compiler_pic='-DDLL_EXPORT'
9662      case $host_os in
9663      os2*)
9664	lt_prog_compiler_static='$wl-static'
9665	;;
9666      esac
9667      ;;
9668
9669    hpux9* | hpux10* | hpux11*)
9670      lt_prog_compiler_wl='-Wl,'
9671      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9672      # not for PA HP-UX.
9673      case $host_cpu in
9674      hppa*64*|ia64*)
9675	# +Z the default
9676	;;
9677      *)
9678	lt_prog_compiler_pic='+Z'
9679	;;
9680      esac
9681      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9682      lt_prog_compiler_static='$wl-a ${wl}archive'
9683      ;;
9684
9685    irix5* | irix6* | nonstopux*)
9686      lt_prog_compiler_wl='-Wl,'
9687      # PIC (with -KPIC) is the default.
9688      lt_prog_compiler_static='-non_shared'
9689      ;;
9690
9691    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9692      case $cc_basename in
9693      # old Intel for x86_64, which still supported -KPIC.
9694      ecc*)
9695	lt_prog_compiler_wl='-Wl,'
9696	lt_prog_compiler_pic='-KPIC'
9697	lt_prog_compiler_static='-static'
9698        ;;
9699      # icc used to be incompatible with GCC.
9700      # ICC 10 doesn't accept -KPIC any more.
9701      icc* | ifort*)
9702	lt_prog_compiler_wl='-Wl,'
9703	lt_prog_compiler_pic='-fPIC'
9704	lt_prog_compiler_static='-static'
9705        ;;
9706      # Lahey Fortran 8.1.
9707      lf95*)
9708	lt_prog_compiler_wl='-Wl,'
9709	lt_prog_compiler_pic='--shared'
9710	lt_prog_compiler_static='--static'
9711	;;
9712      nagfor*)
9713	# NAG Fortran compiler
9714	lt_prog_compiler_wl='-Wl,-Wl,,'
9715	lt_prog_compiler_pic='-PIC'
9716	lt_prog_compiler_static='-Bstatic'
9717	;;
9718      tcc*)
9719	# Fabrice Bellard et al's Tiny C Compiler
9720	lt_prog_compiler_wl='-Wl,'
9721	lt_prog_compiler_pic='-fPIC'
9722	lt_prog_compiler_static='-static'
9723	;;
9724      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9725        # Portland Group compilers (*not* the Pentium gcc compiler,
9726	# which looks to be a dead project)
9727	lt_prog_compiler_wl='-Wl,'
9728	lt_prog_compiler_pic='-fpic'
9729	lt_prog_compiler_static='-Bstatic'
9730        ;;
9731      ccc*)
9732        lt_prog_compiler_wl='-Wl,'
9733        # All Alpha code is PIC.
9734        lt_prog_compiler_static='-non_shared'
9735        ;;
9736      xl* | bgxl* | bgf* | mpixl*)
9737	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9738	lt_prog_compiler_wl='-Wl,'
9739	lt_prog_compiler_pic='-qpic'
9740	lt_prog_compiler_static='-qstaticlink'
9741	;;
9742      *)
9743	case `$CC -V 2>&1 | sed 5q` in
9744	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9745	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9746	  lt_prog_compiler_pic='-KPIC'
9747	  lt_prog_compiler_static='-Bstatic'
9748	  lt_prog_compiler_wl=''
9749	  ;;
9750	*Sun\ F* | *Sun*Fortran*)
9751	  lt_prog_compiler_pic='-KPIC'
9752	  lt_prog_compiler_static='-Bstatic'
9753	  lt_prog_compiler_wl='-Qoption ld '
9754	  ;;
9755	*Sun\ C*)
9756	  # Sun C 5.9
9757	  lt_prog_compiler_pic='-KPIC'
9758	  lt_prog_compiler_static='-Bstatic'
9759	  lt_prog_compiler_wl='-Wl,'
9760	  ;;
9761        *Intel*\ [CF]*Compiler*)
9762	  lt_prog_compiler_wl='-Wl,'
9763	  lt_prog_compiler_pic='-fPIC'
9764	  lt_prog_compiler_static='-static'
9765	  ;;
9766	*Portland\ Group*)
9767	  lt_prog_compiler_wl='-Wl,'
9768	  lt_prog_compiler_pic='-fpic'
9769	  lt_prog_compiler_static='-Bstatic'
9770	  ;;
9771	esac
9772	;;
9773      esac
9774      ;;
9775
9776    newsos6)
9777      lt_prog_compiler_pic='-KPIC'
9778      lt_prog_compiler_static='-Bstatic'
9779      ;;
9780
9781    *nto* | *qnx*)
9782      # QNX uses GNU C++, but need to define -shared option too, otherwise
9783      # it will coredump.
9784      lt_prog_compiler_pic='-fPIC -shared'
9785      ;;
9786
9787    osf3* | osf4* | osf5*)
9788      lt_prog_compiler_wl='-Wl,'
9789      # All OSF/1 code is PIC.
9790      lt_prog_compiler_static='-non_shared'
9791      ;;
9792
9793    rdos*)
9794      lt_prog_compiler_static='-non_shared'
9795      ;;
9796
9797    solaris*)
9798      lt_prog_compiler_pic='-KPIC'
9799      lt_prog_compiler_static='-Bstatic'
9800      case $cc_basename in
9801      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9802	lt_prog_compiler_wl='-Qoption ld ';;
9803      *)
9804	lt_prog_compiler_wl='-Wl,';;
9805      esac
9806      ;;
9807
9808    sunos4*)
9809      lt_prog_compiler_wl='-Qoption ld '
9810      lt_prog_compiler_pic='-PIC'
9811      lt_prog_compiler_static='-Bstatic'
9812      ;;
9813
9814    sysv4 | sysv4.2uw2* | sysv4.3*)
9815      lt_prog_compiler_wl='-Wl,'
9816      lt_prog_compiler_pic='-KPIC'
9817      lt_prog_compiler_static='-Bstatic'
9818      ;;
9819
9820    sysv4*MP*)
9821      if test -d /usr/nec; then
9822	lt_prog_compiler_pic='-Kconform_pic'
9823	lt_prog_compiler_static='-Bstatic'
9824      fi
9825      ;;
9826
9827    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9828      lt_prog_compiler_wl='-Wl,'
9829      lt_prog_compiler_pic='-KPIC'
9830      lt_prog_compiler_static='-Bstatic'
9831      ;;
9832
9833    unicos*)
9834      lt_prog_compiler_wl='-Wl,'
9835      lt_prog_compiler_can_build_shared=no
9836      ;;
9837
9838    uts4*)
9839      lt_prog_compiler_pic='-pic'
9840      lt_prog_compiler_static='-Bstatic'
9841      ;;
9842
9843    *)
9844      lt_prog_compiler_can_build_shared=no
9845      ;;
9846    esac
9847  fi
9848
9849case $host_os in
9850  # For platforms that do not support PIC, -DPIC is meaningless:
9851  *djgpp*)
9852    lt_prog_compiler_pic=
9853    ;;
9854  *)
9855    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9856    ;;
9857esac
9858
9859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9860$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9861if ${lt_cv_prog_compiler_pic+:} false; then :
9862  $as_echo_n "(cached) " >&6
9863else
9864  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9865fi
9866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9867$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9868lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9869
9870#
9871# Check to make sure the PIC flag actually works.
9872#
9873if test -n "$lt_prog_compiler_pic"; then
9874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9875$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9876if ${lt_cv_prog_compiler_pic_works+:} false; then :
9877  $as_echo_n "(cached) " >&6
9878else
9879  lt_cv_prog_compiler_pic_works=no
9880   ac_outfile=conftest.$ac_objext
9881   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9882   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9883   # Insert the option either (1) after the last *FLAGS variable, or
9884   # (2) before a word containing "conftest.", or (3) at the end.
9885   # Note that $ac_compile itself does not contain backslashes and begins
9886   # with a dollar sign (not a hyphen), so the echo should work correctly.
9887   # The option is referenced via a variable to avoid confusing sed.
9888   lt_compile=`echo "$ac_compile" | $SED \
9889   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9890   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9891   -e 's:$: $lt_compiler_flag:'`
9892   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9893   (eval "$lt_compile" 2>conftest.err)
9894   ac_status=$?
9895   cat conftest.err >&5
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   if (exit $ac_status) && test -s "$ac_outfile"; then
9898     # The compiler can only warn and ignore the option if not recognized
9899     # So say no if there are warnings other than the usual output.
9900     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9901     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9902     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9903       lt_cv_prog_compiler_pic_works=yes
9904     fi
9905   fi
9906   $RM conftest*
9907
9908fi
9909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9910$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9911
9912if test yes = "$lt_cv_prog_compiler_pic_works"; then
9913    case $lt_prog_compiler_pic in
9914     "" | " "*) ;;
9915     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9916     esac
9917else
9918    lt_prog_compiler_pic=
9919     lt_prog_compiler_can_build_shared=no
9920fi
9921
9922fi
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934#
9935# Check to make sure the static flag actually works.
9936#
9937wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9939$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9940if ${lt_cv_prog_compiler_static_works+:} false; then :
9941  $as_echo_n "(cached) " >&6
9942else
9943  lt_cv_prog_compiler_static_works=no
9944   save_LDFLAGS=$LDFLAGS
9945   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9946   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9947   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9948     # The linker can only warn and ignore the option if not recognized
9949     # So say no if there are warnings
9950     if test -s conftest.err; then
9951       # Append any errors to the config.log.
9952       cat conftest.err 1>&5
9953       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9954       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9955       if diff conftest.exp conftest.er2 >/dev/null; then
9956         lt_cv_prog_compiler_static_works=yes
9957       fi
9958     else
9959       lt_cv_prog_compiler_static_works=yes
9960     fi
9961   fi
9962   $RM -r conftest*
9963   LDFLAGS=$save_LDFLAGS
9964
9965fi
9966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9967$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9968
9969if test yes = "$lt_cv_prog_compiler_static_works"; then
9970    :
9971else
9972    lt_prog_compiler_static=
9973fi
9974
9975
9976
9977
9978
9979
9980
9981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9982$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9983if ${lt_cv_prog_compiler_c_o+:} false; then :
9984  $as_echo_n "(cached) " >&6
9985else
9986  lt_cv_prog_compiler_c_o=no
9987   $RM -r conftest 2>/dev/null
9988   mkdir conftest
9989   cd conftest
9990   mkdir out
9991   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9992
9993   lt_compiler_flag="-o out/conftest2.$ac_objext"
9994   # Insert the option either (1) after the last *FLAGS variable, or
9995   # (2) before a word containing "conftest.", or (3) at the end.
9996   # Note that $ac_compile itself does not contain backslashes and begins
9997   # with a dollar sign (not a hyphen), so the echo should work correctly.
9998   lt_compile=`echo "$ac_compile" | $SED \
9999   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10000   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10001   -e 's:$: $lt_compiler_flag:'`
10002   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10003   (eval "$lt_compile" 2>out/conftest.err)
10004   ac_status=$?
10005   cat out/conftest.err >&5
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10008   then
10009     # The compiler can only warn and ignore the option if not recognized
10010     # So say no if there are warnings
10011     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10012     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10013     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10014       lt_cv_prog_compiler_c_o=yes
10015     fi
10016   fi
10017   chmod u+w . 2>&5
10018   $RM conftest*
10019   # SGI C++ compiler will create directory out/ii_files/ for
10020   # template instantiation
10021   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10022   $RM out/* && rmdir out
10023   cd ..
10024   $RM -r conftest
10025   $RM conftest*
10026
10027fi
10028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10029$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10030
10031
10032
10033
10034
10035
10036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10037$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10038if ${lt_cv_prog_compiler_c_o+:} false; then :
10039  $as_echo_n "(cached) " >&6
10040else
10041  lt_cv_prog_compiler_c_o=no
10042   $RM -r conftest 2>/dev/null
10043   mkdir conftest
10044   cd conftest
10045   mkdir out
10046   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10047
10048   lt_compiler_flag="-o out/conftest2.$ac_objext"
10049   # Insert the option either (1) after the last *FLAGS variable, or
10050   # (2) before a word containing "conftest.", or (3) at the end.
10051   # Note that $ac_compile itself does not contain backslashes and begins
10052   # with a dollar sign (not a hyphen), so the echo should work correctly.
10053   lt_compile=`echo "$ac_compile" | $SED \
10054   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10055   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10056   -e 's:$: $lt_compiler_flag:'`
10057   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10058   (eval "$lt_compile" 2>out/conftest.err)
10059   ac_status=$?
10060   cat out/conftest.err >&5
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10063   then
10064     # The compiler can only warn and ignore the option if not recognized
10065     # So say no if there are warnings
10066     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10067     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10068     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10069       lt_cv_prog_compiler_c_o=yes
10070     fi
10071   fi
10072   chmod u+w . 2>&5
10073   $RM conftest*
10074   # SGI C++ compiler will create directory out/ii_files/ for
10075   # template instantiation
10076   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10077   $RM out/* && rmdir out
10078   cd ..
10079   $RM -r conftest
10080   $RM conftest*
10081
10082fi
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10084$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10085
10086
10087
10088
10089hard_links=nottested
10090if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10091  # do not overwrite the value of need_locks provided by the user
10092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10093$as_echo_n "checking if we can lock with hard links... " >&6; }
10094  hard_links=yes
10095  $RM conftest*
10096  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10097  touch conftest.a
10098  ln conftest.a conftest.b 2>&5 || hard_links=no
10099  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10101$as_echo "$hard_links" >&6; }
10102  if test no = "$hard_links"; then
10103    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10104$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10105    need_locks=warn
10106  fi
10107else
10108  need_locks=no
10109fi
10110
10111
10112
10113
10114
10115
10116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10117$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10118
10119  runpath_var=
10120  allow_undefined_flag=
10121  always_export_symbols=no
10122  archive_cmds=
10123  archive_expsym_cmds=
10124  compiler_needs_object=no
10125  enable_shared_with_static_runtimes=no
10126  export_dynamic_flag_spec=
10127  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10128  hardcode_automatic=no
10129  hardcode_direct=no
10130  hardcode_direct_absolute=no
10131  hardcode_libdir_flag_spec=
10132  hardcode_libdir_separator=
10133  hardcode_minus_L=no
10134  hardcode_shlibpath_var=unsupported
10135  inherit_rpath=no
10136  link_all_deplibs=unknown
10137  module_cmds=
10138  module_expsym_cmds=
10139  old_archive_from_new_cmds=
10140  old_archive_from_expsyms_cmds=
10141  thread_safe_flag_spec=
10142  whole_archive_flag_spec=
10143  # include_expsyms should be a list of space-separated symbols to be *always*
10144  # included in the symbol list
10145  include_expsyms=
10146  # exclude_expsyms can be an extended regexp of symbols to exclude
10147  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10148  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10149  # as well as any symbol that contains 'd'.
10150  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10151  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10152  # platforms (ab)use it in PIC code, but their linkers get confused if
10153  # the symbol is explicitly referenced.  Since portable code cannot
10154  # rely on this symbol name, it's probably fine to never include it in
10155  # preloaded symbol tables.
10156  # Exclude shared library initialization/finalization symbols.
10157  extract_expsyms_cmds=
10158
10159  case $host_os in
10160  cygwin* | mingw* | pw32* | cegcc*)
10161    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10162    # When not using gcc, we currently assume that we are using
10163    # Microsoft Visual C++.
10164    if test yes != "$GCC"; then
10165      with_gnu_ld=no
10166    fi
10167    ;;
10168  interix*)
10169    # we just hope/assume this is gcc and not c89 (= MSVC++)
10170    with_gnu_ld=yes
10171    ;;
10172  openbsd* | bitrig*)
10173    with_gnu_ld=no
10174    ;;
10175  esac
10176
10177  ld_shlibs=yes
10178
10179  # On some targets, GNU ld is compatible enough with the native linker
10180  # that we're better off using the native interface for both.
10181  lt_use_gnu_ld_interface=no
10182  if test yes = "$with_gnu_ld"; then
10183    case $host_os in
10184      aix*)
10185	# The AIX port of GNU ld has always aspired to compatibility
10186	# with the native linker.  However, as the warning in the GNU ld
10187	# block says, versions before 2.19.5* couldn't really create working
10188	# shared libraries, regardless of the interface used.
10189	case `$LD -v 2>&1` in
10190	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10191	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10192	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10193	  *)
10194	    lt_use_gnu_ld_interface=yes
10195	    ;;
10196	esac
10197	;;
10198      *)
10199	lt_use_gnu_ld_interface=yes
10200	;;
10201    esac
10202  fi
10203
10204  if test yes = "$lt_use_gnu_ld_interface"; then
10205    # If archive_cmds runs LD, not CC, wlarc should be empty
10206    wlarc='$wl'
10207
10208    # Set some defaults for GNU ld with shared library support. These
10209    # are reset later if shared libraries are not supported. Putting them
10210    # here allows them to be overridden if necessary.
10211    runpath_var=LD_RUN_PATH
10212    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10213    export_dynamic_flag_spec='$wl--export-dynamic'
10214    # ancient GNU ld didn't support --whole-archive et. al.
10215    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10216      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10217    else
10218      whole_archive_flag_spec=
10219    fi
10220    supports_anon_versioning=no
10221    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10222      *GNU\ gold*) supports_anon_versioning=yes ;;
10223      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10224      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10225      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10226      *\ 2.11.*) ;; # other 2.11 versions
10227      *) supports_anon_versioning=yes ;;
10228    esac
10229
10230    # See if GNU ld supports shared libraries.
10231    case $host_os in
10232    aix[3-9]*)
10233      # On AIX/PPC, the GNU linker is very broken
10234      if test ia64 != "$host_cpu"; then
10235	ld_shlibs=no
10236	cat <<_LT_EOF 1>&2
10237
10238*** Warning: the GNU linker, at least up to release 2.19, is reported
10239*** to be unable to reliably create shared libraries on AIX.
10240*** Therefore, libtool is disabling shared libraries support.  If you
10241*** really care for shared libraries, you may want to install binutils
10242*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10243*** You will then need to restart the configuration process.
10244
10245_LT_EOF
10246      fi
10247      ;;
10248
10249    amigaos*)
10250      case $host_cpu in
10251      powerpc)
10252            # see comment about AmigaOS4 .so support
10253            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10254            archive_expsym_cmds=''
10255        ;;
10256      m68k)
10257            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)'
10258            hardcode_libdir_flag_spec='-L$libdir'
10259            hardcode_minus_L=yes
10260        ;;
10261      esac
10262      ;;
10263
10264    beos*)
10265      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10266	allow_undefined_flag=unsupported
10267	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10268	# support --undefined.  This deserves some investigation.  FIXME
10269	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10270      else
10271	ld_shlibs=no
10272      fi
10273      ;;
10274
10275    cygwin* | mingw* | pw32* | cegcc*)
10276      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10277      # as there is no search path for DLLs.
10278      hardcode_libdir_flag_spec='-L$libdir'
10279      export_dynamic_flag_spec='$wl--export-all-symbols'
10280      allow_undefined_flag=unsupported
10281      always_export_symbols=no
10282      enable_shared_with_static_runtimes=yes
10283      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10284      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10285
10286      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10287        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10288	# If the export-symbols file already is a .def file, use it as
10289	# is; otherwise, prepend EXPORTS...
10290	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10291          cp $export_symbols $output_objdir/$soname.def;
10292        else
10293          echo EXPORTS > $output_objdir/$soname.def;
10294          cat $export_symbols >> $output_objdir/$soname.def;
10295        fi~
10296        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10297      else
10298	ld_shlibs=no
10299      fi
10300      ;;
10301
10302    haiku*)
10303      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10304      link_all_deplibs=yes
10305      ;;
10306
10307    os2*)
10308      hardcode_libdir_flag_spec='-L$libdir'
10309      hardcode_minus_L=yes
10310      allow_undefined_flag=unsupported
10311      shrext_cmds=.dll
10312      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10313	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10314	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10315	$ECHO EXPORTS >> $output_objdir/$libname.def~
10316	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10317	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10318	emximp -o $lib $output_objdir/$libname.def'
10319      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10320	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10321	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10322	$ECHO EXPORTS >> $output_objdir/$libname.def~
10323	prefix_cmds="$SED"~
10324	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10325	  prefix_cmds="$prefix_cmds -e 1d";
10326	fi~
10327	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10328	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10329	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10330	emximp -o $lib $output_objdir/$libname.def'
10331      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10332      enable_shared_with_static_runtimes=yes
10333      ;;
10334
10335    interix[3-9]*)
10336      hardcode_direct=no
10337      hardcode_shlibpath_var=no
10338      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10339      export_dynamic_flag_spec='$wl-E'
10340      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10341      # Instead, shared libraries are loaded at an image base (0x10000000 by
10342      # default) and relocated if they conflict, which is a slow very memory
10343      # consuming and fragmenting process.  To avoid this, we pick a random,
10344      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10345      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10346      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10347      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'
10348      ;;
10349
10350    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10351      tmp_diet=no
10352      if test linux-dietlibc = "$host_os"; then
10353	case $cc_basename in
10354	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10355	esac
10356      fi
10357      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10358	 && test no = "$tmp_diet"
10359      then
10360	tmp_addflag=' $pic_flag'
10361	tmp_sharedflag='-shared'
10362	case $cc_basename,$host_cpu in
10363        pgcc*)				# Portland Group C compiler
10364	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10365	  tmp_addflag=' $pic_flag'
10366	  ;;
10367	pgf77* | pgf90* | pgf95* | pgfortran*)
10368					# Portland Group f77 and f90 compilers
10369	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10370	  tmp_addflag=' $pic_flag -Mnomain' ;;
10371	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10372	  tmp_addflag=' -i_dynamic' ;;
10373	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10374	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10375	ifc* | ifort*)			# Intel Fortran compiler
10376	  tmp_addflag=' -nofor_main' ;;
10377	lf95*)				# Lahey Fortran 8.1
10378	  whole_archive_flag_spec=
10379	  tmp_sharedflag='--shared' ;;
10380        nagfor*)                        # NAGFOR 5.3
10381          tmp_sharedflag='-Wl,-shared' ;;
10382	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10383	  tmp_sharedflag='-qmkshrobj'
10384	  tmp_addflag= ;;
10385	nvcc*)	# Cuda Compiler Driver 2.2
10386	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10387	  compiler_needs_object=yes
10388	  ;;
10389	esac
10390	case `$CC -V 2>&1 | sed 5q` in
10391	*Sun\ C*)			# Sun C 5.9
10392	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10393	  compiler_needs_object=yes
10394	  tmp_sharedflag='-G' ;;
10395	*Sun\ F*)			# Sun Fortran 8.3
10396	  tmp_sharedflag='-G' ;;
10397	esac
10398	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10399
10400        if test yes = "$supports_anon_versioning"; then
10401          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10402            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10403            echo "local: *; };" >> $output_objdir/$libname.ver~
10404            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10405        fi
10406
10407	case $cc_basename in
10408	tcc*)
10409	  export_dynamic_flag_spec='-rdynamic'
10410	  ;;
10411	xlf* | bgf* | bgxlf* | mpixlf*)
10412	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10413	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10414	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10415	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10416	  if test yes = "$supports_anon_versioning"; then
10417	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10418              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10419              echo "local: *; };" >> $output_objdir/$libname.ver~
10420              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10421	  fi
10422	  ;;
10423	esac
10424      else
10425        ld_shlibs=no
10426      fi
10427      ;;
10428
10429    netbsd*)
10430      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10431	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10432	wlarc=
10433      else
10434	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10435	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10436      fi
10437      ;;
10438
10439    solaris*)
10440      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10441	ld_shlibs=no
10442	cat <<_LT_EOF 1>&2
10443
10444*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10445*** create shared libraries on Solaris systems.  Therefore, libtool
10446*** is disabling shared libraries support.  We urge you to upgrade GNU
10447*** binutils to release 2.9.1 or newer.  Another option is to modify
10448*** your PATH or compiler configuration so that the native linker is
10449*** used, and then restart.
10450
10451_LT_EOF
10452      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10453	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10454	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10455      else
10456	ld_shlibs=no
10457      fi
10458      ;;
10459
10460    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10461      case `$LD -v 2>&1` in
10462        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10463	ld_shlibs=no
10464	cat <<_LT_EOF 1>&2
10465
10466*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10467*** reliably create shared libraries on SCO systems.  Therefore, libtool
10468*** is disabling shared libraries support.  We urge you to upgrade GNU
10469*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10470*** your PATH or compiler configuration so that the native linker is
10471*** used, and then restart.
10472
10473_LT_EOF
10474	;;
10475	*)
10476	  # For security reasons, it is highly recommended that you always
10477	  # use absolute paths for naming shared libraries, and exclude the
10478	  # DT_RUNPATH tag from executables and libraries.  But doing so
10479	  # requires that you compile everything twice, which is a pain.
10480	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10481	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10482	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10483	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10484	  else
10485	    ld_shlibs=no
10486	  fi
10487	;;
10488      esac
10489      ;;
10490
10491    sunos4*)
10492      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10493      wlarc=
10494      hardcode_direct=yes
10495      hardcode_shlibpath_var=no
10496      ;;
10497
10498    *)
10499      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10500	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10501	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10502      else
10503	ld_shlibs=no
10504      fi
10505      ;;
10506    esac
10507
10508    if test no = "$ld_shlibs"; then
10509      runpath_var=
10510      hardcode_libdir_flag_spec=
10511      export_dynamic_flag_spec=
10512      whole_archive_flag_spec=
10513    fi
10514  else
10515    # PORTME fill in a description of your system's linker (not GNU ld)
10516    case $host_os in
10517    aix3*)
10518      allow_undefined_flag=unsupported
10519      always_export_symbols=yes
10520      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'
10521      # Note: this linker hardcodes the directories in LIBPATH if there
10522      # are no directories specified by -L.
10523      hardcode_minus_L=yes
10524      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10525	# Neither direct hardcoding nor static linking is supported with a
10526	# broken collect2.
10527	hardcode_direct=unsupported
10528      fi
10529      ;;
10530
10531    aix[4-9]*)
10532      if test ia64 = "$host_cpu"; then
10533	# On IA64, the linker does run time linking by default, so we don't
10534	# have to do anything special.
10535	aix_use_runtimelinking=no
10536	exp_sym_flag='-Bexport'
10537	no_entry_flag=
10538      else
10539	# If we're using GNU nm, then we don't want the "-C" option.
10540	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10541	# Without the "-l" option, or with the "-B" option, AIX nm treats
10542	# weak defined symbols like other global defined symbols, whereas
10543	# GNU nm marks them as "W".
10544	# While the 'weak' keyword is ignored in the Export File, we need
10545	# it in the Import File for the 'aix-soname' feature, so we have
10546	# to replace the "-B" option with "-P" for AIX nm.
10547	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10548	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10549	else
10550	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10551	fi
10552	aix_use_runtimelinking=no
10553
10554	# Test if we are trying to use run time linking or normal
10555	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10556	# have runtime linking enabled, and use it for executables.
10557	# For shared libraries, we enable/disable runtime linking
10558	# depending on the kind of the shared library created -
10559	# when "with_aix_soname,aix_use_runtimelinking" is:
10560	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10561	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10562	#            lib.a           static archive
10563	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10564	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10565	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10566	#            lib.a(lib.so.V) shared, rtl:no
10567	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10568	#            lib.a           static archive
10569	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10570	  for ld_flag in $LDFLAGS; do
10571	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10572	    aix_use_runtimelinking=yes
10573	    break
10574	  fi
10575	  done
10576	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10577	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10578	    # so we don't have lib.a shared libs to link our executables.
10579	    # We have to force runtime linking in this case.
10580	    aix_use_runtimelinking=yes
10581	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10582	  fi
10583	  ;;
10584	esac
10585
10586	exp_sym_flag='-bexport'
10587	no_entry_flag='-bnoentry'
10588      fi
10589
10590      # When large executables or shared objects are built, AIX ld can
10591      # have problems creating the table of contents.  If linking a library
10592      # or program results in "error TOC overflow" add -mminimal-toc to
10593      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10594      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10595
10596      archive_cmds=''
10597      hardcode_direct=yes
10598      hardcode_direct_absolute=yes
10599      hardcode_libdir_separator=':'
10600      link_all_deplibs=yes
10601      file_list_spec='$wl-f,'
10602      case $with_aix_soname,$aix_use_runtimelinking in
10603      aix,*) ;; # traditional, no import file
10604      svr4,* | *,yes) # use import file
10605	# The Import File defines what to hardcode.
10606	hardcode_direct=no
10607	hardcode_direct_absolute=no
10608	;;
10609      esac
10610
10611      if test yes = "$GCC"; then
10612	case $host_os in aix4.[012]|aix4.[012].*)
10613	# We only want to do this on AIX 4.2 and lower, the check
10614	# below for broken collect2 doesn't work under 4.3+
10615	  collect2name=`$CC -print-prog-name=collect2`
10616	  if test -f "$collect2name" &&
10617	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10618	  then
10619	  # We have reworked collect2
10620	  :
10621	  else
10622	  # We have old collect2
10623	  hardcode_direct=unsupported
10624	  # It fails to find uninstalled libraries when the uninstalled
10625	  # path is not listed in the libpath.  Setting hardcode_minus_L
10626	  # to unsupported forces relinking
10627	  hardcode_minus_L=yes
10628	  hardcode_libdir_flag_spec='-L$libdir'
10629	  hardcode_libdir_separator=
10630	  fi
10631	  ;;
10632	esac
10633	shared_flag='-shared'
10634	if test yes = "$aix_use_runtimelinking"; then
10635	  shared_flag="$shared_flag "'$wl-G'
10636	fi
10637	# Need to ensure runtime linking is disabled for the traditional
10638	# shared library, or the linker may eventually find shared libraries
10639	# /with/ Import File - we do not want to mix them.
10640	shared_flag_aix='-shared'
10641	shared_flag_svr4='-shared $wl-G'
10642      else
10643	# not using gcc
10644	if test ia64 = "$host_cpu"; then
10645	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10646	# chokes on -Wl,-G. The following line is correct:
10647	  shared_flag='-G'
10648	else
10649	  if test yes = "$aix_use_runtimelinking"; then
10650	    shared_flag='$wl-G'
10651	  else
10652	    shared_flag='$wl-bM:SRE'
10653	  fi
10654	  shared_flag_aix='$wl-bM:SRE'
10655	  shared_flag_svr4='$wl-G'
10656	fi
10657      fi
10658
10659      export_dynamic_flag_spec='$wl-bexpall'
10660      # It seems that -bexpall does not export symbols beginning with
10661      # underscore (_), so it is better to generate a list of symbols to export.
10662      always_export_symbols=yes
10663      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10664	# Warning - without using the other runtime loading flags (-brtl),
10665	# -berok will link without error, but may produce a broken library.
10666	allow_undefined_flag='-berok'
10667        # Determine the default libpath from the value encoded in an
10668        # empty executable.
10669        if test set = "${lt_cv_aix_libpath+set}"; then
10670  aix_libpath=$lt_cv_aix_libpath
10671else
10672  if ${lt_cv_aix_libpath_+:} false; then :
10673  $as_echo_n "(cached) " >&6
10674else
10675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676/* end confdefs.h.  */
10677
10678int
10679main ()
10680{
10681
10682  ;
10683  return 0;
10684}
10685_ACEOF
10686if ac_fn_c_try_link "$LINENO"; then :
10687
10688  lt_aix_libpath_sed='
10689      /Import File Strings/,/^$/ {
10690	  /^0/ {
10691	      s/^0  *\([^ ]*\) *$/\1/
10692	      p
10693	  }
10694      }'
10695  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10696  # Check for a 64-bit object if we didn't find anything.
10697  if test -z "$lt_cv_aix_libpath_"; then
10698    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10699  fi
10700fi
10701rm -f core conftest.err conftest.$ac_objext \
10702    conftest$ac_exeext conftest.$ac_ext
10703  if test -z "$lt_cv_aix_libpath_"; then
10704    lt_cv_aix_libpath_=/usr/lib:/lib
10705  fi
10706
10707fi
10708
10709  aix_libpath=$lt_cv_aix_libpath_
10710fi
10711
10712        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10713        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10714      else
10715	if test ia64 = "$host_cpu"; then
10716	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10717	  allow_undefined_flag="-z nodefs"
10718	  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"
10719	else
10720	 # Determine the default libpath from the value encoded in an
10721	 # empty executable.
10722	 if test set = "${lt_cv_aix_libpath+set}"; then
10723  aix_libpath=$lt_cv_aix_libpath
10724else
10725  if ${lt_cv_aix_libpath_+:} false; then :
10726  $as_echo_n "(cached) " >&6
10727else
10728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729/* end confdefs.h.  */
10730
10731int
10732main ()
10733{
10734
10735  ;
10736  return 0;
10737}
10738_ACEOF
10739if ac_fn_c_try_link "$LINENO"; then :
10740
10741  lt_aix_libpath_sed='
10742      /Import File Strings/,/^$/ {
10743	  /^0/ {
10744	      s/^0  *\([^ ]*\) *$/\1/
10745	      p
10746	  }
10747      }'
10748  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10749  # Check for a 64-bit object if we didn't find anything.
10750  if test -z "$lt_cv_aix_libpath_"; then
10751    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10752  fi
10753fi
10754rm -f core conftest.err conftest.$ac_objext \
10755    conftest$ac_exeext conftest.$ac_ext
10756  if test -z "$lt_cv_aix_libpath_"; then
10757    lt_cv_aix_libpath_=/usr/lib:/lib
10758  fi
10759
10760fi
10761
10762  aix_libpath=$lt_cv_aix_libpath_
10763fi
10764
10765	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10766	  # Warning - without using the other run time loading flags,
10767	  # -berok will link without error, but may produce a broken library.
10768	  no_undefined_flag=' $wl-bernotok'
10769	  allow_undefined_flag=' $wl-berok'
10770	  if test yes = "$with_gnu_ld"; then
10771	    # We only use this code for GNU lds that support --whole-archive.
10772	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10773	  else
10774	    # Exported symbols can be pulled into shared objects from archives
10775	    whole_archive_flag_spec='$convenience'
10776	  fi
10777	  archive_cmds_need_lc=yes
10778	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10779	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10780	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10781	  if test svr4 != "$with_aix_soname"; then
10782	    # This is similar to how AIX traditionally builds its shared libraries.
10783	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10784	  fi
10785	  if test aix != "$with_aix_soname"; then
10786	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10787	  else
10788	    # used by -dlpreopen to get the symbols
10789	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10790	  fi
10791	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10792	fi
10793      fi
10794      ;;
10795
10796    amigaos*)
10797      case $host_cpu in
10798      powerpc)
10799            # see comment about AmigaOS4 .so support
10800            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10801            archive_expsym_cmds=''
10802        ;;
10803      m68k)
10804            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)'
10805            hardcode_libdir_flag_spec='-L$libdir'
10806            hardcode_minus_L=yes
10807        ;;
10808      esac
10809      ;;
10810
10811    bsdi[45]*)
10812      export_dynamic_flag_spec=-rdynamic
10813      ;;
10814
10815    cygwin* | mingw* | pw32* | cegcc*)
10816      # When not using gcc, we currently assume that we are using
10817      # Microsoft Visual C++.
10818      # hardcode_libdir_flag_spec is actually meaningless, as there is
10819      # no search path for DLLs.
10820      case $cc_basename in
10821      cl*)
10822	# Native MSVC
10823	hardcode_libdir_flag_spec=' '
10824	allow_undefined_flag=unsupported
10825	always_export_symbols=yes
10826	file_list_spec='@'
10827	# Tell ltmain to make .lib files, not .a files.
10828	libext=lib
10829	# Tell ltmain to make .dll files, not .so files.
10830	shrext_cmds=.dll
10831	# FIXME: Setting linknames here is a bad hack.
10832	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10833	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10834            cp "$export_symbols" "$output_objdir/$soname.def";
10835            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10836          else
10837            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10838          fi~
10839          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10840          linknames='
10841	# The linker will not automatically build a static lib if we build a DLL.
10842	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10843	enable_shared_with_static_runtimes=yes
10844	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10845	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10846	# Don't use ranlib
10847	old_postinstall_cmds='chmod 644 $oldlib'
10848	postlink_cmds='lt_outputfile="@OUTPUT@"~
10849          lt_tool_outputfile="@TOOL_OUTPUT@"~
10850          case $lt_outputfile in
10851            *.exe|*.EXE) ;;
10852            *)
10853              lt_outputfile=$lt_outputfile.exe
10854              lt_tool_outputfile=$lt_tool_outputfile.exe
10855              ;;
10856          esac~
10857          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10858            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10859            $RM "$lt_outputfile.manifest";
10860          fi'
10861	;;
10862      *)
10863	# Assume MSVC wrapper
10864	hardcode_libdir_flag_spec=' '
10865	allow_undefined_flag=unsupported
10866	# Tell ltmain to make .lib files, not .a files.
10867	libext=lib
10868	# Tell ltmain to make .dll files, not .so files.
10869	shrext_cmds=.dll
10870	# FIXME: Setting linknames here is a bad hack.
10871	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10872	# The linker will automatically build a .lib file if we build a DLL.
10873	old_archive_from_new_cmds='true'
10874	# FIXME: Should let the user specify the lib program.
10875	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10876	enable_shared_with_static_runtimes=yes
10877	;;
10878      esac
10879      ;;
10880
10881    darwin* | rhapsody*)
10882
10883
10884  archive_cmds_need_lc=no
10885  hardcode_direct=no
10886  hardcode_automatic=yes
10887  hardcode_shlibpath_var=unsupported
10888  if test yes = "$lt_cv_ld_force_load"; then
10889    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10890
10891  else
10892    whole_archive_flag_spec=''
10893  fi
10894  link_all_deplibs=yes
10895  allow_undefined_flag=$_lt_dar_allow_undefined
10896  case $cc_basename in
10897     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10898     *) _lt_dar_can_shared=$GCC ;;
10899  esac
10900  if test yes = "$_lt_dar_can_shared"; then
10901    output_verbose_link_cmd=func_echo_all
10902    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10903    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10904    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"
10905    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"
10906
10907  else
10908  ld_shlibs=no
10909  fi
10910
10911      ;;
10912
10913    dgux*)
10914      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10915      hardcode_libdir_flag_spec='-L$libdir'
10916      hardcode_shlibpath_var=no
10917      ;;
10918
10919    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10920    # support.  Future versions do this automatically, but an explicit c++rt0.o
10921    # does not break anything, and helps significantly (at the cost of a little
10922    # extra space).
10923    freebsd2.2*)
10924      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10925      hardcode_libdir_flag_spec='-R$libdir'
10926      hardcode_direct=yes
10927      hardcode_shlibpath_var=no
10928      ;;
10929
10930    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10931    freebsd2.*)
10932      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10933      hardcode_direct=yes
10934      hardcode_minus_L=yes
10935      hardcode_shlibpath_var=no
10936      ;;
10937
10938    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10939    freebsd* | dragonfly*)
10940      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10941      hardcode_libdir_flag_spec='-R$libdir'
10942      hardcode_direct=yes
10943      hardcode_shlibpath_var=no
10944      ;;
10945
10946    hpux9*)
10947      if test yes = "$GCC"; then
10948	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10949      else
10950	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10951      fi
10952      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10953      hardcode_libdir_separator=:
10954      hardcode_direct=yes
10955
10956      # hardcode_minus_L: Not really in the search PATH,
10957      # but as the default location of the library.
10958      hardcode_minus_L=yes
10959      export_dynamic_flag_spec='$wl-E'
10960      ;;
10961
10962    hpux10*)
10963      if test yes,no = "$GCC,$with_gnu_ld"; then
10964	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10965      else
10966	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10967      fi
10968      if test no = "$with_gnu_ld"; then
10969	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10970	hardcode_libdir_separator=:
10971	hardcode_direct=yes
10972	hardcode_direct_absolute=yes
10973	export_dynamic_flag_spec='$wl-E'
10974	# hardcode_minus_L: Not really in the search PATH,
10975	# but as the default location of the library.
10976	hardcode_minus_L=yes
10977      fi
10978      ;;
10979
10980    hpux11*)
10981      if test yes,no = "$GCC,$with_gnu_ld"; then
10982	case $host_cpu in
10983	hppa*64*)
10984	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10985	  ;;
10986	ia64*)
10987	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10988	  ;;
10989	*)
10990	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10991	  ;;
10992	esac
10993      else
10994	case $host_cpu in
10995	hppa*64*)
10996	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10997	  ;;
10998	ia64*)
10999	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11000	  ;;
11001	*)
11002
11003	  # Older versions of the 11.00 compiler do not understand -b yet
11004	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11005	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11006$as_echo_n "checking if $CC understands -b... " >&6; }
11007if ${lt_cv_prog_compiler__b+:} false; then :
11008  $as_echo_n "(cached) " >&6
11009else
11010  lt_cv_prog_compiler__b=no
11011   save_LDFLAGS=$LDFLAGS
11012   LDFLAGS="$LDFLAGS -b"
11013   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11014   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11015     # The linker can only warn and ignore the option if not recognized
11016     # So say no if there are warnings
11017     if test -s conftest.err; then
11018       # Append any errors to the config.log.
11019       cat conftest.err 1>&5
11020       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11021       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11022       if diff conftest.exp conftest.er2 >/dev/null; then
11023         lt_cv_prog_compiler__b=yes
11024       fi
11025     else
11026       lt_cv_prog_compiler__b=yes
11027     fi
11028   fi
11029   $RM -r conftest*
11030   LDFLAGS=$save_LDFLAGS
11031
11032fi
11033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11034$as_echo "$lt_cv_prog_compiler__b" >&6; }
11035
11036if test yes = "$lt_cv_prog_compiler__b"; then
11037    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11038else
11039    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11040fi
11041
11042	  ;;
11043	esac
11044      fi
11045      if test no = "$with_gnu_ld"; then
11046	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11047	hardcode_libdir_separator=:
11048
11049	case $host_cpu in
11050	hppa*64*|ia64*)
11051	  hardcode_direct=no
11052	  hardcode_shlibpath_var=no
11053	  ;;
11054	*)
11055	  hardcode_direct=yes
11056	  hardcode_direct_absolute=yes
11057	  export_dynamic_flag_spec='$wl-E'
11058
11059	  # hardcode_minus_L: Not really in the search PATH,
11060	  # but as the default location of the library.
11061	  hardcode_minus_L=yes
11062	  ;;
11063	esac
11064      fi
11065      ;;
11066
11067    irix5* | irix6* | nonstopux*)
11068      if test yes = "$GCC"; then
11069	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11070	# Try to use the -exported_symbol ld option, if it does not
11071	# work, assume that -exports_file does not work either and
11072	# implicitly export all symbols.
11073	# This should be the same for all languages, so no per-tag cache variable.
11074	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11075$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11076if ${lt_cv_irix_exported_symbol+:} false; then :
11077  $as_echo_n "(cached) " >&6
11078else
11079  save_LDFLAGS=$LDFLAGS
11080	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11081	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082/* end confdefs.h.  */
11083int foo (void) { return 0; }
11084_ACEOF
11085if ac_fn_c_try_link "$LINENO"; then :
11086  lt_cv_irix_exported_symbol=yes
11087else
11088  lt_cv_irix_exported_symbol=no
11089fi
11090rm -f core conftest.err conftest.$ac_objext \
11091    conftest$ac_exeext conftest.$ac_ext
11092           LDFLAGS=$save_LDFLAGS
11093fi
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11095$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11096	if test yes = "$lt_cv_irix_exported_symbol"; then
11097          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11098	fi
11099      else
11100	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11101	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11102      fi
11103      archive_cmds_need_lc='no'
11104      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11105      hardcode_libdir_separator=:
11106      inherit_rpath=yes
11107      link_all_deplibs=yes
11108      ;;
11109
11110    linux*)
11111      case $cc_basename in
11112      tcc*)
11113	# Fabrice Bellard et al's Tiny C Compiler
11114	ld_shlibs=yes
11115	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11116	;;
11117      esac
11118      ;;
11119
11120    netbsd*)
11121      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11122	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11123      else
11124	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11125      fi
11126      hardcode_libdir_flag_spec='-R$libdir'
11127      hardcode_direct=yes
11128      hardcode_shlibpath_var=no
11129      ;;
11130
11131    newsos6)
11132      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11133      hardcode_direct=yes
11134      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11135      hardcode_libdir_separator=:
11136      hardcode_shlibpath_var=no
11137      ;;
11138
11139    *nto* | *qnx*)
11140      ;;
11141
11142    openbsd* | bitrig*)
11143      if test -f /usr/libexec/ld.so; then
11144	hardcode_direct=yes
11145	hardcode_shlibpath_var=no
11146	hardcode_direct_absolute=yes
11147	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11148	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11149	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11150	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11151	  export_dynamic_flag_spec='$wl-E'
11152	else
11153	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11154	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11155	fi
11156      else
11157	ld_shlibs=no
11158      fi
11159      ;;
11160
11161    os2*)
11162      hardcode_libdir_flag_spec='-L$libdir'
11163      hardcode_minus_L=yes
11164      allow_undefined_flag=unsupported
11165      shrext_cmds=.dll
11166      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11167	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11168	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11169	$ECHO EXPORTS >> $output_objdir/$libname.def~
11170	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11171	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11172	emximp -o $lib $output_objdir/$libname.def'
11173      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11174	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11175	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11176	$ECHO EXPORTS >> $output_objdir/$libname.def~
11177	prefix_cmds="$SED"~
11178	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11179	  prefix_cmds="$prefix_cmds -e 1d";
11180	fi~
11181	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11182	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11183	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11184	emximp -o $lib $output_objdir/$libname.def'
11185      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11186      enable_shared_with_static_runtimes=yes
11187      ;;
11188
11189    osf3*)
11190      if test yes = "$GCC"; then
11191	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11192	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11193      else
11194	allow_undefined_flag=' -expect_unresolved \*'
11195	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11196      fi
11197      archive_cmds_need_lc='no'
11198      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11199      hardcode_libdir_separator=:
11200      ;;
11201
11202    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11203      if test yes = "$GCC"; then
11204	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11205	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11206	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11207      else
11208	allow_undefined_flag=' -expect_unresolved \*'
11209	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11210	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~
11211          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11212
11213	# Both c and cxx compiler support -rpath directly
11214	hardcode_libdir_flag_spec='-rpath $libdir'
11215      fi
11216      archive_cmds_need_lc='no'
11217      hardcode_libdir_separator=:
11218      ;;
11219
11220    solaris*)
11221      no_undefined_flag=' -z defs'
11222      if test yes = "$GCC"; then
11223	wlarc='$wl'
11224	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11225	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11226          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11227      else
11228	case `$CC -V 2>&1` in
11229	*"Compilers 5.0"*)
11230	  wlarc=''
11231	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11232	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11233            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11234	  ;;
11235	*)
11236	  wlarc='$wl'
11237	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11238	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11239            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11240	  ;;
11241	esac
11242      fi
11243      hardcode_libdir_flag_spec='-R$libdir'
11244      hardcode_shlibpath_var=no
11245      case $host_os in
11246      solaris2.[0-5] | solaris2.[0-5].*) ;;
11247      *)
11248	# The compiler driver will combine and reorder linker options,
11249	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11250	# but is careful enough not to reorder.
11251	# Supported since Solaris 2.6 (maybe 2.5.1?)
11252	if test yes = "$GCC"; then
11253	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11254	else
11255	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11256	fi
11257	;;
11258      esac
11259      link_all_deplibs=yes
11260      ;;
11261
11262    sunos4*)
11263      if test sequent = "$host_vendor"; then
11264	# Use $CC to link under sequent, because it throws in some extra .o
11265	# files that make .init and .fini sections work.
11266	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11267      else
11268	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11269      fi
11270      hardcode_libdir_flag_spec='-L$libdir'
11271      hardcode_direct=yes
11272      hardcode_minus_L=yes
11273      hardcode_shlibpath_var=no
11274      ;;
11275
11276    sysv4)
11277      case $host_vendor in
11278	sni)
11279	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11280	  hardcode_direct=yes # is this really true???
11281	;;
11282	siemens)
11283	  ## LD is ld it makes a PLAMLIB
11284	  ## CC just makes a GrossModule.
11285	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11286	  reload_cmds='$CC -r -o $output$reload_objs'
11287	  hardcode_direct=no
11288        ;;
11289	motorola)
11290	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11291	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11292	;;
11293      esac
11294      runpath_var='LD_RUN_PATH'
11295      hardcode_shlibpath_var=no
11296      ;;
11297
11298    sysv4.3*)
11299      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11300      hardcode_shlibpath_var=no
11301      export_dynamic_flag_spec='-Bexport'
11302      ;;
11303
11304    sysv4*MP*)
11305      if test -d /usr/nec; then
11306	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11307	hardcode_shlibpath_var=no
11308	runpath_var=LD_RUN_PATH
11309	hardcode_runpath_var=yes
11310	ld_shlibs=yes
11311      fi
11312      ;;
11313
11314    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11315      no_undefined_flag='$wl-z,text'
11316      archive_cmds_need_lc=no
11317      hardcode_shlibpath_var=no
11318      runpath_var='LD_RUN_PATH'
11319
11320      if test yes = "$GCC"; then
11321	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11322	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11323      else
11324	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11325	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11326      fi
11327      ;;
11328
11329    sysv5* | sco3.2v5* | sco5v6*)
11330      # Note: We CANNOT use -z defs as we might desire, because we do not
11331      # link with -lc, and that would cause any symbols used from libc to
11332      # always be unresolved, which means just about no library would
11333      # ever link correctly.  If we're not using GNU ld we use -z text
11334      # though, which does catch some bad symbols but isn't as heavy-handed
11335      # as -z defs.
11336      no_undefined_flag='$wl-z,text'
11337      allow_undefined_flag='$wl-z,nodefs'
11338      archive_cmds_need_lc=no
11339      hardcode_shlibpath_var=no
11340      hardcode_libdir_flag_spec='$wl-R,$libdir'
11341      hardcode_libdir_separator=':'
11342      link_all_deplibs=yes
11343      export_dynamic_flag_spec='$wl-Bexport'
11344      runpath_var='LD_RUN_PATH'
11345
11346      if test yes = "$GCC"; then
11347	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11348	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11349      else
11350	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11351	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11352      fi
11353      ;;
11354
11355    uts4*)
11356      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11357      hardcode_libdir_flag_spec='-L$libdir'
11358      hardcode_shlibpath_var=no
11359      ;;
11360
11361    *)
11362      ld_shlibs=no
11363      ;;
11364    esac
11365
11366    if test sni = "$host_vendor"; then
11367      case $host in
11368      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11369	export_dynamic_flag_spec='$wl-Blargedynsym'
11370	;;
11371      esac
11372    fi
11373  fi
11374
11375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11376$as_echo "$ld_shlibs" >&6; }
11377test no = "$ld_shlibs" && can_build_shared=no
11378
11379with_gnu_ld=$with_gnu_ld
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395#
11396# Do we need to explicitly link libc?
11397#
11398case "x$archive_cmds_need_lc" in
11399x|xyes)
11400  # Assume -lc should be added
11401  archive_cmds_need_lc=yes
11402
11403  if test yes,yes = "$GCC,$enable_shared"; then
11404    case $archive_cmds in
11405    *'~'*)
11406      # FIXME: we may have to deal with multi-command sequences.
11407      ;;
11408    '$CC '*)
11409      # Test whether the compiler implicitly links with -lc since on some
11410      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11411      # to ld, don't add -lc before -lgcc.
11412      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11413$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11414if ${lt_cv_archive_cmds_need_lc+:} false; then :
11415  $as_echo_n "(cached) " >&6
11416else
11417  $RM conftest*
11418	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11419
11420	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11421  (eval $ac_compile) 2>&5
11422  ac_status=$?
11423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11424  test $ac_status = 0; } 2>conftest.err; then
11425	  soname=conftest
11426	  lib=conftest
11427	  libobjs=conftest.$ac_objext
11428	  deplibs=
11429	  wl=$lt_prog_compiler_wl
11430	  pic_flag=$lt_prog_compiler_pic
11431	  compiler_flags=-v
11432	  linker_flags=-v
11433	  verstring=
11434	  output_objdir=.
11435	  libname=conftest
11436	  lt_save_allow_undefined_flag=$allow_undefined_flag
11437	  allow_undefined_flag=
11438	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11439  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11440  ac_status=$?
11441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11442  test $ac_status = 0; }
11443	  then
11444	    lt_cv_archive_cmds_need_lc=no
11445	  else
11446	    lt_cv_archive_cmds_need_lc=yes
11447	  fi
11448	  allow_undefined_flag=$lt_save_allow_undefined_flag
11449	else
11450	  cat conftest.err 1>&5
11451	fi
11452	$RM conftest*
11453
11454fi
11455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11456$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11457      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11458      ;;
11459    esac
11460  fi
11461  ;;
11462esac
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11616$as_echo_n "checking dynamic linker characteristics... " >&6; }
11617
11618if test yes = "$GCC"; then
11619  case $host_os in
11620    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11621    *) lt_awk_arg='/^libraries:/' ;;
11622  esac
11623  case $host_os in
11624    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11625    *) lt_sed_strip_eq='s|=/|/|g' ;;
11626  esac
11627  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11628  case $lt_search_path_spec in
11629  *\;*)
11630    # if the path contains ";" then we assume it to be the separator
11631    # otherwise default to the standard path separator (i.e. ":") - it is
11632    # assumed that no part of a normal pathname contains ";" but that should
11633    # okay in the real world where ";" in dirpaths is itself problematic.
11634    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11635    ;;
11636  *)
11637    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11638    ;;
11639  esac
11640  # Ok, now we have the path, separated by spaces, we can step through it
11641  # and add multilib dir if necessary...
11642  lt_tmp_lt_search_path_spec=
11643  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11644  # ...but if some path component already ends with the multilib dir we assume
11645  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11646  case "$lt_multi_os_dir; $lt_search_path_spec " in
11647  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11648    lt_multi_os_dir=
11649    ;;
11650  esac
11651  for lt_sys_path in $lt_search_path_spec; do
11652    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11653      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11654    elif test -n "$lt_multi_os_dir"; then
11655      test -d "$lt_sys_path" && \
11656	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11657    fi
11658  done
11659  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11660BEGIN {RS = " "; FS = "/|\n";} {
11661  lt_foo = "";
11662  lt_count = 0;
11663  for (lt_i = NF; lt_i > 0; lt_i--) {
11664    if ($lt_i != "" && $lt_i != ".") {
11665      if ($lt_i == "..") {
11666        lt_count++;
11667      } else {
11668        if (lt_count == 0) {
11669          lt_foo = "/" $lt_i lt_foo;
11670        } else {
11671          lt_count--;
11672        }
11673      }
11674    }
11675  }
11676  if (lt_foo != "") { lt_freq[lt_foo]++; }
11677  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11678}'`
11679  # AWK program above erroneously prepends '/' to C:/dos/paths
11680  # for these hosts.
11681  case $host_os in
11682    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11683      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11684  esac
11685  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11686else
11687  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11688fi
11689library_names_spec=
11690libname_spec='lib$name'
11691soname_spec=
11692shrext_cmds=.so
11693postinstall_cmds=
11694postuninstall_cmds=
11695finish_cmds=
11696finish_eval=
11697shlibpath_var=
11698shlibpath_overrides_runpath=unknown
11699version_type=none
11700dynamic_linker="$host_os ld.so"
11701sys_lib_dlsearch_path_spec="/lib /usr/lib"
11702need_lib_prefix=unknown
11703hardcode_into_libs=no
11704
11705# when you set need_version to no, make sure it does not cause -set_version
11706# flags to be left without arguments
11707need_version=unknown
11708
11709
11710
11711case $host_os in
11712aix3*)
11713  version_type=linux # correct to gnu/linux during the next big refactor
11714  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11715  shlibpath_var=LIBPATH
11716
11717  # AIX 3 has no versioning support, so we append a major version to the name.
11718  soname_spec='$libname$release$shared_ext$major'
11719  ;;
11720
11721aix[4-9]*)
11722  version_type=linux # correct to gnu/linux during the next big refactor
11723  need_lib_prefix=no
11724  need_version=no
11725  hardcode_into_libs=yes
11726  if test ia64 = "$host_cpu"; then
11727    # AIX 5 supports IA64
11728    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11729    shlibpath_var=LD_LIBRARY_PATH
11730  else
11731    # With GCC up to 2.95.x, collect2 would create an import file
11732    # for dependence libraries.  The import file would start with
11733    # the line '#! .'.  This would cause the generated library to
11734    # depend on '.', always an invalid library.  This was fixed in
11735    # development snapshots of GCC prior to 3.0.
11736    case $host_os in
11737      aix4 | aix4.[01] | aix4.[01].*)
11738      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11739	   echo ' yes '
11740	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11741	:
11742      else
11743	can_build_shared=no
11744      fi
11745      ;;
11746    esac
11747    # Using Import Files as archive members, it is possible to support
11748    # filename-based versioning of shared library archives on AIX. While
11749    # this would work for both with and without runtime linking, it will
11750    # prevent static linking of such archives. So we do filename-based
11751    # shared library versioning with .so extension only, which is used
11752    # when both runtime linking and shared linking is enabled.
11753    # Unfortunately, runtime linking may impact performance, so we do
11754    # not want this to be the default eventually. Also, we use the
11755    # versioned .so libs for executables only if there is the -brtl
11756    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11757    # To allow for filename-based versioning support, we need to create
11758    # libNAME.so.V as an archive file, containing:
11759    # *) an Import File, referring to the versioned filename of the
11760    #    archive as well as the shared archive member, telling the
11761    #    bitwidth (32 or 64) of that shared object, and providing the
11762    #    list of exported symbols of that shared object, eventually
11763    #    decorated with the 'weak' keyword
11764    # *) the shared object with the F_LOADONLY flag set, to really avoid
11765    #    it being seen by the linker.
11766    # At run time we better use the real file rather than another symlink,
11767    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11768
11769    case $with_aix_soname,$aix_use_runtimelinking in
11770    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11771    # soname into executable. Probably we can add versioning support to
11772    # collect2, so additional links can be useful in future.
11773    aix,yes) # traditional libtool
11774      dynamic_linker='AIX unversionable lib.so'
11775      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11776      # instead of lib<name>.a to let people know that these are not
11777      # typical AIX shared libraries.
11778      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11779      ;;
11780    aix,no) # traditional AIX only
11781      dynamic_linker='AIX lib.a(lib.so.V)'
11782      # We preserve .a as extension for shared libraries through AIX4.2
11783      # and later when we are not doing run time linking.
11784      library_names_spec='$libname$release.a $libname.a'
11785      soname_spec='$libname$release$shared_ext$major'
11786      ;;
11787    svr4,*) # full svr4 only
11788      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11789      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11790      # We do not specify a path in Import Files, so LIBPATH fires.
11791      shlibpath_overrides_runpath=yes
11792      ;;
11793    *,yes) # both, prefer svr4
11794      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11795      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11796      # unpreferred sharedlib libNAME.a needs extra handling
11797      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11798      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11799      # We do not specify a path in Import Files, so LIBPATH fires.
11800      shlibpath_overrides_runpath=yes
11801      ;;
11802    *,no) # both, prefer aix
11803      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11804      library_names_spec='$libname$release.a $libname.a'
11805      soname_spec='$libname$release$shared_ext$major'
11806      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11807      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11808      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11809      ;;
11810    esac
11811    shlibpath_var=LIBPATH
11812  fi
11813  ;;
11814
11815amigaos*)
11816  case $host_cpu in
11817  powerpc)
11818    # Since July 2007 AmigaOS4 officially supports .so libraries.
11819    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11820    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11821    ;;
11822  m68k)
11823    library_names_spec='$libname.ixlibrary $libname.a'
11824    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11825    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11826    ;;
11827  esac
11828  ;;
11829
11830beos*)
11831  library_names_spec='$libname$shared_ext'
11832  dynamic_linker="$host_os ld.so"
11833  shlibpath_var=LIBRARY_PATH
11834  ;;
11835
11836bsdi[45]*)
11837  version_type=linux # correct to gnu/linux during the next big refactor
11838  need_version=no
11839  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11840  soname_spec='$libname$release$shared_ext$major'
11841  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11842  shlibpath_var=LD_LIBRARY_PATH
11843  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11844  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11845  # the default ld.so.conf also contains /usr/contrib/lib and
11846  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11847  # libtool to hard-code these into programs
11848  ;;
11849
11850cygwin* | mingw* | pw32* | cegcc*)
11851  version_type=windows
11852  shrext_cmds=.dll
11853  need_version=no
11854  need_lib_prefix=no
11855
11856  case $GCC,$cc_basename in
11857  yes,*)
11858    # gcc
11859    library_names_spec='$libname.dll.a'
11860    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11861    postinstall_cmds='base_file=`basename \$file`~
11862      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11863      dldir=$destdir/`dirname \$dlpath`~
11864      test -d \$dldir || mkdir -p \$dldir~
11865      $install_prog $dir/$dlname \$dldir/$dlname~
11866      chmod a+x \$dldir/$dlname~
11867      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11868        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11869      fi'
11870    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11871      dlpath=$dir/\$dldll~
11872       $RM \$dlpath'
11873    shlibpath_overrides_runpath=yes
11874
11875    case $host_os in
11876    cygwin*)
11877      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11878      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11879
11880      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11881      ;;
11882    mingw* | cegcc*)
11883      # MinGW DLLs use traditional 'lib' prefix
11884      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11885      ;;
11886    pw32*)
11887      # pw32 DLLs use 'pw' prefix rather than 'lib'
11888      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11889      ;;
11890    esac
11891    dynamic_linker='Win32 ld.exe'
11892    ;;
11893
11894  *,cl*)
11895    # Native MSVC
11896    libname_spec='$name'
11897    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11898    library_names_spec='$libname.dll.lib'
11899
11900    case $build_os in
11901    mingw*)
11902      sys_lib_search_path_spec=
11903      lt_save_ifs=$IFS
11904      IFS=';'
11905      for lt_path in $LIB
11906      do
11907        IFS=$lt_save_ifs
11908        # Let DOS variable expansion print the short 8.3 style file name.
11909        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11910        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11911      done
11912      IFS=$lt_save_ifs
11913      # Convert to MSYS style.
11914      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11915      ;;
11916    cygwin*)
11917      # Convert to unix form, then to dos form, then back to unix form
11918      # but this time dos style (no spaces!) so that the unix form looks
11919      # like /cygdrive/c/PROGRA~1:/cygdr...
11920      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11921      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11922      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11923      ;;
11924    *)
11925      sys_lib_search_path_spec=$LIB
11926      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11927        # It is most probably a Windows format PATH.
11928        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11929      else
11930        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11931      fi
11932      # FIXME: find the short name or the path components, as spaces are
11933      # common. (e.g. "Program Files" -> "PROGRA~1")
11934      ;;
11935    esac
11936
11937    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11938    postinstall_cmds='base_file=`basename \$file`~
11939      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11940      dldir=$destdir/`dirname \$dlpath`~
11941      test -d \$dldir || mkdir -p \$dldir~
11942      $install_prog $dir/$dlname \$dldir/$dlname'
11943    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11944      dlpath=$dir/\$dldll~
11945       $RM \$dlpath'
11946    shlibpath_overrides_runpath=yes
11947    dynamic_linker='Win32 link.exe'
11948    ;;
11949
11950  *)
11951    # Assume MSVC wrapper
11952    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11953    dynamic_linker='Win32 ld.exe'
11954    ;;
11955  esac
11956  # FIXME: first we should search . and the directory the executable is in
11957  shlibpath_var=PATH
11958  ;;
11959
11960darwin* | rhapsody*)
11961  dynamic_linker="$host_os dyld"
11962  version_type=darwin
11963  need_lib_prefix=no
11964  need_version=no
11965  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11966  soname_spec='$libname$release$major$shared_ext'
11967  shlibpath_overrides_runpath=yes
11968  shlibpath_var=DYLD_LIBRARY_PATH
11969  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11970
11971  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11972  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11973  ;;
11974
11975dgux*)
11976  version_type=linux # correct to gnu/linux during the next big refactor
11977  need_lib_prefix=no
11978  need_version=no
11979  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11980  soname_spec='$libname$release$shared_ext$major'
11981  shlibpath_var=LD_LIBRARY_PATH
11982  ;;
11983
11984freebsd* | dragonfly*)
11985  # DragonFly does not have aout.  When/if they implement a new
11986  # versioning mechanism, adjust this.
11987  if test -x /usr/bin/objformat; then
11988    objformat=`/usr/bin/objformat`
11989  else
11990    case $host_os in
11991    freebsd[23].*) objformat=aout ;;
11992    *) objformat=elf ;;
11993    esac
11994  fi
11995  version_type=freebsd-$objformat
11996  case $version_type in
11997    freebsd-elf*)
11998      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11999      soname_spec='$libname$release$shared_ext$major'
12000      need_version=no
12001      need_lib_prefix=no
12002      ;;
12003    freebsd-*)
12004      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12005      need_version=yes
12006      ;;
12007  esac
12008  shlibpath_var=LD_LIBRARY_PATH
12009  case $host_os in
12010  freebsd2.*)
12011    shlibpath_overrides_runpath=yes
12012    ;;
12013  freebsd3.[01]* | freebsdelf3.[01]*)
12014    shlibpath_overrides_runpath=yes
12015    hardcode_into_libs=yes
12016    ;;
12017  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12018  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12019    shlibpath_overrides_runpath=no
12020    hardcode_into_libs=yes
12021    ;;
12022  *) # from 4.6 on, and DragonFly
12023    shlibpath_overrides_runpath=yes
12024    hardcode_into_libs=yes
12025    ;;
12026  esac
12027  ;;
12028
12029haiku*)
12030  version_type=linux # correct to gnu/linux during the next big refactor
12031  need_lib_prefix=no
12032  need_version=no
12033  dynamic_linker="$host_os runtime_loader"
12034  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12035  soname_spec='$libname$release$shared_ext$major'
12036  shlibpath_var=LIBRARY_PATH
12037  shlibpath_overrides_runpath=no
12038  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12039  hardcode_into_libs=yes
12040  ;;
12041
12042hpux9* | hpux10* | hpux11*)
12043  # Give a soname corresponding to the major version so that dld.sl refuses to
12044  # link against other versions.
12045  version_type=sunos
12046  need_lib_prefix=no
12047  need_version=no
12048  case $host_cpu in
12049  ia64*)
12050    shrext_cmds='.so'
12051    hardcode_into_libs=yes
12052    dynamic_linker="$host_os dld.so"
12053    shlibpath_var=LD_LIBRARY_PATH
12054    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12055    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12056    soname_spec='$libname$release$shared_ext$major'
12057    if test 32 = "$HPUX_IA64_MODE"; then
12058      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12059      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12060    else
12061      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12062      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12063    fi
12064    ;;
12065  hppa*64*)
12066    shrext_cmds='.sl'
12067    hardcode_into_libs=yes
12068    dynamic_linker="$host_os dld.sl"
12069    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12070    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12071    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12072    soname_spec='$libname$release$shared_ext$major'
12073    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12074    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12075    ;;
12076  *)
12077    shrext_cmds='.sl'
12078    dynamic_linker="$host_os dld.sl"
12079    shlibpath_var=SHLIB_PATH
12080    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12081    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12082    soname_spec='$libname$release$shared_ext$major'
12083    ;;
12084  esac
12085  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12086  postinstall_cmds='chmod 555 $lib'
12087  # or fails outright, so override atomically:
12088  install_override_mode=555
12089  ;;
12090
12091interix[3-9]*)
12092  version_type=linux # correct to gnu/linux during the next big refactor
12093  need_lib_prefix=no
12094  need_version=no
12095  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12096  soname_spec='$libname$release$shared_ext$major'
12097  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12098  shlibpath_var=LD_LIBRARY_PATH
12099  shlibpath_overrides_runpath=no
12100  hardcode_into_libs=yes
12101  ;;
12102
12103irix5* | irix6* | nonstopux*)
12104  case $host_os in
12105    nonstopux*) version_type=nonstopux ;;
12106    *)
12107	if test yes = "$lt_cv_prog_gnu_ld"; then
12108		version_type=linux # correct to gnu/linux during the next big refactor
12109	else
12110		version_type=irix
12111	fi ;;
12112  esac
12113  need_lib_prefix=no
12114  need_version=no
12115  soname_spec='$libname$release$shared_ext$major'
12116  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12117  case $host_os in
12118  irix5* | nonstopux*)
12119    libsuff= shlibsuff=
12120    ;;
12121  *)
12122    case $LD in # libtool.m4 will add one of these switches to LD
12123    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12124      libsuff= shlibsuff= libmagic=32-bit;;
12125    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12126      libsuff=32 shlibsuff=N32 libmagic=N32;;
12127    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12128      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12129    *) libsuff= shlibsuff= libmagic=never-match;;
12130    esac
12131    ;;
12132  esac
12133  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12134  shlibpath_overrides_runpath=no
12135  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12136  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12137  hardcode_into_libs=yes
12138  ;;
12139
12140# No shared lib support for Linux oldld, aout, or coff.
12141linux*oldld* | linux*aout* | linux*coff*)
12142  dynamic_linker=no
12143  ;;
12144
12145linux*android*)
12146  version_type=none # Android doesn't support versioned libraries.
12147  need_lib_prefix=no
12148  need_version=no
12149  library_names_spec='$libname$release$shared_ext'
12150  soname_spec='$libname$release$shared_ext'
12151  finish_cmds=
12152  shlibpath_var=LD_LIBRARY_PATH
12153  shlibpath_overrides_runpath=yes
12154
12155  # This implies no fast_install, which is unacceptable.
12156  # Some rework will be needed to allow for fast_install
12157  # before this can be enabled.
12158  hardcode_into_libs=yes
12159
12160  dynamic_linker='Android linker'
12161  # Don't embed -rpath directories since the linker doesn't support them.
12162  hardcode_libdir_flag_spec='-L$libdir'
12163  ;;
12164
12165# This must be glibc/ELF.
12166linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12167  version_type=linux # correct to gnu/linux during the next big refactor
12168  need_lib_prefix=no
12169  need_version=no
12170  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12171  soname_spec='$libname$release$shared_ext$major'
12172  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12173  shlibpath_var=LD_LIBRARY_PATH
12174  shlibpath_overrides_runpath=no
12175
12176  # Some binutils ld are patched to set DT_RUNPATH
12177  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12178  $as_echo_n "(cached) " >&6
12179else
12180  lt_cv_shlibpath_overrides_runpath=no
12181    save_LDFLAGS=$LDFLAGS
12182    save_libdir=$libdir
12183    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12184	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12185    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186/* end confdefs.h.  */
12187
12188int
12189main ()
12190{
12191
12192  ;
12193  return 0;
12194}
12195_ACEOF
12196if ac_fn_c_try_link "$LINENO"; then :
12197  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12198  lt_cv_shlibpath_overrides_runpath=yes
12199fi
12200fi
12201rm -f core conftest.err conftest.$ac_objext \
12202    conftest$ac_exeext conftest.$ac_ext
12203    LDFLAGS=$save_LDFLAGS
12204    libdir=$save_libdir
12205
12206fi
12207
12208  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12209
12210  # This implies no fast_install, which is unacceptable.
12211  # Some rework will be needed to allow for fast_install
12212  # before this can be enabled.
12213  hardcode_into_libs=yes
12214
12215  # Ideally, we could use ldconfig to report *all* directores which are
12216  # searched for libraries, however this is still not possible.  Aside from not
12217  # being certain /sbin/ldconfig is available, command
12218  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12219  # even though it is searched at run-time.  Try to do the best guess by
12220  # appending ld.so.conf contents (and includes) to the search path.
12221  if test -f /etc/ld.so.conf; then
12222    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;s/"//g;/^$/d' | tr '\n' ' '`
12223    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12224  fi
12225
12226  # We used to test for /lib/ld.so.1 and disable shared libraries on
12227  # powerpc, because MkLinux only supported shared libraries with the
12228  # GNU dynamic linker.  Since this was broken with cross compilers,
12229  # most powerpc-linux boxes support dynamic linking these days and
12230  # people can always --disable-shared, the test was removed, and we
12231  # assume the GNU/Linux dynamic linker is in use.
12232  dynamic_linker='GNU/Linux ld.so'
12233  ;;
12234
12235netbsd*)
12236  version_type=sunos
12237  need_lib_prefix=no
12238  need_version=no
12239  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12240    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12241    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12242    dynamic_linker='NetBSD (a.out) ld.so'
12243  else
12244    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12245    soname_spec='$libname$release$shared_ext$major'
12246    dynamic_linker='NetBSD ld.elf_so'
12247  fi
12248  shlibpath_var=LD_LIBRARY_PATH
12249  shlibpath_overrides_runpath=yes
12250  hardcode_into_libs=yes
12251  ;;
12252
12253newsos6)
12254  version_type=linux # correct to gnu/linux during the next big refactor
12255  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12256  shlibpath_var=LD_LIBRARY_PATH
12257  shlibpath_overrides_runpath=yes
12258  ;;
12259
12260*nto* | *qnx*)
12261  version_type=qnx
12262  need_lib_prefix=no
12263  need_version=no
12264  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12265  soname_spec='$libname$release$shared_ext$major'
12266  shlibpath_var=LD_LIBRARY_PATH
12267  shlibpath_overrides_runpath=no
12268  hardcode_into_libs=yes
12269  dynamic_linker='ldqnx.so'
12270  ;;
12271
12272openbsd* | bitrig*)
12273  version_type=sunos
12274  sys_lib_dlsearch_path_spec=/usr/lib
12275  need_lib_prefix=no
12276  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12277    need_version=no
12278  else
12279    need_version=yes
12280  fi
12281  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12282  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12283  shlibpath_var=LD_LIBRARY_PATH
12284  shlibpath_overrides_runpath=yes
12285  ;;
12286
12287os2*)
12288  libname_spec='$name'
12289  version_type=windows
12290  shrext_cmds=.dll
12291  need_version=no
12292  need_lib_prefix=no
12293  # OS/2 can only load a DLL with a base name of 8 characters or less.
12294  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12295    v=$($ECHO $release$versuffix | tr -d .-);
12296    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12297    $ECHO $n$v`$shared_ext'
12298  library_names_spec='${libname}_dll.$libext'
12299  dynamic_linker='OS/2 ld.exe'
12300  shlibpath_var=BEGINLIBPATH
12301  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12302  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12303  postinstall_cmds='base_file=`basename \$file`~
12304    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12305    dldir=$destdir/`dirname \$dlpath`~
12306    test -d \$dldir || mkdir -p \$dldir~
12307    $install_prog $dir/$dlname \$dldir/$dlname~
12308    chmod a+x \$dldir/$dlname~
12309    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12310      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12311    fi'
12312  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12313    dlpath=$dir/\$dldll~
12314    $RM \$dlpath'
12315  ;;
12316
12317osf3* | osf4* | osf5*)
12318  version_type=osf
12319  need_lib_prefix=no
12320  need_version=no
12321  soname_spec='$libname$release$shared_ext$major'
12322  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12323  shlibpath_var=LD_LIBRARY_PATH
12324  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12325  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12326  ;;
12327
12328rdos*)
12329  dynamic_linker=no
12330  ;;
12331
12332solaris*)
12333  version_type=linux # correct to gnu/linux during the next big refactor
12334  need_lib_prefix=no
12335  need_version=no
12336  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12337  soname_spec='$libname$release$shared_ext$major'
12338  shlibpath_var=LD_LIBRARY_PATH
12339  shlibpath_overrides_runpath=yes
12340  hardcode_into_libs=yes
12341  # ldd complains unless libraries are executable
12342  postinstall_cmds='chmod +x $lib'
12343  ;;
12344
12345sunos4*)
12346  version_type=sunos
12347  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12348  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12349  shlibpath_var=LD_LIBRARY_PATH
12350  shlibpath_overrides_runpath=yes
12351  if test yes = "$with_gnu_ld"; then
12352    need_lib_prefix=no
12353  fi
12354  need_version=yes
12355  ;;
12356
12357sysv4 | sysv4.3*)
12358  version_type=linux # correct to gnu/linux during the next big refactor
12359  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12360  soname_spec='$libname$release$shared_ext$major'
12361  shlibpath_var=LD_LIBRARY_PATH
12362  case $host_vendor in
12363    sni)
12364      shlibpath_overrides_runpath=no
12365      need_lib_prefix=no
12366      runpath_var=LD_RUN_PATH
12367      ;;
12368    siemens)
12369      need_lib_prefix=no
12370      ;;
12371    motorola)
12372      need_lib_prefix=no
12373      need_version=no
12374      shlibpath_overrides_runpath=no
12375      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12376      ;;
12377  esac
12378  ;;
12379
12380sysv4*MP*)
12381  if test -d /usr/nec; then
12382    version_type=linux # correct to gnu/linux during the next big refactor
12383    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12384    soname_spec='$libname$shared_ext.$major'
12385    shlibpath_var=LD_LIBRARY_PATH
12386  fi
12387  ;;
12388
12389sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12390  version_type=sco
12391  need_lib_prefix=no
12392  need_version=no
12393  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12394  soname_spec='$libname$release$shared_ext$major'
12395  shlibpath_var=LD_LIBRARY_PATH
12396  shlibpath_overrides_runpath=yes
12397  hardcode_into_libs=yes
12398  if test yes = "$with_gnu_ld"; then
12399    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12400  else
12401    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12402    case $host_os in
12403      sco3.2v5*)
12404        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12405	;;
12406    esac
12407  fi
12408  sys_lib_dlsearch_path_spec='/usr/lib'
12409  ;;
12410
12411tpf*)
12412  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12413  version_type=linux # correct to gnu/linux during the next big refactor
12414  need_lib_prefix=no
12415  need_version=no
12416  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12417  shlibpath_var=LD_LIBRARY_PATH
12418  shlibpath_overrides_runpath=no
12419  hardcode_into_libs=yes
12420  ;;
12421
12422uts4*)
12423  version_type=linux # correct to gnu/linux during the next big refactor
12424  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12425  soname_spec='$libname$release$shared_ext$major'
12426  shlibpath_var=LD_LIBRARY_PATH
12427  ;;
12428
12429*)
12430  dynamic_linker=no
12431  ;;
12432esac
12433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12434$as_echo "$dynamic_linker" >&6; }
12435test no = "$dynamic_linker" && can_build_shared=no
12436
12437variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12438if test yes = "$GCC"; then
12439  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12440fi
12441
12442if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12443  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12444fi
12445
12446if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12447  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12448fi
12449
12450# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12451configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12452
12453# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12454func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12455
12456# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12457configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12556$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12557hardcode_action=
12558if test -n "$hardcode_libdir_flag_spec" ||
12559   test -n "$runpath_var" ||
12560   test yes = "$hardcode_automatic"; then
12561
12562  # We can hardcode non-existent directories.
12563  if test no != "$hardcode_direct" &&
12564     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12565     # have to relink, otherwise we might link with an installed library
12566     # when we should be linking with a yet-to-be-installed one
12567     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12568     test no != "$hardcode_minus_L"; then
12569    # Linking always hardcodes the temporary library directory.
12570    hardcode_action=relink
12571  else
12572    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12573    hardcode_action=immediate
12574  fi
12575else
12576  # We cannot hardcode anything, or else we can only hardcode existing
12577  # directories.
12578  hardcode_action=unsupported
12579fi
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12581$as_echo "$hardcode_action" >&6; }
12582
12583if test relink = "$hardcode_action" ||
12584   test yes = "$inherit_rpath"; then
12585  # Fast installation is not supported
12586  enable_fast_install=no
12587elif test yes = "$shlibpath_overrides_runpath" ||
12588     test no = "$enable_shared"; then
12589  # Fast installation is not necessary
12590  enable_fast_install=needless
12591fi
12592
12593
12594
12595
12596
12597
12598  if test yes != "$enable_dlopen"; then
12599  enable_dlopen=unknown
12600  enable_dlopen_self=unknown
12601  enable_dlopen_self_static=unknown
12602else
12603  lt_cv_dlopen=no
12604  lt_cv_dlopen_libs=
12605
12606  case $host_os in
12607  beos*)
12608    lt_cv_dlopen=load_add_on
12609    lt_cv_dlopen_libs=
12610    lt_cv_dlopen_self=yes
12611    ;;
12612
12613  mingw* | pw32* | cegcc*)
12614    lt_cv_dlopen=LoadLibrary
12615    lt_cv_dlopen_libs=
12616    ;;
12617
12618  cygwin*)
12619    lt_cv_dlopen=dlopen
12620    lt_cv_dlopen_libs=
12621    ;;
12622
12623  darwin*)
12624    # if libdl is installed we need to link against it
12625    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12626$as_echo_n "checking for dlopen in -ldl... " >&6; }
12627if ${ac_cv_lib_dl_dlopen+:} false; then :
12628  $as_echo_n "(cached) " >&6
12629else
12630  ac_check_lib_save_LIBS=$LIBS
12631LIBS="-ldl  $LIBS"
12632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633/* end confdefs.h.  */
12634
12635/* Override any GCC internal prototype to avoid an error.
12636   Use char because int might match the return type of a GCC
12637   builtin and then its argument prototype would still apply.  */
12638#ifdef __cplusplus
12639extern "C"
12640#endif
12641char dlopen ();
12642int
12643main ()
12644{
12645return dlopen ();
12646  ;
12647  return 0;
12648}
12649_ACEOF
12650if ac_fn_c_try_link "$LINENO"; then :
12651  ac_cv_lib_dl_dlopen=yes
12652else
12653  ac_cv_lib_dl_dlopen=no
12654fi
12655rm -f core conftest.err conftest.$ac_objext \
12656    conftest$ac_exeext conftest.$ac_ext
12657LIBS=$ac_check_lib_save_LIBS
12658fi
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12660$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12661if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12662  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12663else
12664
12665    lt_cv_dlopen=dyld
12666    lt_cv_dlopen_libs=
12667    lt_cv_dlopen_self=yes
12668
12669fi
12670
12671    ;;
12672
12673  tpf*)
12674    # Don't try to run any link tests for TPF.  We know it's impossible
12675    # because TPF is a cross-compiler, and we know how we open DSOs.
12676    lt_cv_dlopen=dlopen
12677    lt_cv_dlopen_libs=
12678    lt_cv_dlopen_self=no
12679    ;;
12680
12681  *)
12682    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12683if test "x$ac_cv_func_shl_load" = xyes; then :
12684  lt_cv_dlopen=shl_load
12685else
12686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12687$as_echo_n "checking for shl_load in -ldld... " >&6; }
12688if ${ac_cv_lib_dld_shl_load+:} false; then :
12689  $as_echo_n "(cached) " >&6
12690else
12691  ac_check_lib_save_LIBS=$LIBS
12692LIBS="-ldld  $LIBS"
12693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694/* end confdefs.h.  */
12695
12696/* Override any GCC internal prototype to avoid an error.
12697   Use char because int might match the return type of a GCC
12698   builtin and then its argument prototype would still apply.  */
12699#ifdef __cplusplus
12700extern "C"
12701#endif
12702char shl_load ();
12703int
12704main ()
12705{
12706return shl_load ();
12707  ;
12708  return 0;
12709}
12710_ACEOF
12711if ac_fn_c_try_link "$LINENO"; then :
12712  ac_cv_lib_dld_shl_load=yes
12713else
12714  ac_cv_lib_dld_shl_load=no
12715fi
12716rm -f core conftest.err conftest.$ac_objext \
12717    conftest$ac_exeext conftest.$ac_ext
12718LIBS=$ac_check_lib_save_LIBS
12719fi
12720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12721$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12722if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12723  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12724else
12725  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12726if test "x$ac_cv_func_dlopen" = xyes; then :
12727  lt_cv_dlopen=dlopen
12728else
12729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12730$as_echo_n "checking for dlopen in -ldl... " >&6; }
12731if ${ac_cv_lib_dl_dlopen+:} false; then :
12732  $as_echo_n "(cached) " >&6
12733else
12734  ac_check_lib_save_LIBS=$LIBS
12735LIBS="-ldl  $LIBS"
12736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737/* end confdefs.h.  */
12738
12739/* Override any GCC internal prototype to avoid an error.
12740   Use char because int might match the return type of a GCC
12741   builtin and then its argument prototype would still apply.  */
12742#ifdef __cplusplus
12743extern "C"
12744#endif
12745char dlopen ();
12746int
12747main ()
12748{
12749return dlopen ();
12750  ;
12751  return 0;
12752}
12753_ACEOF
12754if ac_fn_c_try_link "$LINENO"; then :
12755  ac_cv_lib_dl_dlopen=yes
12756else
12757  ac_cv_lib_dl_dlopen=no
12758fi
12759rm -f core conftest.err conftest.$ac_objext \
12760    conftest$ac_exeext conftest.$ac_ext
12761LIBS=$ac_check_lib_save_LIBS
12762fi
12763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12764$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12765if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12766  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12767else
12768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12769$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12770if ${ac_cv_lib_svld_dlopen+:} false; then :
12771  $as_echo_n "(cached) " >&6
12772else
12773  ac_check_lib_save_LIBS=$LIBS
12774LIBS="-lsvld  $LIBS"
12775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776/* end confdefs.h.  */
12777
12778/* Override any GCC internal prototype to avoid an error.
12779   Use char because int might match the return type of a GCC
12780   builtin and then its argument prototype would still apply.  */
12781#ifdef __cplusplus
12782extern "C"
12783#endif
12784char dlopen ();
12785int
12786main ()
12787{
12788return dlopen ();
12789  ;
12790  return 0;
12791}
12792_ACEOF
12793if ac_fn_c_try_link "$LINENO"; then :
12794  ac_cv_lib_svld_dlopen=yes
12795else
12796  ac_cv_lib_svld_dlopen=no
12797fi
12798rm -f core conftest.err conftest.$ac_objext \
12799    conftest$ac_exeext conftest.$ac_ext
12800LIBS=$ac_check_lib_save_LIBS
12801fi
12802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12803$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12804if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12805  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12806else
12807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12808$as_echo_n "checking for dld_link in -ldld... " >&6; }
12809if ${ac_cv_lib_dld_dld_link+:} false; then :
12810  $as_echo_n "(cached) " >&6
12811else
12812  ac_check_lib_save_LIBS=$LIBS
12813LIBS="-ldld  $LIBS"
12814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815/* end confdefs.h.  */
12816
12817/* Override any GCC internal prototype to avoid an error.
12818   Use char because int might match the return type of a GCC
12819   builtin and then its argument prototype would still apply.  */
12820#ifdef __cplusplus
12821extern "C"
12822#endif
12823char dld_link ();
12824int
12825main ()
12826{
12827return dld_link ();
12828  ;
12829  return 0;
12830}
12831_ACEOF
12832if ac_fn_c_try_link "$LINENO"; then :
12833  ac_cv_lib_dld_dld_link=yes
12834else
12835  ac_cv_lib_dld_dld_link=no
12836fi
12837rm -f core conftest.err conftest.$ac_objext \
12838    conftest$ac_exeext conftest.$ac_ext
12839LIBS=$ac_check_lib_save_LIBS
12840fi
12841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12842$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12843if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12844  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12845fi
12846
12847
12848fi
12849
12850
12851fi
12852
12853
12854fi
12855
12856
12857fi
12858
12859
12860fi
12861
12862    ;;
12863  esac
12864
12865  if test no = "$lt_cv_dlopen"; then
12866    enable_dlopen=no
12867  else
12868    enable_dlopen=yes
12869  fi
12870
12871  case $lt_cv_dlopen in
12872  dlopen)
12873    save_CPPFLAGS=$CPPFLAGS
12874    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12875
12876    save_LDFLAGS=$LDFLAGS
12877    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12878
12879    save_LIBS=$LIBS
12880    LIBS="$lt_cv_dlopen_libs $LIBS"
12881
12882    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12883$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12884if ${lt_cv_dlopen_self+:} false; then :
12885  $as_echo_n "(cached) " >&6
12886else
12887  	  if test yes = "$cross_compiling"; then :
12888  lt_cv_dlopen_self=cross
12889else
12890  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12891  lt_status=$lt_dlunknown
12892  cat > conftest.$ac_ext <<_LT_EOF
12893#line $LINENO "configure"
12894#include "confdefs.h"
12895
12896#if HAVE_DLFCN_H
12897#include <dlfcn.h>
12898#endif
12899
12900#include <stdio.h>
12901
12902#ifdef RTLD_GLOBAL
12903#  define LT_DLGLOBAL		RTLD_GLOBAL
12904#else
12905#  ifdef DL_GLOBAL
12906#    define LT_DLGLOBAL		DL_GLOBAL
12907#  else
12908#    define LT_DLGLOBAL		0
12909#  endif
12910#endif
12911
12912/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12913   find out it does not work in some platform. */
12914#ifndef LT_DLLAZY_OR_NOW
12915#  ifdef RTLD_LAZY
12916#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12917#  else
12918#    ifdef DL_LAZY
12919#      define LT_DLLAZY_OR_NOW		DL_LAZY
12920#    else
12921#      ifdef RTLD_NOW
12922#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12923#      else
12924#        ifdef DL_NOW
12925#          define LT_DLLAZY_OR_NOW	DL_NOW
12926#        else
12927#          define LT_DLLAZY_OR_NOW	0
12928#        endif
12929#      endif
12930#    endif
12931#  endif
12932#endif
12933
12934/* When -fvisibility=hidden is used, assume the code has been annotated
12935   correspondingly for the symbols needed.  */
12936#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12937int fnord () __attribute__((visibility("default")));
12938#endif
12939
12940int fnord () { return 42; }
12941int main ()
12942{
12943  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12944  int status = $lt_dlunknown;
12945
12946  if (self)
12947    {
12948      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12949      else
12950        {
12951	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12952          else puts (dlerror ());
12953	}
12954      /* dlclose (self); */
12955    }
12956  else
12957    puts (dlerror ());
12958
12959  return status;
12960}
12961_LT_EOF
12962  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12963  (eval $ac_link) 2>&5
12964  ac_status=$?
12965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12966  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12967    (./conftest; exit; ) >&5 2>/dev/null
12968    lt_status=$?
12969    case x$lt_status in
12970      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12971      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12972      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12973    esac
12974  else :
12975    # compilation failed
12976    lt_cv_dlopen_self=no
12977  fi
12978fi
12979rm -fr conftest*
12980
12981
12982fi
12983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12984$as_echo "$lt_cv_dlopen_self" >&6; }
12985
12986    if test yes = "$lt_cv_dlopen_self"; then
12987      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12988      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12989$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12990if ${lt_cv_dlopen_self_static+:} false; then :
12991  $as_echo_n "(cached) " >&6
12992else
12993  	  if test yes = "$cross_compiling"; then :
12994  lt_cv_dlopen_self_static=cross
12995else
12996  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12997  lt_status=$lt_dlunknown
12998  cat > conftest.$ac_ext <<_LT_EOF
12999#line $LINENO "configure"
13000#include "confdefs.h"
13001
13002#if HAVE_DLFCN_H
13003#include <dlfcn.h>
13004#endif
13005
13006#include <stdio.h>
13007
13008#ifdef RTLD_GLOBAL
13009#  define LT_DLGLOBAL		RTLD_GLOBAL
13010#else
13011#  ifdef DL_GLOBAL
13012#    define LT_DLGLOBAL		DL_GLOBAL
13013#  else
13014#    define LT_DLGLOBAL		0
13015#  endif
13016#endif
13017
13018/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13019   find out it does not work in some platform. */
13020#ifndef LT_DLLAZY_OR_NOW
13021#  ifdef RTLD_LAZY
13022#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13023#  else
13024#    ifdef DL_LAZY
13025#      define LT_DLLAZY_OR_NOW		DL_LAZY
13026#    else
13027#      ifdef RTLD_NOW
13028#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13029#      else
13030#        ifdef DL_NOW
13031#          define LT_DLLAZY_OR_NOW	DL_NOW
13032#        else
13033#          define LT_DLLAZY_OR_NOW	0
13034#        endif
13035#      endif
13036#    endif
13037#  endif
13038#endif
13039
13040/* When -fvisibility=hidden is used, assume the code has been annotated
13041   correspondingly for the symbols needed.  */
13042#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13043int fnord () __attribute__((visibility("default")));
13044#endif
13045
13046int fnord () { return 42; }
13047int main ()
13048{
13049  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13050  int status = $lt_dlunknown;
13051
13052  if (self)
13053    {
13054      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13055      else
13056        {
13057	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13058          else puts (dlerror ());
13059	}
13060      /* dlclose (self); */
13061    }
13062  else
13063    puts (dlerror ());
13064
13065  return status;
13066}
13067_LT_EOF
13068  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13069  (eval $ac_link) 2>&5
13070  ac_status=$?
13071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13072  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13073    (./conftest; exit; ) >&5 2>/dev/null
13074    lt_status=$?
13075    case x$lt_status in
13076      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13077      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13078      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13079    esac
13080  else :
13081    # compilation failed
13082    lt_cv_dlopen_self_static=no
13083  fi
13084fi
13085rm -fr conftest*
13086
13087
13088fi
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13090$as_echo "$lt_cv_dlopen_self_static" >&6; }
13091    fi
13092
13093    CPPFLAGS=$save_CPPFLAGS
13094    LDFLAGS=$save_LDFLAGS
13095    LIBS=$save_LIBS
13096    ;;
13097  esac
13098
13099  case $lt_cv_dlopen_self in
13100  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13101  *) enable_dlopen_self=unknown ;;
13102  esac
13103
13104  case $lt_cv_dlopen_self_static in
13105  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13106  *) enable_dlopen_self_static=unknown ;;
13107  esac
13108fi
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126striplib=
13127old_striplib=
13128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13129$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13130if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13131  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13132  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13134$as_echo "yes" >&6; }
13135else
13136# FIXME - insert some real tests, host_os isn't really good enough
13137  case $host_os in
13138  darwin*)
13139    if test -n "$STRIP"; then
13140      striplib="$STRIP -x"
13141      old_striplib="$STRIP -S"
13142      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13143$as_echo "yes" >&6; }
13144    else
13145      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146$as_echo "no" >&6; }
13147    fi
13148    ;;
13149  *)
13150    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151$as_echo "no" >&6; }
13152    ;;
13153  esac
13154fi
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167  # Report what library types will actually be built
13168  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13169$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13171$as_echo "$can_build_shared" >&6; }
13172
13173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13174$as_echo_n "checking whether to build shared libraries... " >&6; }
13175  test no = "$can_build_shared" && enable_shared=no
13176
13177  # On AIX, shared libraries and static libraries use the same namespace, and
13178  # are all built from PIC.
13179  case $host_os in
13180  aix3*)
13181    test yes = "$enable_shared" && enable_static=no
13182    if test -n "$RANLIB"; then
13183      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13184      postinstall_cmds='$RANLIB $lib'
13185    fi
13186    ;;
13187
13188  aix[4-9]*)
13189    if test ia64 != "$host_cpu"; then
13190      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13191      yes,aix,yes) ;;			# shared object as lib.so file only
13192      yes,svr4,*) ;;			# shared object as lib.so archive member only
13193      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13194      esac
13195    fi
13196    ;;
13197  esac
13198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13199$as_echo "$enable_shared" >&6; }
13200
13201  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13202$as_echo_n "checking whether to build static libraries... " >&6; }
13203  # Make sure either enable_shared or enable_static is yes.
13204  test yes = "$enable_shared" || enable_static=yes
13205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13206$as_echo "$enable_static" >&6; }
13207
13208
13209
13210
13211fi
13212ac_ext=c
13213ac_cpp='$CPP $CPPFLAGS'
13214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13216ac_compiler_gnu=$ac_cv_c_compiler_gnu
13217
13218CC=$lt_save_CC
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234        ac_config_commands="$ac_config_commands libtool"
13235
13236
13237
13238
13239# Only expand once:
13240
13241
13242
13243# Check whether --enable-externalcflags was given.
13244if test "${enable_externalcflags+set}" = set; then :
13245  enableval=$enable_externalcflags;  enable_externalcflags=yes
13246fi
13247
13248# Check whether --enable-gperftools was given.
13249if test "${enable_gperftools+set}" = set; then :
13250  enableval=$enable_gperftools;  enable_gperftools=yes
13251fi
13252
13253# Check whether --enable-debug was given.
13254if test "${enable_debug+set}" = set; then :
13255  enableval=$enable_debug;  enable_debug=yes
13256fi
13257
13258
13259if test "X$MFS_FORCE_DEBUG" = "XYES"; then
13260	enable_debug=yes
13261fi
13262
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=c11" >&5
13264$as_echo_n "checking whether C compiler accepts -std=c11... " >&6; }
13265if ${ax_cv_check_cflags___std_c11+:} false; then :
13266  $as_echo_n "(cached) " >&6
13267else
13268
13269  ax_check_save_flags=$CFLAGS
13270  CFLAGS="$CFLAGS  -std=c11"
13271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272/* end confdefs.h.  */
13273
13274int
13275main ()
13276{
13277
13278  ;
13279  return 0;
13280}
13281_ACEOF
13282if ac_fn_c_try_compile "$LINENO"; then :
13283  ax_cv_check_cflags___std_c11=yes
13284else
13285  ax_cv_check_cflags___std_c11=no
13286fi
13287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13288  CFLAGS=$ax_check_save_flags
13289fi
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_c11" >&5
13291$as_echo "$ax_cv_check_cflags___std_c11" >&6; }
13292if test "x$ax_cv_check_cflags___std_c11" = xyes; then :
13293   CCSTD="-std=c11"
13294else
13295
13296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=gnu99" >&5
13297$as_echo_n "checking whether C compiler accepts -std=gnu99... " >&6; }
13298if ${ax_cv_check_cflags___std_gnu99+:} false; then :
13299  $as_echo_n "(cached) " >&6
13300else
13301
13302  ax_check_save_flags=$CFLAGS
13303  CFLAGS="$CFLAGS  -std=gnu99"
13304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305/* end confdefs.h.  */
13306
13307int
13308main ()
13309{
13310
13311  ;
13312  return 0;
13313}
13314_ACEOF
13315if ac_fn_c_try_compile "$LINENO"; then :
13316  ax_cv_check_cflags___std_gnu99=yes
13317else
13318  ax_cv_check_cflags___std_gnu99=no
13319fi
13320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321  CFLAGS=$ax_check_save_flags
13322fi
13323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_gnu99" >&5
13324$as_echo "$ax_cv_check_cflags___std_gnu99" >&6; }
13325if test "x$ax_cv_check_cflags___std_gnu99" = xyes; then :
13326   CCSTD="-std=gnu99"
13327else
13328
13329		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=c99" >&5
13330$as_echo_n "checking whether C compiler accepts -std=c99... " >&6; }
13331if ${ax_cv_check_cflags___std_c99+:} false; then :
13332  $as_echo_n "(cached) " >&6
13333else
13334
13335  ax_check_save_flags=$CFLAGS
13336  CFLAGS="$CFLAGS  -std=c99"
13337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338/* end confdefs.h.  */
13339
13340int
13341main ()
13342{
13343
13344  ;
13345  return 0;
13346}
13347_ACEOF
13348if ac_fn_c_try_compile "$LINENO"; then :
13349  ax_cv_check_cflags___std_c99=yes
13350else
13351  ax_cv_check_cflags___std_c99=no
13352fi
13353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354  CFLAGS=$ax_check_save_flags
13355fi
13356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_c99" >&5
13357$as_echo "$ax_cv_check_cflags___std_c99" >&6; }
13358if test "x$ax_cv_check_cflags___std_c99" = xyes; then :
13359   CCSTD="-std=c99"
13360else
13361
13362			CCSTD=""
13363
13364fi
13365
13366
13367fi
13368
13369
13370fi
13371
13372
13373if test "$CCSTD" = "-std=c11"; then
13374	ac_have_atomics=maybe
13375
13376$as_echo "#define HAVE_C11_COMPILER 1" >>confdefs.h
13377
13378else
13379	ac_have_atomics=no
13380fi
13381
13382if test "$GCC" = "yes"; then
13383	if test "$enable_externalcflags" != "yes" ; then
13384		if test "$enable_gperftools" = "yes" -o "$enable_debug" = "yes" ; then
13385			CFLAGS="-O0 -fno-omit-frame-pointer -g -DMFSDEBUG $CCSTD -Wall -Wextra -Wshadow -pedantic -fwrapv"
13386		else
13387			CFLAGS="-O2 $CFLAGS -g $CCSTD -Wall -Wextra -Wshadow -pedantic -fwrapv"
13388		fi
13389	fi
13390	if test "$enable_gperftools" = "yes"; then
13391		CPPFLAGS="$CPPFLAGS -DGPERFTOOLS"
13392		LDFLAGS="$LDFLAGS -L/opt/local/lib -lprofiler"
13393	fi
13394fi
13395
13396root_sbindir="xxx"
13397fuse_lib_name="fuse"
13398
13399case $target_os in
13400  *linux*)
13401	fuse=maybe
13402	bdev=maybe
13403	CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DDEFAULT_SUGID_CLEAR_MODE_EXT"
13404	# Check whether exec_prefix=/usr:
13405	eval root_sbindir="${sbindir}"
13406	case $exec_prefix:$prefix in
13407	NONE:NONE | NONE:/usr | /usr:*)
13408		root_sbindir="/sbin"
13409	esac
13410	;;
13411  *solaris*)
13412	# OpenSolaris has fuse available and is still identified as "solaris"
13413	fuse=maybe
13414	bdev=no
13415	CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS -DDEFAULT_SUGID_CLEAR_MODE_OSX"
13416	;;
13417  *darwin*)
13418	fuse=maybe
13419	bdev=no
13420	fuse_lib_name="osxfuse"
13421	# MacFUSE installs to different prefix than pkgconfig
13422	if test -f /usr/local/lib/pkgconfig/fuse.pc ; then
13423		PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
13424		export PKG_CONFIG_PATH
13425	fi
13426	CPPFLAGS="$CPPFLAGS -DDEFAULT_SUGID_CLEAR_MODE_OSX"
13427	;;
13428  *bsd*|*dragonfly*)
13429	fuse=maybe
13430	bdev=no
13431	CPPFLAGS="$CPPFLAGS -DDEFAULT_SUGID_CLEAR_MODE_BSD"
13432	;;
13433  *)
13434	fuse=no
13435	bdev=no
13436	CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
13437	;;
13438esac
13439
13440
13441
13442
13443
13444
13445ac_ext=c
13446ac_cpp='$CPP $CPPFLAGS'
13447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13449ac_compiler_gnu=$ac_cv_c_compiler_gnu
13450
13451ax_pthread_ok=no
13452
13453# We used to check for pthread.h first, but this fails if pthread.h
13454# requires special compiler flags (e.g. on True64 or Sequent).
13455# It gets checked for in the link test anyway.
13456
13457# First of all, check if the user has set any of the PTHREAD_LIBS,
13458# etcetera environment variables, and if threads linking works using
13459# them:
13460if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13461        save_CFLAGS="$CFLAGS"
13462        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13463        save_LIBS="$LIBS"
13464        LIBS="$PTHREAD_LIBS $LIBS"
13465        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13466$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
13467        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13468/* end confdefs.h.  */
13469
13470/* Override any GCC internal prototype to avoid an error.
13471   Use char because int might match the return type of a GCC
13472   builtin and then its argument prototype would still apply.  */
13473#ifdef __cplusplus
13474extern "C"
13475#endif
13476char pthread_join ();
13477int
13478main ()
13479{
13480return pthread_join ();
13481  ;
13482  return 0;
13483}
13484_ACEOF
13485if ac_fn_c_try_link "$LINENO"; then :
13486  ax_pthread_ok=yes
13487fi
13488rm -f core conftest.err conftest.$ac_objext \
13489    conftest$ac_exeext conftest.$ac_ext
13490        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13491$as_echo "$ax_pthread_ok" >&6; }
13492        if test x"$ax_pthread_ok" = xno; then
13493                PTHREAD_LIBS=""
13494                PTHREAD_CFLAGS=""
13495        fi
13496        LIBS="$save_LIBS"
13497        CFLAGS="$save_CFLAGS"
13498fi
13499
13500# We must check for the threads library under a number of different
13501# names; the ordering is very important because some systems
13502# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13503# libraries is broken (non-POSIX).
13504
13505# Create a list of thread flags to try.  Items starting with a "-" are
13506# C compiler flags, and other items are library names, except for "none"
13507# which indicates that we try without any flags at all, and "pthread-config"
13508# which is a program returning the flags for the Pth emulation library.
13509
13510ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13511
13512# The ordering *is* (sometimes) important.  Some notes on the
13513# individual items follow:
13514
13515# pthreads: AIX (must check this before -lpthread)
13516# none: in case threads are in libc; should be tried before -Kthread and
13517#       other compiler flags to prevent continual compiler warnings
13518# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13519# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13520# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13521# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13522# -pthreads: Solaris/gcc
13523# -mthreads: Mingw32/gcc, Lynx/gcc
13524# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13525#      doesn't hurt to check since this sometimes defines pthreads too;
13526#      also defines -D_REENTRANT)
13527#      ... -mt is also the pthreads flag for HP/aCC
13528# pthread: Linux, etcetera
13529# --thread-safe: KAI C++
13530# pthread-config: use pthread-config program (for GNU Pth library)
13531
13532case "${host_cpu}-${host_os}" in
13533        *solaris*)
13534
13535        # On Solaris (at least, for some versions), libc contains stubbed
13536        # (non-functional) versions of the pthreads routines, so link-based
13537        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
13538        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
13539        # a function called by this macro, so we could check for that, but
13540        # who knows whether they'll stub that too in a future libc.)  So,
13541        # we'll just look for -pthreads and -lpthread first:
13542
13543        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
13544        ;;
13545esac
13546
13547if test x"$ax_pthread_ok" = xno; then
13548for flag in $ax_pthread_flags; do
13549
13550        case $flag in
13551                none)
13552                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13553$as_echo_n "checking whether pthreads work without any flags... " >&6; }
13554                ;;
13555
13556                -*)
13557                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
13558$as_echo_n "checking whether pthreads work with $flag... " >&6; }
13559                PTHREAD_CFLAGS="$flag"
13560                ;;
13561
13562		pthread-config)
13563		# Extract the first word of "pthread-config", so it can be a program name with args.
13564set dummy pthread-config; ac_word=$2
13565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13566$as_echo_n "checking for $ac_word... " >&6; }
13567if ${ac_cv_prog_ax_pthread_config+:} false; then :
13568  $as_echo_n "(cached) " >&6
13569else
13570  if test -n "$ax_pthread_config"; then
13571  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
13572else
13573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574for as_dir in $PATH
13575do
13576  IFS=$as_save_IFS
13577  test -z "$as_dir" && as_dir=.
13578    for ac_exec_ext in '' $ac_executable_extensions; do
13579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13580    ac_cv_prog_ax_pthread_config="yes"
13581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13582    break 2
13583  fi
13584done
13585  done
13586IFS=$as_save_IFS
13587
13588  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
13589fi
13590fi
13591ax_pthread_config=$ac_cv_prog_ax_pthread_config
13592if test -n "$ax_pthread_config"; then
13593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
13594$as_echo "$ax_pthread_config" >&6; }
13595else
13596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597$as_echo "no" >&6; }
13598fi
13599
13600
13601		if test x"$ax_pthread_config" = xno; then continue; fi
13602		PTHREAD_CFLAGS="`pthread-config --cflags`"
13603		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13604		;;
13605
13606                *)
13607                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
13608$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
13609                PTHREAD_LIBS="-l$flag"
13610                ;;
13611        esac
13612
13613        save_LIBS="$LIBS"
13614        save_CFLAGS="$CFLAGS"
13615        LIBS="$PTHREAD_LIBS $LIBS"
13616        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13617
13618        # Check for various functions.  We must include pthread.h,
13619        # since some functions may be macros.  (On the Sequent, we
13620        # need a special flag -Kthread to make this header compile.)
13621        # We check for pthread_join because it is in -lpthread on IRIX
13622        # while pthread_create is in libc.  We check for pthread_attr_init
13623        # due to DEC craziness with -lpthreads.  We check for
13624        # pthread_cleanup_push because it is one of the few pthread
13625        # functions on Solaris that doesn't have a non-functional libc stub.
13626        # We try pthread_create on general principles.
13627        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628/* end confdefs.h.  */
13629#include <pthread.h>
13630	             static void routine(void* a) {a=0;}
13631	             static void* start_routine(void* a) {return a;}
13632int
13633main ()
13634{
13635pthread_t th; pthread_attr_t attr;
13636                     pthread_join(th, 0);
13637                     pthread_attr_init(&attr);
13638                     pthread_cleanup_push(routine, 0);
13639                     pthread_create(&th,0,start_routine,0);
13640                     pthread_cleanup_pop(0);
13641  ;
13642  return 0;
13643}
13644_ACEOF
13645if ac_fn_c_try_link "$LINENO"; then :
13646  ax_pthread_ok=yes
13647fi
13648rm -f core conftest.err conftest.$ac_objext \
13649    conftest$ac_exeext conftest.$ac_ext
13650
13651        LIBS="$save_LIBS"
13652        CFLAGS="$save_CFLAGS"
13653
13654        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13655$as_echo "$ax_pthread_ok" >&6; }
13656        if test "x$ax_pthread_ok" = xyes; then
13657                break;
13658        fi
13659
13660        PTHREAD_LIBS=""
13661        PTHREAD_CFLAGS=""
13662done
13663fi
13664
13665# Various other checks:
13666if test "x$ax_pthread_ok" = xyes; then
13667        save_LIBS="$LIBS"
13668        LIBS="$PTHREAD_LIBS $LIBS"
13669        save_CFLAGS="$CFLAGS"
13670        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13671
13672        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
13673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
13674$as_echo_n "checking for joinable pthread attribute... " >&6; }
13675	attr_name=unknown
13676	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
13677	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678/* end confdefs.h.  */
13679#include <pthread.h>
13680int
13681main ()
13682{
13683int attr=$attr; return attr;
13684  ;
13685  return 0;
13686}
13687_ACEOF
13688if ac_fn_c_try_link "$LINENO"; then :
13689  attr_name=$attr; break
13690fi
13691rm -f core conftest.err conftest.$ac_objext \
13692    conftest$ac_exeext conftest.$ac_ext
13693	done
13694        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
13695$as_echo "$attr_name" >&6; }
13696        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
13697
13698cat >>confdefs.h <<_ACEOF
13699#define PTHREAD_CREATE_JOINABLE $attr_name
13700_ACEOF
13701
13702        fi
13703
13704        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
13705$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
13706        flag=no
13707        case "${host_cpu}-${host_os}" in
13708            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
13709            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13710        esac
13711        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
13712$as_echo "${flag}" >&6; }
13713        if test "x$flag" != xno; then
13714            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13715        fi
13716
13717	for ac_func in pthread_spin_lock
13718do :
13719  ac_fn_c_check_func "$LINENO" "pthread_spin_lock" "ac_cv_func_pthread_spin_lock"
13720if test "x$ac_cv_func_pthread_spin_lock" = xyes; then :
13721  cat >>confdefs.h <<_ACEOF
13722#define HAVE_PTHREAD_SPIN_LOCK 1
13723_ACEOF
13724
13725fi
13726done
13727
13728
13729        LIBS="$save_LIBS"
13730        CFLAGS="$save_CFLAGS"
13731
13732        # More AIX lossage: must compile with xlc_r or cc_r
13733	if test x"$GCC" != xyes; then
13734          for ac_prog in xlc_r cc_r
13735do
13736  # Extract the first word of "$ac_prog", so it can be a program name with args.
13737set dummy $ac_prog; ac_word=$2
13738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13739$as_echo_n "checking for $ac_word... " >&6; }
13740if ${ac_cv_prog_PTHREAD_CC+:} false; then :
13741  $as_echo_n "(cached) " >&6
13742else
13743  if test -n "$PTHREAD_CC"; then
13744  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13745else
13746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13747for as_dir in $PATH
13748do
13749  IFS=$as_save_IFS
13750  test -z "$as_dir" && as_dir=.
13751    for ac_exec_ext in '' $ac_executable_extensions; do
13752  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13753    ac_cv_prog_PTHREAD_CC="$ac_prog"
13754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13755    break 2
13756  fi
13757done
13758  done
13759IFS=$as_save_IFS
13760
13761fi
13762fi
13763PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13764if test -n "$PTHREAD_CC"; then
13765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
13766$as_echo "$PTHREAD_CC" >&6; }
13767else
13768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13769$as_echo "no" >&6; }
13770fi
13771
13772
13773  test -n "$PTHREAD_CC" && break
13774done
13775test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
13776
13777        else
13778          PTHREAD_CC=$CC
13779	fi
13780else
13781        PTHREAD_CC="$CC"
13782fi
13783
13784
13785
13786
13787
13788# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13789if test x"$ax_pthread_ok" = xyes; then
13790
13791$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
13792
13793        :
13794else
13795        ax_pthread_ok=no
13796        as_fn_error $? "Posix threads not found" "$LINENO" 5
13797fi
13798ac_ext=c
13799ac_cpp='$CPP $CPPFLAGS'
13800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13802ac_compiler_gnu=$ac_cv_c_compiler_gnu
13803
13804
13805
13806# Checks for libraries.
13807
13808# Solaris:
13809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13810$as_echo_n "checking for library containing socket... " >&6; }
13811if ${ac_cv_search_socket+:} false; then :
13812  $as_echo_n "(cached) " >&6
13813else
13814  ac_func_search_save_LIBS=$LIBS
13815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816/* end confdefs.h.  */
13817
13818/* Override any GCC internal prototype to avoid an error.
13819   Use char because int might match the return type of a GCC
13820   builtin and then its argument prototype would still apply.  */
13821#ifdef __cplusplus
13822extern "C"
13823#endif
13824char socket ();
13825int
13826main ()
13827{
13828return socket ();
13829  ;
13830  return 0;
13831}
13832_ACEOF
13833for ac_lib in '' socket; do
13834  if test -z "$ac_lib"; then
13835    ac_res="none required"
13836  else
13837    ac_res=-l$ac_lib
13838    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13839  fi
13840  if ac_fn_c_try_link "$LINENO"; then :
13841  ac_cv_search_socket=$ac_res
13842fi
13843rm -f core conftest.err conftest.$ac_objext \
13844    conftest$ac_exeext
13845  if ${ac_cv_search_socket+:} false; then :
13846  break
13847fi
13848done
13849if ${ac_cv_search_socket+:} false; then :
13850
13851else
13852  ac_cv_search_socket=no
13853fi
13854rm conftest.$ac_ext
13855LIBS=$ac_func_search_save_LIBS
13856fi
13857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13858$as_echo "$ac_cv_search_socket" >&6; }
13859ac_res=$ac_cv_search_socket
13860if test "$ac_res" != no; then :
13861  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13862
13863fi
13864
13865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13866$as_echo_n "checking for library containing getaddrinfo... " >&6; }
13867if ${ac_cv_search_getaddrinfo+:} false; then :
13868  $as_echo_n "(cached) " >&6
13869else
13870  ac_func_search_save_LIBS=$LIBS
13871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872/* end confdefs.h.  */
13873
13874/* Override any GCC internal prototype to avoid an error.
13875   Use char because int might match the return type of a GCC
13876   builtin and then its argument prototype would still apply.  */
13877#ifdef __cplusplus
13878extern "C"
13879#endif
13880char getaddrinfo ();
13881int
13882main ()
13883{
13884return getaddrinfo ();
13885  ;
13886  return 0;
13887}
13888_ACEOF
13889for ac_lib in '' nsl; do
13890  if test -z "$ac_lib"; then
13891    ac_res="none required"
13892  else
13893    ac_res=-l$ac_lib
13894    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13895  fi
13896  if ac_fn_c_try_link "$LINENO"; then :
13897  ac_cv_search_getaddrinfo=$ac_res
13898fi
13899rm -f core conftest.err conftest.$ac_objext \
13900    conftest$ac_exeext
13901  if ${ac_cv_search_getaddrinfo+:} false; then :
13902  break
13903fi
13904done
13905if ${ac_cv_search_getaddrinfo+:} false; then :
13906
13907else
13908  ac_cv_search_getaddrinfo=no
13909fi
13910rm conftest.$ac_ext
13911LIBS=$ac_func_search_save_LIBS
13912fi
13913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13914$as_echo "$ac_cv_search_getaddrinfo" >&6; }
13915ac_res=$ac_cv_search_getaddrinfo
13916if test "$ac_res" != no; then :
13917  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13918
13919fi
13920
13921# FreeBSD:
13922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
13923$as_echo_n "checking for library containing kvm_open... " >&6; }
13924if ${ac_cv_search_kvm_open+:} false; then :
13925  $as_echo_n "(cached) " >&6
13926else
13927  ac_func_search_save_LIBS=$LIBS
13928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929/* end confdefs.h.  */
13930
13931/* Override any GCC internal prototype to avoid an error.
13932   Use char because int might match the return type of a GCC
13933   builtin and then its argument prototype would still apply.  */
13934#ifdef __cplusplus
13935extern "C"
13936#endif
13937char kvm_open ();
13938int
13939main ()
13940{
13941return kvm_open ();
13942  ;
13943  return 0;
13944}
13945_ACEOF
13946for ac_lib in '' kvm; do
13947  if test -z "$ac_lib"; then
13948    ac_res="none required"
13949  else
13950    ac_res=-l$ac_lib
13951    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13952  fi
13953  if ac_fn_c_try_link "$LINENO"; then :
13954  ac_cv_search_kvm_open=$ac_res
13955fi
13956rm -f core conftest.err conftest.$ac_objext \
13957    conftest$ac_exeext
13958  if ${ac_cv_search_kvm_open+:} false; then :
13959  break
13960fi
13961done
13962if ${ac_cv_search_kvm_open+:} false; then :
13963
13964else
13965  ac_cv_search_kvm_open=no
13966fi
13967rm conftest.$ac_ext
13968LIBS=$ac_func_search_save_LIBS
13969fi
13970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
13971$as_echo "$ac_cv_search_kvm_open" >&6; }
13972ac_res=$ac_cv_search_kvm_open
13973if test "$ac_res" != no; then :
13974  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13975
13976fi
13977
13978# Linux:
13979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13980$as_echo_n "checking for library containing clock_gettime... " >&6; }
13981if ${ac_cv_search_clock_gettime+:} false; then :
13982  $as_echo_n "(cached) " >&6
13983else
13984  ac_func_search_save_LIBS=$LIBS
13985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986/* end confdefs.h.  */
13987
13988/* Override any GCC internal prototype to avoid an error.
13989   Use char because int might match the return type of a GCC
13990   builtin and then its argument prototype would still apply.  */
13991#ifdef __cplusplus
13992extern "C"
13993#endif
13994char clock_gettime ();
13995int
13996main ()
13997{
13998return clock_gettime ();
13999  ;
14000  return 0;
14001}
14002_ACEOF
14003for ac_lib in '' rt; do
14004  if test -z "$ac_lib"; then
14005    ac_res="none required"
14006  else
14007    ac_res=-l$ac_lib
14008    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14009  fi
14010  if ac_fn_c_try_link "$LINENO"; then :
14011  ac_cv_search_clock_gettime=$ac_res
14012fi
14013rm -f core conftest.err conftest.$ac_objext \
14014    conftest$ac_exeext
14015  if ${ac_cv_search_clock_gettime+:} false; then :
14016  break
14017fi
14018done
14019if ${ac_cv_search_clock_gettime+:} false; then :
14020
14021else
14022  ac_cv_search_clock_gettime=no
14023fi
14024rm conftest.$ac_ext
14025LIBS=$ac_func_search_save_LIBS
14026fi
14027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14028$as_echo "$ac_cv_search_clock_gettime" >&6; }
14029ac_res=$ac_cv_search_clock_gettime
14030if test "$ac_res" != no; then :
14031  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14032
14033fi
14034
14035
14036# We do not use AC_SEARCH_LIBS to avoid adding '-lm' to every binary
14037mathlib=no
14038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5
14039$as_echo_n "checking for round in -lm... " >&6; }
14040if ${ac_cv_lib_m_round+:} false; then :
14041  $as_echo_n "(cached) " >&6
14042else
14043  ac_check_lib_save_LIBS=$LIBS
14044LIBS="-lm  $LIBS"
14045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14046/* end confdefs.h.  */
14047
14048/* Override any GCC internal prototype to avoid an error.
14049   Use char because int might match the return type of a GCC
14050   builtin and then its argument prototype would still apply.  */
14051#ifdef __cplusplus
14052extern "C"
14053#endif
14054char round ();
14055int
14056main ()
14057{
14058return round ();
14059  ;
14060  return 0;
14061}
14062_ACEOF
14063if ac_fn_c_try_link "$LINENO"; then :
14064  ac_cv_lib_m_round=yes
14065else
14066  ac_cv_lib_m_round=no
14067fi
14068rm -f core conftest.err conftest.$ac_objext \
14069    conftest$ac_exeext conftest.$ac_ext
14070LIBS=$ac_check_lib_save_LIBS
14071fi
14072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5
14073$as_echo "$ac_cv_lib_m_round" >&6; }
14074if test "x$ac_cv_lib_m_round" = xyes; then :
14075   for ac_header in math.h
14076do :
14077  ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
14078if test "x$ac_cv_header_math_h" = xyes; then :
14079  cat >>confdefs.h <<_ACEOF
14080#define HAVE_MATH_H 1
14081_ACEOF
14082 mathlib=yes
14083fi
14084
14085done
14086
14087fi
14088
14089
14090if test "$mathlib" = "no"; then
14091	MATH_LIBS=
14092else
14093	MATH_LIBS=-lm
14094fi
14095
14096
14097# Checks for header files.
14098ac_header_dirent=no
14099for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14100  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14102$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14103if eval \${$as_ac_Header+:} false; then :
14104  $as_echo_n "(cached) " >&6
14105else
14106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107/* end confdefs.h.  */
14108#include <sys/types.h>
14109#include <$ac_hdr>
14110
14111int
14112main ()
14113{
14114if ((DIR *) 0)
14115return 0;
14116  ;
14117  return 0;
14118}
14119_ACEOF
14120if ac_fn_c_try_compile "$LINENO"; then :
14121  eval "$as_ac_Header=yes"
14122else
14123  eval "$as_ac_Header=no"
14124fi
14125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14126fi
14127eval ac_res=\$$as_ac_Header
14128	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14129$as_echo "$ac_res" >&6; }
14130if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14131  cat >>confdefs.h <<_ACEOF
14132#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14133_ACEOF
14134
14135ac_header_dirent=$ac_hdr; break
14136fi
14137
14138done
14139# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14140if test $ac_header_dirent = dirent.h; then
14141  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14142$as_echo_n "checking for library containing opendir... " >&6; }
14143if ${ac_cv_search_opendir+:} false; then :
14144  $as_echo_n "(cached) " >&6
14145else
14146  ac_func_search_save_LIBS=$LIBS
14147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148/* end confdefs.h.  */
14149
14150/* Override any GCC internal prototype to avoid an error.
14151   Use char because int might match the return type of a GCC
14152   builtin and then its argument prototype would still apply.  */
14153#ifdef __cplusplus
14154extern "C"
14155#endif
14156char opendir ();
14157int
14158main ()
14159{
14160return opendir ();
14161  ;
14162  return 0;
14163}
14164_ACEOF
14165for ac_lib in '' dir; do
14166  if test -z "$ac_lib"; then
14167    ac_res="none required"
14168  else
14169    ac_res=-l$ac_lib
14170    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14171  fi
14172  if ac_fn_c_try_link "$LINENO"; then :
14173  ac_cv_search_opendir=$ac_res
14174fi
14175rm -f core conftest.err conftest.$ac_objext \
14176    conftest$ac_exeext
14177  if ${ac_cv_search_opendir+:} false; then :
14178  break
14179fi
14180done
14181if ${ac_cv_search_opendir+:} false; then :
14182
14183else
14184  ac_cv_search_opendir=no
14185fi
14186rm conftest.$ac_ext
14187LIBS=$ac_func_search_save_LIBS
14188fi
14189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14190$as_echo "$ac_cv_search_opendir" >&6; }
14191ac_res=$ac_cv_search_opendir
14192if test "$ac_res" != no; then :
14193  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14194
14195fi
14196
14197else
14198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14199$as_echo_n "checking for library containing opendir... " >&6; }
14200if ${ac_cv_search_opendir+:} false; then :
14201  $as_echo_n "(cached) " >&6
14202else
14203  ac_func_search_save_LIBS=$LIBS
14204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205/* end confdefs.h.  */
14206
14207/* Override any GCC internal prototype to avoid an error.
14208   Use char because int might match the return type of a GCC
14209   builtin and then its argument prototype would still apply.  */
14210#ifdef __cplusplus
14211extern "C"
14212#endif
14213char opendir ();
14214int
14215main ()
14216{
14217return opendir ();
14218  ;
14219  return 0;
14220}
14221_ACEOF
14222for ac_lib in '' x; do
14223  if test -z "$ac_lib"; then
14224    ac_res="none required"
14225  else
14226    ac_res=-l$ac_lib
14227    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14228  fi
14229  if ac_fn_c_try_link "$LINENO"; then :
14230  ac_cv_search_opendir=$ac_res
14231fi
14232rm -f core conftest.err conftest.$ac_objext \
14233    conftest$ac_exeext
14234  if ${ac_cv_search_opendir+:} false; then :
14235  break
14236fi
14237done
14238if ${ac_cv_search_opendir+:} false; then :
14239
14240else
14241  ac_cv_search_opendir=no
14242fi
14243rm conftest.$ac_ext
14244LIBS=$ac_func_search_save_LIBS
14245fi
14246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14247$as_echo "$ac_cv_search_opendir" >&6; }
14248ac_res=$ac_cv_search_opendir
14249if test "$ac_res" != no; then :
14250  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14251
14252fi
14253
14254fi
14255
14256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14257$as_echo_n "checking for ANSI C header files... " >&6; }
14258if ${ac_cv_header_stdc+:} false; then :
14259  $as_echo_n "(cached) " >&6
14260else
14261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262/* end confdefs.h.  */
14263#include <stdlib.h>
14264#include <stdarg.h>
14265#include <string.h>
14266#include <float.h>
14267
14268int
14269main ()
14270{
14271
14272  ;
14273  return 0;
14274}
14275_ACEOF
14276if ac_fn_c_try_compile "$LINENO"; then :
14277  ac_cv_header_stdc=yes
14278else
14279  ac_cv_header_stdc=no
14280fi
14281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14282
14283if test $ac_cv_header_stdc = yes; then
14284  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286/* end confdefs.h.  */
14287#include <string.h>
14288
14289_ACEOF
14290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14291  $EGREP "memchr" >/dev/null 2>&1; then :
14292
14293else
14294  ac_cv_header_stdc=no
14295fi
14296rm -f conftest*
14297
14298fi
14299
14300if test $ac_cv_header_stdc = yes; then
14301  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303/* end confdefs.h.  */
14304#include <stdlib.h>
14305
14306_ACEOF
14307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14308  $EGREP "free" >/dev/null 2>&1; then :
14309
14310else
14311  ac_cv_header_stdc=no
14312fi
14313rm -f conftest*
14314
14315fi
14316
14317if test $ac_cv_header_stdc = yes; then
14318  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14319  if test "$cross_compiling" = yes; then :
14320  :
14321else
14322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323/* end confdefs.h.  */
14324#include <ctype.h>
14325#include <stdlib.h>
14326#if ((' ' & 0x0FF) == 0x020)
14327# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14328# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14329#else
14330# define ISLOWER(c) \
14331		   (('a' <= (c) && (c) <= 'i') \
14332		     || ('j' <= (c) && (c) <= 'r') \
14333		     || ('s' <= (c) && (c) <= 'z'))
14334# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14335#endif
14336
14337#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14338int
14339main ()
14340{
14341  int i;
14342  for (i = 0; i < 256; i++)
14343    if (XOR (islower (i), ISLOWER (i))
14344	|| toupper (i) != TOUPPER (i))
14345      return 2;
14346  return 0;
14347}
14348_ACEOF
14349if ac_fn_c_try_run "$LINENO"; then :
14350
14351else
14352  ac_cv_header_stdc=no
14353fi
14354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14355  conftest.$ac_objext conftest.beam conftest.$ac_ext
14356fi
14357
14358fi
14359fi
14360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14361$as_echo "$ac_cv_header_stdc" >&6; }
14362if test $ac_cv_header_stdc = yes; then
14363
14364$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14365
14366fi
14367
14368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
14369$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
14370if ${ac_cv_header_sys_wait_h+:} false; then :
14371  $as_echo_n "(cached) " >&6
14372else
14373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374/* end confdefs.h.  */
14375#include <sys/types.h>
14376#include <sys/wait.h>
14377#ifndef WEXITSTATUS
14378# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14379#endif
14380#ifndef WIFEXITED
14381# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14382#endif
14383
14384int
14385main ()
14386{
14387  int s;
14388  wait (&s);
14389  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14390  ;
14391  return 0;
14392}
14393_ACEOF
14394if ac_fn_c_try_compile "$LINENO"; then :
14395  ac_cv_header_sys_wait_h=yes
14396else
14397  ac_cv_header_sys_wait_h=no
14398fi
14399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14400fi
14401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
14402$as_echo "$ac_cv_header_sys_wait_h" >&6; }
14403if test $ac_cv_header_sys_wait_h = yes; then
14404
14405$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
14406
14407fi
14408
14409for ac_header in arpa/inet.h fcntl.h inttypes.h limits.h netdb.h netinet/in.h stddef.h stdlib.h string.h sys/socket.h sys/statvfs.h sys/time.h syslog.h unistd.h
14410do :
14411  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14412ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14413if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14414  cat >>confdefs.h <<_ACEOF
14415#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14416_ACEOF
14417
14418else
14419  as_fn_error $? "One of required headers was not found" "$LINENO" 5
14420fi
14421
14422done
14423
14424
14425# Checks for typedefs, structures, and compiler characteristics.
14426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14427$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14428if ${ac_cv_c_const+:} false; then :
14429  $as_echo_n "(cached) " >&6
14430else
14431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432/* end confdefs.h.  */
14433
14434int
14435main ()
14436{
14437
14438#ifndef __cplusplus
14439  /* Ultrix mips cc rejects this sort of thing.  */
14440  typedef int charset[2];
14441  const charset cs = { 0, 0 };
14442  /* SunOS 4.1.1 cc rejects this.  */
14443  char const *const *pcpcc;
14444  char **ppc;
14445  /* NEC SVR4.0.2 mips cc rejects this.  */
14446  struct point {int x, y;};
14447  static struct point const zero = {0,0};
14448  /* AIX XL C 1.02.0.0 rejects this.
14449     It does not let you subtract one const X* pointer from another in
14450     an arm of an if-expression whose if-part is not a constant
14451     expression */
14452  const char *g = "string";
14453  pcpcc = &g + (g ? g-g : 0);
14454  /* HPUX 7.0 cc rejects these. */
14455  ++pcpcc;
14456  ppc = (char**) pcpcc;
14457  pcpcc = (char const *const *) ppc;
14458  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14459    char tx;
14460    char *t = &tx;
14461    char const *s = 0 ? (char *) 0 : (char const *) 0;
14462
14463    *t++ = 0;
14464    if (s) return 0;
14465  }
14466  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14467    int x[] = {25, 17};
14468    const int *foo = &x[0];
14469    ++foo;
14470  }
14471  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14472    typedef const int *iptr;
14473    iptr p = 0;
14474    ++p;
14475  }
14476  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14477       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14478    struct s { int j; const int *ap[3]; } bx;
14479    struct s *b = &bx; b->j = 5;
14480  }
14481  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14482    const int foo = 10;
14483    if (!foo) return 0;
14484  }
14485  return !cs[0] && !zero.x;
14486#endif
14487
14488  ;
14489  return 0;
14490}
14491_ACEOF
14492if ac_fn_c_try_compile "$LINENO"; then :
14493  ac_cv_c_const=yes
14494else
14495  ac_cv_c_const=no
14496fi
14497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498fi
14499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14500$as_echo "$ac_cv_c_const" >&6; }
14501if test $ac_cv_c_const = no; then
14502
14503$as_echo "#define const /**/" >>confdefs.h
14504
14505fi
14506
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14508$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14509if ${ac_cv_c_bigendian+:} false; then :
14510  $as_echo_n "(cached) " >&6
14511else
14512  ac_cv_c_bigendian=unknown
14513    # See if we're dealing with a universal compiler.
14514    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515/* end confdefs.h.  */
14516#ifndef __APPLE_CC__
14517	       not a universal capable compiler
14518	     #endif
14519	     typedef int dummy;
14520
14521_ACEOF
14522if ac_fn_c_try_compile "$LINENO"; then :
14523
14524	# Check for potential -arch flags.  It is not universal unless
14525	# there are at least two -arch flags with different values.
14526	ac_arch=
14527	ac_prev=
14528	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14529	 if test -n "$ac_prev"; then
14530	   case $ac_word in
14531	     i?86 | x86_64 | ppc | ppc64)
14532	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14533		 ac_arch=$ac_word
14534	       else
14535		 ac_cv_c_bigendian=universal
14536		 break
14537	       fi
14538	       ;;
14539	   esac
14540	   ac_prev=
14541	 elif test "x$ac_word" = "x-arch"; then
14542	   ac_prev=arch
14543	 fi
14544       done
14545fi
14546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14547    if test $ac_cv_c_bigendian = unknown; then
14548      # See if sys/param.h defines the BYTE_ORDER macro.
14549      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550/* end confdefs.h.  */
14551#include <sys/types.h>
14552	     #include <sys/param.h>
14553
14554int
14555main ()
14556{
14557#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14558		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14559		     && LITTLE_ENDIAN)
14560	      bogus endian macros
14561	     #endif
14562
14563  ;
14564  return 0;
14565}
14566_ACEOF
14567if ac_fn_c_try_compile "$LINENO"; then :
14568  # It does; now see whether it defined to BIG_ENDIAN or not.
14569	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570/* end confdefs.h.  */
14571#include <sys/types.h>
14572		#include <sys/param.h>
14573
14574int
14575main ()
14576{
14577#if BYTE_ORDER != BIG_ENDIAN
14578		 not big endian
14579		#endif
14580
14581  ;
14582  return 0;
14583}
14584_ACEOF
14585if ac_fn_c_try_compile "$LINENO"; then :
14586  ac_cv_c_bigendian=yes
14587else
14588  ac_cv_c_bigendian=no
14589fi
14590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14591fi
14592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14593    fi
14594    if test $ac_cv_c_bigendian = unknown; then
14595      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14596      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14597/* end confdefs.h.  */
14598#include <limits.h>
14599
14600int
14601main ()
14602{
14603#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14604	      bogus endian macros
14605	     #endif
14606
14607  ;
14608  return 0;
14609}
14610_ACEOF
14611if ac_fn_c_try_compile "$LINENO"; then :
14612  # It does; now see whether it defined to _BIG_ENDIAN or not.
14613	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614/* end confdefs.h.  */
14615#include <limits.h>
14616
14617int
14618main ()
14619{
14620#ifndef _BIG_ENDIAN
14621		 not big endian
14622		#endif
14623
14624  ;
14625  return 0;
14626}
14627_ACEOF
14628if ac_fn_c_try_compile "$LINENO"; then :
14629  ac_cv_c_bigendian=yes
14630else
14631  ac_cv_c_bigendian=no
14632fi
14633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14634fi
14635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14636    fi
14637    if test $ac_cv_c_bigendian = unknown; then
14638      # Compile a test program.
14639      if test "$cross_compiling" = yes; then :
14640  # Try to guess by grepping values from an object file.
14641	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14642/* end confdefs.h.  */
14643short int ascii_mm[] =
14644		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14645		short int ascii_ii[] =
14646		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14647		int use_ascii (int i) {
14648		  return ascii_mm[i] + ascii_ii[i];
14649		}
14650		short int ebcdic_ii[] =
14651		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14652		short int ebcdic_mm[] =
14653		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14654		int use_ebcdic (int i) {
14655		  return ebcdic_mm[i] + ebcdic_ii[i];
14656		}
14657		extern int foo;
14658
14659int
14660main ()
14661{
14662return use_ascii (foo) == use_ebcdic (foo);
14663  ;
14664  return 0;
14665}
14666_ACEOF
14667if ac_fn_c_try_compile "$LINENO"; then :
14668  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14669	      ac_cv_c_bigendian=yes
14670	    fi
14671	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14672	      if test "$ac_cv_c_bigendian" = unknown; then
14673		ac_cv_c_bigendian=no
14674	      else
14675		# finding both strings is unlikely to happen, but who knows?
14676		ac_cv_c_bigendian=unknown
14677	      fi
14678	    fi
14679fi
14680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14681else
14682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683/* end confdefs.h.  */
14684$ac_includes_default
14685int
14686main ()
14687{
14688
14689	     /* Are we little or big endian?  From Harbison&Steele.  */
14690	     union
14691	     {
14692	       long int l;
14693	       char c[sizeof (long int)];
14694	     } u;
14695	     u.l = 1;
14696	     return u.c[sizeof (long int) - 1] == 1;
14697
14698  ;
14699  return 0;
14700}
14701_ACEOF
14702if ac_fn_c_try_run "$LINENO"; then :
14703  ac_cv_c_bigendian=no
14704else
14705  ac_cv_c_bigendian=yes
14706fi
14707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14708  conftest.$ac_objext conftest.beam conftest.$ac_ext
14709fi
14710
14711    fi
14712fi
14713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14714$as_echo "$ac_cv_c_bigendian" >&6; }
14715 case $ac_cv_c_bigendian in #(
14716   yes)
14717     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14718;; #(
14719   no)
14720      ;; #(
14721   universal)
14722
14723$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14724
14725     ;; #(
14726   *)
14727     as_fn_error $? "unknown endianness
14728 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14729 esac
14730
14731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14732$as_echo_n "checking for inline... " >&6; }
14733if ${ac_cv_c_inline+:} false; then :
14734  $as_echo_n "(cached) " >&6
14735else
14736  ac_cv_c_inline=no
14737for ac_kw in inline __inline__ __inline; do
14738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14739/* end confdefs.h.  */
14740#ifndef __cplusplus
14741typedef int foo_t;
14742static $ac_kw foo_t static_foo () {return 0; }
14743$ac_kw foo_t foo () {return 0; }
14744#endif
14745
14746_ACEOF
14747if ac_fn_c_try_compile "$LINENO"; then :
14748  ac_cv_c_inline=$ac_kw
14749fi
14750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14751  test "$ac_cv_c_inline" != no && break
14752done
14753
14754fi
14755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14756$as_echo "$ac_cv_c_inline" >&6; }
14757
14758case $ac_cv_c_inline in
14759  inline | yes) ;;
14760  *)
14761    case $ac_cv_c_inline in
14762      no) ac_val=;;
14763      *) ac_val=$ac_cv_c_inline;;
14764    esac
14765    cat >>confdefs.h <<_ACEOF
14766#ifndef __cplusplus
14767#define inline $ac_val
14768#endif
14769_ACEOF
14770    ;;
14771esac
14772
14773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14774$as_echo_n "checking for working volatile... " >&6; }
14775if ${ac_cv_c_volatile+:} false; then :
14776  $as_echo_n "(cached) " >&6
14777else
14778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779/* end confdefs.h.  */
14780
14781int
14782main ()
14783{
14784
14785volatile int x;
14786int * volatile y = (int *) 0;
14787return !x && !y;
14788  ;
14789  return 0;
14790}
14791_ACEOF
14792if ac_fn_c_try_compile "$LINENO"; then :
14793  ac_cv_c_volatile=yes
14794else
14795  ac_cv_c_volatile=no
14796fi
14797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14798fi
14799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14800$as_echo "$ac_cv_c_volatile" >&6; }
14801if test $ac_cv_c_volatile = no; then
14802
14803$as_echo "#define volatile /**/" >>confdefs.h
14804
14805fi
14806
14807
14808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
14809$as_echo_n "checking for flexible array members... " >&6; }
14810if ${ac_cv_c_flexmember+:} false; then :
14811  $as_echo_n "(cached) " >&6
14812else
14813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814/* end confdefs.h.  */
14815#include <stdlib.h>
14816	    #include <stdio.h>
14817	    #include <stddef.h>
14818	    struct s { int n; double d[]; };
14819int
14820main ()
14821{
14822int m = getchar ();
14823	    struct s *p = malloc (offsetof (struct s, d)
14824				  + m * sizeof (double));
14825	    p->d[0] = 0.0;
14826	    return p->d != (double *) NULL;
14827  ;
14828  return 0;
14829}
14830_ACEOF
14831if ac_fn_c_try_compile "$LINENO"; then :
14832  ac_cv_c_flexmember=yes
14833else
14834  ac_cv_c_flexmember=no
14835fi
14836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14837fi
14838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
14839$as_echo "$ac_cv_c_flexmember" >&6; }
14840  if test $ac_cv_c_flexmember = yes; then
14841
14842$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
14843
14844  else
14845    $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
14846
14847  fi
14848
14849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14850$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14851if ${ac_cv_header_stdbool_h+:} false; then :
14852  $as_echo_n "(cached) " >&6
14853else
14854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855/* end confdefs.h.  */
14856
14857             #include <stdbool.h>
14858             #ifndef bool
14859              "error: bool is not defined"
14860             #endif
14861             #ifndef false
14862              "error: false is not defined"
14863             #endif
14864             #if false
14865              "error: false is not 0"
14866             #endif
14867             #ifndef true
14868              "error: true is not defined"
14869             #endif
14870             #if true != 1
14871              "error: true is not 1"
14872             #endif
14873             #ifndef __bool_true_false_are_defined
14874              "error: __bool_true_false_are_defined is not defined"
14875             #endif
14876
14877             struct s { _Bool s: 1; _Bool t; } s;
14878
14879             char a[true == 1 ? 1 : -1];
14880             char b[false == 0 ? 1 : -1];
14881             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14882             char d[(bool) 0.5 == true ? 1 : -1];
14883             /* See body of main program for 'e'.  */
14884             char f[(_Bool) 0.0 == false ? 1 : -1];
14885             char g[true];
14886             char h[sizeof (_Bool)];
14887             char i[sizeof s.t];
14888             enum { j = false, k = true, l = false * true, m = true * 256 };
14889             /* The following fails for
14890                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14891             _Bool n[m];
14892             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14893             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14894             /* Catch a bug in an HP-UX C compiler.  See
14895                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14896                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14897              */
14898             _Bool q = true;
14899             _Bool *pq = &q;
14900
14901int
14902main ()
14903{
14904
14905             bool e = &s;
14906             *pq |= q;
14907             *pq |= ! q;
14908             /* Refer to every declared value, to avoid compiler optimizations.  */
14909             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14910                     + !m + !n + !o + !p + !q + !pq);
14911
14912  ;
14913  return 0;
14914}
14915_ACEOF
14916if ac_fn_c_try_compile "$LINENO"; then :
14917  ac_cv_header_stdbool_h=yes
14918else
14919  ac_cv_header_stdbool_h=no
14920fi
14921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14922fi
14923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14924$as_echo "$ac_cv_header_stdbool_h" >&6; }
14925   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14926if test "x$ac_cv_type__Bool" = xyes; then :
14927
14928cat >>confdefs.h <<_ACEOF
14929#define HAVE__BOOL 1
14930_ACEOF
14931
14932
14933fi
14934
14935
14936if test $ac_cv_header_stdbool_h = yes; then
14937
14938$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
14939
14940fi
14941
14942ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
14943case $ac_cv_c_int8_t in #(
14944  no|yes) ;; #(
14945  *)
14946
14947cat >>confdefs.h <<_ACEOF
14948#define int8_t $ac_cv_c_int8_t
14949_ACEOF
14950;;
14951esac
14952
14953ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
14954case $ac_cv_c_uint8_t in #(
14955  no|yes) ;; #(
14956  *)
14957
14958$as_echo "#define _UINT8_T 1" >>confdefs.h
14959
14960
14961cat >>confdefs.h <<_ACEOF
14962#define uint8_t $ac_cv_c_uint8_t
14963_ACEOF
14964;;
14965  esac
14966
14967ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
14968case $ac_cv_c_int16_t in #(
14969  no|yes) ;; #(
14970  *)
14971
14972cat >>confdefs.h <<_ACEOF
14973#define int16_t $ac_cv_c_int16_t
14974_ACEOF
14975;;
14976esac
14977
14978ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
14979case $ac_cv_c_uint16_t in #(
14980  no|yes) ;; #(
14981  *)
14982
14983
14984cat >>confdefs.h <<_ACEOF
14985#define uint16_t $ac_cv_c_uint16_t
14986_ACEOF
14987;;
14988  esac
14989
14990ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
14991case $ac_cv_c_int32_t in #(
14992  no|yes) ;; #(
14993  *)
14994
14995cat >>confdefs.h <<_ACEOF
14996#define int32_t $ac_cv_c_int32_t
14997_ACEOF
14998;;
14999esac
15000
15001ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
15002case $ac_cv_c_uint32_t in #(
15003  no|yes) ;; #(
15004  *)
15005
15006$as_echo "#define _UINT32_T 1" >>confdefs.h
15007
15008
15009cat >>confdefs.h <<_ACEOF
15010#define uint32_t $ac_cv_c_uint32_t
15011_ACEOF
15012;;
15013  esac
15014
15015ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15016case $ac_cv_c_int64_t in #(
15017  no|yes) ;; #(
15018  *)
15019
15020cat >>confdefs.h <<_ACEOF
15021#define int64_t $ac_cv_c_int64_t
15022_ACEOF
15023;;
15024esac
15025
15026ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15027case $ac_cv_c_uint64_t in #(
15028  no|yes) ;; #(
15029  *)
15030
15031$as_echo "#define _UINT64_T 1" >>confdefs.h
15032
15033
15034cat >>confdefs.h <<_ACEOF
15035#define uint64_t $ac_cv_c_uint64_t
15036_ACEOF
15037;;
15038  esac
15039
15040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15041$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15042if ${ac_cv_type_uid_t+:} false; then :
15043  $as_echo_n "(cached) " >&6
15044else
15045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046/* end confdefs.h.  */
15047#include <sys/types.h>
15048
15049_ACEOF
15050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15051  $EGREP "uid_t" >/dev/null 2>&1; then :
15052  ac_cv_type_uid_t=yes
15053else
15054  ac_cv_type_uid_t=no
15055fi
15056rm -f conftest*
15057
15058fi
15059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15060$as_echo "$ac_cv_type_uid_t" >&6; }
15061if test $ac_cv_type_uid_t = no; then
15062
15063$as_echo "#define uid_t int" >>confdefs.h
15064
15065
15066$as_echo "#define gid_t int" >>confdefs.h
15067
15068fi
15069
15070ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15071if test "x$ac_cv_type_mode_t" = xyes; then :
15072
15073else
15074
15075cat >>confdefs.h <<_ACEOF
15076#define mode_t int
15077_ACEOF
15078
15079fi
15080
15081ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15082if test "x$ac_cv_type_off_t" = xyes; then :
15083
15084else
15085
15086cat >>confdefs.h <<_ACEOF
15087#define off_t long int
15088_ACEOF
15089
15090fi
15091
15092ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15093if test "x$ac_cv_type_pid_t" = xyes; then :
15094
15095else
15096
15097cat >>confdefs.h <<_ACEOF
15098#define pid_t int
15099_ACEOF
15100
15101fi
15102
15103ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15104if test "x$ac_cv_type_size_t" = xyes; then :
15105
15106else
15107
15108cat >>confdefs.h <<_ACEOF
15109#define size_t unsigned int
15110_ACEOF
15111
15112fi
15113
15114ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
15115if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
15116
15117cat >>confdefs.h <<_ACEOF
15118#define HAVE_STRUCT_STAT_ST_BLOCKS 1
15119_ACEOF
15120
15121
15122$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
15123
15124else
15125  case " $LIBOBJS " in
15126  *" fileblocks.$ac_objext "* ) ;;
15127  *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
15128 ;;
15129esac
15130
15131fi
15132
15133
15134ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
15135if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
15136
15137cat >>confdefs.h <<_ACEOF
15138#define HAVE_STRUCT_STAT_ST_RDEV 1
15139_ACEOF
15140
15141
15142fi
15143
15144ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
15145if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
15146
15147cat >>confdefs.h <<_ACEOF
15148#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
15149_ACEOF
15150
15151
15152fi
15153
15154ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
15155if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
15156
15157cat >>confdefs.h <<_ACEOF
15158#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15159_ACEOF
15160
15161
15162fi
15163
15164ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
15165if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
15166
15167cat >>confdefs.h <<_ACEOF
15168#define HAVE_STRUCT_STAT_ST_FLAGS 1
15169_ACEOF
15170
15171
15172fi
15173
15174ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
15175#include <sys/types.h>
15176#include <sys/socket.h>
15177#include <netinet/in.h>
15178
15179"
15180if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
15181
15182$as_echo "#define HAVE_SOCKADDR_SIN_LEN 1" >>confdefs.h
15183
15184fi
15185
15186
15187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15188$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15189if ${ac_cv_header_time+:} false; then :
15190  $as_echo_n "(cached) " >&6
15191else
15192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15193/* end confdefs.h.  */
15194#include <sys/types.h>
15195#include <sys/time.h>
15196#include <time.h>
15197
15198int
15199main ()
15200{
15201if ((struct tm *) 0)
15202return 0;
15203  ;
15204  return 0;
15205}
15206_ACEOF
15207if ac_fn_c_try_compile "$LINENO"; then :
15208  ac_cv_header_time=yes
15209else
15210  ac_cv_header_time=no
15211fi
15212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15213fi
15214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15215$as_echo "$ac_cv_header_time" >&6; }
15216if test $ac_cv_header_time = yes; then
15217
15218$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15219
15220fi
15221
15222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
15223$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15224if ${ac_cv_struct_tm+:} false; then :
15225  $as_echo_n "(cached) " >&6
15226else
15227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228/* end confdefs.h.  */
15229#include <sys/types.h>
15230#include <time.h>
15231
15232int
15233main ()
15234{
15235struct tm tm;
15236				     int *p = &tm.tm_sec;
15237				     return !p;
15238  ;
15239  return 0;
15240}
15241_ACEOF
15242if ac_fn_c_try_compile "$LINENO"; then :
15243  ac_cv_struct_tm=time.h
15244else
15245  ac_cv_struct_tm=sys/time.h
15246fi
15247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15248fi
15249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
15250$as_echo "$ac_cv_struct_tm" >&6; }
15251if test $ac_cv_struct_tm = sys/time.h; then
15252
15253$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
15254
15255fi
15256
15257ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
15258#ifdef TM_IN_SYS_TIME
15259#  include <sys/time.h>
15260#else
15261#  include <time.h>
15262#endif
15263
15264"
15265if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
15266
15267cat >>confdefs.h <<_ACEOF
15268#define HAVE_STRUCT_TM_TM_GMTOFF 1
15269_ACEOF
15270
15271
15272fi
15273
15274
15275# Check whether --enable-largefile was given.
15276if test "${enable_largefile+set}" = set; then :
15277  enableval=$enable_largefile;
15278fi
15279
15280if test "$enable_largefile" != no; then
15281
15282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15283$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15284if ${ac_cv_sys_largefile_CC+:} false; then :
15285  $as_echo_n "(cached) " >&6
15286else
15287  ac_cv_sys_largefile_CC=no
15288     if test "$GCC" != yes; then
15289       ac_save_CC=$CC
15290       while :; do
15291	 # IRIX 6.2 and later do not support large files by default,
15292	 # so use the C compiler's -n32 option if that helps.
15293	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294/* end confdefs.h.  */
15295#include <sys/types.h>
15296 /* Check that off_t can represent 2**63 - 1 correctly.
15297    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15298    since some C++ compilers masquerading as C compilers
15299    incorrectly reject 9223372036854775807.  */
15300#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15301  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15302		       && LARGE_OFF_T % 2147483647 == 1)
15303		      ? 1 : -1];
15304int
15305main ()
15306{
15307
15308  ;
15309  return 0;
15310}
15311_ACEOF
15312	 if ac_fn_c_try_compile "$LINENO"; then :
15313  break
15314fi
15315rm -f core conftest.err conftest.$ac_objext
15316	 CC="$CC -n32"
15317	 if ac_fn_c_try_compile "$LINENO"; then :
15318  ac_cv_sys_largefile_CC=' -n32'; break
15319fi
15320rm -f core conftest.err conftest.$ac_objext
15321	 break
15322       done
15323       CC=$ac_save_CC
15324       rm -f conftest.$ac_ext
15325    fi
15326fi
15327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15328$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15329  if test "$ac_cv_sys_largefile_CC" != no; then
15330    CC=$CC$ac_cv_sys_largefile_CC
15331  fi
15332
15333  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15334$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15335if ${ac_cv_sys_file_offset_bits+:} false; then :
15336  $as_echo_n "(cached) " >&6
15337else
15338  while :; do
15339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340/* end confdefs.h.  */
15341#include <sys/types.h>
15342 /* Check that off_t can represent 2**63 - 1 correctly.
15343    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15344    since some C++ compilers masquerading as C compilers
15345    incorrectly reject 9223372036854775807.  */
15346#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15347  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15348		       && LARGE_OFF_T % 2147483647 == 1)
15349		      ? 1 : -1];
15350int
15351main ()
15352{
15353
15354  ;
15355  return 0;
15356}
15357_ACEOF
15358if ac_fn_c_try_compile "$LINENO"; then :
15359  ac_cv_sys_file_offset_bits=no; break
15360fi
15361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363/* end confdefs.h.  */
15364#define _FILE_OFFSET_BITS 64
15365#include <sys/types.h>
15366 /* Check that off_t can represent 2**63 - 1 correctly.
15367    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15368    since some C++ compilers masquerading as C compilers
15369    incorrectly reject 9223372036854775807.  */
15370#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15371  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15372		       && LARGE_OFF_T % 2147483647 == 1)
15373		      ? 1 : -1];
15374int
15375main ()
15376{
15377
15378  ;
15379  return 0;
15380}
15381_ACEOF
15382if ac_fn_c_try_compile "$LINENO"; then :
15383  ac_cv_sys_file_offset_bits=64; break
15384fi
15385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15386  ac_cv_sys_file_offset_bits=unknown
15387  break
15388done
15389fi
15390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15391$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15392case $ac_cv_sys_file_offset_bits in #(
15393  no | unknown) ;;
15394  *)
15395cat >>confdefs.h <<_ACEOF
15396#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15397_ACEOF
15398;;
15399esac
15400rm -rf conftest*
15401  if test $ac_cv_sys_file_offset_bits = unknown; then
15402    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15403$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15404if ${ac_cv_sys_large_files+:} false; then :
15405  $as_echo_n "(cached) " >&6
15406else
15407  while :; do
15408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409/* end confdefs.h.  */
15410#include <sys/types.h>
15411 /* Check that off_t can represent 2**63 - 1 correctly.
15412    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15413    since some C++ compilers masquerading as C compilers
15414    incorrectly reject 9223372036854775807.  */
15415#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15416  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15417		       && LARGE_OFF_T % 2147483647 == 1)
15418		      ? 1 : -1];
15419int
15420main ()
15421{
15422
15423  ;
15424  return 0;
15425}
15426_ACEOF
15427if ac_fn_c_try_compile "$LINENO"; then :
15428  ac_cv_sys_large_files=no; break
15429fi
15430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432/* end confdefs.h.  */
15433#define _LARGE_FILES 1
15434#include <sys/types.h>
15435 /* Check that off_t can represent 2**63 - 1 correctly.
15436    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15437    since some C++ compilers masquerading as C compilers
15438    incorrectly reject 9223372036854775807.  */
15439#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15440  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15441		       && LARGE_OFF_T % 2147483647 == 1)
15442		      ? 1 : -1];
15443int
15444main ()
15445{
15446
15447  ;
15448  return 0;
15449}
15450_ACEOF
15451if ac_fn_c_try_compile "$LINENO"; then :
15452  ac_cv_sys_large_files=1; break
15453fi
15454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15455  ac_cv_sys_large_files=unknown
15456  break
15457done
15458fi
15459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15460$as_echo "$ac_cv_sys_large_files" >&6; }
15461case $ac_cv_sys_large_files in #(
15462  no | unknown) ;;
15463  *)
15464cat >>confdefs.h <<_ACEOF
15465#define _LARGE_FILES $ac_cv_sys_large_files
15466_ACEOF
15467;;
15468esac
15469rm -rf conftest*
15470  fi
15471
15472
15473fi
15474
15475
15476# Checks for library functions.
15477ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
15478if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
15479  ac_have_decl=1
15480else
15481  ac_have_decl=0
15482fi
15483
15484cat >>confdefs.h <<_ACEOF
15485#define HAVE_DECL_STRERROR_R $ac_have_decl
15486_ACEOF
15487
15488for ac_func in strerror_r
15489do :
15490  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
15491if test "x$ac_cv_func_strerror_r" = xyes; then :
15492  cat >>confdefs.h <<_ACEOF
15493#define HAVE_STRERROR_R 1
15494_ACEOF
15495
15496fi
15497done
15498
15499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
15500$as_echo_n "checking whether strerror_r returns char *... " >&6; }
15501if ${ac_cv_func_strerror_r_char_p+:} false; then :
15502  $as_echo_n "(cached) " >&6
15503else
15504
15505    ac_cv_func_strerror_r_char_p=no
15506    if test $ac_cv_have_decl_strerror_r = yes; then
15507      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508/* end confdefs.h.  */
15509$ac_includes_default
15510int
15511main ()
15512{
15513
15514	  char buf[100];
15515	  char x = *strerror_r (0, buf, sizeof buf);
15516	  char *p = strerror_r (0, buf, sizeof buf);
15517	  return !p || x;
15518
15519  ;
15520  return 0;
15521}
15522_ACEOF
15523if ac_fn_c_try_compile "$LINENO"; then :
15524  ac_cv_func_strerror_r_char_p=yes
15525fi
15526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15527    else
15528      # strerror_r is not declared.  Choose between
15529      # systems that have relatively inaccessible declarations for the
15530      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
15531      # former has a strerror_r that returns char*, while the latter
15532      # has a strerror_r that returns `int'.
15533      # This test should segfault on the DEC system.
15534      if test "$cross_compiling" = yes; then :
15535  :
15536else
15537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15538/* end confdefs.h.  */
15539$ac_includes_default
15540	extern char *strerror_r ();
15541int
15542main ()
15543{
15544char buf[100];
15545	  char x = *strerror_r (0, buf, sizeof buf);
15546	  return ! isalpha (x);
15547  ;
15548  return 0;
15549}
15550_ACEOF
15551if ac_fn_c_try_run "$LINENO"; then :
15552  ac_cv_func_strerror_r_char_p=yes
15553fi
15554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15555  conftest.$ac_objext conftest.beam conftest.$ac_ext
15556fi
15557
15558    fi
15559
15560fi
15561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
15562$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
15563if test $ac_cv_func_strerror_r_char_p = yes; then
15564
15565$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
15566
15567fi
15568
15569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15570$as_echo_n "checking whether closedir returns void... " >&6; }
15571if ${ac_cv_func_closedir_void+:} false; then :
15572  $as_echo_n "(cached) " >&6
15573else
15574  if test "$cross_compiling" = yes; then :
15575  ac_cv_func_closedir_void=yes
15576else
15577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15578/* end confdefs.h.  */
15579$ac_includes_default
15580#include <$ac_header_dirent>
15581#ifndef __cplusplus
15582int closedir ();
15583#endif
15584
15585int
15586main ()
15587{
15588return closedir (opendir (".")) != 0;
15589  ;
15590  return 0;
15591}
15592_ACEOF
15593if ac_fn_c_try_run "$LINENO"; then :
15594  ac_cv_func_closedir_void=no
15595else
15596  ac_cv_func_closedir_void=yes
15597fi
15598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15599  conftest.$ac_objext conftest.beam conftest.$ac_ext
15600fi
15601
15602fi
15603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15604$as_echo "$ac_cv_func_closedir_void" >&6; }
15605if test $ac_cv_func_closedir_void = yes; then
15606
15607$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
15608
15609fi
15610
15611for ac_header in vfork.h
15612do :
15613  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15614if test "x$ac_cv_header_vfork_h" = xyes; then :
15615  cat >>confdefs.h <<_ACEOF
15616#define HAVE_VFORK_H 1
15617_ACEOF
15618
15619fi
15620
15621done
15622
15623for ac_func in fork vfork
15624do :
15625  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15626ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15627if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15628  cat >>confdefs.h <<_ACEOF
15629#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15630_ACEOF
15631
15632fi
15633done
15634
15635if test "x$ac_cv_func_fork" = xyes; then
15636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15637$as_echo_n "checking for working fork... " >&6; }
15638if ${ac_cv_func_fork_works+:} false; then :
15639  $as_echo_n "(cached) " >&6
15640else
15641  if test "$cross_compiling" = yes; then :
15642  ac_cv_func_fork_works=cross
15643else
15644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645/* end confdefs.h.  */
15646$ac_includes_default
15647int
15648main ()
15649{
15650
15651	  /* By Ruediger Kuhlmann. */
15652	  return fork () < 0;
15653
15654  ;
15655  return 0;
15656}
15657_ACEOF
15658if ac_fn_c_try_run "$LINENO"; then :
15659  ac_cv_func_fork_works=yes
15660else
15661  ac_cv_func_fork_works=no
15662fi
15663rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15664  conftest.$ac_objext conftest.beam conftest.$ac_ext
15665fi
15666
15667fi
15668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15669$as_echo "$ac_cv_func_fork_works" >&6; }
15670
15671else
15672  ac_cv_func_fork_works=$ac_cv_func_fork
15673fi
15674if test "x$ac_cv_func_fork_works" = xcross; then
15675  case $host in
15676    *-*-amigaos* | *-*-msdosdjgpp*)
15677      # Override, as these systems have only a dummy fork() stub
15678      ac_cv_func_fork_works=no
15679      ;;
15680    *)
15681      ac_cv_func_fork_works=yes
15682      ;;
15683  esac
15684  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15685$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15686fi
15687ac_cv_func_vfork_works=$ac_cv_func_vfork
15688if test "x$ac_cv_func_vfork" = xyes; then
15689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15690$as_echo_n "checking for working vfork... " >&6; }
15691if ${ac_cv_func_vfork_works+:} false; then :
15692  $as_echo_n "(cached) " >&6
15693else
15694  if test "$cross_compiling" = yes; then :
15695  ac_cv_func_vfork_works=cross
15696else
15697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15698/* end confdefs.h.  */
15699/* Thanks to Paul Eggert for this test.  */
15700$ac_includes_default
15701#include <sys/wait.h>
15702#ifdef HAVE_VFORK_H
15703# include <vfork.h>
15704#endif
15705/* On some sparc systems, changes by the child to local and incoming
15706   argument registers are propagated back to the parent.  The compiler
15707   is told about this with #include <vfork.h>, but some compilers
15708   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15709   static variable whose address is put into a register that is
15710   clobbered by the vfork.  */
15711static void
15712#ifdef __cplusplus
15713sparc_address_test (int arg)
15714# else
15715sparc_address_test (arg) int arg;
15716#endif
15717{
15718  static pid_t child;
15719  if (!child) {
15720    child = vfork ();
15721    if (child < 0) {
15722      perror ("vfork");
15723      _exit(2);
15724    }
15725    if (!child) {
15726      arg = getpid();
15727      write(-1, "", 0);
15728      _exit (arg);
15729    }
15730  }
15731}
15732
15733int
15734main ()
15735{
15736  pid_t parent = getpid ();
15737  pid_t child;
15738
15739  sparc_address_test (0);
15740
15741  child = vfork ();
15742
15743  if (child == 0) {
15744    /* Here is another test for sparc vfork register problems.  This
15745       test uses lots of local variables, at least as many local
15746       variables as main has allocated so far including compiler
15747       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15748       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15749       reuse the register of parent for one of the local variables,
15750       since it will think that parent can't possibly be used any more
15751       in this routine.  Assigning to the local variable will thus
15752       munge parent in the parent process.  */
15753    pid_t
15754      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15755      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15756    /* Convince the compiler that p..p7 are live; otherwise, it might
15757       use the same hardware register for all 8 local variables.  */
15758    if (p != p1 || p != p2 || p != p3 || p != p4
15759	|| p != p5 || p != p6 || p != p7)
15760      _exit(1);
15761
15762    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15763       from child file descriptors.  If the child closes a descriptor
15764       before it execs or exits, this munges the parent's descriptor
15765       as well.  Test for this by closing stdout in the child.  */
15766    _exit(close(fileno(stdout)) != 0);
15767  } else {
15768    int status;
15769    struct stat st;
15770
15771    while (wait(&status) != child)
15772      ;
15773    return (
15774	 /* Was there some problem with vforking?  */
15775	 child < 0
15776
15777	 /* Did the child fail?  (This shouldn't happen.)  */
15778	 || status
15779
15780	 /* Did the vfork/compiler bug occur?  */
15781	 || parent != getpid()
15782
15783	 /* Did the file descriptor bug occur?  */
15784	 || fstat(fileno(stdout), &st) != 0
15785	 );
15786  }
15787}
15788_ACEOF
15789if ac_fn_c_try_run "$LINENO"; then :
15790  ac_cv_func_vfork_works=yes
15791else
15792  ac_cv_func_vfork_works=no
15793fi
15794rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15795  conftest.$ac_objext conftest.beam conftest.$ac_ext
15796fi
15797
15798fi
15799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15800$as_echo "$ac_cv_func_vfork_works" >&6; }
15801
15802fi;
15803if test "x$ac_cv_func_fork_works" = xcross; then
15804  ac_cv_func_vfork_works=$ac_cv_func_vfork
15805  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15806$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15807fi
15808
15809if test "x$ac_cv_func_vfork_works" = xyes; then
15810
15811$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15812
15813else
15814
15815$as_echo "#define vfork fork" >>confdefs.h
15816
15817fi
15818if test "x$ac_cv_func_fork_works" = xyes; then
15819
15820$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15821
15822fi
15823
15824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
15825$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
15826if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
15827  $as_echo_n "(cached) " >&6
15828else
15829  rm -f conftest.sym conftest.file
15830echo >conftest.file
15831if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
15832  if test "$cross_compiling" = yes; then :
15833  ac_cv_func_lstat_dereferences_slashed_symlink=no
15834else
15835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836/* end confdefs.h.  */
15837$ac_includes_default
15838int
15839main ()
15840{
15841struct stat sbuf;
15842     /* Linux will dereference the symlink and fail, as required by POSIX.
15843	That is better in the sense that it means we will not
15844	have to compile and use the lstat wrapper.  */
15845     return lstat ("conftest.sym/", &sbuf) == 0;
15846  ;
15847  return 0;
15848}
15849_ACEOF
15850if ac_fn_c_try_run "$LINENO"; then :
15851  ac_cv_func_lstat_dereferences_slashed_symlink=yes
15852else
15853  ac_cv_func_lstat_dereferences_slashed_symlink=no
15854fi
15855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15856  conftest.$ac_objext conftest.beam conftest.$ac_ext
15857fi
15858
15859else
15860  # If the `ln -s' command failed, then we probably don't even
15861  # have an lstat function.
15862  ac_cv_func_lstat_dereferences_slashed_symlink=no
15863fi
15864rm -f conftest.sym conftest.file
15865
15866fi
15867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15868$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
15869
15870test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15871
15872cat >>confdefs.h <<_ACEOF
15873#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15874_ACEOF
15875
15876
15877if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
15878  case " $LIBOBJS " in
15879  *" lstat.$ac_objext "* ) ;;
15880  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
15881 ;;
15882esac
15883
15884fi
15885
15886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
15887$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
15888if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
15889  $as_echo_n "(cached) " >&6
15890else
15891  if test "$cross_compiling" = yes; then :
15892  ac_cv_func_lstat_empty_string_bug=yes
15893else
15894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895/* end confdefs.h.  */
15896$ac_includes_default
15897int
15898main ()
15899{
15900struct stat sbuf;
15901  return lstat ("", &sbuf) == 0;
15902  ;
15903  return 0;
15904}
15905_ACEOF
15906if ac_fn_c_try_run "$LINENO"; then :
15907  ac_cv_func_lstat_empty_string_bug=no
15908else
15909  ac_cv_func_lstat_empty_string_bug=yes
15910fi
15911rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15912  conftest.$ac_objext conftest.beam conftest.$ac_ext
15913fi
15914
15915fi
15916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
15917$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
15918if test $ac_cv_func_lstat_empty_string_bug = yes; then
15919  case " $LIBOBJS " in
15920  *" lstat.$ac_objext "* ) ;;
15921  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
15922 ;;
15923esac
15924
15925
15926cat >>confdefs.h <<_ACEOF
15927#define HAVE_LSTAT_EMPTY_STRING_BUG 1
15928_ACEOF
15929
15930fi
15931
15932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
15933$as_echo_n "checking for working memcmp... " >&6; }
15934if ${ac_cv_func_memcmp_working+:} false; then :
15935  $as_echo_n "(cached) " >&6
15936else
15937  if test "$cross_compiling" = yes; then :
15938  ac_cv_func_memcmp_working=no
15939else
15940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15941/* end confdefs.h.  */
15942$ac_includes_default
15943int
15944main ()
15945{
15946
15947  /* Some versions of memcmp are not 8-bit clean.  */
15948  char c0 = '\100', c1 = '\200', c2 = '\201';
15949  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15950    return 1;
15951
15952  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15953     or more and with at least one buffer not starting on a 4-byte boundary.
15954     William Lewis provided this test program.   */
15955  {
15956    char foo[21];
15957    char bar[21];
15958    int i;
15959    for (i = 0; i < 4; i++)
15960      {
15961	char *a = foo + i;
15962	char *b = bar + i;
15963	strcpy (a, "--------01111111");
15964	strcpy (b, "--------10000000");
15965	if (memcmp (a, b, 16) >= 0)
15966	  return 1;
15967      }
15968    return 0;
15969  }
15970
15971  ;
15972  return 0;
15973}
15974_ACEOF
15975if ac_fn_c_try_run "$LINENO"; then :
15976  ac_cv_func_memcmp_working=yes
15977else
15978  ac_cv_func_memcmp_working=no
15979fi
15980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15981  conftest.$ac_objext conftest.beam conftest.$ac_ext
15982fi
15983
15984fi
15985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
15986$as_echo "$ac_cv_func_memcmp_working" >&6; }
15987test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
15988  *" memcmp.$ac_objext "* ) ;;
15989  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15990 ;;
15991esac
15992
15993
15994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
15995$as_echo_n "checking whether stat accepts an empty string... " >&6; }
15996if ${ac_cv_func_stat_empty_string_bug+:} false; then :
15997  $as_echo_n "(cached) " >&6
15998else
15999  if test "$cross_compiling" = yes; then :
16000  ac_cv_func_stat_empty_string_bug=yes
16001else
16002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16003/* end confdefs.h.  */
16004$ac_includes_default
16005int
16006main ()
16007{
16008struct stat sbuf;
16009  return stat ("", &sbuf) == 0;
16010  ;
16011  return 0;
16012}
16013_ACEOF
16014if ac_fn_c_try_run "$LINENO"; then :
16015  ac_cv_func_stat_empty_string_bug=no
16016else
16017  ac_cv_func_stat_empty_string_bug=yes
16018fi
16019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16020  conftest.$ac_objext conftest.beam conftest.$ac_ext
16021fi
16022
16023fi
16024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
16025$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
16026if test $ac_cv_func_stat_empty_string_bug = yes; then
16027  case " $LIBOBJS " in
16028  *" stat.$ac_objext "* ) ;;
16029  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
16030 ;;
16031esac
16032
16033
16034cat >>confdefs.h <<_ACEOF
16035#define HAVE_STAT_EMPTY_STRING_BUG 1
16036_ACEOF
16037
16038fi
16039
16040
16041# rpl_malloc/rpl_realloc problem AC_FUNC_MALLOC/AC_FUNC_REALLOC !!!
16042for ac_func in malloc realloc reallocf
16043do :
16044  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16045ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16046if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16047  cat >>confdefs.h <<_ACEOF
16048#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16049_ACEOF
16050
16051fi
16052done
16053
16054
16055# required functions
16056for ac_func in atexit bzero ftruncate getaddrinfo getpass gettimeofday memmove memset mkdir realpath poll socket strchr strdup strtol strtoul ftello fseeko
16057do :
16058  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16059ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16060if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16061  cat >>confdefs.h <<_ACEOF
16062#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16063_ACEOF
16064
16065else
16066  as_fn_error $? "One of required functions was not found" "$LINENO" 5
16067fi
16068done
16069
16070
16071# optional temporary file function
16072for ac_func in mkstemp mktemp
16073do :
16074  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16075ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16076if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16077  cat >>confdefs.h <<_ACEOF
16078#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16079_ACEOF
16080
16081fi
16082done
16083
16084
16085# optional error conversion functions
16086for ac_func in strerror perror
16087do :
16088  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16089ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16090if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16091  cat >>confdefs.h <<_ACEOF
16092#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16093_ACEOF
16094
16095fi
16096done
16097
16098
16099# optional system functions
16100for ac_func in dup2 mlockall getcwd setproctitle
16101do :
16102  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16103ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16104if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16105  cat >>confdefs.h <<_ACEOF
16106#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16107_ACEOF
16108
16109fi
16110done
16111
16112
16113# check for mmap support
16114for ac_header in sys/mman.h
16115do :
16116  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
16117if test "x$ac_cv_header_sys_mman_h" = xyes; then :
16118  cat >>confdefs.h <<_ACEOF
16119#define HAVE_SYS_MMAN_H 1
16120_ACEOF
16121 for ac_func in mmap
16122do :
16123  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16124if test "x$ac_cv_func_mmap" = xyes; then :
16125  cat >>confdefs.h <<_ACEOF
16126#define HAVE_MMAP 1
16127_ACEOF
16128
16129fi
16130done
16131
16132fi
16133
16134done
16135
16136
16137# check for xattr support
16138for ac_header in attr/xattr.h
16139do :
16140  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
16141if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
16142  cat >>confdefs.h <<_ACEOF
16143#define HAVE_ATTR_XATTR_H 1
16144_ACEOF
16145
16146fi
16147
16148done
16149
16150for ac_header in sys/xattr.h
16151do :
16152  ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
16153if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
16154  cat >>confdefs.h <<_ACEOF
16155#define HAVE_SYS_XATTR_H 1
16156_ACEOF
16157
16158fi
16159
16160done
16161
16162
16163# check for bsd-locks (flock) optional header
16164for ac_header in sys/file.h
16165do :
16166  ac_fn_c_check_header_mongrel "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
16167if test "x$ac_cv_header_sys_file_h" = xyes; then :
16168  cat >>confdefs.h <<_ACEOF
16169#define HAVE_SYS_FILE_H 1
16170_ACEOF
16171
16172fi
16173
16174done
16175
16176
16177# check if poll is in poll.h instead of sys/poll.h
16178for ac_header in poll.h
16179do :
16180  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
16181if test "x$ac_cv_header_poll_h" = xyes; then :
16182  cat >>confdefs.h <<_ACEOF
16183#define HAVE_POLL_H 1
16184_ACEOF
16185 for ac_func in poll
16186do :
16187  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
16188if test "x$ac_cv_func_poll" = xyes; then :
16189  cat >>confdefs.h <<_ACEOF
16190#define HAVE_POLL 1
16191_ACEOF
16192
16193fi
16194done
16195
16196fi
16197
16198done
16199
16200
16201# optional I/O functions
16202for ac_func in pread pwrite readv writev posix_fadvise
16203do :
16204  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16205ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16206if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16207  cat >>confdefs.h <<_ACEOF
16208#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16209_ACEOF
16210
16211fi
16212done
16213
16214
16215# optional sleep function
16216for ac_func in nanosleep
16217do :
16218  ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
16219if test "x$ac_cv_func_nanosleep" = xyes; then :
16220  cat >>confdefs.h <<_ACEOF
16221#define HAVE_NANOSLEEP 1
16222_ACEOF
16223
16224fi
16225done
16226
16227
16228# optional resource usage function and headers
16229for ac_func in getrusage setitimer
16230do :
16231  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16232ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16233if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16234  cat >>confdefs.h <<_ACEOF
16235#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16236_ACEOF
16237
16238fi
16239done
16240
16241for ac_header in sys/rusage.h sys/resource.h
16242do :
16243  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16244ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16245if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16246  cat >>confdefs.h <<_ACEOF
16247#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16248_ACEOF
16249
16250fi
16251
16252done
16253
16254ac_fn_c_check_member "$LINENO" "struct rusage" "ru_maxrss" "ac_cv_member_struct_rusage_ru_maxrss" "
16255#include <sys/time.h>
16256#ifdef HAVE_GETRUSAGE
16257#  ifdef HAVE_SYS_RESOURCE_H
16258#    include <sys/resource.h>
16259#  endif
16260#  ifdef HAVE_SYS_RUSAGE_H
16261#    include <sys/rusage.h>
16262#  endif
16263#endif
16264
16265"
16266if test "x$ac_cv_member_struct_rusage_ru_maxrss" = xyes; then :
16267
16268cat >>confdefs.h <<_ACEOF
16269#define HAVE_STRUCT_RUSAGE_RU_MAXRSS 1
16270_ACEOF
16271
16272
16273fi
16274
16275
16276# optional clock related headers and functions
16277for ac_header in mach/mach.h mach/mach_time.h
16278do :
16279  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16280ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16281if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16282  cat >>confdefs.h <<_ACEOF
16283#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16284_ACEOF
16285 for ac_func in mach_absolute_time mach_timebase_info
16286do :
16287  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16288ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16289if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16290  cat >>confdefs.h <<_ACEOF
16291#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16292_ACEOF
16293
16294fi
16295done
16296
16297fi
16298
16299done
16300
16301for ac_func in clock_gettime
16302do :
16303  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
16304if test "x$ac_cv_func_clock_gettime" = xyes; then :
16305  cat >>confdefs.h <<_ACEOF
16306#define HAVE_CLOCK_GETTIME 1
16307_ACEOF
16308
16309fi
16310done
16311
16312
16313# optional getgroups headers
16314for ac_header in sys/sysctl.h
16315do :
16316  ac_fn_c_check_header_mongrel "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default"
16317if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
16318  cat >>confdefs.h <<_ACEOF
16319#define HAVE_SYS_SYSCTL_H 1
16320_ACEOF
16321
16322fi
16323
16324done
16325
16326
16327# optional out of memory killer header
16328for ac_header in linux/oom.h
16329do :
16330  ac_fn_c_check_header_mongrel "$LINENO" "linux/oom.h" "ac_cv_header_linux_oom_h" "$ac_includes_default"
16331if test "x$ac_cv_header_linux_oom_h" = xyes; then :
16332  cat >>confdefs.h <<_ACEOF
16333#define HAVE_LINUX_OOM_H 1
16334_ACEOF
16335
16336fi
16337
16338done
16339
16340
16341# optional uname header
16342for ac_header in sys/utsname.h
16343do :
16344  ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
16345if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
16346  cat >>confdefs.h <<_ACEOF
16347#define HAVE_SYS_UTSNAME_H 1
16348_ACEOF
16349
16350fi
16351
16352done
16353
16354
16355# glibc tuning
16356for ac_header in malloc.h
16357do :
16358  ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
16359if test "x$ac_cv_header_malloc_h" = xyes; then :
16360  cat >>confdefs.h <<_ACEOF
16361#define HAVE_MALLOC_H 1
16362_ACEOF
16363
16364fi
16365
16366done
16367
16368for ac_func in mallopt
16369do :
16370  ac_fn_c_check_func "$LINENO" "mallopt" "ac_cv_func_mallopt"
16371if test "x$ac_cv_func_mallopt" = xyes; then :
16372  cat >>confdefs.h <<_ACEOF
16373#define HAVE_MALLOPT 1
16374_ACEOF
16375
16376fi
16377done
16378
16379
16380# core dumps
16381for ac_header in sys/prctl.h
16382do :
16383  ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
16384if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
16385  cat >>confdefs.h <<_ACEOF
16386#define HAVE_SYS_PRCTL_H 1
16387_ACEOF
16388 for ac_func in prctl
16389do :
16390  ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
16391if test "x$ac_cv_func_prctl" = xyes; then :
16392  cat >>confdefs.h <<_ACEOF
16393#define HAVE_PRCTL 1
16394_ACEOF
16395
16396fi
16397done
16398
16399fi
16400
16401done
16402
16403
16404# check for asprintf
16405for ac_func in asprintf
16406do :
16407  ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
16408if test "x$ac_cv_func_asprintf" = xyes; then :
16409  cat >>confdefs.h <<_ACEOF
16410#define HAVE_ASPRINTF 1
16411_ACEOF
16412
16413fi
16414done
16415
16416
16417
16418
16419ac_ext=c
16420ac_cpp='$CPP $CPPFLAGS'
16421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16423ac_compiler_gnu=$ac_cv_c_compiler_gnu
16424
16425
16426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
16427$as_echo_n "checking for __builtin_bswap16... " >&6; }
16428if test "$cross_compiling" = yes; then :
16429  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16431as_fn_error $? "cannot run test program while cross compiling
16432See \`config.log' for more details" "$LINENO" 5; }
16433else
16434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435/* end confdefs.h.  */
16436#include <inttypes.h>
16437int
16438main ()
16439{
16440uint16_t x = __builtin_bswap16(0x1234)
16441  ;
16442  return 0;
16443}
16444_ACEOF
16445if ac_fn_c_try_run "$LINENO"; then :
16446
16447	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16448$as_echo "yes" >&6; }
16449
16450$as_echo "#define BSWAP16(x) __builtin_bswap16(x)" >>confdefs.h
16451
16452
16453else
16454
16455	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16456$as_echo "no" >&6; }
16457
16458$as_echo "#define BSWAP16(x) ((((x)<<8)&0xFF00) | (((x)>>8)&0xFF))" >>confdefs.h
16459
16460
16461fi
16462rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16463  conftest.$ac_objext conftest.beam conftest.$ac_ext
16464fi
16465
16466
16467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
16468$as_echo_n "checking for __builtin_bswap32... " >&6; }
16469if test "$cross_compiling" = yes; then :
16470  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16472as_fn_error $? "cannot run test program while cross compiling
16473See \`config.log' for more details" "$LINENO" 5; }
16474else
16475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476/* end confdefs.h.  */
16477#include <inttypes.h>
16478int
16479main ()
16480{
16481uint32_t x = __builtin_bswap32(0x12345678)
16482  ;
16483  return 0;
16484}
16485_ACEOF
16486if ac_fn_c_try_run "$LINENO"; then :
16487
16488	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16489$as_echo "yes" >&6; }
16490
16491$as_echo "#define BSWAP32(x) __builtin_bswap32(x)" >>confdefs.h
16492
16493
16494else
16495
16496	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16497$as_echo "no" >&6; }
16498
16499$as_echo "#define BSWAP32(x) ((((x)<<24)&0xFF000000) | (((x)<<8)&0xFF0000) | (((x)>>8)&0xFF00) | (((x)>>24)&0xFF))" >>confdefs.h
16500
16501
16502fi
16503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16504  conftest.$ac_objext conftest.beam conftest.$ac_ext
16505fi
16506
16507
16508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
16509$as_echo_n "checking for __builtin_bswap64... " >&6; }
16510if test "$cross_compiling" = yes; then :
16511  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16513as_fn_error $? "cannot run test program while cross compiling
16514See \`config.log' for more details" "$LINENO" 5; }
16515else
16516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16517/* end confdefs.h.  */
16518#include <inttypes.h>
16519int
16520main ()
16521{
16522uint64_t x = __builtin_bswap64(0x123456789ABCDEF0)
16523  ;
16524  return 0;
16525}
16526_ACEOF
16527if ac_fn_c_try_run "$LINENO"; then :
16528
16529	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16530$as_echo "yes" >&6; }
16531
16532$as_echo "#define BSWAP64(x) __builtin_bswap64(x)" >>confdefs.h
16533
16534
16535else
16536
16537	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16538$as_echo "no" >&6; }
16539
16540$as_echo "#define BSWAP64(x) ((((x)<<56)&0xFF00000000000000) | (((x)<<40)&0xFF000000000000) | (((x)<<24)&0xFF0000000000) | (((x)<<8)&0xFF00000000) | (((x)>>8)&0xFF000000) | (((x)>>24)&0xFF0000) | (((x)>>40)&0xFF00) | (((x)>>56)&0xFF))" >>confdefs.h
16541
16542
16543fi
16544rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16545  conftest.$ac_objext conftest.beam conftest.$ac_ext
16546fi
16547
16548
16549
16550# Check for Mac OS X's broken poll
16551if test "$ac_cv_func_poll" = "yes"; then
16552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll works on devices" >&5
16553$as_echo_n "checking if poll works on devices... " >&6; }
16554if test "$cross_compiling" = yes; then :
16555  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16557as_fn_error $? "cannot run test program while cross compiling
16558See \`config.log' for more details" "$LINENO" 5; }
16559else
16560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561/* end confdefs.h.  */
16562
16563#include <stdlib.h>
16564#include <fcntl.h>
16565#include <poll.h>
16566
16567int
16568main ()
16569{
16570
16571int main(void) {
16572	struct pollfd fds[1];
16573	int fd;
16574	fd = open("/dev/null", 1);
16575	fds[0].fd = fd;
16576	fds[0].events = POLLIN;
16577	fds[0].revents = 0;
16578	if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) {
16579		exit(1); /* Does not work for devices -- fail */
16580	}
16581		exit(0);
16582	}
16583
16584  ;
16585  return 0;
16586}
16587_ACEOF
16588if ac_fn_c_try_run "$LINENO"; then :
16589  ac_have_working_poll=yes
16590else
16591  ac_have_working_poll=no
16592fi
16593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16594  conftest.$ac_objext conftest.beam conftest.$ac_ext
16595fi
16596
16597if test "$ac_have_working_poll" = "no" ; then
16598
16599$as_echo "#define BROKEN_POLL 1" >>confdefs.h
16600
16601fi
16602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have_working_poll" >&5
16603$as_echo "$ac_have_working_poll" >&6; }
16604fi
16605
16606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_OP_and_fetch" >&5
16607$as_echo_n "checking for __sync_OP_and_fetch... " >&6; }
16608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16609/* end confdefs.h.  */
16610#include <sys/types.h>
16611int
16612main ()
16613{
16614unsigned long long int foo, bar; bar = __sync_add_and_fetch(&foo, 1); bar = __sync_sub_and_fetch(&foo, 1); bar = __sync_or_and_fetch(&foo, 1); bar = __sync_and_and_fetch(&foo, 1); bar = __sync_xor_and_fetch(&foo, 1);
16615  ;
16616  return 0;
16617}
16618_ACEOF
16619if ac_fn_c_try_link "$LINENO"; then :
16620  ac_have___sync_op_and_fetch=yes
16621else
16622  ac_have___sync_op_and_fetch=no
16623fi
16624rm -f core conftest.err conftest.$ac_objext \
16625    conftest$ac_exeext conftest.$ac_ext
16626if test "$ac_have___sync_op_and_fetch" = "yes" ; then
16627
16628$as_echo "#define HAVE___SYNC_OP_AND_FETCH 1" >>confdefs.h
16629
16630fi
16631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have___sync_op_and_fetch" >&5
16632$as_echo "$ac_have___sync_op_and_fetch" >&6; }
16633
16634
16635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_OP" >&5
16636$as_echo_n "checking for __sync_fetch_and_OP... " >&6; }
16637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638/* end confdefs.h.  */
16639#include <sys/types.h>
16640int
16641main ()
16642{
16643unsigned long long int foo, bar; bar = __sync_fetch_and_add(&foo, 1); bar = __sync_fetch_and_sub(&foo, 1); bar = __sync_fetch_and_or(&foo, 1); bar = __sync_fetch_and_and(&foo, 1); bar = __sync_fetch_and_xor(&foo, 1);
16644  ;
16645  return 0;
16646}
16647_ACEOF
16648if ac_fn_c_try_link "$LINENO"; then :
16649  ac_have___sync_fetch_and_op=yes
16650else
16651  ac_have___sync_fetch_and_op=no
16652fi
16653rm -f core conftest.err conftest.$ac_objext \
16654    conftest$ac_exeext conftest.$ac_ext
16655if test "$ac_have___sync_fetch_and_op" = "yes" ; then
16656
16657$as_echo "#define HAVE___SYNC_FETCH_AND_OP 1" >>confdefs.h
16658
16659fi
16660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have___sync_fetch_and_op" >&5
16661$as_echo "$ac_have___sync_fetch_and_op" >&6; }
16662
16663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5
16664$as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; }
16665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666/* end confdefs.h.  */
16667#include <sys/types.h>
16668int
16669main ()
16670{
16671unsigned long long int foo; int i,j; foo = 54; i = __sync_bool_compare_and_swap(&foo,54,7); j = __sync_bool_compare_and_swap(&foo,23,77);
16672  ;
16673  return 0;
16674}
16675_ACEOF
16676if ac_fn_c_try_link "$LINENO"; then :
16677  ac_have___sync_bool_compare_and_swap=yes
16678else
16679  ac_have___sync_bool_compare_and_swap=no
16680fi
16681rm -f core conftest.err conftest.$ac_objext \
16682    conftest$ac_exeext conftest.$ac_ext
16683if test "$ac_have___sync_bool_compare_and_swap" = "yes" ; then
16684
16685$as_echo "#define HAVE___SYNC_BOOL_COMPARE_AND_SWAP 1" >>confdefs.h
16686
16687fi
16688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have___sync_bool_compare_and_swap" >&5
16689$as_echo "$ac_have___sync_bool_compare_and_swap" >&6; }
16690
16691if test "$ac_have_atomics" != "no" ; then
16692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Atomic support" >&5
16693$as_echo_n "checking for _Atomic support... " >&6; }
16694	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695/* end confdefs.h.  */
16696#include <stdatomic.h>
16697int
16698main ()
16699{
16700_Atomic unsigned long long int foo; atomic_init(&foo,41); atomic_fetch_add(&foo,1);
16701  ;
16702  return 0;
16703}
16704_ACEOF
16705if ac_fn_c_try_link "$LINENO"; then :
16706  ac_have_atomics=yes
16707else
16708  ac_have_atomics=no
16709fi
16710rm -f core conftest.err conftest.$ac_objext \
16711    conftest$ac_exeext conftest.$ac_ext
16712	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have_atomics" >&5
16713$as_echo "$ac_have_atomics" >&6; }
16714fi
16715if test "$ac_have_atomics" = "yes" ; then
16716
16717$as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
16718
16719fi
16720
16721
16722
16723saved_cflags="$CFLAGS"
16724CFLAGS="-Werror"
16725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((fallthrough))" >&5
16726$as_echo_n "checking for __attribute__((fallthrough))... " >&6; }
16727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16728/* end confdefs.h.  */
16729
16730int
16731main ()
16732{
16733
16734int main(void) {
16735	int a=0;
16736	switch (a) {
16737	case 1:
16738		a=2;
16739		__attribute__((fallthrough));
16740	case 2:
16741		a=1;
16742	}
16743	return a;
16744}
16745
16746  ;
16747  return 0;
16748}
16749_ACEOF
16750if ac_fn_c_try_link "$LINENO"; then :
16751  ac_have_working_attribute_fallthrough=yes
16752else
16753  ac_have_working_attribute_fallthrough=no
16754fi
16755rm -f core conftest.err conftest.$ac_objext \
16756    conftest$ac_exeext conftest.$ac_ext
16757if test "$ac_have_working_attribute_fallthrough" = "yes" ; then
16758
16759$as_echo "#define nobreak __attribute__((fallthrough))" >>confdefs.h
16760
16761else
16762
16763$as_echo "#define nobreak /**/" >>confdefs.h
16764
16765fi
16766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have_working_attribute_fallthrough" >&5
16767$as_echo "$ac_have_working_attribute_fallthrough" >&6; }
16768CFLAGS="$saved_cflags"
16769
16770for ac_prog in kill
16771do
16772  # Extract the first word of "$ac_prog", so it can be a program name with args.
16773set dummy $ac_prog; ac_word=$2
16774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16775$as_echo_n "checking for $ac_word... " >&6; }
16776if ${ac_cv_prog_KILL+:} false; then :
16777  $as_echo_n "(cached) " >&6
16778else
16779  if test -n "$KILL"; then
16780  ac_cv_prog_KILL="$KILL" # Let the user override the test.
16781else
16782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16783for as_dir in $PATH
16784do
16785  IFS=$as_save_IFS
16786  test -z "$as_dir" && as_dir=.
16787    for ac_exec_ext in '' $ac_executable_extensions; do
16788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16789    ac_cv_prog_KILL="$ac_prog"
16790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16791    break 2
16792  fi
16793done
16794  done
16795IFS=$as_save_IFS
16796
16797fi
16798fi
16799KILL=$ac_cv_prog_KILL
16800if test -n "$KILL"; then
16801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
16802$as_echo "$KILL" >&6; }
16803else
16804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16805$as_echo "no" >&6; }
16806fi
16807
16808
16809  test -n "$KILL" && break
16810done
16811
16812
16813
16814
16815
16816
16817
16818
16819if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16820	if test -n "$ac_tool_prefix"; then
16821  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16822set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16824$as_echo_n "checking for $ac_word... " >&6; }
16825if ${ac_cv_path_PKG_CONFIG+:} false; then :
16826  $as_echo_n "(cached) " >&6
16827else
16828  case $PKG_CONFIG in
16829  [\\/]* | ?:[\\/]*)
16830  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16831  ;;
16832  *)
16833  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16834for as_dir in $PATH
16835do
16836  IFS=$as_save_IFS
16837  test -z "$as_dir" && as_dir=.
16838    for ac_exec_ext in '' $ac_executable_extensions; do
16839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16840    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16842    break 2
16843  fi
16844done
16845  done
16846IFS=$as_save_IFS
16847
16848  ;;
16849esac
16850fi
16851PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16852if test -n "$PKG_CONFIG"; then
16853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16854$as_echo "$PKG_CONFIG" >&6; }
16855else
16856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16857$as_echo "no" >&6; }
16858fi
16859
16860
16861fi
16862if test -z "$ac_cv_path_PKG_CONFIG"; then
16863  ac_pt_PKG_CONFIG=$PKG_CONFIG
16864  # Extract the first word of "pkg-config", so it can be a program name with args.
16865set dummy pkg-config; ac_word=$2
16866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16867$as_echo_n "checking for $ac_word... " >&6; }
16868if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16869  $as_echo_n "(cached) " >&6
16870else
16871  case $ac_pt_PKG_CONFIG in
16872  [\\/]* | ?:[\\/]*)
16873  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16874  ;;
16875  *)
16876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16877for as_dir in $PATH
16878do
16879  IFS=$as_save_IFS
16880  test -z "$as_dir" && as_dir=.
16881    for ac_exec_ext in '' $ac_executable_extensions; do
16882  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16883    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16885    break 2
16886  fi
16887done
16888  done
16889IFS=$as_save_IFS
16890
16891  ;;
16892esac
16893fi
16894ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16895if test -n "$ac_pt_PKG_CONFIG"; then
16896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16897$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16898else
16899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16900$as_echo "no" >&6; }
16901fi
16902
16903  if test "x$ac_pt_PKG_CONFIG" = x; then
16904    PKG_CONFIG=""
16905  else
16906    case $cross_compiling:$ac_tool_warned in
16907yes:)
16908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16910ac_tool_warned=yes ;;
16911esac
16912    PKG_CONFIG=$ac_pt_PKG_CONFIG
16913  fi
16914else
16915  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16916fi
16917
16918fi
16919if test -n "$PKG_CONFIG"; then
16920	_pkg_min_version=0.9.0
16921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16922$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16923	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16924		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16925$as_echo "yes" >&6; }
16926	else
16927		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16928$as_echo "no" >&6; }
16929		PKG_CONFIG=""
16930	fi
16931fi
16932
16933pkg_failed=no
16934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
16935$as_echo_n "checking for systemd... " >&6; }
16936
16937if test -n "$SYSTEMD_CFLAGS"; then
16938    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
16939 elif test -n "$PKG_CONFIG"; then
16940    if test -n "$PKG_CONFIG" && \
16941    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
16942  ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
16943  ac_status=$?
16944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16945  test $ac_status = 0; }; then
16946  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
16947		      test "x$?" != "x0" && pkg_failed=yes
16948else
16949  pkg_failed=yes
16950fi
16951 else
16952    pkg_failed=untried
16953fi
16954if test -n "$SYSTEMD_LIBS"; then
16955    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
16956 elif test -n "$PKG_CONFIG"; then
16957    if test -n "$PKG_CONFIG" && \
16958    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
16959  ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
16960  ac_status=$?
16961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16962  test $ac_status = 0; }; then
16963  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
16964		      test "x$?" != "x0" && pkg_failed=yes
16965else
16966  pkg_failed=yes
16967fi
16968 else
16969    pkg_failed=untried
16970fi
16971
16972
16973
16974if test $pkg_failed = yes; then
16975        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16976$as_echo "no" >&6; }
16977
16978if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16979        _pkg_short_errors_supported=yes
16980else
16981        _pkg_short_errors_supported=no
16982fi
16983        if test $_pkg_short_errors_supported = yes; then
16984	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
16985        else
16986	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
16987        fi
16988	# Put the nasty error message in config.log where it belongs
16989	echo "$SYSTEMD_PKG_ERRORS" >&5
16990
16991
16992	systemdunitdir=no
16993
16994elif test $pkg_failed = untried; then
16995        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16996$as_echo "no" >&6; }
16997
16998	systemdunitdir=no
16999
17000else
17001	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
17002	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
17003        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17004$as_echo "yes" >&6; }
17005
17006	systemdunitdir="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"
17007
17008fi
17009
17010
17011
17012# Check whether --enable-all was given.
17013if test "${enable_all+set}" = set; then :
17014  enableval=$enable_all;
17015fi
17016
17017
17018
17019# Check whether --enable-mfsmaster was given.
17020if test "${enable_mfsmaster+set}" = set; then :
17021  enableval=$enable_mfsmaster;
17022else
17023  enable_mfsmaster="$enable_all"
17024fi
17025
17026# Check whether --enable-mfsmetalogger was given.
17027if test "${enable_mfsmetalogger+set}" = set; then :
17028  enableval=$enable_mfsmetalogger;
17029else
17030  enable_mfsmetalogger="$enable_all"
17031fi
17032
17033# Check whether --enable-mfssupervisor was given.
17034if test "${enable_mfssupervisor+set}" = set; then :
17035  enableval=$enable_mfssupervisor;
17036else
17037  enable_mfssupervisor="$enable_all"
17038fi
17039
17040# Check whether --enable-mfschunkserver was given.
17041if test "${enable_mfschunkserver+set}" = set; then :
17042  enableval=$enable_mfschunkserver;
17043else
17044  enable_mfschunkserver="$enable_all"
17045fi
17046
17047# Check whether --enable-mfsmount was given.
17048if test "${enable_mfsmount+set}" = set; then :
17049  enableval=$enable_mfsmount;
17050else
17051  enable_mfsmount="$enable_all"
17052fi
17053
17054# Check whether --enable-mfsbdev was given.
17055if test "${enable_mfsbdev+set}" = set; then :
17056  enableval=$enable_mfsbdev;
17057else
17058  enable_mfsbdev="$enable_all"
17059fi
17060
17061# Check whether --enable-mfscgi was given.
17062if test "${enable_mfscgi+set}" = set; then :
17063  enableval=$enable_mfscgi;
17064else
17065  enable_mfscgi="$enable_all"
17066fi
17067
17068# Check whether --enable-mfscli was given.
17069if test "${enable_mfscli+set}" = set; then :
17070  enableval=$enable_mfscli;
17071else
17072  enable_mfscli="$enable_all"
17073fi
17074
17075# Check whether --enable-mfscgiserv was given.
17076if test "${enable_mfscgiserv+set}" = set; then :
17077  enableval=$enable_mfscgiserv;
17078else
17079  enable_mfscgiserv="$enable_all"
17080fi
17081
17082# Check whether --enable-mfsnetdump was given.
17083if test "${enable_mfsnetdump+set}" = set; then :
17084  enableval=$enable_mfsnetdump;
17085else
17086  enable_mfsnetdump="$enable_all"
17087fi
17088
17089
17090# Check whether --with-mfscgi-dir was given.
17091if test "${with_mfscgi_dir+set}" = set; then :
17092  withval=$with_mfscgi_dir; CGIDIR="${withval}"
17093else
17094  eval eval CGIDIR="${datadir}/mfscgi"
17095fi
17096
17097
17098# Check whether --with-mfscgiserv-dir was given.
17099if test "${with_mfscgiserv_dir+set}" = set; then :
17100  withval=$with_mfscgiserv_dir; CGISERVDIR="${withval}"
17101else
17102  eval CGISERVDIR="${sbindir}"
17103fi
17104
17105
17106# Check whether --with-zlib was given.
17107if test "${with_zlib+set}" = set; then :
17108  withval=$with_zlib; use_zlib="${withval}"
17109else
17110  use_zlib=yes
17111fi
17112
17113
17114# Check whether --with-systemdsystemunitdir was given.
17115if test "${with_systemdsystemunitdir+set}" = set; then :
17116  withval=$with_systemdsystemunitdir; systemdunitdir="${withval}"
17117fi
17118
17119
17120 if test "$systemdunitdir" != "no"; then
17121  WITH_SYSTEMD_TRUE=
17122  WITH_SYSTEMD_FALSE='#'
17123else
17124  WITH_SYSTEMD_TRUE='#'
17125  WITH_SYSTEMD_FALSE=
17126fi
17127
17128
17129if test "$enable_mfscgi" != "no" -o "$enable_mfscli" != "no" -o "$enable_mfscgiserv" != "no"; then
17130	for ac_prog in python3 python2 python python3.7 python3.6 python3.5 python3.4 python2.7
17131do
17132  # Extract the first word of "$ac_prog", so it can be a program name with args.
17133set dummy $ac_prog; ac_word=$2
17134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17135$as_echo_n "checking for $ac_word... " >&6; }
17136if ${ac_cv_prog_PYTHON+:} false; then :
17137  $as_echo_n "(cached) " >&6
17138else
17139  if test -n "$PYTHON"; then
17140  ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
17141else
17142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17143for as_dir in $PATH
17144do
17145  IFS=$as_save_IFS
17146  test -z "$as_dir" && as_dir=.
17147    for ac_exec_ext in '' $ac_executable_extensions; do
17148  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17149    ac_cv_prog_PYTHON="$ac_prog"
17150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17151    break 2
17152  fi
17153done
17154  done
17155IFS=$as_save_IFS
17156
17157fi
17158fi
17159PYTHON=$ac_cv_prog_PYTHON
17160if test -n "$PYTHON"; then
17161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17162$as_echo "$PYTHON" >&6; }
17163else
17164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17165$as_echo "no" >&6; }
17166fi
17167
17168
17169  test -n "$PYTHON" && break
17170done
17171test -n "$PYTHON" || PYTHON="na"
17172
17173	if test "$PYTHON" = na; then
17174		PYTHON="python"
17175		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Python binary not found !!! - using default in shebangs" >&5
17176$as_echo "Python binary not found !!! - using default in shebangs" >&6; }
17177	else
17178		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Python binary for script shebangs: $PYTHON" >&5
17179$as_echo "Python binary for script shebangs: $PYTHON" >&6; }
17180	fi
17181fi
17182
17183 if test "$enable_mfscgi" != "no" -o "$enable_mfscli" != "no" -o "$enable_mfscgiserv" != "no"; then
17184  WITH_PYTHON_TRUE=
17185  WITH_PYTHON_FALSE='#'
17186else
17187  WITH_PYTHON_TRUE='#'
17188  WITH_PYTHON_FALSE=
17189fi
17190
17191 if test "$enable_mfscgi" != "no" -o "$enable_mfscli" != "no" -o "$enable_mfscgiserv" != "no"; then
17192  BUILD_SCRIPTS_TRUE=
17193  BUILD_SCRIPTS_FALSE='#'
17194else
17195  BUILD_SCRIPTS_TRUE='#'
17196  BUILD_SCRIPTS_FALSE=
17197fi
17198
17199 if test "$enable_mfscgi" != "no"; then
17200  INSTALL_CGI_TRUE=
17201  INSTALL_CGI_FALSE='#'
17202else
17203  INSTALL_CGI_TRUE='#'
17204  INSTALL_CGI_FALSE=
17205fi
17206
17207 if test "$enable_mfscli" != "no"; then
17208  INSTALL_CLI_TRUE=
17209  INSTALL_CLI_FALSE='#'
17210else
17211  INSTALL_CLI_TRUE='#'
17212  INSTALL_CLI_FALSE=
17213fi
17214
17215 if test "$enable_mfscgiserv" != "no"; then
17216  INSTALL_CGISERV_TRUE=
17217  INSTALL_CGISERV_FALSE='#'
17218else
17219  INSTALL_CGISERV_TRUE='#'
17220  INSTALL_CGISERV_FALSE=
17221fi
17222
17223 if test "$root_sbindir" != "xxx"; then
17224  INSTALL_MOOSEFS_MOUNT_TRUE=
17225  INSTALL_MOOSEFS_MOUNT_FALSE='#'
17226else
17227  INSTALL_MOOSEFS_MOUNT_TRUE='#'
17228  INSTALL_MOOSEFS_MOUNT_FALSE=
17229fi
17230
17231
17232
17233
17234
17235 if test "$enable_mfsmaster" != "no"; then
17236  BUILD_MASTER_TRUE=
17237  BUILD_MASTER_FALSE='#'
17238else
17239  BUILD_MASTER_TRUE='#'
17240  BUILD_MASTER_FALSE=
17241fi
17242
17243 if test "$enable_mfsmetalogger" != "no"; then
17244  BUILD_METALOGGER_TRUE=
17245  BUILD_METALOGGER_FALSE='#'
17246else
17247  BUILD_METALOGGER_TRUE='#'
17248  BUILD_METALOGGER_FALSE=
17249fi
17250
17251 if test "$enable_mfssupervisor" != "no"; then
17252  BUILD_SUPERVISOR_TRUE=
17253  BUILD_SUPERVISOR_FALSE='#'
17254else
17255  BUILD_SUPERVISOR_TRUE='#'
17256  BUILD_SUPERVISOR_FALSE=
17257fi
17258
17259 if test "$enable_mfschunkserver" != "no"; then
17260  BUILD_CHUNKSERVER_TRUE=
17261  BUILD_CHUNKSERVER_FALSE='#'
17262else
17263  BUILD_CHUNKSERVER_TRUE='#'
17264  BUILD_CHUNKSERVER_FALSE=
17265fi
17266
17267
17268
17269pcap=no
17270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_lib_version in -lpcap" >&5
17271$as_echo_n "checking for pcap_lib_version in -lpcap... " >&6; }
17272if ${ac_cv_lib_pcap_pcap_lib_version+:} false; then :
17273  $as_echo_n "(cached) " >&6
17274else
17275  ac_check_lib_save_LIBS=$LIBS
17276LIBS="-lpcap  $LIBS"
17277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278/* end confdefs.h.  */
17279
17280/* Override any GCC internal prototype to avoid an error.
17281   Use char because int might match the return type of a GCC
17282   builtin and then its argument prototype would still apply.  */
17283#ifdef __cplusplus
17284extern "C"
17285#endif
17286char pcap_lib_version ();
17287int
17288main ()
17289{
17290return pcap_lib_version ();
17291  ;
17292  return 0;
17293}
17294_ACEOF
17295if ac_fn_c_try_link "$LINENO"; then :
17296  ac_cv_lib_pcap_pcap_lib_version=yes
17297else
17298  ac_cv_lib_pcap_pcap_lib_version=no
17299fi
17300rm -f core conftest.err conftest.$ac_objext \
17301    conftest$ac_exeext conftest.$ac_ext
17302LIBS=$ac_check_lib_save_LIBS
17303fi
17304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_lib_version" >&5
17305$as_echo "$ac_cv_lib_pcap_pcap_lib_version" >&6; }
17306if test "x$ac_cv_lib_pcap_pcap_lib_version" = xyes; then :
17307   for ac_header in pcap.h
17308do :
17309  ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
17310if test "x$ac_cv_header_pcap_h" = xyes; then :
17311  cat >>confdefs.h <<_ACEOF
17312#define HAVE_PCAP_H 1
17313_ACEOF
17314 pcap=yes
17315fi
17316
17317done
17318
17319fi
17320
17321
17322if test "$pcap" = "no"; then
17323	PCAP_LIBS=
17324	if test "enable_mfsnetdump" != "no"; then
17325		echo "****** mfsnetdump disabled ******"
17326		echo "* mfsnetdump needs pcap library *"
17327		echo "*********************************"
17328		enable_mfsnetdump=no
17329	fi
17330else
17331	PCAP_LIBS=-lpcap
17332	# check for new PCAP pcap_findalldevs
17333	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_findalldevs in -lpcap" >&5
17334$as_echo_n "checking for pcap_findalldevs in -lpcap... " >&6; }
17335if ${ac_cv_lib_pcap_pcap_findalldevs+:} false; then :
17336  $as_echo_n "(cached) " >&6
17337else
17338  ac_check_lib_save_LIBS=$LIBS
17339LIBS="-lpcap  $LIBS"
17340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341/* end confdefs.h.  */
17342
17343/* Override any GCC internal prototype to avoid an error.
17344   Use char because int might match the return type of a GCC
17345   builtin and then its argument prototype would still apply.  */
17346#ifdef __cplusplus
17347extern "C"
17348#endif
17349char pcap_findalldevs ();
17350int
17351main ()
17352{
17353return pcap_findalldevs ();
17354  ;
17355  return 0;
17356}
17357_ACEOF
17358if ac_fn_c_try_link "$LINENO"; then :
17359  ac_cv_lib_pcap_pcap_findalldevs=yes
17360else
17361  ac_cv_lib_pcap_pcap_findalldevs=no
17362fi
17363rm -f core conftest.err conftest.$ac_objext \
17364    conftest$ac_exeext conftest.$ac_ext
17365LIBS=$ac_check_lib_save_LIBS
17366fi
17367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_findalldevs" >&5
17368$as_echo "$ac_cv_lib_pcap_pcap_findalldevs" >&6; }
17369if test "x$ac_cv_lib_pcap_pcap_findalldevs" = xyes; then :
17370
17371$as_echo "#define HAVE_PCAP_FINDALLDEVS 1" >>confdefs.h
17372
17373fi
17374
17375
17376fi
17377
17378
17379 if test "$enable_mfsnetdump" != "no"; then
17380  BUILD_NETDUMP_TRUE=
17381  BUILD_NETDUMP_FALSE='#'
17382else
17383  BUILD_NETDUMP_TRUE='#'
17384  BUILD_NETDUMP_FALSE=
17385fi
17386
17387
17388if test "$bdev" != "no" -a "enable_mfsbdev" != "no"; then
17389	for ac_header in linux/nbd.h linux/fs.h
17390do :
17391  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17392ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17393if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17394  cat >>confdefs.h <<_ACEOF
17395#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17396_ACEOF
17397
17398else
17399  bdev=no
17400fi
17401
17402done
17403
17404fi
17405
17406 if test "$bdev" != "no" -a "$enable_mfsbdev" != "no"; then
17407  WITH_BDEV_TRUE=
17408  WITH_BDEV_FALSE='#'
17409else
17410  WITH_BDEV_TRUE='#'
17411  WITH_BDEV_FALSE=
17412fi
17413
17414
17415if test "$fuse" != "no" -a "enable_mfsmount" != "no"; then
17416	if test -n "$PKG_CONFIG"; then
17417
17418pkg_failed=no
17419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse3 >= 3.2.1" >&5
17420$as_echo_n "checking for fuse3 >= 3.2.1... " >&6; }
17421
17422if test -n "$FUSE_CFLAGS"; then
17423    pkg_cv_FUSE_CFLAGS="$FUSE_CFLAGS"
17424 elif test -n "$PKG_CONFIG"; then
17425    if test -n "$PKG_CONFIG" && \
17426    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3 >= 3.2.1\""; } >&5
17427  ($PKG_CONFIG --exists --print-errors "fuse3 >= 3.2.1") 2>&5
17428  ac_status=$?
17429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17430  test $ac_status = 0; }; then
17431  pkg_cv_FUSE_CFLAGS=`$PKG_CONFIG --cflags "fuse3 >= 3.2.1" 2>/dev/null`
17432		      test "x$?" != "x0" && pkg_failed=yes
17433else
17434  pkg_failed=yes
17435fi
17436 else
17437    pkg_failed=untried
17438fi
17439if test -n "$FUSE_LIBS"; then
17440    pkg_cv_FUSE_LIBS="$FUSE_LIBS"
17441 elif test -n "$PKG_CONFIG"; then
17442    if test -n "$PKG_CONFIG" && \
17443    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3 >= 3.2.1\""; } >&5
17444  ($PKG_CONFIG --exists --print-errors "fuse3 >= 3.2.1") 2>&5
17445  ac_status=$?
17446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17447  test $ac_status = 0; }; then
17448  pkg_cv_FUSE_LIBS=`$PKG_CONFIG --libs "fuse3 >= 3.2.1" 2>/dev/null`
17449		      test "x$?" != "x0" && pkg_failed=yes
17450else
17451  pkg_failed=yes
17452fi
17453 else
17454    pkg_failed=untried
17455fi
17456
17457
17458
17459if test $pkg_failed = yes; then
17460        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17461$as_echo "no" >&6; }
17462
17463if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17464        _pkg_short_errors_supported=yes
17465else
17466        _pkg_short_errors_supported=no
17467fi
17468        if test $_pkg_short_errors_supported = yes; then
17469	        FUSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3 >= 3.2.1" 2>&1`
17470        else
17471	        FUSE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3 >= 3.2.1" 2>&1`
17472        fi
17473	# Put the nasty error message in config.log where it belongs
17474	echo "$FUSE_PKG_ERRORS" >&5
17475
17476
17477pkg_failed=no
17478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse >= 2.6" >&5
17479$as_echo_n "checking for fuse >= 2.6... " >&6; }
17480
17481if test -n "$FUSE_CFLAGS"; then
17482    pkg_cv_FUSE_CFLAGS="$FUSE_CFLAGS"
17483 elif test -n "$PKG_CONFIG"; then
17484    if test -n "$PKG_CONFIG" && \
17485    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6\""; } >&5
17486  ($PKG_CONFIG --exists --print-errors "fuse >= 2.6") 2>&5
17487  ac_status=$?
17488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17489  test $ac_status = 0; }; then
17490  pkg_cv_FUSE_CFLAGS=`$PKG_CONFIG --cflags "fuse >= 2.6" 2>/dev/null`
17491		      test "x$?" != "x0" && pkg_failed=yes
17492else
17493  pkg_failed=yes
17494fi
17495 else
17496    pkg_failed=untried
17497fi
17498if test -n "$FUSE_LIBS"; then
17499    pkg_cv_FUSE_LIBS="$FUSE_LIBS"
17500 elif test -n "$PKG_CONFIG"; then
17501    if test -n "$PKG_CONFIG" && \
17502    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6\""; } >&5
17503  ($PKG_CONFIG --exists --print-errors "fuse >= 2.6") 2>&5
17504  ac_status=$?
17505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17506  test $ac_status = 0; }; then
17507  pkg_cv_FUSE_LIBS=`$PKG_CONFIG --libs "fuse >= 2.6" 2>/dev/null`
17508		      test "x$?" != "x0" && pkg_failed=yes
17509else
17510  pkg_failed=yes
17511fi
17512 else
17513    pkg_failed=untried
17514fi
17515
17516
17517
17518if test $pkg_failed = yes; then
17519        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17520$as_echo "no" >&6; }
17521
17522if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17523        _pkg_short_errors_supported=yes
17524else
17525        _pkg_short_errors_supported=no
17526fi
17527        if test $_pkg_short_errors_supported = yes; then
17528	        FUSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse >= 2.6" 2>&1`
17529        else
17530	        FUSE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse >= 2.6" 2>&1`
17531        fi
17532	# Put the nasty error message in config.log where it belongs
17533	echo "$FUSE_PKG_ERRORS" >&5
17534
17535	fuse=no
17536elif test $pkg_failed = untried; then
17537        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17538$as_echo "no" >&6; }
17539	fuse=no
17540else
17541	FUSE_CFLAGS=$pkg_cv_FUSE_CFLAGS
17542	FUSE_LIBS=$pkg_cv_FUSE_LIBS
17543        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17544$as_echo "yes" >&6; }
17545
17546fi
17547elif test $pkg_failed = untried; then
17548        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17549$as_echo "no" >&6; }
17550
17551pkg_failed=no
17552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse >= 2.6" >&5
17553$as_echo_n "checking for fuse >= 2.6... " >&6; }
17554
17555if test -n "$FUSE_CFLAGS"; then
17556    pkg_cv_FUSE_CFLAGS="$FUSE_CFLAGS"
17557 elif test -n "$PKG_CONFIG"; then
17558    if test -n "$PKG_CONFIG" && \
17559    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6\""; } >&5
17560  ($PKG_CONFIG --exists --print-errors "fuse >= 2.6") 2>&5
17561  ac_status=$?
17562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17563  test $ac_status = 0; }; then
17564  pkg_cv_FUSE_CFLAGS=`$PKG_CONFIG --cflags "fuse >= 2.6" 2>/dev/null`
17565		      test "x$?" != "x0" && pkg_failed=yes
17566else
17567  pkg_failed=yes
17568fi
17569 else
17570    pkg_failed=untried
17571fi
17572if test -n "$FUSE_LIBS"; then
17573    pkg_cv_FUSE_LIBS="$FUSE_LIBS"
17574 elif test -n "$PKG_CONFIG"; then
17575    if test -n "$PKG_CONFIG" && \
17576    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6\""; } >&5
17577  ($PKG_CONFIG --exists --print-errors "fuse >= 2.6") 2>&5
17578  ac_status=$?
17579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17580  test $ac_status = 0; }; then
17581  pkg_cv_FUSE_LIBS=`$PKG_CONFIG --libs "fuse >= 2.6" 2>/dev/null`
17582		      test "x$?" != "x0" && pkg_failed=yes
17583else
17584  pkg_failed=yes
17585fi
17586 else
17587    pkg_failed=untried
17588fi
17589
17590
17591
17592if test $pkg_failed = yes; then
17593        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17594$as_echo "no" >&6; }
17595
17596if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17597        _pkg_short_errors_supported=yes
17598else
17599        _pkg_short_errors_supported=no
17600fi
17601        if test $_pkg_short_errors_supported = yes; then
17602	        FUSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse >= 2.6" 2>&1`
17603        else
17604	        FUSE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse >= 2.6" 2>&1`
17605        fi
17606	# Put the nasty error message in config.log where it belongs
17607	echo "$FUSE_PKG_ERRORS" >&5
17608
17609	fuse=no
17610elif test $pkg_failed = untried; then
17611        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17612$as_echo "no" >&6; }
17613	fuse=no
17614else
17615	FUSE_CFLAGS=$pkg_cv_FUSE_CFLAGS
17616	FUSE_LIBS=$pkg_cv_FUSE_LIBS
17617        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17618$as_echo "yes" >&6; }
17619
17620fi
17621else
17622	FUSE_CFLAGS=$pkg_cv_FUSE_CFLAGS
17623	FUSE_LIBS=$pkg_cv_FUSE_LIBS
17624        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17625$as_echo "yes" >&6; }
17626
17627$as_echo "#define HAVE_FUSE3 1" >>confdefs.h
17628
17629fi
17630	else
17631		echo "no pkg-config - can't check FUSE version"
17632		fuse=no
17633	fi
17634fi
17635if test "$fuse" = "no"; then
17636	if test "$enable_mfsmount" = "yes"; then
17637		if test -n "$PKG_CONFIG"; then
17638			as_fn_error $? "mfsmount build was forced, but fuse library is too old or not installed" "$LINENO" 5
17639		else
17640			as_fn_error $? "mfsmount build was forced, but pkg-config not installed" "$LINENO" 5
17641		fi
17642	else
17643		if test "$enable_mfsmount" != "no"; then
17644			if test -n "$PKG_CONFIG"; then
17645				echo "******************************** mfsmount disabled ********************************"
17646				echo "* fuse library is too old or not installed - mfsmount needs version 2.6 or higher *"
17647				echo "***********************************************************************************"
17648			else
17649				echo "**** mfsmount disabled *****"
17650				echo "* pkg-config not installed *"
17651				echo "****************************"
17652			fi
17653		fi
17654	fi
17655fi
17656if test "$fuse" != "no" ; then
17657	case $target_os in
17658		freebsd6*)
17659		echo "*************************************************************************"
17660		echo "* Dynamic linker in FreeBSD 6.x doesn't support symbol versioning.      *"
17661		echo "* It causes calling wrong functions from libfuse and crashing mfsmount. *"
17662		echo "* Due to above switching libfuse from dynamic linking to static.        *"
17663		echo "*************************************************************************"
17664		FUSE_LIBS="-pthread /usr/local/lib/libfuse.a /usr/local/lib/libiconv.a"
17665
17666		;;
17667	esac
17668fi
17669
17670as_ac_Lib=`$as_echo "ac_cv_lib_$fuse_lib_name''_fuse_version" | $as_tr_sh`
17671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_version in -l$fuse_lib_name" >&5
17672$as_echo_n "checking for fuse_version in -l$fuse_lib_name... " >&6; }
17673if eval \${$as_ac_Lib+:} false; then :
17674  $as_echo_n "(cached) " >&6
17675else
17676  ac_check_lib_save_LIBS=$LIBS
17677LIBS="-l$fuse_lib_name  $LIBS"
17678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17679/* end confdefs.h.  */
17680
17681/* Override any GCC internal prototype to avoid an error.
17682   Use char because int might match the return type of a GCC
17683   builtin and then its argument prototype would still apply.  */
17684#ifdef __cplusplus
17685extern "C"
17686#endif
17687char fuse_version ();
17688int
17689main ()
17690{
17691return fuse_version ();
17692  ;
17693  return 0;
17694}
17695_ACEOF
17696if ac_fn_c_try_link "$LINENO"; then :
17697  eval "$as_ac_Lib=yes"
17698else
17699  eval "$as_ac_Lib=no"
17700fi
17701rm -f core conftest.err conftest.$ac_objext \
17702    conftest$ac_exeext conftest.$ac_ext
17703LIBS=$ac_check_lib_save_LIBS
17704fi
17705eval ac_res=\$$as_ac_Lib
17706	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17707$as_echo "$ac_res" >&6; }
17708if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17709
17710$as_echo "#define HAVE_FUSE_VERSION 1" >>confdefs.h
17711
17712fi
17713
17714
17715 if test "$fuse" != "no" -a "$enable_mfsmount" != "no"; then
17716  WITH_MOUNT_TRUE=
17717  WITH_MOUNT_FALSE='#'
17718else
17719  WITH_MOUNT_TRUE='#'
17720  WITH_MOUNT_FALSE=
17721fi
17722
17723
17724 if test \( "$fuse" != "no" -a "$enable_mfsmount" != "no" \) -o \( "$bdev" != "no" -a "$enable_mfsbdev" != "no" \); then
17725  BUILD_CLIENT_TRUE=
17726  BUILD_CLIENT_FALSE='#'
17727else
17728  BUILD_CLIENT_TRUE='#'
17729  BUILD_CLIENT_FALSE=
17730fi
17731
17732
17733 if test "$enable_mfsmaster" != "no" -o "$enable_mfsmetalogger" != "no" -o "$enable_mfschunkserver" != "no" -o "$enable_mfsmount" != "no"; then
17734  CREATE_ETC_MFS_TRUE=
17735  CREATE_ETC_MFS_FALSE='#'
17736else
17737  CREATE_ETC_MFS_TRUE='#'
17738  CREATE_ETC_MFS_FALSE=
17739fi
17740
17741 if test "$enable_mfsmaster" != "no" -o "$enable_mfsmetalogger" != "no" -o "$enable_mfschunkserver" != "no" -o "$enable_mfscgiserv" != "no"; then
17742  CREATE_DATA_DIR_TRUE=
17743  CREATE_DATA_DIR_FALSE='#'
17744else
17745  CREATE_DATA_DIR_TRUE='#'
17746  CREATE_DATA_DIR_FALSE=
17747fi
17748
17749
17750if test "$use_zlib" = "yes"; then
17751
17752	zlib=no
17753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
17754$as_echo_n "checking for zlibVersion in -lz... " >&6; }
17755if ${ac_cv_lib_z_zlibVersion+:} false; then :
17756  $as_echo_n "(cached) " >&6
17757else
17758  ac_check_lib_save_LIBS=$LIBS
17759LIBS="-lz  $LIBS"
17760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761/* end confdefs.h.  */
17762
17763/* Override any GCC internal prototype to avoid an error.
17764   Use char because int might match the return type of a GCC
17765   builtin and then its argument prototype would still apply.  */
17766#ifdef __cplusplus
17767extern "C"
17768#endif
17769char zlibVersion ();
17770int
17771main ()
17772{
17773return zlibVersion ();
17774  ;
17775  return 0;
17776}
17777_ACEOF
17778if ac_fn_c_try_link "$LINENO"; then :
17779  ac_cv_lib_z_zlibVersion=yes
17780else
17781  ac_cv_lib_z_zlibVersion=no
17782fi
17783rm -f core conftest.err conftest.$ac_objext \
17784    conftest$ac_exeext conftest.$ac_ext
17785LIBS=$ac_check_lib_save_LIBS
17786fi
17787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
17788$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
17789if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
17790   for ac_header in zlib.h
17791do :
17792  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17793if test "x$ac_cv_header_zlib_h" = xyes; then :
17794  cat >>confdefs.h <<_ACEOF
17795#define HAVE_ZLIB_H 1
17796_ACEOF
17797 zlib=yes
17798fi
17799
17800done
17801
17802fi
17803
17804
17805	if test "$zlib" = "no"; then
17806		ZLIB_LIBS=
17807		if test "$enable_mfsmaster" != "no" -o "$enable_mfschunkserver" != "no"; then
17808			as_fn_error $? "zlib development library not found" "$LINENO" 5
17809		fi
17810	else
17811		ZLIB_LIBS=-lz
17812	fi
17813
17814fi
17815
17816DEFAULT_USER=nobody
17817DEFAULT_GROUP=
17818
17819# Check whether --with-default-user was given.
17820if test "${with_default_user+set}" = set; then :
17821  withval=$with_default_user; DEFAULT_USER="${withval}"
17822fi
17823
17824
17825# Check whether --with-default-group was given.
17826if test "${with_default_group+set}" = set; then :
17827  withval=$with_default_group; DEFAULT_GROUP="${withval}"
17828fi
17829
17830
17831cat >>confdefs.h <<_ACEOF
17832#define DEFAULT_USER "$DEFAULT_USER"
17833_ACEOF
17834
17835
17836cat >>confdefs.h <<_ACEOF
17837#define DEFAULT_GROUP "$DEFAULT_GROUP"
17838_ACEOF
17839
17840
17841
17842
17843DEFAULT_PORTBASE=9400
17844DEFAULT_MASTERNAME=mfsmaster
17845
17846# Check whether --with-default-portbase was given.
17847if test "${with_default_portbase+set}" = set; then :
17848  withval=$with_default_portbase; DEFAULT_PORTBASE="${withval}"
17849fi
17850
17851
17852# Check whether --with-default-mastername was given.
17853if test "${with_default_mastername+set}" = set; then :
17854  withval=$with_default_mastername; DEFAULT_MASTERNAME="${withval}"
17855fi
17856
17857DEFAULT_MASTER_CONTROL_PORT=$((DEFAULT_PORTBASE+19))
17858DEFAULT_MASTER_CS_PORT=$((DEFAULT_PORTBASE+20))
17859DEFAULT_MASTER_CLIENT_PORT=$((DEFAULT_PORTBASE+21))
17860DEFAULT_CS_DATA_PORT=$((DEFAULT_PORTBASE+22))
17861DEFAULT_CGISERV_HTTP_PORT=$((DEFAULT_PORTBASE+25))
17862
17863cat >>confdefs.h <<_ACEOF
17864#define DEFAULT_PORTBASE $DEFAULT_PORTBASE
17865_ACEOF
17866
17867
17868cat >>confdefs.h <<_ACEOF
17869#define DEFAULT_MASTER_CONTROL_PORT "$DEFAULT_MASTER_CONTROL_PORT"
17870_ACEOF
17871
17872
17873cat >>confdefs.h <<_ACEOF
17874#define DEFAULT_MASTER_CS_PORT "$DEFAULT_MASTER_CS_PORT"
17875_ACEOF
17876
17877
17878cat >>confdefs.h <<_ACEOF
17879#define DEFAULT_MASTER_CLIENT_PORT "$DEFAULT_MASTER_CLIENT_PORT"
17880_ACEOF
17881
17882
17883cat >>confdefs.h <<_ACEOF
17884#define DEFAULT_CS_DATA_PORT "$DEFAULT_CS_DATA_PORT"
17885_ACEOF
17886
17887
17888cat >>confdefs.h <<_ACEOF
17889#define DEFAULT_CGISERV_HTTP_PORT "$DEFAULT_CGISERV_HTTP_PORT"
17890_ACEOF
17891
17892
17893cat >>confdefs.h <<_ACEOF
17894#define DEFAULT_MASTERNAME "$DEFAULT_MASTERNAME"
17895_ACEOF
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905if test "$enable_lightmfs" = "yes"; then
17906	PROTO_BASE=65536
17907	LIGHT_MFS=1
17908else
17909	PROTO_BASE=0
17910	LIGHT_MFS=0
17911fi
17912
17913
17914
17915cat >>confdefs.h <<_ACEOF
17916#define PROTO_BASE $PROTO_BASE
17917_ACEOF
17918
17919
17920cat >>confdefs.h <<_ACEOF
17921#define LIGHT_MFS $LIGHT_MFS
17922_ACEOF
17923
17924
17925
17926
17927
17928ac_config_files="$ac_config_files Makefile mfsmanpages/Makefile mfschunkserver/Makefile mfsscripts/Makefile mfsdata/Makefile mfsmaster/Makefile mfsmetatools/Makefile mfsmetalogger/Makefile mfssupervisor/Makefile mfsclient/Makefile mfsnetdump/Makefile mfstests/Makefile systemd/Makefile mfsscripts/mfscli.py mfsscripts/chart.cgi mfsscripts/index.html mfsscripts/mfscgiserv.py mfsdata/mfschunkserver.cfg mfsdata/mfsmaster.cfg mfsdata/mfsmetalogger.cfg mfsdata/mfsmount.cfg systemd/moosefs-cgiserv.service systemd/moosefs-chunkserver.service systemd/moosefs-chunkserver@.service systemd/moosefs-master.service systemd/moosefs-master@.service systemd/moosefs-metalogger.service systemd/moosefs-metalogger@.service"
17929
17930cat >confcache <<\_ACEOF
17931# This file is a shell script that caches the results of configure
17932# tests run on this system so they can be shared between configure
17933# scripts and configure runs, see configure's option --config-cache.
17934# It is not useful on other systems.  If it contains results you don't
17935# want to keep, you may remove or edit it.
17936#
17937# config.status only pays attention to the cache file if you give it
17938# the --recheck option to rerun configure.
17939#
17940# `ac_cv_env_foo' variables (set or unset) will be overridden when
17941# loading this file, other *unset* `ac_cv_foo' will be assigned the
17942# following values.
17943
17944_ACEOF
17945
17946# The following way of writing the cache mishandles newlines in values,
17947# but we know of no workaround that is simple, portable, and efficient.
17948# So, we kill variables containing newlines.
17949# Ultrix sh set writes to stderr and can't be redirected directly,
17950# and sets the high bit in the cache file unless we assign to the vars.
17951(
17952  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17953    eval ac_val=\$$ac_var
17954    case $ac_val in #(
17955    *${as_nl}*)
17956      case $ac_var in #(
17957      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17958$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17959      esac
17960      case $ac_var in #(
17961      _ | IFS | as_nl) ;; #(
17962      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17963      *) { eval $ac_var=; unset $ac_var;} ;;
17964      esac ;;
17965    esac
17966  done
17967
17968  (set) 2>&1 |
17969    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17970    *${as_nl}ac_space=\ *)
17971      # `set' does not quote correctly, so add quotes: double-quote
17972      # substitution turns \\\\ into \\, and sed turns \\ into \.
17973      sed -n \
17974	"s/'/'\\\\''/g;
17975	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17976      ;; #(
17977    *)
17978      # `set' quotes correctly as required by POSIX, so do not add quotes.
17979      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17980      ;;
17981    esac |
17982    sort
17983) |
17984  sed '
17985     /^ac_cv_env_/b end
17986     t clear
17987     :clear
17988     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17989     t end
17990     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17991     :end' >>confcache
17992if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17993  if test -w "$cache_file"; then
17994    if test "x$cache_file" != "x/dev/null"; then
17995      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17996$as_echo "$as_me: updating cache $cache_file" >&6;}
17997      if test ! -f "$cache_file" || test -h "$cache_file"; then
17998	cat confcache >"$cache_file"
17999      else
18000        case $cache_file in #(
18001        */* | ?:*)
18002	  mv -f confcache "$cache_file"$$ &&
18003	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18004        *)
18005	  mv -f confcache "$cache_file" ;;
18006	esac
18007      fi
18008    fi
18009  else
18010    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18011$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18012  fi
18013fi
18014rm -f confcache
18015
18016test "x$prefix" = xNONE && prefix=$ac_default_prefix
18017# Let make expand exec_prefix.
18018test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18019
18020DEFS=-DHAVE_CONFIG_H
18021
18022ac_libobjs=
18023ac_ltlibobjs=
18024U=
18025for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18026  # 1. Remove the extension, and $U if already installed.
18027  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18028  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18029  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18030  #    will be set to the directory where LIBOBJS objects are built.
18031  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18032  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18033done
18034LIBOBJS=$ac_libobjs
18035
18036LTLIBOBJS=$ac_ltlibobjs
18037
18038
18039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18040$as_echo_n "checking that generated files are newer than configure... " >&6; }
18041   if test -n "$am_sleep_pid"; then
18042     # Hide warnings about reused PIDs.
18043     wait $am_sleep_pid 2>/dev/null
18044   fi
18045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18046$as_echo "done" >&6; }
18047 if test -n "$EXEEXT"; then
18048  am__EXEEXT_TRUE=
18049  am__EXEEXT_FALSE='#'
18050else
18051  am__EXEEXT_TRUE='#'
18052  am__EXEEXT_FALSE=
18053fi
18054
18055if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18056  as_fn_error $? "conditional \"AMDEP\" was never defined.
18057Usually this means the macro was only invoked conditionally." "$LINENO" 5
18058fi
18059if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18060  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18061Usually this means the macro was only invoked conditionally." "$LINENO" 5
18062fi
18063if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18064  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18065Usually this means the macro was only invoked conditionally." "$LINENO" 5
18066fi
18067
18068if test -z "${WITH_SYSTEMD_TRUE}" && test -z "${WITH_SYSTEMD_FALSE}"; then
18069  as_fn_error $? "conditional \"WITH_SYSTEMD\" was never defined.
18070Usually this means the macro was only invoked conditionally." "$LINENO" 5
18071fi
18072if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
18073  as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
18074Usually this means the macro was only invoked conditionally." "$LINENO" 5
18075fi
18076if test -z "${BUILD_SCRIPTS_TRUE}" && test -z "${BUILD_SCRIPTS_FALSE}"; then
18077  as_fn_error $? "conditional \"BUILD_SCRIPTS\" was never defined.
18078Usually this means the macro was only invoked conditionally." "$LINENO" 5
18079fi
18080if test -z "${INSTALL_CGI_TRUE}" && test -z "${INSTALL_CGI_FALSE}"; then
18081  as_fn_error $? "conditional \"INSTALL_CGI\" was never defined.
18082Usually this means the macro was only invoked conditionally." "$LINENO" 5
18083fi
18084if test -z "${INSTALL_CLI_TRUE}" && test -z "${INSTALL_CLI_FALSE}"; then
18085  as_fn_error $? "conditional \"INSTALL_CLI\" was never defined.
18086Usually this means the macro was only invoked conditionally." "$LINENO" 5
18087fi
18088if test -z "${INSTALL_CGISERV_TRUE}" && test -z "${INSTALL_CGISERV_FALSE}"; then
18089  as_fn_error $? "conditional \"INSTALL_CGISERV\" was never defined.
18090Usually this means the macro was only invoked conditionally." "$LINENO" 5
18091fi
18092if test -z "${INSTALL_MOOSEFS_MOUNT_TRUE}" && test -z "${INSTALL_MOOSEFS_MOUNT_FALSE}"; then
18093  as_fn_error $? "conditional \"INSTALL_MOOSEFS_MOUNT\" was never defined.
18094Usually this means the macro was only invoked conditionally." "$LINENO" 5
18095fi
18096if test -z "${BUILD_MASTER_TRUE}" && test -z "${BUILD_MASTER_FALSE}"; then
18097  as_fn_error $? "conditional \"BUILD_MASTER\" was never defined.
18098Usually this means the macro was only invoked conditionally." "$LINENO" 5
18099fi
18100if test -z "${BUILD_METALOGGER_TRUE}" && test -z "${BUILD_METALOGGER_FALSE}"; then
18101  as_fn_error $? "conditional \"BUILD_METALOGGER\" was never defined.
18102Usually this means the macro was only invoked conditionally." "$LINENO" 5
18103fi
18104if test -z "${BUILD_SUPERVISOR_TRUE}" && test -z "${BUILD_SUPERVISOR_FALSE}"; then
18105  as_fn_error $? "conditional \"BUILD_SUPERVISOR\" was never defined.
18106Usually this means the macro was only invoked conditionally." "$LINENO" 5
18107fi
18108if test -z "${BUILD_CHUNKSERVER_TRUE}" && test -z "${BUILD_CHUNKSERVER_FALSE}"; then
18109  as_fn_error $? "conditional \"BUILD_CHUNKSERVER\" was never defined.
18110Usually this means the macro was only invoked conditionally." "$LINENO" 5
18111fi
18112if test -z "${BUILD_NETDUMP_TRUE}" && test -z "${BUILD_NETDUMP_FALSE}"; then
18113  as_fn_error $? "conditional \"BUILD_NETDUMP\" was never defined.
18114Usually this means the macro was only invoked conditionally." "$LINENO" 5
18115fi
18116if test -z "${WITH_BDEV_TRUE}" && test -z "${WITH_BDEV_FALSE}"; then
18117  as_fn_error $? "conditional \"WITH_BDEV\" was never defined.
18118Usually this means the macro was only invoked conditionally." "$LINENO" 5
18119fi
18120if test -z "${WITH_MOUNT_TRUE}" && test -z "${WITH_MOUNT_FALSE}"; then
18121  as_fn_error $? "conditional \"WITH_MOUNT\" was never defined.
18122Usually this means the macro was only invoked conditionally." "$LINENO" 5
18123fi
18124if test -z "${BUILD_CLIENT_TRUE}" && test -z "${BUILD_CLIENT_FALSE}"; then
18125  as_fn_error $? "conditional \"BUILD_CLIENT\" was never defined.
18126Usually this means the macro was only invoked conditionally." "$LINENO" 5
18127fi
18128if test -z "${CREATE_ETC_MFS_TRUE}" && test -z "${CREATE_ETC_MFS_FALSE}"; then
18129  as_fn_error $? "conditional \"CREATE_ETC_MFS\" was never defined.
18130Usually this means the macro was only invoked conditionally." "$LINENO" 5
18131fi
18132if test -z "${CREATE_DATA_DIR_TRUE}" && test -z "${CREATE_DATA_DIR_FALSE}"; then
18133  as_fn_error $? "conditional \"CREATE_DATA_DIR\" was never defined.
18134Usually this means the macro was only invoked conditionally." "$LINENO" 5
18135fi
18136
18137: "${CONFIG_STATUS=./config.status}"
18138ac_write_fail=0
18139ac_clean_files_save=$ac_clean_files
18140ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18141{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18142$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18143as_write_fail=0
18144cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18145#! $SHELL
18146# Generated by $as_me.
18147# Run this file to recreate the current configuration.
18148# Compiler output produced by configure, useful for debugging
18149# configure, is in config.log if it exists.
18150
18151debug=false
18152ac_cs_recheck=false
18153ac_cs_silent=false
18154
18155SHELL=\${CONFIG_SHELL-$SHELL}
18156export SHELL
18157_ASEOF
18158cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18159## -------------------- ##
18160## M4sh Initialization. ##
18161## -------------------- ##
18162
18163# Be more Bourne compatible
18164DUALCASE=1; export DUALCASE # for MKS sh
18165if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18166  emulate sh
18167  NULLCMD=:
18168  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18169  # is contrary to our usage.  Disable this feature.
18170  alias -g '${1+"$@"}'='"$@"'
18171  setopt NO_GLOB_SUBST
18172else
18173  case `(set -o) 2>/dev/null` in #(
18174  *posix*) :
18175    set -o posix ;; #(
18176  *) :
18177     ;;
18178esac
18179fi
18180
18181
18182as_nl='
18183'
18184export as_nl
18185# Printing a long string crashes Solaris 7 /usr/bin/printf.
18186as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18187as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18188as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18189# Prefer a ksh shell builtin over an external printf program on Solaris,
18190# but without wasting forks for bash or zsh.
18191if test -z "$BASH_VERSION$ZSH_VERSION" \
18192    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18193  as_echo='print -r --'
18194  as_echo_n='print -rn --'
18195elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18196  as_echo='printf %s\n'
18197  as_echo_n='printf %s'
18198else
18199  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18200    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18201    as_echo_n='/usr/ucb/echo -n'
18202  else
18203    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18204    as_echo_n_body='eval
18205      arg=$1;
18206      case $arg in #(
18207      *"$as_nl"*)
18208	expr "X$arg" : "X\\(.*\\)$as_nl";
18209	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18210      esac;
18211      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18212    '
18213    export as_echo_n_body
18214    as_echo_n='sh -c $as_echo_n_body as_echo'
18215  fi
18216  export as_echo_body
18217  as_echo='sh -c $as_echo_body as_echo'
18218fi
18219
18220# The user is always right.
18221if test "${PATH_SEPARATOR+set}" != set; then
18222  PATH_SEPARATOR=:
18223  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18224    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18225      PATH_SEPARATOR=';'
18226  }
18227fi
18228
18229
18230# IFS
18231# We need space, tab and new line, in precisely that order.  Quoting is
18232# there to prevent editors from complaining about space-tab.
18233# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18234# splitting by setting IFS to empty value.)
18235IFS=" ""	$as_nl"
18236
18237# Find who we are.  Look in the path if we contain no directory separator.
18238as_myself=
18239case $0 in #((
18240  *[\\/]* ) as_myself=$0 ;;
18241  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18242for as_dir in $PATH
18243do
18244  IFS=$as_save_IFS
18245  test -z "$as_dir" && as_dir=.
18246    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18247  done
18248IFS=$as_save_IFS
18249
18250     ;;
18251esac
18252# We did not find ourselves, most probably we were run as `sh COMMAND'
18253# in which case we are not to be found in the path.
18254if test "x$as_myself" = x; then
18255  as_myself=$0
18256fi
18257if test ! -f "$as_myself"; then
18258  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18259  exit 1
18260fi
18261
18262# Unset variables that we do not need and which cause bugs (e.g. in
18263# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18264# suppresses any "Segmentation fault" message there.  '((' could
18265# trigger a bug in pdksh 5.2.14.
18266for as_var in BASH_ENV ENV MAIL MAILPATH
18267do eval test x\${$as_var+set} = xset \
18268  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18269done
18270PS1='$ '
18271PS2='> '
18272PS4='+ '
18273
18274# NLS nuisances.
18275LC_ALL=C
18276export LC_ALL
18277LANGUAGE=C
18278export LANGUAGE
18279
18280# CDPATH.
18281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18282
18283
18284# as_fn_error STATUS ERROR [LINENO LOG_FD]
18285# ----------------------------------------
18286# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18287# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18288# script with STATUS, using 1 if that was 0.
18289as_fn_error ()
18290{
18291  as_status=$1; test $as_status -eq 0 && as_status=1
18292  if test "$4"; then
18293    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18294    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18295  fi
18296  $as_echo "$as_me: error: $2" >&2
18297  as_fn_exit $as_status
18298} # as_fn_error
18299
18300
18301# as_fn_set_status STATUS
18302# -----------------------
18303# Set $? to STATUS, without forking.
18304as_fn_set_status ()
18305{
18306  return $1
18307} # as_fn_set_status
18308
18309# as_fn_exit STATUS
18310# -----------------
18311# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18312as_fn_exit ()
18313{
18314  set +e
18315  as_fn_set_status $1
18316  exit $1
18317} # as_fn_exit
18318
18319# as_fn_unset VAR
18320# ---------------
18321# Portably unset VAR.
18322as_fn_unset ()
18323{
18324  { eval $1=; unset $1;}
18325}
18326as_unset=as_fn_unset
18327# as_fn_append VAR VALUE
18328# ----------------------
18329# Append the text in VALUE to the end of the definition contained in VAR. Take
18330# advantage of any shell optimizations that allow amortized linear growth over
18331# repeated appends, instead of the typical quadratic growth present in naive
18332# implementations.
18333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18334  eval 'as_fn_append ()
18335  {
18336    eval $1+=\$2
18337  }'
18338else
18339  as_fn_append ()
18340  {
18341    eval $1=\$$1\$2
18342  }
18343fi # as_fn_append
18344
18345# as_fn_arith ARG...
18346# ------------------
18347# Perform arithmetic evaluation on the ARGs, and store the result in the
18348# global $as_val. Take advantage of shells that can avoid forks. The arguments
18349# must be portable across $(()) and expr.
18350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18351  eval 'as_fn_arith ()
18352  {
18353    as_val=$(( $* ))
18354  }'
18355else
18356  as_fn_arith ()
18357  {
18358    as_val=`expr "$@" || test $? -eq 1`
18359  }
18360fi # as_fn_arith
18361
18362
18363if expr a : '\(a\)' >/dev/null 2>&1 &&
18364   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18365  as_expr=expr
18366else
18367  as_expr=false
18368fi
18369
18370if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18371  as_basename=basename
18372else
18373  as_basename=false
18374fi
18375
18376if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18377  as_dirname=dirname
18378else
18379  as_dirname=false
18380fi
18381
18382as_me=`$as_basename -- "$0" ||
18383$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18384	 X"$0" : 'X\(//\)$' \| \
18385	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18386$as_echo X/"$0" |
18387    sed '/^.*\/\([^/][^/]*\)\/*$/{
18388	    s//\1/
18389	    q
18390	  }
18391	  /^X\/\(\/\/\)$/{
18392	    s//\1/
18393	    q
18394	  }
18395	  /^X\/\(\/\).*/{
18396	    s//\1/
18397	    q
18398	  }
18399	  s/.*/./; q'`
18400
18401# Avoid depending upon Character Ranges.
18402as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18403as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18404as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18405as_cr_digits='0123456789'
18406as_cr_alnum=$as_cr_Letters$as_cr_digits
18407
18408ECHO_C= ECHO_N= ECHO_T=
18409case `echo -n x` in #(((((
18410-n*)
18411  case `echo 'xy\c'` in
18412  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18413  xy)  ECHO_C='\c';;
18414  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18415       ECHO_T='	';;
18416  esac;;
18417*)
18418  ECHO_N='-n';;
18419esac
18420
18421rm -f conf$$ conf$$.exe conf$$.file
18422if test -d conf$$.dir; then
18423  rm -f conf$$.dir/conf$$.file
18424else
18425  rm -f conf$$.dir
18426  mkdir conf$$.dir 2>/dev/null
18427fi
18428if (echo >conf$$.file) 2>/dev/null; then
18429  if ln -s conf$$.file conf$$ 2>/dev/null; then
18430    as_ln_s='ln -s'
18431    # ... but there are two gotchas:
18432    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18433    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18434    # In both cases, we have to default to `cp -pR'.
18435    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18436      as_ln_s='cp -pR'
18437  elif ln conf$$.file conf$$ 2>/dev/null; then
18438    as_ln_s=ln
18439  else
18440    as_ln_s='cp -pR'
18441  fi
18442else
18443  as_ln_s='cp -pR'
18444fi
18445rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18446rmdir conf$$.dir 2>/dev/null
18447
18448
18449# as_fn_mkdir_p
18450# -------------
18451# Create "$as_dir" as a directory, including parents if necessary.
18452as_fn_mkdir_p ()
18453{
18454
18455  case $as_dir in #(
18456  -*) as_dir=./$as_dir;;
18457  esac
18458  test -d "$as_dir" || eval $as_mkdir_p || {
18459    as_dirs=
18460    while :; do
18461      case $as_dir in #(
18462      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18463      *) as_qdir=$as_dir;;
18464      esac
18465      as_dirs="'$as_qdir' $as_dirs"
18466      as_dir=`$as_dirname -- "$as_dir" ||
18467$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18468	 X"$as_dir" : 'X\(//\)[^/]' \| \
18469	 X"$as_dir" : 'X\(//\)$' \| \
18470	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18471$as_echo X"$as_dir" |
18472    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18473	    s//\1/
18474	    q
18475	  }
18476	  /^X\(\/\/\)[^/].*/{
18477	    s//\1/
18478	    q
18479	  }
18480	  /^X\(\/\/\)$/{
18481	    s//\1/
18482	    q
18483	  }
18484	  /^X\(\/\).*/{
18485	    s//\1/
18486	    q
18487	  }
18488	  s/.*/./; q'`
18489      test -d "$as_dir" && break
18490    done
18491    test -z "$as_dirs" || eval "mkdir $as_dirs"
18492  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18493
18494
18495} # as_fn_mkdir_p
18496if mkdir -p . 2>/dev/null; then
18497  as_mkdir_p='mkdir -p "$as_dir"'
18498else
18499  test -d ./-p && rmdir ./-p
18500  as_mkdir_p=false
18501fi
18502
18503
18504# as_fn_executable_p FILE
18505# -----------------------
18506# Test if FILE is an executable regular file.
18507as_fn_executable_p ()
18508{
18509  test -f "$1" && test -x "$1"
18510} # as_fn_executable_p
18511as_test_x='test -x'
18512as_executable_p=as_fn_executable_p
18513
18514# Sed expression to map a string onto a valid CPP name.
18515as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18516
18517# Sed expression to map a string onto a valid variable name.
18518as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18519
18520
18521exec 6>&1
18522## ----------------------------------- ##
18523## Main body of $CONFIG_STATUS script. ##
18524## ----------------------------------- ##
18525_ASEOF
18526test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18527
18528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18529# Save the log message, to keep $0 and so on meaningful, and to
18530# report actual input values of CONFIG_FILES etc. instead of their
18531# values after options handling.
18532ac_log="
18533This file was extended by MFS $as_me 3.0.116, which was
18534generated by GNU Autoconf 2.69.  Invocation command line was
18535
18536  CONFIG_FILES    = $CONFIG_FILES
18537  CONFIG_HEADERS  = $CONFIG_HEADERS
18538  CONFIG_LINKS    = $CONFIG_LINKS
18539  CONFIG_COMMANDS = $CONFIG_COMMANDS
18540  $ $0 $@
18541
18542on `(hostname || uname -n) 2>/dev/null | sed 1q`
18543"
18544
18545_ACEOF
18546
18547case $ac_config_files in *"
18548"*) set x $ac_config_files; shift; ac_config_files=$*;;
18549esac
18550
18551case $ac_config_headers in *"
18552"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18553esac
18554
18555
18556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18557# Files that config.status was made for.
18558config_files="$ac_config_files"
18559config_headers="$ac_config_headers"
18560config_commands="$ac_config_commands"
18561
18562_ACEOF
18563
18564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18565ac_cs_usage="\
18566\`$as_me' instantiates files and other configuration actions
18567from templates according to the current configuration.  Unless the files
18568and actions are specified as TAGs, all are instantiated by default.
18569
18570Usage: $0 [OPTION]... [TAG]...
18571
18572  -h, --help       print this help, then exit
18573  -V, --version    print version number and configuration settings, then exit
18574      --config     print configuration, then exit
18575  -q, --quiet, --silent
18576                   do not print progress messages
18577  -d, --debug      don't remove temporary files
18578      --recheck    update $as_me by reconfiguring in the same conditions
18579      --file=FILE[:TEMPLATE]
18580                   instantiate the configuration file FILE
18581      --header=FILE[:TEMPLATE]
18582                   instantiate the configuration header FILE
18583
18584Configuration files:
18585$config_files
18586
18587Configuration headers:
18588$config_headers
18589
18590Configuration commands:
18591$config_commands
18592
18593Report bugs to <bugs@moosefs.com>."
18594
18595_ACEOF
18596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18597ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18598ac_cs_version="\\
18599MFS config.status 3.0.116
18600configured by $0, generated by GNU Autoconf 2.69,
18601  with options \\"\$ac_cs_config\\"
18602
18603Copyright (C) 2012 Free Software Foundation, Inc.
18604This config.status script is free software; the Free Software Foundation
18605gives unlimited permission to copy, distribute and modify it."
18606
18607ac_pwd='$ac_pwd'
18608srcdir='$srcdir'
18609INSTALL='$INSTALL'
18610MKDIR_P='$MKDIR_P'
18611AWK='$AWK'
18612test -n "\$AWK" || AWK=awk
18613_ACEOF
18614
18615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18616# The default lists apply if the user does not specify any file.
18617ac_need_defaults=:
18618while test $# != 0
18619do
18620  case $1 in
18621  --*=?*)
18622    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18623    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18624    ac_shift=:
18625    ;;
18626  --*=)
18627    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18628    ac_optarg=
18629    ac_shift=:
18630    ;;
18631  *)
18632    ac_option=$1
18633    ac_optarg=$2
18634    ac_shift=shift
18635    ;;
18636  esac
18637
18638  case $ac_option in
18639  # Handling of the options.
18640  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18641    ac_cs_recheck=: ;;
18642  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18643    $as_echo "$ac_cs_version"; exit ;;
18644  --config | --confi | --conf | --con | --co | --c )
18645    $as_echo "$ac_cs_config"; exit ;;
18646  --debug | --debu | --deb | --de | --d | -d )
18647    debug=: ;;
18648  --file | --fil | --fi | --f )
18649    $ac_shift
18650    case $ac_optarg in
18651    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18652    '') as_fn_error $? "missing file argument" ;;
18653    esac
18654    as_fn_append CONFIG_FILES " '$ac_optarg'"
18655    ac_need_defaults=false;;
18656  --header | --heade | --head | --hea )
18657    $ac_shift
18658    case $ac_optarg in
18659    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18660    esac
18661    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18662    ac_need_defaults=false;;
18663  --he | --h)
18664    # Conflict between --help and --header
18665    as_fn_error $? "ambiguous option: \`$1'
18666Try \`$0 --help' for more information.";;
18667  --help | --hel | -h )
18668    $as_echo "$ac_cs_usage"; exit ;;
18669  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18670  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18671    ac_cs_silent=: ;;
18672
18673  # This is an error.
18674  -*) as_fn_error $? "unrecognized option: \`$1'
18675Try \`$0 --help' for more information." ;;
18676
18677  *) as_fn_append ac_config_targets " $1"
18678     ac_need_defaults=false ;;
18679
18680  esac
18681  shift
18682done
18683
18684ac_configure_extra_args=
18685
18686if $ac_cs_silent; then
18687  exec 6>/dev/null
18688  ac_configure_extra_args="$ac_configure_extra_args --silent"
18689fi
18690
18691_ACEOF
18692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18693if \$ac_cs_recheck; then
18694  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18695  shift
18696  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18697  CONFIG_SHELL='$SHELL'
18698  export CONFIG_SHELL
18699  exec "\$@"
18700fi
18701
18702_ACEOF
18703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18704exec 5>>config.log
18705{
18706  echo
18707  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18708## Running $as_me. ##
18709_ASBOX
18710  $as_echo "$ac_log"
18711} >&5
18712
18713_ACEOF
18714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18715#
18716# INIT-COMMANDS
18717#
18718AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18719
18720
18721# The HP-UX ksh and POSIX shell print the target directory to stdout
18722# if CDPATH is set.
18723(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18724
18725sed_quote_subst='$sed_quote_subst'
18726double_quote_subst='$double_quote_subst'
18727delay_variable_subst='$delay_variable_subst'
18728macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18729macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18730enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18731enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18732pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18733enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18734shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18735SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18736ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18737PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18738host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18739host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18740host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18741build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18742build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18743build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18744SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18745Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18746GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18747EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18748FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18749LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18750NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18751LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18752max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18753ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18754exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18755lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18756lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18757lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18758lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18759lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18760reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18761reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18762OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18763deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18764file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18765file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18766want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18767DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18768sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18769AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18770AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18771archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18772STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18773RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18774old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18775old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18776old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18777lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18778CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18779CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18780compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18781GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18782lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18783lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18784lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18785lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18786lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18787lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18788nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18789lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18790lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18791objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18792MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18793lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18794lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18795lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18796lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18797lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18798need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18799MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18800DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18801NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18802LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18803OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18804OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18805libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18806shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18807extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18808archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18809enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18810export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18811whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18812compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18813old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18814old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18815archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18816archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18817module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18818module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18819with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18820allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18821no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18822hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18823hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18824hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18825hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18826hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18827hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18828hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18829inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18830link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18831always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18832export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18833exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18834include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18835prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18836postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18837file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18838variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18839need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18840need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18841version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18842runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18843shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18844shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18845libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18846library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18847soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18848install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18849postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18850postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18851finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18852finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18853hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18854sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18855configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18856configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18857hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18858enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18859enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18860enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18861old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18862striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18863
18864LTCC='$LTCC'
18865LTCFLAGS='$LTCFLAGS'
18866compiler='$compiler_DEFAULT'
18867
18868# A function that is used when there is no print builtin or printf.
18869func_fallback_echo ()
18870{
18871  eval 'cat <<_LTECHO_EOF
18872\$1
18873_LTECHO_EOF'
18874}
18875
18876# Quote evaled strings.
18877for var in SHELL \
18878ECHO \
18879PATH_SEPARATOR \
18880SED \
18881GREP \
18882EGREP \
18883FGREP \
18884LD \
18885NM \
18886LN_S \
18887lt_SP2NL \
18888lt_NL2SP \
18889reload_flag \
18890OBJDUMP \
18891deplibs_check_method \
18892file_magic_cmd \
18893file_magic_glob \
18894want_nocaseglob \
18895DLLTOOL \
18896sharedlib_from_linklib_cmd \
18897AR \
18898AR_FLAGS \
18899archiver_list_spec \
18900STRIP \
18901RANLIB \
18902CC \
18903CFLAGS \
18904compiler \
18905lt_cv_sys_global_symbol_pipe \
18906lt_cv_sys_global_symbol_to_cdecl \
18907lt_cv_sys_global_symbol_to_import \
18908lt_cv_sys_global_symbol_to_c_name_address \
18909lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18910lt_cv_nm_interface \
18911nm_file_list_spec \
18912lt_cv_truncate_bin \
18913lt_prog_compiler_no_builtin_flag \
18914lt_prog_compiler_pic \
18915lt_prog_compiler_wl \
18916lt_prog_compiler_static \
18917lt_cv_prog_compiler_c_o \
18918need_locks \
18919MANIFEST_TOOL \
18920DSYMUTIL \
18921NMEDIT \
18922LIPO \
18923OTOOL \
18924OTOOL64 \
18925shrext_cmds \
18926export_dynamic_flag_spec \
18927whole_archive_flag_spec \
18928compiler_needs_object \
18929with_gnu_ld \
18930allow_undefined_flag \
18931no_undefined_flag \
18932hardcode_libdir_flag_spec \
18933hardcode_libdir_separator \
18934exclude_expsyms \
18935include_expsyms \
18936file_list_spec \
18937variables_saved_for_relink \
18938libname_spec \
18939library_names_spec \
18940soname_spec \
18941install_override_mode \
18942finish_eval \
18943old_striplib \
18944striplib; do
18945    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18946    *[\\\\\\\`\\"\\\$]*)
18947      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18948      ;;
18949    *)
18950      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18951      ;;
18952    esac
18953done
18954
18955# Double-quote double-evaled strings.
18956for var in reload_cmds \
18957old_postinstall_cmds \
18958old_postuninstall_cmds \
18959old_archive_cmds \
18960extract_expsyms_cmds \
18961old_archive_from_new_cmds \
18962old_archive_from_expsyms_cmds \
18963archive_cmds \
18964archive_expsym_cmds \
18965module_cmds \
18966module_expsym_cmds \
18967export_symbols_cmds \
18968prelink_cmds \
18969postlink_cmds \
18970postinstall_cmds \
18971postuninstall_cmds \
18972finish_cmds \
18973sys_lib_search_path_spec \
18974configure_time_dlsearch_path \
18975configure_time_lt_sys_library_path; do
18976    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18977    *[\\\\\\\`\\"\\\$]*)
18978      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18979      ;;
18980    *)
18981      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18982      ;;
18983    esac
18984done
18985
18986ac_aux_dir='$ac_aux_dir'
18987
18988# See if we are running on zsh, and set the options that allow our
18989# commands through without removal of \ escapes INIT.
18990if test -n "\${ZSH_VERSION+set}"; then
18991   setopt NO_GLOB_SUBST
18992fi
18993
18994
18995    PACKAGE='$PACKAGE'
18996    VERSION='$VERSION'
18997    RM='$RM'
18998    ofile='$ofile'
18999
19000
19001
19002
19003_ACEOF
19004
19005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19006
19007# Handling of arguments.
19008for ac_config_target in $ac_config_targets
19009do
19010  case $ac_config_target in
19011    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19012    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19013    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19014    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19015    "mfsmanpages/Makefile") CONFIG_FILES="$CONFIG_FILES mfsmanpages/Makefile" ;;
19016    "mfschunkserver/Makefile") CONFIG_FILES="$CONFIG_FILES mfschunkserver/Makefile" ;;
19017    "mfsscripts/Makefile") CONFIG_FILES="$CONFIG_FILES mfsscripts/Makefile" ;;
19018    "mfsdata/Makefile") CONFIG_FILES="$CONFIG_FILES mfsdata/Makefile" ;;
19019    "mfsmaster/Makefile") CONFIG_FILES="$CONFIG_FILES mfsmaster/Makefile" ;;
19020    "mfsmetatools/Makefile") CONFIG_FILES="$CONFIG_FILES mfsmetatools/Makefile" ;;
19021    "mfsmetalogger/Makefile") CONFIG_FILES="$CONFIG_FILES mfsmetalogger/Makefile" ;;
19022    "mfssupervisor/Makefile") CONFIG_FILES="$CONFIG_FILES mfssupervisor/Makefile" ;;
19023    "mfsclient/Makefile") CONFIG_FILES="$CONFIG_FILES mfsclient/Makefile" ;;
19024    "mfsnetdump/Makefile") CONFIG_FILES="$CONFIG_FILES mfsnetdump/Makefile" ;;
19025    "mfstests/Makefile") CONFIG_FILES="$CONFIG_FILES mfstests/Makefile" ;;
19026    "systemd/Makefile") CONFIG_FILES="$CONFIG_FILES systemd/Makefile" ;;
19027    "mfsscripts/mfscli.py") CONFIG_FILES="$CONFIG_FILES mfsscripts/mfscli.py" ;;
19028    "mfsscripts/chart.cgi") CONFIG_FILES="$CONFIG_FILES mfsscripts/chart.cgi" ;;
19029    "mfsscripts/index.html") CONFIG_FILES="$CONFIG_FILES mfsscripts/index.html" ;;
19030    "mfsscripts/mfscgiserv.py") CONFIG_FILES="$CONFIG_FILES mfsscripts/mfscgiserv.py" ;;
19031    "mfsdata/mfschunkserver.cfg") CONFIG_FILES="$CONFIG_FILES mfsdata/mfschunkserver.cfg" ;;
19032    "mfsdata/mfsmaster.cfg") CONFIG_FILES="$CONFIG_FILES mfsdata/mfsmaster.cfg" ;;
19033    "mfsdata/mfsmetalogger.cfg") CONFIG_FILES="$CONFIG_FILES mfsdata/mfsmetalogger.cfg" ;;
19034    "mfsdata/mfsmount.cfg") CONFIG_FILES="$CONFIG_FILES mfsdata/mfsmount.cfg" ;;
19035    "systemd/moosefs-cgiserv.service") CONFIG_FILES="$CONFIG_FILES systemd/moosefs-cgiserv.service" ;;
19036    "systemd/moosefs-chunkserver.service") CONFIG_FILES="$CONFIG_FILES systemd/moosefs-chunkserver.service" ;;
19037    "systemd/moosefs-chunkserver@.service") CONFIG_FILES="$CONFIG_FILES systemd/moosefs-chunkserver@.service" ;;
19038    "systemd/moosefs-master.service") CONFIG_FILES="$CONFIG_FILES systemd/moosefs-master.service" ;;
19039    "systemd/moosefs-master@.service") CONFIG_FILES="$CONFIG_FILES systemd/moosefs-master@.service" ;;
19040    "systemd/moosefs-metalogger.service") CONFIG_FILES="$CONFIG_FILES systemd/moosefs-metalogger.service" ;;
19041    "systemd/moosefs-metalogger@.service") CONFIG_FILES="$CONFIG_FILES systemd/moosefs-metalogger@.service" ;;
19042
19043  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19044  esac
19045done
19046
19047
19048# If the user did not use the arguments to specify the items to instantiate,
19049# then the envvar interface is used.  Set only those that are not.
19050# We use the long form for the default assignment because of an extremely
19051# bizarre bug on SunOS 4.1.3.
19052if $ac_need_defaults; then
19053  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19054  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19055  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19056fi
19057
19058# Have a temporary directory for convenience.  Make it in the build tree
19059# simply because there is no reason against having it here, and in addition,
19060# creating and moving files from /tmp can sometimes cause problems.
19061# Hook for its removal unless debugging.
19062# Note that there is a small window in which the directory will not be cleaned:
19063# after its creation but before its name has been assigned to `$tmp'.
19064$debug ||
19065{
19066  tmp= ac_tmp=
19067  trap 'exit_status=$?
19068  : "${ac_tmp:=$tmp}"
19069  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19070' 0
19071  trap 'as_fn_exit 1' 1 2 13 15
19072}
19073# Create a (secure) tmp directory for tmp files.
19074
19075{
19076  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19077  test -d "$tmp"
19078}  ||
19079{
19080  tmp=./conf$$-$RANDOM
19081  (umask 077 && mkdir "$tmp")
19082} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19083ac_tmp=$tmp
19084
19085# Set up the scripts for CONFIG_FILES section.
19086# No need to generate them if there are no CONFIG_FILES.
19087# This happens for instance with `./config.status config.h'.
19088if test -n "$CONFIG_FILES"; then
19089
19090
19091ac_cr=`echo X | tr X '\015'`
19092# On cygwin, bash can eat \r inside `` if the user requested igncr.
19093# But we know of no other shell where ac_cr would be empty at this
19094# point, so we can use a bashism as a fallback.
19095if test "x$ac_cr" = x; then
19096  eval ac_cr=\$\'\\r\'
19097fi
19098ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19099if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19100  ac_cs_awk_cr='\\r'
19101else
19102  ac_cs_awk_cr=$ac_cr
19103fi
19104
19105echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19106_ACEOF
19107
19108
19109{
19110  echo "cat >conf$$subs.awk <<_ACEOF" &&
19111  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19112  echo "_ACEOF"
19113} >conf$$subs.sh ||
19114  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19115ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19116ac_delim='%!_!# '
19117for ac_last_try in false false false false false :; do
19118  . ./conf$$subs.sh ||
19119    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19120
19121  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19122  if test $ac_delim_n = $ac_delim_num; then
19123    break
19124  elif $ac_last_try; then
19125    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19126  else
19127    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19128  fi
19129done
19130rm -f conf$$subs.sh
19131
19132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19133cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19134_ACEOF
19135sed -n '
19136h
19137s/^/S["/; s/!.*/"]=/
19138p
19139g
19140s/^[^!]*!//
19141:repl
19142t repl
19143s/'"$ac_delim"'$//
19144t delim
19145:nl
19146h
19147s/\(.\{148\}\)..*/\1/
19148t more1
19149s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19150p
19151n
19152b repl
19153:more1
19154s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19155p
19156g
19157s/.\{148\}//
19158t nl
19159:delim
19160h
19161s/\(.\{148\}\)..*/\1/
19162t more2
19163s/["\\]/\\&/g; s/^/"/; s/$/"/
19164p
19165b
19166:more2
19167s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19168p
19169g
19170s/.\{148\}//
19171t delim
19172' <conf$$subs.awk | sed '
19173/^[^""]/{
19174  N
19175  s/\n//
19176}
19177' >>$CONFIG_STATUS || ac_write_fail=1
19178rm -f conf$$subs.awk
19179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19180_ACAWK
19181cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19182  for (key in S) S_is_set[key] = 1
19183  FS = ""
19184
19185}
19186{
19187  line = $ 0
19188  nfields = split(line, field, "@")
19189  substed = 0
19190  len = length(field[1])
19191  for (i = 2; i < nfields; i++) {
19192    key = field[i]
19193    keylen = length(key)
19194    if (S_is_set[key]) {
19195      value = S[key]
19196      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19197      len += length(value) + length(field[++i])
19198      substed = 1
19199    } else
19200      len += 1 + keylen
19201  }
19202
19203  print line
19204}
19205
19206_ACAWK
19207_ACEOF
19208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19209if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19210  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19211else
19212  cat
19213fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19214  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19215_ACEOF
19216
19217# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19218# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19219# trailing colons and then remove the whole line if VPATH becomes empty
19220# (actually we leave an empty line to preserve line numbers).
19221if test "x$srcdir" = x.; then
19222  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19223h
19224s///
19225s/^/:/
19226s/[	 ]*$/:/
19227s/:\$(srcdir):/:/g
19228s/:\${srcdir}:/:/g
19229s/:@srcdir@:/:/g
19230s/^:*//
19231s/:*$//
19232x
19233s/\(=[	 ]*\).*/\1/
19234G
19235s/\n//
19236s/^[^=]*=[	 ]*$//
19237}'
19238fi
19239
19240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19241fi # test -n "$CONFIG_FILES"
19242
19243# Set up the scripts for CONFIG_HEADERS section.
19244# No need to generate them if there are no CONFIG_HEADERS.
19245# This happens for instance with `./config.status Makefile'.
19246if test -n "$CONFIG_HEADERS"; then
19247cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19248BEGIN {
19249_ACEOF
19250
19251# Transform confdefs.h into an awk script `defines.awk', embedded as
19252# here-document in config.status, that substitutes the proper values into
19253# config.h.in to produce config.h.
19254
19255# Create a delimiter string that does not exist in confdefs.h, to ease
19256# handling of long lines.
19257ac_delim='%!_!# '
19258for ac_last_try in false false :; do
19259  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19260  if test -z "$ac_tt"; then
19261    break
19262  elif $ac_last_try; then
19263    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19264  else
19265    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19266  fi
19267done
19268
19269# For the awk script, D is an array of macro values keyed by name,
19270# likewise P contains macro parameters if any.  Preserve backslash
19271# newline sequences.
19272
19273ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19274sed -n '
19275s/.\{148\}/&'"$ac_delim"'/g
19276t rset
19277:rset
19278s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19279t def
19280d
19281:def
19282s/\\$//
19283t bsnl
19284s/["\\]/\\&/g
19285s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19286D["\1"]=" \3"/p
19287s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19288d
19289:bsnl
19290s/["\\]/\\&/g
19291s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19292D["\1"]=" \3\\\\\\n"\\/p
19293t cont
19294s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19295t cont
19296d
19297:cont
19298n
19299s/.\{148\}/&'"$ac_delim"'/g
19300t clear
19301:clear
19302s/\\$//
19303t bsnlc
19304s/["\\]/\\&/g; s/^/"/; s/$/"/p
19305d
19306:bsnlc
19307s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19308b cont
19309' <confdefs.h | sed '
19310s/'"$ac_delim"'/"\\\
19311"/g' >>$CONFIG_STATUS || ac_write_fail=1
19312
19313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19314  for (key in D) D_is_set[key] = 1
19315  FS = ""
19316}
19317/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19318  line = \$ 0
19319  split(line, arg, " ")
19320  if (arg[1] == "#") {
19321    defundef = arg[2]
19322    mac1 = arg[3]
19323  } else {
19324    defundef = substr(arg[1], 2)
19325    mac1 = arg[2]
19326  }
19327  split(mac1, mac2, "(") #)
19328  macro = mac2[1]
19329  prefix = substr(line, 1, index(line, defundef) - 1)
19330  if (D_is_set[macro]) {
19331    # Preserve the white space surrounding the "#".
19332    print prefix "define", macro P[macro] D[macro]
19333    next
19334  } else {
19335    # Replace #undef with comments.  This is necessary, for example,
19336    # in the case of _POSIX_SOURCE, which is predefined and required
19337    # on some systems where configure will not decide to define it.
19338    if (defundef == "undef") {
19339      print "/*", prefix defundef, macro, "*/"
19340      next
19341    }
19342  }
19343}
19344{ print }
19345_ACAWK
19346_ACEOF
19347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19348  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19349fi # test -n "$CONFIG_HEADERS"
19350
19351
19352eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19353shift
19354for ac_tag
19355do
19356  case $ac_tag in
19357  :[FHLC]) ac_mode=$ac_tag; continue;;
19358  esac
19359  case $ac_mode$ac_tag in
19360  :[FHL]*:*);;
19361  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19362  :[FH]-) ac_tag=-:-;;
19363  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19364  esac
19365  ac_save_IFS=$IFS
19366  IFS=:
19367  set x $ac_tag
19368  IFS=$ac_save_IFS
19369  shift
19370  ac_file=$1
19371  shift
19372
19373  case $ac_mode in
19374  :L) ac_source=$1;;
19375  :[FH])
19376    ac_file_inputs=
19377    for ac_f
19378    do
19379      case $ac_f in
19380      -) ac_f="$ac_tmp/stdin";;
19381      *) # Look for the file first in the build tree, then in the source tree
19382	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19383	 # because $ac_f cannot contain `:'.
19384	 test -f "$ac_f" ||
19385	   case $ac_f in
19386	   [\\/$]*) false;;
19387	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19388	   esac ||
19389	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19390      esac
19391      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19392      as_fn_append ac_file_inputs " '$ac_f'"
19393    done
19394
19395    # Let's still pretend it is `configure' which instantiates (i.e., don't
19396    # use $as_me), people would be surprised to read:
19397    #    /* config.h.  Generated by config.status.  */
19398    configure_input='Generated from '`
19399	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19400	`' by configure.'
19401    if test x"$ac_file" != x-; then
19402      configure_input="$ac_file.  $configure_input"
19403      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19404$as_echo "$as_me: creating $ac_file" >&6;}
19405    fi
19406    # Neutralize special characters interpreted by sed in replacement strings.
19407    case $configure_input in #(
19408    *\&* | *\|* | *\\* )
19409       ac_sed_conf_input=`$as_echo "$configure_input" |
19410       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19411    *) ac_sed_conf_input=$configure_input;;
19412    esac
19413
19414    case $ac_tag in
19415    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19416      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19417    esac
19418    ;;
19419  esac
19420
19421  ac_dir=`$as_dirname -- "$ac_file" ||
19422$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19423	 X"$ac_file" : 'X\(//\)[^/]' \| \
19424	 X"$ac_file" : 'X\(//\)$' \| \
19425	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19426$as_echo X"$ac_file" |
19427    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19428	    s//\1/
19429	    q
19430	  }
19431	  /^X\(\/\/\)[^/].*/{
19432	    s//\1/
19433	    q
19434	  }
19435	  /^X\(\/\/\)$/{
19436	    s//\1/
19437	    q
19438	  }
19439	  /^X\(\/\).*/{
19440	    s//\1/
19441	    q
19442	  }
19443	  s/.*/./; q'`
19444  as_dir="$ac_dir"; as_fn_mkdir_p
19445  ac_builddir=.
19446
19447case "$ac_dir" in
19448.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19449*)
19450  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19451  # A ".." for each directory in $ac_dir_suffix.
19452  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19453  case $ac_top_builddir_sub in
19454  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19455  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19456  esac ;;
19457esac
19458ac_abs_top_builddir=$ac_pwd
19459ac_abs_builddir=$ac_pwd$ac_dir_suffix
19460# for backward compatibility:
19461ac_top_builddir=$ac_top_build_prefix
19462
19463case $srcdir in
19464  .)  # We are building in place.
19465    ac_srcdir=.
19466    ac_top_srcdir=$ac_top_builddir_sub
19467    ac_abs_top_srcdir=$ac_pwd ;;
19468  [\\/]* | ?:[\\/]* )  # Absolute name.
19469    ac_srcdir=$srcdir$ac_dir_suffix;
19470    ac_top_srcdir=$srcdir
19471    ac_abs_top_srcdir=$srcdir ;;
19472  *) # Relative name.
19473    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19474    ac_top_srcdir=$ac_top_build_prefix$srcdir
19475    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19476esac
19477ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19478
19479
19480  case $ac_mode in
19481  :F)
19482  #
19483  # CONFIG_FILE
19484  #
19485
19486  case $INSTALL in
19487  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19488  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19489  esac
19490  ac_MKDIR_P=$MKDIR_P
19491  case $MKDIR_P in
19492  [\\/$]* | ?:[\\/]* ) ;;
19493  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19494  esac
19495_ACEOF
19496
19497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19498# If the template does not know about datarootdir, expand it.
19499# FIXME: This hack should be removed a few years after 2.60.
19500ac_datarootdir_hack=; ac_datarootdir_seen=
19501ac_sed_dataroot='
19502/datarootdir/ {
19503  p
19504  q
19505}
19506/@datadir@/p
19507/@docdir@/p
19508/@infodir@/p
19509/@localedir@/p
19510/@mandir@/p'
19511case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19512*datarootdir*) ac_datarootdir_seen=yes;;
19513*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19514  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19515$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19516_ACEOF
19517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19518  ac_datarootdir_hack='
19519  s&@datadir@&$datadir&g
19520  s&@docdir@&$docdir&g
19521  s&@infodir@&$infodir&g
19522  s&@localedir@&$localedir&g
19523  s&@mandir@&$mandir&g
19524  s&\\\${datarootdir}&$datarootdir&g' ;;
19525esac
19526_ACEOF
19527
19528# Neutralize VPATH when `$srcdir' = `.'.
19529# Shell code in configure.ac might set extrasub.
19530# FIXME: do we really want to maintain this feature?
19531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19532ac_sed_extra="$ac_vpsub
19533$extrasub
19534_ACEOF
19535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19536:t
19537/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19538s|@configure_input@|$ac_sed_conf_input|;t t
19539s&@top_builddir@&$ac_top_builddir_sub&;t t
19540s&@top_build_prefix@&$ac_top_build_prefix&;t t
19541s&@srcdir@&$ac_srcdir&;t t
19542s&@abs_srcdir@&$ac_abs_srcdir&;t t
19543s&@top_srcdir@&$ac_top_srcdir&;t t
19544s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19545s&@builddir@&$ac_builddir&;t t
19546s&@abs_builddir@&$ac_abs_builddir&;t t
19547s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19548s&@INSTALL@&$ac_INSTALL&;t t
19549s&@MKDIR_P@&$ac_MKDIR_P&;t t
19550$ac_datarootdir_hack
19551"
19552eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19553  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19554
19555test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19556  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19557  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19558      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19559  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19560which seems to be undefined.  Please make sure it is defined" >&5
19561$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19562which seems to be undefined.  Please make sure it is defined" >&2;}
19563
19564  rm -f "$ac_tmp/stdin"
19565  case $ac_file in
19566  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19567  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19568  esac \
19569  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19570 ;;
19571  :H)
19572  #
19573  # CONFIG_HEADER
19574  #
19575  if test x"$ac_file" != x-; then
19576    {
19577      $as_echo "/* $configure_input  */" \
19578      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19579    } >"$ac_tmp/config.h" \
19580      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19581    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19582      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19583$as_echo "$as_me: $ac_file is unchanged" >&6;}
19584    else
19585      rm -f "$ac_file"
19586      mv "$ac_tmp/config.h" "$ac_file" \
19587	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19588    fi
19589  else
19590    $as_echo "/* $configure_input  */" \
19591      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19592      || as_fn_error $? "could not create -" "$LINENO" 5
19593  fi
19594# Compute "$ac_file"'s index in $config_headers.
19595_am_arg="$ac_file"
19596_am_stamp_count=1
19597for _am_header in $config_headers :; do
19598  case $_am_header in
19599    $_am_arg | $_am_arg:* )
19600      break ;;
19601    * )
19602      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19603  esac
19604done
19605echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19606$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19607	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19608	 X"$_am_arg" : 'X\(//\)$' \| \
19609	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19610$as_echo X"$_am_arg" |
19611    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19612	    s//\1/
19613	    q
19614	  }
19615	  /^X\(\/\/\)[^/].*/{
19616	    s//\1/
19617	    q
19618	  }
19619	  /^X\(\/\/\)$/{
19620	    s//\1/
19621	    q
19622	  }
19623	  /^X\(\/\).*/{
19624	    s//\1/
19625	    q
19626	  }
19627	  s/.*/./; q'`/stamp-h$_am_stamp_count
19628 ;;
19629
19630  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19631$as_echo "$as_me: executing $ac_file commands" >&6;}
19632 ;;
19633  esac
19634
19635
19636  case $ac_file$ac_mode in
19637    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19638  # Older Autoconf quotes --file arguments for eval, but not when files
19639  # are listed without --file.  Let's play safe and only enable the eval
19640  # if we detect the quoting.
19641  # TODO: see whether this extra hack can be removed once we start
19642  # requiring Autoconf 2.70 or later.
19643  case $CONFIG_FILES in #(
19644  *\'*) :
19645    eval set x "$CONFIG_FILES" ;; #(
19646  *) :
19647    set x $CONFIG_FILES ;; #(
19648  *) :
19649     ;;
19650esac
19651  shift
19652  # Used to flag and report bootstrapping failures.
19653  am_rc=0
19654  for am_mf
19655  do
19656    # Strip MF so we end up with the name of the file.
19657    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
19658    # Check whether this is an Automake generated Makefile which includes
19659    # dependency-tracking related rules and includes.
19660    # Grep'ing the whole file directly is not great: AIX grep has a line
19661    # limit of 2048, but all sed's we know have understand at least 4000.
19662    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19663      || continue
19664    am_dirpart=`$as_dirname -- "$am_mf" ||
19665$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19666	 X"$am_mf" : 'X\(//\)[^/]' \| \
19667	 X"$am_mf" : 'X\(//\)$' \| \
19668	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19669$as_echo X"$am_mf" |
19670    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19671	    s//\1/
19672	    q
19673	  }
19674	  /^X\(\/\/\)[^/].*/{
19675	    s//\1/
19676	    q
19677	  }
19678	  /^X\(\/\/\)$/{
19679	    s//\1/
19680	    q
19681	  }
19682	  /^X\(\/\).*/{
19683	    s//\1/
19684	    q
19685	  }
19686	  s/.*/./; q'`
19687    am_filepart=`$as_basename -- "$am_mf" ||
19688$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19689	 X"$am_mf" : 'X\(//\)$' \| \
19690	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19691$as_echo X/"$am_mf" |
19692    sed '/^.*\/\([^/][^/]*\)\/*$/{
19693	    s//\1/
19694	    q
19695	  }
19696	  /^X\/\(\/\/\)$/{
19697	    s//\1/
19698	    q
19699	  }
19700	  /^X\/\(\/\).*/{
19701	    s//\1/
19702	    q
19703	  }
19704	  s/.*/./; q'`
19705    { echo "$as_me:$LINENO: cd "$am_dirpart" \
19706      && sed -e '/# am--include-marker/d' "$am_filepart" \
19707        | $MAKE -f - am--depfiles" >&5
19708   (cd "$am_dirpart" \
19709      && sed -e '/# am--include-marker/d' "$am_filepart" \
19710        | $MAKE -f - am--depfiles) >&5 2>&5
19711   ac_status=$?
19712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713   (exit $ac_status); } || am_rc=$?
19714  done
19715  if test $am_rc -ne 0; then
19716    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19718as_fn_error $? "Something went wrong bootstrapping makefile fragments
19719    for automatic dependency tracking.  Try re-running configure with the
19720    '--disable-dependency-tracking' option to at least be able to build
19721    the package (albeit without support for automatic dependency tracking).
19722See \`config.log' for more details" "$LINENO" 5; }
19723  fi
19724  { am_dirpart=; unset am_dirpart;}
19725  { am_filepart=; unset am_filepart;}
19726  { am_mf=; unset am_mf;}
19727  { am_rc=; unset am_rc;}
19728  rm -f conftest-deps.mk
19729}
19730 ;;
19731    "libtool":C)
19732
19733    # See if we are running on zsh, and set the options that allow our
19734    # commands through without removal of \ escapes.
19735    if test -n "${ZSH_VERSION+set}"; then
19736      setopt NO_GLOB_SUBST
19737    fi
19738
19739    cfgfile=${ofile}T
19740    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19741    $RM "$cfgfile"
19742
19743    cat <<_LT_EOF >> "$cfgfile"
19744#! $SHELL
19745# Generated automatically by $as_me ($PACKAGE) $VERSION
19746# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19747# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19748
19749# Provide generalized library-building support services.
19750# Written by Gordon Matzigkeit, 1996
19751
19752# Copyright (C) 2014 Free Software Foundation, Inc.
19753# This is free software; see the source for copying conditions.  There is NO
19754# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19755
19756# GNU Libtool is free software; you can redistribute it and/or modify
19757# it under the terms of the GNU General Public License as published by
19758# the Free Software Foundation; either version 2 of of the License, or
19759# (at your option) any later version.
19760#
19761# As a special exception to the GNU General Public License, if you
19762# distribute this file as part of a program or library that is built
19763# using GNU Libtool, you may include this file under the  same
19764# distribution terms that you use for the rest of that program.
19765#
19766# GNU Libtool is distributed in the hope that it will be useful, but
19767# WITHOUT ANY WARRANTY; without even the implied warranty of
19768# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19769# GNU General Public License for more details.
19770#
19771# You should have received a copy of the GNU General Public License
19772# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19773
19774
19775# The names of the tagged configurations supported by this script.
19776available_tags=''
19777
19778# Configured defaults for sys_lib_dlsearch_path munging.
19779: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19780
19781# ### BEGIN LIBTOOL CONFIG
19782
19783# Which release of libtool.m4 was used?
19784macro_version=$macro_version
19785macro_revision=$macro_revision
19786
19787# Whether or not to build shared libraries.
19788build_libtool_libs=$enable_shared
19789
19790# Whether or not to build static libraries.
19791build_old_libs=$enable_static
19792
19793# What type of objects to build.
19794pic_mode=$pic_mode
19795
19796# Whether or not to optimize for fast installation.
19797fast_install=$enable_fast_install
19798
19799# Shared archive member basename,for filename based shared library versioning on AIX.
19800shared_archive_member_spec=$shared_archive_member_spec
19801
19802# Shell to use when invoking shell scripts.
19803SHELL=$lt_SHELL
19804
19805# An echo program that protects backslashes.
19806ECHO=$lt_ECHO
19807
19808# The PATH separator for the build system.
19809PATH_SEPARATOR=$lt_PATH_SEPARATOR
19810
19811# The host system.
19812host_alias=$host_alias
19813host=$host
19814host_os=$host_os
19815
19816# The build system.
19817build_alias=$build_alias
19818build=$build
19819build_os=$build_os
19820
19821# A sed program that does not truncate output.
19822SED=$lt_SED
19823
19824# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19825Xsed="\$SED -e 1s/^X//"
19826
19827# A grep program that handles long lines.
19828GREP=$lt_GREP
19829
19830# An ERE matcher.
19831EGREP=$lt_EGREP
19832
19833# A literal string matcher.
19834FGREP=$lt_FGREP
19835
19836# A BSD- or MS-compatible name lister.
19837NM=$lt_NM
19838
19839# Whether we need soft or hard links.
19840LN_S=$lt_LN_S
19841
19842# What is the maximum length of a command?
19843max_cmd_len=$max_cmd_len
19844
19845# Object file suffix (normally "o").
19846objext=$ac_objext
19847
19848# Executable file suffix (normally "").
19849exeext=$exeext
19850
19851# whether the shell understands "unset".
19852lt_unset=$lt_unset
19853
19854# turn spaces into newlines.
19855SP2NL=$lt_lt_SP2NL
19856
19857# turn newlines into spaces.
19858NL2SP=$lt_lt_NL2SP
19859
19860# convert \$build file names to \$host format.
19861to_host_file_cmd=$lt_cv_to_host_file_cmd
19862
19863# convert \$build files to toolchain format.
19864to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19865
19866# An object symbol dumper.
19867OBJDUMP=$lt_OBJDUMP
19868
19869# Method to check whether dependent libraries are shared objects.
19870deplibs_check_method=$lt_deplibs_check_method
19871
19872# Command to use when deplibs_check_method = "file_magic".
19873file_magic_cmd=$lt_file_magic_cmd
19874
19875# How to find potential files when deplibs_check_method = "file_magic".
19876file_magic_glob=$lt_file_magic_glob
19877
19878# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19879want_nocaseglob=$lt_want_nocaseglob
19880
19881# DLL creation program.
19882DLLTOOL=$lt_DLLTOOL
19883
19884# Command to associate shared and link libraries.
19885sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19886
19887# The archiver.
19888AR=$lt_AR
19889
19890# Flags to create an archive.
19891AR_FLAGS=$lt_AR_FLAGS
19892
19893# How to feed a file listing to the archiver.
19894archiver_list_spec=$lt_archiver_list_spec
19895
19896# A symbol stripping program.
19897STRIP=$lt_STRIP
19898
19899# Commands used to install an old-style archive.
19900RANLIB=$lt_RANLIB
19901old_postinstall_cmds=$lt_old_postinstall_cmds
19902old_postuninstall_cmds=$lt_old_postuninstall_cmds
19903
19904# Whether to use a lock for old archive extraction.
19905lock_old_archive_extraction=$lock_old_archive_extraction
19906
19907# A C compiler.
19908LTCC=$lt_CC
19909
19910# LTCC compiler flags.
19911LTCFLAGS=$lt_CFLAGS
19912
19913# Take the output of nm and produce a listing of raw symbols and C names.
19914global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19915
19916# Transform the output of nm in a proper C declaration.
19917global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19918
19919# Transform the output of nm into a list of symbols to manually relocate.
19920global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19921
19922# Transform the output of nm in a C name address pair.
19923global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19924
19925# Transform the output of nm in a C name address pair when lib prefix is needed.
19926global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19927
19928# The name lister interface.
19929nm_interface=$lt_lt_cv_nm_interface
19930
19931# Specify filename containing input files for \$NM.
19932nm_file_list_spec=$lt_nm_file_list_spec
19933
19934# The root where to search for dependent libraries,and where our libraries should be installed.
19935lt_sysroot=$lt_sysroot
19936
19937# Command to truncate a binary pipe.
19938lt_truncate_bin=$lt_lt_cv_truncate_bin
19939
19940# The name of the directory that contains temporary libtool files.
19941objdir=$objdir
19942
19943# Used to examine libraries when file_magic_cmd begins with "file".
19944MAGIC_CMD=$MAGIC_CMD
19945
19946# Must we lock files when doing compilation?
19947need_locks=$lt_need_locks
19948
19949# Manifest tool.
19950MANIFEST_TOOL=$lt_MANIFEST_TOOL
19951
19952# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19953DSYMUTIL=$lt_DSYMUTIL
19954
19955# Tool to change global to local symbols on Mac OS X.
19956NMEDIT=$lt_NMEDIT
19957
19958# Tool to manipulate fat objects and archives on Mac OS X.
19959LIPO=$lt_LIPO
19960
19961# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19962OTOOL=$lt_OTOOL
19963
19964# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19965OTOOL64=$lt_OTOOL64
19966
19967# Old archive suffix (normally "a").
19968libext=$libext
19969
19970# Shared library suffix (normally ".so").
19971shrext_cmds=$lt_shrext_cmds
19972
19973# The commands to extract the exported symbol list from a shared archive.
19974extract_expsyms_cmds=$lt_extract_expsyms_cmds
19975
19976# Variables whose values should be saved in libtool wrapper scripts and
19977# restored at link time.
19978variables_saved_for_relink=$lt_variables_saved_for_relink
19979
19980# Do we need the "lib" prefix for modules?
19981need_lib_prefix=$need_lib_prefix
19982
19983# Do we need a version for libraries?
19984need_version=$need_version
19985
19986# Library versioning type.
19987version_type=$version_type
19988
19989# Shared library runtime path variable.
19990runpath_var=$runpath_var
19991
19992# Shared library path variable.
19993shlibpath_var=$shlibpath_var
19994
19995# Is shlibpath searched before the hard-coded library search path?
19996shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19997
19998# Format of library name prefix.
19999libname_spec=$lt_libname_spec
20000
20001# List of archive names.  First name is the real one, the rest are links.
20002# The last name is the one that the linker finds with -lNAME
20003library_names_spec=$lt_library_names_spec
20004
20005# The coded name of the library, if different from the real name.
20006soname_spec=$lt_soname_spec
20007
20008# Permission mode override for installation of shared libraries.
20009install_override_mode=$lt_install_override_mode
20010
20011# Command to use after installation of a shared archive.
20012postinstall_cmds=$lt_postinstall_cmds
20013
20014# Command to use after uninstallation of a shared archive.
20015postuninstall_cmds=$lt_postuninstall_cmds
20016
20017# Commands used to finish a libtool library installation in a directory.
20018finish_cmds=$lt_finish_cmds
20019
20020# As "finish_cmds", except a single script fragment to be evaled but
20021# not shown.
20022finish_eval=$lt_finish_eval
20023
20024# Whether we should hardcode library paths into libraries.
20025hardcode_into_libs=$hardcode_into_libs
20026
20027# Compile-time system search path for libraries.
20028sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20029
20030# Detected run-time system search path for libraries.
20031sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20032
20033# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20034configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20035
20036# Whether dlopen is supported.
20037dlopen_support=$enable_dlopen
20038
20039# Whether dlopen of programs is supported.
20040dlopen_self=$enable_dlopen_self
20041
20042# Whether dlopen of statically linked programs is supported.
20043dlopen_self_static=$enable_dlopen_self_static
20044
20045# Commands to strip libraries.
20046old_striplib=$lt_old_striplib
20047striplib=$lt_striplib
20048
20049
20050# The linker used to build libraries.
20051LD=$lt_LD
20052
20053# How to create reloadable object files.
20054reload_flag=$lt_reload_flag
20055reload_cmds=$lt_reload_cmds
20056
20057# Commands used to build an old-style archive.
20058old_archive_cmds=$lt_old_archive_cmds
20059
20060# A language specific compiler.
20061CC=$lt_compiler
20062
20063# Is the compiler the GNU compiler?
20064with_gcc=$GCC
20065
20066# Compiler flag to turn off builtin functions.
20067no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20068
20069# Additional compiler flags for building library objects.
20070pic_flag=$lt_lt_prog_compiler_pic
20071
20072# How to pass a linker flag through the compiler.
20073wl=$lt_lt_prog_compiler_wl
20074
20075# Compiler flag to prevent dynamic linking.
20076link_static_flag=$lt_lt_prog_compiler_static
20077
20078# Does compiler simultaneously support -c and -o options?
20079compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20080
20081# Whether or not to add -lc for building shared libraries.
20082build_libtool_need_lc=$archive_cmds_need_lc
20083
20084# Whether or not to disallow shared libs when runtime libs are static.
20085allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20086
20087# Compiler flag to allow reflexive dlopens.
20088export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20089
20090# Compiler flag to generate shared objects directly from archives.
20091whole_archive_flag_spec=$lt_whole_archive_flag_spec
20092
20093# Whether the compiler copes with passing no objects directly.
20094compiler_needs_object=$lt_compiler_needs_object
20095
20096# Create an old-style archive from a shared archive.
20097old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20098
20099# Create a temporary old-style archive to link instead of a shared archive.
20100old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20101
20102# Commands used to build a shared archive.
20103archive_cmds=$lt_archive_cmds
20104archive_expsym_cmds=$lt_archive_expsym_cmds
20105
20106# Commands used to build a loadable module if different from building
20107# a shared archive.
20108module_cmds=$lt_module_cmds
20109module_expsym_cmds=$lt_module_expsym_cmds
20110
20111# Whether we are building with GNU ld or not.
20112with_gnu_ld=$lt_with_gnu_ld
20113
20114# Flag that allows shared libraries with undefined symbols to be built.
20115allow_undefined_flag=$lt_allow_undefined_flag
20116
20117# Flag that enforces no undefined symbols.
20118no_undefined_flag=$lt_no_undefined_flag
20119
20120# Flag to hardcode \$libdir into a binary during linking.
20121# This must work even if \$libdir does not exist
20122hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20123
20124# Whether we need a single "-rpath" flag with a separated argument.
20125hardcode_libdir_separator=$lt_hardcode_libdir_separator
20126
20127# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20128# DIR into the resulting binary.
20129hardcode_direct=$hardcode_direct
20130
20131# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20132# DIR into the resulting binary and the resulting library dependency is
20133# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20134# library is relocated.
20135hardcode_direct_absolute=$hardcode_direct_absolute
20136
20137# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20138# into the resulting binary.
20139hardcode_minus_L=$hardcode_minus_L
20140
20141# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20142# into the resulting binary.
20143hardcode_shlibpath_var=$hardcode_shlibpath_var
20144
20145# Set to "yes" if building a shared library automatically hardcodes DIR
20146# into the library and all subsequent libraries and executables linked
20147# against it.
20148hardcode_automatic=$hardcode_automatic
20149
20150# Set to yes if linker adds runtime paths of dependent libraries
20151# to runtime path list.
20152inherit_rpath=$inherit_rpath
20153
20154# Whether libtool must link a program against all its dependency libraries.
20155link_all_deplibs=$link_all_deplibs
20156
20157# Set to "yes" if exported symbols are required.
20158always_export_symbols=$always_export_symbols
20159
20160# The commands to list exported symbols.
20161export_symbols_cmds=$lt_export_symbols_cmds
20162
20163# Symbols that should not be listed in the preloaded symbols.
20164exclude_expsyms=$lt_exclude_expsyms
20165
20166# Symbols that must always be exported.
20167include_expsyms=$lt_include_expsyms
20168
20169# Commands necessary for linking programs (against libraries) with templates.
20170prelink_cmds=$lt_prelink_cmds
20171
20172# Commands necessary for finishing linking programs.
20173postlink_cmds=$lt_postlink_cmds
20174
20175# Specify filename containing input files.
20176file_list_spec=$lt_file_list_spec
20177
20178# How to hardcode a shared library path into an executable.
20179hardcode_action=$hardcode_action
20180
20181# ### END LIBTOOL CONFIG
20182
20183_LT_EOF
20184
20185    cat <<'_LT_EOF' >> "$cfgfile"
20186
20187# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20188
20189# func_munge_path_list VARIABLE PATH
20190# -----------------------------------
20191# VARIABLE is name of variable containing _space_ separated list of
20192# directories to be munged by the contents of PATH, which is string
20193# having a format:
20194# "DIR[:DIR]:"
20195#       string "DIR[ DIR]" will be prepended to VARIABLE
20196# ":DIR[:DIR]"
20197#       string "DIR[ DIR]" will be appended to VARIABLE
20198# "DIRP[:DIRP]::[DIRA:]DIRA"
20199#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20200#       "DIRA[ DIRA]" will be appended to VARIABLE
20201# "DIR[:DIR]"
20202#       VARIABLE will be replaced by "DIR[ DIR]"
20203func_munge_path_list ()
20204{
20205    case x$2 in
20206    x)
20207        ;;
20208    *:)
20209        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20210        ;;
20211    x:*)
20212        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20213        ;;
20214    *::*)
20215        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20216        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20217        ;;
20218    *)
20219        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20220        ;;
20221    esac
20222}
20223
20224
20225# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20226func_cc_basename ()
20227{
20228    for cc_temp in $*""; do
20229      case $cc_temp in
20230        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20231        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20232        \-*) ;;
20233        *) break;;
20234      esac
20235    done
20236    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20237}
20238
20239
20240# ### END FUNCTIONS SHARED WITH CONFIGURE
20241
20242_LT_EOF
20243
20244  case $host_os in
20245  aix3*)
20246    cat <<\_LT_EOF >> "$cfgfile"
20247# AIX sometimes has problems with the GCC collect2 program.  For some
20248# reason, if we set the COLLECT_NAMES environment variable, the problems
20249# vanish in a puff of smoke.
20250if test set != "${COLLECT_NAMES+set}"; then
20251  COLLECT_NAMES=
20252  export COLLECT_NAMES
20253fi
20254_LT_EOF
20255    ;;
20256  esac
20257
20258
20259ltmain=$ac_aux_dir/ltmain.sh
20260
20261
20262  # We use sed instead of cat because bash on DJGPP gets confused if
20263  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20264  # text mode, it properly converts lines to CR/LF.  This bash problem
20265  # is reportedly fixed, but why not run on old versions too?
20266  sed '$q' "$ltmain" >> "$cfgfile" \
20267     || (rm -f "$cfgfile"; exit 1)
20268
20269   mv -f "$cfgfile" "$ofile" ||
20270    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20271  chmod +x "$ofile"
20272
20273 ;;
20274
20275  esac
20276done # for ac_tag
20277
20278
20279as_fn_exit 0
20280_ACEOF
20281ac_clean_files=$ac_clean_files_save
20282
20283test $ac_write_fail = 0 ||
20284  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20285
20286
20287# configure is writing to config.log, and then calls config.status.
20288# config.status does its own redirection, appending to config.log.
20289# Unfortunately, on DOS this fails, as config.log is still kept open
20290# by configure, so config.status won't be able to write to it; its
20291# output is simply discarded.  So we exec the FD to /dev/null,
20292# effectively closing config.log, so it can be properly (re)opened and
20293# appended to by config.status.  When coming back to configure, we
20294# need to make the FD available again.
20295if test "$no_create" != yes; then
20296  ac_cs_success=:
20297  ac_config_status_args=
20298  test "$silent" = yes &&
20299    ac_config_status_args="$ac_config_status_args --quiet"
20300  exec 5>/dev/null
20301  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20302  exec 5>>config.log
20303  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20304  # would make configure fail if this is the last instruction.
20305  $ac_cs_success || as_fn_exit 1
20306fi
20307if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20308  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20309$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20310fi
20311
20312echo
20313echo "Summary:"
20314echo
20315echo "VERSION / RELEASE / BUILDNO ......... ${PACKAGE_VERSION} / ${release} / ${buildno}"
20316echo
20317echo "CC .................................. $CC"
20318echo "CFLAGS .............................. $CFLAGS"
20319echo "CPPFLAGS ............................ $CPPFLAGS"
20320echo "PYTHON .............................. $PYTHON"
20321echo
20322echo "PREFIX .............................. ${prefix}"
20323echo "RUN_PATH ............................ $RUN_PATH"
20324echo "DATA_PATH ........................... $DATA_PATH"
20325echo "ETC_PATH ............................ $ETC_PATH"
20326echo "BIN_PATH ............................ $BIN_PATH"
20327echo "SBIN_PATH ........................... $SBIN_PATH"
20328echo "CGI_PATH ............................ $CGIDIR"
20329echo "CGISERV_PATH ........................ $CGISERVDIR"
20330echo
20331echo "DEFAULT_USER:DEFAULT_GROUP .......... ${DEFAULT_USER}:${DEFAULT_GROUP}"
20332echo "MASTER DNS NAME ..................... ${DEFAULT_MASTERNAME}"
20333echo "PORTS ............................... ${DEFAULT_MASTER_CONTROL_PORT}:${DEFAULT_MASTER_CS_PORT}:${DEFAULT_MASTER_CLIENT_PORT}:${DEFAULT_CS_DATA_PORT}:${DEFAULT_CGISERV_HTTP_PORT}"
20334echo
20335if test "$BUILD_MASTER_TRUE" = ""; then RESULT="yes"; else RESULT="no"; fi
20336echo "BUILD_MASTER ........................ $RESULT"
20337if test "$BUILD_METALOGGER_TRUE" = ""; then RESULT="yes"; else RESULT="no"; fi
20338echo "BUILD_METALOGGER .................... $RESULT"
20339if test "$BUILD_SUPERVISOR_TRUE" = ""; then RESULT="yes"; else RESULT="no"; fi
20340echo "BUILD_SUPERVISOR .................... $RESULT"
20341if test "$BUILD_CHUNKSERVER_TRUE" = ""; then RESULT="yes"; else RESULT="no"; fi
20342echo "BUILD_CHUNKSERVER ................... $RESULT"
20343if test "$BUILD_NETDUMP_TRUE" = ""; then RESULT="yes"; else RESULT="no"; fi
20344echo "BUILD_NETDUMP ....................... $RESULT"
20345if test "$BUILD_SCRIPTS_TRUE" = ""; then RESULT="yes"; else RESULT="no"; fi
20346echo "BUILD_SCRIPTS ....................... $RESULT"
20347if test "$INSTALL_CGI_TRUE" = ""; then RESULT="yes"; else RESULT="no"; fi
20348echo "    CGI ............................. $RESULT"
20349if test "$INSTALL_CLI_TRUE" = ""; then RESULT="yes"; else RESULT="no"; fi
20350echo "    CLI ............................. $RESULT"
20351if test "$INSTALL_CGISERV_TRUE" = ""; then RESULT="yes"; else RESULT="no"; fi
20352echo "    CGISERV ......................... $RESULT"
20353if test "$BUILD_CLIENT_TRUE" = ""; then RESULT="yes"; else RESULT="no"; fi
20354echo "BUILD_CLIENT ........................ $RESULT"
20355if test "$WITH_MOUNT_TRUE" = ""; then RESULT="yes"; else RESULT="no"; fi
20356echo "    MOUNT ........................... $RESULT"
20357if test "$WITH_BDEV_TRUE" = ""; then RESULT="yes"; else RESULT="no"; fi
20358echo "    BDEV ............................ $RESULT"
20359echo
20360