1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for MFS 2.0.91.
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='2.0.91'
594PACKAGE_STRING='MFS 2.0.91'
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
637release
638LIGHT_MFS
639PROTO_BASE
640DEFAULT_MASTERNAME
641DEFAULT_CGISERV_HTTP_PORT
642DEFAULT_CS_DATA_PORT
643DEFAULT_MASTER_CLIENT_PORT
644DEFAULT_MASTER_CS_PORT
645DEFAULT_MASTER_CONTROL_PORT
646DEFAULT_PORTBASE
647DEFAULT_GROUP
648DEFAULT_USER
649RUN_PATH
650SBIN_PATH
651BIN_PATH
652ETC_PATH
653DATA_PATH
654ZLIB_LIBS
655CREATE_DATA_DIR_FALSE
656CREATE_DATA_DIR_TRUE
657CREATE_ETC_MFS_FALSE
658CREATE_ETC_MFS_TRUE
659BUILD_MOUNT_FALSE
660BUILD_MOUNT_TRUE
661FUSE_LIBS
662FUSE_CFLAGS
663BUILD_NETDUMP_FALSE
664BUILD_NETDUMP_TRUE
665BUILD_CHUNKSERVER_FALSE
666BUILD_CHUNKSERVER_TRUE
667BUILD_SUPERVISOR_FALSE
668BUILD_SUPERVISOR_TRUE
669BUILD_METALOGGER_FALSE
670BUILD_METALOGGER_TRUE
671BUILD_MASTER_FALSE
672BUILD_MASTER_TRUE
673CGISERVDIR
674CGIDIR
675INSTALL_CGISERV_FALSE
676INSTALL_CGISERV_TRUE
677INSTALL_CLI_FALSE
678INSTALL_CLI_TRUE
679INSTALL_CGI_FALSE
680INSTALL_CGI_TRUE
681BUILD_SCRIPTS_FALSE
682BUILD_SCRIPTS_TRUE
683WITH_PYTHON_FALSE
684WITH_PYTHON_TRUE
685pkgpyexecdir
686pyexecdir
687pkgpythondir
688pythondir
689PYTHON_PLATFORM
690PYTHON_EXEC_PREFIX
691PYTHON_PREFIX
692PYTHON_VERSION
693PYTHON
694WITH_SYSTEMD_FALSE
695WITH_SYSTEMD_TRUE
696systemdunitdir
697SYSTEMD_LIBS
698SYSTEMD_CFLAGS
699PKG_CONFIG_LIBDIR
700PKG_CONFIG_PATH
701PKG_CONFIG
702KILL
703LIBOBJS
704PTHREAD_CFLAGS
705PTHREAD_LIBS
706PTHREAD_CC
707ax_pthread_config
708CPP
709LT_SYS_LIBRARY_PATH
710OTOOL64
711OTOOL
712LIPO
713NMEDIT
714DSYMUTIL
715MANIFEST_TOOL
716RANLIB
717ac_ct_AR
718AR
719DLLTOOL
720OBJDUMP
721NM
722ac_ct_DUMPBIN
723DUMPBIN
724LD
725FGREP
726EGREP
727GREP
728SED
729LIBTOOL
730LN_S
731am__fastdepCC_FALSE
732am__fastdepCC_TRUE
733CCDEPMODE
734am__nodep
735AMDEPBACKSLASH
736AMDEP_FALSE
737AMDEP_TRUE
738am__quote
739am__include
740DEPDIR
741OBJEXT
742EXEEXT
743ac_ct_CC
744CPPFLAGS
745LDFLAGS
746CFLAGS
747CC
748AM_BACKSLASH
749AM_DEFAULT_VERBOSITY
750AM_DEFAULT_V
751AM_V
752am__untar
753am__tar
754AMTAR
755am__leading_dot
756SET_MAKE
757AWK
758mkdir_p
759MKDIR_P
760INSTALL_STRIP_PROGRAM
761STRIP
762install_sh
763MAKEINFO
764AUTOHEADER
765AUTOMAKE
766AUTOCONF
767ACLOCAL
768VERSION
769PACKAGE
770CYGPATH_W
771am__isrc
772INSTALL_DATA
773INSTALL_SCRIPT
774INSTALL_PROGRAM
775target_os
776target_vendor
777target_cpu
778target
779host_os
780host_vendor
781host_cpu
782host
783build_os
784build_vendor
785build_cpu
786build
787target_alias
788host_alias
789build_alias
790LIBS
791ECHO_T
792ECHO_N
793ECHO_C
794DEFS
795mandir
796localedir
797libdir
798psdir
799pdfdir
800dvidir
801htmldir
802infodir
803docdir
804oldincludedir
805includedir
806localstatedir
807sharedstatedir
808sysconfdir
809datadir
810datarootdir
811libexecdir
812sbindir
813bindir
814program_transform_name
815prefix
816exec_prefix
817PACKAGE_URL
818PACKAGE_BUGREPORT
819PACKAGE_STRING
820PACKAGE_VERSION
821PACKAGE_TARNAME
822PACKAGE_NAME
823PATH_SEPARATOR
824SHELL'
825ac_subst_files=''
826ac_user_opts='
827enable_option_checking
828enable_silent_rules
829enable_dependency_tracking
830enable_shared
831enable_static
832with_pic
833enable_fast_install
834with_aix_soname
835with_gnu_ld
836with_sysroot
837enable_libtool_lock
838enable_addresssanitizer
839enable_gperftools
840enable_debug
841enable_largefile
842enable_generalmans
843enable_mfsmaster
844enable_mfsmetalogger
845enable_mfssupervisor
846enable_mfschunkserver
847enable_mfsmount
848enable_mfscgi
849enable_mfscli
850enable_mfscgiserv
851enable_mfsnetdump
852with_mfscgi_dir
853with_mfscgiserv_dir
854with_zlib
855with_systemdsystemunitdir
856with_default_user
857with_default_group
858with_default_portbase
859with_default_mastername
860'
861      ac_precious_vars='build_alias
862host_alias
863target_alias
864CC
865CFLAGS
866LDFLAGS
867LIBS
868CPPFLAGS
869LT_SYS_LIBRARY_PATH
870CPP
871PKG_CONFIG
872PKG_CONFIG_PATH
873PKG_CONFIG_LIBDIR
874SYSTEMD_CFLAGS
875SYSTEMD_LIBS
876PYTHON
877FUSE_CFLAGS
878FUSE_LIBS'
879
880
881# Initialize some variables set by options.
882ac_init_help=
883ac_init_version=false
884ac_unrecognized_opts=
885ac_unrecognized_sep=
886# The variables have the same names as the options, with
887# dashes changed to underlines.
888cache_file=/dev/null
889exec_prefix=NONE
890no_create=
891no_recursion=
892prefix=NONE
893program_prefix=NONE
894program_suffix=NONE
895program_transform_name=s,x,x,
896silent=
897site=
898srcdir=
899verbose=
900x_includes=NONE
901x_libraries=NONE
902
903# Installation directory options.
904# These are left unexpanded so users can "make install exec_prefix=/foo"
905# and all the variables that are supposed to be based on exec_prefix
906# by default will actually change.
907# Use braces instead of parens because sh, perl, etc. also accept them.
908# (The list follows the same order as the GNU Coding Standards.)
909bindir='${exec_prefix}/bin'
910sbindir='${exec_prefix}/sbin'
911libexecdir='${exec_prefix}/libexec'
912datarootdir='${prefix}/share'
913datadir='${datarootdir}'
914sysconfdir='${prefix}/etc'
915sharedstatedir='${prefix}/com'
916localstatedir='${prefix}/var'
917includedir='${prefix}/include'
918oldincludedir='/usr/include'
919docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
920infodir='${datarootdir}/info'
921htmldir='${docdir}'
922dvidir='${docdir}'
923pdfdir='${docdir}'
924psdir='${docdir}'
925libdir='${exec_prefix}/lib'
926localedir='${datarootdir}/locale'
927mandir='${datarootdir}/man'
928
929ac_prev=
930ac_dashdash=
931for ac_option
932do
933  # If the previous option needs an argument, assign it.
934  if test -n "$ac_prev"; then
935    eval $ac_prev=\$ac_option
936    ac_prev=
937    continue
938  fi
939
940  case $ac_option in
941  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942  *=)   ac_optarg= ;;
943  *)    ac_optarg=yes ;;
944  esac
945
946  # Accept the important Cygnus configure options, so we can diagnose typos.
947
948  case $ac_dashdash$ac_option in
949  --)
950    ac_dashdash=yes ;;
951
952  -bindir | --bindir | --bindi | --bind | --bin | --bi)
953    ac_prev=bindir ;;
954  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955    bindir=$ac_optarg ;;
956
957  -build | --build | --buil | --bui | --bu)
958    ac_prev=build_alias ;;
959  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
960    build_alias=$ac_optarg ;;
961
962  -cache-file | --cache-file | --cache-fil | --cache-fi \
963  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964    ac_prev=cache_file ;;
965  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
967    cache_file=$ac_optarg ;;
968
969  --config-cache | -C)
970    cache_file=config.cache ;;
971
972  -datadir | --datadir | --datadi | --datad)
973    ac_prev=datadir ;;
974  -datadir=* | --datadir=* | --datadi=* | --datad=*)
975    datadir=$ac_optarg ;;
976
977  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978  | --dataroo | --dataro | --datar)
979    ac_prev=datarootdir ;;
980  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982    datarootdir=$ac_optarg ;;
983
984  -disable-* | --disable-*)
985    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986    # Reject names that are not valid shell variable names.
987    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988      as_fn_error $? "invalid feature name: $ac_useropt"
989    ac_useropt_orig=$ac_useropt
990    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991    case $ac_user_opts in
992      *"
993"enable_$ac_useropt"
994"*) ;;
995      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
996	 ac_unrecognized_sep=', ';;
997    esac
998    eval enable_$ac_useropt=no ;;
999
1000  -docdir | --docdir | --docdi | --doc | --do)
1001    ac_prev=docdir ;;
1002  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003    docdir=$ac_optarg ;;
1004
1005  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006    ac_prev=dvidir ;;
1007  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008    dvidir=$ac_optarg ;;
1009
1010  -enable-* | --enable-*)
1011    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012    # Reject names that are not valid shell variable names.
1013    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014      as_fn_error $? "invalid feature name: $ac_useropt"
1015    ac_useropt_orig=$ac_useropt
1016    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017    case $ac_user_opts in
1018      *"
1019"enable_$ac_useropt"
1020"*) ;;
1021      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022	 ac_unrecognized_sep=', ';;
1023    esac
1024    eval enable_$ac_useropt=\$ac_optarg ;;
1025
1026  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028  | --exec | --exe | --ex)
1029    ac_prev=exec_prefix ;;
1030  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032  | --exec=* | --exe=* | --ex=*)
1033    exec_prefix=$ac_optarg ;;
1034
1035  -gas | --gas | --ga | --g)
1036    # Obsolete; use --with-gas.
1037    with_gas=yes ;;
1038
1039  -help | --help | --hel | --he | -h)
1040    ac_init_help=long ;;
1041  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042    ac_init_help=recursive ;;
1043  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044    ac_init_help=short ;;
1045
1046  -host | --host | --hos | --ho)
1047    ac_prev=host_alias ;;
1048  -host=* | --host=* | --hos=* | --ho=*)
1049    host_alias=$ac_optarg ;;
1050
1051  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052    ac_prev=htmldir ;;
1053  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054  | --ht=*)
1055    htmldir=$ac_optarg ;;
1056
1057  -includedir | --includedir | --includedi | --included | --include \
1058  | --includ | --inclu | --incl | --inc)
1059    ac_prev=includedir ;;
1060  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061  | --includ=* | --inclu=* | --incl=* | --inc=*)
1062    includedir=$ac_optarg ;;
1063
1064  -infodir | --infodir | --infodi | --infod | --info | --inf)
1065    ac_prev=infodir ;;
1066  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067    infodir=$ac_optarg ;;
1068
1069  -libdir | --libdir | --libdi | --libd)
1070    ac_prev=libdir ;;
1071  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072    libdir=$ac_optarg ;;
1073
1074  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075  | --libexe | --libex | --libe)
1076    ac_prev=libexecdir ;;
1077  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078  | --libexe=* | --libex=* | --libe=*)
1079    libexecdir=$ac_optarg ;;
1080
1081  -localedir | --localedir | --localedi | --localed | --locale)
1082    ac_prev=localedir ;;
1083  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084    localedir=$ac_optarg ;;
1085
1086  -localstatedir | --localstatedir | --localstatedi | --localstated \
1087  | --localstate | --localstat | --localsta | --localst | --locals)
1088    ac_prev=localstatedir ;;
1089  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091    localstatedir=$ac_optarg ;;
1092
1093  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094    ac_prev=mandir ;;
1095  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096    mandir=$ac_optarg ;;
1097
1098  -nfp | --nfp | --nf)
1099    # Obsolete; use --without-fp.
1100    with_fp=no ;;
1101
1102  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103  | --no-cr | --no-c | -n)
1104    no_create=yes ;;
1105
1106  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108    no_recursion=yes ;;
1109
1110  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112  | --oldin | --oldi | --old | --ol | --o)
1113    ac_prev=oldincludedir ;;
1114  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117    oldincludedir=$ac_optarg ;;
1118
1119  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120    ac_prev=prefix ;;
1121  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122    prefix=$ac_optarg ;;
1123
1124  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125  | --program-pre | --program-pr | --program-p)
1126    ac_prev=program_prefix ;;
1127  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129    program_prefix=$ac_optarg ;;
1130
1131  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132  | --program-suf | --program-su | --program-s)
1133    ac_prev=program_suffix ;;
1134  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136    program_suffix=$ac_optarg ;;
1137
1138  -program-transform-name | --program-transform-name \
1139  | --program-transform-nam | --program-transform-na \
1140  | --program-transform-n | --program-transform- \
1141  | --program-transform | --program-transfor \
1142  | --program-transfo | --program-transf \
1143  | --program-trans | --program-tran \
1144  | --progr-tra | --program-tr | --program-t)
1145    ac_prev=program_transform_name ;;
1146  -program-transform-name=* | --program-transform-name=* \
1147  | --program-transform-nam=* | --program-transform-na=* \
1148  | --program-transform-n=* | --program-transform-=* \
1149  | --program-transform=* | --program-transfor=* \
1150  | --program-transfo=* | --program-transf=* \
1151  | --program-trans=* | --program-tran=* \
1152  | --progr-tra=* | --program-tr=* | --program-t=*)
1153    program_transform_name=$ac_optarg ;;
1154
1155  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156    ac_prev=pdfdir ;;
1157  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158    pdfdir=$ac_optarg ;;
1159
1160  -psdir | --psdir | --psdi | --psd | --ps)
1161    ac_prev=psdir ;;
1162  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163    psdir=$ac_optarg ;;
1164
1165  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166  | -silent | --silent | --silen | --sile | --sil)
1167    silent=yes ;;
1168
1169  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170    ac_prev=sbindir ;;
1171  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172  | --sbi=* | --sb=*)
1173    sbindir=$ac_optarg ;;
1174
1175  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177  | --sharedst | --shareds | --shared | --share | --shar \
1178  | --sha | --sh)
1179    ac_prev=sharedstatedir ;;
1180  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183  | --sha=* | --sh=*)
1184    sharedstatedir=$ac_optarg ;;
1185
1186  -site | --site | --sit)
1187    ac_prev=site ;;
1188  -site=* | --site=* | --sit=*)
1189    site=$ac_optarg ;;
1190
1191  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192    ac_prev=srcdir ;;
1193  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194    srcdir=$ac_optarg ;;
1195
1196  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197  | --syscon | --sysco | --sysc | --sys | --sy)
1198    ac_prev=sysconfdir ;;
1199  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201    sysconfdir=$ac_optarg ;;
1202
1203  -target | --target | --targe | --targ | --tar | --ta | --t)
1204    ac_prev=target_alias ;;
1205  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206    target_alias=$ac_optarg ;;
1207
1208  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209    verbose=yes ;;
1210
1211  -version | --version | --versio | --versi | --vers | -V)
1212    ac_init_version=: ;;
1213
1214  -with-* | --with-*)
1215    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216    # Reject names that are not valid shell variable names.
1217    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218      as_fn_error $? "invalid package name: $ac_useropt"
1219    ac_useropt_orig=$ac_useropt
1220    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221    case $ac_user_opts in
1222      *"
1223"with_$ac_useropt"
1224"*) ;;
1225      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226	 ac_unrecognized_sep=', ';;
1227    esac
1228    eval with_$ac_useropt=\$ac_optarg ;;
1229
1230  -without-* | --without-*)
1231    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232    # Reject names that are not valid shell variable names.
1233    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234      as_fn_error $? "invalid package name: $ac_useropt"
1235    ac_useropt_orig=$ac_useropt
1236    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237    case $ac_user_opts in
1238      *"
1239"with_$ac_useropt"
1240"*) ;;
1241      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242	 ac_unrecognized_sep=', ';;
1243    esac
1244    eval with_$ac_useropt=no ;;
1245
1246  --x)
1247    # Obsolete; use --with-x.
1248    with_x=yes ;;
1249
1250  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251  | --x-incl | --x-inc | --x-in | --x-i)
1252    ac_prev=x_includes ;;
1253  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1255    x_includes=$ac_optarg ;;
1256
1257  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259    ac_prev=x_libraries ;;
1260  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1262    x_libraries=$ac_optarg ;;
1263
1264  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1265Try \`$0 --help' for more information"
1266    ;;
1267
1268  *=*)
1269    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270    # Reject names that are not valid shell variable names.
1271    case $ac_envvar in #(
1272      '' | [0-9]* | *[!_$as_cr_alnum]* )
1273      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1274    esac
1275    eval $ac_envvar=\$ac_optarg
1276    export $ac_envvar ;;
1277
1278  *)
1279    # FIXME: should be removed in autoconf 3.0.
1280    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1281    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1283    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1284    ;;
1285
1286  esac
1287done
1288
1289if test -n "$ac_prev"; then
1290  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1291  as_fn_error $? "missing argument to $ac_option"
1292fi
1293
1294if test -n "$ac_unrecognized_opts"; then
1295  case $enable_option_checking in
1296    no) ;;
1297    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1298    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299  esac
1300fi
1301
1302# Check all directory arguments for consistency.
1303for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304		datadir sysconfdir sharedstatedir localstatedir includedir \
1305		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306		libdir localedir mandir
1307do
1308  eval ac_val=\$$ac_var
1309  # Remove trailing slashes.
1310  case $ac_val in
1311    */ )
1312      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1313      eval $ac_var=\$ac_val;;
1314  esac
1315  # Be sure to have absolute directory names.
1316  case $ac_val in
1317    [\\/$]* | ?:[\\/]* )  continue;;
1318    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319  esac
1320  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1321done
1322
1323# There might be people who depend on the old broken behavior: `$host'
1324# used to hold the argument of --host etc.
1325# FIXME: To remove some day.
1326build=$build_alias
1327host=$host_alias
1328target=$target_alias
1329
1330# FIXME: To remove some day.
1331if test "x$host_alias" != x; then
1332  if test "x$build_alias" = x; then
1333    cross_compiling=maybe
1334  elif test "x$build_alias" != "x$host_alias"; then
1335    cross_compiling=yes
1336  fi
1337fi
1338
1339ac_tool_prefix=
1340test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342test "$silent" = yes && exec 6>/dev/null
1343
1344
1345ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346ac_ls_di=`ls -di .` &&
1347ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348  as_fn_error $? "working directory cannot be determined"
1349test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350  as_fn_error $? "pwd does not report name of working directory"
1351
1352
1353# Find the source files, if location was not specified.
1354if test -z "$srcdir"; then
1355  ac_srcdir_defaulted=yes
1356  # Try the directory containing this script, then the parent directory.
1357  ac_confdir=`$as_dirname -- "$as_myself" ||
1358$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359	 X"$as_myself" : 'X\(//\)[^/]' \| \
1360	 X"$as_myself" : 'X\(//\)$' \| \
1361	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362$as_echo X"$as_myself" |
1363    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364	    s//\1/
1365	    q
1366	  }
1367	  /^X\(\/\/\)[^/].*/{
1368	    s//\1/
1369	    q
1370	  }
1371	  /^X\(\/\/\)$/{
1372	    s//\1/
1373	    q
1374	  }
1375	  /^X\(\/\).*/{
1376	    s//\1/
1377	    q
1378	  }
1379	  s/.*/./; q'`
1380  srcdir=$ac_confdir
1381  if test ! -r "$srcdir/$ac_unique_file"; then
1382    srcdir=..
1383  fi
1384else
1385  ac_srcdir_defaulted=no
1386fi
1387if test ! -r "$srcdir/$ac_unique_file"; then
1388  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1390fi
1391ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392ac_abs_confdir=`(
1393	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394	pwd)`
1395# When building in place, set srcdir=.
1396if test "$ac_abs_confdir" = "$ac_pwd"; then
1397  srcdir=.
1398fi
1399# Remove unnecessary trailing slashes from srcdir.
1400# Double slashes in file names in object file debugging info
1401# mess up M-x gdb in Emacs.
1402case $srcdir in
1403*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404esac
1405for ac_var in $ac_precious_vars; do
1406  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407  eval ac_env_${ac_var}_value=\$${ac_var}
1408  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410done
1411
1412#
1413# Report the --help message.
1414#
1415if test "$ac_init_help" = "long"; then
1416  # Omit some internal or obsolete options to make the list less imposing.
1417  # This message is too long to be a string in the A/UX 3.1 sh.
1418  cat <<_ACEOF
1419\`configure' configures MFS 2.0.91 to adapt to many kinds of systems.
1420
1421Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424VAR=VALUE.  See below for descriptions of some of the useful variables.
1425
1426Defaults for the options are specified in brackets.
1427
1428Configuration:
1429  -h, --help              display this help and exit
1430      --help=short        display options specific to this package
1431      --help=recursive    display the short help of all the included packages
1432  -V, --version           display version information and exit
1433  -q, --quiet, --silent   do not print \`checking ...' messages
1434      --cache-file=FILE   cache test results in FILE [disabled]
1435  -C, --config-cache      alias for \`--cache-file=config.cache'
1436  -n, --no-create         do not create output files
1437      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1438
1439Installation directories:
1440  --prefix=PREFIX         install architecture-independent files in PREFIX
1441                          [$ac_default_prefix]
1442  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1443                          [PREFIX]
1444
1445By default, \`make install' will install all the files in
1446\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1447an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448for instance \`--prefix=\$HOME'.
1449
1450For better control, use the options below.
1451
1452Fine tuning of the installation directories:
1453  --bindir=DIR            user executables [EPREFIX/bin]
1454  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1455  --libexecdir=DIR        program executables [EPREFIX/libexec]
1456  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1457  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1458  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1459  --libdir=DIR            object code libraries [EPREFIX/lib]
1460  --includedir=DIR        C header files [PREFIX/include]
1461  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1462  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1463  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1464  --infodir=DIR           info documentation [DATAROOTDIR/info]
1465  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1466  --mandir=DIR            man documentation [DATAROOTDIR/man]
1467  --docdir=DIR            documentation root [DATAROOTDIR/doc/moosefs]
1468  --htmldir=DIR           html documentation [DOCDIR]
1469  --dvidir=DIR            dvi documentation [DOCDIR]
1470  --pdfdir=DIR            pdf documentation [DOCDIR]
1471  --psdir=DIR             ps documentation [DOCDIR]
1472_ACEOF
1473
1474  cat <<\_ACEOF
1475
1476Program names:
1477  --program-prefix=PREFIX            prepend PREFIX to installed program names
1478  --program-suffix=SUFFIX            append SUFFIX to installed program names
1479  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1480
1481System types:
1482  --build=BUILD     configure for building on BUILD [guessed]
1483  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1484  --target=TARGET   configure for building compilers for TARGET [HOST]
1485_ACEOF
1486fi
1487
1488if test -n "$ac_init_help"; then
1489  case $ac_init_help in
1490     short | recursive ) echo "Configuration of MFS 2.0.91:";;
1491   esac
1492  cat <<\_ACEOF
1493
1494Optional Features:
1495  --disable-option-checking  ignore unrecognized --enable/--with options
1496  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1497  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1498  --enable-silent-rules   less verbose build output (undo: "make V=1")
1499  --disable-silent-rules  verbose build output (undo: "make V=0")
1500  --enable-dependency-tracking
1501                          do not reject slow dependency extractors
1502  --disable-dependency-tracking
1503                          speeds up one-time build
1504  --enable-shared[=PKGS]  build shared libraries [default=yes]
1505  --enable-static[=PKGS]  build static libraries [default=yes]
1506  --enable-fast-install[=PKGS]
1507                          optimize for fast installation [default=yes]
1508  --disable-libtool-lock  avoid locking (might break parallel builds)
1509  --enable-addresssanitizer
1510                          Build with address sanitizer on (debug only)
1511  --enable-gperftools     Build with google perftools on (debug only)
1512  --enable-debug          Build version without optimizations
1513  --disable-largefile     omit support for large files
1514  --disable-general-mans  Do not install general mans
1515  --disable-mfsmaster     Do not build mfsmaster
1516  --disable-mfsmetalogger Do not build mfsmetalogger
1517  --disable-mfssupervisor Do not build mfssupervisor
1518  --disable-mfschunkserver
1519                          Do not build mfschunkserver
1520  --disable-mfsmount      Do not build mfsmount
1521  --disable-mfscgi        Do not install CGI scripts
1522  --disable-mfscli        Do not install CLI script
1523  --disable-mfscgiserv    Do not install CGI server
1524  --disable-mfsnetdump    Do not build mfsnetdump
1525
1526Optional Packages:
1527  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1528  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1529  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1530                          both]
1531  --with-aix-soname=aix|svr4|both
1532                          shared library versioning (aka "SONAME") variant to
1533                          provide on AIX, [default=aix].
1534  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1535  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1536                          compiler's sysroot if not specified).
1537  --with-mfscgi-dir=CGIDIR
1538                          Choose CGI directory (default=DATADIR/mfscgi)
1539  --with-mfscgiserv-dir=CGISERVDIR
1540                          Choose CGI directory (default=SBINDIR)
1541  --without-zlib          Do not use zlib for PNG compression
1542  --with-systemdsystemunitdir=PATH
1543                          Path to install systemd units (no=omit)
1544  --with-default-user=USER
1545                          Choose default user to run daemons as
1546  --with-default-group=GROUP
1547                          Choose default group to run daemons as
1548  --with-default-portbase=NUMBER
1549                          Default communiaction port base (default=9400, which
1550                          means ports 9419,9420,etc.)
1551  --with-default-mastername=MASTER_DNS_NAME
1552                          Defines default DNS name pointing to all masters
1553                          (default=mfsmaster)
1554
1555Some influential environment variables:
1556  CC          C compiler command
1557  CFLAGS      C compiler flags
1558  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1559              nonstandard directory <lib dir>
1560  LIBS        libraries to pass to the linker, e.g. -l<library>
1561  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1562              you have headers in a nonstandard directory <include dir>
1563  LT_SYS_LIBRARY_PATH
1564              User-defined run-time library search path.
1565  CPP         C preprocessor
1566  PKG_CONFIG  path to pkg-config utility
1567  PKG_CONFIG_PATH
1568              directories to add to pkg-config's search path
1569  PKG_CONFIG_LIBDIR
1570              path overriding pkg-config's built-in search path
1571  SYSTEMD_CFLAGS
1572              C compiler flags for SYSTEMD, overriding pkg-config
1573  SYSTEMD_LIBS
1574              linker flags for SYSTEMD, overriding pkg-config
1575  PYTHON      the Python interpreter
1576  FUSE_CFLAGS C compiler flags for FUSE, overriding pkg-config
1577  FUSE_LIBS   linker flags for FUSE, overriding pkg-config
1578
1579Use these variables to override the choices made by `configure' or to help
1580it to find libraries and programs with nonstandard names/locations.
1581
1582Report bugs to <bugs@moosefs.com>.
1583_ACEOF
1584ac_status=$?
1585fi
1586
1587if test "$ac_init_help" = "recursive"; then
1588  # If there are subdirs, report their specific --help.
1589  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1590    test -d "$ac_dir" ||
1591      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1592      continue
1593    ac_builddir=.
1594
1595case "$ac_dir" in
1596.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597*)
1598  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1599  # A ".." for each directory in $ac_dir_suffix.
1600  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1601  case $ac_top_builddir_sub in
1602  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1604  esac ;;
1605esac
1606ac_abs_top_builddir=$ac_pwd
1607ac_abs_builddir=$ac_pwd$ac_dir_suffix
1608# for backward compatibility:
1609ac_top_builddir=$ac_top_build_prefix
1610
1611case $srcdir in
1612  .)  # We are building in place.
1613    ac_srcdir=.
1614    ac_top_srcdir=$ac_top_builddir_sub
1615    ac_abs_top_srcdir=$ac_pwd ;;
1616  [\\/]* | ?:[\\/]* )  # Absolute name.
1617    ac_srcdir=$srcdir$ac_dir_suffix;
1618    ac_top_srcdir=$srcdir
1619    ac_abs_top_srcdir=$srcdir ;;
1620  *) # Relative name.
1621    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1622    ac_top_srcdir=$ac_top_build_prefix$srcdir
1623    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1624esac
1625ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1626
1627    cd "$ac_dir" || { ac_status=$?; continue; }
1628    # Check for guested configure.
1629    if test -f "$ac_srcdir/configure.gnu"; then
1630      echo &&
1631      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1632    elif test -f "$ac_srcdir/configure"; then
1633      echo &&
1634      $SHELL "$ac_srcdir/configure" --help=recursive
1635    else
1636      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1637    fi || ac_status=$?
1638    cd "$ac_pwd" || { ac_status=$?; break; }
1639  done
1640fi
1641
1642test -n "$ac_init_help" && exit $ac_status
1643if $ac_init_version; then
1644  cat <<\_ACEOF
1645MFS configure 2.0.91
1646generated by GNU Autoconf 2.69
1647
1648Copyright (C) 2012 Free Software Foundation, Inc.
1649This configure script is free software; the Free Software Foundation
1650gives unlimited permission to copy, distribute and modify it.
1651_ACEOF
1652  exit
1653fi
1654
1655## ------------------------ ##
1656## Autoconf initialization. ##
1657## ------------------------ ##
1658
1659# ac_fn_c_try_compile LINENO
1660# --------------------------
1661# Try to compile conftest.$ac_ext, and return whether this succeeded.
1662ac_fn_c_try_compile ()
1663{
1664  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665  rm -f conftest.$ac_objext
1666  if { { ac_try="$ac_compile"
1667case "(($ac_try" in
1668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669  *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672$as_echo "$ac_try_echo"; } >&5
1673  (eval "$ac_compile") 2>conftest.err
1674  ac_status=$?
1675  if test -s conftest.err; then
1676    grep -v '^ *+' conftest.err >conftest.er1
1677    cat conftest.er1 >&5
1678    mv -f conftest.er1 conftest.err
1679  fi
1680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681  test $ac_status = 0; } && {
1682	 test -z "$ac_c_werror_flag" ||
1683	 test ! -s conftest.err
1684       } && test -s conftest.$ac_objext; then :
1685  ac_retval=0
1686else
1687  $as_echo "$as_me: failed program was:" >&5
1688sed 's/^/| /' conftest.$ac_ext >&5
1689
1690	ac_retval=1
1691fi
1692  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693  as_fn_set_status $ac_retval
1694
1695} # ac_fn_c_try_compile
1696
1697# ac_fn_c_try_link LINENO
1698# -----------------------
1699# Try to link conftest.$ac_ext, and return whether this succeeded.
1700ac_fn_c_try_link ()
1701{
1702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703  rm -f conftest.$ac_objext conftest$ac_exeext
1704  if { { ac_try="$ac_link"
1705case "(($ac_try" in
1706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707  *) ac_try_echo=$ac_try;;
1708esac
1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710$as_echo "$ac_try_echo"; } >&5
1711  (eval "$ac_link") 2>conftest.err
1712  ac_status=$?
1713  if test -s conftest.err; then
1714    grep -v '^ *+' conftest.err >conftest.er1
1715    cat conftest.er1 >&5
1716    mv -f conftest.er1 conftest.err
1717  fi
1718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719  test $ac_status = 0; } && {
1720	 test -z "$ac_c_werror_flag" ||
1721	 test ! -s conftest.err
1722       } && test -s conftest$ac_exeext && {
1723	 test "$cross_compiling" = yes ||
1724	 test -x conftest$ac_exeext
1725       }; then :
1726  ac_retval=0
1727else
1728  $as_echo "$as_me: failed program was:" >&5
1729sed 's/^/| /' conftest.$ac_ext >&5
1730
1731	ac_retval=1
1732fi
1733  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1734  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1735  # interfere with the next link command; also delete a directory that is
1736  # left behind by Apple's compiler.  We do this before executing the actions.
1737  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739  as_fn_set_status $ac_retval
1740
1741} # ac_fn_c_try_link
1742
1743# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1744# -------------------------------------------------------
1745# Tests whether HEADER exists and can be compiled using the include files in
1746# INCLUDES, setting the cache variable VAR accordingly.
1747ac_fn_c_check_header_compile ()
1748{
1749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751$as_echo_n "checking for $2... " >&6; }
1752if eval \${$3+:} false; then :
1753  $as_echo_n "(cached) " >&6
1754else
1755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h.  */
1757$4
1758#include <$2>
1759_ACEOF
1760if ac_fn_c_try_compile "$LINENO"; then :
1761  eval "$3=yes"
1762else
1763  eval "$3=no"
1764fi
1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766fi
1767eval ac_res=\$$3
1768	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769$as_echo "$ac_res" >&6; }
1770  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771
1772} # ac_fn_c_check_header_compile
1773
1774# ac_fn_c_try_cpp LINENO
1775# ----------------------
1776# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1777ac_fn_c_try_cpp ()
1778{
1779  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780  if { { ac_try="$ac_cpp conftest.$ac_ext"
1781case "(($ac_try" in
1782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783  *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1788  ac_status=$?
1789  if test -s conftest.err; then
1790    grep -v '^ *+' conftest.err >conftest.er1
1791    cat conftest.er1 >&5
1792    mv -f conftest.er1 conftest.err
1793  fi
1794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795  test $ac_status = 0; } > conftest.i && {
1796	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1797	 test ! -s conftest.err
1798       }; then :
1799  ac_retval=0
1800else
1801  $as_echo "$as_me: failed program was:" >&5
1802sed 's/^/| /' conftest.$ac_ext >&5
1803
1804    ac_retval=1
1805fi
1806  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807  as_fn_set_status $ac_retval
1808
1809} # ac_fn_c_try_cpp
1810
1811# ac_fn_c_try_run LINENO
1812# ----------------------
1813# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1814# that executables *can* be run.
1815ac_fn_c_try_run ()
1816{
1817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818  if { { ac_try="$ac_link"
1819case "(($ac_try" in
1820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821  *) ac_try_echo=$ac_try;;
1822esac
1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824$as_echo "$ac_try_echo"; } >&5
1825  (eval "$ac_link") 2>&5
1826  ac_status=$?
1827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1829  { { case "(($ac_try" in
1830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831  *) ac_try_echo=$ac_try;;
1832esac
1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834$as_echo "$ac_try_echo"; } >&5
1835  (eval "$ac_try") 2>&5
1836  ac_status=$?
1837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838  test $ac_status = 0; }; }; then :
1839  ac_retval=0
1840else
1841  $as_echo "$as_me: program exited with status $ac_status" >&5
1842       $as_echo "$as_me: failed program was:" >&5
1843sed 's/^/| /' conftest.$ac_ext >&5
1844
1845       ac_retval=$ac_status
1846fi
1847  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849  as_fn_set_status $ac_retval
1850
1851} # ac_fn_c_try_run
1852
1853# ac_fn_c_check_func LINENO FUNC VAR
1854# ----------------------------------
1855# Tests whether FUNC exists, setting the cache variable VAR accordingly
1856ac_fn_c_check_func ()
1857{
1858  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860$as_echo_n "checking for $2... " >&6; }
1861if eval \${$3+:} false; then :
1862  $as_echo_n "(cached) " >&6
1863else
1864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h.  */
1866/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1867   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1868#define $2 innocuous_$2
1869
1870/* System header to define __stub macros and hopefully few prototypes,
1871    which can conflict with char $2 (); below.
1872    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1873    <limits.h> exists even on freestanding compilers.  */
1874
1875#ifdef __STDC__
1876# include <limits.h>
1877#else
1878# include <assert.h>
1879#endif
1880
1881#undef $2
1882
1883/* Override any GCC internal prototype to avoid an error.
1884   Use char because int might match the return type of a GCC
1885   builtin and then its argument prototype would still apply.  */
1886#ifdef __cplusplus
1887extern "C"
1888#endif
1889char $2 ();
1890/* The GNU C library defines this for functions which it implements
1891    to always fail with ENOSYS.  Some functions are actually named
1892    something starting with __ and the normal name is an alias.  */
1893#if defined __stub_$2 || defined __stub___$2
1894choke me
1895#endif
1896
1897int
1898main ()
1899{
1900return $2 ();
1901  ;
1902  return 0;
1903}
1904_ACEOF
1905if ac_fn_c_try_link "$LINENO"; then :
1906  eval "$3=yes"
1907else
1908  eval "$3=no"
1909fi
1910rm -f core conftest.err conftest.$ac_objext \
1911    conftest$ac_exeext conftest.$ac_ext
1912fi
1913eval ac_res=\$$3
1914	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915$as_echo "$ac_res" >&6; }
1916  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918} # ac_fn_c_check_func
1919
1920# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1921# -------------------------------------------------------
1922# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1923# the include files in INCLUDES and setting the cache variable VAR
1924# accordingly.
1925ac_fn_c_check_header_mongrel ()
1926{
1927  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928  if eval \${$3+:} false; then :
1929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930$as_echo_n "checking for $2... " >&6; }
1931if eval \${$3+:} false; then :
1932  $as_echo_n "(cached) " >&6
1933fi
1934eval ac_res=\$$3
1935	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936$as_echo "$ac_res" >&6; }
1937else
1938  # Is the header compilable?
1939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1940$as_echo_n "checking $2 usability... " >&6; }
1941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942/* end confdefs.h.  */
1943$4
1944#include <$2>
1945_ACEOF
1946if ac_fn_c_try_compile "$LINENO"; then :
1947  ac_header_compiler=yes
1948else
1949  ac_header_compiler=no
1950fi
1951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1953$as_echo "$ac_header_compiler" >&6; }
1954
1955# Is the header present?
1956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1957$as_echo_n "checking $2 presence... " >&6; }
1958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959/* end confdefs.h.  */
1960#include <$2>
1961_ACEOF
1962if ac_fn_c_try_cpp "$LINENO"; then :
1963  ac_header_preproc=yes
1964else
1965  ac_header_preproc=no
1966fi
1967rm -f conftest.err conftest.i conftest.$ac_ext
1968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1969$as_echo "$ac_header_preproc" >&6; }
1970
1971# So?  What about this header?
1972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1973  yes:no: )
1974    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1975$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1976    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978    ;;
1979  no:yes:* )
1980    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1981$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1982    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1983$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1984    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1985$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1986    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1987$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1988    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1989$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1990( $as_echo "## ------------------------------- ##
1991## Report this to bugs@moosefs.com ##
1992## ------------------------------- ##"
1993     ) | sed "s/^/$as_me: WARNING:     /" >&2
1994    ;;
1995esac
1996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997$as_echo_n "checking for $2... " >&6; }
1998if eval \${$3+:} false; then :
1999  $as_echo_n "(cached) " >&6
2000else
2001  eval "$3=\$ac_header_compiler"
2002fi
2003eval ac_res=\$$3
2004	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005$as_echo "$ac_res" >&6; }
2006fi
2007  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008
2009} # ac_fn_c_check_header_mongrel
2010
2011# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2012# -------------------------------------------
2013# Tests whether TYPE exists after having included INCLUDES, setting cache
2014# variable VAR accordingly.
2015ac_fn_c_check_type ()
2016{
2017  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019$as_echo_n "checking for $2... " >&6; }
2020if eval \${$3+:} false; then :
2021  $as_echo_n "(cached) " >&6
2022else
2023  eval "$3=no"
2024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025/* end confdefs.h.  */
2026$4
2027int
2028main ()
2029{
2030if (sizeof ($2))
2031	 return 0;
2032  ;
2033  return 0;
2034}
2035_ACEOF
2036if ac_fn_c_try_compile "$LINENO"; then :
2037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h.  */
2039$4
2040int
2041main ()
2042{
2043if (sizeof (($2)))
2044	    return 0;
2045  ;
2046  return 0;
2047}
2048_ACEOF
2049if ac_fn_c_try_compile "$LINENO"; then :
2050
2051else
2052  eval "$3=yes"
2053fi
2054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055fi
2056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057fi
2058eval ac_res=\$$3
2059	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060$as_echo "$ac_res" >&6; }
2061  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062
2063} # ac_fn_c_check_type
2064
2065# ac_fn_c_find_intX_t LINENO BITS VAR
2066# -----------------------------------
2067# Finds a signed integer type with width BITS, setting cache variable VAR
2068# accordingly.
2069ac_fn_c_find_intX_t ()
2070{
2071  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2073$as_echo_n "checking for int$2_t... " >&6; }
2074if eval \${$3+:} false; then :
2075  $as_echo_n "(cached) " >&6
2076else
2077  eval "$3=no"
2078     # Order is important - never check a type that is potentially smaller
2079     # than half of the expected target width.
2080     for ac_type in int$2_t 'int' 'long int' \
2081	 'long long int' 'short int' 'signed char'; do
2082       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083/* end confdefs.h.  */
2084$ac_includes_default
2085	     enum { N = $2 / 2 - 1 };
2086int
2087main ()
2088{
2089static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2090test_array [0] = 0;
2091return test_array [0];
2092
2093  ;
2094  return 0;
2095}
2096_ACEOF
2097if ac_fn_c_try_compile "$LINENO"; then :
2098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099/* end confdefs.h.  */
2100$ac_includes_default
2101	        enum { N = $2 / 2 - 1 };
2102int
2103main ()
2104{
2105static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2106		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2107test_array [0] = 0;
2108return test_array [0];
2109
2110  ;
2111  return 0;
2112}
2113_ACEOF
2114if ac_fn_c_try_compile "$LINENO"; then :
2115
2116else
2117  case $ac_type in #(
2118  int$2_t) :
2119    eval "$3=yes" ;; #(
2120  *) :
2121    eval "$3=\$ac_type" ;;
2122esac
2123fi
2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125fi
2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127       if eval test \"x\$"$3"\" = x"no"; then :
2128
2129else
2130  break
2131fi
2132     done
2133fi
2134eval ac_res=\$$3
2135	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136$as_echo "$ac_res" >&6; }
2137  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138
2139} # ac_fn_c_find_intX_t
2140
2141# ac_fn_c_find_uintX_t LINENO BITS VAR
2142# ------------------------------------
2143# Finds an unsigned integer type with width BITS, setting cache variable VAR
2144# accordingly.
2145ac_fn_c_find_uintX_t ()
2146{
2147  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2149$as_echo_n "checking for uint$2_t... " >&6; }
2150if eval \${$3+:} false; then :
2151  $as_echo_n "(cached) " >&6
2152else
2153  eval "$3=no"
2154     # Order is important - never check a type that is potentially smaller
2155     # than half of the expected target width.
2156     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2157	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2158       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h.  */
2160$ac_includes_default
2161int
2162main ()
2163{
2164static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2165test_array [0] = 0;
2166return test_array [0];
2167
2168  ;
2169  return 0;
2170}
2171_ACEOF
2172if ac_fn_c_try_compile "$LINENO"; then :
2173  case $ac_type in #(
2174  uint$2_t) :
2175    eval "$3=yes" ;; #(
2176  *) :
2177    eval "$3=\$ac_type" ;;
2178esac
2179fi
2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181       if eval test \"x\$"$3"\" = x"no"; then :
2182
2183else
2184  break
2185fi
2186     done
2187fi
2188eval ac_res=\$$3
2189	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2190$as_echo "$ac_res" >&6; }
2191  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192
2193} # ac_fn_c_find_uintX_t
2194
2195# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2196# ----------------------------------------------------
2197# Tries to find if the field MEMBER exists in type AGGR, after including
2198# INCLUDES, setting cache variable VAR accordingly.
2199ac_fn_c_check_member ()
2200{
2201  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2203$as_echo_n "checking for $2.$3... " >&6; }
2204if eval \${$4+:} false; then :
2205  $as_echo_n "(cached) " >&6
2206else
2207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h.  */
2209$5
2210int
2211main ()
2212{
2213static $2 ac_aggr;
2214if (ac_aggr.$3)
2215return 0;
2216  ;
2217  return 0;
2218}
2219_ACEOF
2220if ac_fn_c_try_compile "$LINENO"; then :
2221  eval "$4=yes"
2222else
2223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224/* end confdefs.h.  */
2225$5
2226int
2227main ()
2228{
2229static $2 ac_aggr;
2230if (sizeof ac_aggr.$3)
2231return 0;
2232  ;
2233  return 0;
2234}
2235_ACEOF
2236if ac_fn_c_try_compile "$LINENO"; then :
2237  eval "$4=yes"
2238else
2239  eval "$4=no"
2240fi
2241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242fi
2243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244fi
2245eval ac_res=\$$4
2246	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247$as_echo "$ac_res" >&6; }
2248  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249
2250} # ac_fn_c_check_member
2251
2252# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2253# ---------------------------------------------
2254# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2255# accordingly.
2256ac_fn_c_check_decl ()
2257{
2258  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259  as_decl_name=`echo $2|sed 's/ *(.*//'`
2260  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2262$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2263if eval \${$3+:} false; then :
2264  $as_echo_n "(cached) " >&6
2265else
2266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267/* end confdefs.h.  */
2268$4
2269int
2270main ()
2271{
2272#ifndef $as_decl_name
2273#ifdef __cplusplus
2274  (void) $as_decl_use;
2275#else
2276  (void) $as_decl_name;
2277#endif
2278#endif
2279
2280  ;
2281  return 0;
2282}
2283_ACEOF
2284if ac_fn_c_try_compile "$LINENO"; then :
2285  eval "$3=yes"
2286else
2287  eval "$3=no"
2288fi
2289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290fi
2291eval ac_res=\$$3
2292	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293$as_echo "$ac_res" >&6; }
2294  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295
2296} # ac_fn_c_check_decl
2297cat >config.log <<_ACEOF
2298This file contains any messages produced by compilers while
2299running configure, to aid debugging if configure makes a mistake.
2300
2301It was created by MFS $as_me 2.0.91, which was
2302generated by GNU Autoconf 2.69.  Invocation command line was
2303
2304  $ $0 $@
2305
2306_ACEOF
2307exec 5>>config.log
2308{
2309cat <<_ASUNAME
2310## --------- ##
2311## Platform. ##
2312## --------- ##
2313
2314hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2315uname -m = `(uname -m) 2>/dev/null || echo unknown`
2316uname -r = `(uname -r) 2>/dev/null || echo unknown`
2317uname -s = `(uname -s) 2>/dev/null || echo unknown`
2318uname -v = `(uname -v) 2>/dev/null || echo unknown`
2319
2320/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2321/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2322
2323/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2324/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2325/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2326/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2327/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2328/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2329/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2330
2331_ASUNAME
2332
2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334for as_dir in $PATH
2335do
2336  IFS=$as_save_IFS
2337  test -z "$as_dir" && as_dir=.
2338    $as_echo "PATH: $as_dir"
2339  done
2340IFS=$as_save_IFS
2341
2342} >&5
2343
2344cat >&5 <<_ACEOF
2345
2346
2347## ----------- ##
2348## Core tests. ##
2349## ----------- ##
2350
2351_ACEOF
2352
2353
2354# Keep a trace of the command line.
2355# Strip out --no-create and --no-recursion so they do not pile up.
2356# Strip out --silent because we don't want to record it for future runs.
2357# Also quote any args containing shell meta-characters.
2358# Make two passes to allow for proper duplicate-argument suppression.
2359ac_configure_args=
2360ac_configure_args0=
2361ac_configure_args1=
2362ac_must_keep_next=false
2363for ac_pass in 1 2
2364do
2365  for ac_arg
2366  do
2367    case $ac_arg in
2368    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2369    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2370    | -silent | --silent | --silen | --sile | --sil)
2371      continue ;;
2372    *\'*)
2373      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2374    esac
2375    case $ac_pass in
2376    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2377    2)
2378      as_fn_append ac_configure_args1 " '$ac_arg'"
2379      if test $ac_must_keep_next = true; then
2380	ac_must_keep_next=false # Got value, back to normal.
2381      else
2382	case $ac_arg in
2383	  *=* | --config-cache | -C | -disable-* | --disable-* \
2384	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2385	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2386	  | -with-* | --with-* | -without-* | --without-* | --x)
2387	    case "$ac_configure_args0 " in
2388	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2389	    esac
2390	    ;;
2391	  -* ) ac_must_keep_next=true ;;
2392	esac
2393      fi
2394      as_fn_append ac_configure_args " '$ac_arg'"
2395      ;;
2396    esac
2397  done
2398done
2399{ ac_configure_args0=; unset ac_configure_args0;}
2400{ ac_configure_args1=; unset ac_configure_args1;}
2401
2402# When interrupted or exit'd, cleanup temporary files, and complete
2403# config.log.  We remove comments because anyway the quotes in there
2404# would cause problems or look ugly.
2405# WARNING: Use '\'' to represent an apostrophe within the trap.
2406# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2407trap 'exit_status=$?
2408  # Save into config.log some information that might help in debugging.
2409  {
2410    echo
2411
2412    $as_echo "## ---------------- ##
2413## Cache variables. ##
2414## ---------------- ##"
2415    echo
2416    # The following way of writing the cache mishandles newlines in values,
2417(
2418  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2419    eval ac_val=\$$ac_var
2420    case $ac_val in #(
2421    *${as_nl}*)
2422      case $ac_var in #(
2423      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2424$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2425      esac
2426      case $ac_var in #(
2427      _ | IFS | as_nl) ;; #(
2428      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2429      *) { eval $ac_var=; unset $ac_var;} ;;
2430      esac ;;
2431    esac
2432  done
2433  (set) 2>&1 |
2434    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2435    *${as_nl}ac_space=\ *)
2436      sed -n \
2437	"s/'\''/'\''\\\\'\'''\''/g;
2438	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2439      ;; #(
2440    *)
2441      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2442      ;;
2443    esac |
2444    sort
2445)
2446    echo
2447
2448    $as_echo "## ----------------- ##
2449## Output variables. ##
2450## ----------------- ##"
2451    echo
2452    for ac_var in $ac_subst_vars
2453    do
2454      eval ac_val=\$$ac_var
2455      case $ac_val in
2456      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457      esac
2458      $as_echo "$ac_var='\''$ac_val'\''"
2459    done | sort
2460    echo
2461
2462    if test -n "$ac_subst_files"; then
2463      $as_echo "## ------------------- ##
2464## File substitutions. ##
2465## ------------------- ##"
2466      echo
2467      for ac_var in $ac_subst_files
2468      do
2469	eval ac_val=\$$ac_var
2470	case $ac_val in
2471	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2472	esac
2473	$as_echo "$ac_var='\''$ac_val'\''"
2474      done | sort
2475      echo
2476    fi
2477
2478    if test -s confdefs.h; then
2479      $as_echo "## ----------- ##
2480## confdefs.h. ##
2481## ----------- ##"
2482      echo
2483      cat confdefs.h
2484      echo
2485    fi
2486    test "$ac_signal" != 0 &&
2487      $as_echo "$as_me: caught signal $ac_signal"
2488    $as_echo "$as_me: exit $exit_status"
2489  } >&5
2490  rm -f core *.core core.conftest.* &&
2491    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2492    exit $exit_status
2493' 0
2494for ac_signal in 1 2 13 15; do
2495  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2496done
2497ac_signal=0
2498
2499# confdefs.h avoids OS command line length limits that DEFS can exceed.
2500rm -f -r conftest* confdefs.h
2501
2502$as_echo "/* confdefs.h */" > confdefs.h
2503
2504# Predefined preprocessor variables.
2505
2506cat >>confdefs.h <<_ACEOF
2507#define PACKAGE_NAME "$PACKAGE_NAME"
2508_ACEOF
2509
2510cat >>confdefs.h <<_ACEOF
2511#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2512_ACEOF
2513
2514cat >>confdefs.h <<_ACEOF
2515#define PACKAGE_VERSION "$PACKAGE_VERSION"
2516_ACEOF
2517
2518cat >>confdefs.h <<_ACEOF
2519#define PACKAGE_STRING "$PACKAGE_STRING"
2520_ACEOF
2521
2522cat >>confdefs.h <<_ACEOF
2523#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2524_ACEOF
2525
2526cat >>confdefs.h <<_ACEOF
2527#define PACKAGE_URL "$PACKAGE_URL"
2528_ACEOF
2529
2530
2531# Let the site file select an alternate cache file if it wants to.
2532# Prefer an explicitly selected file to automatically selected ones.
2533ac_site_file1=NONE
2534ac_site_file2=NONE
2535if test -n "$CONFIG_SITE"; then
2536  # We do not want a PATH search for config.site.
2537  case $CONFIG_SITE in #((
2538    -*)  ac_site_file1=./$CONFIG_SITE;;
2539    */*) ac_site_file1=$CONFIG_SITE;;
2540    *)   ac_site_file1=./$CONFIG_SITE;;
2541  esac
2542elif test "x$prefix" != xNONE; then
2543  ac_site_file1=$prefix/share/config.site
2544  ac_site_file2=$prefix/etc/config.site
2545else
2546  ac_site_file1=$ac_default_prefix/share/config.site
2547  ac_site_file2=$ac_default_prefix/etc/config.site
2548fi
2549for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2550do
2551  test "x$ac_site_file" = xNONE && continue
2552  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2553    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2554$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2555    sed 's/^/| /' "$ac_site_file" >&5
2556    . "$ac_site_file" \
2557      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559as_fn_error $? "failed to load site script $ac_site_file
2560See \`config.log' for more details" "$LINENO" 5; }
2561  fi
2562done
2563
2564if test -r "$cache_file"; then
2565  # Some versions of bash will fail to source /dev/null (special files
2566  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2567  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2568    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2569$as_echo "$as_me: loading cache $cache_file" >&6;}
2570    case $cache_file in
2571      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2572      *)                      . "./$cache_file";;
2573    esac
2574  fi
2575else
2576  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2577$as_echo "$as_me: creating cache $cache_file" >&6;}
2578  >$cache_file
2579fi
2580
2581# Check that the precious variables saved in the cache have kept the same
2582# value.
2583ac_cache_corrupted=false
2584for ac_var in $ac_precious_vars; do
2585  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2586  eval ac_new_set=\$ac_env_${ac_var}_set
2587  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2588  eval ac_new_val=\$ac_env_${ac_var}_value
2589  case $ac_old_set,$ac_new_set in
2590    set,)
2591      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2592$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2593      ac_cache_corrupted=: ;;
2594    ,set)
2595      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2596$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2597      ac_cache_corrupted=: ;;
2598    ,);;
2599    *)
2600      if test "x$ac_old_val" != "x$ac_new_val"; then
2601	# differences in whitespace do not lead to failure.
2602	ac_old_val_w=`echo x $ac_old_val`
2603	ac_new_val_w=`echo x $ac_new_val`
2604	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2605	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2606$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2607	  ac_cache_corrupted=:
2608	else
2609	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2610$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2611	  eval $ac_var=\$ac_old_val
2612	fi
2613	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2614$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2615	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2616$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2617      fi;;
2618  esac
2619  # Pass precious variables to config.status.
2620  if test "$ac_new_set" = set; then
2621    case $ac_new_val in
2622    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2623    *) ac_arg=$ac_var=$ac_new_val ;;
2624    esac
2625    case " $ac_configure_args " in
2626      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2627      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2628    esac
2629  fi
2630done
2631if $ac_cache_corrupted; then
2632  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2635$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2636  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2637fi
2638## -------------------- ##
2639## Main body of script. ##
2640## -------------------- ##
2641
2642ac_ext=c
2643ac_cpp='$CPP $CPPFLAGS'
2644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2646ac_compiler_gnu=$ac_cv_c_compiler_gnu
2647
2648
2649release=1
2650
2651ac_config_headers="$ac_config_headers config.h"
2652
2653ac_aux_dir=
2654for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2655  if test -f "$ac_dir/install-sh"; then
2656    ac_aux_dir=$ac_dir
2657    ac_install_sh="$ac_aux_dir/install-sh -c"
2658    break
2659  elif test -f "$ac_dir/install.sh"; then
2660    ac_aux_dir=$ac_dir
2661    ac_install_sh="$ac_aux_dir/install.sh -c"
2662    break
2663  elif test -f "$ac_dir/shtool"; then
2664    ac_aux_dir=$ac_dir
2665    ac_install_sh="$ac_aux_dir/shtool install -c"
2666    break
2667  fi
2668done
2669if test -z "$ac_aux_dir"; then
2670  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2671fi
2672
2673# These three variables are undocumented and unsupported,
2674# and are intended to be withdrawn in a future Autoconf release.
2675# They can cause serious problems if a builder's source tree is in a directory
2676# whose full name contains unusual characters.
2677ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2678ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2679ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2680
2681
2682# Make sure we can run config.sub.
2683$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2684  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2685
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2687$as_echo_n "checking build system type... " >&6; }
2688if ${ac_cv_build+:} false; then :
2689  $as_echo_n "(cached) " >&6
2690else
2691  ac_build_alias=$build_alias
2692test "x$ac_build_alias" = x &&
2693  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2694test "x$ac_build_alias" = x &&
2695  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2696ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2697  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2698
2699fi
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2701$as_echo "$ac_cv_build" >&6; }
2702case $ac_cv_build in
2703*-*-*) ;;
2704*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2705esac
2706build=$ac_cv_build
2707ac_save_IFS=$IFS; IFS='-'
2708set x $ac_cv_build
2709shift
2710build_cpu=$1
2711build_vendor=$2
2712shift; shift
2713# Remember, the first character of IFS is used to create $*,
2714# except with old shells:
2715build_os=$*
2716IFS=$ac_save_IFS
2717case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2718
2719
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2721$as_echo_n "checking host system type... " >&6; }
2722if ${ac_cv_host+:} false; then :
2723  $as_echo_n "(cached) " >&6
2724else
2725  if test "x$host_alias" = x; then
2726  ac_cv_host=$ac_cv_build
2727else
2728  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2729    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2730fi
2731
2732fi
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2734$as_echo "$ac_cv_host" >&6; }
2735case $ac_cv_host in
2736*-*-*) ;;
2737*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2738esac
2739host=$ac_cv_host
2740ac_save_IFS=$IFS; IFS='-'
2741set x $ac_cv_host
2742shift
2743host_cpu=$1
2744host_vendor=$2
2745shift; shift
2746# Remember, the first character of IFS is used to create $*,
2747# except with old shells:
2748host_os=$*
2749IFS=$ac_save_IFS
2750case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2751
2752
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2754$as_echo_n "checking target system type... " >&6; }
2755if ${ac_cv_target+:} false; then :
2756  $as_echo_n "(cached) " >&6
2757else
2758  if test "x$target_alias" = x; then
2759  ac_cv_target=$ac_cv_host
2760else
2761  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2762    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2763fi
2764
2765fi
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2767$as_echo "$ac_cv_target" >&6; }
2768case $ac_cv_target in
2769*-*-*) ;;
2770*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2771esac
2772target=$ac_cv_target
2773ac_save_IFS=$IFS; IFS='-'
2774set x $ac_cv_target
2775shift
2776target_cpu=$1
2777target_vendor=$2
2778shift; shift
2779# Remember, the first character of IFS is used to create $*,
2780# except with old shells:
2781target_os=$*
2782IFS=$ac_save_IFS
2783case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2784
2785
2786# The aliases save the names the user supplied, while $host etc.
2787# will get canonicalized.
2788test -n "$target_alias" &&
2789  test "$program_prefix$program_suffix$program_transform_name" = \
2790    NONENONEs,x,x, &&
2791  program_prefix=${target_alias}-
2792am__api_version='1.15'
2793
2794# Find a good install program.  We prefer a C program (faster),
2795# so one script is as good as another.  But avoid the broken or
2796# incompatible versions:
2797# SysV /etc/install, /usr/sbin/install
2798# SunOS /usr/etc/install
2799# IRIX /sbin/install
2800# AIX /bin/install
2801# AmigaOS /C/install, which installs bootblocks on floppy discs
2802# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2803# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2804# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2805# OS/2's system install, which has a completely different semantic
2806# ./install, which can be erroneously created by make from ./install.sh.
2807# Reject install programs that cannot install multiple files.
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2809$as_echo_n "checking for a BSD-compatible install... " >&6; }
2810if test -z "$INSTALL"; then
2811if ${ac_cv_path_install+:} false; then :
2812  $as_echo_n "(cached) " >&6
2813else
2814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817  IFS=$as_save_IFS
2818  test -z "$as_dir" && as_dir=.
2819    # Account for people who put trailing slashes in PATH elements.
2820case $as_dir/ in #((
2821  ./ | .// | /[cC]/* | \
2822  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2823  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2824  /usr/ucb/* ) ;;
2825  *)
2826    # OSF1 and SCO ODT 3.0 have their own names for install.
2827    # Don't use installbsd from OSF since it installs stuff as root
2828    # by default.
2829    for ac_prog in ginstall scoinst install; do
2830      for ac_exec_ext in '' $ac_executable_extensions; do
2831	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2832	  if test $ac_prog = install &&
2833	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2834	    # AIX install.  It has an incompatible calling convention.
2835	    :
2836	  elif test $ac_prog = install &&
2837	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2838	    # program-specific install script used by HP pwplus--don't use.
2839	    :
2840	  else
2841	    rm -rf conftest.one conftest.two conftest.dir
2842	    echo one > conftest.one
2843	    echo two > conftest.two
2844	    mkdir conftest.dir
2845	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2846	      test -s conftest.one && test -s conftest.two &&
2847	      test -s conftest.dir/conftest.one &&
2848	      test -s conftest.dir/conftest.two
2849	    then
2850	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2851	      break 3
2852	    fi
2853	  fi
2854	fi
2855      done
2856    done
2857    ;;
2858esac
2859
2860  done
2861IFS=$as_save_IFS
2862
2863rm -rf conftest.one conftest.two conftest.dir
2864
2865fi
2866  if test "${ac_cv_path_install+set}" = set; then
2867    INSTALL=$ac_cv_path_install
2868  else
2869    # As a last resort, use the slow shell script.  Don't cache a
2870    # value for INSTALL within a source directory, because that will
2871    # break other packages using the cache if that directory is
2872    # removed, or if the value is a relative name.
2873    INSTALL=$ac_install_sh
2874  fi
2875fi
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2877$as_echo "$INSTALL" >&6; }
2878
2879# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2880# It thinks the first close brace ends the variable substitution.
2881test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2882
2883test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2884
2885test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2886
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2888$as_echo_n "checking whether build environment is sane... " >&6; }
2889# Reject unsafe characters in $srcdir or the absolute working directory
2890# name.  Accept space and tab only in the latter.
2891am_lf='
2892'
2893case `pwd` in
2894  *[\\\"\#\$\&\'\`$am_lf]*)
2895    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2896esac
2897case $srcdir in
2898  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2899    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2900esac
2901
2902# Do 'set' in a subshell so we don't clobber the current shell's
2903# arguments.  Must try -L first in case configure is actually a
2904# symlink; some systems play weird games with the mod time of symlinks
2905# (eg FreeBSD returns the mod time of the symlink's containing
2906# directory).
2907if (
2908   am_has_slept=no
2909   for am_try in 1 2; do
2910     echo "timestamp, slept: $am_has_slept" > conftest.file
2911     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2912     if test "$*" = "X"; then
2913	# -L didn't work.
2914	set X `ls -t "$srcdir/configure" conftest.file`
2915     fi
2916     if test "$*" != "X $srcdir/configure conftest.file" \
2917	&& test "$*" != "X conftest.file $srcdir/configure"; then
2918
2919	# If neither matched, then we have a broken ls.  This can happen
2920	# if, for instance, CONFIG_SHELL is bash and it inherits a
2921	# broken ls alias from the environment.  This has actually
2922	# happened.  Such a system could not be considered "sane".
2923	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2924  alias in your environment" "$LINENO" 5
2925     fi
2926     if test "$2" = conftest.file || test $am_try -eq 2; then
2927       break
2928     fi
2929     # Just in case.
2930     sleep 1
2931     am_has_slept=yes
2932   done
2933   test "$2" = conftest.file
2934   )
2935then
2936   # Ok.
2937   :
2938else
2939   as_fn_error $? "newly created file is older than distributed files!
2940Check your system clock" "$LINENO" 5
2941fi
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2943$as_echo "yes" >&6; }
2944# If we didn't sleep, we still need to ensure time stamps of config.status and
2945# generated files are strictly newer.
2946am_sleep_pid=
2947if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2948  ( sleep 1 ) &
2949  am_sleep_pid=$!
2950fi
2951
2952rm -f conftest.file
2953
2954test "$program_prefix" != NONE &&
2955  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2956# Use a double $ so make ignores it.
2957test "$program_suffix" != NONE &&
2958  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2959# Double any \ or $.
2960# By default was `s,x,x', remove it if useless.
2961ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2962program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2963
2964# Expand $ac_aux_dir to an absolute path.
2965am_aux_dir=`cd "$ac_aux_dir" && pwd`
2966
2967if test x"${MISSING+set}" != xset; then
2968  case $am_aux_dir in
2969  *\ * | *\	*)
2970    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2971  *)
2972    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2973  esac
2974fi
2975# Use eval to expand $SHELL
2976if eval "$MISSING --is-lightweight"; then
2977  am_missing_run="$MISSING "
2978else
2979  am_missing_run=
2980  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2981$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2982fi
2983
2984if test x"${install_sh+set}" != xset; then
2985  case $am_aux_dir in
2986  *\ * | *\	*)
2987    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2988  *)
2989    install_sh="\${SHELL} $am_aux_dir/install-sh"
2990  esac
2991fi
2992
2993# Installed binaries are usually stripped using 'strip' when the user
2994# run "make install-strip".  However 'strip' might not be the right
2995# tool to use in cross-compilation environments, therefore Automake
2996# will honor the 'STRIP' environment variable to overrule this program.
2997if test "$cross_compiling" != no; then
2998  if test -n "$ac_tool_prefix"; then
2999  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3000set dummy ${ac_tool_prefix}strip; ac_word=$2
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002$as_echo_n "checking for $ac_word... " >&6; }
3003if ${ac_cv_prog_STRIP+:} false; then :
3004  $as_echo_n "(cached) " >&6
3005else
3006  if test -n "$STRIP"; then
3007  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3008else
3009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010for as_dir in $PATH
3011do
3012  IFS=$as_save_IFS
3013  test -z "$as_dir" && as_dir=.
3014    for ac_exec_ext in '' $ac_executable_extensions; do
3015  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018    break 2
3019  fi
3020done
3021  done
3022IFS=$as_save_IFS
3023
3024fi
3025fi
3026STRIP=$ac_cv_prog_STRIP
3027if test -n "$STRIP"; then
3028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3029$as_echo "$STRIP" >&6; }
3030else
3031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032$as_echo "no" >&6; }
3033fi
3034
3035
3036fi
3037if test -z "$ac_cv_prog_STRIP"; then
3038  ac_ct_STRIP=$STRIP
3039  # Extract the first word of "strip", so it can be a program name with args.
3040set dummy strip; ac_word=$2
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042$as_echo_n "checking for $ac_word... " >&6; }
3043if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3044  $as_echo_n "(cached) " >&6
3045else
3046  if test -n "$ac_ct_STRIP"; then
3047  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3048else
3049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050for as_dir in $PATH
3051do
3052  IFS=$as_save_IFS
3053  test -z "$as_dir" && as_dir=.
3054    for ac_exec_ext in '' $ac_executable_extensions; do
3055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056    ac_cv_prog_ac_ct_STRIP="strip"
3057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058    break 2
3059  fi
3060done
3061  done
3062IFS=$as_save_IFS
3063
3064fi
3065fi
3066ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3067if test -n "$ac_ct_STRIP"; then
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3069$as_echo "$ac_ct_STRIP" >&6; }
3070else
3071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072$as_echo "no" >&6; }
3073fi
3074
3075  if test "x$ac_ct_STRIP" = x; then
3076    STRIP=":"
3077  else
3078    case $cross_compiling:$ac_tool_warned in
3079yes:)
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3082ac_tool_warned=yes ;;
3083esac
3084    STRIP=$ac_ct_STRIP
3085  fi
3086else
3087  STRIP="$ac_cv_prog_STRIP"
3088fi
3089
3090fi
3091INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3092
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3094$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3095if test -z "$MKDIR_P"; then
3096  if ${ac_cv_path_mkdir+:} false; then :
3097  $as_echo_n "(cached) " >&6
3098else
3099  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3101do
3102  IFS=$as_save_IFS
3103  test -z "$as_dir" && as_dir=.
3104    for ac_prog in mkdir gmkdir; do
3105	 for ac_exec_ext in '' $ac_executable_extensions; do
3106	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3107	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3108	     'mkdir (GNU coreutils) '* | \
3109	     'mkdir (coreutils) '* | \
3110	     'mkdir (fileutils) '4.1*)
3111	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3112	       break 3;;
3113	   esac
3114	 done
3115       done
3116  done
3117IFS=$as_save_IFS
3118
3119fi
3120
3121  test -d ./--version && rmdir ./--version
3122  if test "${ac_cv_path_mkdir+set}" = set; then
3123    MKDIR_P="$ac_cv_path_mkdir -p"
3124  else
3125    # As a last resort, use the slow shell script.  Don't cache a
3126    # value for MKDIR_P within a source directory, because that will
3127    # break other packages using the cache if that directory is
3128    # removed, or if the value is a relative name.
3129    MKDIR_P="$ac_install_sh -d"
3130  fi
3131fi
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3133$as_echo "$MKDIR_P" >&6; }
3134
3135for ac_prog in gawk mawk nawk awk
3136do
3137  # Extract the first word of "$ac_prog", so it can be a program name with args.
3138set dummy $ac_prog; ac_word=$2
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140$as_echo_n "checking for $ac_word... " >&6; }
3141if ${ac_cv_prog_AWK+:} false; then :
3142  $as_echo_n "(cached) " >&6
3143else
3144  if test -n "$AWK"; then
3145  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3146else
3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148for as_dir in $PATH
3149do
3150  IFS=$as_save_IFS
3151  test -z "$as_dir" && as_dir=.
3152    for ac_exec_ext in '' $ac_executable_extensions; do
3153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154    ac_cv_prog_AWK="$ac_prog"
3155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156    break 2
3157  fi
3158done
3159  done
3160IFS=$as_save_IFS
3161
3162fi
3163fi
3164AWK=$ac_cv_prog_AWK
3165if test -n "$AWK"; then
3166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3167$as_echo "$AWK" >&6; }
3168else
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170$as_echo "no" >&6; }
3171fi
3172
3173
3174  test -n "$AWK" && break
3175done
3176
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3178$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3179set x ${MAKE-make}
3180ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3181if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3182  $as_echo_n "(cached) " >&6
3183else
3184  cat >conftest.make <<\_ACEOF
3185SHELL = /bin/sh
3186all:
3187	@echo '@@@%%%=$(MAKE)=@@@%%%'
3188_ACEOF
3189# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3190case `${MAKE-make} -f conftest.make 2>/dev/null` in
3191  *@@@%%%=?*=@@@%%%*)
3192    eval ac_cv_prog_make_${ac_make}_set=yes;;
3193  *)
3194    eval ac_cv_prog_make_${ac_make}_set=no;;
3195esac
3196rm -f conftest.make
3197fi
3198if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200$as_echo "yes" >&6; }
3201  SET_MAKE=
3202else
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205  SET_MAKE="MAKE=${MAKE-make}"
3206fi
3207
3208rm -rf .tst 2>/dev/null
3209mkdir .tst 2>/dev/null
3210if test -d .tst; then
3211  am__leading_dot=.
3212else
3213  am__leading_dot=_
3214fi
3215rmdir .tst 2>/dev/null
3216
3217# Check whether --enable-silent-rules was given.
3218if test "${enable_silent_rules+set}" = set; then :
3219  enableval=$enable_silent_rules;
3220fi
3221
3222case $enable_silent_rules in # (((
3223  yes) AM_DEFAULT_VERBOSITY=0;;
3224   no) AM_DEFAULT_VERBOSITY=1;;
3225    *) AM_DEFAULT_VERBOSITY=1;;
3226esac
3227am_make=${MAKE-make}
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3229$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3230if ${am_cv_make_support_nested_variables+:} false; then :
3231  $as_echo_n "(cached) " >&6
3232else
3233  if $as_echo 'TRUE=$(BAR$(V))
3234BAR0=false
3235BAR1=true
3236V=1
3237am__doit:
3238	@$(TRUE)
3239.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3240  am_cv_make_support_nested_variables=yes
3241else
3242  am_cv_make_support_nested_variables=no
3243fi
3244fi
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3246$as_echo "$am_cv_make_support_nested_variables" >&6; }
3247if test $am_cv_make_support_nested_variables = yes; then
3248    AM_V='$(V)'
3249  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3250else
3251  AM_V=$AM_DEFAULT_VERBOSITY
3252  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3253fi
3254AM_BACKSLASH='\'
3255
3256if test "`cd $srcdir && pwd`" != "`pwd`"; then
3257  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3258  # is not polluted with repeated "-I."
3259  am__isrc=' -I$(srcdir)'
3260  # test to see if srcdir already configured
3261  if test -f $srcdir/config.status; then
3262    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3263  fi
3264fi
3265
3266# test whether we have cygpath
3267if test -z "$CYGPATH_W"; then
3268  if (cygpath --version) >/dev/null 2>/dev/null; then
3269    CYGPATH_W='cygpath -w'
3270  else
3271    CYGPATH_W=echo
3272  fi
3273fi
3274
3275
3276# Define the identity of the package.
3277 PACKAGE='moosefs'
3278 VERSION='2.0.91'
3279
3280
3281cat >>confdefs.h <<_ACEOF
3282#define PACKAGE "$PACKAGE"
3283_ACEOF
3284
3285
3286cat >>confdefs.h <<_ACEOF
3287#define VERSION "$VERSION"
3288_ACEOF
3289
3290# Some tools Automake needs.
3291
3292ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3293
3294
3295AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3296
3297
3298AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3299
3300
3301AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3302
3303
3304MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3305
3306# For better backward compatibility.  To be removed once Automake 1.9.x
3307# dies out for good.  For more background, see:
3308# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3309# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3310mkdir_p='$(MKDIR_P)'
3311
3312# We need awk for the "check" target (and possibly the TAP driver).  The
3313# system "awk" is bad on some platforms.
3314# Always define AMTAR for backward compatibility.  Yes, it's still used
3315# in the wild :-(  We should find a proper way to deprecate it ...
3316AMTAR='$${TAR-tar}'
3317
3318
3319# We'll loop over all known methods to create a tar archive until one works.
3320_am_tools='gnutar  pax cpio none'
3321
3322am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3323
3324
3325
3326
3327
3328
3329# POSIX will say in a future version that running "rm -f" with no argument
3330# is OK; and we want to be able to make that assumption in our Makefile
3331# recipes.  So use an aggressive probe to check that the usage we want is
3332# actually supported "in the wild" to an acceptable degree.
3333# See automake bug#10828.
3334# To make any issue more visible, cause the running configure to be aborted
3335# by default if the 'rm' program in use doesn't match our expectations; the
3336# user can still override this though.
3337if rm -f && rm -fr && rm -rf; then : OK; else
3338  cat >&2 <<'END'
3339Oops!
3340
3341Your 'rm' program seems unable to run without file operands specified
3342on the command line, even when the '-f' option is present.  This is contrary
3343to the behaviour of most rm programs out there, and not conforming with
3344the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3345
3346Please tell bug-automake@gnu.org about your system, including the value
3347of your $PATH and any error possibly output before this message.  This
3348can help us improve future automake versions.
3349
3350END
3351  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3352    echo 'Configuration will proceed anyway, since you have set the' >&2
3353    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3354    echo >&2
3355  else
3356    cat >&2 <<'END'
3357Aborting the configuration process, to ensure you take notice of the issue.
3358
3359You can download and install GNU coreutils to get an 'rm' implementation
3360that behaves properly: <http://www.gnu.org/software/coreutils/>.
3361
3362If you want to complete the configuration process using your problematic
3363'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3364to "yes", and re-run configure.
3365
3366END
3367    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3368  fi
3369fi
3370
3371# Check whether --enable-silent-rules was given.
3372if test "${enable_silent_rules+set}" = set; then :
3373  enableval=$enable_silent_rules;
3374fi
3375
3376case $enable_silent_rules in # (((
3377  yes) AM_DEFAULT_VERBOSITY=0;;
3378   no) AM_DEFAULT_VERBOSITY=1;;
3379    *) AM_DEFAULT_VERBOSITY=0;;
3380esac
3381am_make=${MAKE-make}
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3383$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3384if ${am_cv_make_support_nested_variables+:} false; then :
3385  $as_echo_n "(cached) " >&6
3386else
3387  if $as_echo 'TRUE=$(BAR$(V))
3388BAR0=false
3389BAR1=true
3390V=1
3391am__doit:
3392	@$(TRUE)
3393.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3394  am_cv_make_support_nested_variables=yes
3395else
3396  am_cv_make_support_nested_variables=no
3397fi
3398fi
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3400$as_echo "$am_cv_make_support_nested_variables" >&6; }
3401if test $am_cv_make_support_nested_variables = yes; then
3402    AM_V='$(V)'
3403  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3404else
3405  AM_V=$AM_DEFAULT_VERBOSITY
3406  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3407fi
3408AM_BACKSLASH='\'
3409
3410
3411
3412versmaj=$(echo $PACKAGE_VERSION | cut -d. -f1)
3413versmid=$(echo $PACKAGE_VERSION | cut -d. -f2)
3414versmin=$(echo $PACKAGE_VERSION | cut -d. -f3)
3415
3416cat >>confdefs.h <<_ACEOF
3417#define VERSMAJ $versmaj
3418_ACEOF
3419
3420
3421cat >>confdefs.h <<_ACEOF
3422#define VERSMID $versmid
3423_ACEOF
3424
3425
3426cat >>confdefs.h <<_ACEOF
3427#define VERSMIN ($versmin)*2
3428_ACEOF
3429
3430
3431cat >>confdefs.h <<_ACEOF
3432#define VERSHEX (($versmaj)*0x10000+($versmid)*0x100+($versmin)*2)
3433_ACEOF
3434
3435#AC_DEFINE_UNQUOTED([VERSMIN], [$versmin], [Minor MFS version])
3436#AC_DEFINE_UNQUOTED([VERSHEX], [(($versmaj)*0x10000+($versmid)*0x100+($versmin))], [Full MFS version as a hex number])
3437
3438cat >>confdefs.h <<_ACEOF
3439#define RELEASE $release
3440_ACEOF
3441
3442
3443cat >>confdefs.h <<_ACEOF
3444#define VERSION2INT(maj,med,min) ((maj)*0x10000+(med)*0x100+(((maj)>1)?((min)*2):(min)))
3445_ACEOF
3446
3447
3448cat >>confdefs.h <<_ACEOF
3449#define VERSSTR "${PACKAGE_VERSION}-${release}"
3450_ACEOF
3451
3452
3453# Checks for programs.
3454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459if test -n "$ac_tool_prefix"; then
3460  for ac_prog in mycc gcc llvm-gcc clang
3461  do
3462    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3463set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465$as_echo_n "checking for $ac_word... " >&6; }
3466if ${ac_cv_prog_CC+:} false; then :
3467  $as_echo_n "(cached) " >&6
3468else
3469  if test -n "$CC"; then
3470  ac_cv_prog_CC="$CC" # Let the user override the test.
3471else
3472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473for as_dir in $PATH
3474do
3475  IFS=$as_save_IFS
3476  test -z "$as_dir" && as_dir=.
3477    for ac_exec_ext in '' $ac_executable_extensions; do
3478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481    break 2
3482  fi
3483done
3484  done
3485IFS=$as_save_IFS
3486
3487fi
3488fi
3489CC=$ac_cv_prog_CC
3490if test -n "$CC"; then
3491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3492$as_echo "$CC" >&6; }
3493else
3494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495$as_echo "no" >&6; }
3496fi
3497
3498
3499    test -n "$CC" && break
3500  done
3501fi
3502if test -z "$CC"; then
3503  ac_ct_CC=$CC
3504  for ac_prog in mycc gcc llvm-gcc clang
3505do
3506  # Extract the first word of "$ac_prog", so it can be a program name with args.
3507set dummy $ac_prog; ac_word=$2
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509$as_echo_n "checking for $ac_word... " >&6; }
3510if ${ac_cv_prog_ac_ct_CC+:} false; then :
3511  $as_echo_n "(cached) " >&6
3512else
3513  if test -n "$ac_ct_CC"; then
3514  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3515else
3516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517for as_dir in $PATH
3518do
3519  IFS=$as_save_IFS
3520  test -z "$as_dir" && as_dir=.
3521    for ac_exec_ext in '' $ac_executable_extensions; do
3522  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523    ac_cv_prog_ac_ct_CC="$ac_prog"
3524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525    break 2
3526  fi
3527done
3528  done
3529IFS=$as_save_IFS
3530
3531fi
3532fi
3533ac_ct_CC=$ac_cv_prog_ac_ct_CC
3534if test -n "$ac_ct_CC"; then
3535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3536$as_echo "$ac_ct_CC" >&6; }
3537else
3538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539$as_echo "no" >&6; }
3540fi
3541
3542
3543  test -n "$ac_ct_CC" && break
3544done
3545
3546  if test "x$ac_ct_CC" = x; then
3547    CC=""
3548  else
3549    case $cross_compiling:$ac_tool_warned in
3550yes:)
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3553ac_tool_warned=yes ;;
3554esac
3555    CC=$ac_ct_CC
3556  fi
3557fi
3558
3559
3560test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3562as_fn_error $? "no acceptable C compiler found in \$PATH
3563See \`config.log' for more details" "$LINENO" 5; }
3564
3565# Provide some information about the compiler.
3566$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3567set X $ac_compile
3568ac_compiler=$2
3569for ac_option in --version -v -V -qversion; do
3570  { { ac_try="$ac_compiler $ac_option >&5"
3571case "(($ac_try" in
3572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573  *) ac_try_echo=$ac_try;;
3574esac
3575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576$as_echo "$ac_try_echo"; } >&5
3577  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3578  ac_status=$?
3579  if test -s conftest.err; then
3580    sed '10a\
3581... rest of stderr output deleted ...
3582         10q' conftest.err >conftest.er1
3583    cat conftest.er1 >&5
3584  fi
3585  rm -f conftest.er1 conftest.err
3586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3587  test $ac_status = 0; }
3588done
3589
3590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h.  */
3592
3593int
3594main ()
3595{
3596
3597  ;
3598  return 0;
3599}
3600_ACEOF
3601ac_clean_files_save=$ac_clean_files
3602ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3603# Try to create an executable without -o first, disregard a.out.
3604# It will help us diagnose broken compilers, and finding out an intuition
3605# of exeext.
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3607$as_echo_n "checking whether the C compiler works... " >&6; }
3608ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3609
3610# The possible output files:
3611ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3612
3613ac_rmfiles=
3614for ac_file in $ac_files
3615do
3616  case $ac_file in
3617    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3618    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3619  esac
3620done
3621rm -f $ac_rmfiles
3622
3623if { { ac_try="$ac_link_default"
3624case "(($ac_try" in
3625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626  *) ac_try_echo=$ac_try;;
3627esac
3628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3629$as_echo "$ac_try_echo"; } >&5
3630  (eval "$ac_link_default") 2>&5
3631  ac_status=$?
3632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3633  test $ac_status = 0; }; then :
3634  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3635# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3636# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3637# so that the user can short-circuit this test for compilers unknown to
3638# Autoconf.
3639for ac_file in $ac_files ''
3640do
3641  test -f "$ac_file" || continue
3642  case $ac_file in
3643    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3644	;;
3645    [ab].out )
3646	# We found the default executable, but exeext='' is most
3647	# certainly right.
3648	break;;
3649    *.* )
3650	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3651	then :; else
3652	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3653	fi
3654	# We set ac_cv_exeext here because the later test for it is not
3655	# safe: cross compilers may not add the suffix if given an `-o'
3656	# argument, so we may need to know it at that point already.
3657	# Even if this section looks crufty: it has the advantage of
3658	# actually working.
3659	break;;
3660    * )
3661	break;;
3662  esac
3663done
3664test "$ac_cv_exeext" = no && ac_cv_exeext=
3665
3666else
3667  ac_file=''
3668fi
3669if test -z "$ac_file"; then :
3670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671$as_echo "no" >&6; }
3672$as_echo "$as_me: failed program was:" >&5
3673sed 's/^/| /' conftest.$ac_ext >&5
3674
3675{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3677as_fn_error 77 "C compiler cannot create executables
3678See \`config.log' for more details" "$LINENO" 5; }
3679else
3680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3681$as_echo "yes" >&6; }
3682fi
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3684$as_echo_n "checking for C compiler default output file name... " >&6; }
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3686$as_echo "$ac_file" >&6; }
3687ac_exeext=$ac_cv_exeext
3688
3689rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3690ac_clean_files=$ac_clean_files_save
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3692$as_echo_n "checking for suffix of executables... " >&6; }
3693if { { ac_try="$ac_link"
3694case "(($ac_try" in
3695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696  *) ac_try_echo=$ac_try;;
3697esac
3698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699$as_echo "$ac_try_echo"; } >&5
3700  (eval "$ac_link") 2>&5
3701  ac_status=$?
3702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703  test $ac_status = 0; }; then :
3704  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3705# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3706# work properly (i.e., refer to `conftest.exe'), while it won't with
3707# `rm'.
3708for ac_file in conftest.exe conftest conftest.*; do
3709  test -f "$ac_file" || continue
3710  case $ac_file in
3711    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3712    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3713	  break;;
3714    * ) break;;
3715  esac
3716done
3717else
3718  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3721See \`config.log' for more details" "$LINENO" 5; }
3722fi
3723rm -f conftest conftest$ac_cv_exeext
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3725$as_echo "$ac_cv_exeext" >&6; }
3726
3727rm -f conftest.$ac_ext
3728EXEEXT=$ac_cv_exeext
3729ac_exeext=$EXEEXT
3730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h.  */
3732#include <stdio.h>
3733int
3734main ()
3735{
3736FILE *f = fopen ("conftest.out", "w");
3737 return ferror (f) || fclose (f) != 0;
3738
3739  ;
3740  return 0;
3741}
3742_ACEOF
3743ac_clean_files="$ac_clean_files conftest.out"
3744# Check that the compiler produces executables we can run.  If not, either
3745# the compiler is broken, or we cross compile.
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3747$as_echo_n "checking whether we are cross compiling... " >&6; }
3748if test "$cross_compiling" != yes; then
3749  { { ac_try="$ac_link"
3750case "(($ac_try" in
3751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752  *) ac_try_echo=$ac_try;;
3753esac
3754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755$as_echo "$ac_try_echo"; } >&5
3756  (eval "$ac_link") 2>&5
3757  ac_status=$?
3758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759  test $ac_status = 0; }
3760  if { ac_try='./conftest$ac_cv_exeext'
3761  { { case "(($ac_try" in
3762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763  *) ac_try_echo=$ac_try;;
3764esac
3765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766$as_echo "$ac_try_echo"; } >&5
3767  (eval "$ac_try") 2>&5
3768  ac_status=$?
3769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3770  test $ac_status = 0; }; }; then
3771    cross_compiling=no
3772  else
3773    if test "$cross_compiling" = maybe; then
3774	cross_compiling=yes
3775    else
3776	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778as_fn_error $? "cannot run C compiled programs.
3779If you meant to cross compile, use \`--host'.
3780See \`config.log' for more details" "$LINENO" 5; }
3781    fi
3782  fi
3783fi
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3785$as_echo "$cross_compiling" >&6; }
3786
3787rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3788ac_clean_files=$ac_clean_files_save
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3790$as_echo_n "checking for suffix of object files... " >&6; }
3791if ${ac_cv_objext+:} false; then :
3792  $as_echo_n "(cached) " >&6
3793else
3794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795/* end confdefs.h.  */
3796
3797int
3798main ()
3799{
3800
3801  ;
3802  return 0;
3803}
3804_ACEOF
3805rm -f conftest.o conftest.obj
3806if { { ac_try="$ac_compile"
3807case "(($ac_try" in
3808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809  *) ac_try_echo=$ac_try;;
3810esac
3811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3812$as_echo "$ac_try_echo"; } >&5
3813  (eval "$ac_compile") 2>&5
3814  ac_status=$?
3815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3816  test $ac_status = 0; }; then :
3817  for ac_file in conftest.o conftest.obj conftest.*; do
3818  test -f "$ac_file" || continue;
3819  case $ac_file in
3820    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3821    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3822       break;;
3823  esac
3824done
3825else
3826  $as_echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
3828
3829{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3831as_fn_error $? "cannot compute suffix of object files: cannot compile
3832See \`config.log' for more details" "$LINENO" 5; }
3833fi
3834rm -f conftest.$ac_cv_objext conftest.$ac_ext
3835fi
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3837$as_echo "$ac_cv_objext" >&6; }
3838OBJEXT=$ac_cv_objext
3839ac_objext=$OBJEXT
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3841$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3842if ${ac_cv_c_compiler_gnu+:} false; then :
3843  $as_echo_n "(cached) " >&6
3844else
3845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846/* end confdefs.h.  */
3847
3848int
3849main ()
3850{
3851#ifndef __GNUC__
3852       choke me
3853#endif
3854
3855  ;
3856  return 0;
3857}
3858_ACEOF
3859if ac_fn_c_try_compile "$LINENO"; then :
3860  ac_compiler_gnu=yes
3861else
3862  ac_compiler_gnu=no
3863fi
3864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865ac_cv_c_compiler_gnu=$ac_compiler_gnu
3866
3867fi
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3869$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3870if test $ac_compiler_gnu = yes; then
3871  GCC=yes
3872else
3873  GCC=
3874fi
3875ac_test_CFLAGS=${CFLAGS+set}
3876ac_save_CFLAGS=$CFLAGS
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3878$as_echo_n "checking whether $CC accepts -g... " >&6; }
3879if ${ac_cv_prog_cc_g+:} false; then :
3880  $as_echo_n "(cached) " >&6
3881else
3882  ac_save_c_werror_flag=$ac_c_werror_flag
3883   ac_c_werror_flag=yes
3884   ac_cv_prog_cc_g=no
3885   CFLAGS="-g"
3886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887/* end confdefs.h.  */
3888
3889int
3890main ()
3891{
3892
3893  ;
3894  return 0;
3895}
3896_ACEOF
3897if ac_fn_c_try_compile "$LINENO"; then :
3898  ac_cv_prog_cc_g=yes
3899else
3900  CFLAGS=""
3901      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902/* end confdefs.h.  */
3903
3904int
3905main ()
3906{
3907
3908  ;
3909  return 0;
3910}
3911_ACEOF
3912if ac_fn_c_try_compile "$LINENO"; then :
3913
3914else
3915  ac_c_werror_flag=$ac_save_c_werror_flag
3916	 CFLAGS="-g"
3917	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918/* end confdefs.h.  */
3919
3920int
3921main ()
3922{
3923
3924  ;
3925  return 0;
3926}
3927_ACEOF
3928if ac_fn_c_try_compile "$LINENO"; then :
3929  ac_cv_prog_cc_g=yes
3930fi
3931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932fi
3933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934fi
3935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936   ac_c_werror_flag=$ac_save_c_werror_flag
3937fi
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3939$as_echo "$ac_cv_prog_cc_g" >&6; }
3940if test "$ac_test_CFLAGS" = set; then
3941  CFLAGS=$ac_save_CFLAGS
3942elif test $ac_cv_prog_cc_g = yes; then
3943  if test "$GCC" = yes; then
3944    CFLAGS="-g -O2"
3945  else
3946    CFLAGS="-g"
3947  fi
3948else
3949  if test "$GCC" = yes; then
3950    CFLAGS="-O2"
3951  else
3952    CFLAGS=
3953  fi
3954fi
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3956$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3957if ${ac_cv_prog_cc_c89+:} false; then :
3958  $as_echo_n "(cached) " >&6
3959else
3960  ac_cv_prog_cc_c89=no
3961ac_save_CC=$CC
3962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963/* end confdefs.h.  */
3964#include <stdarg.h>
3965#include <stdio.h>
3966struct stat;
3967/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3968struct buf { int x; };
3969FILE * (*rcsopen) (struct buf *, struct stat *, int);
3970static char *e (p, i)
3971     char **p;
3972     int i;
3973{
3974  return p[i];
3975}
3976static char *f (char * (*g) (char **, int), char **p, ...)
3977{
3978  char *s;
3979  va_list v;
3980  va_start (v,p);
3981  s = g (p, va_arg (v,int));
3982  va_end (v);
3983  return s;
3984}
3985
3986/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3987   function prototypes and stuff, but not '\xHH' hex character constants.
3988   These don't provoke an error unfortunately, instead are silently treated
3989   as 'x'.  The following induces an error, until -std is added to get
3990   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3991   array size at least.  It's necessary to write '\x00'==0 to get something
3992   that's true only with -std.  */
3993int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3994
3995/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3996   inside strings and character constants.  */
3997#define FOO(x) 'x'
3998int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3999
4000int test (int i, double x);
4001struct s1 {int (*f) (int a);};
4002struct s2 {int (*f) (double a);};
4003int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4004int argc;
4005char **argv;
4006int
4007main ()
4008{
4009return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4010  ;
4011  return 0;
4012}
4013_ACEOF
4014for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4015	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4016do
4017  CC="$ac_save_CC $ac_arg"
4018  if ac_fn_c_try_compile "$LINENO"; then :
4019  ac_cv_prog_cc_c89=$ac_arg
4020fi
4021rm -f core conftest.err conftest.$ac_objext
4022  test "x$ac_cv_prog_cc_c89" != "xno" && break
4023done
4024rm -f conftest.$ac_ext
4025CC=$ac_save_CC
4026
4027fi
4028# AC_CACHE_VAL
4029case "x$ac_cv_prog_cc_c89" in
4030  x)
4031    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4032$as_echo "none needed" >&6; } ;;
4033  xno)
4034    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4035$as_echo "unsupported" >&6; } ;;
4036  *)
4037    CC="$CC $ac_cv_prog_cc_c89"
4038    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4039$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4040esac
4041if test "x$ac_cv_prog_cc_c89" != xno; then :
4042
4043fi
4044
4045ac_ext=c
4046ac_cpp='$CPP $CPPFLAGS'
4047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4049ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050
4051ac_ext=c
4052ac_cpp='$CPP $CPPFLAGS'
4053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4057$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4058if ${am_cv_prog_cc_c_o+:} false; then :
4059  $as_echo_n "(cached) " >&6
4060else
4061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062/* end confdefs.h.  */
4063
4064int
4065main ()
4066{
4067
4068  ;
4069  return 0;
4070}
4071_ACEOF
4072  # Make sure it works both with $CC and with simple cc.
4073  # Following AC_PROG_CC_C_O, we do the test twice because some
4074  # compilers refuse to overwrite an existing .o file with -o,
4075  # though they will create one.
4076  am_cv_prog_cc_c_o=yes
4077  for am_i in 1 2; do
4078    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4079   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4080   ac_status=$?
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); } \
4083         && test -f conftest2.$ac_objext; then
4084      : OK
4085    else
4086      am_cv_prog_cc_c_o=no
4087      break
4088    fi
4089  done
4090  rm -f core conftest*
4091  unset am_i
4092fi
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4094$as_echo "$am_cv_prog_cc_c_o" >&6; }
4095if test "$am_cv_prog_cc_c_o" != yes; then
4096   # Losing compiler, so override with the script.
4097   # FIXME: It is wrong to rewrite CC.
4098   # But if we don't then we get into trouble of one sort or another.
4099   # A longer-term fix would be to have automake use am__CC in this case,
4100   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4101   CC="$am_aux_dir/compile $CC"
4102fi
4103ac_ext=c
4104ac_cpp='$CPP $CPPFLAGS'
4105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108
4109DEPDIR="${am__leading_dot}deps"
4110
4111ac_config_commands="$ac_config_commands depfiles"
4112
4113
4114am_make=${MAKE-make}
4115cat > confinc << 'END'
4116am__doit:
4117	@echo this is the am__doit target
4118.PHONY: am__doit
4119END
4120# If we don't find an include directive, just comment out the code.
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4122$as_echo_n "checking for style of include used by $am_make... " >&6; }
4123am__include="#"
4124am__quote=
4125_am_result=none
4126# First try GNU make style include.
4127echo "include confinc" > confmf
4128# Ignore all kinds of additional output from 'make'.
4129case `$am_make -s -f confmf 2> /dev/null` in #(
4130*the\ am__doit\ target*)
4131  am__include=include
4132  am__quote=
4133  _am_result=GNU
4134  ;;
4135esac
4136# Now try BSD make style include.
4137if test "$am__include" = "#"; then
4138   echo '.include "confinc"' > confmf
4139   case `$am_make -s -f confmf 2> /dev/null` in #(
4140   *the\ am__doit\ target*)
4141     am__include=.include
4142     am__quote="\""
4143     _am_result=BSD
4144     ;;
4145   esac
4146fi
4147
4148
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4150$as_echo "$_am_result" >&6; }
4151rm -f confinc confmf
4152
4153# Check whether --enable-dependency-tracking was given.
4154if test "${enable_dependency_tracking+set}" = set; then :
4155  enableval=$enable_dependency_tracking;
4156fi
4157
4158if test "x$enable_dependency_tracking" != xno; then
4159  am_depcomp="$ac_aux_dir/depcomp"
4160  AMDEPBACKSLASH='\'
4161  am__nodep='_no'
4162fi
4163 if test "x$enable_dependency_tracking" != xno; then
4164  AMDEP_TRUE=
4165  AMDEP_FALSE='#'
4166else
4167  AMDEP_TRUE='#'
4168  AMDEP_FALSE=
4169fi
4170
4171
4172
4173depcc="$CC"   am_compiler_list=
4174
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4176$as_echo_n "checking dependency style of $depcc... " >&6; }
4177if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4178  $as_echo_n "(cached) " >&6
4179else
4180  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4181  # We make a subdir and do the tests there.  Otherwise we can end up
4182  # making bogus files that we don't know about and never remove.  For
4183  # instance it was reported that on HP-UX the gcc test will end up
4184  # making a dummy file named 'D' -- because '-MD' means "put the output
4185  # in D".
4186  rm -rf conftest.dir
4187  mkdir conftest.dir
4188  # Copy depcomp to subdir because otherwise we won't find it if we're
4189  # using a relative directory.
4190  cp "$am_depcomp" conftest.dir
4191  cd conftest.dir
4192  # We will build objects and dependencies in a subdirectory because
4193  # it helps to detect inapplicable dependency modes.  For instance
4194  # both Tru64's cc and ICC support -MD to output dependencies as a
4195  # side effect of compilation, but ICC will put the dependencies in
4196  # the current directory while Tru64 will put them in the object
4197  # directory.
4198  mkdir sub
4199
4200  am_cv_CC_dependencies_compiler_type=none
4201  if test "$am_compiler_list" = ""; then
4202     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4203  fi
4204  am__universal=false
4205  case " $depcc " in #(
4206     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4207     esac
4208
4209  for depmode in $am_compiler_list; do
4210    # Setup a source with many dependencies, because some compilers
4211    # like to wrap large dependency lists on column 80 (with \), and
4212    # we should not choose a depcomp mode which is confused by this.
4213    #
4214    # We need to recreate these files for each test, as the compiler may
4215    # overwrite some of them when testing with obscure command lines.
4216    # This happens at least with the AIX C compiler.
4217    : > sub/conftest.c
4218    for i in 1 2 3 4 5 6; do
4219      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4220      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4221      # Solaris 10 /bin/sh.
4222      echo '/* dummy */' > sub/conftst$i.h
4223    done
4224    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4225
4226    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4227    # mode.  It turns out that the SunPro C++ compiler does not properly
4228    # handle '-M -o', and we need to detect this.  Also, some Intel
4229    # versions had trouble with output in subdirs.
4230    am__obj=sub/conftest.${OBJEXT-o}
4231    am__minus_obj="-o $am__obj"
4232    case $depmode in
4233    gcc)
4234      # This depmode causes a compiler race in universal mode.
4235      test "$am__universal" = false || continue
4236      ;;
4237    nosideeffect)
4238      # After this tag, mechanisms are not by side-effect, so they'll
4239      # only be used when explicitly requested.
4240      if test "x$enable_dependency_tracking" = xyes; then
4241	continue
4242      else
4243	break
4244      fi
4245      ;;
4246    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4247      # This compiler won't grok '-c -o', but also, the minuso test has
4248      # not run yet.  These depmodes are late enough in the game, and
4249      # so weak that their functioning should not be impacted.
4250      am__obj=conftest.${OBJEXT-o}
4251      am__minus_obj=
4252      ;;
4253    none) break ;;
4254    esac
4255    if depmode=$depmode \
4256       source=sub/conftest.c object=$am__obj \
4257       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4258       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4259         >/dev/null 2>conftest.err &&
4260       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4261       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4262       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4263       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4264      # icc doesn't choke on unknown options, it will just issue warnings
4265      # or remarks (even with -Werror).  So we grep stderr for any message
4266      # that says an option was ignored or not supported.
4267      # When given -MP, icc 7.0 and 7.1 complain thusly:
4268      #   icc: Command line warning: ignoring option '-M'; no argument required
4269      # The diagnosis changed in icc 8.0:
4270      #   icc: Command line remark: option '-MP' not supported
4271      if (grep 'ignoring option' conftest.err ||
4272          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4273        am_cv_CC_dependencies_compiler_type=$depmode
4274        break
4275      fi
4276    fi
4277  done
4278
4279  cd ..
4280  rm -rf conftest.dir
4281else
4282  am_cv_CC_dependencies_compiler_type=none
4283fi
4284
4285fi
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4287$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4288CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4289
4290 if
4291  test "x$enable_dependency_tracking" != xno \
4292  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4293  am__fastdepCC_TRUE=
4294  am__fastdepCC_FALSE='#'
4295else
4296  am__fastdepCC_TRUE='#'
4297  am__fastdepCC_FALSE=
4298fi
4299
4300
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4302$as_echo_n "checking whether ln -s works... " >&6; }
4303LN_S=$as_ln_s
4304if test "$LN_S" = "ln -s"; then
4305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4306$as_echo "yes" >&6; }
4307else
4308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4309$as_echo "no, using $LN_S" >&6; }
4310fi
4311
4312case `pwd` in
4313  *\ * | *\	*)
4314    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4315$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4316esac
4317
4318
4319
4320macro_version='2.4.6'
4321macro_revision='2.4.6'
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335ltmain=$ac_aux_dir/ltmain.sh
4336
4337# Backslashify metacharacters that are still active within
4338# double-quoted strings.
4339sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4340
4341# Same as above, but do not quote variable references.
4342double_quote_subst='s/\(["`\\]\)/\\\1/g'
4343
4344# Sed substitution to delay expansion of an escaped shell variable in a
4345# double_quote_subst'ed string.
4346delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4347
4348# Sed substitution to delay expansion of an escaped single quote.
4349delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4350
4351# Sed substitution to avoid accidental globbing in evaled expressions
4352no_glob_subst='s/\*/\\\*/g'
4353
4354ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4355ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4356ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4357
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4359$as_echo_n "checking how to print strings... " >&6; }
4360# Test print first, because it will be a builtin if present.
4361if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4362   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4363  ECHO='print -r --'
4364elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4365  ECHO='printf %s\n'
4366else
4367  # Use this function as a fallback that always works.
4368  func_fallback_echo ()
4369  {
4370    eval 'cat <<_LTECHO_EOF
4371$1
4372_LTECHO_EOF'
4373  }
4374  ECHO='func_fallback_echo'
4375fi
4376
4377# func_echo_all arg...
4378# Invoke $ECHO with all args, space-separated.
4379func_echo_all ()
4380{
4381    $ECHO ""
4382}
4383
4384case $ECHO in
4385  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4386$as_echo "printf" >&6; } ;;
4387  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4388$as_echo "print -r" >&6; } ;;
4389  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4390$as_echo "cat" >&6; } ;;
4391esac
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4407$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4408if ${ac_cv_path_SED+:} false; then :
4409  $as_echo_n "(cached) " >&6
4410else
4411            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4412     for ac_i in 1 2 3 4 5 6 7; do
4413       ac_script="$ac_script$as_nl$ac_script"
4414     done
4415     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4416     { ac_script=; unset ac_script;}
4417     if test -z "$SED"; then
4418  ac_path_SED_found=false
4419  # Loop through the user's path and test for each of PROGNAME-LIST
4420  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421for as_dir in $PATH
4422do
4423  IFS=$as_save_IFS
4424  test -z "$as_dir" && as_dir=.
4425    for ac_prog in sed gsed; do
4426    for ac_exec_ext in '' $ac_executable_extensions; do
4427      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4428      as_fn_executable_p "$ac_path_SED" || continue
4429# Check for GNU ac_path_SED and select it if it is found.
4430  # Check for GNU $ac_path_SED
4431case `"$ac_path_SED" --version 2>&1` in
4432*GNU*)
4433  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4434*)
4435  ac_count=0
4436  $as_echo_n 0123456789 >"conftest.in"
4437  while :
4438  do
4439    cat "conftest.in" "conftest.in" >"conftest.tmp"
4440    mv "conftest.tmp" "conftest.in"
4441    cp "conftest.in" "conftest.nl"
4442    $as_echo '' >> "conftest.nl"
4443    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4444    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4445    as_fn_arith $ac_count + 1 && ac_count=$as_val
4446    if test $ac_count -gt ${ac_path_SED_max-0}; then
4447      # Best one so far, save it but keep looking for a better one
4448      ac_cv_path_SED="$ac_path_SED"
4449      ac_path_SED_max=$ac_count
4450    fi
4451    # 10*(2^10) chars as input seems more than enough
4452    test $ac_count -gt 10 && break
4453  done
4454  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4455esac
4456
4457      $ac_path_SED_found && break 3
4458    done
4459  done
4460  done
4461IFS=$as_save_IFS
4462  if test -z "$ac_cv_path_SED"; then
4463    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4464  fi
4465else
4466  ac_cv_path_SED=$SED
4467fi
4468
4469fi
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4471$as_echo "$ac_cv_path_SED" >&6; }
4472 SED="$ac_cv_path_SED"
4473  rm -f conftest.sed
4474
4475test -z "$SED" && SED=sed
4476Xsed="$SED -e 1s/^X//"
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4489$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4490if ${ac_cv_path_GREP+:} false; then :
4491  $as_echo_n "(cached) " >&6
4492else
4493  if test -z "$GREP"; then
4494  ac_path_GREP_found=false
4495  # Loop through the user's path and test for each of PROGNAME-LIST
4496  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4498do
4499  IFS=$as_save_IFS
4500  test -z "$as_dir" && as_dir=.
4501    for ac_prog in grep ggrep; do
4502    for ac_exec_ext in '' $ac_executable_extensions; do
4503      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4504      as_fn_executable_p "$ac_path_GREP" || continue
4505# Check for GNU ac_path_GREP and select it if it is found.
4506  # Check for GNU $ac_path_GREP
4507case `"$ac_path_GREP" --version 2>&1` in
4508*GNU*)
4509  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4510*)
4511  ac_count=0
4512  $as_echo_n 0123456789 >"conftest.in"
4513  while :
4514  do
4515    cat "conftest.in" "conftest.in" >"conftest.tmp"
4516    mv "conftest.tmp" "conftest.in"
4517    cp "conftest.in" "conftest.nl"
4518    $as_echo 'GREP' >> "conftest.nl"
4519    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4520    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4521    as_fn_arith $ac_count + 1 && ac_count=$as_val
4522    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4523      # Best one so far, save it but keep looking for a better one
4524      ac_cv_path_GREP="$ac_path_GREP"
4525      ac_path_GREP_max=$ac_count
4526    fi
4527    # 10*(2^10) chars as input seems more than enough
4528    test $ac_count -gt 10 && break
4529  done
4530  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4531esac
4532
4533      $ac_path_GREP_found && break 3
4534    done
4535  done
4536  done
4537IFS=$as_save_IFS
4538  if test -z "$ac_cv_path_GREP"; then
4539    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4540  fi
4541else
4542  ac_cv_path_GREP=$GREP
4543fi
4544
4545fi
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4547$as_echo "$ac_cv_path_GREP" >&6; }
4548 GREP="$ac_cv_path_GREP"
4549
4550
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4552$as_echo_n "checking for egrep... " >&6; }
4553if ${ac_cv_path_EGREP+:} false; then :
4554  $as_echo_n "(cached) " >&6
4555else
4556  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4557   then ac_cv_path_EGREP="$GREP -E"
4558   else
4559     if test -z "$EGREP"; then
4560  ac_path_EGREP_found=false
4561  # Loop through the user's path and test for each of PROGNAME-LIST
4562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4564do
4565  IFS=$as_save_IFS
4566  test -z "$as_dir" && as_dir=.
4567    for ac_prog in egrep; do
4568    for ac_exec_ext in '' $ac_executable_extensions; do
4569      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4570      as_fn_executable_p "$ac_path_EGREP" || continue
4571# Check for GNU ac_path_EGREP and select it if it is found.
4572  # Check for GNU $ac_path_EGREP
4573case `"$ac_path_EGREP" --version 2>&1` in
4574*GNU*)
4575  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4576*)
4577  ac_count=0
4578  $as_echo_n 0123456789 >"conftest.in"
4579  while :
4580  do
4581    cat "conftest.in" "conftest.in" >"conftest.tmp"
4582    mv "conftest.tmp" "conftest.in"
4583    cp "conftest.in" "conftest.nl"
4584    $as_echo 'EGREP' >> "conftest.nl"
4585    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587    as_fn_arith $ac_count + 1 && ac_count=$as_val
4588    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4589      # Best one so far, save it but keep looking for a better one
4590      ac_cv_path_EGREP="$ac_path_EGREP"
4591      ac_path_EGREP_max=$ac_count
4592    fi
4593    # 10*(2^10) chars as input seems more than enough
4594    test $ac_count -gt 10 && break
4595  done
4596  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597esac
4598
4599      $ac_path_EGREP_found && break 3
4600    done
4601  done
4602  done
4603IFS=$as_save_IFS
4604  if test -z "$ac_cv_path_EGREP"; then
4605    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4606  fi
4607else
4608  ac_cv_path_EGREP=$EGREP
4609fi
4610
4611   fi
4612fi
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4614$as_echo "$ac_cv_path_EGREP" >&6; }
4615 EGREP="$ac_cv_path_EGREP"
4616
4617
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4619$as_echo_n "checking for fgrep... " >&6; }
4620if ${ac_cv_path_FGREP+:} false; then :
4621  $as_echo_n "(cached) " >&6
4622else
4623  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4624   then ac_cv_path_FGREP="$GREP -F"
4625   else
4626     if test -z "$FGREP"; then
4627  ac_path_FGREP_found=false
4628  # Loop through the user's path and test for each of PROGNAME-LIST
4629  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4631do
4632  IFS=$as_save_IFS
4633  test -z "$as_dir" && as_dir=.
4634    for ac_prog in fgrep; do
4635    for ac_exec_ext in '' $ac_executable_extensions; do
4636      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4637      as_fn_executable_p "$ac_path_FGREP" || continue
4638# Check for GNU ac_path_FGREP and select it if it is found.
4639  # Check for GNU $ac_path_FGREP
4640case `"$ac_path_FGREP" --version 2>&1` in
4641*GNU*)
4642  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4643*)
4644  ac_count=0
4645  $as_echo_n 0123456789 >"conftest.in"
4646  while :
4647  do
4648    cat "conftest.in" "conftest.in" >"conftest.tmp"
4649    mv "conftest.tmp" "conftest.in"
4650    cp "conftest.in" "conftest.nl"
4651    $as_echo 'FGREP' >> "conftest.nl"
4652    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654    as_fn_arith $ac_count + 1 && ac_count=$as_val
4655    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4656      # Best one so far, save it but keep looking for a better one
4657      ac_cv_path_FGREP="$ac_path_FGREP"
4658      ac_path_FGREP_max=$ac_count
4659    fi
4660    # 10*(2^10) chars as input seems more than enough
4661    test $ac_count -gt 10 && break
4662  done
4663  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664esac
4665
4666      $ac_path_FGREP_found && break 3
4667    done
4668  done
4669  done
4670IFS=$as_save_IFS
4671  if test -z "$ac_cv_path_FGREP"; then
4672    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4673  fi
4674else
4675  ac_cv_path_FGREP=$FGREP
4676fi
4677
4678   fi
4679fi
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4681$as_echo "$ac_cv_path_FGREP" >&6; }
4682 FGREP="$ac_cv_path_FGREP"
4683
4684
4685test -z "$GREP" && GREP=grep
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705# Check whether --with-gnu-ld was given.
4706if test "${with_gnu_ld+set}" = set; then :
4707  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4708else
4709  with_gnu_ld=no
4710fi
4711
4712ac_prog=ld
4713if test yes = "$GCC"; then
4714  # Check if gcc -print-prog-name=ld gives a path.
4715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4716$as_echo_n "checking for ld used by $CC... " >&6; }
4717  case $host in
4718  *-*-mingw*)
4719    # gcc leaves a trailing carriage return, which upsets mingw
4720    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4721  *)
4722    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4723  esac
4724  case $ac_prog in
4725    # Accept absolute paths.
4726    [\\/]* | ?:[\\/]*)
4727      re_direlt='/[^/][^/]*/\.\./'
4728      # Canonicalize the pathname of ld
4729      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4730      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4731	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4732      done
4733      test -z "$LD" && LD=$ac_prog
4734      ;;
4735  "")
4736    # If it fails, then pretend we aren't using GCC.
4737    ac_prog=ld
4738    ;;
4739  *)
4740    # If it is relative, then search for the first ld in PATH.
4741    with_gnu_ld=unknown
4742    ;;
4743  esac
4744elif test yes = "$with_gnu_ld"; then
4745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4746$as_echo_n "checking for GNU ld... " >&6; }
4747else
4748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4749$as_echo_n "checking for non-GNU ld... " >&6; }
4750fi
4751if ${lt_cv_path_LD+:} false; then :
4752  $as_echo_n "(cached) " >&6
4753else
4754  if test -z "$LD"; then
4755  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4756  for ac_dir in $PATH; do
4757    IFS=$lt_save_ifs
4758    test -z "$ac_dir" && ac_dir=.
4759    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4760      lt_cv_path_LD=$ac_dir/$ac_prog
4761      # Check to see if the program is GNU ld.  I'd rather use --version,
4762      # but apparently some variants of GNU ld only accept -v.
4763      # Break only if it was the GNU/non-GNU ld that we prefer.
4764      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4765      *GNU* | *'with BFD'*)
4766	test no != "$with_gnu_ld" && break
4767	;;
4768      *)
4769	test yes != "$with_gnu_ld" && break
4770	;;
4771      esac
4772    fi
4773  done
4774  IFS=$lt_save_ifs
4775else
4776  lt_cv_path_LD=$LD # Let the user override the test with a path.
4777fi
4778fi
4779
4780LD=$lt_cv_path_LD
4781if test -n "$LD"; then
4782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4783$as_echo "$LD" >&6; }
4784else
4785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786$as_echo "no" >&6; }
4787fi
4788test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4790$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4791if ${lt_cv_prog_gnu_ld+:} false; then :
4792  $as_echo_n "(cached) " >&6
4793else
4794  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4795case `$LD -v 2>&1 </dev/null` in
4796*GNU* | *'with BFD'*)
4797  lt_cv_prog_gnu_ld=yes
4798  ;;
4799*)
4800  lt_cv_prog_gnu_ld=no
4801  ;;
4802esac
4803fi
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4805$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4806with_gnu_ld=$lt_cv_prog_gnu_ld
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4817$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4818if ${lt_cv_path_NM+:} false; then :
4819  $as_echo_n "(cached) " >&6
4820else
4821  if test -n "$NM"; then
4822  # Let the user override the test.
4823  lt_cv_path_NM=$NM
4824else
4825  lt_nm_to_check=${ac_tool_prefix}nm
4826  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4827    lt_nm_to_check="$lt_nm_to_check nm"
4828  fi
4829  for lt_tmp_nm in $lt_nm_to_check; do
4830    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4831    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4832      IFS=$lt_save_ifs
4833      test -z "$ac_dir" && ac_dir=.
4834      tmp_nm=$ac_dir/$lt_tmp_nm
4835      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4836	# Check to see if the nm accepts a BSD-compat flag.
4837	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4838	#   nm: unknown option "B" ignored
4839	# Tru64's nm complains that /dev/null is an invalid object file
4840	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4841	case $build_os in
4842	mingw*) lt_bad_file=conftest.nm/nofile ;;
4843	*) lt_bad_file=/dev/null ;;
4844	esac
4845	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4846	*$lt_bad_file* | *'Invalid file or object type'*)
4847	  lt_cv_path_NM="$tmp_nm -B"
4848	  break 2
4849	  ;;
4850	*)
4851	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4852	  */dev/null*)
4853	    lt_cv_path_NM="$tmp_nm -p"
4854	    break 2
4855	    ;;
4856	  *)
4857	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4858	    continue # so that we can try to find one that supports BSD flags
4859	    ;;
4860	  esac
4861	  ;;
4862	esac
4863      fi
4864    done
4865    IFS=$lt_save_ifs
4866  done
4867  : ${lt_cv_path_NM=no}
4868fi
4869fi
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4871$as_echo "$lt_cv_path_NM" >&6; }
4872if test no != "$lt_cv_path_NM"; then
4873  NM=$lt_cv_path_NM
4874else
4875  # Didn't find any BSD compatible name lister, look for dumpbin.
4876  if test -n "$DUMPBIN"; then :
4877    # Let the user override the test.
4878  else
4879    if test -n "$ac_tool_prefix"; then
4880  for ac_prog in dumpbin "link -dump"
4881  do
4882    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4883set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885$as_echo_n "checking for $ac_word... " >&6; }
4886if ${ac_cv_prog_DUMPBIN+:} false; then :
4887  $as_echo_n "(cached) " >&6
4888else
4889  if test -n "$DUMPBIN"; then
4890  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4891else
4892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893for as_dir in $PATH
4894do
4895  IFS=$as_save_IFS
4896  test -z "$as_dir" && as_dir=.
4897    for ac_exec_ext in '' $ac_executable_extensions; do
4898  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901    break 2
4902  fi
4903done
4904  done
4905IFS=$as_save_IFS
4906
4907fi
4908fi
4909DUMPBIN=$ac_cv_prog_DUMPBIN
4910if test -n "$DUMPBIN"; then
4911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4912$as_echo "$DUMPBIN" >&6; }
4913else
4914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915$as_echo "no" >&6; }
4916fi
4917
4918
4919    test -n "$DUMPBIN" && break
4920  done
4921fi
4922if test -z "$DUMPBIN"; then
4923  ac_ct_DUMPBIN=$DUMPBIN
4924  for ac_prog in dumpbin "link -dump"
4925do
4926  # Extract the first word of "$ac_prog", so it can be a program name with args.
4927set dummy $ac_prog; ac_word=$2
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929$as_echo_n "checking for $ac_word... " >&6; }
4930if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4931  $as_echo_n "(cached) " >&6
4932else
4933  if test -n "$ac_ct_DUMPBIN"; then
4934  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4935else
4936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937for as_dir in $PATH
4938do
4939  IFS=$as_save_IFS
4940  test -z "$as_dir" && as_dir=.
4941    for ac_exec_ext in '' $ac_executable_extensions; do
4942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4943    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945    break 2
4946  fi
4947done
4948  done
4949IFS=$as_save_IFS
4950
4951fi
4952fi
4953ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4954if test -n "$ac_ct_DUMPBIN"; then
4955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4956$as_echo "$ac_ct_DUMPBIN" >&6; }
4957else
4958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959$as_echo "no" >&6; }
4960fi
4961
4962
4963  test -n "$ac_ct_DUMPBIN" && break
4964done
4965
4966  if test "x$ac_ct_DUMPBIN" = x; then
4967    DUMPBIN=":"
4968  else
4969    case $cross_compiling:$ac_tool_warned in
4970yes:)
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4973ac_tool_warned=yes ;;
4974esac
4975    DUMPBIN=$ac_ct_DUMPBIN
4976  fi
4977fi
4978
4979    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4980    *COFF*)
4981      DUMPBIN="$DUMPBIN -symbols -headers"
4982      ;;
4983    *)
4984      DUMPBIN=:
4985      ;;
4986    esac
4987  fi
4988
4989  if test : != "$DUMPBIN"; then
4990    NM=$DUMPBIN
4991  fi
4992fi
4993test -z "$NM" && NM=nm
4994
4995
4996
4997
4998
4999
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5001$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5002if ${lt_cv_nm_interface+:} false; then :
5003  $as_echo_n "(cached) " >&6
5004else
5005  lt_cv_nm_interface="BSD nm"
5006  echo "int some_variable = 0;" > conftest.$ac_ext
5007  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5008  (eval "$ac_compile" 2>conftest.err)
5009  cat conftest.err >&5
5010  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5011  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5012  cat conftest.err >&5
5013  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5014  cat conftest.out >&5
5015  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5016    lt_cv_nm_interface="MS dumpbin"
5017  fi
5018  rm -f conftest*
5019fi
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5021$as_echo "$lt_cv_nm_interface" >&6; }
5022
5023# find the maximum length of command line arguments
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5025$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5026if ${lt_cv_sys_max_cmd_len+:} false; then :
5027  $as_echo_n "(cached) " >&6
5028else
5029    i=0
5030  teststring=ABCD
5031
5032  case $build_os in
5033  msdosdjgpp*)
5034    # On DJGPP, this test can blow up pretty badly due to problems in libc
5035    # (any single argument exceeding 2000 bytes causes a buffer overrun
5036    # during glob expansion).  Even if it were fixed, the result of this
5037    # check would be larger than it should be.
5038    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5039    ;;
5040
5041  gnu*)
5042    # Under GNU Hurd, this test is not required because there is
5043    # no limit to the length of command line arguments.
5044    # Libtool will interpret -1 as no limit whatsoever
5045    lt_cv_sys_max_cmd_len=-1;
5046    ;;
5047
5048  cygwin* | mingw* | cegcc*)
5049    # On Win9x/ME, this test blows up -- it succeeds, but takes
5050    # about 5 minutes as the teststring grows exponentially.
5051    # Worse, since 9x/ME are not pre-emptively multitasking,
5052    # you end up with a "frozen" computer, even though with patience
5053    # the test eventually succeeds (with a max line length of 256k).
5054    # Instead, let's just punt: use the minimum linelength reported by
5055    # all of the supported platforms: 8192 (on NT/2K/XP).
5056    lt_cv_sys_max_cmd_len=8192;
5057    ;;
5058
5059  mint*)
5060    # On MiNT this can take a long time and run out of memory.
5061    lt_cv_sys_max_cmd_len=8192;
5062    ;;
5063
5064  amigaos*)
5065    # On AmigaOS with pdksh, this test takes hours, literally.
5066    # So we just punt and use a minimum line length of 8192.
5067    lt_cv_sys_max_cmd_len=8192;
5068    ;;
5069
5070  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5071    # This has been around since 386BSD, at least.  Likely further.
5072    if test -x /sbin/sysctl; then
5073      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5074    elif test -x /usr/sbin/sysctl; then
5075      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5076    else
5077      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5078    fi
5079    # And add a safety zone
5080    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5081    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5082    ;;
5083
5084  interix*)
5085    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5086    lt_cv_sys_max_cmd_len=196608
5087    ;;
5088
5089  os2*)
5090    # The test takes a long time on OS/2.
5091    lt_cv_sys_max_cmd_len=8192
5092    ;;
5093
5094  osf*)
5095    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5096    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5097    # nice to cause kernel panics so lets avoid the loop below.
5098    # First set a reasonable default.
5099    lt_cv_sys_max_cmd_len=16384
5100    #
5101    if test -x /sbin/sysconfig; then
5102      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5103        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5104      esac
5105    fi
5106    ;;
5107  sco3.2v5*)
5108    lt_cv_sys_max_cmd_len=102400
5109    ;;
5110  sysv5* | sco5v6* | sysv4.2uw2*)
5111    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5112    if test -n "$kargmax"; then
5113      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5114    else
5115      lt_cv_sys_max_cmd_len=32768
5116    fi
5117    ;;
5118  *)
5119    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5120    if test -n "$lt_cv_sys_max_cmd_len" && \
5121       test undefined != "$lt_cv_sys_max_cmd_len"; then
5122      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5123      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5124    else
5125      # Make teststring a little bigger before we do anything with it.
5126      # a 1K string should be a reasonable start.
5127      for i in 1 2 3 4 5 6 7 8; do
5128        teststring=$teststring$teststring
5129      done
5130      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5131      # If test is not a shell built-in, we'll probably end up computing a
5132      # maximum length that is only half of the actual maximum length, but
5133      # we can't tell.
5134      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5135	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5136	      test 17 != "$i" # 1/2 MB should be enough
5137      do
5138        i=`expr $i + 1`
5139        teststring=$teststring$teststring
5140      done
5141      # Only check the string length outside the loop.
5142      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5143      teststring=
5144      # Add a significant safety factor because C++ compilers can tack on
5145      # massive amounts of additional arguments before passing them to the
5146      # linker.  It appears as though 1/2 is a usable value.
5147      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5148    fi
5149    ;;
5150  esac
5151
5152fi
5153
5154if test -n "$lt_cv_sys_max_cmd_len"; then
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5156$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5157else
5158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5159$as_echo "none" >&6; }
5160fi
5161max_cmd_len=$lt_cv_sys_max_cmd_len
5162
5163
5164
5165
5166
5167
5168: ${CP="cp -f"}
5169: ${MV="mv -f"}
5170: ${RM="rm -f"}
5171
5172if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5173  lt_unset=unset
5174else
5175  lt_unset=false
5176fi
5177
5178
5179
5180
5181
5182# test EBCDIC or ASCII
5183case `echo X|tr X '\101'` in
5184 A) # ASCII based system
5185    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5186  lt_SP2NL='tr \040 \012'
5187  lt_NL2SP='tr \015\012 \040\040'
5188  ;;
5189 *) # EBCDIC based system
5190  lt_SP2NL='tr \100 \n'
5191  lt_NL2SP='tr \r\n \100\100'
5192  ;;
5193esac
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5204$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5205if ${lt_cv_to_host_file_cmd+:} false; then :
5206  $as_echo_n "(cached) " >&6
5207else
5208  case $host in
5209  *-*-mingw* )
5210    case $build in
5211      *-*-mingw* ) # actually msys
5212        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5213        ;;
5214      *-*-cygwin* )
5215        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5216        ;;
5217      * ) # otherwise, assume *nix
5218        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5219        ;;
5220    esac
5221    ;;
5222  *-*-cygwin* )
5223    case $build in
5224      *-*-mingw* ) # actually msys
5225        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5226        ;;
5227      *-*-cygwin* )
5228        lt_cv_to_host_file_cmd=func_convert_file_noop
5229        ;;
5230      * ) # otherwise, assume *nix
5231        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5232        ;;
5233    esac
5234    ;;
5235  * ) # unhandled hosts (and "normal" native builds)
5236    lt_cv_to_host_file_cmd=func_convert_file_noop
5237    ;;
5238esac
5239
5240fi
5241
5242to_host_file_cmd=$lt_cv_to_host_file_cmd
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5244$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5245
5246
5247
5248
5249
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5251$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5252if ${lt_cv_to_tool_file_cmd+:} false; then :
5253  $as_echo_n "(cached) " >&6
5254else
5255  #assume ordinary cross tools, or native build.
5256lt_cv_to_tool_file_cmd=func_convert_file_noop
5257case $host in
5258  *-*-mingw* )
5259    case $build in
5260      *-*-mingw* ) # actually msys
5261        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5262        ;;
5263    esac
5264    ;;
5265esac
5266
5267fi
5268
5269to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5271$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5272
5273
5274
5275
5276
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5278$as_echo_n "checking for $LD option to reload object files... " >&6; }
5279if ${lt_cv_ld_reload_flag+:} false; then :
5280  $as_echo_n "(cached) " >&6
5281else
5282  lt_cv_ld_reload_flag='-r'
5283fi
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5285$as_echo "$lt_cv_ld_reload_flag" >&6; }
5286reload_flag=$lt_cv_ld_reload_flag
5287case $reload_flag in
5288"" | " "*) ;;
5289*) reload_flag=" $reload_flag" ;;
5290esac
5291reload_cmds='$LD$reload_flag -o $output$reload_objs'
5292case $host_os in
5293  cygwin* | mingw* | pw32* | cegcc*)
5294    if test yes != "$GCC"; then
5295      reload_cmds=false
5296    fi
5297    ;;
5298  darwin*)
5299    if test yes = "$GCC"; then
5300      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5301    else
5302      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5303    fi
5304    ;;
5305esac
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315if test -n "$ac_tool_prefix"; then
5316  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5317set dummy ${ac_tool_prefix}objdump; ac_word=$2
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319$as_echo_n "checking for $ac_word... " >&6; }
5320if ${ac_cv_prog_OBJDUMP+:} false; then :
5321  $as_echo_n "(cached) " >&6
5322else
5323  if test -n "$OBJDUMP"; then
5324  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5325else
5326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327for as_dir in $PATH
5328do
5329  IFS=$as_save_IFS
5330  test -z "$as_dir" && as_dir=.
5331    for ac_exec_ext in '' $ac_executable_extensions; do
5332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335    break 2
5336  fi
5337done
5338  done
5339IFS=$as_save_IFS
5340
5341fi
5342fi
5343OBJDUMP=$ac_cv_prog_OBJDUMP
5344if test -n "$OBJDUMP"; then
5345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5346$as_echo "$OBJDUMP" >&6; }
5347else
5348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349$as_echo "no" >&6; }
5350fi
5351
5352
5353fi
5354if test -z "$ac_cv_prog_OBJDUMP"; then
5355  ac_ct_OBJDUMP=$OBJDUMP
5356  # Extract the first word of "objdump", so it can be a program name with args.
5357set dummy objdump; ac_word=$2
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359$as_echo_n "checking for $ac_word... " >&6; }
5360if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363  if test -n "$ac_ct_OBJDUMP"; then
5364  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5365else
5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369  IFS=$as_save_IFS
5370  test -z "$as_dir" && as_dir=.
5371    for ac_exec_ext in '' $ac_executable_extensions; do
5372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375    break 2
5376  fi
5377done
5378  done
5379IFS=$as_save_IFS
5380
5381fi
5382fi
5383ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5384if test -n "$ac_ct_OBJDUMP"; then
5385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5386$as_echo "$ac_ct_OBJDUMP" >&6; }
5387else
5388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389$as_echo "no" >&6; }
5390fi
5391
5392  if test "x$ac_ct_OBJDUMP" = x; then
5393    OBJDUMP="false"
5394  else
5395    case $cross_compiling:$ac_tool_warned in
5396yes:)
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5399ac_tool_warned=yes ;;
5400esac
5401    OBJDUMP=$ac_ct_OBJDUMP
5402  fi
5403else
5404  OBJDUMP="$ac_cv_prog_OBJDUMP"
5405fi
5406
5407test -z "$OBJDUMP" && OBJDUMP=objdump
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5418$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5419if ${lt_cv_deplibs_check_method+:} false; then :
5420  $as_echo_n "(cached) " >&6
5421else
5422  lt_cv_file_magic_cmd='$MAGIC_CMD'
5423lt_cv_file_magic_test_file=
5424lt_cv_deplibs_check_method='unknown'
5425# Need to set the preceding variable on all platforms that support
5426# interlibrary dependencies.
5427# 'none' -- dependencies not supported.
5428# 'unknown' -- same as none, but documents that we really don't know.
5429# 'pass_all' -- all dependencies passed with no checks.
5430# 'test_compile' -- check by making test program.
5431# 'file_magic [[regex]]' -- check by looking for files in library path
5432# that responds to the $file_magic_cmd with a given extended regex.
5433# If you have 'file' or equivalent on your system and you're not sure
5434# whether 'pass_all' will *always* work, you probably want this one.
5435
5436case $host_os in
5437aix[4-9]*)
5438  lt_cv_deplibs_check_method=pass_all
5439  ;;
5440
5441beos*)
5442  lt_cv_deplibs_check_method=pass_all
5443  ;;
5444
5445bsdi[45]*)
5446  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5447  lt_cv_file_magic_cmd='/usr/bin/file -L'
5448  lt_cv_file_magic_test_file=/shlib/libc.so
5449  ;;
5450
5451cygwin*)
5452  # func_win32_libid is a shell function defined in ltmain.sh
5453  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5454  lt_cv_file_magic_cmd='func_win32_libid'
5455  ;;
5456
5457mingw* | pw32*)
5458  # Base MSYS/MinGW do not provide the 'file' command needed by
5459  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5460  # unless we find 'file', for example because we are cross-compiling.
5461  if ( file / ) >/dev/null 2>&1; then
5462    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5463    lt_cv_file_magic_cmd='func_win32_libid'
5464  else
5465    # Keep this pattern in sync with the one in func_win32_libid.
5466    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5467    lt_cv_file_magic_cmd='$OBJDUMP -f'
5468  fi
5469  ;;
5470
5471cegcc*)
5472  # use the weaker test based on 'objdump'. See mingw*.
5473  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5474  lt_cv_file_magic_cmd='$OBJDUMP -f'
5475  ;;
5476
5477darwin* | rhapsody*)
5478  lt_cv_deplibs_check_method=pass_all
5479  ;;
5480
5481freebsd* | dragonfly*)
5482  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5483    case $host_cpu in
5484    i*86 )
5485      # Not sure whether the presence of OpenBSD here was a mistake.
5486      # Let's accept both of them until this is cleared up.
5487      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5488      lt_cv_file_magic_cmd=/usr/bin/file
5489      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5490      ;;
5491    esac
5492  else
5493    lt_cv_deplibs_check_method=pass_all
5494  fi
5495  ;;
5496
5497haiku*)
5498  lt_cv_deplibs_check_method=pass_all
5499  ;;
5500
5501hpux10.20* | hpux11*)
5502  lt_cv_file_magic_cmd=/usr/bin/file
5503  case $host_cpu in
5504  ia64*)
5505    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5506    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5507    ;;
5508  hppa*64*)
5509    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]'
5510    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5511    ;;
5512  *)
5513    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5514    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5515    ;;
5516  esac
5517  ;;
5518
5519interix[3-9]*)
5520  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5521  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5522  ;;
5523
5524irix5* | irix6* | nonstopux*)
5525  case $LD in
5526  *-32|*"-32 ") libmagic=32-bit;;
5527  *-n32|*"-n32 ") libmagic=N32;;
5528  *-64|*"-64 ") libmagic=64-bit;;
5529  *) libmagic=never-match;;
5530  esac
5531  lt_cv_deplibs_check_method=pass_all
5532  ;;
5533
5534# This must be glibc/ELF.
5535linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5536  lt_cv_deplibs_check_method=pass_all
5537  ;;
5538
5539netbsd*)
5540  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5541    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5542  else
5543    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5544  fi
5545  ;;
5546
5547newos6*)
5548  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5549  lt_cv_file_magic_cmd=/usr/bin/file
5550  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5551  ;;
5552
5553*nto* | *qnx*)
5554  lt_cv_deplibs_check_method=pass_all
5555  ;;
5556
5557openbsd* | bitrig*)
5558  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5559    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5560  else
5561    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5562  fi
5563  ;;
5564
5565osf3* | osf4* | osf5*)
5566  lt_cv_deplibs_check_method=pass_all
5567  ;;
5568
5569rdos*)
5570  lt_cv_deplibs_check_method=pass_all
5571  ;;
5572
5573solaris*)
5574  lt_cv_deplibs_check_method=pass_all
5575  ;;
5576
5577sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5578  lt_cv_deplibs_check_method=pass_all
5579  ;;
5580
5581sysv4 | sysv4.3*)
5582  case $host_vendor in
5583  motorola)
5584    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]'
5585    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5586    ;;
5587  ncr)
5588    lt_cv_deplibs_check_method=pass_all
5589    ;;
5590  sequent)
5591    lt_cv_file_magic_cmd='/bin/file'
5592    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5593    ;;
5594  sni)
5595    lt_cv_file_magic_cmd='/bin/file'
5596    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5597    lt_cv_file_magic_test_file=/lib/libc.so
5598    ;;
5599  siemens)
5600    lt_cv_deplibs_check_method=pass_all
5601    ;;
5602  pc)
5603    lt_cv_deplibs_check_method=pass_all
5604    ;;
5605  esac
5606  ;;
5607
5608tpf*)
5609  lt_cv_deplibs_check_method=pass_all
5610  ;;
5611os2*)
5612  lt_cv_deplibs_check_method=pass_all
5613  ;;
5614esac
5615
5616fi
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5618$as_echo "$lt_cv_deplibs_check_method" >&6; }
5619
5620file_magic_glob=
5621want_nocaseglob=no
5622if test "$build" = "$host"; then
5623  case $host_os in
5624  mingw* | pw32*)
5625    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5626      want_nocaseglob=yes
5627    else
5628      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5629    fi
5630    ;;
5631  esac
5632fi
5633
5634file_magic_cmd=$lt_cv_file_magic_cmd
5635deplibs_check_method=$lt_cv_deplibs_check_method
5636test -z "$deplibs_check_method" && deplibs_check_method=unknown
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659if test -n "$ac_tool_prefix"; then
5660  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5661set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663$as_echo_n "checking for $ac_word... " >&6; }
5664if ${ac_cv_prog_DLLTOOL+:} false; then :
5665  $as_echo_n "(cached) " >&6
5666else
5667  if test -n "$DLLTOOL"; then
5668  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5669else
5670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671for as_dir in $PATH
5672do
5673  IFS=$as_save_IFS
5674  test -z "$as_dir" && as_dir=.
5675    for ac_exec_ext in '' $ac_executable_extensions; do
5676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679    break 2
5680  fi
5681done
5682  done
5683IFS=$as_save_IFS
5684
5685fi
5686fi
5687DLLTOOL=$ac_cv_prog_DLLTOOL
5688if test -n "$DLLTOOL"; then
5689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5690$as_echo "$DLLTOOL" >&6; }
5691else
5692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693$as_echo "no" >&6; }
5694fi
5695
5696
5697fi
5698if test -z "$ac_cv_prog_DLLTOOL"; then
5699  ac_ct_DLLTOOL=$DLLTOOL
5700  # Extract the first word of "dlltool", so it can be a program name with args.
5701set dummy dlltool; ac_word=$2
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703$as_echo_n "checking for $ac_word... " >&6; }
5704if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5705  $as_echo_n "(cached) " >&6
5706else
5707  if test -n "$ac_ct_DLLTOOL"; then
5708  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5709else
5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713  IFS=$as_save_IFS
5714  test -z "$as_dir" && as_dir=.
5715    for ac_exec_ext in '' $ac_executable_extensions; do
5716  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719    break 2
5720  fi
5721done
5722  done
5723IFS=$as_save_IFS
5724
5725fi
5726fi
5727ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5728if test -n "$ac_ct_DLLTOOL"; then
5729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5730$as_echo "$ac_ct_DLLTOOL" >&6; }
5731else
5732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733$as_echo "no" >&6; }
5734fi
5735
5736  if test "x$ac_ct_DLLTOOL" = x; then
5737    DLLTOOL="false"
5738  else
5739    case $cross_compiling:$ac_tool_warned in
5740yes:)
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5743ac_tool_warned=yes ;;
5744esac
5745    DLLTOOL=$ac_ct_DLLTOOL
5746  fi
5747else
5748  DLLTOOL="$ac_cv_prog_DLLTOOL"
5749fi
5750
5751test -z "$DLLTOOL" && DLLTOOL=dlltool
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5763$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5764if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5765  $as_echo_n "(cached) " >&6
5766else
5767  lt_cv_sharedlib_from_linklib_cmd='unknown'
5768
5769case $host_os in
5770cygwin* | mingw* | pw32* | cegcc*)
5771  # two different shell functions defined in ltmain.sh;
5772  # decide which one to use based on capabilities of $DLLTOOL
5773  case `$DLLTOOL --help 2>&1` in
5774  *--identify-strict*)
5775    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5776    ;;
5777  *)
5778    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5779    ;;
5780  esac
5781  ;;
5782*)
5783  # fallback: assume linklib IS sharedlib
5784  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5785  ;;
5786esac
5787
5788fi
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5790$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5791sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5792test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5793
5794
5795
5796
5797
5798
5799
5800
5801if test -n "$ac_tool_prefix"; then
5802  for ac_prog in ar
5803  do
5804    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5805set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807$as_echo_n "checking for $ac_word... " >&6; }
5808if ${ac_cv_prog_AR+:} false; then :
5809  $as_echo_n "(cached) " >&6
5810else
5811  if test -n "$AR"; then
5812  ac_cv_prog_AR="$AR" # Let the user override the test.
5813else
5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817  IFS=$as_save_IFS
5818  test -z "$as_dir" && as_dir=.
5819    for ac_exec_ext in '' $ac_executable_extensions; do
5820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823    break 2
5824  fi
5825done
5826  done
5827IFS=$as_save_IFS
5828
5829fi
5830fi
5831AR=$ac_cv_prog_AR
5832if test -n "$AR"; then
5833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5834$as_echo "$AR" >&6; }
5835else
5836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837$as_echo "no" >&6; }
5838fi
5839
5840
5841    test -n "$AR" && break
5842  done
5843fi
5844if test -z "$AR"; then
5845  ac_ct_AR=$AR
5846  for ac_prog in ar
5847do
5848  # Extract the first word of "$ac_prog", so it can be a program name with args.
5849set dummy $ac_prog; ac_word=$2
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851$as_echo_n "checking for $ac_word... " >&6; }
5852if ${ac_cv_prog_ac_ct_AR+:} false; then :
5853  $as_echo_n "(cached) " >&6
5854else
5855  if test -n "$ac_ct_AR"; then
5856  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861  IFS=$as_save_IFS
5862  test -z "$as_dir" && as_dir=.
5863    for ac_exec_ext in '' $ac_executable_extensions; do
5864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865    ac_cv_prog_ac_ct_AR="$ac_prog"
5866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867    break 2
5868  fi
5869done
5870  done
5871IFS=$as_save_IFS
5872
5873fi
5874fi
5875ac_ct_AR=$ac_cv_prog_ac_ct_AR
5876if test -n "$ac_ct_AR"; then
5877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5878$as_echo "$ac_ct_AR" >&6; }
5879else
5880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881$as_echo "no" >&6; }
5882fi
5883
5884
5885  test -n "$ac_ct_AR" && break
5886done
5887
5888  if test "x$ac_ct_AR" = x; then
5889    AR="false"
5890  else
5891    case $cross_compiling:$ac_tool_warned in
5892yes:)
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5895ac_tool_warned=yes ;;
5896esac
5897    AR=$ac_ct_AR
5898  fi
5899fi
5900
5901: ${AR=ar}
5902: ${AR_FLAGS=cru}
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5915$as_echo_n "checking for archiver @FILE support... " >&6; }
5916if ${lt_cv_ar_at_file+:} false; then :
5917  $as_echo_n "(cached) " >&6
5918else
5919  lt_cv_ar_at_file=no
5920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921/* end confdefs.h.  */
5922
5923int
5924main ()
5925{
5926
5927  ;
5928  return 0;
5929}
5930_ACEOF
5931if ac_fn_c_try_compile "$LINENO"; then :
5932  echo conftest.$ac_objext > conftest.lst
5933      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5934      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5935  (eval $lt_ar_try) 2>&5
5936  ac_status=$?
5937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5938  test $ac_status = 0; }
5939      if test 0 -eq "$ac_status"; then
5940	# Ensure the archiver fails upon bogus file names.
5941	rm -f conftest.$ac_objext libconftest.a
5942	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5943  (eval $lt_ar_try) 2>&5
5944  ac_status=$?
5945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5946  test $ac_status = 0; }
5947	if test 0 -ne "$ac_status"; then
5948          lt_cv_ar_at_file=@
5949        fi
5950      fi
5951      rm -f conftest.* libconftest.a
5952
5953fi
5954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955
5956fi
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5958$as_echo "$lt_cv_ar_at_file" >&6; }
5959
5960if test no = "$lt_cv_ar_at_file"; then
5961  archiver_list_spec=
5962else
5963  archiver_list_spec=$lt_cv_ar_at_file
5964fi
5965
5966
5967
5968
5969
5970
5971
5972if test -n "$ac_tool_prefix"; then
5973  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5974set dummy ${ac_tool_prefix}strip; ac_word=$2
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976$as_echo_n "checking for $ac_word... " >&6; }
5977if ${ac_cv_prog_STRIP+:} false; then :
5978  $as_echo_n "(cached) " >&6
5979else
5980  if test -n "$STRIP"; then
5981  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5982else
5983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984for as_dir in $PATH
5985do
5986  IFS=$as_save_IFS
5987  test -z "$as_dir" && as_dir=.
5988    for ac_exec_ext in '' $ac_executable_extensions; do
5989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992    break 2
5993  fi
5994done
5995  done
5996IFS=$as_save_IFS
5997
5998fi
5999fi
6000STRIP=$ac_cv_prog_STRIP
6001if test -n "$STRIP"; then
6002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6003$as_echo "$STRIP" >&6; }
6004else
6005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006$as_echo "no" >&6; }
6007fi
6008
6009
6010fi
6011if test -z "$ac_cv_prog_STRIP"; then
6012  ac_ct_STRIP=$STRIP
6013  # Extract the first word of "strip", so it can be a program name with args.
6014set dummy strip; ac_word=$2
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016$as_echo_n "checking for $ac_word... " >&6; }
6017if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6018  $as_echo_n "(cached) " >&6
6019else
6020  if test -n "$ac_ct_STRIP"; then
6021  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6022else
6023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024for as_dir in $PATH
6025do
6026  IFS=$as_save_IFS
6027  test -z "$as_dir" && as_dir=.
6028    for ac_exec_ext in '' $ac_executable_extensions; do
6029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030    ac_cv_prog_ac_ct_STRIP="strip"
6031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032    break 2
6033  fi
6034done
6035  done
6036IFS=$as_save_IFS
6037
6038fi
6039fi
6040ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6041if test -n "$ac_ct_STRIP"; then
6042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6043$as_echo "$ac_ct_STRIP" >&6; }
6044else
6045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046$as_echo "no" >&6; }
6047fi
6048
6049  if test "x$ac_ct_STRIP" = x; then
6050    STRIP=":"
6051  else
6052    case $cross_compiling:$ac_tool_warned in
6053yes:)
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6056ac_tool_warned=yes ;;
6057esac
6058    STRIP=$ac_ct_STRIP
6059  fi
6060else
6061  STRIP="$ac_cv_prog_STRIP"
6062fi
6063
6064test -z "$STRIP" && STRIP=:
6065
6066
6067
6068
6069
6070
6071if test -n "$ac_tool_prefix"; then
6072  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6073set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075$as_echo_n "checking for $ac_word... " >&6; }
6076if ${ac_cv_prog_RANLIB+:} false; then :
6077  $as_echo_n "(cached) " >&6
6078else
6079  if test -n "$RANLIB"; then
6080  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6081else
6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH
6084do
6085  IFS=$as_save_IFS
6086  test -z "$as_dir" && as_dir=.
6087    for ac_exec_ext in '' $ac_executable_extensions; do
6088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091    break 2
6092  fi
6093done
6094  done
6095IFS=$as_save_IFS
6096
6097fi
6098fi
6099RANLIB=$ac_cv_prog_RANLIB
6100if test -n "$RANLIB"; then
6101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6102$as_echo "$RANLIB" >&6; }
6103else
6104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105$as_echo "no" >&6; }
6106fi
6107
6108
6109fi
6110if test -z "$ac_cv_prog_RANLIB"; then
6111  ac_ct_RANLIB=$RANLIB
6112  # Extract the first word of "ranlib", so it can be a program name with args.
6113set dummy ranlib; ac_word=$2
6114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115$as_echo_n "checking for $ac_word... " >&6; }
6116if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6117  $as_echo_n "(cached) " >&6
6118else
6119  if test -n "$ac_ct_RANLIB"; then
6120  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6121else
6122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123for as_dir in $PATH
6124do
6125  IFS=$as_save_IFS
6126  test -z "$as_dir" && as_dir=.
6127    for ac_exec_ext in '' $ac_executable_extensions; do
6128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6129    ac_cv_prog_ac_ct_RANLIB="ranlib"
6130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131    break 2
6132  fi
6133done
6134  done
6135IFS=$as_save_IFS
6136
6137fi
6138fi
6139ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6140if test -n "$ac_ct_RANLIB"; then
6141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6142$as_echo "$ac_ct_RANLIB" >&6; }
6143else
6144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145$as_echo "no" >&6; }
6146fi
6147
6148  if test "x$ac_ct_RANLIB" = x; then
6149    RANLIB=":"
6150  else
6151    case $cross_compiling:$ac_tool_warned in
6152yes:)
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6155ac_tool_warned=yes ;;
6156esac
6157    RANLIB=$ac_ct_RANLIB
6158  fi
6159else
6160  RANLIB="$ac_cv_prog_RANLIB"
6161fi
6162
6163test -z "$RANLIB" && RANLIB=:
6164
6165
6166
6167
6168
6169
6170# Determine commands to create old-style static archives.
6171old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6172old_postinstall_cmds='chmod 644 $oldlib'
6173old_postuninstall_cmds=
6174
6175if test -n "$RANLIB"; then
6176  case $host_os in
6177  bitrig* | openbsd*)
6178    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6179    ;;
6180  *)
6181    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6182    ;;
6183  esac
6184  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6185fi
6186
6187case $host_os in
6188  darwin*)
6189    lock_old_archive_extraction=yes ;;
6190  *)
6191    lock_old_archive_extraction=no ;;
6192esac
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232# If no C compiler was specified, use CC.
6233LTCC=${LTCC-"$CC"}
6234
6235# If no C compiler flags were specified, use CFLAGS.
6236LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6237
6238# Allow CC to be a program name with arguments.
6239compiler=$CC
6240
6241
6242# Check for command to grab the raw symbol name followed by C symbol from nm.
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6244$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6245if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6246  $as_echo_n "(cached) " >&6
6247else
6248
6249# These are sane defaults that work on at least a few old systems.
6250# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6251
6252# Character class describing NM global symbol codes.
6253symcode='[BCDEGRST]'
6254
6255# Regexp to match symbols that can be accessed directly from C.
6256sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6257
6258# Define system-specific variables.
6259case $host_os in
6260aix*)
6261  symcode='[BCDT]'
6262  ;;
6263cygwin* | mingw* | pw32* | cegcc*)
6264  symcode='[ABCDGISTW]'
6265  ;;
6266hpux*)
6267  if test ia64 = "$host_cpu"; then
6268    symcode='[ABCDEGRST]'
6269  fi
6270  ;;
6271irix* | nonstopux*)
6272  symcode='[BCDEGRST]'
6273  ;;
6274osf*)
6275  symcode='[BCDEGQRST]'
6276  ;;
6277solaris*)
6278  symcode='[BDRT]'
6279  ;;
6280sco3.2v5*)
6281  symcode='[DT]'
6282  ;;
6283sysv4.2uw2*)
6284  symcode='[DT]'
6285  ;;
6286sysv5* | sco5v6* | unixware* | OpenUNIX*)
6287  symcode='[ABDT]'
6288  ;;
6289sysv4)
6290  symcode='[DFNSTU]'
6291  ;;
6292esac
6293
6294# If we're using GNU nm, then use its standard symbol codes.
6295case `$NM -V 2>&1` in
6296*GNU* | *'with BFD'*)
6297  symcode='[ABCDGIRSTW]' ;;
6298esac
6299
6300if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6301  # Gets list of data symbols to import.
6302  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6303  # Adjust the below global symbol transforms to fixup imported variables.
6304  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6305  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6306  lt_c_name_lib_hook="\
6307  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6308  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6309else
6310  # Disable hooks by default.
6311  lt_cv_sys_global_symbol_to_import=
6312  lt_cdecl_hook=
6313  lt_c_name_hook=
6314  lt_c_name_lib_hook=
6315fi
6316
6317# Transform an extracted symbol line into a proper C declaration.
6318# Some systems (esp. on ia64) link data and code symbols differently,
6319# so use this general approach.
6320lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6321$lt_cdecl_hook\
6322" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6323" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6324
6325# Transform an extracted symbol line into symbol name and symbol address
6326lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6327$lt_c_name_hook\
6328" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6329" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6330
6331# Transform an extracted symbol line into symbol name with lib prefix and
6332# symbol address.
6333lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6334$lt_c_name_lib_hook\
6335" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6336" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6337" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6338
6339# Handle CRLF in mingw tool chain
6340opt_cr=
6341case $build_os in
6342mingw*)
6343  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6344  ;;
6345esac
6346
6347# Try without a prefix underscore, then with it.
6348for ac_symprfx in "" "_"; do
6349
6350  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6351  symxfrm="\\1 $ac_symprfx\\2 \\2"
6352
6353  # Write the raw and C identifiers.
6354  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6355    # Fake it for dumpbin and say T for any non-static function,
6356    # D for any global variable and I for any imported variable.
6357    # Also find C++ and __fastcall symbols from MSVC++,
6358    # which start with @ or ?.
6359    lt_cv_sys_global_symbol_pipe="$AWK '"\
6360"     {last_section=section; section=\$ 3};"\
6361"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6362"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6363"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6364"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6365"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6366"     \$ 0!~/External *\|/{next};"\
6367"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6368"     {if(hide[section]) next};"\
6369"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6370"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6371"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6372"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6373"     ' prfx=^$ac_symprfx"
6374  else
6375    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6376  fi
6377  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6378
6379  # Check to see that the pipe works correctly.
6380  pipe_works=no
6381
6382  rm -f conftest*
6383  cat > conftest.$ac_ext <<_LT_EOF
6384#ifdef __cplusplus
6385extern "C" {
6386#endif
6387char nm_test_var;
6388void nm_test_func(void);
6389void nm_test_func(void){}
6390#ifdef __cplusplus
6391}
6392#endif
6393int main(){nm_test_var='a';nm_test_func();return(0);}
6394_LT_EOF
6395
6396  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6397  (eval $ac_compile) 2>&5
6398  ac_status=$?
6399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6400  test $ac_status = 0; }; then
6401    # Now try to grab the symbols.
6402    nlist=conftest.nm
6403    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6404  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6405  ac_status=$?
6406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407  test $ac_status = 0; } && test -s "$nlist"; then
6408      # Try sorting and uniquifying the output.
6409      if sort "$nlist" | uniq > "$nlist"T; then
6410	mv -f "$nlist"T "$nlist"
6411      else
6412	rm -f "$nlist"T
6413      fi
6414
6415      # Make sure that we snagged all the symbols we need.
6416      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6417	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6418	  cat <<_LT_EOF > conftest.$ac_ext
6419/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6420#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6421/* DATA imports from DLLs on WIN32 can't be const, because runtime
6422   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6423# define LT_DLSYM_CONST
6424#elif defined __osf__
6425/* This system does not cope well with relocations in const data.  */
6426# define LT_DLSYM_CONST
6427#else
6428# define LT_DLSYM_CONST const
6429#endif
6430
6431#ifdef __cplusplus
6432extern "C" {
6433#endif
6434
6435_LT_EOF
6436	  # Now generate the symbol file.
6437	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6438
6439	  cat <<_LT_EOF >> conftest.$ac_ext
6440
6441/* The mapping between symbol names and symbols.  */
6442LT_DLSYM_CONST struct {
6443  const char *name;
6444  void       *address;
6445}
6446lt__PROGRAM__LTX_preloaded_symbols[] =
6447{
6448  { "@PROGRAM@", (void *) 0 },
6449_LT_EOF
6450	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6451	  cat <<\_LT_EOF >> conftest.$ac_ext
6452  {0, (void *) 0}
6453};
6454
6455/* This works around a problem in FreeBSD linker */
6456#ifdef FREEBSD_WORKAROUND
6457static const void *lt_preloaded_setup() {
6458  return lt__PROGRAM__LTX_preloaded_symbols;
6459}
6460#endif
6461
6462#ifdef __cplusplus
6463}
6464#endif
6465_LT_EOF
6466	  # Now try linking the two files.
6467	  mv conftest.$ac_objext conftstm.$ac_objext
6468	  lt_globsym_save_LIBS=$LIBS
6469	  lt_globsym_save_CFLAGS=$CFLAGS
6470	  LIBS=conftstm.$ac_objext
6471	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6472	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6473  (eval $ac_link) 2>&5
6474  ac_status=$?
6475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6476  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6477	    pipe_works=yes
6478	  fi
6479	  LIBS=$lt_globsym_save_LIBS
6480	  CFLAGS=$lt_globsym_save_CFLAGS
6481	else
6482	  echo "cannot find nm_test_func in $nlist" >&5
6483	fi
6484      else
6485	echo "cannot find nm_test_var in $nlist" >&5
6486      fi
6487    else
6488      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6489    fi
6490  else
6491    echo "$progname: failed program was:" >&5
6492    cat conftest.$ac_ext >&5
6493  fi
6494  rm -rf conftest* conftst*
6495
6496  # Do not use the global_symbol_pipe unless it works.
6497  if test yes = "$pipe_works"; then
6498    break
6499  else
6500    lt_cv_sys_global_symbol_pipe=
6501  fi
6502done
6503
6504fi
6505
6506if test -z "$lt_cv_sys_global_symbol_pipe"; then
6507  lt_cv_sys_global_symbol_to_cdecl=
6508fi
6509if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6511$as_echo "failed" >&6; }
6512else
6513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6514$as_echo "ok" >&6; }
6515fi
6516
6517# Response file support.
6518if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6519  nm_file_list_spec='@'
6520elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6521  nm_file_list_spec='@'
6522fi
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6561$as_echo_n "checking for sysroot... " >&6; }
6562
6563# Check whether --with-sysroot was given.
6564if test "${with_sysroot+set}" = set; then :
6565  withval=$with_sysroot;
6566else
6567  with_sysroot=no
6568fi
6569
6570
6571lt_sysroot=
6572case $with_sysroot in #(
6573 yes)
6574   if test yes = "$GCC"; then
6575     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6576   fi
6577   ;; #(
6578 /*)
6579   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6580   ;; #(
6581 no|'')
6582   ;; #(
6583 *)
6584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6585$as_echo "$with_sysroot" >&6; }
6586   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6587   ;;
6588esac
6589
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6591$as_echo "${lt_sysroot:-no}" >&6; }
6592
6593
6594
6595
6596
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6598$as_echo_n "checking for a working dd... " >&6; }
6599if ${ac_cv_path_lt_DD+:} false; then :
6600  $as_echo_n "(cached) " >&6
6601else
6602  printf 0123456789abcdef0123456789abcdef >conftest.i
6603cat conftest.i conftest.i >conftest2.i
6604: ${lt_DD:=$DD}
6605if test -z "$lt_DD"; then
6606  ac_path_lt_DD_found=false
6607  # Loop through the user's path and test for each of PROGNAME-LIST
6608  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609for as_dir in $PATH
6610do
6611  IFS=$as_save_IFS
6612  test -z "$as_dir" && as_dir=.
6613    for ac_prog in dd; do
6614    for ac_exec_ext in '' $ac_executable_extensions; do
6615      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6616      as_fn_executable_p "$ac_path_lt_DD" || continue
6617if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6618  cmp -s conftest.i conftest.out \
6619  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6620fi
6621      $ac_path_lt_DD_found && break 3
6622    done
6623  done
6624  done
6625IFS=$as_save_IFS
6626  if test -z "$ac_cv_path_lt_DD"; then
6627    :
6628  fi
6629else
6630  ac_cv_path_lt_DD=$lt_DD
6631fi
6632
6633rm -f conftest.i conftest2.i conftest.out
6634fi
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6636$as_echo "$ac_cv_path_lt_DD" >&6; }
6637
6638
6639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6640$as_echo_n "checking how to truncate binary pipes... " >&6; }
6641if ${lt_cv_truncate_bin+:} false; then :
6642  $as_echo_n "(cached) " >&6
6643else
6644  printf 0123456789abcdef0123456789abcdef >conftest.i
6645cat conftest.i conftest.i >conftest2.i
6646lt_cv_truncate_bin=
6647if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6648  cmp -s conftest.i conftest.out \
6649  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6650fi
6651rm -f conftest.i conftest2.i conftest.out
6652test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6653fi
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6655$as_echo "$lt_cv_truncate_bin" >&6; }
6656
6657
6658
6659
6660
6661
6662
6663# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6664func_cc_basename ()
6665{
6666    for cc_temp in $*""; do
6667      case $cc_temp in
6668        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6669        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6670        \-*) ;;
6671        *) break;;
6672      esac
6673    done
6674    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6675}
6676
6677# Check whether --enable-libtool-lock was given.
6678if test "${enable_libtool_lock+set}" = set; then :
6679  enableval=$enable_libtool_lock;
6680fi
6681
6682test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6683
6684# Some flags need to be propagated to the compiler or linker for good
6685# libtool support.
6686case $host in
6687ia64-*-hpux*)
6688  # Find out what ABI is being produced by ac_compile, and set mode
6689  # options accordingly.
6690  echo 'int i;' > conftest.$ac_ext
6691  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6692  (eval $ac_compile) 2>&5
6693  ac_status=$?
6694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695  test $ac_status = 0; }; then
6696    case `/usr/bin/file conftest.$ac_objext` in
6697      *ELF-32*)
6698	HPUX_IA64_MODE=32
6699	;;
6700      *ELF-64*)
6701	HPUX_IA64_MODE=64
6702	;;
6703    esac
6704  fi
6705  rm -rf conftest*
6706  ;;
6707*-*-irix6*)
6708  # Find out what ABI is being produced by ac_compile, and set linker
6709  # options accordingly.
6710  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6711  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6712  (eval $ac_compile) 2>&5
6713  ac_status=$?
6714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6715  test $ac_status = 0; }; then
6716    if test yes = "$lt_cv_prog_gnu_ld"; then
6717      case `/usr/bin/file conftest.$ac_objext` in
6718	*32-bit*)
6719	  LD="${LD-ld} -melf32bsmip"
6720	  ;;
6721	*N32*)
6722	  LD="${LD-ld} -melf32bmipn32"
6723	  ;;
6724	*64-bit*)
6725	  LD="${LD-ld} -melf64bmip"
6726	;;
6727      esac
6728    else
6729      case `/usr/bin/file conftest.$ac_objext` in
6730	*32-bit*)
6731	  LD="${LD-ld} -32"
6732	  ;;
6733	*N32*)
6734	  LD="${LD-ld} -n32"
6735	  ;;
6736	*64-bit*)
6737	  LD="${LD-ld} -64"
6738	  ;;
6739      esac
6740    fi
6741  fi
6742  rm -rf conftest*
6743  ;;
6744
6745mips64*-*linux*)
6746  # Find out what ABI is being produced by ac_compile, and set linker
6747  # options accordingly.
6748  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6749  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750  (eval $ac_compile) 2>&5
6751  ac_status=$?
6752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753  test $ac_status = 0; }; then
6754    emul=elf
6755    case `/usr/bin/file conftest.$ac_objext` in
6756      *32-bit*)
6757	emul="${emul}32"
6758	;;
6759      *64-bit*)
6760	emul="${emul}64"
6761	;;
6762    esac
6763    case `/usr/bin/file conftest.$ac_objext` in
6764      *MSB*)
6765	emul="${emul}btsmip"
6766	;;
6767      *LSB*)
6768	emul="${emul}ltsmip"
6769	;;
6770    esac
6771    case `/usr/bin/file conftest.$ac_objext` in
6772      *N32*)
6773	emul="${emul}n32"
6774	;;
6775    esac
6776    LD="${LD-ld} -m $emul"
6777  fi
6778  rm -rf conftest*
6779  ;;
6780
6781x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6782s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6783  # Find out what ABI is being produced by ac_compile, and set linker
6784  # options accordingly.  Note that the listed cases only cover the
6785  # situations where additional linker options are needed (such as when
6786  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6787  # vice versa); the common cases where no linker options are needed do
6788  # not appear in the list.
6789  echo 'int i;' > conftest.$ac_ext
6790  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6791  (eval $ac_compile) 2>&5
6792  ac_status=$?
6793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794  test $ac_status = 0; }; then
6795    case `/usr/bin/file conftest.o` in
6796      *32-bit*)
6797	case $host in
6798	  x86_64-*kfreebsd*-gnu)
6799	    LD="${LD-ld} -m elf_i386_fbsd"
6800	    ;;
6801	  x86_64-*linux*)
6802	    case `/usr/bin/file conftest.o` in
6803	      *x86-64*)
6804		LD="${LD-ld} -m elf32_x86_64"
6805		;;
6806	      *)
6807		LD="${LD-ld} -m elf_i386"
6808		;;
6809	    esac
6810	    ;;
6811	  powerpc64le-*linux*)
6812	    LD="${LD-ld} -m elf32lppclinux"
6813	    ;;
6814	  powerpc64-*linux*)
6815	    LD="${LD-ld} -m elf32ppclinux"
6816	    ;;
6817	  s390x-*linux*)
6818	    LD="${LD-ld} -m elf_s390"
6819	    ;;
6820	  sparc64-*linux*)
6821	    LD="${LD-ld} -m elf32_sparc"
6822	    ;;
6823	esac
6824	;;
6825      *64-bit*)
6826	case $host in
6827	  x86_64-*kfreebsd*-gnu)
6828	    LD="${LD-ld} -m elf_x86_64_fbsd"
6829	    ;;
6830	  x86_64-*linux*)
6831	    LD="${LD-ld} -m elf_x86_64"
6832	    ;;
6833	  powerpcle-*linux*)
6834	    LD="${LD-ld} -m elf64lppc"
6835	    ;;
6836	  powerpc-*linux*)
6837	    LD="${LD-ld} -m elf64ppc"
6838	    ;;
6839	  s390*-*linux*|s390*-*tpf*)
6840	    LD="${LD-ld} -m elf64_s390"
6841	    ;;
6842	  sparc*-*linux*)
6843	    LD="${LD-ld} -m elf64_sparc"
6844	    ;;
6845	esac
6846	;;
6847    esac
6848  fi
6849  rm -rf conftest*
6850  ;;
6851
6852*-*-sco3.2v5*)
6853  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6854  SAVE_CFLAGS=$CFLAGS
6855  CFLAGS="$CFLAGS -belf"
6856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6857$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6858if ${lt_cv_cc_needs_belf+:} false; then :
6859  $as_echo_n "(cached) " >&6
6860else
6861  ac_ext=c
6862ac_cpp='$CPP $CPPFLAGS'
6863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6865ac_compiler_gnu=$ac_cv_c_compiler_gnu
6866
6867     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868/* end confdefs.h.  */
6869
6870int
6871main ()
6872{
6873
6874  ;
6875  return 0;
6876}
6877_ACEOF
6878if ac_fn_c_try_link "$LINENO"; then :
6879  lt_cv_cc_needs_belf=yes
6880else
6881  lt_cv_cc_needs_belf=no
6882fi
6883rm -f core conftest.err conftest.$ac_objext \
6884    conftest$ac_exeext conftest.$ac_ext
6885     ac_ext=c
6886ac_cpp='$CPP $CPPFLAGS'
6887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6889ac_compiler_gnu=$ac_cv_c_compiler_gnu
6890
6891fi
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6893$as_echo "$lt_cv_cc_needs_belf" >&6; }
6894  if test yes != "$lt_cv_cc_needs_belf"; then
6895    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6896    CFLAGS=$SAVE_CFLAGS
6897  fi
6898  ;;
6899*-*solaris*)
6900  # Find out what ABI is being produced by ac_compile, and set linker
6901  # options accordingly.
6902  echo 'int i;' > conftest.$ac_ext
6903  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6904  (eval $ac_compile) 2>&5
6905  ac_status=$?
6906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6907  test $ac_status = 0; }; then
6908    case `/usr/bin/file conftest.o` in
6909    *64-bit*)
6910      case $lt_cv_prog_gnu_ld in
6911      yes*)
6912        case $host in
6913        i?86-*-solaris*|x86_64-*-solaris*)
6914          LD="${LD-ld} -m elf_x86_64"
6915          ;;
6916        sparc*-*-solaris*)
6917          LD="${LD-ld} -m elf64_sparc"
6918          ;;
6919        esac
6920        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6921        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6922          LD=${LD-ld}_sol2
6923        fi
6924        ;;
6925      *)
6926	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6927	  LD="${LD-ld} -64"
6928	fi
6929	;;
6930      esac
6931      ;;
6932    esac
6933  fi
6934  rm -rf conftest*
6935  ;;
6936esac
6937
6938need_locks=$enable_libtool_lock
6939
6940if test -n "$ac_tool_prefix"; then
6941  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6942set dummy ${ac_tool_prefix}mt; ac_word=$2
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944$as_echo_n "checking for $ac_word... " >&6; }
6945if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6946  $as_echo_n "(cached) " >&6
6947else
6948  if test -n "$MANIFEST_TOOL"; then
6949  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6950else
6951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952for as_dir in $PATH
6953do
6954  IFS=$as_save_IFS
6955  test -z "$as_dir" && as_dir=.
6956    for ac_exec_ext in '' $ac_executable_extensions; do
6957  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960    break 2
6961  fi
6962done
6963  done
6964IFS=$as_save_IFS
6965
6966fi
6967fi
6968MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6969if test -n "$MANIFEST_TOOL"; then
6970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6971$as_echo "$MANIFEST_TOOL" >&6; }
6972else
6973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974$as_echo "no" >&6; }
6975fi
6976
6977
6978fi
6979if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6980  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6981  # Extract the first word of "mt", so it can be a program name with args.
6982set dummy mt; ac_word=$2
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984$as_echo_n "checking for $ac_word... " >&6; }
6985if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6986  $as_echo_n "(cached) " >&6
6987else
6988  if test -n "$ac_ct_MANIFEST_TOOL"; then
6989  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6990else
6991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994  IFS=$as_save_IFS
6995  test -z "$as_dir" && as_dir=.
6996    for ac_exec_ext in '' $ac_executable_extensions; do
6997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6998    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000    break 2
7001  fi
7002done
7003  done
7004IFS=$as_save_IFS
7005
7006fi
7007fi
7008ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7009if test -n "$ac_ct_MANIFEST_TOOL"; then
7010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7011$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7012else
7013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014$as_echo "no" >&6; }
7015fi
7016
7017  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7018    MANIFEST_TOOL=":"
7019  else
7020    case $cross_compiling:$ac_tool_warned in
7021yes:)
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7024ac_tool_warned=yes ;;
7025esac
7026    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7027  fi
7028else
7029  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7030fi
7031
7032test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7034$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7035if ${lt_cv_path_mainfest_tool+:} false; then :
7036  $as_echo_n "(cached) " >&6
7037else
7038  lt_cv_path_mainfest_tool=no
7039  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7040  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7041  cat conftest.err >&5
7042  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7043    lt_cv_path_mainfest_tool=yes
7044  fi
7045  rm -f conftest*
7046fi
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7048$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7049if test yes != "$lt_cv_path_mainfest_tool"; then
7050  MANIFEST_TOOL=:
7051fi
7052
7053
7054
7055
7056
7057
7058  case $host_os in
7059    rhapsody* | darwin*)
7060    if test -n "$ac_tool_prefix"; then
7061  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7062set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064$as_echo_n "checking for $ac_word... " >&6; }
7065if ${ac_cv_prog_DSYMUTIL+:} false; then :
7066  $as_echo_n "(cached) " >&6
7067else
7068  if test -n "$DSYMUTIL"; then
7069  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7070else
7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074  IFS=$as_save_IFS
7075  test -z "$as_dir" && as_dir=.
7076    for ac_exec_ext in '' $ac_executable_extensions; do
7077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080    break 2
7081  fi
7082done
7083  done
7084IFS=$as_save_IFS
7085
7086fi
7087fi
7088DSYMUTIL=$ac_cv_prog_DSYMUTIL
7089if test -n "$DSYMUTIL"; then
7090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7091$as_echo "$DSYMUTIL" >&6; }
7092else
7093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094$as_echo "no" >&6; }
7095fi
7096
7097
7098fi
7099if test -z "$ac_cv_prog_DSYMUTIL"; then
7100  ac_ct_DSYMUTIL=$DSYMUTIL
7101  # Extract the first word of "dsymutil", so it can be a program name with args.
7102set dummy dsymutil; ac_word=$2
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104$as_echo_n "checking for $ac_word... " >&6; }
7105if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7106  $as_echo_n "(cached) " >&6
7107else
7108  if test -n "$ac_ct_DSYMUTIL"; then
7109  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7110else
7111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112for as_dir in $PATH
7113do
7114  IFS=$as_save_IFS
7115  test -z "$as_dir" && as_dir=.
7116    for ac_exec_ext in '' $ac_executable_extensions; do
7117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7118    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120    break 2
7121  fi
7122done
7123  done
7124IFS=$as_save_IFS
7125
7126fi
7127fi
7128ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7129if test -n "$ac_ct_DSYMUTIL"; then
7130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7131$as_echo "$ac_ct_DSYMUTIL" >&6; }
7132else
7133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134$as_echo "no" >&6; }
7135fi
7136
7137  if test "x$ac_ct_DSYMUTIL" = x; then
7138    DSYMUTIL=":"
7139  else
7140    case $cross_compiling:$ac_tool_warned in
7141yes:)
7142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7144ac_tool_warned=yes ;;
7145esac
7146    DSYMUTIL=$ac_ct_DSYMUTIL
7147  fi
7148else
7149  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7150fi
7151
7152    if test -n "$ac_tool_prefix"; then
7153  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7154set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156$as_echo_n "checking for $ac_word... " >&6; }
7157if ${ac_cv_prog_NMEDIT+:} false; then :
7158  $as_echo_n "(cached) " >&6
7159else
7160  if test -n "$NMEDIT"; then
7161  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7162else
7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164for as_dir in $PATH
7165do
7166  IFS=$as_save_IFS
7167  test -z "$as_dir" && as_dir=.
7168    for ac_exec_ext in '' $ac_executable_extensions; do
7169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172    break 2
7173  fi
7174done
7175  done
7176IFS=$as_save_IFS
7177
7178fi
7179fi
7180NMEDIT=$ac_cv_prog_NMEDIT
7181if test -n "$NMEDIT"; then
7182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7183$as_echo "$NMEDIT" >&6; }
7184else
7185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186$as_echo "no" >&6; }
7187fi
7188
7189
7190fi
7191if test -z "$ac_cv_prog_NMEDIT"; then
7192  ac_ct_NMEDIT=$NMEDIT
7193  # Extract the first word of "nmedit", so it can be a program name with args.
7194set dummy nmedit; ac_word=$2
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196$as_echo_n "checking for $ac_word... " >&6; }
7197if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7198  $as_echo_n "(cached) " >&6
7199else
7200  if test -n "$ac_ct_NMEDIT"; then
7201  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7202else
7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206  IFS=$as_save_IFS
7207  test -z "$as_dir" && as_dir=.
7208    for ac_exec_ext in '' $ac_executable_extensions; do
7209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7210    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212    break 2
7213  fi
7214done
7215  done
7216IFS=$as_save_IFS
7217
7218fi
7219fi
7220ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7221if test -n "$ac_ct_NMEDIT"; then
7222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7223$as_echo "$ac_ct_NMEDIT" >&6; }
7224else
7225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226$as_echo "no" >&6; }
7227fi
7228
7229  if test "x$ac_ct_NMEDIT" = x; then
7230    NMEDIT=":"
7231  else
7232    case $cross_compiling:$ac_tool_warned in
7233yes:)
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7236ac_tool_warned=yes ;;
7237esac
7238    NMEDIT=$ac_ct_NMEDIT
7239  fi
7240else
7241  NMEDIT="$ac_cv_prog_NMEDIT"
7242fi
7243
7244    if test -n "$ac_tool_prefix"; then
7245  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7246set dummy ${ac_tool_prefix}lipo; ac_word=$2
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248$as_echo_n "checking for $ac_word... " >&6; }
7249if ${ac_cv_prog_LIPO+:} false; then :
7250  $as_echo_n "(cached) " >&6
7251else
7252  if test -n "$LIPO"; then
7253  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7254else
7255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256for as_dir in $PATH
7257do
7258  IFS=$as_save_IFS
7259  test -z "$as_dir" && as_dir=.
7260    for ac_exec_ext in '' $ac_executable_extensions; do
7261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264    break 2
7265  fi
7266done
7267  done
7268IFS=$as_save_IFS
7269
7270fi
7271fi
7272LIPO=$ac_cv_prog_LIPO
7273if test -n "$LIPO"; then
7274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7275$as_echo "$LIPO" >&6; }
7276else
7277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278$as_echo "no" >&6; }
7279fi
7280
7281
7282fi
7283if test -z "$ac_cv_prog_LIPO"; then
7284  ac_ct_LIPO=$LIPO
7285  # Extract the first word of "lipo", so it can be a program name with args.
7286set dummy lipo; ac_word=$2
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288$as_echo_n "checking for $ac_word... " >&6; }
7289if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7290  $as_echo_n "(cached) " >&6
7291else
7292  if test -n "$ac_ct_LIPO"; then
7293  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7294else
7295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296for as_dir in $PATH
7297do
7298  IFS=$as_save_IFS
7299  test -z "$as_dir" && as_dir=.
7300    for ac_exec_ext in '' $ac_executable_extensions; do
7301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302    ac_cv_prog_ac_ct_LIPO="lipo"
7303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304    break 2
7305  fi
7306done
7307  done
7308IFS=$as_save_IFS
7309
7310fi
7311fi
7312ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7313if test -n "$ac_ct_LIPO"; then
7314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7315$as_echo "$ac_ct_LIPO" >&6; }
7316else
7317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318$as_echo "no" >&6; }
7319fi
7320
7321  if test "x$ac_ct_LIPO" = x; then
7322    LIPO=":"
7323  else
7324    case $cross_compiling:$ac_tool_warned in
7325yes:)
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328ac_tool_warned=yes ;;
7329esac
7330    LIPO=$ac_ct_LIPO
7331  fi
7332else
7333  LIPO="$ac_cv_prog_LIPO"
7334fi
7335
7336    if test -n "$ac_tool_prefix"; then
7337  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7338set dummy ${ac_tool_prefix}otool; ac_word=$2
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340$as_echo_n "checking for $ac_word... " >&6; }
7341if ${ac_cv_prog_OTOOL+:} false; then :
7342  $as_echo_n "(cached) " >&6
7343else
7344  if test -n "$OTOOL"; then
7345  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7346else
7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350  IFS=$as_save_IFS
7351  test -z "$as_dir" && as_dir=.
7352    for ac_exec_ext in '' $ac_executable_extensions; do
7353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356    break 2
7357  fi
7358done
7359  done
7360IFS=$as_save_IFS
7361
7362fi
7363fi
7364OTOOL=$ac_cv_prog_OTOOL
7365if test -n "$OTOOL"; then
7366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7367$as_echo "$OTOOL" >&6; }
7368else
7369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370$as_echo "no" >&6; }
7371fi
7372
7373
7374fi
7375if test -z "$ac_cv_prog_OTOOL"; then
7376  ac_ct_OTOOL=$OTOOL
7377  # Extract the first word of "otool", so it can be a program name with args.
7378set dummy otool; ac_word=$2
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380$as_echo_n "checking for $ac_word... " >&6; }
7381if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7382  $as_echo_n "(cached) " >&6
7383else
7384  if test -n "$ac_ct_OTOOL"; then
7385  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7386else
7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390  IFS=$as_save_IFS
7391  test -z "$as_dir" && as_dir=.
7392    for ac_exec_ext in '' $ac_executable_extensions; do
7393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394    ac_cv_prog_ac_ct_OTOOL="otool"
7395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396    break 2
7397  fi
7398done
7399  done
7400IFS=$as_save_IFS
7401
7402fi
7403fi
7404ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7405if test -n "$ac_ct_OTOOL"; then
7406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7407$as_echo "$ac_ct_OTOOL" >&6; }
7408else
7409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410$as_echo "no" >&6; }
7411fi
7412
7413  if test "x$ac_ct_OTOOL" = x; then
7414    OTOOL=":"
7415  else
7416    case $cross_compiling:$ac_tool_warned in
7417yes:)
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7420ac_tool_warned=yes ;;
7421esac
7422    OTOOL=$ac_ct_OTOOL
7423  fi
7424else
7425  OTOOL="$ac_cv_prog_OTOOL"
7426fi
7427
7428    if test -n "$ac_tool_prefix"; then
7429  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7430set dummy ${ac_tool_prefix}otool64; ac_word=$2
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432$as_echo_n "checking for $ac_word... " >&6; }
7433if ${ac_cv_prog_OTOOL64+:} false; then :
7434  $as_echo_n "(cached) " >&6
7435else
7436  if test -n "$OTOOL64"; then
7437  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7438else
7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440for as_dir in $PATH
7441do
7442  IFS=$as_save_IFS
7443  test -z "$as_dir" && as_dir=.
7444    for ac_exec_ext in '' $ac_executable_extensions; do
7445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448    break 2
7449  fi
7450done
7451  done
7452IFS=$as_save_IFS
7453
7454fi
7455fi
7456OTOOL64=$ac_cv_prog_OTOOL64
7457if test -n "$OTOOL64"; then
7458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7459$as_echo "$OTOOL64" >&6; }
7460else
7461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462$as_echo "no" >&6; }
7463fi
7464
7465
7466fi
7467if test -z "$ac_cv_prog_OTOOL64"; then
7468  ac_ct_OTOOL64=$OTOOL64
7469  # Extract the first word of "otool64", so it can be a program name with args.
7470set dummy otool64; ac_word=$2
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472$as_echo_n "checking for $ac_word... " >&6; }
7473if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7474  $as_echo_n "(cached) " >&6
7475else
7476  if test -n "$ac_ct_OTOOL64"; then
7477  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7478else
7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480for as_dir in $PATH
7481do
7482  IFS=$as_save_IFS
7483  test -z "$as_dir" && as_dir=.
7484    for ac_exec_ext in '' $ac_executable_extensions; do
7485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486    ac_cv_prog_ac_ct_OTOOL64="otool64"
7487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488    break 2
7489  fi
7490done
7491  done
7492IFS=$as_save_IFS
7493
7494fi
7495fi
7496ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7497if test -n "$ac_ct_OTOOL64"; then
7498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7499$as_echo "$ac_ct_OTOOL64" >&6; }
7500else
7501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502$as_echo "no" >&6; }
7503fi
7504
7505  if test "x$ac_ct_OTOOL64" = x; then
7506    OTOOL64=":"
7507  else
7508    case $cross_compiling:$ac_tool_warned in
7509yes:)
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512ac_tool_warned=yes ;;
7513esac
7514    OTOOL64=$ac_ct_OTOOL64
7515  fi
7516else
7517  OTOOL64="$ac_cv_prog_OTOOL64"
7518fi
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7547$as_echo_n "checking for -single_module linker flag... " >&6; }
7548if ${lt_cv_apple_cc_single_mod+:} false; then :
7549  $as_echo_n "(cached) " >&6
7550else
7551  lt_cv_apple_cc_single_mod=no
7552      if test -z "$LT_MULTI_MODULE"; then
7553	# By default we will add the -single_module flag. You can override
7554	# by either setting the environment variable LT_MULTI_MODULE
7555	# non-empty at configure time, or by adding -multi_module to the
7556	# link flags.
7557	rm -rf libconftest.dylib*
7558	echo "int foo(void){return 1;}" > conftest.c
7559	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7560-dynamiclib -Wl,-single_module conftest.c" >&5
7561	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7562	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7563        _lt_result=$?
7564	# If there is a non-empty error log, and "single_module"
7565	# appears in it, assume the flag caused a linker warning
7566        if test -s conftest.err && $GREP single_module conftest.err; then
7567	  cat conftest.err >&5
7568	# Otherwise, if the output was created with a 0 exit code from
7569	# the compiler, it worked.
7570	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7571	  lt_cv_apple_cc_single_mod=yes
7572	else
7573	  cat conftest.err >&5
7574	fi
7575	rm -rf libconftest.dylib*
7576	rm -f conftest.*
7577      fi
7578fi
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7580$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7581
7582    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7583$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7584if ${lt_cv_ld_exported_symbols_list+:} false; then :
7585  $as_echo_n "(cached) " >&6
7586else
7587  lt_cv_ld_exported_symbols_list=no
7588      save_LDFLAGS=$LDFLAGS
7589      echo "_main" > conftest.sym
7590      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7591      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592/* end confdefs.h.  */
7593
7594int
7595main ()
7596{
7597
7598  ;
7599  return 0;
7600}
7601_ACEOF
7602if ac_fn_c_try_link "$LINENO"; then :
7603  lt_cv_ld_exported_symbols_list=yes
7604else
7605  lt_cv_ld_exported_symbols_list=no
7606fi
7607rm -f core conftest.err conftest.$ac_objext \
7608    conftest$ac_exeext conftest.$ac_ext
7609	LDFLAGS=$save_LDFLAGS
7610
7611fi
7612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7613$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7614
7615    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7616$as_echo_n "checking for -force_load linker flag... " >&6; }
7617if ${lt_cv_ld_force_load+:} false; then :
7618  $as_echo_n "(cached) " >&6
7619else
7620  lt_cv_ld_force_load=no
7621      cat > conftest.c << _LT_EOF
7622int forced_loaded() { return 2;}
7623_LT_EOF
7624      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7625      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7626      echo "$AR cru libconftest.a conftest.o" >&5
7627      $AR cru libconftest.a conftest.o 2>&5
7628      echo "$RANLIB libconftest.a" >&5
7629      $RANLIB libconftest.a 2>&5
7630      cat > conftest.c << _LT_EOF
7631int main() { return 0;}
7632_LT_EOF
7633      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7634      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7635      _lt_result=$?
7636      if test -s conftest.err && $GREP force_load conftest.err; then
7637	cat conftest.err >&5
7638      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7639	lt_cv_ld_force_load=yes
7640      else
7641	cat conftest.err >&5
7642      fi
7643        rm -f conftest.err libconftest.a conftest conftest.c
7644        rm -rf conftest.dSYM
7645
7646fi
7647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7648$as_echo "$lt_cv_ld_force_load" >&6; }
7649    case $host_os in
7650    rhapsody* | darwin1.[012])
7651      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7652    darwin1.*)
7653      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7654    darwin*) # darwin 5.x on
7655      # if running on 10.5 or later, the deployment target defaults
7656      # to the OS version, if on x86, and 10.4, the deployment
7657      # target defaults to 10.4. Don't you love it?
7658      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7659	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7660	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7661	10.[012][,.]*)
7662	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7663	10.*)
7664	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7665      esac
7666    ;;
7667  esac
7668    if test yes = "$lt_cv_apple_cc_single_mod"; then
7669      _lt_dar_single_mod='$single_module'
7670    fi
7671    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7672      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7673    else
7674      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7675    fi
7676    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7677      _lt_dsymutil='~$DSYMUTIL $lib || :'
7678    else
7679      _lt_dsymutil=
7680    fi
7681    ;;
7682  esac
7683
7684# func_munge_path_list VARIABLE PATH
7685# -----------------------------------
7686# VARIABLE is name of variable containing _space_ separated list of
7687# directories to be munged by the contents of PATH, which is string
7688# having a format:
7689# "DIR[:DIR]:"
7690#       string "DIR[ DIR]" will be prepended to VARIABLE
7691# ":DIR[:DIR]"
7692#       string "DIR[ DIR]" will be appended to VARIABLE
7693# "DIRP[:DIRP]::[DIRA:]DIRA"
7694#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7695#       "DIRA[ DIRA]" will be appended to VARIABLE
7696# "DIR[:DIR]"
7697#       VARIABLE will be replaced by "DIR[ DIR]"
7698func_munge_path_list ()
7699{
7700    case x$2 in
7701    x)
7702        ;;
7703    *:)
7704        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7705        ;;
7706    x:*)
7707        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7708        ;;
7709    *::*)
7710        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7711        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7712        ;;
7713    *)
7714        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7715        ;;
7716    esac
7717}
7718
7719ac_ext=c
7720ac_cpp='$CPP $CPPFLAGS'
7721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7723ac_compiler_gnu=$ac_cv_c_compiler_gnu
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7725$as_echo_n "checking how to run the C preprocessor... " >&6; }
7726# On Suns, sometimes $CPP names a directory.
7727if test -n "$CPP" && test -d "$CPP"; then
7728  CPP=
7729fi
7730if test -z "$CPP"; then
7731  if ${ac_cv_prog_CPP+:} false; then :
7732  $as_echo_n "(cached) " >&6
7733else
7734      # Double quotes because CPP needs to be expanded
7735    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7736    do
7737      ac_preproc_ok=false
7738for ac_c_preproc_warn_flag in '' yes
7739do
7740  # Use a header file that comes with gcc, so configuring glibc
7741  # with a fresh cross-compiler works.
7742  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7743  # <limits.h> exists even on freestanding compilers.
7744  # On the NeXT, cc -E runs the code through the compiler's parser,
7745  # not just through cpp. "Syntax error" is here to catch this case.
7746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747/* end confdefs.h.  */
7748#ifdef __STDC__
7749# include <limits.h>
7750#else
7751# include <assert.h>
7752#endif
7753		     Syntax error
7754_ACEOF
7755if ac_fn_c_try_cpp "$LINENO"; then :
7756
7757else
7758  # Broken: fails on valid input.
7759continue
7760fi
7761rm -f conftest.err conftest.i conftest.$ac_ext
7762
7763  # OK, works on sane cases.  Now check whether nonexistent headers
7764  # can be detected and how.
7765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766/* end confdefs.h.  */
7767#include <ac_nonexistent.h>
7768_ACEOF
7769if ac_fn_c_try_cpp "$LINENO"; then :
7770  # Broken: success on invalid input.
7771continue
7772else
7773  # Passes both tests.
7774ac_preproc_ok=:
7775break
7776fi
7777rm -f conftest.err conftest.i conftest.$ac_ext
7778
7779done
7780# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7781rm -f conftest.i conftest.err conftest.$ac_ext
7782if $ac_preproc_ok; then :
7783  break
7784fi
7785
7786    done
7787    ac_cv_prog_CPP=$CPP
7788
7789fi
7790  CPP=$ac_cv_prog_CPP
7791else
7792  ac_cv_prog_CPP=$CPP
7793fi
7794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7795$as_echo "$CPP" >&6; }
7796ac_preproc_ok=false
7797for ac_c_preproc_warn_flag in '' yes
7798do
7799  # Use a header file that comes with gcc, so configuring glibc
7800  # with a fresh cross-compiler works.
7801  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7802  # <limits.h> exists even on freestanding compilers.
7803  # On the NeXT, cc -E runs the code through the compiler's parser,
7804  # not just through cpp. "Syntax error" is here to catch this case.
7805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806/* end confdefs.h.  */
7807#ifdef __STDC__
7808# include <limits.h>
7809#else
7810# include <assert.h>
7811#endif
7812		     Syntax error
7813_ACEOF
7814if ac_fn_c_try_cpp "$LINENO"; then :
7815
7816else
7817  # Broken: fails on valid input.
7818continue
7819fi
7820rm -f conftest.err conftest.i conftest.$ac_ext
7821
7822  # OK, works on sane cases.  Now check whether nonexistent headers
7823  # can be detected and how.
7824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825/* end confdefs.h.  */
7826#include <ac_nonexistent.h>
7827_ACEOF
7828if ac_fn_c_try_cpp "$LINENO"; then :
7829  # Broken: success on invalid input.
7830continue
7831else
7832  # Passes both tests.
7833ac_preproc_ok=:
7834break
7835fi
7836rm -f conftest.err conftest.i conftest.$ac_ext
7837
7838done
7839# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7840rm -f conftest.i conftest.err conftest.$ac_ext
7841if $ac_preproc_ok; then :
7842
7843else
7844  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7846as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7847See \`config.log' for more details" "$LINENO" 5; }
7848fi
7849
7850ac_ext=c
7851ac_cpp='$CPP $CPPFLAGS'
7852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7854ac_compiler_gnu=$ac_cv_c_compiler_gnu
7855
7856
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7858$as_echo_n "checking for ANSI C header files... " >&6; }
7859if ${ac_cv_header_stdc+:} false; then :
7860  $as_echo_n "(cached) " >&6
7861else
7862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863/* end confdefs.h.  */
7864#include <stdlib.h>
7865#include <stdarg.h>
7866#include <string.h>
7867#include <float.h>
7868
7869int
7870main ()
7871{
7872
7873  ;
7874  return 0;
7875}
7876_ACEOF
7877if ac_fn_c_try_compile "$LINENO"; then :
7878  ac_cv_header_stdc=yes
7879else
7880  ac_cv_header_stdc=no
7881fi
7882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7883
7884if test $ac_cv_header_stdc = yes; then
7885  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887/* end confdefs.h.  */
7888#include <string.h>
7889
7890_ACEOF
7891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7892  $EGREP "memchr" >/dev/null 2>&1; then :
7893
7894else
7895  ac_cv_header_stdc=no
7896fi
7897rm -f conftest*
7898
7899fi
7900
7901if test $ac_cv_header_stdc = yes; then
7902  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904/* end confdefs.h.  */
7905#include <stdlib.h>
7906
7907_ACEOF
7908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7909  $EGREP "free" >/dev/null 2>&1; then :
7910
7911else
7912  ac_cv_header_stdc=no
7913fi
7914rm -f conftest*
7915
7916fi
7917
7918if test $ac_cv_header_stdc = yes; then
7919  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7920  if test "$cross_compiling" = yes; then :
7921  :
7922else
7923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924/* end confdefs.h.  */
7925#include <ctype.h>
7926#include <stdlib.h>
7927#if ((' ' & 0x0FF) == 0x020)
7928# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7929# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7930#else
7931# define ISLOWER(c) \
7932		   (('a' <= (c) && (c) <= 'i') \
7933		     || ('j' <= (c) && (c) <= 'r') \
7934		     || ('s' <= (c) && (c) <= 'z'))
7935# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7936#endif
7937
7938#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7939int
7940main ()
7941{
7942  int i;
7943  for (i = 0; i < 256; i++)
7944    if (XOR (islower (i), ISLOWER (i))
7945	|| toupper (i) != TOUPPER (i))
7946      return 2;
7947  return 0;
7948}
7949_ACEOF
7950if ac_fn_c_try_run "$LINENO"; then :
7951
7952else
7953  ac_cv_header_stdc=no
7954fi
7955rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7956  conftest.$ac_objext conftest.beam conftest.$ac_ext
7957fi
7958
7959fi
7960fi
7961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7962$as_echo "$ac_cv_header_stdc" >&6; }
7963if test $ac_cv_header_stdc = yes; then
7964
7965$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7966
7967fi
7968
7969# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7970for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7971		  inttypes.h stdint.h unistd.h
7972do :
7973  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7974ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7975"
7976if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7977  cat >>confdefs.h <<_ACEOF
7978#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7979_ACEOF
7980
7981fi
7982
7983done
7984
7985
7986for ac_header in dlfcn.h
7987do :
7988  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7989"
7990if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7991  cat >>confdefs.h <<_ACEOF
7992#define HAVE_DLFCN_H 1
7993_ACEOF
7994
7995fi
7996
7997done
7998
7999
8000
8001
8002
8003# Set options
8004
8005
8006
8007        enable_dlopen=no
8008
8009
8010  enable_win32_dll=no
8011
8012
8013            # Check whether --enable-shared was given.
8014if test "${enable_shared+set}" = set; then :
8015  enableval=$enable_shared; p=${PACKAGE-default}
8016    case $enableval in
8017    yes) enable_shared=yes ;;
8018    no) enable_shared=no ;;
8019    *)
8020      enable_shared=no
8021      # Look at the argument we got.  We use all the common list separators.
8022      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8023      for pkg in $enableval; do
8024	IFS=$lt_save_ifs
8025	if test "X$pkg" = "X$p"; then
8026	  enable_shared=yes
8027	fi
8028      done
8029      IFS=$lt_save_ifs
8030      ;;
8031    esac
8032else
8033  enable_shared=yes
8034fi
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044  # Check whether --enable-static was given.
8045if test "${enable_static+set}" = set; then :
8046  enableval=$enable_static; p=${PACKAGE-default}
8047    case $enableval in
8048    yes) enable_static=yes ;;
8049    no) enable_static=no ;;
8050    *)
8051     enable_static=no
8052      # Look at the argument we got.  We use all the common list separators.
8053      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8054      for pkg in $enableval; do
8055	IFS=$lt_save_ifs
8056	if test "X$pkg" = "X$p"; then
8057	  enable_static=yes
8058	fi
8059      done
8060      IFS=$lt_save_ifs
8061      ;;
8062    esac
8063else
8064  enable_static=yes
8065fi
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076# Check whether --with-pic was given.
8077if test "${with_pic+set}" = set; then :
8078  withval=$with_pic; lt_p=${PACKAGE-default}
8079    case $withval in
8080    yes|no) pic_mode=$withval ;;
8081    *)
8082      pic_mode=default
8083      # Look at the argument we got.  We use all the common list separators.
8084      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8085      for lt_pkg in $withval; do
8086	IFS=$lt_save_ifs
8087	if test "X$lt_pkg" = "X$lt_p"; then
8088	  pic_mode=yes
8089	fi
8090      done
8091      IFS=$lt_save_ifs
8092      ;;
8093    esac
8094else
8095  pic_mode=default
8096fi
8097
8098
8099
8100
8101
8102
8103
8104
8105  # Check whether --enable-fast-install was given.
8106if test "${enable_fast_install+set}" = set; then :
8107  enableval=$enable_fast_install; p=${PACKAGE-default}
8108    case $enableval in
8109    yes) enable_fast_install=yes ;;
8110    no) enable_fast_install=no ;;
8111    *)
8112      enable_fast_install=no
8113      # Look at the argument we got.  We use all the common list separators.
8114      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8115      for pkg in $enableval; do
8116	IFS=$lt_save_ifs
8117	if test "X$pkg" = "X$p"; then
8118	  enable_fast_install=yes
8119	fi
8120      done
8121      IFS=$lt_save_ifs
8122      ;;
8123    esac
8124else
8125  enable_fast_install=yes
8126fi
8127
8128
8129
8130
8131
8132
8133
8134
8135  shared_archive_member_spec=
8136case $host,$enable_shared in
8137power*-*-aix[5-9]*,yes)
8138  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8139$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8140
8141# Check whether --with-aix-soname was given.
8142if test "${with_aix_soname+set}" = set; then :
8143  withval=$with_aix_soname; case $withval in
8144    aix|svr4|both)
8145      ;;
8146    *)
8147      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8148      ;;
8149    esac
8150    lt_cv_with_aix_soname=$with_aix_soname
8151else
8152  if ${lt_cv_with_aix_soname+:} false; then :
8153  $as_echo_n "(cached) " >&6
8154else
8155  lt_cv_with_aix_soname=aix
8156fi
8157
8158    with_aix_soname=$lt_cv_with_aix_soname
8159fi
8160
8161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8162$as_echo "$with_aix_soname" >&6; }
8163  if test aix != "$with_aix_soname"; then
8164    # For the AIX way of multilib, we name the shared archive member
8165    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8166    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8167    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8168    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8169    if test 64 = "${OBJECT_MODE-32}"; then
8170      shared_archive_member_spec=shr_64
8171    else
8172      shared_archive_member_spec=shr
8173    fi
8174  fi
8175  ;;
8176*)
8177  with_aix_soname=aix
8178  ;;
8179esac
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190# This can be used to rebuild libtool when needed
8191LIBTOOL_DEPS=$ltmain
8192
8193# Always use our own libtool.
8194LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225test -z "$LN_S" && LN_S="ln -s"
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240if test -n "${ZSH_VERSION+set}"; then
8241   setopt NO_GLOB_SUBST
8242fi
8243
8244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8245$as_echo_n "checking for objdir... " >&6; }
8246if ${lt_cv_objdir+:} false; then :
8247  $as_echo_n "(cached) " >&6
8248else
8249  rm -f .libs 2>/dev/null
8250mkdir .libs 2>/dev/null
8251if test -d .libs; then
8252  lt_cv_objdir=.libs
8253else
8254  # MS-DOS does not allow filenames that begin with a dot.
8255  lt_cv_objdir=_libs
8256fi
8257rmdir .libs 2>/dev/null
8258fi
8259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8260$as_echo "$lt_cv_objdir" >&6; }
8261objdir=$lt_cv_objdir
8262
8263
8264
8265
8266
8267cat >>confdefs.h <<_ACEOF
8268#define LT_OBJDIR "$lt_cv_objdir/"
8269_ACEOF
8270
8271
8272
8273
8274case $host_os in
8275aix3*)
8276  # AIX sometimes has problems with the GCC collect2 program.  For some
8277  # reason, if we set the COLLECT_NAMES environment variable, the problems
8278  # vanish in a puff of smoke.
8279  if test set != "${COLLECT_NAMES+set}"; then
8280    COLLECT_NAMES=
8281    export COLLECT_NAMES
8282  fi
8283  ;;
8284esac
8285
8286# Global variables:
8287ofile=libtool
8288can_build_shared=yes
8289
8290# All known linkers require a '.a' archive for static linking (except MSVC,
8291# which needs '.lib').
8292libext=a
8293
8294with_gnu_ld=$lt_cv_prog_gnu_ld
8295
8296old_CC=$CC
8297old_CFLAGS=$CFLAGS
8298
8299# Set sane defaults for various variables
8300test -z "$CC" && CC=cc
8301test -z "$LTCC" && LTCC=$CC
8302test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8303test -z "$LD" && LD=ld
8304test -z "$ac_objext" && ac_objext=o
8305
8306func_cc_basename $compiler
8307cc_basename=$func_cc_basename_result
8308
8309
8310# Only perform the check for file, if the check method requires it
8311test -z "$MAGIC_CMD" && MAGIC_CMD=file
8312case $deplibs_check_method in
8313file_magic*)
8314  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8315    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8316$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8317if ${lt_cv_path_MAGIC_CMD+:} false; then :
8318  $as_echo_n "(cached) " >&6
8319else
8320  case $MAGIC_CMD in
8321[\\/*] |  ?:[\\/]*)
8322  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8323  ;;
8324*)
8325  lt_save_MAGIC_CMD=$MAGIC_CMD
8326  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8327  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8328  for ac_dir in $ac_dummy; do
8329    IFS=$lt_save_ifs
8330    test -z "$ac_dir" && ac_dir=.
8331    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8332      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8333      if test -n "$file_magic_test_file"; then
8334	case $deplibs_check_method in
8335	"file_magic "*)
8336	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8337	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8338	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8339	    $EGREP "$file_magic_regex" > /dev/null; then
8340	    :
8341	  else
8342	    cat <<_LT_EOF 1>&2
8343
8344*** Warning: the command libtool uses to detect shared libraries,
8345*** $file_magic_cmd, produces output that libtool cannot recognize.
8346*** The result is that libtool may fail to recognize shared libraries
8347*** as such.  This will affect the creation of libtool libraries that
8348*** depend on shared libraries, but programs linked with such libtool
8349*** libraries will work regardless of this problem.  Nevertheless, you
8350*** may want to report the problem to your system manager and/or to
8351*** bug-libtool@gnu.org
8352
8353_LT_EOF
8354	  fi ;;
8355	esac
8356      fi
8357      break
8358    fi
8359  done
8360  IFS=$lt_save_ifs
8361  MAGIC_CMD=$lt_save_MAGIC_CMD
8362  ;;
8363esac
8364fi
8365
8366MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8367if test -n "$MAGIC_CMD"; then
8368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8369$as_echo "$MAGIC_CMD" >&6; }
8370else
8371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372$as_echo "no" >&6; }
8373fi
8374
8375
8376
8377
8378
8379if test -z "$lt_cv_path_MAGIC_CMD"; then
8380  if test -n "$ac_tool_prefix"; then
8381    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8382$as_echo_n "checking for file... " >&6; }
8383if ${lt_cv_path_MAGIC_CMD+:} false; then :
8384  $as_echo_n "(cached) " >&6
8385else
8386  case $MAGIC_CMD in
8387[\\/*] |  ?:[\\/]*)
8388  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8389  ;;
8390*)
8391  lt_save_MAGIC_CMD=$MAGIC_CMD
8392  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8393  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8394  for ac_dir in $ac_dummy; do
8395    IFS=$lt_save_ifs
8396    test -z "$ac_dir" && ac_dir=.
8397    if test -f "$ac_dir/file"; then
8398      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8399      if test -n "$file_magic_test_file"; then
8400	case $deplibs_check_method in
8401	"file_magic "*)
8402	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8403	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8404	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8405	    $EGREP "$file_magic_regex" > /dev/null; then
8406	    :
8407	  else
8408	    cat <<_LT_EOF 1>&2
8409
8410*** Warning: the command libtool uses to detect shared libraries,
8411*** $file_magic_cmd, produces output that libtool cannot recognize.
8412*** The result is that libtool may fail to recognize shared libraries
8413*** as such.  This will affect the creation of libtool libraries that
8414*** depend on shared libraries, but programs linked with such libtool
8415*** libraries will work regardless of this problem.  Nevertheless, you
8416*** may want to report the problem to your system manager and/or to
8417*** bug-libtool@gnu.org
8418
8419_LT_EOF
8420	  fi ;;
8421	esac
8422      fi
8423      break
8424    fi
8425  done
8426  IFS=$lt_save_ifs
8427  MAGIC_CMD=$lt_save_MAGIC_CMD
8428  ;;
8429esac
8430fi
8431
8432MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8433if test -n "$MAGIC_CMD"; then
8434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8435$as_echo "$MAGIC_CMD" >&6; }
8436else
8437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438$as_echo "no" >&6; }
8439fi
8440
8441
8442  else
8443    MAGIC_CMD=:
8444  fi
8445fi
8446
8447  fi
8448  ;;
8449esac
8450
8451# Use C for the default configuration in the libtool script
8452
8453lt_save_CC=$CC
8454ac_ext=c
8455ac_cpp='$CPP $CPPFLAGS'
8456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8458ac_compiler_gnu=$ac_cv_c_compiler_gnu
8459
8460
8461# Source file extension for C test sources.
8462ac_ext=c
8463
8464# Object file extension for compiled C test sources.
8465objext=o
8466objext=$objext
8467
8468# Code to be used in simple compile tests
8469lt_simple_compile_test_code="int some_variable = 0;"
8470
8471# Code to be used in simple link tests
8472lt_simple_link_test_code='int main(){return(0);}'
8473
8474
8475
8476
8477
8478
8479
8480# If no C compiler was specified, use CC.
8481LTCC=${LTCC-"$CC"}
8482
8483# If no C compiler flags were specified, use CFLAGS.
8484LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8485
8486# Allow CC to be a program name with arguments.
8487compiler=$CC
8488
8489# Save the default compiler, since it gets overwritten when the other
8490# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8491compiler_DEFAULT=$CC
8492
8493# save warnings/boilerplate of simple test code
8494ac_outfile=conftest.$ac_objext
8495echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8496eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8497_lt_compiler_boilerplate=`cat conftest.err`
8498$RM conftest*
8499
8500ac_outfile=conftest.$ac_objext
8501echo "$lt_simple_link_test_code" >conftest.$ac_ext
8502eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8503_lt_linker_boilerplate=`cat conftest.err`
8504$RM -r conftest*
8505
8506
8507## CAVEAT EMPTOR:
8508## There is no encapsulation within the following macros, do not change
8509## the running order or otherwise move them around unless you know exactly
8510## what you are doing...
8511if test -n "$compiler"; then
8512
8513lt_prog_compiler_no_builtin_flag=
8514
8515if test yes = "$GCC"; then
8516  case $cc_basename in
8517  nvcc*)
8518    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8519  *)
8520    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8521  esac
8522
8523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8524$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8525if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8526  $as_echo_n "(cached) " >&6
8527else
8528  lt_cv_prog_compiler_rtti_exceptions=no
8529   ac_outfile=conftest.$ac_objext
8530   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8531   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8532   # Insert the option either (1) after the last *FLAGS variable, or
8533   # (2) before a word containing "conftest.", or (3) at the end.
8534   # Note that $ac_compile itself does not contain backslashes and begins
8535   # with a dollar sign (not a hyphen), so the echo should work correctly.
8536   # The option is referenced via a variable to avoid confusing sed.
8537   lt_compile=`echo "$ac_compile" | $SED \
8538   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8539   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8540   -e 's:$: $lt_compiler_flag:'`
8541   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8542   (eval "$lt_compile" 2>conftest.err)
8543   ac_status=$?
8544   cat conftest.err >&5
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   if (exit $ac_status) && test -s "$ac_outfile"; then
8547     # The compiler can only warn and ignore the option if not recognized
8548     # So say no if there are warnings other than the usual output.
8549     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8550     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8551     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8552       lt_cv_prog_compiler_rtti_exceptions=yes
8553     fi
8554   fi
8555   $RM conftest*
8556
8557fi
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8559$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8560
8561if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8562    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8563else
8564    :
8565fi
8566
8567fi
8568
8569
8570
8571
8572
8573
8574  lt_prog_compiler_wl=
8575lt_prog_compiler_pic=
8576lt_prog_compiler_static=
8577
8578
8579  if test yes = "$GCC"; then
8580    lt_prog_compiler_wl='-Wl,'
8581    lt_prog_compiler_static='-static'
8582
8583    case $host_os in
8584      aix*)
8585      # All AIX code is PIC.
8586      if test ia64 = "$host_cpu"; then
8587	# AIX 5 now supports IA64 processor
8588	lt_prog_compiler_static='-Bstatic'
8589      fi
8590      lt_prog_compiler_pic='-fPIC'
8591      ;;
8592
8593    amigaos*)
8594      case $host_cpu in
8595      powerpc)
8596            # see comment about AmigaOS4 .so support
8597            lt_prog_compiler_pic='-fPIC'
8598        ;;
8599      m68k)
8600            # FIXME: we need at least 68020 code to build shared libraries, but
8601            # adding the '-m68020' flag to GCC prevents building anything better,
8602            # like '-m68040'.
8603            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8604        ;;
8605      esac
8606      ;;
8607
8608    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8609      # PIC is the default for these OSes.
8610      ;;
8611
8612    mingw* | cygwin* | pw32* | os2* | cegcc*)
8613      # This hack is so that the source file can tell whether it is being
8614      # built for inclusion in a dll (and should export symbols for example).
8615      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8616      # (--disable-auto-import) libraries
8617      lt_prog_compiler_pic='-DDLL_EXPORT'
8618      case $host_os in
8619      os2*)
8620	lt_prog_compiler_static='$wl-static'
8621	;;
8622      esac
8623      ;;
8624
8625    darwin* | rhapsody*)
8626      # PIC is the default on this platform
8627      # Common symbols not allowed in MH_DYLIB files
8628      lt_prog_compiler_pic='-fno-common'
8629      ;;
8630
8631    haiku*)
8632      # PIC is the default for Haiku.
8633      # The "-static" flag exists, but is broken.
8634      lt_prog_compiler_static=
8635      ;;
8636
8637    hpux*)
8638      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8639      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8640      # sets the default TLS model and affects inlining.
8641      case $host_cpu in
8642      hppa*64*)
8643	# +Z the default
8644	;;
8645      *)
8646	lt_prog_compiler_pic='-fPIC'
8647	;;
8648      esac
8649      ;;
8650
8651    interix[3-9]*)
8652      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8653      # Instead, we relocate shared libraries at runtime.
8654      ;;
8655
8656    msdosdjgpp*)
8657      # Just because we use GCC doesn't mean we suddenly get shared libraries
8658      # on systems that don't support them.
8659      lt_prog_compiler_can_build_shared=no
8660      enable_shared=no
8661      ;;
8662
8663    *nto* | *qnx*)
8664      # QNX uses GNU C++, but need to define -shared option too, otherwise
8665      # it will coredump.
8666      lt_prog_compiler_pic='-fPIC -shared'
8667      ;;
8668
8669    sysv4*MP*)
8670      if test -d /usr/nec; then
8671	lt_prog_compiler_pic=-Kconform_pic
8672      fi
8673      ;;
8674
8675    *)
8676      lt_prog_compiler_pic='-fPIC'
8677      ;;
8678    esac
8679
8680    case $cc_basename in
8681    nvcc*) # Cuda Compiler Driver 2.2
8682      lt_prog_compiler_wl='-Xlinker '
8683      if test -n "$lt_prog_compiler_pic"; then
8684        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8685      fi
8686      ;;
8687    esac
8688  else
8689    # PORTME Check for flag to pass linker flags through the system compiler.
8690    case $host_os in
8691    aix*)
8692      lt_prog_compiler_wl='-Wl,'
8693      if test ia64 = "$host_cpu"; then
8694	# AIX 5 now supports IA64 processor
8695	lt_prog_compiler_static='-Bstatic'
8696      else
8697	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8698      fi
8699      ;;
8700
8701    darwin* | rhapsody*)
8702      # PIC is the default on this platform
8703      # Common symbols not allowed in MH_DYLIB files
8704      lt_prog_compiler_pic='-fno-common'
8705      case $cc_basename in
8706      nagfor*)
8707        # NAG Fortran compiler
8708        lt_prog_compiler_wl='-Wl,-Wl,,'
8709        lt_prog_compiler_pic='-PIC'
8710        lt_prog_compiler_static='-Bstatic'
8711        ;;
8712      esac
8713      ;;
8714
8715    mingw* | cygwin* | pw32* | os2* | cegcc*)
8716      # This hack is so that the source file can tell whether it is being
8717      # built for inclusion in a dll (and should export symbols for example).
8718      lt_prog_compiler_pic='-DDLL_EXPORT'
8719      case $host_os in
8720      os2*)
8721	lt_prog_compiler_static='$wl-static'
8722	;;
8723      esac
8724      ;;
8725
8726    hpux9* | hpux10* | hpux11*)
8727      lt_prog_compiler_wl='-Wl,'
8728      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8729      # not for PA HP-UX.
8730      case $host_cpu in
8731      hppa*64*|ia64*)
8732	# +Z the default
8733	;;
8734      *)
8735	lt_prog_compiler_pic='+Z'
8736	;;
8737      esac
8738      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8739      lt_prog_compiler_static='$wl-a ${wl}archive'
8740      ;;
8741
8742    irix5* | irix6* | nonstopux*)
8743      lt_prog_compiler_wl='-Wl,'
8744      # PIC (with -KPIC) is the default.
8745      lt_prog_compiler_static='-non_shared'
8746      ;;
8747
8748    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8749      case $cc_basename in
8750      # old Intel for x86_64, which still supported -KPIC.
8751      ecc*)
8752	lt_prog_compiler_wl='-Wl,'
8753	lt_prog_compiler_pic='-KPIC'
8754	lt_prog_compiler_static='-static'
8755        ;;
8756      # icc used to be incompatible with GCC.
8757      # ICC 10 doesn't accept -KPIC any more.
8758      icc* | ifort*)
8759	lt_prog_compiler_wl='-Wl,'
8760	lt_prog_compiler_pic='-fPIC'
8761	lt_prog_compiler_static='-static'
8762        ;;
8763      # Lahey Fortran 8.1.
8764      lf95*)
8765	lt_prog_compiler_wl='-Wl,'
8766	lt_prog_compiler_pic='--shared'
8767	lt_prog_compiler_static='--static'
8768	;;
8769      nagfor*)
8770	# NAG Fortran compiler
8771	lt_prog_compiler_wl='-Wl,-Wl,,'
8772	lt_prog_compiler_pic='-PIC'
8773	lt_prog_compiler_static='-Bstatic'
8774	;;
8775      tcc*)
8776	# Fabrice Bellard et al's Tiny C Compiler
8777	lt_prog_compiler_wl='-Wl,'
8778	lt_prog_compiler_pic='-fPIC'
8779	lt_prog_compiler_static='-static'
8780	;;
8781      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8782        # Portland Group compilers (*not* the Pentium gcc compiler,
8783	# which looks to be a dead project)
8784	lt_prog_compiler_wl='-Wl,'
8785	lt_prog_compiler_pic='-fpic'
8786	lt_prog_compiler_static='-Bstatic'
8787        ;;
8788      ccc*)
8789        lt_prog_compiler_wl='-Wl,'
8790        # All Alpha code is PIC.
8791        lt_prog_compiler_static='-non_shared'
8792        ;;
8793      xl* | bgxl* | bgf* | mpixl*)
8794	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8795	lt_prog_compiler_wl='-Wl,'
8796	lt_prog_compiler_pic='-qpic'
8797	lt_prog_compiler_static='-qstaticlink'
8798	;;
8799      *)
8800	case `$CC -V 2>&1 | sed 5q` in
8801	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8802	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8803	  lt_prog_compiler_pic='-KPIC'
8804	  lt_prog_compiler_static='-Bstatic'
8805	  lt_prog_compiler_wl=''
8806	  ;;
8807	*Sun\ F* | *Sun*Fortran*)
8808	  lt_prog_compiler_pic='-KPIC'
8809	  lt_prog_compiler_static='-Bstatic'
8810	  lt_prog_compiler_wl='-Qoption ld '
8811	  ;;
8812	*Sun\ C*)
8813	  # Sun C 5.9
8814	  lt_prog_compiler_pic='-KPIC'
8815	  lt_prog_compiler_static='-Bstatic'
8816	  lt_prog_compiler_wl='-Wl,'
8817	  ;;
8818        *Intel*\ [CF]*Compiler*)
8819	  lt_prog_compiler_wl='-Wl,'
8820	  lt_prog_compiler_pic='-fPIC'
8821	  lt_prog_compiler_static='-static'
8822	  ;;
8823	*Portland\ Group*)
8824	  lt_prog_compiler_wl='-Wl,'
8825	  lt_prog_compiler_pic='-fpic'
8826	  lt_prog_compiler_static='-Bstatic'
8827	  ;;
8828	esac
8829	;;
8830      esac
8831      ;;
8832
8833    newsos6)
8834      lt_prog_compiler_pic='-KPIC'
8835      lt_prog_compiler_static='-Bstatic'
8836      ;;
8837
8838    *nto* | *qnx*)
8839      # QNX uses GNU C++, but need to define -shared option too, otherwise
8840      # it will coredump.
8841      lt_prog_compiler_pic='-fPIC -shared'
8842      ;;
8843
8844    osf3* | osf4* | osf5*)
8845      lt_prog_compiler_wl='-Wl,'
8846      # All OSF/1 code is PIC.
8847      lt_prog_compiler_static='-non_shared'
8848      ;;
8849
8850    rdos*)
8851      lt_prog_compiler_static='-non_shared'
8852      ;;
8853
8854    solaris*)
8855      lt_prog_compiler_pic='-KPIC'
8856      lt_prog_compiler_static='-Bstatic'
8857      case $cc_basename in
8858      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8859	lt_prog_compiler_wl='-Qoption ld ';;
8860      *)
8861	lt_prog_compiler_wl='-Wl,';;
8862      esac
8863      ;;
8864
8865    sunos4*)
8866      lt_prog_compiler_wl='-Qoption ld '
8867      lt_prog_compiler_pic='-PIC'
8868      lt_prog_compiler_static='-Bstatic'
8869      ;;
8870
8871    sysv4 | sysv4.2uw2* | sysv4.3*)
8872      lt_prog_compiler_wl='-Wl,'
8873      lt_prog_compiler_pic='-KPIC'
8874      lt_prog_compiler_static='-Bstatic'
8875      ;;
8876
8877    sysv4*MP*)
8878      if test -d /usr/nec; then
8879	lt_prog_compiler_pic='-Kconform_pic'
8880	lt_prog_compiler_static='-Bstatic'
8881      fi
8882      ;;
8883
8884    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8885      lt_prog_compiler_wl='-Wl,'
8886      lt_prog_compiler_pic='-KPIC'
8887      lt_prog_compiler_static='-Bstatic'
8888      ;;
8889
8890    unicos*)
8891      lt_prog_compiler_wl='-Wl,'
8892      lt_prog_compiler_can_build_shared=no
8893      ;;
8894
8895    uts4*)
8896      lt_prog_compiler_pic='-pic'
8897      lt_prog_compiler_static='-Bstatic'
8898      ;;
8899
8900    *)
8901      lt_prog_compiler_can_build_shared=no
8902      ;;
8903    esac
8904  fi
8905
8906case $host_os in
8907  # For platforms that do not support PIC, -DPIC is meaningless:
8908  *djgpp*)
8909    lt_prog_compiler_pic=
8910    ;;
8911  *)
8912    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8913    ;;
8914esac
8915
8916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8917$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8918if ${lt_cv_prog_compiler_pic+:} false; then :
8919  $as_echo_n "(cached) " >&6
8920else
8921  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8922fi
8923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8924$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8925lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8926
8927#
8928# Check to make sure the PIC flag actually works.
8929#
8930if test -n "$lt_prog_compiler_pic"; then
8931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8932$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8933if ${lt_cv_prog_compiler_pic_works+:} false; then :
8934  $as_echo_n "(cached) " >&6
8935else
8936  lt_cv_prog_compiler_pic_works=no
8937   ac_outfile=conftest.$ac_objext
8938   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8939   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8940   # Insert the option either (1) after the last *FLAGS variable, or
8941   # (2) before a word containing "conftest.", or (3) at the end.
8942   # Note that $ac_compile itself does not contain backslashes and begins
8943   # with a dollar sign (not a hyphen), so the echo should work correctly.
8944   # The option is referenced via a variable to avoid confusing sed.
8945   lt_compile=`echo "$ac_compile" | $SED \
8946   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8947   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8948   -e 's:$: $lt_compiler_flag:'`
8949   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8950   (eval "$lt_compile" 2>conftest.err)
8951   ac_status=$?
8952   cat conftest.err >&5
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   if (exit $ac_status) && test -s "$ac_outfile"; then
8955     # The compiler can only warn and ignore the option if not recognized
8956     # So say no if there are warnings other than the usual output.
8957     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8958     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8959     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8960       lt_cv_prog_compiler_pic_works=yes
8961     fi
8962   fi
8963   $RM conftest*
8964
8965fi
8966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8967$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8968
8969if test yes = "$lt_cv_prog_compiler_pic_works"; then
8970    case $lt_prog_compiler_pic in
8971     "" | " "*) ;;
8972     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8973     esac
8974else
8975    lt_prog_compiler_pic=
8976     lt_prog_compiler_can_build_shared=no
8977fi
8978
8979fi
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991#
8992# Check to make sure the static flag actually works.
8993#
8994wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8996$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8997if ${lt_cv_prog_compiler_static_works+:} false; then :
8998  $as_echo_n "(cached) " >&6
8999else
9000  lt_cv_prog_compiler_static_works=no
9001   save_LDFLAGS=$LDFLAGS
9002   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9003   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9004   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9005     # The linker can only warn and ignore the option if not recognized
9006     # So say no if there are warnings
9007     if test -s conftest.err; then
9008       # Append any errors to the config.log.
9009       cat conftest.err 1>&5
9010       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9011       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9012       if diff conftest.exp conftest.er2 >/dev/null; then
9013         lt_cv_prog_compiler_static_works=yes
9014       fi
9015     else
9016       lt_cv_prog_compiler_static_works=yes
9017     fi
9018   fi
9019   $RM -r conftest*
9020   LDFLAGS=$save_LDFLAGS
9021
9022fi
9023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9024$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9025
9026if test yes = "$lt_cv_prog_compiler_static_works"; then
9027    :
9028else
9029    lt_prog_compiler_static=
9030fi
9031
9032
9033
9034
9035
9036
9037
9038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9039$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9040if ${lt_cv_prog_compiler_c_o+:} false; then :
9041  $as_echo_n "(cached) " >&6
9042else
9043  lt_cv_prog_compiler_c_o=no
9044   $RM -r conftest 2>/dev/null
9045   mkdir conftest
9046   cd conftest
9047   mkdir out
9048   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9049
9050   lt_compiler_flag="-o out/conftest2.$ac_objext"
9051   # Insert the option either (1) after the last *FLAGS variable, or
9052   # (2) before a word containing "conftest.", or (3) at the end.
9053   # Note that $ac_compile itself does not contain backslashes and begins
9054   # with a dollar sign (not a hyphen), so the echo should work correctly.
9055   lt_compile=`echo "$ac_compile" | $SED \
9056   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9057   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9058   -e 's:$: $lt_compiler_flag:'`
9059   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9060   (eval "$lt_compile" 2>out/conftest.err)
9061   ac_status=$?
9062   cat out/conftest.err >&5
9063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9065   then
9066     # The compiler can only warn and ignore the option if not recognized
9067     # So say no if there are warnings
9068     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9069     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9070     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9071       lt_cv_prog_compiler_c_o=yes
9072     fi
9073   fi
9074   chmod u+w . 2>&5
9075   $RM conftest*
9076   # SGI C++ compiler will create directory out/ii_files/ for
9077   # template instantiation
9078   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9079   $RM out/* && rmdir out
9080   cd ..
9081   $RM -r conftest
9082   $RM conftest*
9083
9084fi
9085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9086$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9087
9088
9089
9090
9091
9092
9093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9094$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9095if ${lt_cv_prog_compiler_c_o+:} false; then :
9096  $as_echo_n "(cached) " >&6
9097else
9098  lt_cv_prog_compiler_c_o=no
9099   $RM -r conftest 2>/dev/null
9100   mkdir conftest
9101   cd conftest
9102   mkdir out
9103   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9104
9105   lt_compiler_flag="-o out/conftest2.$ac_objext"
9106   # Insert the option either (1) after the last *FLAGS variable, or
9107   # (2) before a word containing "conftest.", or (3) at the end.
9108   # Note that $ac_compile itself does not contain backslashes and begins
9109   # with a dollar sign (not a hyphen), so the echo should work correctly.
9110   lt_compile=`echo "$ac_compile" | $SED \
9111   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9112   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9113   -e 's:$: $lt_compiler_flag:'`
9114   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9115   (eval "$lt_compile" 2>out/conftest.err)
9116   ac_status=$?
9117   cat out/conftest.err >&5
9118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9120   then
9121     # The compiler can only warn and ignore the option if not recognized
9122     # So say no if there are warnings
9123     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9124     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9125     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9126       lt_cv_prog_compiler_c_o=yes
9127     fi
9128   fi
9129   chmod u+w . 2>&5
9130   $RM conftest*
9131   # SGI C++ compiler will create directory out/ii_files/ for
9132   # template instantiation
9133   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9134   $RM out/* && rmdir out
9135   cd ..
9136   $RM -r conftest
9137   $RM conftest*
9138
9139fi
9140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9141$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9142
9143
9144
9145
9146hard_links=nottested
9147if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9148  # do not overwrite the value of need_locks provided by the user
9149  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9150$as_echo_n "checking if we can lock with hard links... " >&6; }
9151  hard_links=yes
9152  $RM conftest*
9153  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9154  touch conftest.a
9155  ln conftest.a conftest.b 2>&5 || hard_links=no
9156  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9158$as_echo "$hard_links" >&6; }
9159  if test no = "$hard_links"; then
9160    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9161$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9162    need_locks=warn
9163  fi
9164else
9165  need_locks=no
9166fi
9167
9168
9169
9170
9171
9172
9173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9174$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9175
9176  runpath_var=
9177  allow_undefined_flag=
9178  always_export_symbols=no
9179  archive_cmds=
9180  archive_expsym_cmds=
9181  compiler_needs_object=no
9182  enable_shared_with_static_runtimes=no
9183  export_dynamic_flag_spec=
9184  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9185  hardcode_automatic=no
9186  hardcode_direct=no
9187  hardcode_direct_absolute=no
9188  hardcode_libdir_flag_spec=
9189  hardcode_libdir_separator=
9190  hardcode_minus_L=no
9191  hardcode_shlibpath_var=unsupported
9192  inherit_rpath=no
9193  link_all_deplibs=unknown
9194  module_cmds=
9195  module_expsym_cmds=
9196  old_archive_from_new_cmds=
9197  old_archive_from_expsyms_cmds=
9198  thread_safe_flag_spec=
9199  whole_archive_flag_spec=
9200  # include_expsyms should be a list of space-separated symbols to be *always*
9201  # included in the symbol list
9202  include_expsyms=
9203  # exclude_expsyms can be an extended regexp of symbols to exclude
9204  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9205  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9206  # as well as any symbol that contains 'd'.
9207  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9208  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9209  # platforms (ab)use it in PIC code, but their linkers get confused if
9210  # the symbol is explicitly referenced.  Since portable code cannot
9211  # rely on this symbol name, it's probably fine to never include it in
9212  # preloaded symbol tables.
9213  # Exclude shared library initialization/finalization symbols.
9214  extract_expsyms_cmds=
9215
9216  case $host_os in
9217  cygwin* | mingw* | pw32* | cegcc*)
9218    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9219    # When not using gcc, we currently assume that we are using
9220    # Microsoft Visual C++.
9221    if test yes != "$GCC"; then
9222      with_gnu_ld=no
9223    fi
9224    ;;
9225  interix*)
9226    # we just hope/assume this is gcc and not c89 (= MSVC++)
9227    with_gnu_ld=yes
9228    ;;
9229  openbsd* | bitrig*)
9230    with_gnu_ld=no
9231    ;;
9232  esac
9233
9234  ld_shlibs=yes
9235
9236  # On some targets, GNU ld is compatible enough with the native linker
9237  # that we're better off using the native interface for both.
9238  lt_use_gnu_ld_interface=no
9239  if test yes = "$with_gnu_ld"; then
9240    case $host_os in
9241      aix*)
9242	# The AIX port of GNU ld has always aspired to compatibility
9243	# with the native linker.  However, as the warning in the GNU ld
9244	# block says, versions before 2.19.5* couldn't really create working
9245	# shared libraries, regardless of the interface used.
9246	case `$LD -v 2>&1` in
9247	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9248	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9249	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9250	  *)
9251	    lt_use_gnu_ld_interface=yes
9252	    ;;
9253	esac
9254	;;
9255      *)
9256	lt_use_gnu_ld_interface=yes
9257	;;
9258    esac
9259  fi
9260
9261  if test yes = "$lt_use_gnu_ld_interface"; then
9262    # If archive_cmds runs LD, not CC, wlarc should be empty
9263    wlarc='$wl'
9264
9265    # Set some defaults for GNU ld with shared library support. These
9266    # are reset later if shared libraries are not supported. Putting them
9267    # here allows them to be overridden if necessary.
9268    runpath_var=LD_RUN_PATH
9269    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9270    export_dynamic_flag_spec='$wl--export-dynamic'
9271    # ancient GNU ld didn't support --whole-archive et. al.
9272    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9273      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9274    else
9275      whole_archive_flag_spec=
9276    fi
9277    supports_anon_versioning=no
9278    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9279      *GNU\ gold*) supports_anon_versioning=yes ;;
9280      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9281      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9282      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9283      *\ 2.11.*) ;; # other 2.11 versions
9284      *) supports_anon_versioning=yes ;;
9285    esac
9286
9287    # See if GNU ld supports shared libraries.
9288    case $host_os in
9289    aix[3-9]*)
9290      # On AIX/PPC, the GNU linker is very broken
9291      if test ia64 != "$host_cpu"; then
9292	ld_shlibs=no
9293	cat <<_LT_EOF 1>&2
9294
9295*** Warning: the GNU linker, at least up to release 2.19, is reported
9296*** to be unable to reliably create shared libraries on AIX.
9297*** Therefore, libtool is disabling shared libraries support.  If you
9298*** really care for shared libraries, you may want to install binutils
9299*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9300*** You will then need to restart the configuration process.
9301
9302_LT_EOF
9303      fi
9304      ;;
9305
9306    amigaos*)
9307      case $host_cpu in
9308      powerpc)
9309            # see comment about AmigaOS4 .so support
9310            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9311            archive_expsym_cmds=''
9312        ;;
9313      m68k)
9314            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)'
9315            hardcode_libdir_flag_spec='-L$libdir'
9316            hardcode_minus_L=yes
9317        ;;
9318      esac
9319      ;;
9320
9321    beos*)
9322      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9323	allow_undefined_flag=unsupported
9324	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9325	# support --undefined.  This deserves some investigation.  FIXME
9326	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9327      else
9328	ld_shlibs=no
9329      fi
9330      ;;
9331
9332    cygwin* | mingw* | pw32* | cegcc*)
9333      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9334      # as there is no search path for DLLs.
9335      hardcode_libdir_flag_spec='-L$libdir'
9336      export_dynamic_flag_spec='$wl--export-all-symbols'
9337      allow_undefined_flag=unsupported
9338      always_export_symbols=no
9339      enable_shared_with_static_runtimes=yes
9340      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'
9341      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9342
9343      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9344        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9345	# If the export-symbols file already is a .def file, use it as
9346	# is; otherwise, prepend EXPORTS...
9347	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9348          cp $export_symbols $output_objdir/$soname.def;
9349        else
9350          echo EXPORTS > $output_objdir/$soname.def;
9351          cat $export_symbols >> $output_objdir/$soname.def;
9352        fi~
9353        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9354      else
9355	ld_shlibs=no
9356      fi
9357      ;;
9358
9359    haiku*)
9360      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9361      link_all_deplibs=yes
9362      ;;
9363
9364    os2*)
9365      hardcode_libdir_flag_spec='-L$libdir'
9366      hardcode_minus_L=yes
9367      allow_undefined_flag=unsupported
9368      shrext_cmds=.dll
9369      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9370	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9371	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9372	$ECHO EXPORTS >> $output_objdir/$libname.def~
9373	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9374	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9375	emximp -o $lib $output_objdir/$libname.def'
9376      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9377	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9378	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9379	$ECHO EXPORTS >> $output_objdir/$libname.def~
9380	prefix_cmds="$SED"~
9381	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9382	  prefix_cmds="$prefix_cmds -e 1d";
9383	fi~
9384	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9385	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9386	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9387	emximp -o $lib $output_objdir/$libname.def'
9388      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9389      enable_shared_with_static_runtimes=yes
9390      ;;
9391
9392    interix[3-9]*)
9393      hardcode_direct=no
9394      hardcode_shlibpath_var=no
9395      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9396      export_dynamic_flag_spec='$wl-E'
9397      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9398      # Instead, shared libraries are loaded at an image base (0x10000000 by
9399      # default) and relocated if they conflict, which is a slow very memory
9400      # consuming and fragmenting process.  To avoid this, we pick a random,
9401      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9402      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9403      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9404      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'
9405      ;;
9406
9407    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9408      tmp_diet=no
9409      if test linux-dietlibc = "$host_os"; then
9410	case $cc_basename in
9411	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9412	esac
9413      fi
9414      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9415	 && test no = "$tmp_diet"
9416      then
9417	tmp_addflag=' $pic_flag'
9418	tmp_sharedflag='-shared'
9419	case $cc_basename,$host_cpu in
9420        pgcc*)				# Portland Group C compiler
9421	  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'
9422	  tmp_addflag=' $pic_flag'
9423	  ;;
9424	pgf77* | pgf90* | pgf95* | pgfortran*)
9425					# Portland Group f77 and f90 compilers
9426	  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'
9427	  tmp_addflag=' $pic_flag -Mnomain' ;;
9428	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9429	  tmp_addflag=' -i_dynamic' ;;
9430	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9431	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9432	ifc* | ifort*)			# Intel Fortran compiler
9433	  tmp_addflag=' -nofor_main' ;;
9434	lf95*)				# Lahey Fortran 8.1
9435	  whole_archive_flag_spec=
9436	  tmp_sharedflag='--shared' ;;
9437        nagfor*)                        # NAGFOR 5.3
9438          tmp_sharedflag='-Wl,-shared' ;;
9439	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9440	  tmp_sharedflag='-qmkshrobj'
9441	  tmp_addflag= ;;
9442	nvcc*)	# Cuda Compiler Driver 2.2
9443	  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'
9444	  compiler_needs_object=yes
9445	  ;;
9446	esac
9447	case `$CC -V 2>&1 | sed 5q` in
9448	*Sun\ C*)			# Sun C 5.9
9449	  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'
9450	  compiler_needs_object=yes
9451	  tmp_sharedflag='-G' ;;
9452	*Sun\ F*)			# Sun Fortran 8.3
9453	  tmp_sharedflag='-G' ;;
9454	esac
9455	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9456
9457        if test yes = "$supports_anon_versioning"; then
9458          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9459            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9460            echo "local: *; };" >> $output_objdir/$libname.ver~
9461            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9462        fi
9463
9464	case $cc_basename in
9465	tcc*)
9466	  export_dynamic_flag_spec='-rdynamic'
9467	  ;;
9468	xlf* | bgf* | bgxlf* | mpixlf*)
9469	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9470	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9471	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9472	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9473	  if test yes = "$supports_anon_versioning"; then
9474	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9475              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9476              echo "local: *; };" >> $output_objdir/$libname.ver~
9477              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9478	  fi
9479	  ;;
9480	esac
9481      else
9482        ld_shlibs=no
9483      fi
9484      ;;
9485
9486    netbsd*)
9487      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9488	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9489	wlarc=
9490      else
9491	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9492	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9493      fi
9494      ;;
9495
9496    solaris*)
9497      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9498	ld_shlibs=no
9499	cat <<_LT_EOF 1>&2
9500
9501*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9502*** create shared libraries on Solaris systems.  Therefore, libtool
9503*** is disabling shared libraries support.  We urge you to upgrade GNU
9504*** binutils to release 2.9.1 or newer.  Another option is to modify
9505*** your PATH or compiler configuration so that the native linker is
9506*** used, and then restart.
9507
9508_LT_EOF
9509      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9510	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9511	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9512      else
9513	ld_shlibs=no
9514      fi
9515      ;;
9516
9517    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9518      case `$LD -v 2>&1` in
9519        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9520	ld_shlibs=no
9521	cat <<_LT_EOF 1>&2
9522
9523*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9524*** reliably create shared libraries on SCO systems.  Therefore, libtool
9525*** is disabling shared libraries support.  We urge you to upgrade GNU
9526*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9527*** your PATH or compiler configuration so that the native linker is
9528*** used, and then restart.
9529
9530_LT_EOF
9531	;;
9532	*)
9533	  # For security reasons, it is highly recommended that you always
9534	  # use absolute paths for naming shared libraries, and exclude the
9535	  # DT_RUNPATH tag from executables and libraries.  But doing so
9536	  # requires that you compile everything twice, which is a pain.
9537	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9538	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9539	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9540	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9541	  else
9542	    ld_shlibs=no
9543	  fi
9544	;;
9545      esac
9546      ;;
9547
9548    sunos4*)
9549      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9550      wlarc=
9551      hardcode_direct=yes
9552      hardcode_shlibpath_var=no
9553      ;;
9554
9555    *)
9556      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9557	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9558	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9559      else
9560	ld_shlibs=no
9561      fi
9562      ;;
9563    esac
9564
9565    if test no = "$ld_shlibs"; then
9566      runpath_var=
9567      hardcode_libdir_flag_spec=
9568      export_dynamic_flag_spec=
9569      whole_archive_flag_spec=
9570    fi
9571  else
9572    # PORTME fill in a description of your system's linker (not GNU ld)
9573    case $host_os in
9574    aix3*)
9575      allow_undefined_flag=unsupported
9576      always_export_symbols=yes
9577      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'
9578      # Note: this linker hardcodes the directories in LIBPATH if there
9579      # are no directories specified by -L.
9580      hardcode_minus_L=yes
9581      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9582	# Neither direct hardcoding nor static linking is supported with a
9583	# broken collect2.
9584	hardcode_direct=unsupported
9585      fi
9586      ;;
9587
9588    aix[4-9]*)
9589      if test ia64 = "$host_cpu"; then
9590	# On IA64, the linker does run time linking by default, so we don't
9591	# have to do anything special.
9592	aix_use_runtimelinking=no
9593	exp_sym_flag='-Bexport'
9594	no_entry_flag=
9595      else
9596	# If we're using GNU nm, then we don't want the "-C" option.
9597	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9598	# Without the "-l" option, or with the "-B" option, AIX nm treats
9599	# weak defined symbols like other global defined symbols, whereas
9600	# GNU nm marks them as "W".
9601	# While the 'weak' keyword is ignored in the Export File, we need
9602	# it in the Import File for the 'aix-soname' feature, so we have
9603	# to replace the "-B" option with "-P" for AIX nm.
9604	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9605	  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'
9606	else
9607	  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'
9608	fi
9609	aix_use_runtimelinking=no
9610
9611	# Test if we are trying to use run time linking or normal
9612	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9613	# have runtime linking enabled, and use it for executables.
9614	# For shared libraries, we enable/disable runtime linking
9615	# depending on the kind of the shared library created -
9616	# when "with_aix_soname,aix_use_runtimelinking" is:
9617	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9618	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9619	#            lib.a           static archive
9620	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9621	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9622	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9623	#            lib.a(lib.so.V) shared, rtl:no
9624	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9625	#            lib.a           static archive
9626	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9627	  for ld_flag in $LDFLAGS; do
9628	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9629	    aix_use_runtimelinking=yes
9630	    break
9631	  fi
9632	  done
9633	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9634	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9635	    # so we don't have lib.a shared libs to link our executables.
9636	    # We have to force runtime linking in this case.
9637	    aix_use_runtimelinking=yes
9638	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9639	  fi
9640	  ;;
9641	esac
9642
9643	exp_sym_flag='-bexport'
9644	no_entry_flag='-bnoentry'
9645      fi
9646
9647      # When large executables or shared objects are built, AIX ld can
9648      # have problems creating the table of contents.  If linking a library
9649      # or program results in "error TOC overflow" add -mminimal-toc to
9650      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9651      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9652
9653      archive_cmds=''
9654      hardcode_direct=yes
9655      hardcode_direct_absolute=yes
9656      hardcode_libdir_separator=':'
9657      link_all_deplibs=yes
9658      file_list_spec='$wl-f,'
9659      case $with_aix_soname,$aix_use_runtimelinking in
9660      aix,*) ;; # traditional, no import file
9661      svr4,* | *,yes) # use import file
9662	# The Import File defines what to hardcode.
9663	hardcode_direct=no
9664	hardcode_direct_absolute=no
9665	;;
9666      esac
9667
9668      if test yes = "$GCC"; then
9669	case $host_os in aix4.[012]|aix4.[012].*)
9670	# We only want to do this on AIX 4.2 and lower, the check
9671	# below for broken collect2 doesn't work under 4.3+
9672	  collect2name=`$CC -print-prog-name=collect2`
9673	  if test -f "$collect2name" &&
9674	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9675	  then
9676	  # We have reworked collect2
9677	  :
9678	  else
9679	  # We have old collect2
9680	  hardcode_direct=unsupported
9681	  # It fails to find uninstalled libraries when the uninstalled
9682	  # path is not listed in the libpath.  Setting hardcode_minus_L
9683	  # to unsupported forces relinking
9684	  hardcode_minus_L=yes
9685	  hardcode_libdir_flag_spec='-L$libdir'
9686	  hardcode_libdir_separator=
9687	  fi
9688	  ;;
9689	esac
9690	shared_flag='-shared'
9691	if test yes = "$aix_use_runtimelinking"; then
9692	  shared_flag="$shared_flag "'$wl-G'
9693	fi
9694	# Need to ensure runtime linking is disabled for the traditional
9695	# shared library, or the linker may eventually find shared libraries
9696	# /with/ Import File - we do not want to mix them.
9697	shared_flag_aix='-shared'
9698	shared_flag_svr4='-shared $wl-G'
9699      else
9700	# not using gcc
9701	if test ia64 = "$host_cpu"; then
9702	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9703	# chokes on -Wl,-G. The following line is correct:
9704	  shared_flag='-G'
9705	else
9706	  if test yes = "$aix_use_runtimelinking"; then
9707	    shared_flag='$wl-G'
9708	  else
9709	    shared_flag='$wl-bM:SRE'
9710	  fi
9711	  shared_flag_aix='$wl-bM:SRE'
9712	  shared_flag_svr4='$wl-G'
9713	fi
9714      fi
9715
9716      export_dynamic_flag_spec='$wl-bexpall'
9717      # It seems that -bexpall does not export symbols beginning with
9718      # underscore (_), so it is better to generate a list of symbols to export.
9719      always_export_symbols=yes
9720      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9721	# Warning - without using the other runtime loading flags (-brtl),
9722	# -berok will link without error, but may produce a broken library.
9723	allow_undefined_flag='-berok'
9724        # Determine the default libpath from the value encoded in an
9725        # empty executable.
9726        if test set = "${lt_cv_aix_libpath+set}"; then
9727  aix_libpath=$lt_cv_aix_libpath
9728else
9729  if ${lt_cv_aix_libpath_+:} false; then :
9730  $as_echo_n "(cached) " >&6
9731else
9732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733/* end confdefs.h.  */
9734
9735int
9736main ()
9737{
9738
9739  ;
9740  return 0;
9741}
9742_ACEOF
9743if ac_fn_c_try_link "$LINENO"; then :
9744
9745  lt_aix_libpath_sed='
9746      /Import File Strings/,/^$/ {
9747	  /^0/ {
9748	      s/^0  *\([^ ]*\) *$/\1/
9749	      p
9750	  }
9751      }'
9752  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9753  # Check for a 64-bit object if we didn't find anything.
9754  if test -z "$lt_cv_aix_libpath_"; then
9755    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9756  fi
9757fi
9758rm -f core conftest.err conftest.$ac_objext \
9759    conftest$ac_exeext conftest.$ac_ext
9760  if test -z "$lt_cv_aix_libpath_"; then
9761    lt_cv_aix_libpath_=/usr/lib:/lib
9762  fi
9763
9764fi
9765
9766  aix_libpath=$lt_cv_aix_libpath_
9767fi
9768
9769        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9770        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
9771      else
9772	if test ia64 = "$host_cpu"; then
9773	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9774	  allow_undefined_flag="-z nodefs"
9775	  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"
9776	else
9777	 # Determine the default libpath from the value encoded in an
9778	 # empty executable.
9779	 if test set = "${lt_cv_aix_libpath+set}"; then
9780  aix_libpath=$lt_cv_aix_libpath
9781else
9782  if ${lt_cv_aix_libpath_+:} false; then :
9783  $as_echo_n "(cached) " >&6
9784else
9785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786/* end confdefs.h.  */
9787
9788int
9789main ()
9790{
9791
9792  ;
9793  return 0;
9794}
9795_ACEOF
9796if ac_fn_c_try_link "$LINENO"; then :
9797
9798  lt_aix_libpath_sed='
9799      /Import File Strings/,/^$/ {
9800	  /^0/ {
9801	      s/^0  *\([^ ]*\) *$/\1/
9802	      p
9803	  }
9804      }'
9805  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9806  # Check for a 64-bit object if we didn't find anything.
9807  if test -z "$lt_cv_aix_libpath_"; then
9808    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9809  fi
9810fi
9811rm -f core conftest.err conftest.$ac_objext \
9812    conftest$ac_exeext conftest.$ac_ext
9813  if test -z "$lt_cv_aix_libpath_"; then
9814    lt_cv_aix_libpath_=/usr/lib:/lib
9815  fi
9816
9817fi
9818
9819  aix_libpath=$lt_cv_aix_libpath_
9820fi
9821
9822	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9823	  # Warning - without using the other run time loading flags,
9824	  # -berok will link without error, but may produce a broken library.
9825	  no_undefined_flag=' $wl-bernotok'
9826	  allow_undefined_flag=' $wl-berok'
9827	  if test yes = "$with_gnu_ld"; then
9828	    # We only use this code for GNU lds that support --whole-archive.
9829	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9830	  else
9831	    # Exported symbols can be pulled into shared objects from archives
9832	    whole_archive_flag_spec='$convenience'
9833	  fi
9834	  archive_cmds_need_lc=yes
9835	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9836	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9837	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9838	  if test svr4 != "$with_aix_soname"; then
9839	    # This is similar to how AIX traditionally builds its shared libraries.
9840	    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'
9841	  fi
9842	  if test aix != "$with_aix_soname"; then
9843	    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'
9844	  else
9845	    # used by -dlpreopen to get the symbols
9846	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9847	  fi
9848	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9849	fi
9850      fi
9851      ;;
9852
9853    amigaos*)
9854      case $host_cpu in
9855      powerpc)
9856            # see comment about AmigaOS4 .so support
9857            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9858            archive_expsym_cmds=''
9859        ;;
9860      m68k)
9861            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)'
9862            hardcode_libdir_flag_spec='-L$libdir'
9863            hardcode_minus_L=yes
9864        ;;
9865      esac
9866      ;;
9867
9868    bsdi[45]*)
9869      export_dynamic_flag_spec=-rdynamic
9870      ;;
9871
9872    cygwin* | mingw* | pw32* | cegcc*)
9873      # When not using gcc, we currently assume that we are using
9874      # Microsoft Visual C++.
9875      # hardcode_libdir_flag_spec is actually meaningless, as there is
9876      # no search path for DLLs.
9877      case $cc_basename in
9878      cl*)
9879	# Native MSVC
9880	hardcode_libdir_flag_spec=' '
9881	allow_undefined_flag=unsupported
9882	always_export_symbols=yes
9883	file_list_spec='@'
9884	# Tell ltmain to make .lib files, not .a files.
9885	libext=lib
9886	# Tell ltmain to make .dll files, not .so files.
9887	shrext_cmds=.dll
9888	# FIXME: Setting linknames here is a bad hack.
9889	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9890	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9891            cp "$export_symbols" "$output_objdir/$soname.def";
9892            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9893          else
9894            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9895          fi~
9896          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9897          linknames='
9898	# The linker will not automatically build a static lib if we build a DLL.
9899	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9900	enable_shared_with_static_runtimes=yes
9901	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9902	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9903	# Don't use ranlib
9904	old_postinstall_cmds='chmod 644 $oldlib'
9905	postlink_cmds='lt_outputfile="@OUTPUT@"~
9906          lt_tool_outputfile="@TOOL_OUTPUT@"~
9907          case $lt_outputfile in
9908            *.exe|*.EXE) ;;
9909            *)
9910              lt_outputfile=$lt_outputfile.exe
9911              lt_tool_outputfile=$lt_tool_outputfile.exe
9912              ;;
9913          esac~
9914          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9915            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9916            $RM "$lt_outputfile.manifest";
9917          fi'
9918	;;
9919      *)
9920	# Assume MSVC wrapper
9921	hardcode_libdir_flag_spec=' '
9922	allow_undefined_flag=unsupported
9923	# Tell ltmain to make .lib files, not .a files.
9924	libext=lib
9925	# Tell ltmain to make .dll files, not .so files.
9926	shrext_cmds=.dll
9927	# FIXME: Setting linknames here is a bad hack.
9928	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9929	# The linker will automatically build a .lib file if we build a DLL.
9930	old_archive_from_new_cmds='true'
9931	# FIXME: Should let the user specify the lib program.
9932	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9933	enable_shared_with_static_runtimes=yes
9934	;;
9935      esac
9936      ;;
9937
9938    darwin* | rhapsody*)
9939
9940
9941  archive_cmds_need_lc=no
9942  hardcode_direct=no
9943  hardcode_automatic=yes
9944  hardcode_shlibpath_var=unsupported
9945  if test yes = "$lt_cv_ld_force_load"; then
9946    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\"`'
9947
9948  else
9949    whole_archive_flag_spec=''
9950  fi
9951  link_all_deplibs=yes
9952  allow_undefined_flag=$_lt_dar_allow_undefined
9953  case $cc_basename in
9954     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9955     *) _lt_dar_can_shared=$GCC ;;
9956  esac
9957  if test yes = "$_lt_dar_can_shared"; then
9958    output_verbose_link_cmd=func_echo_all
9959    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9960    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9961    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"
9962    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"
9963
9964  else
9965  ld_shlibs=no
9966  fi
9967
9968      ;;
9969
9970    dgux*)
9971      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972      hardcode_libdir_flag_spec='-L$libdir'
9973      hardcode_shlibpath_var=no
9974      ;;
9975
9976    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9977    # support.  Future versions do this automatically, but an explicit c++rt0.o
9978    # does not break anything, and helps significantly (at the cost of a little
9979    # extra space).
9980    freebsd2.2*)
9981      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9982      hardcode_libdir_flag_spec='-R$libdir'
9983      hardcode_direct=yes
9984      hardcode_shlibpath_var=no
9985      ;;
9986
9987    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9988    freebsd2.*)
9989      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9990      hardcode_direct=yes
9991      hardcode_minus_L=yes
9992      hardcode_shlibpath_var=no
9993      ;;
9994
9995    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9996    freebsd* | dragonfly*)
9997      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9998      hardcode_libdir_flag_spec='-R$libdir'
9999      hardcode_direct=yes
10000      hardcode_shlibpath_var=no
10001      ;;
10002
10003    hpux9*)
10004      if test yes = "$GCC"; then
10005	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'
10006      else
10007	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'
10008      fi
10009      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10010      hardcode_libdir_separator=:
10011      hardcode_direct=yes
10012
10013      # hardcode_minus_L: Not really in the search PATH,
10014      # but as the default location of the library.
10015      hardcode_minus_L=yes
10016      export_dynamic_flag_spec='$wl-E'
10017      ;;
10018
10019    hpux10*)
10020      if test yes,no = "$GCC,$with_gnu_ld"; then
10021	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10022      else
10023	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10024      fi
10025      if test no = "$with_gnu_ld"; then
10026	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10027	hardcode_libdir_separator=:
10028	hardcode_direct=yes
10029	hardcode_direct_absolute=yes
10030	export_dynamic_flag_spec='$wl-E'
10031	# hardcode_minus_L: Not really in the search PATH,
10032	# but as the default location of the library.
10033	hardcode_minus_L=yes
10034      fi
10035      ;;
10036
10037    hpux11*)
10038      if test yes,no = "$GCC,$with_gnu_ld"; then
10039	case $host_cpu in
10040	hppa*64*)
10041	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10042	  ;;
10043	ia64*)
10044	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10045	  ;;
10046	*)
10047	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10048	  ;;
10049	esac
10050      else
10051	case $host_cpu in
10052	hppa*64*)
10053	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10054	  ;;
10055	ia64*)
10056	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10057	  ;;
10058	*)
10059
10060	  # Older versions of the 11.00 compiler do not understand -b yet
10061	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10062	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10063$as_echo_n "checking if $CC understands -b... " >&6; }
10064if ${lt_cv_prog_compiler__b+:} false; then :
10065  $as_echo_n "(cached) " >&6
10066else
10067  lt_cv_prog_compiler__b=no
10068   save_LDFLAGS=$LDFLAGS
10069   LDFLAGS="$LDFLAGS -b"
10070   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10071   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10072     # The linker can only warn and ignore the option if not recognized
10073     # So say no if there are warnings
10074     if test -s conftest.err; then
10075       # Append any errors to the config.log.
10076       cat conftest.err 1>&5
10077       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10078       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10079       if diff conftest.exp conftest.er2 >/dev/null; then
10080         lt_cv_prog_compiler__b=yes
10081       fi
10082     else
10083       lt_cv_prog_compiler__b=yes
10084     fi
10085   fi
10086   $RM -r conftest*
10087   LDFLAGS=$save_LDFLAGS
10088
10089fi
10090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10091$as_echo "$lt_cv_prog_compiler__b" >&6; }
10092
10093if test yes = "$lt_cv_prog_compiler__b"; then
10094    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10095else
10096    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10097fi
10098
10099	  ;;
10100	esac
10101      fi
10102      if test no = "$with_gnu_ld"; then
10103	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10104	hardcode_libdir_separator=:
10105
10106	case $host_cpu in
10107	hppa*64*|ia64*)
10108	  hardcode_direct=no
10109	  hardcode_shlibpath_var=no
10110	  ;;
10111	*)
10112	  hardcode_direct=yes
10113	  hardcode_direct_absolute=yes
10114	  export_dynamic_flag_spec='$wl-E'
10115
10116	  # hardcode_minus_L: Not really in the search PATH,
10117	  # but as the default location of the library.
10118	  hardcode_minus_L=yes
10119	  ;;
10120	esac
10121      fi
10122      ;;
10123
10124    irix5* | irix6* | nonstopux*)
10125      if test yes = "$GCC"; then
10126	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'
10127	# Try to use the -exported_symbol ld option, if it does not
10128	# work, assume that -exports_file does not work either and
10129	# implicitly export all symbols.
10130	# This should be the same for all languages, so no per-tag cache variable.
10131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10132$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10133if ${lt_cv_irix_exported_symbol+:} false; then :
10134  $as_echo_n "(cached) " >&6
10135else
10136  save_LDFLAGS=$LDFLAGS
10137	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10138	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139/* end confdefs.h.  */
10140int foo (void) { return 0; }
10141_ACEOF
10142if ac_fn_c_try_link "$LINENO"; then :
10143  lt_cv_irix_exported_symbol=yes
10144else
10145  lt_cv_irix_exported_symbol=no
10146fi
10147rm -f core conftest.err conftest.$ac_objext \
10148    conftest$ac_exeext conftest.$ac_ext
10149           LDFLAGS=$save_LDFLAGS
10150fi
10151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10152$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10153	if test yes = "$lt_cv_irix_exported_symbol"; then
10154          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'
10155	fi
10156      else
10157	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'
10158	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'
10159      fi
10160      archive_cmds_need_lc='no'
10161      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10162      hardcode_libdir_separator=:
10163      inherit_rpath=yes
10164      link_all_deplibs=yes
10165      ;;
10166
10167    linux*)
10168      case $cc_basename in
10169      tcc*)
10170	# Fabrice Bellard et al's Tiny C Compiler
10171	ld_shlibs=yes
10172	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10173	;;
10174      esac
10175      ;;
10176
10177    netbsd*)
10178      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10179	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10180      else
10181	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10182      fi
10183      hardcode_libdir_flag_spec='-R$libdir'
10184      hardcode_direct=yes
10185      hardcode_shlibpath_var=no
10186      ;;
10187
10188    newsos6)
10189      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190      hardcode_direct=yes
10191      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10192      hardcode_libdir_separator=:
10193      hardcode_shlibpath_var=no
10194      ;;
10195
10196    *nto* | *qnx*)
10197      ;;
10198
10199    openbsd* | bitrig*)
10200      if test -f /usr/libexec/ld.so; then
10201	hardcode_direct=yes
10202	hardcode_shlibpath_var=no
10203	hardcode_direct_absolute=yes
10204	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10205	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10206	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10207	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10208	  export_dynamic_flag_spec='$wl-E'
10209	else
10210	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10211	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10212	fi
10213      else
10214	ld_shlibs=no
10215      fi
10216      ;;
10217
10218    os2*)
10219      hardcode_libdir_flag_spec='-L$libdir'
10220      hardcode_minus_L=yes
10221      allow_undefined_flag=unsupported
10222      shrext_cmds=.dll
10223      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10224	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10225	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10226	$ECHO EXPORTS >> $output_objdir/$libname.def~
10227	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10228	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10229	emximp -o $lib $output_objdir/$libname.def'
10230      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10231	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10232	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10233	$ECHO EXPORTS >> $output_objdir/$libname.def~
10234	prefix_cmds="$SED"~
10235	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10236	  prefix_cmds="$prefix_cmds -e 1d";
10237	fi~
10238	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10239	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10240	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10241	emximp -o $lib $output_objdir/$libname.def'
10242      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10243      enable_shared_with_static_runtimes=yes
10244      ;;
10245
10246    osf3*)
10247      if test yes = "$GCC"; then
10248	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10249	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'
10250      else
10251	allow_undefined_flag=' -expect_unresolved \*'
10252	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'
10253      fi
10254      archive_cmds_need_lc='no'
10255      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10256      hardcode_libdir_separator=:
10257      ;;
10258
10259    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10260      if test yes = "$GCC"; then
10261	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10262	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'
10263	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10264      else
10265	allow_undefined_flag=' -expect_unresolved \*'
10266	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'
10267	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~
10268          $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'
10269
10270	# Both c and cxx compiler support -rpath directly
10271	hardcode_libdir_flag_spec='-rpath $libdir'
10272      fi
10273      archive_cmds_need_lc='no'
10274      hardcode_libdir_separator=:
10275      ;;
10276
10277    solaris*)
10278      no_undefined_flag=' -z defs'
10279      if test yes = "$GCC"; then
10280	wlarc='$wl'
10281	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10282	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10283          $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'
10284      else
10285	case `$CC -V 2>&1` in
10286	*"Compilers 5.0"*)
10287	  wlarc=''
10288	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10289	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10290            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10291	  ;;
10292	*)
10293	  wlarc='$wl'
10294	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10295	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10296            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10297	  ;;
10298	esac
10299      fi
10300      hardcode_libdir_flag_spec='-R$libdir'
10301      hardcode_shlibpath_var=no
10302      case $host_os in
10303      solaris2.[0-5] | solaris2.[0-5].*) ;;
10304      *)
10305	# The compiler driver will combine and reorder linker options,
10306	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10307	# but is careful enough not to reorder.
10308	# Supported since Solaris 2.6 (maybe 2.5.1?)
10309	if test yes = "$GCC"; then
10310	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10311	else
10312	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10313	fi
10314	;;
10315      esac
10316      link_all_deplibs=yes
10317      ;;
10318
10319    sunos4*)
10320      if test sequent = "$host_vendor"; then
10321	# Use $CC to link under sequent, because it throws in some extra .o
10322	# files that make .init and .fini sections work.
10323	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10324      else
10325	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10326      fi
10327      hardcode_libdir_flag_spec='-L$libdir'
10328      hardcode_direct=yes
10329      hardcode_minus_L=yes
10330      hardcode_shlibpath_var=no
10331      ;;
10332
10333    sysv4)
10334      case $host_vendor in
10335	sni)
10336	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10337	  hardcode_direct=yes # is this really true???
10338	;;
10339	siemens)
10340	  ## LD is ld it makes a PLAMLIB
10341	  ## CC just makes a GrossModule.
10342	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10343	  reload_cmds='$CC -r -o $output$reload_objs'
10344	  hardcode_direct=no
10345        ;;
10346	motorola)
10347	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10348	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10349	;;
10350      esac
10351      runpath_var='LD_RUN_PATH'
10352      hardcode_shlibpath_var=no
10353      ;;
10354
10355    sysv4.3*)
10356      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10357      hardcode_shlibpath_var=no
10358      export_dynamic_flag_spec='-Bexport'
10359      ;;
10360
10361    sysv4*MP*)
10362      if test -d /usr/nec; then
10363	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10364	hardcode_shlibpath_var=no
10365	runpath_var=LD_RUN_PATH
10366	hardcode_runpath_var=yes
10367	ld_shlibs=yes
10368      fi
10369      ;;
10370
10371    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10372      no_undefined_flag='$wl-z,text'
10373      archive_cmds_need_lc=no
10374      hardcode_shlibpath_var=no
10375      runpath_var='LD_RUN_PATH'
10376
10377      if test yes = "$GCC"; then
10378	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10379	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10380      else
10381	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10382	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10383      fi
10384      ;;
10385
10386    sysv5* | sco3.2v5* | sco5v6*)
10387      # Note: We CANNOT use -z defs as we might desire, because we do not
10388      # link with -lc, and that would cause any symbols used from libc to
10389      # always be unresolved, which means just about no library would
10390      # ever link correctly.  If we're not using GNU ld we use -z text
10391      # though, which does catch some bad symbols but isn't as heavy-handed
10392      # as -z defs.
10393      no_undefined_flag='$wl-z,text'
10394      allow_undefined_flag='$wl-z,nodefs'
10395      archive_cmds_need_lc=no
10396      hardcode_shlibpath_var=no
10397      hardcode_libdir_flag_spec='$wl-R,$libdir'
10398      hardcode_libdir_separator=':'
10399      link_all_deplibs=yes
10400      export_dynamic_flag_spec='$wl-Bexport'
10401      runpath_var='LD_RUN_PATH'
10402
10403      if test yes = "$GCC"; then
10404	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10405	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10406      else
10407	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10408	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10409      fi
10410      ;;
10411
10412    uts4*)
10413      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414      hardcode_libdir_flag_spec='-L$libdir'
10415      hardcode_shlibpath_var=no
10416      ;;
10417
10418    *)
10419      ld_shlibs=no
10420      ;;
10421    esac
10422
10423    if test sni = "$host_vendor"; then
10424      case $host in
10425      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10426	export_dynamic_flag_spec='$wl-Blargedynsym'
10427	;;
10428      esac
10429    fi
10430  fi
10431
10432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10433$as_echo "$ld_shlibs" >&6; }
10434test no = "$ld_shlibs" && can_build_shared=no
10435
10436with_gnu_ld=$with_gnu_ld
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452#
10453# Do we need to explicitly link libc?
10454#
10455case "x$archive_cmds_need_lc" in
10456x|xyes)
10457  # Assume -lc should be added
10458  archive_cmds_need_lc=yes
10459
10460  if test yes,yes = "$GCC,$enable_shared"; then
10461    case $archive_cmds in
10462    *'~'*)
10463      # FIXME: we may have to deal with multi-command sequences.
10464      ;;
10465    '$CC '*)
10466      # Test whether the compiler implicitly links with -lc since on some
10467      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10468      # to ld, don't add -lc before -lgcc.
10469      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10470$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10471if ${lt_cv_archive_cmds_need_lc+:} false; then :
10472  $as_echo_n "(cached) " >&6
10473else
10474  $RM conftest*
10475	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10476
10477	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10478  (eval $ac_compile) 2>&5
10479  ac_status=$?
10480  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10481  test $ac_status = 0; } 2>conftest.err; then
10482	  soname=conftest
10483	  lib=conftest
10484	  libobjs=conftest.$ac_objext
10485	  deplibs=
10486	  wl=$lt_prog_compiler_wl
10487	  pic_flag=$lt_prog_compiler_pic
10488	  compiler_flags=-v
10489	  linker_flags=-v
10490	  verstring=
10491	  output_objdir=.
10492	  libname=conftest
10493	  lt_save_allow_undefined_flag=$allow_undefined_flag
10494	  allow_undefined_flag=
10495	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10496  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10497  ac_status=$?
10498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10499  test $ac_status = 0; }
10500	  then
10501	    lt_cv_archive_cmds_need_lc=no
10502	  else
10503	    lt_cv_archive_cmds_need_lc=yes
10504	  fi
10505	  allow_undefined_flag=$lt_save_allow_undefined_flag
10506	else
10507	  cat conftest.err 1>&5
10508	fi
10509	$RM conftest*
10510
10511fi
10512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10513$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10514      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10515      ;;
10516    esac
10517  fi
10518  ;;
10519esac
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10673$as_echo_n "checking dynamic linker characteristics... " >&6; }
10674
10675if test yes = "$GCC"; then
10676  case $host_os in
10677    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10678    *) lt_awk_arg='/^libraries:/' ;;
10679  esac
10680  case $host_os in
10681    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10682    *) lt_sed_strip_eq='s|=/|/|g' ;;
10683  esac
10684  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10685  case $lt_search_path_spec in
10686  *\;*)
10687    # if the path contains ";" then we assume it to be the separator
10688    # otherwise default to the standard path separator (i.e. ":") - it is
10689    # assumed that no part of a normal pathname contains ";" but that should
10690    # okay in the real world where ";" in dirpaths is itself problematic.
10691    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10692    ;;
10693  *)
10694    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10695    ;;
10696  esac
10697  # Ok, now we have the path, separated by spaces, we can step through it
10698  # and add multilib dir if necessary...
10699  lt_tmp_lt_search_path_spec=
10700  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10701  # ...but if some path component already ends with the multilib dir we assume
10702  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10703  case "$lt_multi_os_dir; $lt_search_path_spec " in
10704  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10705    lt_multi_os_dir=
10706    ;;
10707  esac
10708  for lt_sys_path in $lt_search_path_spec; do
10709    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10710      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10711    elif test -n "$lt_multi_os_dir"; then
10712      test -d "$lt_sys_path" && \
10713	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10714    fi
10715  done
10716  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10717BEGIN {RS = " "; FS = "/|\n";} {
10718  lt_foo = "";
10719  lt_count = 0;
10720  for (lt_i = NF; lt_i > 0; lt_i--) {
10721    if ($lt_i != "" && $lt_i != ".") {
10722      if ($lt_i == "..") {
10723        lt_count++;
10724      } else {
10725        if (lt_count == 0) {
10726          lt_foo = "/" $lt_i lt_foo;
10727        } else {
10728          lt_count--;
10729        }
10730      }
10731    }
10732  }
10733  if (lt_foo != "") { lt_freq[lt_foo]++; }
10734  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10735}'`
10736  # AWK program above erroneously prepends '/' to C:/dos/paths
10737  # for these hosts.
10738  case $host_os in
10739    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10740      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10741  esac
10742  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10743else
10744  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10745fi
10746library_names_spec=
10747libname_spec='lib$name'
10748soname_spec=
10749shrext_cmds=.so
10750postinstall_cmds=
10751postuninstall_cmds=
10752finish_cmds=
10753finish_eval=
10754shlibpath_var=
10755shlibpath_overrides_runpath=unknown
10756version_type=none
10757dynamic_linker="$host_os ld.so"
10758sys_lib_dlsearch_path_spec="/lib /usr/lib"
10759need_lib_prefix=unknown
10760hardcode_into_libs=no
10761
10762# when you set need_version to no, make sure it does not cause -set_version
10763# flags to be left without arguments
10764need_version=unknown
10765
10766
10767
10768case $host_os in
10769aix3*)
10770  version_type=linux # correct to gnu/linux during the next big refactor
10771  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10772  shlibpath_var=LIBPATH
10773
10774  # AIX 3 has no versioning support, so we append a major version to the name.
10775  soname_spec='$libname$release$shared_ext$major'
10776  ;;
10777
10778aix[4-9]*)
10779  version_type=linux # correct to gnu/linux during the next big refactor
10780  need_lib_prefix=no
10781  need_version=no
10782  hardcode_into_libs=yes
10783  if test ia64 = "$host_cpu"; then
10784    # AIX 5 supports IA64
10785    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10786    shlibpath_var=LD_LIBRARY_PATH
10787  else
10788    # With GCC up to 2.95.x, collect2 would create an import file
10789    # for dependence libraries.  The import file would start with
10790    # the line '#! .'.  This would cause the generated library to
10791    # depend on '.', always an invalid library.  This was fixed in
10792    # development snapshots of GCC prior to 3.0.
10793    case $host_os in
10794      aix4 | aix4.[01] | aix4.[01].*)
10795      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10796	   echo ' yes '
10797	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10798	:
10799      else
10800	can_build_shared=no
10801      fi
10802      ;;
10803    esac
10804    # Using Import Files as archive members, it is possible to support
10805    # filename-based versioning of shared library archives on AIX. While
10806    # this would work for both with and without runtime linking, it will
10807    # prevent static linking of such archives. So we do filename-based
10808    # shared library versioning with .so extension only, which is used
10809    # when both runtime linking and shared linking is enabled.
10810    # Unfortunately, runtime linking may impact performance, so we do
10811    # not want this to be the default eventually. Also, we use the
10812    # versioned .so libs for executables only if there is the -brtl
10813    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10814    # To allow for filename-based versioning support, we need to create
10815    # libNAME.so.V as an archive file, containing:
10816    # *) an Import File, referring to the versioned filename of the
10817    #    archive as well as the shared archive member, telling the
10818    #    bitwidth (32 or 64) of that shared object, and providing the
10819    #    list of exported symbols of that shared object, eventually
10820    #    decorated with the 'weak' keyword
10821    # *) the shared object with the F_LOADONLY flag set, to really avoid
10822    #    it being seen by the linker.
10823    # At run time we better use the real file rather than another symlink,
10824    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10825
10826    case $with_aix_soname,$aix_use_runtimelinking in
10827    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10828    # soname into executable. Probably we can add versioning support to
10829    # collect2, so additional links can be useful in future.
10830    aix,yes) # traditional libtool
10831      dynamic_linker='AIX unversionable lib.so'
10832      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10833      # instead of lib<name>.a to let people know that these are not
10834      # typical AIX shared libraries.
10835      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10836      ;;
10837    aix,no) # traditional AIX only
10838      dynamic_linker='AIX lib.a(lib.so.V)'
10839      # We preserve .a as extension for shared libraries through AIX4.2
10840      # and later when we are not doing run time linking.
10841      library_names_spec='$libname$release.a $libname.a'
10842      soname_spec='$libname$release$shared_ext$major'
10843      ;;
10844    svr4,*) # full svr4 only
10845      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10846      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10847      # We do not specify a path in Import Files, so LIBPATH fires.
10848      shlibpath_overrides_runpath=yes
10849      ;;
10850    *,yes) # both, prefer svr4
10851      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10852      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10853      # unpreferred sharedlib libNAME.a needs extra handling
10854      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"'
10855      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"'
10856      # We do not specify a path in Import Files, so LIBPATH fires.
10857      shlibpath_overrides_runpath=yes
10858      ;;
10859    *,no) # both, prefer aix
10860      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10861      library_names_spec='$libname$release.a $libname.a'
10862      soname_spec='$libname$release$shared_ext$major'
10863      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10864      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)'
10865      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"'
10866      ;;
10867    esac
10868    shlibpath_var=LIBPATH
10869  fi
10870  ;;
10871
10872amigaos*)
10873  case $host_cpu in
10874  powerpc)
10875    # Since July 2007 AmigaOS4 officially supports .so libraries.
10876    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10877    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10878    ;;
10879  m68k)
10880    library_names_spec='$libname.ixlibrary $libname.a'
10881    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10882    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'
10883    ;;
10884  esac
10885  ;;
10886
10887beos*)
10888  library_names_spec='$libname$shared_ext'
10889  dynamic_linker="$host_os ld.so"
10890  shlibpath_var=LIBRARY_PATH
10891  ;;
10892
10893bsdi[45]*)
10894  version_type=linux # correct to gnu/linux during the next big refactor
10895  need_version=no
10896  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10897  soname_spec='$libname$release$shared_ext$major'
10898  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10899  shlibpath_var=LD_LIBRARY_PATH
10900  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10901  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10902  # the default ld.so.conf also contains /usr/contrib/lib and
10903  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10904  # libtool to hard-code these into programs
10905  ;;
10906
10907cygwin* | mingw* | pw32* | cegcc*)
10908  version_type=windows
10909  shrext_cmds=.dll
10910  need_version=no
10911  need_lib_prefix=no
10912
10913  case $GCC,$cc_basename in
10914  yes,*)
10915    # gcc
10916    library_names_spec='$libname.dll.a'
10917    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10918    postinstall_cmds='base_file=`basename \$file`~
10919      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10920      dldir=$destdir/`dirname \$dlpath`~
10921      test -d \$dldir || mkdir -p \$dldir~
10922      $install_prog $dir/$dlname \$dldir/$dlname~
10923      chmod a+x \$dldir/$dlname~
10924      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10925        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10926      fi'
10927    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10928      dlpath=$dir/\$dldll~
10929       $RM \$dlpath'
10930    shlibpath_overrides_runpath=yes
10931
10932    case $host_os in
10933    cygwin*)
10934      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10935      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10936
10937      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10938      ;;
10939    mingw* | cegcc*)
10940      # MinGW DLLs use traditional 'lib' prefix
10941      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10942      ;;
10943    pw32*)
10944      # pw32 DLLs use 'pw' prefix rather than 'lib'
10945      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10946      ;;
10947    esac
10948    dynamic_linker='Win32 ld.exe'
10949    ;;
10950
10951  *,cl*)
10952    # Native MSVC
10953    libname_spec='$name'
10954    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10955    library_names_spec='$libname.dll.lib'
10956
10957    case $build_os in
10958    mingw*)
10959      sys_lib_search_path_spec=
10960      lt_save_ifs=$IFS
10961      IFS=';'
10962      for lt_path in $LIB
10963      do
10964        IFS=$lt_save_ifs
10965        # Let DOS variable expansion print the short 8.3 style file name.
10966        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10967        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10968      done
10969      IFS=$lt_save_ifs
10970      # Convert to MSYS style.
10971      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10972      ;;
10973    cygwin*)
10974      # Convert to unix form, then to dos form, then back to unix form
10975      # but this time dos style (no spaces!) so that the unix form looks
10976      # like /cygdrive/c/PROGRA~1:/cygdr...
10977      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10978      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10979      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10980      ;;
10981    *)
10982      sys_lib_search_path_spec=$LIB
10983      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10984        # It is most probably a Windows format PATH.
10985        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10986      else
10987        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10988      fi
10989      # FIXME: find the short name or the path components, as spaces are
10990      # common. (e.g. "Program Files" -> "PROGRA~1")
10991      ;;
10992    esac
10993
10994    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10995    postinstall_cmds='base_file=`basename \$file`~
10996      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10997      dldir=$destdir/`dirname \$dlpath`~
10998      test -d \$dldir || mkdir -p \$dldir~
10999      $install_prog $dir/$dlname \$dldir/$dlname'
11000    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11001      dlpath=$dir/\$dldll~
11002       $RM \$dlpath'
11003    shlibpath_overrides_runpath=yes
11004    dynamic_linker='Win32 link.exe'
11005    ;;
11006
11007  *)
11008    # Assume MSVC wrapper
11009    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11010    dynamic_linker='Win32 ld.exe'
11011    ;;
11012  esac
11013  # FIXME: first we should search . and the directory the executable is in
11014  shlibpath_var=PATH
11015  ;;
11016
11017darwin* | rhapsody*)
11018  dynamic_linker="$host_os dyld"
11019  version_type=darwin
11020  need_lib_prefix=no
11021  need_version=no
11022  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11023  soname_spec='$libname$release$major$shared_ext'
11024  shlibpath_overrides_runpath=yes
11025  shlibpath_var=DYLD_LIBRARY_PATH
11026  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11027
11028  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11029  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11030  ;;
11031
11032dgux*)
11033  version_type=linux # correct to gnu/linux during the next big refactor
11034  need_lib_prefix=no
11035  need_version=no
11036  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11037  soname_spec='$libname$release$shared_ext$major'
11038  shlibpath_var=LD_LIBRARY_PATH
11039  ;;
11040
11041freebsd* | dragonfly*)
11042  # DragonFly does not have aout.  When/if they implement a new
11043  # versioning mechanism, adjust this.
11044  if test -x /usr/bin/objformat; then
11045    objformat=`/usr/bin/objformat`
11046  else
11047    case $host_os in
11048    freebsd[23].*) objformat=aout ;;
11049    *) objformat=elf ;;
11050    esac
11051  fi
11052  version_type=freebsd-$objformat
11053  case $version_type in
11054    freebsd-elf*)
11055      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11056      soname_spec='$libname$release$shared_ext$major'
11057      need_version=no
11058      need_lib_prefix=no
11059      ;;
11060    freebsd-*)
11061      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11062      need_version=yes
11063      ;;
11064  esac
11065  shlibpath_var=LD_LIBRARY_PATH
11066  case $host_os in
11067  freebsd2.*)
11068    shlibpath_overrides_runpath=yes
11069    ;;
11070  freebsd3.[01]* | freebsdelf3.[01]*)
11071    shlibpath_overrides_runpath=yes
11072    hardcode_into_libs=yes
11073    ;;
11074  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11075  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11076    shlibpath_overrides_runpath=no
11077    hardcode_into_libs=yes
11078    ;;
11079  *) # from 4.6 on, and DragonFly
11080    shlibpath_overrides_runpath=yes
11081    hardcode_into_libs=yes
11082    ;;
11083  esac
11084  ;;
11085
11086haiku*)
11087  version_type=linux # correct to gnu/linux during the next big refactor
11088  need_lib_prefix=no
11089  need_version=no
11090  dynamic_linker="$host_os runtime_loader"
11091  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11092  soname_spec='$libname$release$shared_ext$major'
11093  shlibpath_var=LIBRARY_PATH
11094  shlibpath_overrides_runpath=no
11095  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11096  hardcode_into_libs=yes
11097  ;;
11098
11099hpux9* | hpux10* | hpux11*)
11100  # Give a soname corresponding to the major version so that dld.sl refuses to
11101  # link against other versions.
11102  version_type=sunos
11103  need_lib_prefix=no
11104  need_version=no
11105  case $host_cpu in
11106  ia64*)
11107    shrext_cmds='.so'
11108    hardcode_into_libs=yes
11109    dynamic_linker="$host_os dld.so"
11110    shlibpath_var=LD_LIBRARY_PATH
11111    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11112    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11113    soname_spec='$libname$release$shared_ext$major'
11114    if test 32 = "$HPUX_IA64_MODE"; then
11115      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11116      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11117    else
11118      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11119      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11120    fi
11121    ;;
11122  hppa*64*)
11123    shrext_cmds='.sl'
11124    hardcode_into_libs=yes
11125    dynamic_linker="$host_os dld.sl"
11126    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11127    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11128    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11129    soname_spec='$libname$release$shared_ext$major'
11130    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11131    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11132    ;;
11133  *)
11134    shrext_cmds='.sl'
11135    dynamic_linker="$host_os dld.sl"
11136    shlibpath_var=SHLIB_PATH
11137    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11138    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11139    soname_spec='$libname$release$shared_ext$major'
11140    ;;
11141  esac
11142  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11143  postinstall_cmds='chmod 555 $lib'
11144  # or fails outright, so override atomically:
11145  install_override_mode=555
11146  ;;
11147
11148interix[3-9]*)
11149  version_type=linux # correct to gnu/linux during the next big refactor
11150  need_lib_prefix=no
11151  need_version=no
11152  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11153  soname_spec='$libname$release$shared_ext$major'
11154  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11155  shlibpath_var=LD_LIBRARY_PATH
11156  shlibpath_overrides_runpath=no
11157  hardcode_into_libs=yes
11158  ;;
11159
11160irix5* | irix6* | nonstopux*)
11161  case $host_os in
11162    nonstopux*) version_type=nonstopux ;;
11163    *)
11164	if test yes = "$lt_cv_prog_gnu_ld"; then
11165		version_type=linux # correct to gnu/linux during the next big refactor
11166	else
11167		version_type=irix
11168	fi ;;
11169  esac
11170  need_lib_prefix=no
11171  need_version=no
11172  soname_spec='$libname$release$shared_ext$major'
11173  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11174  case $host_os in
11175  irix5* | nonstopux*)
11176    libsuff= shlibsuff=
11177    ;;
11178  *)
11179    case $LD in # libtool.m4 will add one of these switches to LD
11180    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11181      libsuff= shlibsuff= libmagic=32-bit;;
11182    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11183      libsuff=32 shlibsuff=N32 libmagic=N32;;
11184    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11185      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11186    *) libsuff= shlibsuff= libmagic=never-match;;
11187    esac
11188    ;;
11189  esac
11190  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11191  shlibpath_overrides_runpath=no
11192  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11193  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11194  hardcode_into_libs=yes
11195  ;;
11196
11197# No shared lib support for Linux oldld, aout, or coff.
11198linux*oldld* | linux*aout* | linux*coff*)
11199  dynamic_linker=no
11200  ;;
11201
11202linux*android*)
11203  version_type=none # Android doesn't support versioned libraries.
11204  need_lib_prefix=no
11205  need_version=no
11206  library_names_spec='$libname$release$shared_ext'
11207  soname_spec='$libname$release$shared_ext'
11208  finish_cmds=
11209  shlibpath_var=LD_LIBRARY_PATH
11210  shlibpath_overrides_runpath=yes
11211
11212  # This implies no fast_install, which is unacceptable.
11213  # Some rework will be needed to allow for fast_install
11214  # before this can be enabled.
11215  hardcode_into_libs=yes
11216
11217  dynamic_linker='Android linker'
11218  # Don't embed -rpath directories since the linker doesn't support them.
11219  hardcode_libdir_flag_spec='-L$libdir'
11220  ;;
11221
11222# This must be glibc/ELF.
11223linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11224  version_type=linux # correct to gnu/linux during the next big refactor
11225  need_lib_prefix=no
11226  need_version=no
11227  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11228  soname_spec='$libname$release$shared_ext$major'
11229  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11230  shlibpath_var=LD_LIBRARY_PATH
11231  shlibpath_overrides_runpath=no
11232
11233  # Some binutils ld are patched to set DT_RUNPATH
11234  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11235  $as_echo_n "(cached) " >&6
11236else
11237  lt_cv_shlibpath_overrides_runpath=no
11238    save_LDFLAGS=$LDFLAGS
11239    save_libdir=$libdir
11240    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11241	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11242    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11243/* end confdefs.h.  */
11244
11245int
11246main ()
11247{
11248
11249  ;
11250  return 0;
11251}
11252_ACEOF
11253if ac_fn_c_try_link "$LINENO"; then :
11254  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11255  lt_cv_shlibpath_overrides_runpath=yes
11256fi
11257fi
11258rm -f core conftest.err conftest.$ac_objext \
11259    conftest$ac_exeext conftest.$ac_ext
11260    LDFLAGS=$save_LDFLAGS
11261    libdir=$save_libdir
11262
11263fi
11264
11265  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11266
11267  # This implies no fast_install, which is unacceptable.
11268  # Some rework will be needed to allow for fast_install
11269  # before this can be enabled.
11270  hardcode_into_libs=yes
11271
11272  # Ideally, we could use ldconfig to report *all* directores which are
11273  # searched for libraries, however this is still not possible.  Aside from not
11274  # being certain /sbin/ldconfig is available, command
11275  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11276  # even though it is searched at run-time.  Try to do the best guess by
11277  # appending ld.so.conf contents (and includes) to the search path.
11278  if test -f /etc/ld.so.conf; then
11279    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' ' '`
11280    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11281  fi
11282
11283  # We used to test for /lib/ld.so.1 and disable shared libraries on
11284  # powerpc, because MkLinux only supported shared libraries with the
11285  # GNU dynamic linker.  Since this was broken with cross compilers,
11286  # most powerpc-linux boxes support dynamic linking these days and
11287  # people can always --disable-shared, the test was removed, and we
11288  # assume the GNU/Linux dynamic linker is in use.
11289  dynamic_linker='GNU/Linux ld.so'
11290  ;;
11291
11292netbsd*)
11293  version_type=sunos
11294  need_lib_prefix=no
11295  need_version=no
11296  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11297    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11298    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11299    dynamic_linker='NetBSD (a.out) ld.so'
11300  else
11301    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11302    soname_spec='$libname$release$shared_ext$major'
11303    dynamic_linker='NetBSD ld.elf_so'
11304  fi
11305  shlibpath_var=LD_LIBRARY_PATH
11306  shlibpath_overrides_runpath=yes
11307  hardcode_into_libs=yes
11308  ;;
11309
11310newsos6)
11311  version_type=linux # correct to gnu/linux during the next big refactor
11312  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11313  shlibpath_var=LD_LIBRARY_PATH
11314  shlibpath_overrides_runpath=yes
11315  ;;
11316
11317*nto* | *qnx*)
11318  version_type=qnx
11319  need_lib_prefix=no
11320  need_version=no
11321  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11322  soname_spec='$libname$release$shared_ext$major'
11323  shlibpath_var=LD_LIBRARY_PATH
11324  shlibpath_overrides_runpath=no
11325  hardcode_into_libs=yes
11326  dynamic_linker='ldqnx.so'
11327  ;;
11328
11329openbsd* | bitrig*)
11330  version_type=sunos
11331  sys_lib_dlsearch_path_spec=/usr/lib
11332  need_lib_prefix=no
11333  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11334    need_version=no
11335  else
11336    need_version=yes
11337  fi
11338  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11339  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11340  shlibpath_var=LD_LIBRARY_PATH
11341  shlibpath_overrides_runpath=yes
11342  ;;
11343
11344os2*)
11345  libname_spec='$name'
11346  version_type=windows
11347  shrext_cmds=.dll
11348  need_version=no
11349  need_lib_prefix=no
11350  # OS/2 can only load a DLL with a base name of 8 characters or less.
11351  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11352    v=$($ECHO $release$versuffix | tr -d .-);
11353    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11354    $ECHO $n$v`$shared_ext'
11355  library_names_spec='${libname}_dll.$libext'
11356  dynamic_linker='OS/2 ld.exe'
11357  shlibpath_var=BEGINLIBPATH
11358  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11359  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11360  postinstall_cmds='base_file=`basename \$file`~
11361    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11362    dldir=$destdir/`dirname \$dlpath`~
11363    test -d \$dldir || mkdir -p \$dldir~
11364    $install_prog $dir/$dlname \$dldir/$dlname~
11365    chmod a+x \$dldir/$dlname~
11366    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11367      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11368    fi'
11369  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11370    dlpath=$dir/\$dldll~
11371    $RM \$dlpath'
11372  ;;
11373
11374osf3* | osf4* | osf5*)
11375  version_type=osf
11376  need_lib_prefix=no
11377  need_version=no
11378  soname_spec='$libname$release$shared_ext$major'
11379  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11380  shlibpath_var=LD_LIBRARY_PATH
11381  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11382  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11383  ;;
11384
11385rdos*)
11386  dynamic_linker=no
11387  ;;
11388
11389solaris*)
11390  version_type=linux # correct to gnu/linux during the next big refactor
11391  need_lib_prefix=no
11392  need_version=no
11393  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11394  soname_spec='$libname$release$shared_ext$major'
11395  shlibpath_var=LD_LIBRARY_PATH
11396  shlibpath_overrides_runpath=yes
11397  hardcode_into_libs=yes
11398  # ldd complains unless libraries are executable
11399  postinstall_cmds='chmod +x $lib'
11400  ;;
11401
11402sunos4*)
11403  version_type=sunos
11404  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11405  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11406  shlibpath_var=LD_LIBRARY_PATH
11407  shlibpath_overrides_runpath=yes
11408  if test yes = "$with_gnu_ld"; then
11409    need_lib_prefix=no
11410  fi
11411  need_version=yes
11412  ;;
11413
11414sysv4 | sysv4.3*)
11415  version_type=linux # correct to gnu/linux during the next big refactor
11416  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11417  soname_spec='$libname$release$shared_ext$major'
11418  shlibpath_var=LD_LIBRARY_PATH
11419  case $host_vendor in
11420    sni)
11421      shlibpath_overrides_runpath=no
11422      need_lib_prefix=no
11423      runpath_var=LD_RUN_PATH
11424      ;;
11425    siemens)
11426      need_lib_prefix=no
11427      ;;
11428    motorola)
11429      need_lib_prefix=no
11430      need_version=no
11431      shlibpath_overrides_runpath=no
11432      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11433      ;;
11434  esac
11435  ;;
11436
11437sysv4*MP*)
11438  if test -d /usr/nec; then
11439    version_type=linux # correct to gnu/linux during the next big refactor
11440    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11441    soname_spec='$libname$shared_ext.$major'
11442    shlibpath_var=LD_LIBRARY_PATH
11443  fi
11444  ;;
11445
11446sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11447  version_type=sco
11448  need_lib_prefix=no
11449  need_version=no
11450  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11451  soname_spec='$libname$release$shared_ext$major'
11452  shlibpath_var=LD_LIBRARY_PATH
11453  shlibpath_overrides_runpath=yes
11454  hardcode_into_libs=yes
11455  if test yes = "$with_gnu_ld"; then
11456    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11457  else
11458    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11459    case $host_os in
11460      sco3.2v5*)
11461        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11462	;;
11463    esac
11464  fi
11465  sys_lib_dlsearch_path_spec='/usr/lib'
11466  ;;
11467
11468tpf*)
11469  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11470  version_type=linux # correct to gnu/linux during the next big refactor
11471  need_lib_prefix=no
11472  need_version=no
11473  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11474  shlibpath_var=LD_LIBRARY_PATH
11475  shlibpath_overrides_runpath=no
11476  hardcode_into_libs=yes
11477  ;;
11478
11479uts4*)
11480  version_type=linux # correct to gnu/linux during the next big refactor
11481  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11482  soname_spec='$libname$release$shared_ext$major'
11483  shlibpath_var=LD_LIBRARY_PATH
11484  ;;
11485
11486*)
11487  dynamic_linker=no
11488  ;;
11489esac
11490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11491$as_echo "$dynamic_linker" >&6; }
11492test no = "$dynamic_linker" && can_build_shared=no
11493
11494variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11495if test yes = "$GCC"; then
11496  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11497fi
11498
11499if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11500  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11501fi
11502
11503if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11504  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11505fi
11506
11507# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11508configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11509
11510# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11511func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11512
11513# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11514configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11613$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11614hardcode_action=
11615if test -n "$hardcode_libdir_flag_spec" ||
11616   test -n "$runpath_var" ||
11617   test yes = "$hardcode_automatic"; then
11618
11619  # We can hardcode non-existent directories.
11620  if test no != "$hardcode_direct" &&
11621     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11622     # have to relink, otherwise we might link with an installed library
11623     # when we should be linking with a yet-to-be-installed one
11624     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11625     test no != "$hardcode_minus_L"; then
11626    # Linking always hardcodes the temporary library directory.
11627    hardcode_action=relink
11628  else
11629    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11630    hardcode_action=immediate
11631  fi
11632else
11633  # We cannot hardcode anything, or else we can only hardcode existing
11634  # directories.
11635  hardcode_action=unsupported
11636fi
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11638$as_echo "$hardcode_action" >&6; }
11639
11640if test relink = "$hardcode_action" ||
11641   test yes = "$inherit_rpath"; then
11642  # Fast installation is not supported
11643  enable_fast_install=no
11644elif test yes = "$shlibpath_overrides_runpath" ||
11645     test no = "$enable_shared"; then
11646  # Fast installation is not necessary
11647  enable_fast_install=needless
11648fi
11649
11650
11651
11652
11653
11654
11655  if test yes != "$enable_dlopen"; then
11656  enable_dlopen=unknown
11657  enable_dlopen_self=unknown
11658  enable_dlopen_self_static=unknown
11659else
11660  lt_cv_dlopen=no
11661  lt_cv_dlopen_libs=
11662
11663  case $host_os in
11664  beos*)
11665    lt_cv_dlopen=load_add_on
11666    lt_cv_dlopen_libs=
11667    lt_cv_dlopen_self=yes
11668    ;;
11669
11670  mingw* | pw32* | cegcc*)
11671    lt_cv_dlopen=LoadLibrary
11672    lt_cv_dlopen_libs=
11673    ;;
11674
11675  cygwin*)
11676    lt_cv_dlopen=dlopen
11677    lt_cv_dlopen_libs=
11678    ;;
11679
11680  darwin*)
11681    # if libdl is installed we need to link against it
11682    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11683$as_echo_n "checking for dlopen in -ldl... " >&6; }
11684if ${ac_cv_lib_dl_dlopen+:} false; then :
11685  $as_echo_n "(cached) " >&6
11686else
11687  ac_check_lib_save_LIBS=$LIBS
11688LIBS="-ldl  $LIBS"
11689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690/* end confdefs.h.  */
11691
11692/* Override any GCC internal prototype to avoid an error.
11693   Use char because int might match the return type of a GCC
11694   builtin and then its argument prototype would still apply.  */
11695#ifdef __cplusplus
11696extern "C"
11697#endif
11698char dlopen ();
11699int
11700main ()
11701{
11702return dlopen ();
11703  ;
11704  return 0;
11705}
11706_ACEOF
11707if ac_fn_c_try_link "$LINENO"; then :
11708  ac_cv_lib_dl_dlopen=yes
11709else
11710  ac_cv_lib_dl_dlopen=no
11711fi
11712rm -f core conftest.err conftest.$ac_objext \
11713    conftest$ac_exeext conftest.$ac_ext
11714LIBS=$ac_check_lib_save_LIBS
11715fi
11716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11717$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11718if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11719  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11720else
11721
11722    lt_cv_dlopen=dyld
11723    lt_cv_dlopen_libs=
11724    lt_cv_dlopen_self=yes
11725
11726fi
11727
11728    ;;
11729
11730  tpf*)
11731    # Don't try to run any link tests for TPF.  We know it's impossible
11732    # because TPF is a cross-compiler, and we know how we open DSOs.
11733    lt_cv_dlopen=dlopen
11734    lt_cv_dlopen_libs=
11735    lt_cv_dlopen_self=no
11736    ;;
11737
11738  *)
11739    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11740if test "x$ac_cv_func_shl_load" = xyes; then :
11741  lt_cv_dlopen=shl_load
11742else
11743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11744$as_echo_n "checking for shl_load in -ldld... " >&6; }
11745if ${ac_cv_lib_dld_shl_load+:} false; then :
11746  $as_echo_n "(cached) " >&6
11747else
11748  ac_check_lib_save_LIBS=$LIBS
11749LIBS="-ldld  $LIBS"
11750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751/* end confdefs.h.  */
11752
11753/* Override any GCC internal prototype to avoid an error.
11754   Use char because int might match the return type of a GCC
11755   builtin and then its argument prototype would still apply.  */
11756#ifdef __cplusplus
11757extern "C"
11758#endif
11759char shl_load ();
11760int
11761main ()
11762{
11763return shl_load ();
11764  ;
11765  return 0;
11766}
11767_ACEOF
11768if ac_fn_c_try_link "$LINENO"; then :
11769  ac_cv_lib_dld_shl_load=yes
11770else
11771  ac_cv_lib_dld_shl_load=no
11772fi
11773rm -f core conftest.err conftest.$ac_objext \
11774    conftest$ac_exeext conftest.$ac_ext
11775LIBS=$ac_check_lib_save_LIBS
11776fi
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11778$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11779if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11780  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11781else
11782  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11783if test "x$ac_cv_func_dlopen" = xyes; then :
11784  lt_cv_dlopen=dlopen
11785else
11786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11787$as_echo_n "checking for dlopen in -ldl... " >&6; }
11788if ${ac_cv_lib_dl_dlopen+:} false; then :
11789  $as_echo_n "(cached) " >&6
11790else
11791  ac_check_lib_save_LIBS=$LIBS
11792LIBS="-ldl  $LIBS"
11793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794/* end confdefs.h.  */
11795
11796/* Override any GCC internal prototype to avoid an error.
11797   Use char because int might match the return type of a GCC
11798   builtin and then its argument prototype would still apply.  */
11799#ifdef __cplusplus
11800extern "C"
11801#endif
11802char dlopen ();
11803int
11804main ()
11805{
11806return dlopen ();
11807  ;
11808  return 0;
11809}
11810_ACEOF
11811if ac_fn_c_try_link "$LINENO"; then :
11812  ac_cv_lib_dl_dlopen=yes
11813else
11814  ac_cv_lib_dl_dlopen=no
11815fi
11816rm -f core conftest.err conftest.$ac_objext \
11817    conftest$ac_exeext conftest.$ac_ext
11818LIBS=$ac_check_lib_save_LIBS
11819fi
11820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11821$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11822if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11823  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11824else
11825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11826$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11827if ${ac_cv_lib_svld_dlopen+:} false; then :
11828  $as_echo_n "(cached) " >&6
11829else
11830  ac_check_lib_save_LIBS=$LIBS
11831LIBS="-lsvld  $LIBS"
11832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833/* end confdefs.h.  */
11834
11835/* Override any GCC internal prototype to avoid an error.
11836   Use char because int might match the return type of a GCC
11837   builtin and then its argument prototype would still apply.  */
11838#ifdef __cplusplus
11839extern "C"
11840#endif
11841char dlopen ();
11842int
11843main ()
11844{
11845return dlopen ();
11846  ;
11847  return 0;
11848}
11849_ACEOF
11850if ac_fn_c_try_link "$LINENO"; then :
11851  ac_cv_lib_svld_dlopen=yes
11852else
11853  ac_cv_lib_svld_dlopen=no
11854fi
11855rm -f core conftest.err conftest.$ac_objext \
11856    conftest$ac_exeext conftest.$ac_ext
11857LIBS=$ac_check_lib_save_LIBS
11858fi
11859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11860$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11861if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11862  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11863else
11864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11865$as_echo_n "checking for dld_link in -ldld... " >&6; }
11866if ${ac_cv_lib_dld_dld_link+:} false; then :
11867  $as_echo_n "(cached) " >&6
11868else
11869  ac_check_lib_save_LIBS=$LIBS
11870LIBS="-ldld  $LIBS"
11871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872/* end confdefs.h.  */
11873
11874/* Override any GCC internal prototype to avoid an error.
11875   Use char because int might match the return type of a GCC
11876   builtin and then its argument prototype would still apply.  */
11877#ifdef __cplusplus
11878extern "C"
11879#endif
11880char dld_link ();
11881int
11882main ()
11883{
11884return dld_link ();
11885  ;
11886  return 0;
11887}
11888_ACEOF
11889if ac_fn_c_try_link "$LINENO"; then :
11890  ac_cv_lib_dld_dld_link=yes
11891else
11892  ac_cv_lib_dld_dld_link=no
11893fi
11894rm -f core conftest.err conftest.$ac_objext \
11895    conftest$ac_exeext conftest.$ac_ext
11896LIBS=$ac_check_lib_save_LIBS
11897fi
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11899$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11900if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11901  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11902fi
11903
11904
11905fi
11906
11907
11908fi
11909
11910
11911fi
11912
11913
11914fi
11915
11916
11917fi
11918
11919    ;;
11920  esac
11921
11922  if test no = "$lt_cv_dlopen"; then
11923    enable_dlopen=no
11924  else
11925    enable_dlopen=yes
11926  fi
11927
11928  case $lt_cv_dlopen in
11929  dlopen)
11930    save_CPPFLAGS=$CPPFLAGS
11931    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11932
11933    save_LDFLAGS=$LDFLAGS
11934    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11935
11936    save_LIBS=$LIBS
11937    LIBS="$lt_cv_dlopen_libs $LIBS"
11938
11939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11940$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11941if ${lt_cv_dlopen_self+:} false; then :
11942  $as_echo_n "(cached) " >&6
11943else
11944  	  if test yes = "$cross_compiling"; then :
11945  lt_cv_dlopen_self=cross
11946else
11947  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11948  lt_status=$lt_dlunknown
11949  cat > conftest.$ac_ext <<_LT_EOF
11950#line $LINENO "configure"
11951#include "confdefs.h"
11952
11953#if HAVE_DLFCN_H
11954#include <dlfcn.h>
11955#endif
11956
11957#include <stdio.h>
11958
11959#ifdef RTLD_GLOBAL
11960#  define LT_DLGLOBAL		RTLD_GLOBAL
11961#else
11962#  ifdef DL_GLOBAL
11963#    define LT_DLGLOBAL		DL_GLOBAL
11964#  else
11965#    define LT_DLGLOBAL		0
11966#  endif
11967#endif
11968
11969/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11970   find out it does not work in some platform. */
11971#ifndef LT_DLLAZY_OR_NOW
11972#  ifdef RTLD_LAZY
11973#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11974#  else
11975#    ifdef DL_LAZY
11976#      define LT_DLLAZY_OR_NOW		DL_LAZY
11977#    else
11978#      ifdef RTLD_NOW
11979#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11980#      else
11981#        ifdef DL_NOW
11982#          define LT_DLLAZY_OR_NOW	DL_NOW
11983#        else
11984#          define LT_DLLAZY_OR_NOW	0
11985#        endif
11986#      endif
11987#    endif
11988#  endif
11989#endif
11990
11991/* When -fvisibility=hidden is used, assume the code has been annotated
11992   correspondingly for the symbols needed.  */
11993#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11994int fnord () __attribute__((visibility("default")));
11995#endif
11996
11997int fnord () { return 42; }
11998int main ()
11999{
12000  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12001  int status = $lt_dlunknown;
12002
12003  if (self)
12004    {
12005      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12006      else
12007        {
12008	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12009          else puts (dlerror ());
12010	}
12011      /* dlclose (self); */
12012    }
12013  else
12014    puts (dlerror ());
12015
12016  return status;
12017}
12018_LT_EOF
12019  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12020  (eval $ac_link) 2>&5
12021  ac_status=$?
12022  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12023  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12024    (./conftest; exit; ) >&5 2>/dev/null
12025    lt_status=$?
12026    case x$lt_status in
12027      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12028      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12029      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12030    esac
12031  else :
12032    # compilation failed
12033    lt_cv_dlopen_self=no
12034  fi
12035fi
12036rm -fr conftest*
12037
12038
12039fi
12040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12041$as_echo "$lt_cv_dlopen_self" >&6; }
12042
12043    if test yes = "$lt_cv_dlopen_self"; then
12044      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12045      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12046$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12047if ${lt_cv_dlopen_self_static+:} false; then :
12048  $as_echo_n "(cached) " >&6
12049else
12050  	  if test yes = "$cross_compiling"; then :
12051  lt_cv_dlopen_self_static=cross
12052else
12053  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12054  lt_status=$lt_dlunknown
12055  cat > conftest.$ac_ext <<_LT_EOF
12056#line $LINENO "configure"
12057#include "confdefs.h"
12058
12059#if HAVE_DLFCN_H
12060#include <dlfcn.h>
12061#endif
12062
12063#include <stdio.h>
12064
12065#ifdef RTLD_GLOBAL
12066#  define LT_DLGLOBAL		RTLD_GLOBAL
12067#else
12068#  ifdef DL_GLOBAL
12069#    define LT_DLGLOBAL		DL_GLOBAL
12070#  else
12071#    define LT_DLGLOBAL		0
12072#  endif
12073#endif
12074
12075/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12076   find out it does not work in some platform. */
12077#ifndef LT_DLLAZY_OR_NOW
12078#  ifdef RTLD_LAZY
12079#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12080#  else
12081#    ifdef DL_LAZY
12082#      define LT_DLLAZY_OR_NOW		DL_LAZY
12083#    else
12084#      ifdef RTLD_NOW
12085#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12086#      else
12087#        ifdef DL_NOW
12088#          define LT_DLLAZY_OR_NOW	DL_NOW
12089#        else
12090#          define LT_DLLAZY_OR_NOW	0
12091#        endif
12092#      endif
12093#    endif
12094#  endif
12095#endif
12096
12097/* When -fvisibility=hidden is used, assume the code has been annotated
12098   correspondingly for the symbols needed.  */
12099#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12100int fnord () __attribute__((visibility("default")));
12101#endif
12102
12103int fnord () { return 42; }
12104int main ()
12105{
12106  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12107  int status = $lt_dlunknown;
12108
12109  if (self)
12110    {
12111      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12112      else
12113        {
12114	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12115          else puts (dlerror ());
12116	}
12117      /* dlclose (self); */
12118    }
12119  else
12120    puts (dlerror ());
12121
12122  return status;
12123}
12124_LT_EOF
12125  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12126  (eval $ac_link) 2>&5
12127  ac_status=$?
12128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12129  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12130    (./conftest; exit; ) >&5 2>/dev/null
12131    lt_status=$?
12132    case x$lt_status in
12133      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12134      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12135      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12136    esac
12137  else :
12138    # compilation failed
12139    lt_cv_dlopen_self_static=no
12140  fi
12141fi
12142rm -fr conftest*
12143
12144
12145fi
12146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12147$as_echo "$lt_cv_dlopen_self_static" >&6; }
12148    fi
12149
12150    CPPFLAGS=$save_CPPFLAGS
12151    LDFLAGS=$save_LDFLAGS
12152    LIBS=$save_LIBS
12153    ;;
12154  esac
12155
12156  case $lt_cv_dlopen_self in
12157  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12158  *) enable_dlopen_self=unknown ;;
12159  esac
12160
12161  case $lt_cv_dlopen_self_static in
12162  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12163  *) enable_dlopen_self_static=unknown ;;
12164  esac
12165fi
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183striplib=
12184old_striplib=
12185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12186$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12187if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12188  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12189  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12191$as_echo "yes" >&6; }
12192else
12193# FIXME - insert some real tests, host_os isn't really good enough
12194  case $host_os in
12195  darwin*)
12196    if test -n "$STRIP"; then
12197      striplib="$STRIP -x"
12198      old_striplib="$STRIP -S"
12199      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12200$as_echo "yes" >&6; }
12201    else
12202      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203$as_echo "no" >&6; }
12204    fi
12205    ;;
12206  *)
12207    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208$as_echo "no" >&6; }
12209    ;;
12210  esac
12211fi
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224  # Report what library types will actually be built
12225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12226$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12228$as_echo "$can_build_shared" >&6; }
12229
12230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12231$as_echo_n "checking whether to build shared libraries... " >&6; }
12232  test no = "$can_build_shared" && enable_shared=no
12233
12234  # On AIX, shared libraries and static libraries use the same namespace, and
12235  # are all built from PIC.
12236  case $host_os in
12237  aix3*)
12238    test yes = "$enable_shared" && enable_static=no
12239    if test -n "$RANLIB"; then
12240      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12241      postinstall_cmds='$RANLIB $lib'
12242    fi
12243    ;;
12244
12245  aix[4-9]*)
12246    if test ia64 != "$host_cpu"; then
12247      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12248      yes,aix,yes) ;;			# shared object as lib.so file only
12249      yes,svr4,*) ;;			# shared object as lib.so archive member only
12250      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12251      esac
12252    fi
12253    ;;
12254  esac
12255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12256$as_echo "$enable_shared" >&6; }
12257
12258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12259$as_echo_n "checking whether to build static libraries... " >&6; }
12260  # Make sure either enable_shared or enable_static is yes.
12261  test yes = "$enable_shared" || enable_static=yes
12262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12263$as_echo "$enable_static" >&6; }
12264
12265
12266
12267
12268fi
12269ac_ext=c
12270ac_cpp='$CPP $CPPFLAGS'
12271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12273ac_compiler_gnu=$ac_cv_c_compiler_gnu
12274
12275CC=$lt_save_CC
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291        ac_config_commands="$ac_config_commands libtool"
12292
12293
12294
12295
12296# Only expand once:
12297
12298
12299
12300# Check whether --enable-addresssanitizer was given.
12301if test "${enable_addresssanitizer+set}" = set; then :
12302  enableval=$enable_addresssanitizer;  enable_addresssanitizer=yes
12303fi
12304
12305# Check whether --enable-gperftools was given.
12306if test "${enable_gperftools+set}" = set; then :
12307  enableval=$enable_gperftools;  enable_gperftools=yes
12308fi
12309
12310# Check whether --enable-debug was given.
12311if test "${enable_debug+set}" = set; then :
12312  enableval=$enable_debug;  enable_debug=yes
12313fi
12314
12315
12316if test "X$MFS_FORCE_DEBUG" = "XYES"; then
12317	enable_debug=yes
12318fi
12319
12320if test "$GCC" = "yes"; then
12321	if test "$enable_addresssanitizer" = "yes" -o "$enable_gperftools" = "yes" -o "$enable_debug" = "yes" ; then
12322		CFLAGS="-O0 -fno-omit-frame-pointer -g -DMFSDEBUG  -std=c99 -Wall -Wextra -Wshadow -pedantic -fwrapv"
12323	else
12324		CFLAGS="-O2 $CFLAGS -g -std=c99 -Wall -Wextra -Wshadow -pedantic -fwrapv"
12325	fi
12326	if test "$enable_addresssanitizer" = "yes"; then
12327		CFLAGS="$CFLAGS -fsanitize=address"
12328	fi
12329	if test "$enable_gperftools" = "yes"; then
12330		CPPFLAGS="$CPPFLAGS -DGPERFTOOLS"
12331		LDFLAGS="$LDFLAGS -L/opt/local/lib -lprofiler"
12332	fi
12333fi
12334
12335case $target_os in
12336  *linux*)
12337	fuse=maybe
12338	CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -DDEFAULT_SUGID_CLEAR_MODE_EXT"
12339	;;
12340  *solaris*)
12341	# OpenSolaris has fuse available and is still identified as "solaris"
12342	fuse=maybe
12343	CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS -DDEFAULT_SUGID_CLEAR_MODE_OSX"
12344	;;
12345  *darwin*)
12346	fuse=maybe
12347	# MacFUSE installs to different prefix than pkgconfig
12348	if test -f /usr/local/lib/pkgconfig/fuse.pc ; then
12349		PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
12350		export PKG_CONFIG_PATH
12351	fi
12352	CPPFLAGS="$CPPFLAGS -DDEFAULT_SUGID_CLEAR_MODE_OSX"
12353	;;
12354  *bsd*|*dragonfly*)
12355	fuse=maybe
12356	CPPFLAGS="$CPPFLAGS -DDEFAULT_SUGID_CLEAR_MODE_BSD"
12357	;;
12358  *)
12359	fuse=no
12360	;;
12361esac
12362
12363
12364
12365
12366ac_ext=c
12367ac_cpp='$CPP $CPPFLAGS'
12368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12370ac_compiler_gnu=$ac_cv_c_compiler_gnu
12371
12372ax_pthread_ok=no
12373
12374# We used to check for pthread.h first, but this fails if pthread.h
12375# requires special compiler flags (e.g. on True64 or Sequent).
12376# It gets checked for in the link test anyway.
12377
12378# First of all, check if the user has set any of the PTHREAD_LIBS,
12379# etcetera environment variables, and if threads linking works using
12380# them:
12381if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
12382        save_CFLAGS="$CFLAGS"
12383        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12384        save_LIBS="$LIBS"
12385        LIBS="$PTHREAD_LIBS $LIBS"
12386        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
12387$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
12388        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389/* end confdefs.h.  */
12390
12391/* Override any GCC internal prototype to avoid an error.
12392   Use char because int might match the return type of a GCC
12393   builtin and then its argument prototype would still apply.  */
12394#ifdef __cplusplus
12395extern "C"
12396#endif
12397char pthread_join ();
12398int
12399main ()
12400{
12401return pthread_join ();
12402  ;
12403  return 0;
12404}
12405_ACEOF
12406if ac_fn_c_try_link "$LINENO"; then :
12407  ax_pthread_ok=yes
12408fi
12409rm -f core conftest.err conftest.$ac_objext \
12410    conftest$ac_exeext conftest.$ac_ext
12411        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
12412$as_echo "$ax_pthread_ok" >&6; }
12413        if test x"$ax_pthread_ok" = xno; then
12414                PTHREAD_LIBS=""
12415                PTHREAD_CFLAGS=""
12416        fi
12417        LIBS="$save_LIBS"
12418        CFLAGS="$save_CFLAGS"
12419fi
12420
12421# We must check for the threads library under a number of different
12422# names; the ordering is very important because some systems
12423# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
12424# libraries is broken (non-POSIX).
12425
12426# Create a list of thread flags to try.  Items starting with a "-" are
12427# C compiler flags, and other items are library names, except for "none"
12428# which indicates that we try without any flags at all, and "pthread-config"
12429# which is a program returning the flags for the Pth emulation library.
12430
12431ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
12432
12433# The ordering *is* (sometimes) important.  Some notes on the
12434# individual items follow:
12435
12436# pthreads: AIX (must check this before -lpthread)
12437# none: in case threads are in libc; should be tried before -Kthread and
12438#       other compiler flags to prevent continual compiler warnings
12439# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
12440# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
12441# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
12442# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
12443# -pthreads: Solaris/gcc
12444# -mthreads: Mingw32/gcc, Lynx/gcc
12445# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
12446#      doesn't hurt to check since this sometimes defines pthreads too;
12447#      also defines -D_REENTRANT)
12448#      ... -mt is also the pthreads flag for HP/aCC
12449# pthread: Linux, etcetera
12450# --thread-safe: KAI C++
12451# pthread-config: use pthread-config program (for GNU Pth library)
12452
12453case "${host_cpu}-${host_os}" in
12454        *solaris*)
12455
12456        # On Solaris (at least, for some versions), libc contains stubbed
12457        # (non-functional) versions of the pthreads routines, so link-based
12458        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
12459        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
12460        # a function called by this macro, so we could check for that, but
12461        # who knows whether they'll stub that too in a future libc.)  So,
12462        # we'll just look for -pthreads and -lpthread first:
12463
12464        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
12465        ;;
12466esac
12467
12468if test x"$ax_pthread_ok" = xno; then
12469for flag in $ax_pthread_flags; do
12470
12471        case $flag in
12472                none)
12473                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
12474$as_echo_n "checking whether pthreads work without any flags... " >&6; }
12475                ;;
12476
12477                -*)
12478                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
12479$as_echo_n "checking whether pthreads work with $flag... " >&6; }
12480                PTHREAD_CFLAGS="$flag"
12481                ;;
12482
12483		pthread-config)
12484		# Extract the first word of "pthread-config", so it can be a program name with args.
12485set dummy pthread-config; ac_word=$2
12486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12487$as_echo_n "checking for $ac_word... " >&6; }
12488if ${ac_cv_prog_ax_pthread_config+:} false; then :
12489  $as_echo_n "(cached) " >&6
12490else
12491  if test -n "$ax_pthread_config"; then
12492  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
12493else
12494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495for as_dir in $PATH
12496do
12497  IFS=$as_save_IFS
12498  test -z "$as_dir" && as_dir=.
12499    for ac_exec_ext in '' $ac_executable_extensions; do
12500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12501    ac_cv_prog_ax_pthread_config="yes"
12502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12503    break 2
12504  fi
12505done
12506  done
12507IFS=$as_save_IFS
12508
12509  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
12510fi
12511fi
12512ax_pthread_config=$ac_cv_prog_ax_pthread_config
12513if test -n "$ax_pthread_config"; then
12514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
12515$as_echo "$ax_pthread_config" >&6; }
12516else
12517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518$as_echo "no" >&6; }
12519fi
12520
12521
12522		if test x"$ax_pthread_config" = xno; then continue; fi
12523		PTHREAD_CFLAGS="`pthread-config --cflags`"
12524		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
12525		;;
12526
12527                *)
12528                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
12529$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
12530                PTHREAD_LIBS="-l$flag"
12531                ;;
12532        esac
12533
12534        save_LIBS="$LIBS"
12535        save_CFLAGS="$CFLAGS"
12536        LIBS="$PTHREAD_LIBS $LIBS"
12537        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12538
12539        # Check for various functions.  We must include pthread.h,
12540        # since some functions may be macros.  (On the Sequent, we
12541        # need a special flag -Kthread to make this header compile.)
12542        # We check for pthread_join because it is in -lpthread on IRIX
12543        # while pthread_create is in libc.  We check for pthread_attr_init
12544        # due to DEC craziness with -lpthreads.  We check for
12545        # pthread_cleanup_push because it is one of the few pthread
12546        # functions on Solaris that doesn't have a non-functional libc stub.
12547        # We try pthread_create on general principles.
12548        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549/* end confdefs.h.  */
12550#include <pthread.h>
12551	             static void routine(void* a) {a=0;}
12552	             static void* start_routine(void* a) {return a;}
12553int
12554main ()
12555{
12556pthread_t th; pthread_attr_t attr;
12557                     pthread_join(th, 0);
12558                     pthread_attr_init(&attr);
12559                     pthread_cleanup_push(routine, 0);
12560                     pthread_create(&th,0,start_routine,0);
12561                     pthread_cleanup_pop(0);
12562  ;
12563  return 0;
12564}
12565_ACEOF
12566if ac_fn_c_try_link "$LINENO"; then :
12567  ax_pthread_ok=yes
12568fi
12569rm -f core conftest.err conftest.$ac_objext \
12570    conftest$ac_exeext conftest.$ac_ext
12571
12572        LIBS="$save_LIBS"
12573        CFLAGS="$save_CFLAGS"
12574
12575        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
12576$as_echo "$ax_pthread_ok" >&6; }
12577        if test "x$ax_pthread_ok" = xyes; then
12578                break;
12579        fi
12580
12581        PTHREAD_LIBS=""
12582        PTHREAD_CFLAGS=""
12583done
12584fi
12585
12586# Various other checks:
12587if test "x$ax_pthread_ok" = xyes; then
12588        save_LIBS="$LIBS"
12589        LIBS="$PTHREAD_LIBS $LIBS"
12590        save_CFLAGS="$CFLAGS"
12591        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12592
12593        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
12594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
12595$as_echo_n "checking for joinable pthread attribute... " >&6; }
12596	attr_name=unknown
12597	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
12598	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599/* end confdefs.h.  */
12600#include <pthread.h>
12601int
12602main ()
12603{
12604int attr=$attr; return attr;
12605  ;
12606  return 0;
12607}
12608_ACEOF
12609if ac_fn_c_try_link "$LINENO"; then :
12610  attr_name=$attr; break
12611fi
12612rm -f core conftest.err conftest.$ac_objext \
12613    conftest$ac_exeext conftest.$ac_ext
12614	done
12615        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
12616$as_echo "$attr_name" >&6; }
12617        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
12618
12619cat >>confdefs.h <<_ACEOF
12620#define PTHREAD_CREATE_JOINABLE $attr_name
12621_ACEOF
12622
12623        fi
12624
12625        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
12626$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
12627        flag=no
12628        case "${host_cpu}-${host_os}" in
12629            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
12630            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
12631        esac
12632        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
12633$as_echo "${flag}" >&6; }
12634        if test "x$flag" != xno; then
12635            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
12636        fi
12637
12638	for ac_func in pthread_spin_lock
12639do :
12640  ac_fn_c_check_func "$LINENO" "pthread_spin_lock" "ac_cv_func_pthread_spin_lock"
12641if test "x$ac_cv_func_pthread_spin_lock" = xyes; then :
12642  cat >>confdefs.h <<_ACEOF
12643#define HAVE_PTHREAD_SPIN_LOCK 1
12644_ACEOF
12645
12646fi
12647done
12648
12649
12650        LIBS="$save_LIBS"
12651        CFLAGS="$save_CFLAGS"
12652
12653        # More AIX lossage: must compile with xlc_r or cc_r
12654	if test x"$GCC" != xyes; then
12655          for ac_prog in xlc_r cc_r
12656do
12657  # Extract the first word of "$ac_prog", so it can be a program name with args.
12658set dummy $ac_prog; ac_word=$2
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660$as_echo_n "checking for $ac_word... " >&6; }
12661if ${ac_cv_prog_PTHREAD_CC+:} false; then :
12662  $as_echo_n "(cached) " >&6
12663else
12664  if test -n "$PTHREAD_CC"; then
12665  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
12666else
12667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12668for as_dir in $PATH
12669do
12670  IFS=$as_save_IFS
12671  test -z "$as_dir" && as_dir=.
12672    for ac_exec_ext in '' $ac_executable_extensions; do
12673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12674    ac_cv_prog_PTHREAD_CC="$ac_prog"
12675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12676    break 2
12677  fi
12678done
12679  done
12680IFS=$as_save_IFS
12681
12682fi
12683fi
12684PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
12685if test -n "$PTHREAD_CC"; then
12686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
12687$as_echo "$PTHREAD_CC" >&6; }
12688else
12689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690$as_echo "no" >&6; }
12691fi
12692
12693
12694  test -n "$PTHREAD_CC" && break
12695done
12696test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
12697
12698        else
12699          PTHREAD_CC=$CC
12700	fi
12701else
12702        PTHREAD_CC="$CC"
12703fi
12704
12705
12706
12707
12708
12709# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
12710if test x"$ax_pthread_ok" = xyes; then
12711
12712$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
12713
12714        :
12715else
12716        ax_pthread_ok=no
12717        as_fn_error $? "Posix threads not found" "$LINENO" 5
12718fi
12719ac_ext=c
12720ac_cpp='$CPP $CPPFLAGS'
12721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12723ac_compiler_gnu=$ac_cv_c_compiler_gnu
12724
12725
12726
12727# Checks for libraries.
12728
12729# Solaris:
12730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12731$as_echo_n "checking for library containing socket... " >&6; }
12732if ${ac_cv_search_socket+:} false; then :
12733  $as_echo_n "(cached) " >&6
12734else
12735  ac_func_search_save_LIBS=$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 socket ();
12746int
12747main ()
12748{
12749return socket ();
12750  ;
12751  return 0;
12752}
12753_ACEOF
12754for ac_lib in '' socket; do
12755  if test -z "$ac_lib"; then
12756    ac_res="none required"
12757  else
12758    ac_res=-l$ac_lib
12759    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12760  fi
12761  if ac_fn_c_try_link "$LINENO"; then :
12762  ac_cv_search_socket=$ac_res
12763fi
12764rm -f core conftest.err conftest.$ac_objext \
12765    conftest$ac_exeext
12766  if ${ac_cv_search_socket+:} false; then :
12767  break
12768fi
12769done
12770if ${ac_cv_search_socket+:} false; then :
12771
12772else
12773  ac_cv_search_socket=no
12774fi
12775rm conftest.$ac_ext
12776LIBS=$ac_func_search_save_LIBS
12777fi
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12779$as_echo "$ac_cv_search_socket" >&6; }
12780ac_res=$ac_cv_search_socket
12781if test "$ac_res" != no; then :
12782  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12783
12784fi
12785
12786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12787$as_echo_n "checking for library containing getaddrinfo... " >&6; }
12788if ${ac_cv_search_getaddrinfo+:} false; then :
12789  $as_echo_n "(cached) " >&6
12790else
12791  ac_func_search_save_LIBS=$LIBS
12792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793/* end confdefs.h.  */
12794
12795/* Override any GCC internal prototype to avoid an error.
12796   Use char because int might match the return type of a GCC
12797   builtin and then its argument prototype would still apply.  */
12798#ifdef __cplusplus
12799extern "C"
12800#endif
12801char getaddrinfo ();
12802int
12803main ()
12804{
12805return getaddrinfo ();
12806  ;
12807  return 0;
12808}
12809_ACEOF
12810for ac_lib in '' nsl; do
12811  if test -z "$ac_lib"; then
12812    ac_res="none required"
12813  else
12814    ac_res=-l$ac_lib
12815    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12816  fi
12817  if ac_fn_c_try_link "$LINENO"; then :
12818  ac_cv_search_getaddrinfo=$ac_res
12819fi
12820rm -f core conftest.err conftest.$ac_objext \
12821    conftest$ac_exeext
12822  if ${ac_cv_search_getaddrinfo+:} false; then :
12823  break
12824fi
12825done
12826if ${ac_cv_search_getaddrinfo+:} false; then :
12827
12828else
12829  ac_cv_search_getaddrinfo=no
12830fi
12831rm conftest.$ac_ext
12832LIBS=$ac_func_search_save_LIBS
12833fi
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12835$as_echo "$ac_cv_search_getaddrinfo" >&6; }
12836ac_res=$ac_cv_search_getaddrinfo
12837if test "$ac_res" != no; then :
12838  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12839
12840fi
12841
12842# FreeBSD:
12843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
12844$as_echo_n "checking for library containing kvm_open... " >&6; }
12845if ${ac_cv_search_kvm_open+:} false; then :
12846  $as_echo_n "(cached) " >&6
12847else
12848  ac_func_search_save_LIBS=$LIBS
12849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850/* end confdefs.h.  */
12851
12852/* Override any GCC internal prototype to avoid an error.
12853   Use char because int might match the return type of a GCC
12854   builtin and then its argument prototype would still apply.  */
12855#ifdef __cplusplus
12856extern "C"
12857#endif
12858char kvm_open ();
12859int
12860main ()
12861{
12862return kvm_open ();
12863  ;
12864  return 0;
12865}
12866_ACEOF
12867for ac_lib in '' kvm; do
12868  if test -z "$ac_lib"; then
12869    ac_res="none required"
12870  else
12871    ac_res=-l$ac_lib
12872    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12873  fi
12874  if ac_fn_c_try_link "$LINENO"; then :
12875  ac_cv_search_kvm_open=$ac_res
12876fi
12877rm -f core conftest.err conftest.$ac_objext \
12878    conftest$ac_exeext
12879  if ${ac_cv_search_kvm_open+:} false; then :
12880  break
12881fi
12882done
12883if ${ac_cv_search_kvm_open+:} false; then :
12884
12885else
12886  ac_cv_search_kvm_open=no
12887fi
12888rm conftest.$ac_ext
12889LIBS=$ac_func_search_save_LIBS
12890fi
12891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
12892$as_echo "$ac_cv_search_kvm_open" >&6; }
12893ac_res=$ac_cv_search_kvm_open
12894if test "$ac_res" != no; then :
12895  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12896
12897fi
12898
12899# All:
12900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing round" >&5
12901$as_echo_n "checking for library containing round... " >&6; }
12902if ${ac_cv_search_round+:} false; then :
12903  $as_echo_n "(cached) " >&6
12904else
12905  ac_func_search_save_LIBS=$LIBS
12906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12907/* end confdefs.h.  */
12908
12909/* Override any GCC internal prototype to avoid an error.
12910   Use char because int might match the return type of a GCC
12911   builtin and then its argument prototype would still apply.  */
12912#ifdef __cplusplus
12913extern "C"
12914#endif
12915char round ();
12916int
12917main ()
12918{
12919return round ();
12920  ;
12921  return 0;
12922}
12923_ACEOF
12924for ac_lib in '' m; do
12925  if test -z "$ac_lib"; then
12926    ac_res="none required"
12927  else
12928    ac_res=-l$ac_lib
12929    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12930  fi
12931  if ac_fn_c_try_link "$LINENO"; then :
12932  ac_cv_search_round=$ac_res
12933fi
12934rm -f core conftest.err conftest.$ac_objext \
12935    conftest$ac_exeext
12936  if ${ac_cv_search_round+:} false; then :
12937  break
12938fi
12939done
12940if ${ac_cv_search_round+:} false; then :
12941
12942else
12943  ac_cv_search_round=no
12944fi
12945rm conftest.$ac_ext
12946LIBS=$ac_func_search_save_LIBS
12947fi
12948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_round" >&5
12949$as_echo "$ac_cv_search_round" >&6; }
12950ac_res=$ac_cv_search_round
12951if test "$ac_res" != no; then :
12952  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12953
12954fi
12955
12956# Linux:
12957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12958$as_echo_n "checking for library containing clock_gettime... " >&6; }
12959if ${ac_cv_search_clock_gettime+:} false; then :
12960  $as_echo_n "(cached) " >&6
12961else
12962  ac_func_search_save_LIBS=$LIBS
12963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964/* end confdefs.h.  */
12965
12966/* Override any GCC internal prototype to avoid an error.
12967   Use char because int might match the return type of a GCC
12968   builtin and then its argument prototype would still apply.  */
12969#ifdef __cplusplus
12970extern "C"
12971#endif
12972char clock_gettime ();
12973int
12974main ()
12975{
12976return clock_gettime ();
12977  ;
12978  return 0;
12979}
12980_ACEOF
12981for ac_lib in '' rt; do
12982  if test -z "$ac_lib"; then
12983    ac_res="none required"
12984  else
12985    ac_res=-l$ac_lib
12986    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12987  fi
12988  if ac_fn_c_try_link "$LINENO"; then :
12989  ac_cv_search_clock_gettime=$ac_res
12990fi
12991rm -f core conftest.err conftest.$ac_objext \
12992    conftest$ac_exeext
12993  if ${ac_cv_search_clock_gettime+:} false; then :
12994  break
12995fi
12996done
12997if ${ac_cv_search_clock_gettime+:} false; then :
12998
12999else
13000  ac_cv_search_clock_gettime=no
13001fi
13002rm conftest.$ac_ext
13003LIBS=$ac_func_search_save_LIBS
13004fi
13005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13006$as_echo "$ac_cv_search_clock_gettime" >&6; }
13007ac_res=$ac_cv_search_clock_gettime
13008if test "$ac_res" != no; then :
13009  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13010
13011fi
13012
13013
13014# Checks for header files.
13015ac_header_dirent=no
13016for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13017  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13019$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13020if eval \${$as_ac_Header+:} false; then :
13021  $as_echo_n "(cached) " >&6
13022else
13023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024/* end confdefs.h.  */
13025#include <sys/types.h>
13026#include <$ac_hdr>
13027
13028int
13029main ()
13030{
13031if ((DIR *) 0)
13032return 0;
13033  ;
13034  return 0;
13035}
13036_ACEOF
13037if ac_fn_c_try_compile "$LINENO"; then :
13038  eval "$as_ac_Header=yes"
13039else
13040  eval "$as_ac_Header=no"
13041fi
13042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13043fi
13044eval ac_res=\$$as_ac_Header
13045	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13046$as_echo "$ac_res" >&6; }
13047if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13048  cat >>confdefs.h <<_ACEOF
13049#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13050_ACEOF
13051
13052ac_header_dirent=$ac_hdr; break
13053fi
13054
13055done
13056# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13057if test $ac_header_dirent = dirent.h; then
13058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13059$as_echo_n "checking for library containing opendir... " >&6; }
13060if ${ac_cv_search_opendir+:} false; then :
13061  $as_echo_n "(cached) " >&6
13062else
13063  ac_func_search_save_LIBS=$LIBS
13064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13065/* end confdefs.h.  */
13066
13067/* Override any GCC internal prototype to avoid an error.
13068   Use char because int might match the return type of a GCC
13069   builtin and then its argument prototype would still apply.  */
13070#ifdef __cplusplus
13071extern "C"
13072#endif
13073char opendir ();
13074int
13075main ()
13076{
13077return opendir ();
13078  ;
13079  return 0;
13080}
13081_ACEOF
13082for ac_lib in '' dir; do
13083  if test -z "$ac_lib"; then
13084    ac_res="none required"
13085  else
13086    ac_res=-l$ac_lib
13087    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13088  fi
13089  if ac_fn_c_try_link "$LINENO"; then :
13090  ac_cv_search_opendir=$ac_res
13091fi
13092rm -f core conftest.err conftest.$ac_objext \
13093    conftest$ac_exeext
13094  if ${ac_cv_search_opendir+:} false; then :
13095  break
13096fi
13097done
13098if ${ac_cv_search_opendir+:} false; then :
13099
13100else
13101  ac_cv_search_opendir=no
13102fi
13103rm conftest.$ac_ext
13104LIBS=$ac_func_search_save_LIBS
13105fi
13106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13107$as_echo "$ac_cv_search_opendir" >&6; }
13108ac_res=$ac_cv_search_opendir
13109if test "$ac_res" != no; then :
13110  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13111
13112fi
13113
13114else
13115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13116$as_echo_n "checking for library containing opendir... " >&6; }
13117if ${ac_cv_search_opendir+:} false; then :
13118  $as_echo_n "(cached) " >&6
13119else
13120  ac_func_search_save_LIBS=$LIBS
13121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122/* end confdefs.h.  */
13123
13124/* Override any GCC internal prototype to avoid an error.
13125   Use char because int might match the return type of a GCC
13126   builtin and then its argument prototype would still apply.  */
13127#ifdef __cplusplus
13128extern "C"
13129#endif
13130char opendir ();
13131int
13132main ()
13133{
13134return opendir ();
13135  ;
13136  return 0;
13137}
13138_ACEOF
13139for ac_lib in '' x; do
13140  if test -z "$ac_lib"; then
13141    ac_res="none required"
13142  else
13143    ac_res=-l$ac_lib
13144    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13145  fi
13146  if ac_fn_c_try_link "$LINENO"; then :
13147  ac_cv_search_opendir=$ac_res
13148fi
13149rm -f core conftest.err conftest.$ac_objext \
13150    conftest$ac_exeext
13151  if ${ac_cv_search_opendir+:} false; then :
13152  break
13153fi
13154done
13155if ${ac_cv_search_opendir+:} false; then :
13156
13157else
13158  ac_cv_search_opendir=no
13159fi
13160rm conftest.$ac_ext
13161LIBS=$ac_func_search_save_LIBS
13162fi
13163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13164$as_echo "$ac_cv_search_opendir" >&6; }
13165ac_res=$ac_cv_search_opendir
13166if test "$ac_res" != no; then :
13167  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13168
13169fi
13170
13171fi
13172
13173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13174$as_echo_n "checking for ANSI C header files... " >&6; }
13175if ${ac_cv_header_stdc+:} false; then :
13176  $as_echo_n "(cached) " >&6
13177else
13178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179/* end confdefs.h.  */
13180#include <stdlib.h>
13181#include <stdarg.h>
13182#include <string.h>
13183#include <float.h>
13184
13185int
13186main ()
13187{
13188
13189  ;
13190  return 0;
13191}
13192_ACEOF
13193if ac_fn_c_try_compile "$LINENO"; then :
13194  ac_cv_header_stdc=yes
13195else
13196  ac_cv_header_stdc=no
13197fi
13198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13199
13200if test $ac_cv_header_stdc = yes; then
13201  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203/* end confdefs.h.  */
13204#include <string.h>
13205
13206_ACEOF
13207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13208  $EGREP "memchr" >/dev/null 2>&1; then :
13209
13210else
13211  ac_cv_header_stdc=no
13212fi
13213rm -f conftest*
13214
13215fi
13216
13217if test $ac_cv_header_stdc = yes; then
13218  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220/* end confdefs.h.  */
13221#include <stdlib.h>
13222
13223_ACEOF
13224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13225  $EGREP "free" >/dev/null 2>&1; then :
13226
13227else
13228  ac_cv_header_stdc=no
13229fi
13230rm -f conftest*
13231
13232fi
13233
13234if test $ac_cv_header_stdc = yes; then
13235  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13236  if test "$cross_compiling" = yes; then :
13237  :
13238else
13239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240/* end confdefs.h.  */
13241#include <ctype.h>
13242#include <stdlib.h>
13243#if ((' ' & 0x0FF) == 0x020)
13244# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13245# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13246#else
13247# define ISLOWER(c) \
13248		   (('a' <= (c) && (c) <= 'i') \
13249		     || ('j' <= (c) && (c) <= 'r') \
13250		     || ('s' <= (c) && (c) <= 'z'))
13251# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13252#endif
13253
13254#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13255int
13256main ()
13257{
13258  int i;
13259  for (i = 0; i < 256; i++)
13260    if (XOR (islower (i), ISLOWER (i))
13261	|| toupper (i) != TOUPPER (i))
13262      return 2;
13263  return 0;
13264}
13265_ACEOF
13266if ac_fn_c_try_run "$LINENO"; then :
13267
13268else
13269  ac_cv_header_stdc=no
13270fi
13271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13272  conftest.$ac_objext conftest.beam conftest.$ac_ext
13273fi
13274
13275fi
13276fi
13277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13278$as_echo "$ac_cv_header_stdc" >&6; }
13279if test $ac_cv_header_stdc = yes; then
13280
13281$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13282
13283fi
13284
13285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13286$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13287if ${ac_cv_header_sys_wait_h+:} false; then :
13288  $as_echo_n "(cached) " >&6
13289else
13290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291/* end confdefs.h.  */
13292#include <sys/types.h>
13293#include <sys/wait.h>
13294#ifndef WEXITSTATUS
13295# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13296#endif
13297#ifndef WIFEXITED
13298# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13299#endif
13300
13301int
13302main ()
13303{
13304  int s;
13305  wait (&s);
13306  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13307  ;
13308  return 0;
13309}
13310_ACEOF
13311if ac_fn_c_try_compile "$LINENO"; then :
13312  ac_cv_header_sys_wait_h=yes
13313else
13314  ac_cv_header_sys_wait_h=no
13315fi
13316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13317fi
13318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13319$as_echo "$ac_cv_header_sys_wait_h" >&6; }
13320if test $ac_cv_header_sys_wait_h = yes; then
13321
13322$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13323
13324fi
13325
13326for 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
13327do :
13328  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13329ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13330if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13331  cat >>confdefs.h <<_ACEOF
13332#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13333_ACEOF
13334
13335else
13336  as_fn_error $? "One of required headers was not found" "$LINENO" 5
13337fi
13338
13339done
13340
13341
13342# Checks for typedefs, structures, and compiler characteristics.
13343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13344$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13345if ${ac_cv_c_const+:} false; then :
13346  $as_echo_n "(cached) " >&6
13347else
13348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349/* end confdefs.h.  */
13350
13351int
13352main ()
13353{
13354
13355#ifndef __cplusplus
13356  /* Ultrix mips cc rejects this sort of thing.  */
13357  typedef int charset[2];
13358  const charset cs = { 0, 0 };
13359  /* SunOS 4.1.1 cc rejects this.  */
13360  char const *const *pcpcc;
13361  char **ppc;
13362  /* NEC SVR4.0.2 mips cc rejects this.  */
13363  struct point {int x, y;};
13364  static struct point const zero = {0,0};
13365  /* AIX XL C 1.02.0.0 rejects this.
13366     It does not let you subtract one const X* pointer from another in
13367     an arm of an if-expression whose if-part is not a constant
13368     expression */
13369  const char *g = "string";
13370  pcpcc = &g + (g ? g-g : 0);
13371  /* HPUX 7.0 cc rejects these. */
13372  ++pcpcc;
13373  ppc = (char**) pcpcc;
13374  pcpcc = (char const *const *) ppc;
13375  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13376    char tx;
13377    char *t = &tx;
13378    char const *s = 0 ? (char *) 0 : (char const *) 0;
13379
13380    *t++ = 0;
13381    if (s) return 0;
13382  }
13383  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13384    int x[] = {25, 17};
13385    const int *foo = &x[0];
13386    ++foo;
13387  }
13388  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13389    typedef const int *iptr;
13390    iptr p = 0;
13391    ++p;
13392  }
13393  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13394       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13395    struct s { int j; const int *ap[3]; } bx;
13396    struct s *b = &bx; b->j = 5;
13397  }
13398  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13399    const int foo = 10;
13400    if (!foo) return 0;
13401  }
13402  return !cs[0] && !zero.x;
13403#endif
13404
13405  ;
13406  return 0;
13407}
13408_ACEOF
13409if ac_fn_c_try_compile "$LINENO"; then :
13410  ac_cv_c_const=yes
13411else
13412  ac_cv_c_const=no
13413fi
13414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13415fi
13416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13417$as_echo "$ac_cv_c_const" >&6; }
13418if test $ac_cv_c_const = no; then
13419
13420$as_echo "#define const /**/" >>confdefs.h
13421
13422fi
13423
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13425$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13426if ${ac_cv_c_bigendian+:} false; then :
13427  $as_echo_n "(cached) " >&6
13428else
13429  ac_cv_c_bigendian=unknown
13430    # See if we're dealing with a universal compiler.
13431    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432/* end confdefs.h.  */
13433#ifndef __APPLE_CC__
13434	       not a universal capable compiler
13435	     #endif
13436	     typedef int dummy;
13437
13438_ACEOF
13439if ac_fn_c_try_compile "$LINENO"; then :
13440
13441	# Check for potential -arch flags.  It is not universal unless
13442	# there are at least two -arch flags with different values.
13443	ac_arch=
13444	ac_prev=
13445	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13446	 if test -n "$ac_prev"; then
13447	   case $ac_word in
13448	     i?86 | x86_64 | ppc | ppc64)
13449	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13450		 ac_arch=$ac_word
13451	       else
13452		 ac_cv_c_bigendian=universal
13453		 break
13454	       fi
13455	       ;;
13456	   esac
13457	   ac_prev=
13458	 elif test "x$ac_word" = "x-arch"; then
13459	   ac_prev=arch
13460	 fi
13461       done
13462fi
13463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13464    if test $ac_cv_c_bigendian = unknown; then
13465      # See if sys/param.h defines the BYTE_ORDER macro.
13466      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467/* end confdefs.h.  */
13468#include <sys/types.h>
13469	     #include <sys/param.h>
13470
13471int
13472main ()
13473{
13474#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13475		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13476		     && LITTLE_ENDIAN)
13477	      bogus endian macros
13478	     #endif
13479
13480  ;
13481  return 0;
13482}
13483_ACEOF
13484if ac_fn_c_try_compile "$LINENO"; then :
13485  # It does; now see whether it defined to BIG_ENDIAN or not.
13486	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487/* end confdefs.h.  */
13488#include <sys/types.h>
13489		#include <sys/param.h>
13490
13491int
13492main ()
13493{
13494#if BYTE_ORDER != BIG_ENDIAN
13495		 not big endian
13496		#endif
13497
13498  ;
13499  return 0;
13500}
13501_ACEOF
13502if ac_fn_c_try_compile "$LINENO"; then :
13503  ac_cv_c_bigendian=yes
13504else
13505  ac_cv_c_bigendian=no
13506fi
13507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13508fi
13509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13510    fi
13511    if test $ac_cv_c_bigendian = unknown; then
13512      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13513      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514/* end confdefs.h.  */
13515#include <limits.h>
13516
13517int
13518main ()
13519{
13520#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13521	      bogus endian macros
13522	     #endif
13523
13524  ;
13525  return 0;
13526}
13527_ACEOF
13528if ac_fn_c_try_compile "$LINENO"; then :
13529  # It does; now see whether it defined to _BIG_ENDIAN or not.
13530	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531/* end confdefs.h.  */
13532#include <limits.h>
13533
13534int
13535main ()
13536{
13537#ifndef _BIG_ENDIAN
13538		 not big endian
13539		#endif
13540
13541  ;
13542  return 0;
13543}
13544_ACEOF
13545if ac_fn_c_try_compile "$LINENO"; then :
13546  ac_cv_c_bigendian=yes
13547else
13548  ac_cv_c_bigendian=no
13549fi
13550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13551fi
13552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13553    fi
13554    if test $ac_cv_c_bigendian = unknown; then
13555      # Compile a test program.
13556      if test "$cross_compiling" = yes; then :
13557  # Try to guess by grepping values from an object file.
13558	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559/* end confdefs.h.  */
13560short int ascii_mm[] =
13561		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13562		short int ascii_ii[] =
13563		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13564		int use_ascii (int i) {
13565		  return ascii_mm[i] + ascii_ii[i];
13566		}
13567		short int ebcdic_ii[] =
13568		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13569		short int ebcdic_mm[] =
13570		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13571		int use_ebcdic (int i) {
13572		  return ebcdic_mm[i] + ebcdic_ii[i];
13573		}
13574		extern int foo;
13575
13576int
13577main ()
13578{
13579return use_ascii (foo) == use_ebcdic (foo);
13580  ;
13581  return 0;
13582}
13583_ACEOF
13584if ac_fn_c_try_compile "$LINENO"; then :
13585  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13586	      ac_cv_c_bigendian=yes
13587	    fi
13588	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13589	      if test "$ac_cv_c_bigendian" = unknown; then
13590		ac_cv_c_bigendian=no
13591	      else
13592		# finding both strings is unlikely to happen, but who knows?
13593		ac_cv_c_bigendian=unknown
13594	      fi
13595	    fi
13596fi
13597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13598else
13599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600/* end confdefs.h.  */
13601$ac_includes_default
13602int
13603main ()
13604{
13605
13606	     /* Are we little or big endian?  From Harbison&Steele.  */
13607	     union
13608	     {
13609	       long int l;
13610	       char c[sizeof (long int)];
13611	     } u;
13612	     u.l = 1;
13613	     return u.c[sizeof (long int) - 1] == 1;
13614
13615  ;
13616  return 0;
13617}
13618_ACEOF
13619if ac_fn_c_try_run "$LINENO"; then :
13620  ac_cv_c_bigendian=no
13621else
13622  ac_cv_c_bigendian=yes
13623fi
13624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13625  conftest.$ac_objext conftest.beam conftest.$ac_ext
13626fi
13627
13628    fi
13629fi
13630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13631$as_echo "$ac_cv_c_bigendian" >&6; }
13632 case $ac_cv_c_bigendian in #(
13633   yes)
13634     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13635;; #(
13636   no)
13637      ;; #(
13638   universal)
13639
13640$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13641
13642     ;; #(
13643   *)
13644     as_fn_error $? "unknown endianness
13645 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13646 esac
13647
13648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13649$as_echo_n "checking for inline... " >&6; }
13650if ${ac_cv_c_inline+:} false; then :
13651  $as_echo_n "(cached) " >&6
13652else
13653  ac_cv_c_inline=no
13654for ac_kw in inline __inline__ __inline; do
13655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656/* end confdefs.h.  */
13657#ifndef __cplusplus
13658typedef int foo_t;
13659static $ac_kw foo_t static_foo () {return 0; }
13660$ac_kw foo_t foo () {return 0; }
13661#endif
13662
13663_ACEOF
13664if ac_fn_c_try_compile "$LINENO"; then :
13665  ac_cv_c_inline=$ac_kw
13666fi
13667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13668  test "$ac_cv_c_inline" != no && break
13669done
13670
13671fi
13672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13673$as_echo "$ac_cv_c_inline" >&6; }
13674
13675case $ac_cv_c_inline in
13676  inline | yes) ;;
13677  *)
13678    case $ac_cv_c_inline in
13679      no) ac_val=;;
13680      *) ac_val=$ac_cv_c_inline;;
13681    esac
13682    cat >>confdefs.h <<_ACEOF
13683#ifndef __cplusplus
13684#define inline $ac_val
13685#endif
13686_ACEOF
13687    ;;
13688esac
13689
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13691$as_echo_n "checking for working volatile... " >&6; }
13692if ${ac_cv_c_volatile+:} false; then :
13693  $as_echo_n "(cached) " >&6
13694else
13695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696/* end confdefs.h.  */
13697
13698int
13699main ()
13700{
13701
13702volatile int x;
13703int * volatile y = (int *) 0;
13704return !x && !y;
13705  ;
13706  return 0;
13707}
13708_ACEOF
13709if ac_fn_c_try_compile "$LINENO"; then :
13710  ac_cv_c_volatile=yes
13711else
13712  ac_cv_c_volatile=no
13713fi
13714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13715fi
13716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13717$as_echo "$ac_cv_c_volatile" >&6; }
13718if test $ac_cv_c_volatile = no; then
13719
13720$as_echo "#define volatile /**/" >>confdefs.h
13721
13722fi
13723
13724
13725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
13726$as_echo_n "checking for flexible array members... " >&6; }
13727if ${ac_cv_c_flexmember+:} false; then :
13728  $as_echo_n "(cached) " >&6
13729else
13730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13731/* end confdefs.h.  */
13732#include <stdlib.h>
13733	    #include <stdio.h>
13734	    #include <stddef.h>
13735	    struct s { int n; double d[]; };
13736int
13737main ()
13738{
13739int m = getchar ();
13740	    struct s *p = malloc (offsetof (struct s, d)
13741				  + m * sizeof (double));
13742	    p->d[0] = 0.0;
13743	    return p->d != (double *) NULL;
13744  ;
13745  return 0;
13746}
13747_ACEOF
13748if ac_fn_c_try_compile "$LINENO"; then :
13749  ac_cv_c_flexmember=yes
13750else
13751  ac_cv_c_flexmember=no
13752fi
13753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13754fi
13755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
13756$as_echo "$ac_cv_c_flexmember" >&6; }
13757  if test $ac_cv_c_flexmember = yes; then
13758
13759$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
13760
13761  else
13762    $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
13763
13764  fi
13765
13766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13767$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13768if ${ac_cv_header_stdbool_h+:} false; then :
13769  $as_echo_n "(cached) " >&6
13770else
13771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772/* end confdefs.h.  */
13773
13774             #include <stdbool.h>
13775             #ifndef bool
13776              "error: bool is not defined"
13777             #endif
13778             #ifndef false
13779              "error: false is not defined"
13780             #endif
13781             #if false
13782              "error: false is not 0"
13783             #endif
13784             #ifndef true
13785              "error: true is not defined"
13786             #endif
13787             #if true != 1
13788              "error: true is not 1"
13789             #endif
13790             #ifndef __bool_true_false_are_defined
13791              "error: __bool_true_false_are_defined is not defined"
13792             #endif
13793
13794             struct s { _Bool s: 1; _Bool t; } s;
13795
13796             char a[true == 1 ? 1 : -1];
13797             char b[false == 0 ? 1 : -1];
13798             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13799             char d[(bool) 0.5 == true ? 1 : -1];
13800             /* See body of main program for 'e'.  */
13801             char f[(_Bool) 0.0 == false ? 1 : -1];
13802             char g[true];
13803             char h[sizeof (_Bool)];
13804             char i[sizeof s.t];
13805             enum { j = false, k = true, l = false * true, m = true * 256 };
13806             /* The following fails for
13807                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13808             _Bool n[m];
13809             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13810             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13811             /* Catch a bug in an HP-UX C compiler.  See
13812                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13813                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13814              */
13815             _Bool q = true;
13816             _Bool *pq = &q;
13817
13818int
13819main ()
13820{
13821
13822             bool e = &s;
13823             *pq |= q;
13824             *pq |= ! q;
13825             /* Refer to every declared value, to avoid compiler optimizations.  */
13826             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13827                     + !m + !n + !o + !p + !q + !pq);
13828
13829  ;
13830  return 0;
13831}
13832_ACEOF
13833if ac_fn_c_try_compile "$LINENO"; then :
13834  ac_cv_header_stdbool_h=yes
13835else
13836  ac_cv_header_stdbool_h=no
13837fi
13838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13839fi
13840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13841$as_echo "$ac_cv_header_stdbool_h" >&6; }
13842   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13843if test "x$ac_cv_type__Bool" = xyes; then :
13844
13845cat >>confdefs.h <<_ACEOF
13846#define HAVE__BOOL 1
13847_ACEOF
13848
13849
13850fi
13851
13852
13853if test $ac_cv_header_stdbool_h = yes; then
13854
13855$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
13856
13857fi
13858
13859ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
13860case $ac_cv_c_int8_t in #(
13861  no|yes) ;; #(
13862  *)
13863
13864cat >>confdefs.h <<_ACEOF
13865#define int8_t $ac_cv_c_int8_t
13866_ACEOF
13867;;
13868esac
13869
13870ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
13871case $ac_cv_c_uint8_t in #(
13872  no|yes) ;; #(
13873  *)
13874
13875$as_echo "#define _UINT8_T 1" >>confdefs.h
13876
13877
13878cat >>confdefs.h <<_ACEOF
13879#define uint8_t $ac_cv_c_uint8_t
13880_ACEOF
13881;;
13882  esac
13883
13884ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
13885case $ac_cv_c_int16_t in #(
13886  no|yes) ;; #(
13887  *)
13888
13889cat >>confdefs.h <<_ACEOF
13890#define int16_t $ac_cv_c_int16_t
13891_ACEOF
13892;;
13893esac
13894
13895ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
13896case $ac_cv_c_uint16_t in #(
13897  no|yes) ;; #(
13898  *)
13899
13900
13901cat >>confdefs.h <<_ACEOF
13902#define uint16_t $ac_cv_c_uint16_t
13903_ACEOF
13904;;
13905  esac
13906
13907ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
13908case $ac_cv_c_int32_t in #(
13909  no|yes) ;; #(
13910  *)
13911
13912cat >>confdefs.h <<_ACEOF
13913#define int32_t $ac_cv_c_int32_t
13914_ACEOF
13915;;
13916esac
13917
13918ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13919case $ac_cv_c_uint32_t in #(
13920  no|yes) ;; #(
13921  *)
13922
13923$as_echo "#define _UINT32_T 1" >>confdefs.h
13924
13925
13926cat >>confdefs.h <<_ACEOF
13927#define uint32_t $ac_cv_c_uint32_t
13928_ACEOF
13929;;
13930  esac
13931
13932ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
13933case $ac_cv_c_int64_t in #(
13934  no|yes) ;; #(
13935  *)
13936
13937cat >>confdefs.h <<_ACEOF
13938#define int64_t $ac_cv_c_int64_t
13939_ACEOF
13940;;
13941esac
13942
13943ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
13944case $ac_cv_c_uint64_t in #(
13945  no|yes) ;; #(
13946  *)
13947
13948$as_echo "#define _UINT64_T 1" >>confdefs.h
13949
13950
13951cat >>confdefs.h <<_ACEOF
13952#define uint64_t $ac_cv_c_uint64_t
13953_ACEOF
13954;;
13955  esac
13956
13957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13958$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13959if ${ac_cv_type_uid_t+:} false; then :
13960  $as_echo_n "(cached) " >&6
13961else
13962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963/* end confdefs.h.  */
13964#include <sys/types.h>
13965
13966_ACEOF
13967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13968  $EGREP "uid_t" >/dev/null 2>&1; then :
13969  ac_cv_type_uid_t=yes
13970else
13971  ac_cv_type_uid_t=no
13972fi
13973rm -f conftest*
13974
13975fi
13976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13977$as_echo "$ac_cv_type_uid_t" >&6; }
13978if test $ac_cv_type_uid_t = no; then
13979
13980$as_echo "#define uid_t int" >>confdefs.h
13981
13982
13983$as_echo "#define gid_t int" >>confdefs.h
13984
13985fi
13986
13987ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13988if test "x$ac_cv_type_mode_t" = xyes; then :
13989
13990else
13991
13992cat >>confdefs.h <<_ACEOF
13993#define mode_t int
13994_ACEOF
13995
13996fi
13997
13998ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13999if test "x$ac_cv_type_off_t" = xyes; then :
14000
14001else
14002
14003cat >>confdefs.h <<_ACEOF
14004#define off_t long int
14005_ACEOF
14006
14007fi
14008
14009ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14010if test "x$ac_cv_type_pid_t" = xyes; then :
14011
14012else
14013
14014cat >>confdefs.h <<_ACEOF
14015#define pid_t int
14016_ACEOF
14017
14018fi
14019
14020ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14021if test "x$ac_cv_type_size_t" = xyes; then :
14022
14023else
14024
14025cat >>confdefs.h <<_ACEOF
14026#define size_t unsigned int
14027_ACEOF
14028
14029fi
14030
14031ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14032if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14033
14034cat >>confdefs.h <<_ACEOF
14035#define HAVE_STRUCT_STAT_ST_BLOCKS 1
14036_ACEOF
14037
14038
14039$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
14040
14041else
14042  case " $LIBOBJS " in
14043  *" fileblocks.$ac_objext "* ) ;;
14044  *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
14045 ;;
14046esac
14047
14048fi
14049
14050
14051ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
14052if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
14053
14054cat >>confdefs.h <<_ACEOF
14055#define HAVE_STRUCT_STAT_ST_RDEV 1
14056_ACEOF
14057
14058
14059fi
14060
14061ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
14062if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
14063
14064cat >>confdefs.h <<_ACEOF
14065#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
14066_ACEOF
14067
14068
14069fi
14070
14071ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
14072if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
14073
14074cat >>confdefs.h <<_ACEOF
14075#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14076_ACEOF
14077
14078
14079fi
14080
14081ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
14082if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
14083
14084cat >>confdefs.h <<_ACEOF
14085#define HAVE_STRUCT_STAT_ST_FLAGS 1
14086_ACEOF
14087
14088
14089fi
14090
14091ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
14092#include <sys/types.h>
14093#include <sys/socket.h>
14094#include <netinet/in.h>
14095
14096"
14097if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14098
14099$as_echo "#define HAVE_SOCKADDR_SIN_LEN 1" >>confdefs.h
14100
14101fi
14102
14103
14104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14105$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14106if ${ac_cv_header_time+:} false; then :
14107  $as_echo_n "(cached) " >&6
14108else
14109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110/* end confdefs.h.  */
14111#include <sys/types.h>
14112#include <sys/time.h>
14113#include <time.h>
14114
14115int
14116main ()
14117{
14118if ((struct tm *) 0)
14119return 0;
14120  ;
14121  return 0;
14122}
14123_ACEOF
14124if ac_fn_c_try_compile "$LINENO"; then :
14125  ac_cv_header_time=yes
14126else
14127  ac_cv_header_time=no
14128fi
14129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14130fi
14131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14132$as_echo "$ac_cv_header_time" >&6; }
14133if test $ac_cv_header_time = yes; then
14134
14135$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14136
14137fi
14138
14139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
14140$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14141if ${ac_cv_struct_tm+:} false; then :
14142  $as_echo_n "(cached) " >&6
14143else
14144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145/* end confdefs.h.  */
14146#include <sys/types.h>
14147#include <time.h>
14148
14149int
14150main ()
14151{
14152struct tm tm;
14153				     int *p = &tm.tm_sec;
14154				     return !p;
14155  ;
14156  return 0;
14157}
14158_ACEOF
14159if ac_fn_c_try_compile "$LINENO"; then :
14160  ac_cv_struct_tm=time.h
14161else
14162  ac_cv_struct_tm=sys/time.h
14163fi
14164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14165fi
14166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14167$as_echo "$ac_cv_struct_tm" >&6; }
14168if test $ac_cv_struct_tm = sys/time.h; then
14169
14170$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
14171
14172fi
14173
14174ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
14175#ifdef TM_IN_SYS_TIME
14176#  include <sys/time.h>
14177#else
14178#  include <time.h>
14179#endif
14180
14181"
14182if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
14183
14184cat >>confdefs.h <<_ACEOF
14185#define HAVE_STRUCT_TM_TM_GMTOFF 1
14186_ACEOF
14187
14188
14189fi
14190
14191
14192# Check whether --enable-largefile was given.
14193if test "${enable_largefile+set}" = set; then :
14194  enableval=$enable_largefile;
14195fi
14196
14197if test "$enable_largefile" != no; then
14198
14199  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14200$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14201if ${ac_cv_sys_largefile_CC+:} false; then :
14202  $as_echo_n "(cached) " >&6
14203else
14204  ac_cv_sys_largefile_CC=no
14205     if test "$GCC" != yes; then
14206       ac_save_CC=$CC
14207       while :; do
14208	 # IRIX 6.2 and later do not support large files by default,
14209	 # so use the C compiler's -n32 option if that helps.
14210	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211/* end confdefs.h.  */
14212#include <sys/types.h>
14213 /* Check that off_t can represent 2**63 - 1 correctly.
14214    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14215    since some C++ compilers masquerading as C compilers
14216    incorrectly reject 9223372036854775807.  */
14217#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14218  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14219		       && LARGE_OFF_T % 2147483647 == 1)
14220		      ? 1 : -1];
14221int
14222main ()
14223{
14224
14225  ;
14226  return 0;
14227}
14228_ACEOF
14229	 if ac_fn_c_try_compile "$LINENO"; then :
14230  break
14231fi
14232rm -f core conftest.err conftest.$ac_objext
14233	 CC="$CC -n32"
14234	 if ac_fn_c_try_compile "$LINENO"; then :
14235  ac_cv_sys_largefile_CC=' -n32'; break
14236fi
14237rm -f core conftest.err conftest.$ac_objext
14238	 break
14239       done
14240       CC=$ac_save_CC
14241       rm -f conftest.$ac_ext
14242    fi
14243fi
14244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14245$as_echo "$ac_cv_sys_largefile_CC" >&6; }
14246  if test "$ac_cv_sys_largefile_CC" != no; then
14247    CC=$CC$ac_cv_sys_largefile_CC
14248  fi
14249
14250  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14251$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14252if ${ac_cv_sys_file_offset_bits+:} false; then :
14253  $as_echo_n "(cached) " >&6
14254else
14255  while :; do
14256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257/* end confdefs.h.  */
14258#include <sys/types.h>
14259 /* Check that off_t can represent 2**63 - 1 correctly.
14260    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14261    since some C++ compilers masquerading as C compilers
14262    incorrectly reject 9223372036854775807.  */
14263#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14264  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14265		       && LARGE_OFF_T % 2147483647 == 1)
14266		      ? 1 : -1];
14267int
14268main ()
14269{
14270
14271  ;
14272  return 0;
14273}
14274_ACEOF
14275if ac_fn_c_try_compile "$LINENO"; then :
14276  ac_cv_sys_file_offset_bits=no; break
14277fi
14278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280/* end confdefs.h.  */
14281#define _FILE_OFFSET_BITS 64
14282#include <sys/types.h>
14283 /* Check that off_t can represent 2**63 - 1 correctly.
14284    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14285    since some C++ compilers masquerading as C compilers
14286    incorrectly reject 9223372036854775807.  */
14287#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14288  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14289		       && LARGE_OFF_T % 2147483647 == 1)
14290		      ? 1 : -1];
14291int
14292main ()
14293{
14294
14295  ;
14296  return 0;
14297}
14298_ACEOF
14299if ac_fn_c_try_compile "$LINENO"; then :
14300  ac_cv_sys_file_offset_bits=64; break
14301fi
14302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14303  ac_cv_sys_file_offset_bits=unknown
14304  break
14305done
14306fi
14307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14308$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14309case $ac_cv_sys_file_offset_bits in #(
14310  no | unknown) ;;
14311  *)
14312cat >>confdefs.h <<_ACEOF
14313#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14314_ACEOF
14315;;
14316esac
14317rm -rf conftest*
14318  if test $ac_cv_sys_file_offset_bits = unknown; then
14319    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14320$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14321if ${ac_cv_sys_large_files+:} false; then :
14322  $as_echo_n "(cached) " >&6
14323else
14324  while :; do
14325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326/* end confdefs.h.  */
14327#include <sys/types.h>
14328 /* Check that off_t can represent 2**63 - 1 correctly.
14329    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14330    since some C++ compilers masquerading as C compilers
14331    incorrectly reject 9223372036854775807.  */
14332#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14333  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14334		       && LARGE_OFF_T % 2147483647 == 1)
14335		      ? 1 : -1];
14336int
14337main ()
14338{
14339
14340  ;
14341  return 0;
14342}
14343_ACEOF
14344if ac_fn_c_try_compile "$LINENO"; then :
14345  ac_cv_sys_large_files=no; break
14346fi
14347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349/* end confdefs.h.  */
14350#define _LARGE_FILES 1
14351#include <sys/types.h>
14352 /* Check that off_t can represent 2**63 - 1 correctly.
14353    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14354    since some C++ compilers masquerading as C compilers
14355    incorrectly reject 9223372036854775807.  */
14356#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14357  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14358		       && LARGE_OFF_T % 2147483647 == 1)
14359		      ? 1 : -1];
14360int
14361main ()
14362{
14363
14364  ;
14365  return 0;
14366}
14367_ACEOF
14368if ac_fn_c_try_compile "$LINENO"; then :
14369  ac_cv_sys_large_files=1; break
14370fi
14371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14372  ac_cv_sys_large_files=unknown
14373  break
14374done
14375fi
14376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14377$as_echo "$ac_cv_sys_large_files" >&6; }
14378case $ac_cv_sys_large_files in #(
14379  no | unknown) ;;
14380  *)
14381cat >>confdefs.h <<_ACEOF
14382#define _LARGE_FILES $ac_cv_sys_large_files
14383_ACEOF
14384;;
14385esac
14386rm -rf conftest*
14387  fi
14388
14389
14390fi
14391
14392
14393# Checks for library functions.
14394ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
14395if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
14396  ac_have_decl=1
14397else
14398  ac_have_decl=0
14399fi
14400
14401cat >>confdefs.h <<_ACEOF
14402#define HAVE_DECL_STRERROR_R $ac_have_decl
14403_ACEOF
14404
14405for ac_func in strerror_r
14406do :
14407  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
14408if test "x$ac_cv_func_strerror_r" = xyes; then :
14409  cat >>confdefs.h <<_ACEOF
14410#define HAVE_STRERROR_R 1
14411_ACEOF
14412
14413fi
14414done
14415
14416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
14417$as_echo_n "checking whether strerror_r returns char *... " >&6; }
14418if ${ac_cv_func_strerror_r_char_p+:} false; then :
14419  $as_echo_n "(cached) " >&6
14420else
14421
14422    ac_cv_func_strerror_r_char_p=no
14423    if test $ac_cv_have_decl_strerror_r = yes; then
14424      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425/* end confdefs.h.  */
14426$ac_includes_default
14427int
14428main ()
14429{
14430
14431	  char buf[100];
14432	  char x = *strerror_r (0, buf, sizeof buf);
14433	  char *p = strerror_r (0, buf, sizeof buf);
14434	  return !p || x;
14435
14436  ;
14437  return 0;
14438}
14439_ACEOF
14440if ac_fn_c_try_compile "$LINENO"; then :
14441  ac_cv_func_strerror_r_char_p=yes
14442fi
14443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14444    else
14445      # strerror_r is not declared.  Choose between
14446      # systems that have relatively inaccessible declarations for the
14447      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
14448      # former has a strerror_r that returns char*, while the latter
14449      # has a strerror_r that returns `int'.
14450      # This test should segfault on the DEC system.
14451      if test "$cross_compiling" = yes; then :
14452  :
14453else
14454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455/* end confdefs.h.  */
14456$ac_includes_default
14457	extern char *strerror_r ();
14458int
14459main ()
14460{
14461char buf[100];
14462	  char x = *strerror_r (0, buf, sizeof buf);
14463	  return ! isalpha (x);
14464  ;
14465  return 0;
14466}
14467_ACEOF
14468if ac_fn_c_try_run "$LINENO"; then :
14469  ac_cv_func_strerror_r_char_p=yes
14470fi
14471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14472  conftest.$ac_objext conftest.beam conftest.$ac_ext
14473fi
14474
14475    fi
14476
14477fi
14478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
14479$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
14480if test $ac_cv_func_strerror_r_char_p = yes; then
14481
14482$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
14483
14484fi
14485
14486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
14487$as_echo_n "checking whether closedir returns void... " >&6; }
14488if ${ac_cv_func_closedir_void+:} false; then :
14489  $as_echo_n "(cached) " >&6
14490else
14491  if test "$cross_compiling" = yes; then :
14492  ac_cv_func_closedir_void=yes
14493else
14494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495/* end confdefs.h.  */
14496$ac_includes_default
14497#include <$ac_header_dirent>
14498#ifndef __cplusplus
14499int closedir ();
14500#endif
14501
14502int
14503main ()
14504{
14505return closedir (opendir (".")) != 0;
14506  ;
14507  return 0;
14508}
14509_ACEOF
14510if ac_fn_c_try_run "$LINENO"; then :
14511  ac_cv_func_closedir_void=no
14512else
14513  ac_cv_func_closedir_void=yes
14514fi
14515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14516  conftest.$ac_objext conftest.beam conftest.$ac_ext
14517fi
14518
14519fi
14520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
14521$as_echo "$ac_cv_func_closedir_void" >&6; }
14522if test $ac_cv_func_closedir_void = yes; then
14523
14524$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
14525
14526fi
14527
14528for ac_header in vfork.h
14529do :
14530  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14531if test "x$ac_cv_header_vfork_h" = xyes; then :
14532  cat >>confdefs.h <<_ACEOF
14533#define HAVE_VFORK_H 1
14534_ACEOF
14535
14536fi
14537
14538done
14539
14540for ac_func in fork vfork
14541do :
14542  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14543ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14544if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14545  cat >>confdefs.h <<_ACEOF
14546#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14547_ACEOF
14548
14549fi
14550done
14551
14552if test "x$ac_cv_func_fork" = xyes; then
14553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14554$as_echo_n "checking for working fork... " >&6; }
14555if ${ac_cv_func_fork_works+:} false; then :
14556  $as_echo_n "(cached) " >&6
14557else
14558  if test "$cross_compiling" = yes; then :
14559  ac_cv_func_fork_works=cross
14560else
14561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562/* end confdefs.h.  */
14563$ac_includes_default
14564int
14565main ()
14566{
14567
14568	  /* By Ruediger Kuhlmann. */
14569	  return fork () < 0;
14570
14571  ;
14572  return 0;
14573}
14574_ACEOF
14575if ac_fn_c_try_run "$LINENO"; then :
14576  ac_cv_func_fork_works=yes
14577else
14578  ac_cv_func_fork_works=no
14579fi
14580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14581  conftest.$ac_objext conftest.beam conftest.$ac_ext
14582fi
14583
14584fi
14585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14586$as_echo "$ac_cv_func_fork_works" >&6; }
14587
14588else
14589  ac_cv_func_fork_works=$ac_cv_func_fork
14590fi
14591if test "x$ac_cv_func_fork_works" = xcross; then
14592  case $host in
14593    *-*-amigaos* | *-*-msdosdjgpp*)
14594      # Override, as these systems have only a dummy fork() stub
14595      ac_cv_func_fork_works=no
14596      ;;
14597    *)
14598      ac_cv_func_fork_works=yes
14599      ;;
14600  esac
14601  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14602$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14603fi
14604ac_cv_func_vfork_works=$ac_cv_func_vfork
14605if test "x$ac_cv_func_vfork" = xyes; then
14606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14607$as_echo_n "checking for working vfork... " >&6; }
14608if ${ac_cv_func_vfork_works+:} false; then :
14609  $as_echo_n "(cached) " >&6
14610else
14611  if test "$cross_compiling" = yes; then :
14612  ac_cv_func_vfork_works=cross
14613else
14614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615/* end confdefs.h.  */
14616/* Thanks to Paul Eggert for this test.  */
14617$ac_includes_default
14618#include <sys/wait.h>
14619#ifdef HAVE_VFORK_H
14620# include <vfork.h>
14621#endif
14622/* On some sparc systems, changes by the child to local and incoming
14623   argument registers are propagated back to the parent.  The compiler
14624   is told about this with #include <vfork.h>, but some compilers
14625   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14626   static variable whose address is put into a register that is
14627   clobbered by the vfork.  */
14628static void
14629#ifdef __cplusplus
14630sparc_address_test (int arg)
14631# else
14632sparc_address_test (arg) int arg;
14633#endif
14634{
14635  static pid_t child;
14636  if (!child) {
14637    child = vfork ();
14638    if (child < 0) {
14639      perror ("vfork");
14640      _exit(2);
14641    }
14642    if (!child) {
14643      arg = getpid();
14644      write(-1, "", 0);
14645      _exit (arg);
14646    }
14647  }
14648}
14649
14650int
14651main ()
14652{
14653  pid_t parent = getpid ();
14654  pid_t child;
14655
14656  sparc_address_test (0);
14657
14658  child = vfork ();
14659
14660  if (child == 0) {
14661    /* Here is another test for sparc vfork register problems.  This
14662       test uses lots of local variables, at least as many local
14663       variables as main has allocated so far including compiler
14664       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14665       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14666       reuse the register of parent for one of the local variables,
14667       since it will think that parent can't possibly be used any more
14668       in this routine.  Assigning to the local variable will thus
14669       munge parent in the parent process.  */
14670    pid_t
14671      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14672      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14673    /* Convince the compiler that p..p7 are live; otherwise, it might
14674       use the same hardware register for all 8 local variables.  */
14675    if (p != p1 || p != p2 || p != p3 || p != p4
14676	|| p != p5 || p != p6 || p != p7)
14677      _exit(1);
14678
14679    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14680       from child file descriptors.  If the child closes a descriptor
14681       before it execs or exits, this munges the parent's descriptor
14682       as well.  Test for this by closing stdout in the child.  */
14683    _exit(close(fileno(stdout)) != 0);
14684  } else {
14685    int status;
14686    struct stat st;
14687
14688    while (wait(&status) != child)
14689      ;
14690    return (
14691	 /* Was there some problem with vforking?  */
14692	 child < 0
14693
14694	 /* Did the child fail?  (This shouldn't happen.)  */
14695	 || status
14696
14697	 /* Did the vfork/compiler bug occur?  */
14698	 || parent != getpid()
14699
14700	 /* Did the file descriptor bug occur?  */
14701	 || fstat(fileno(stdout), &st) != 0
14702	 );
14703  }
14704}
14705_ACEOF
14706if ac_fn_c_try_run "$LINENO"; then :
14707  ac_cv_func_vfork_works=yes
14708else
14709  ac_cv_func_vfork_works=no
14710fi
14711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14712  conftest.$ac_objext conftest.beam conftest.$ac_ext
14713fi
14714
14715fi
14716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14717$as_echo "$ac_cv_func_vfork_works" >&6; }
14718
14719fi;
14720if test "x$ac_cv_func_fork_works" = xcross; then
14721  ac_cv_func_vfork_works=$ac_cv_func_vfork
14722  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14723$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14724fi
14725
14726if test "x$ac_cv_func_vfork_works" = xyes; then
14727
14728$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14729
14730else
14731
14732$as_echo "#define vfork fork" >>confdefs.h
14733
14734fi
14735if test "x$ac_cv_func_fork_works" = xyes; then
14736
14737$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14738
14739fi
14740
14741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14742$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14743if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
14744  $as_echo_n "(cached) " >&6
14745else
14746  rm -f conftest.sym conftest.file
14747echo >conftest.file
14748if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14749  if test "$cross_compiling" = yes; then :
14750  ac_cv_func_lstat_dereferences_slashed_symlink=no
14751else
14752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753/* end confdefs.h.  */
14754$ac_includes_default
14755int
14756main ()
14757{
14758struct stat sbuf;
14759     /* Linux will dereference the symlink and fail, as required by POSIX.
14760	That is better in the sense that it means we will not
14761	have to compile and use the lstat wrapper.  */
14762     return lstat ("conftest.sym/", &sbuf) == 0;
14763  ;
14764  return 0;
14765}
14766_ACEOF
14767if ac_fn_c_try_run "$LINENO"; then :
14768  ac_cv_func_lstat_dereferences_slashed_symlink=yes
14769else
14770  ac_cv_func_lstat_dereferences_slashed_symlink=no
14771fi
14772rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14773  conftest.$ac_objext conftest.beam conftest.$ac_ext
14774fi
14775
14776else
14777  # If the `ln -s' command failed, then we probably don't even
14778  # have an lstat function.
14779  ac_cv_func_lstat_dereferences_slashed_symlink=no
14780fi
14781rm -f conftest.sym conftest.file
14782
14783fi
14784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14785$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14786
14787test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14788
14789cat >>confdefs.h <<_ACEOF
14790#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14791_ACEOF
14792
14793
14794if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14795  case " $LIBOBJS " in
14796  *" lstat.$ac_objext "* ) ;;
14797  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14798 ;;
14799esac
14800
14801fi
14802
14803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
14804$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
14805if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
14806  $as_echo_n "(cached) " >&6
14807else
14808  if test "$cross_compiling" = yes; then :
14809  ac_cv_func_lstat_empty_string_bug=yes
14810else
14811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812/* end confdefs.h.  */
14813$ac_includes_default
14814int
14815main ()
14816{
14817struct stat sbuf;
14818  return lstat ("", &sbuf) == 0;
14819  ;
14820  return 0;
14821}
14822_ACEOF
14823if ac_fn_c_try_run "$LINENO"; then :
14824  ac_cv_func_lstat_empty_string_bug=no
14825else
14826  ac_cv_func_lstat_empty_string_bug=yes
14827fi
14828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14829  conftest.$ac_objext conftest.beam conftest.$ac_ext
14830fi
14831
14832fi
14833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
14834$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
14835if test $ac_cv_func_lstat_empty_string_bug = yes; then
14836  case " $LIBOBJS " in
14837  *" lstat.$ac_objext "* ) ;;
14838  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14839 ;;
14840esac
14841
14842
14843cat >>confdefs.h <<_ACEOF
14844#define HAVE_LSTAT_EMPTY_STRING_BUG 1
14845_ACEOF
14846
14847fi
14848
14849for ac_header in stdlib.h
14850do :
14851  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14852if test "x$ac_cv_header_stdlib_h" = xyes; then :
14853  cat >>confdefs.h <<_ACEOF
14854#define HAVE_STDLIB_H 1
14855_ACEOF
14856
14857fi
14858
14859done
14860
14861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14862$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14863if ${ac_cv_func_malloc_0_nonnull+:} false; then :
14864  $as_echo_n "(cached) " >&6
14865else
14866  if test "$cross_compiling" = yes; then :
14867  ac_cv_func_malloc_0_nonnull=no
14868else
14869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870/* end confdefs.h.  */
14871#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14872# include <stdlib.h>
14873#else
14874char *malloc ();
14875#endif
14876
14877int
14878main ()
14879{
14880return ! malloc (0);
14881  ;
14882  return 0;
14883}
14884_ACEOF
14885if ac_fn_c_try_run "$LINENO"; then :
14886  ac_cv_func_malloc_0_nonnull=yes
14887else
14888  ac_cv_func_malloc_0_nonnull=no
14889fi
14890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14891  conftest.$ac_objext conftest.beam conftest.$ac_ext
14892fi
14893
14894fi
14895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14896$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14897if test $ac_cv_func_malloc_0_nonnull = yes; then :
14898
14899$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
14900
14901else
14902  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
14903
14904   case " $LIBOBJS " in
14905  *" malloc.$ac_objext "* ) ;;
14906  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14907 ;;
14908esac
14909
14910
14911$as_echo "#define malloc rpl_malloc" >>confdefs.h
14912
14913fi
14914
14915
14916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
14917$as_echo_n "checking for working memcmp... " >&6; }
14918if ${ac_cv_func_memcmp_working+:} false; then :
14919  $as_echo_n "(cached) " >&6
14920else
14921  if test "$cross_compiling" = yes; then :
14922  ac_cv_func_memcmp_working=no
14923else
14924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925/* end confdefs.h.  */
14926$ac_includes_default
14927int
14928main ()
14929{
14930
14931  /* Some versions of memcmp are not 8-bit clean.  */
14932  char c0 = '\100', c1 = '\200', c2 = '\201';
14933  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14934    return 1;
14935
14936  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14937     or more and with at least one buffer not starting on a 4-byte boundary.
14938     William Lewis provided this test program.   */
14939  {
14940    char foo[21];
14941    char bar[21];
14942    int i;
14943    for (i = 0; i < 4; i++)
14944      {
14945	char *a = foo + i;
14946	char *b = bar + i;
14947	strcpy (a, "--------01111111");
14948	strcpy (b, "--------10000000");
14949	if (memcmp (a, b, 16) >= 0)
14950	  return 1;
14951      }
14952    return 0;
14953  }
14954
14955  ;
14956  return 0;
14957}
14958_ACEOF
14959if ac_fn_c_try_run "$LINENO"; then :
14960  ac_cv_func_memcmp_working=yes
14961else
14962  ac_cv_func_memcmp_working=no
14963fi
14964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14965  conftest.$ac_objext conftest.beam conftest.$ac_ext
14966fi
14967
14968fi
14969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
14970$as_echo "$ac_cv_func_memcmp_working" >&6; }
14971test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
14972  *" memcmp.$ac_objext "* ) ;;
14973  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14974 ;;
14975esac
14976
14977
14978for ac_header in stdlib.h
14979do :
14980  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14981if test "x$ac_cv_header_stdlib_h" = xyes; then :
14982  cat >>confdefs.h <<_ACEOF
14983#define HAVE_STDLIB_H 1
14984_ACEOF
14985
14986fi
14987
14988done
14989
14990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
14991$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
14992if ${ac_cv_func_realloc_0_nonnull+:} false; then :
14993  $as_echo_n "(cached) " >&6
14994else
14995  if test "$cross_compiling" = yes; then :
14996  ac_cv_func_realloc_0_nonnull=no
14997else
14998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14999/* end confdefs.h.  */
15000#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15001# include <stdlib.h>
15002#else
15003char *realloc ();
15004#endif
15005
15006int
15007main ()
15008{
15009return ! realloc (0, 0);
15010  ;
15011  return 0;
15012}
15013_ACEOF
15014if ac_fn_c_try_run "$LINENO"; then :
15015  ac_cv_func_realloc_0_nonnull=yes
15016else
15017  ac_cv_func_realloc_0_nonnull=no
15018fi
15019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15020  conftest.$ac_objext conftest.beam conftest.$ac_ext
15021fi
15022
15023fi
15024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
15025$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
15026if test $ac_cv_func_realloc_0_nonnull = yes; then :
15027
15028$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
15029
15030else
15031  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
15032
15033   case " $LIBOBJS " in
15034  *" realloc.$ac_objext "* ) ;;
15035  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
15036 ;;
15037esac
15038
15039
15040$as_echo "#define realloc rpl_realloc" >>confdefs.h
15041
15042fi
15043
15044
15045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
15046$as_echo_n "checking whether stat accepts an empty string... " >&6; }
15047if ${ac_cv_func_stat_empty_string_bug+:} false; then :
15048  $as_echo_n "(cached) " >&6
15049else
15050  if test "$cross_compiling" = yes; then :
15051  ac_cv_func_stat_empty_string_bug=yes
15052else
15053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15054/* end confdefs.h.  */
15055$ac_includes_default
15056int
15057main ()
15058{
15059struct stat sbuf;
15060  return stat ("", &sbuf) == 0;
15061  ;
15062  return 0;
15063}
15064_ACEOF
15065if ac_fn_c_try_run "$LINENO"; then :
15066  ac_cv_func_stat_empty_string_bug=no
15067else
15068  ac_cv_func_stat_empty_string_bug=yes
15069fi
15070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15071  conftest.$ac_objext conftest.beam conftest.$ac_ext
15072fi
15073
15074fi
15075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
15076$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
15077if test $ac_cv_func_stat_empty_string_bug = yes; then
15078  case " $LIBOBJS " in
15079  *" stat.$ac_objext "* ) ;;
15080  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
15081 ;;
15082esac
15083
15084
15085cat >>confdefs.h <<_ACEOF
15086#define HAVE_STAT_EMPTY_STRING_BUG 1
15087_ACEOF
15088
15089fi
15090
15091# required functions
15092for ac_func in atexit bzero ftruncate getaddrinfo getpass gettimeofday memmove memset mkdir realpath poll socket strchr strdup strtol strtoul ftello fseeko
15093do :
15094  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15095ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15096if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15097  cat >>confdefs.h <<_ACEOF
15098#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15099_ACEOF
15100
15101else
15102  as_fn_error $? "One of required functions was not found" "$LINENO" 5
15103fi
15104done
15105
15106
15107# optional temporary file function
15108for ac_func in mkstemp mktemp
15109do :
15110  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15111ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15112if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15113  cat >>confdefs.h <<_ACEOF
15114#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15115_ACEOF
15116
15117fi
15118done
15119
15120
15121# optional error conversion functions
15122for ac_func in strerror perror
15123do :
15124  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15125ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15126if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15127  cat >>confdefs.h <<_ACEOF
15128#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15129_ACEOF
15130
15131fi
15132done
15133
15134
15135# optional system functions
15136for ac_func in dup2 mlockall getcwd
15137do :
15138  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15139ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15140if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15141  cat >>confdefs.h <<_ACEOF
15142#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15143_ACEOF
15144
15145fi
15146done
15147
15148
15149# check for mmap support
15150for ac_header in sys/mman.h
15151do :
15152  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15153if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15154  cat >>confdefs.h <<_ACEOF
15155#define HAVE_SYS_MMAN_H 1
15156_ACEOF
15157 for ac_func in mmap
15158do :
15159  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15160if test "x$ac_cv_func_mmap" = xyes; then :
15161  cat >>confdefs.h <<_ACEOF
15162#define HAVE_MMAP 1
15163_ACEOF
15164
15165fi
15166done
15167
15168fi
15169
15170done
15171
15172
15173# optional I/O functions
15174for ac_func in pread pwrite readv writev
15175do :
15176  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15177ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15178if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15179  cat >>confdefs.h <<_ACEOF
15180#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15181_ACEOF
15182
15183fi
15184done
15185
15186
15187# optional resource usage function and headers
15188for ac_func in getrusage setitimer
15189do :
15190  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15191ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15192if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15193  cat >>confdefs.h <<_ACEOF
15194#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15195_ACEOF
15196
15197fi
15198done
15199
15200for ac_header in sys/rusage.h sys/resource.h
15201do :
15202  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15203ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15204if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15205  cat >>confdefs.h <<_ACEOF
15206#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15207_ACEOF
15208
15209fi
15210
15211done
15212
15213ac_fn_c_check_member "$LINENO" "struct rusage" "ru_maxrss" "ac_cv_member_struct_rusage_ru_maxrss" "
15214#include <sys/time.h>
15215#ifdef HAVE_GETRUSAGE
15216#  ifdef HAVE_SYS_RESOURCE_H
15217#    include <sys/resource.h>
15218#  endif
15219#  ifdef HAVE_SYS_RUSAGE_H
15220#    include <sys/rusage.h>
15221#  endif
15222#endif
15223
15224"
15225if test "x$ac_cv_member_struct_rusage_ru_maxrss" = xyes; then :
15226
15227cat >>confdefs.h <<_ACEOF
15228#define HAVE_STRUCT_RUSAGE_RU_MAXRSS 1
15229_ACEOF
15230
15231
15232fi
15233
15234
15235# optional clock related headers and functions
15236for ac_header in mach/mach.h mach/mach_time.h
15237do :
15238  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15239ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15240if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15241  cat >>confdefs.h <<_ACEOF
15242#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15243_ACEOF
15244 for ac_func in mach_absolute_time mach_timebase_info
15245do :
15246  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15247ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15248if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15249  cat >>confdefs.h <<_ACEOF
15250#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15251_ACEOF
15252
15253fi
15254done
15255
15256fi
15257
15258done
15259
15260for ac_func in clock_gettime
15261do :
15262  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
15263if test "x$ac_cv_func_clock_gettime" = xyes; then :
15264  cat >>confdefs.h <<_ACEOF
15265#define HAVE_CLOCK_GETTIME 1
15266_ACEOF
15267
15268fi
15269done
15270
15271
15272# optional getgroups headers
15273for ac_header in sys/sysctl.h
15274do :
15275  ac_fn_c_check_header_mongrel "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default"
15276if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
15277  cat >>confdefs.h <<_ACEOF
15278#define HAVE_SYS_SYSCTL_H 1
15279_ACEOF
15280
15281fi
15282
15283done
15284
15285
15286# glibc tuning
15287for ac_header in malloc.h
15288do :
15289  ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
15290if test "x$ac_cv_header_malloc_h" = xyes; then :
15291  cat >>confdefs.h <<_ACEOF
15292#define HAVE_MALLOC_H 1
15293_ACEOF
15294
15295fi
15296
15297done
15298
15299for ac_func in mallopt
15300do :
15301  ac_fn_c_check_func "$LINENO" "mallopt" "ac_cv_func_mallopt"
15302if test "x$ac_cv_func_mallopt" = xyes; then :
15303  cat >>confdefs.h <<_ACEOF
15304#define HAVE_MALLOPT 1
15305_ACEOF
15306
15307fi
15308done
15309
15310
15311# core dumps
15312for ac_header in sys/prctl.h
15313do :
15314  ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
15315if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
15316  cat >>confdefs.h <<_ACEOF
15317#define HAVE_SYS_PRCTL_H 1
15318_ACEOF
15319 for ac_func in prctl
15320do :
15321  ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
15322if test "x$ac_cv_func_prctl" = xyes; then :
15323  cat >>confdefs.h <<_ACEOF
15324#define HAVE_PRCTL 1
15325_ACEOF
15326
15327fi
15328done
15329
15330fi
15331
15332done
15333
15334
15335
15336
15337ac_ext=c
15338ac_cpp='$CPP $CPPFLAGS'
15339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15341ac_compiler_gnu=$ac_cv_c_compiler_gnu
15342
15343
15344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
15345$as_echo_n "checking for __builtin_bswap16... " >&6; }
15346if test "$cross_compiling" = yes; then :
15347  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15349as_fn_error $? "cannot run test program while cross compiling
15350See \`config.log' for more details" "$LINENO" 5; }
15351else
15352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15353/* end confdefs.h.  */
15354#include <inttypes.h>
15355int
15356main ()
15357{
15358uint16_t x = __builtin_bswap16(0x1234)
15359  ;
15360  return 0;
15361}
15362_ACEOF
15363if ac_fn_c_try_run "$LINENO"; then :
15364
15365	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15366$as_echo "yes" >&6; }
15367
15368cat >>confdefs.h <<_ACEOF
15369#define BSWAP16(x) __builtin_bswap16(x)
15370_ACEOF
15371
15372
15373else
15374
15375	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15376$as_echo "no" >&6; }
15377
15378cat >>confdefs.h <<_ACEOF
15379#define BSWAP16(x) ((((x)<<8)&0xFF00) | (((x)>>8)&0xFF))
15380_ACEOF
15381
15382
15383fi
15384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15385  conftest.$ac_objext conftest.beam conftest.$ac_ext
15386fi
15387
15388
15389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
15390$as_echo_n "checking for __builtin_bswap32... " >&6; }
15391if test "$cross_compiling" = yes; then :
15392  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15394as_fn_error $? "cannot run test program while cross compiling
15395See \`config.log' for more details" "$LINENO" 5; }
15396else
15397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15398/* end confdefs.h.  */
15399#include <inttypes.h>
15400int
15401main ()
15402{
15403uint32_t x = __builtin_bswap32(0x12345678)
15404  ;
15405  return 0;
15406}
15407_ACEOF
15408if ac_fn_c_try_run "$LINENO"; then :
15409
15410	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15411$as_echo "yes" >&6; }
15412
15413cat >>confdefs.h <<_ACEOF
15414#define BSWAP32(x) __builtin_bswap32(x)
15415_ACEOF
15416
15417
15418else
15419
15420	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15421$as_echo "no" >&6; }
15422
15423cat >>confdefs.h <<_ACEOF
15424#define BSWAP32(x) ((((x)<<24)&0xFF000000) | (((x)<<8)&0xFF0000) | (((x)>>8)&0xFF00) | (((x)>>24)&0xFF))
15425_ACEOF
15426
15427
15428fi
15429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15430  conftest.$ac_objext conftest.beam conftest.$ac_ext
15431fi
15432
15433
15434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
15435$as_echo_n "checking for __builtin_bswap64... " >&6; }
15436if test "$cross_compiling" = yes; then :
15437  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15439as_fn_error $? "cannot run test program while cross compiling
15440See \`config.log' for more details" "$LINENO" 5; }
15441else
15442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443/* end confdefs.h.  */
15444#include <inttypes.h>
15445int
15446main ()
15447{
15448uint64_t x = __builtin_bswap64(0x123456789ABCDEF0)
15449  ;
15450  return 0;
15451}
15452_ACEOF
15453if ac_fn_c_try_run "$LINENO"; then :
15454
15455	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15456$as_echo "yes" >&6; }
15457
15458cat >>confdefs.h <<_ACEOF
15459#define BSWAP64(x) __builtin_bswap64(x)
15460_ACEOF
15461
15462
15463else
15464
15465	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15466$as_echo "no" >&6; }
15467
15468cat >>confdefs.h <<_ACEOF
15469#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))
15470_ACEOF
15471
15472
15473fi
15474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15475  conftest.$ac_objext conftest.beam conftest.$ac_ext
15476fi
15477
15478
15479
15480# Check for Mac OS X's broken poll
15481if test "$ac_cv_func_poll" = "yes"; then
15482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll works on devices" >&5
15483$as_echo_n "checking if poll works on devices... " >&6; }
15484if test "$cross_compiling" = yes; then :
15485  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15487as_fn_error $? "cannot run test program while cross compiling
15488See \`config.log' for more details" "$LINENO" 5; }
15489else
15490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491/* end confdefs.h.  */
15492
15493#include <stdlib.h>
15494#include <fcntl.h>
15495#include <poll.h>
15496
15497int
15498main ()
15499{
15500
15501int main(void) {
15502	struct pollfd fds[1];
15503	int fd;
15504	fd = open("/dev/null", 1);
15505	fds[0].fd = fd;
15506	fds[0].events = POLLIN;
15507	fds[0].revents = 0;
15508	if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) {
15509		exit(1); /* Does not work for devices -- fail */
15510	}
15511		exit(0);
15512	}
15513
15514  ;
15515  return 0;
15516}
15517_ACEOF
15518if ac_fn_c_try_run "$LINENO"; then :
15519  ac_have_working_poll=yes
15520else
15521  ac_have_working_poll=no
15522fi
15523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15524  conftest.$ac_objext conftest.beam conftest.$ac_ext
15525fi
15526
15527if test "$ac_have_working_poll" = "no" ; then
15528
15529cat >>confdefs.h <<_ACEOF
15530#define BROKEN_POLL 1
15531_ACEOF
15532
15533fi
15534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have_working_poll" >&5
15535$as_echo "$ac_have_working_poll" >&6; }
15536fi
15537
15538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_OP_and_fetch" >&5
15539$as_echo_n "checking for __sync_OP_and_fetch... " >&6; }
15540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15541/* end confdefs.h.  */
15542#include <sys/types.h>
15543int
15544main ()
15545{
15546unsigned 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);
15547  ;
15548  return 0;
15549}
15550_ACEOF
15551if ac_fn_c_try_link "$LINENO"; then :
15552  ac_have___sync_op_and_fetch=yes
15553else
15554  ac_have___sync_op_and_fetch=no
15555fi
15556rm -f core conftest.err conftest.$ac_objext \
15557    conftest$ac_exeext conftest.$ac_ext
15558if test "$ac_have___sync_op_and_fetch" = "yes" ; then
15559
15560cat >>confdefs.h <<_ACEOF
15561#define HAVE___SYNC_OP_AND_FETCH 1
15562_ACEOF
15563
15564fi
15565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have___sync_op_and_fetch" >&5
15566$as_echo "$ac_have___sync_op_and_fetch" >&6; }
15567
15568
15569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_OP" >&5
15570$as_echo_n "checking for __sync_fetch_and_OP... " >&6; }
15571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15572/* end confdefs.h.  */
15573#include <sys/types.h>
15574int
15575main ()
15576{
15577unsigned 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);
15578  ;
15579  return 0;
15580}
15581_ACEOF
15582if ac_fn_c_try_link "$LINENO"; then :
15583  ac_have___sync_fetch_and_op=yes
15584else
15585  ac_have___sync_fetch_and_op=no
15586fi
15587rm -f core conftest.err conftest.$ac_objext \
15588    conftest$ac_exeext conftest.$ac_ext
15589if test "$ac_have___sync_fetch_and_op" = "yes" ; then
15590
15591cat >>confdefs.h <<_ACEOF
15592#define HAVE___SYNC_FETCH_AND_OP 1
15593_ACEOF
15594
15595fi
15596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have___sync_fetch_and_op" >&5
15597$as_echo "$ac_have___sync_fetch_and_op" >&6; }
15598
15599
15600for ac_prog in kill
15601do
15602  # Extract the first word of "$ac_prog", so it can be a program name with args.
15603set dummy $ac_prog; ac_word=$2
15604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15605$as_echo_n "checking for $ac_word... " >&6; }
15606if ${ac_cv_prog_KILL+:} false; then :
15607  $as_echo_n "(cached) " >&6
15608else
15609  if test -n "$KILL"; then
15610  ac_cv_prog_KILL="$KILL" # Let the user override the test.
15611else
15612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15613for as_dir in $PATH
15614do
15615  IFS=$as_save_IFS
15616  test -z "$as_dir" && as_dir=.
15617    for ac_exec_ext in '' $ac_executable_extensions; do
15618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15619    ac_cv_prog_KILL="$ac_prog"
15620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15621    break 2
15622  fi
15623done
15624  done
15625IFS=$as_save_IFS
15626
15627fi
15628fi
15629KILL=$ac_cv_prog_KILL
15630if test -n "$KILL"; then
15631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
15632$as_echo "$KILL" >&6; }
15633else
15634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15635$as_echo "no" >&6; }
15636fi
15637
15638
15639  test -n "$KILL" && break
15640done
15641
15642
15643
15644
15645
15646
15647
15648
15649if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15650	if test -n "$ac_tool_prefix"; then
15651  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15652set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15654$as_echo_n "checking for $ac_word... " >&6; }
15655if ${ac_cv_path_PKG_CONFIG+:} false; then :
15656  $as_echo_n "(cached) " >&6
15657else
15658  case $PKG_CONFIG in
15659  [\\/]* | ?:[\\/]*)
15660  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15661  ;;
15662  *)
15663  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15664for as_dir in $PATH
15665do
15666  IFS=$as_save_IFS
15667  test -z "$as_dir" && as_dir=.
15668    for ac_exec_ext in '' $ac_executable_extensions; do
15669  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15670    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15672    break 2
15673  fi
15674done
15675  done
15676IFS=$as_save_IFS
15677
15678  ;;
15679esac
15680fi
15681PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15682if test -n "$PKG_CONFIG"; then
15683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15684$as_echo "$PKG_CONFIG" >&6; }
15685else
15686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15687$as_echo "no" >&6; }
15688fi
15689
15690
15691fi
15692if test -z "$ac_cv_path_PKG_CONFIG"; then
15693  ac_pt_PKG_CONFIG=$PKG_CONFIG
15694  # Extract the first word of "pkg-config", so it can be a program name with args.
15695set dummy pkg-config; ac_word=$2
15696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15697$as_echo_n "checking for $ac_word... " >&6; }
15698if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15699  $as_echo_n "(cached) " >&6
15700else
15701  case $ac_pt_PKG_CONFIG in
15702  [\\/]* | ?:[\\/]*)
15703  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15704  ;;
15705  *)
15706  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15707for as_dir in $PATH
15708do
15709  IFS=$as_save_IFS
15710  test -z "$as_dir" && as_dir=.
15711    for ac_exec_ext in '' $ac_executable_extensions; do
15712  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15713    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15715    break 2
15716  fi
15717done
15718  done
15719IFS=$as_save_IFS
15720
15721  ;;
15722esac
15723fi
15724ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15725if test -n "$ac_pt_PKG_CONFIG"; then
15726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15727$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15728else
15729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15730$as_echo "no" >&6; }
15731fi
15732
15733  if test "x$ac_pt_PKG_CONFIG" = x; then
15734    PKG_CONFIG=""
15735  else
15736    case $cross_compiling:$ac_tool_warned in
15737yes:)
15738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15740ac_tool_warned=yes ;;
15741esac
15742    PKG_CONFIG=$ac_pt_PKG_CONFIG
15743  fi
15744else
15745  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15746fi
15747
15748fi
15749if test -n "$PKG_CONFIG"; then
15750	_pkg_min_version=0.9.0
15751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15752$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15753	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15754		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15755$as_echo "yes" >&6; }
15756	else
15757		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15758$as_echo "no" >&6; }
15759		PKG_CONFIG=""
15760	fi
15761fi
15762
15763pkg_failed=no
15764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
15765$as_echo_n "checking for SYSTEMD... " >&6; }
15766
15767if test -n "$SYSTEMD_CFLAGS"; then
15768    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
15769 elif test -n "$PKG_CONFIG"; then
15770    if test -n "$PKG_CONFIG" && \
15771    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15772  ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15773  ac_status=$?
15774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15775  test $ac_status = 0; }; then
15776  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
15777		      test "x$?" != "x0" && pkg_failed=yes
15778else
15779  pkg_failed=yes
15780fi
15781 else
15782    pkg_failed=untried
15783fi
15784if test -n "$SYSTEMD_LIBS"; then
15785    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
15786 elif test -n "$PKG_CONFIG"; then
15787    if test -n "$PKG_CONFIG" && \
15788    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15789  ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15790  ac_status=$?
15791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15792  test $ac_status = 0; }; then
15793  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
15794		      test "x$?" != "x0" && pkg_failed=yes
15795else
15796  pkg_failed=yes
15797fi
15798 else
15799    pkg_failed=untried
15800fi
15801
15802
15803
15804if test $pkg_failed = yes; then
15805   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15806$as_echo "no" >&6; }
15807
15808if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15809        _pkg_short_errors_supported=yes
15810else
15811        _pkg_short_errors_supported=no
15812fi
15813        if test $_pkg_short_errors_supported = yes; then
15814	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
15815        else
15816	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
15817        fi
15818	# Put the nasty error message in config.log where it belongs
15819	echo "$SYSTEMD_PKG_ERRORS" >&5
15820
15821
15822	systemdunitdir=no
15823
15824elif test $pkg_failed = untried; then
15825     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15826$as_echo "no" >&6; }
15827
15828	systemdunitdir=no
15829
15830else
15831	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
15832	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
15833        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15834$as_echo "yes" >&6; }
15835
15836	systemdunitdir="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"
15837
15838fi
15839
15840
15841
15842# Check whether --enable-generalmans was given.
15843if test "${enable_generalmans+set}" = set; then :
15844  enableval=$enable_generalmans;
15845fi
15846
15847# Check whether --enable-mfsmaster was given.
15848if test "${enable_mfsmaster+set}" = set; then :
15849  enableval=$enable_mfsmaster;
15850fi
15851
15852# Check whether --enable-mfsmetalogger was given.
15853if test "${enable_mfsmetalogger+set}" = set; then :
15854  enableval=$enable_mfsmetalogger;
15855fi
15856
15857# Check whether --enable-mfssupervisor was given.
15858if test "${enable_mfssupervisor+set}" = set; then :
15859  enableval=$enable_mfssupervisor;
15860fi
15861
15862# Check whether --enable-mfschunkserver was given.
15863if test "${enable_mfschunkserver+set}" = set; then :
15864  enableval=$enable_mfschunkserver;
15865fi
15866
15867# Check whether --enable-mfsmount was given.
15868if test "${enable_mfsmount+set}" = set; then :
15869  enableval=$enable_mfsmount;
15870fi
15871
15872# Check whether --enable-mfscgi was given.
15873if test "${enable_mfscgi+set}" = set; then :
15874  enableval=$enable_mfscgi;
15875fi
15876
15877# Check whether --enable-mfscli was given.
15878if test "${enable_mfscli+set}" = set; then :
15879  enableval=$enable_mfscli;
15880fi
15881
15882# Check whether --enable-mfscgiserv was given.
15883if test "${enable_mfscgiserv+set}" = set; then :
15884  enableval=$enable_mfscgiserv;
15885fi
15886
15887# Check whether --enable-mfsnetdump was given.
15888if test "${enable_mfsnetdump+set}" = set; then :
15889  enableval=$enable_mfsnetdump;
15890fi
15891
15892
15893# Check whether --with-mfscgi-dir was given.
15894if test "${with_mfscgi_dir+set}" = set; then :
15895  withval=$with_mfscgi_dir; CGIDIR=$withval
15896else
15897  CGIDIR=$datadir/mfscgi
15898fi
15899
15900
15901# Check whether --with-mfscgiserv-dir was given.
15902if test "${with_mfscgiserv_dir+set}" = set; then :
15903  withval=$with_mfscgiserv_dir; CGISERVDIR=$withval
15904else
15905  CGISERVDIR=$sbindir
15906fi
15907
15908
15909# Check whether --with-zlib was given.
15910if test "${with_zlib+set}" = set; then :
15911  withval=$with_zlib; use_zlib=$withval
15912else
15913  use_zlib=yes
15914fi
15915
15916
15917# Check whether --with-systemdsystemunitdir was given.
15918if test "${with_systemdsystemunitdir+set}" = set; then :
15919  withval=$with_systemdsystemunitdir; systemdunitdir=$withval
15920fi
15921
15922
15923 if test "$systemdunitdir" != "no"; then
15924  WITH_SYSTEMD_TRUE=
15925  WITH_SYSTEMD_FALSE='#'
15926else
15927  WITH_SYSTEMD_TRUE='#'
15928  WITH_SYSTEMD_FALSE=
15929fi
15930
15931
15932if test "$enable_mfscgi" != "no" -o "$enable_mfscli" != "no" -o "$enable_mfscgiserv" != "no"; then
15933
15934
15935
15936
15937
15938
15939        if test -n "$PYTHON"; then
15940      # If the user set $PYTHON, use it and don't search something else.
15941      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
15942$as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
15943      prog="import sys
15944# split strings by '.' and convert to numeric.  Append some zeros
15945# because we need at least 4 digits for the hex conversion.
15946# map returns an iterator in Python 3.0 and a list in 2.x
15947minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
15948minverhex = 0
15949# xrange is not present in Python 3.0 and range returns an iterator
15950for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
15951sys.exit(sys.hexversion < minverhex)"
15952  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
15953   ($PYTHON -c "$prog") >&5 2>&5
15954   ac_status=$?
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); }; then :
15957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15958$as_echo "yes" >&6; }
15959else
15960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15961$as_echo "no" >&6; }
15962			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
15963fi
15964      am_display_PYTHON=$PYTHON
15965    else
15966      # Otherwise, try each interpreter until we find one that satisfies
15967      # VERSION.
15968      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
15969$as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
15970if ${am_cv_pathless_PYTHON+:} false; then :
15971  $as_echo_n "(cached) " >&6
15972else
15973
15974	for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
15975	  test "$am_cv_pathless_PYTHON" = none && break
15976	  prog="import sys
15977# split strings by '.' and convert to numeric.  Append some zeros
15978# because we need at least 4 digits for the hex conversion.
15979# map returns an iterator in Python 3.0 and a list in 2.x
15980minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
15981minverhex = 0
15982# xrange is not present in Python 3.0 and range returns an iterator
15983for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
15984sys.exit(sys.hexversion < minverhex)"
15985  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
15986   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
15987   ac_status=$?
15988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); }; then :
15990  break
15991fi
15992	done
15993fi
15994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
15995$as_echo "$am_cv_pathless_PYTHON" >&6; }
15996      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
15997      if test "$am_cv_pathless_PYTHON" = none; then
15998	PYTHON=:
15999      else
16000        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
16001set dummy $am_cv_pathless_PYTHON; ac_word=$2
16002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16003$as_echo_n "checking for $ac_word... " >&6; }
16004if ${ac_cv_path_PYTHON+:} false; then :
16005  $as_echo_n "(cached) " >&6
16006else
16007  case $PYTHON in
16008  [\\/]* | ?:[\\/]*)
16009  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16010  ;;
16011  *)
16012  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16013for as_dir in $PATH
16014do
16015  IFS=$as_save_IFS
16016  test -z "$as_dir" && as_dir=.
16017    for ac_exec_ext in '' $ac_executable_extensions; do
16018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16019    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16021    break 2
16022  fi
16023done
16024  done
16025IFS=$as_save_IFS
16026
16027  ;;
16028esac
16029fi
16030PYTHON=$ac_cv_path_PYTHON
16031if test -n "$PYTHON"; then
16032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16033$as_echo "$PYTHON" >&6; }
16034else
16035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16036$as_echo "no" >&6; }
16037fi
16038
16039
16040      fi
16041      am_display_PYTHON=$am_cv_pathless_PYTHON
16042    fi
16043
16044
16045  if test "$PYTHON" = :; then
16046      :
16047  else
16048
16049
16050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
16051$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
16052if ${am_cv_python_version+:} false; then :
16053  $as_echo_n "(cached) " >&6
16054else
16055  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
16056fi
16057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
16058$as_echo "$am_cv_python_version" >&6; }
16059  PYTHON_VERSION=$am_cv_python_version
16060
16061
16062
16063  PYTHON_PREFIX='${prefix}'
16064
16065  PYTHON_EXEC_PREFIX='${exec_prefix}'
16066
16067
16068
16069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
16070$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
16071if ${am_cv_python_platform+:} false; then :
16072  $as_echo_n "(cached) " >&6
16073else
16074  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
16075fi
16076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
16077$as_echo "$am_cv_python_platform" >&6; }
16078  PYTHON_PLATFORM=$am_cv_python_platform
16079
16080
16081  # Just factor out some code duplication.
16082  am_python_setup_sysconfig="\
16083import sys
16084# Prefer sysconfig over distutils.sysconfig, for better compatibility
16085# with python 3.x.  See automake bug#10227.
16086try:
16087    import sysconfig
16088except ImportError:
16089    can_use_sysconfig = 0
16090else:
16091    can_use_sysconfig = 1
16092# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
16093# <https://github.com/pypa/virtualenv/issues/118>
16094try:
16095    from platform import python_implementation
16096    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
16097        can_use_sysconfig = 0
16098except ImportError:
16099    pass"
16100
16101
16102            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
16103$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
16104if ${am_cv_python_pythondir+:} false; then :
16105  $as_echo_n "(cached) " >&6
16106else
16107  if test "x$prefix" = xNONE
16108     then
16109       am_py_prefix=$ac_default_prefix
16110     else
16111       am_py_prefix=$prefix
16112     fi
16113     am_cv_python_pythondir=`$PYTHON -c "
16114$am_python_setup_sysconfig
16115if can_use_sysconfig:
16116    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
16117else:
16118    from distutils import sysconfig
16119    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
16120sys.stdout.write(sitedir)"`
16121     case $am_cv_python_pythondir in
16122     $am_py_prefix*)
16123       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
16124       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
16125       ;;
16126     *)
16127       case $am_py_prefix in
16128         /usr|/System*) ;;
16129         *)
16130	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
16131	  ;;
16132       esac
16133       ;;
16134     esac
16135
16136fi
16137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
16138$as_echo "$am_cv_python_pythondir" >&6; }
16139  pythondir=$am_cv_python_pythondir
16140
16141
16142
16143  pkgpythondir=\${pythondir}/$PACKAGE
16144
16145
16146        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
16147$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
16148if ${am_cv_python_pyexecdir+:} false; then :
16149  $as_echo_n "(cached) " >&6
16150else
16151  if test "x$exec_prefix" = xNONE
16152     then
16153       am_py_exec_prefix=$am_py_prefix
16154     else
16155       am_py_exec_prefix=$exec_prefix
16156     fi
16157     am_cv_python_pyexecdir=`$PYTHON -c "
16158$am_python_setup_sysconfig
16159if can_use_sysconfig:
16160    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
16161else:
16162    from distutils import sysconfig
16163    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
16164sys.stdout.write(sitedir)"`
16165     case $am_cv_python_pyexecdir in
16166     $am_py_exec_prefix*)
16167       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
16168       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
16169       ;;
16170     *)
16171       case $am_py_exec_prefix in
16172         /usr|/System*) ;;
16173         *)
16174	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
16175	   ;;
16176       esac
16177       ;;
16178     esac
16179
16180fi
16181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
16182$as_echo "$am_cv_python_pyexecdir" >&6; }
16183  pyexecdir=$am_cv_python_pyexecdir
16184
16185
16186
16187  pkgpyexecdir=\${pyexecdir}/$PACKAGE
16188
16189
16190
16191  fi
16192
16193
16194	if test "$PYTHON" = ":"; then
16195		enable_mfscgi=no
16196		enable_mfscli=no
16197		enable_mfssgiserv=no
16198		PYTHON="/usr/bin/env python"
16199	fi
16200fi
16201 if test "$enable_mfscgi" != "no" -o "$enable_mfscli" != "no" -o "$enable_mfscgiserv" != "no"; then
16202  WITH_PYTHON_TRUE=
16203  WITH_PYTHON_FALSE='#'
16204else
16205  WITH_PYTHON_TRUE='#'
16206  WITH_PYTHON_FALSE=
16207fi
16208
16209 if test "$enable_mfscgi" != "no" -o "$enable_mfscli" != "no" -o "$enable_mfscgiserv" != "no"; then
16210  BUILD_SCRIPTS_TRUE=
16211  BUILD_SCRIPTS_FALSE='#'
16212else
16213  BUILD_SCRIPTS_TRUE='#'
16214  BUILD_SCRIPTS_FALSE=
16215fi
16216
16217 if test "$enable_mfscgi" != "no"; then
16218  INSTALL_CGI_TRUE=
16219  INSTALL_CGI_FALSE='#'
16220else
16221  INSTALL_CGI_TRUE='#'
16222  INSTALL_CGI_FALSE=
16223fi
16224
16225 if test "$enable_mfscli" != "no"; then
16226  INSTALL_CLI_TRUE=
16227  INSTALL_CLI_FALSE='#'
16228else
16229  INSTALL_CLI_TRUE='#'
16230  INSTALL_CLI_FALSE=
16231fi
16232
16233 if test "$enable_mfscgiserv" != "no"; then
16234  INSTALL_CGISERV_TRUE=
16235  INSTALL_CGISERV_FALSE='#'
16236else
16237  INSTALL_CGISERV_TRUE='#'
16238  INSTALL_CGISERV_FALSE=
16239fi
16240
16241
16242
16243
16244
16245 if test "$enable_mfsmaster" != "no"; then
16246  BUILD_MASTER_TRUE=
16247  BUILD_MASTER_FALSE='#'
16248else
16249  BUILD_MASTER_TRUE='#'
16250  BUILD_MASTER_FALSE=
16251fi
16252
16253 if test "$enable_mfsmetalogger" != "no"; then
16254  BUILD_METALOGGER_TRUE=
16255  BUILD_METALOGGER_FALSE='#'
16256else
16257  BUILD_METALOGGER_TRUE='#'
16258  BUILD_METALOGGER_FALSE=
16259fi
16260
16261 if test "$enable_mfssupervisor" != "no"; then
16262  BUILD_SUPERVISOR_TRUE=
16263  BUILD_SUPERVISOR_FALSE='#'
16264else
16265  BUILD_SUPERVISOR_TRUE='#'
16266  BUILD_SUPERVISOR_FALSE=
16267fi
16268
16269 if test "$enable_mfschunkserver" != "no"; then
16270  BUILD_CHUNKSERVER_TRUE=
16271  BUILD_CHUNKSERVER_FALSE='#'
16272else
16273  BUILD_CHUNKSERVER_TRUE='#'
16274  BUILD_CHUNKSERVER_FALSE=
16275fi
16276
16277
16278
16279pcap=no
16280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_lib_version" >&5
16281$as_echo_n "checking for library containing pcap_lib_version... " >&6; }
16282if ${ac_cv_search_pcap_lib_version+:} false; then :
16283  $as_echo_n "(cached) " >&6
16284else
16285  ac_func_search_save_LIBS=$LIBS
16286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287/* end confdefs.h.  */
16288
16289/* Override any GCC internal prototype to avoid an error.
16290   Use char because int might match the return type of a GCC
16291   builtin and then its argument prototype would still apply.  */
16292#ifdef __cplusplus
16293extern "C"
16294#endif
16295char pcap_lib_version ();
16296int
16297main ()
16298{
16299return pcap_lib_version ();
16300  ;
16301  return 0;
16302}
16303_ACEOF
16304for ac_lib in '' pcap; do
16305  if test -z "$ac_lib"; then
16306    ac_res="none required"
16307  else
16308    ac_res=-l$ac_lib
16309    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16310  fi
16311  if ac_fn_c_try_link "$LINENO"; then :
16312  ac_cv_search_pcap_lib_version=$ac_res
16313fi
16314rm -f core conftest.err conftest.$ac_objext \
16315    conftest$ac_exeext
16316  if ${ac_cv_search_pcap_lib_version+:} false; then :
16317  break
16318fi
16319done
16320if ${ac_cv_search_pcap_lib_version+:} false; then :
16321
16322else
16323  ac_cv_search_pcap_lib_version=no
16324fi
16325rm conftest.$ac_ext
16326LIBS=$ac_func_search_save_LIBS
16327fi
16328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_lib_version" >&5
16329$as_echo "$ac_cv_search_pcap_lib_version" >&6; }
16330ac_res=$ac_cv_search_pcap_lib_version
16331if test "$ac_res" != no; then :
16332  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16333   for ac_header in pcap.h
16334do :
16335  ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
16336if test "x$ac_cv_header_pcap_h" = xyes; then :
16337  cat >>confdefs.h <<_ACEOF
16338#define HAVE_PCAP_H 1
16339_ACEOF
16340 pcap=yes
16341fi
16342
16343done
16344
16345fi
16346
16347
16348if test "$pcap" != "yes" -a "enable_mfsnetdump" != "no"; then
16349	echo "****** mfsnetdump disabled ******"
16350	echo "* mfsnetdump needs pcap library *"
16351	echo "*********************************"
16352	enable_mfsnetdump=no
16353fi
16354
16355 if test "$enable_mfsnetdump" != "no"; then
16356  BUILD_NETDUMP_TRUE=
16357  BUILD_NETDUMP_FALSE='#'
16358else
16359  BUILD_NETDUMP_TRUE='#'
16360  BUILD_NETDUMP_FALSE=
16361fi
16362
16363
16364if test "$fuse" != "no" -a "enable_mfsmount" != "no"; then
16365	if test -n "$PKG_CONFIG"; then
16366
16367pkg_failed=no
16368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSE" >&5
16369$as_echo_n "checking for FUSE... " >&6; }
16370
16371if test -n "$FUSE_CFLAGS"; then
16372    pkg_cv_FUSE_CFLAGS="$FUSE_CFLAGS"
16373 elif test -n "$PKG_CONFIG"; then
16374    if test -n "$PKG_CONFIG" && \
16375    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6\""; } >&5
16376  ($PKG_CONFIG --exists --print-errors "fuse >= 2.6") 2>&5
16377  ac_status=$?
16378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16379  test $ac_status = 0; }; then
16380  pkg_cv_FUSE_CFLAGS=`$PKG_CONFIG --cflags "fuse >= 2.6" 2>/dev/null`
16381		      test "x$?" != "x0" && pkg_failed=yes
16382else
16383  pkg_failed=yes
16384fi
16385 else
16386    pkg_failed=untried
16387fi
16388if test -n "$FUSE_LIBS"; then
16389    pkg_cv_FUSE_LIBS="$FUSE_LIBS"
16390 elif test -n "$PKG_CONFIG"; then
16391    if test -n "$PKG_CONFIG" && \
16392    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6\""; } >&5
16393  ($PKG_CONFIG --exists --print-errors "fuse >= 2.6") 2>&5
16394  ac_status=$?
16395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16396  test $ac_status = 0; }; then
16397  pkg_cv_FUSE_LIBS=`$PKG_CONFIG --libs "fuse >= 2.6" 2>/dev/null`
16398		      test "x$?" != "x0" && pkg_failed=yes
16399else
16400  pkg_failed=yes
16401fi
16402 else
16403    pkg_failed=untried
16404fi
16405
16406
16407
16408if test $pkg_failed = yes; then
16409   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16410$as_echo "no" >&6; }
16411
16412if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16413        _pkg_short_errors_supported=yes
16414else
16415        _pkg_short_errors_supported=no
16416fi
16417        if test $_pkg_short_errors_supported = yes; then
16418	        FUSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse >= 2.6" 2>&1`
16419        else
16420	        FUSE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse >= 2.6" 2>&1`
16421        fi
16422	# Put the nasty error message in config.log where it belongs
16423	echo "$FUSE_PKG_ERRORS" >&5
16424
16425	fuse=no
16426elif test $pkg_failed = untried; then
16427     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16428$as_echo "no" >&6; }
16429	fuse=no
16430else
16431	FUSE_CFLAGS=$pkg_cv_FUSE_CFLAGS
16432	FUSE_LIBS=$pkg_cv_FUSE_LIBS
16433        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16434$as_echo "yes" >&6; }
16435
16436fi
16437	else
16438		echo "no pkg-config - can't check FUSE version"
16439		fuse=no
16440	fi
16441fi
16442if test "$fuse" = "no"; then
16443	if test "$enable_mfsmount" = "yes"; then
16444		if test -n "$PKG_CONFIG"; then
16445			as_fn_error $? "mfsmount build was forced, but fuse library is too old or not installed" "$LINENO" 5
16446		else
16447			as_fn_error $? "mfsmount build was forced, but pkg-config not installed" "$LINENO" 5
16448		fi
16449	else
16450		if test "$enable_mfsmount" != "no"; then
16451			if test -n "$PKG_CONFIG"; then
16452				echo "******************************** mfsmount disabled ********************************"
16453				echo "* fuse library is too old or not installed - mfsmount needs version 2.6 or higher *"
16454				echo "***********************************************************************************"
16455			else
16456				echo "**** mfsmount disabled *****"
16457				echo "* pkg-config not installed *"
16458				echo "****************************"
16459			fi
16460		fi
16461	fi
16462fi
16463if test "$fuse" != "no" ; then
16464	case $target_os in
16465		freebsd6*)
16466		echo "*************************************************************************"
16467		echo "* Dynamic linker in FreeBSD 6.x doesn't support symbol versioning.      *"
16468		echo "* It causes calling wrong functions from libfuse and crashing mfsmount. *"
16469		echo "* Due to above switching libfuse from dynamic linking to static.        *"
16470		echo "*************************************************************************"
16471		FUSE_LIBS="-pthread /usr/local/lib/libfuse.a /usr/local/lib/libiconv.a"
16472
16473		;;
16474	esac
16475fi
16476
16477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_version in -lfuse" >&5
16478$as_echo_n "checking for fuse_version in -lfuse... " >&6; }
16479if ${ac_cv_lib_fuse_fuse_version+:} false; then :
16480  $as_echo_n "(cached) " >&6
16481else
16482  ac_check_lib_save_LIBS=$LIBS
16483LIBS="-lfuse  $LIBS"
16484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16485/* end confdefs.h.  */
16486
16487/* Override any GCC internal prototype to avoid an error.
16488   Use char because int might match the return type of a GCC
16489   builtin and then its argument prototype would still apply.  */
16490#ifdef __cplusplus
16491extern "C"
16492#endif
16493char fuse_version ();
16494int
16495main ()
16496{
16497return fuse_version ();
16498  ;
16499  return 0;
16500}
16501_ACEOF
16502if ac_fn_c_try_link "$LINENO"; then :
16503  ac_cv_lib_fuse_fuse_version=yes
16504else
16505  ac_cv_lib_fuse_fuse_version=no
16506fi
16507rm -f core conftest.err conftest.$ac_objext \
16508    conftest$ac_exeext conftest.$ac_ext
16509LIBS=$ac_check_lib_save_LIBS
16510fi
16511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_version" >&5
16512$as_echo "$ac_cv_lib_fuse_fuse_version" >&6; }
16513if test "x$ac_cv_lib_fuse_fuse_version" = xyes; then :
16514
16515$as_echo "#define HAVE_FUSE_VERSION 1" >>confdefs.h
16516
16517fi
16518
16519
16520 if test "$fuse" != "no" -a "$enable_mfsmount" != "no"; then
16521  BUILD_MOUNT_TRUE=
16522  BUILD_MOUNT_FALSE='#'
16523else
16524  BUILD_MOUNT_TRUE='#'
16525  BUILD_MOUNT_FALSE=
16526fi
16527
16528
16529 if test "$enable_mfsmaster" != "no" -o "$enable_mfsmetalogger" != "no" -o "$enable_mfschunkserver" != "no" -o "$enable_mfsmount" != "no"; then
16530  CREATE_ETC_MFS_TRUE=
16531  CREATE_ETC_MFS_FALSE='#'
16532else
16533  CREATE_ETC_MFS_TRUE='#'
16534  CREATE_ETC_MFS_FALSE=
16535fi
16536
16537 if test "$enable_mfsmaster" != "no" -o "$enable_mfsmetalogger" != "no" -o "$enable_mfschunkserver" != "no" -o "$enable_mfscgiserv" != "no"; then
16538  CREATE_DATA_DIR_TRUE=
16539  CREATE_DATA_DIR_FALSE='#'
16540else
16541  CREATE_DATA_DIR_TRUE='#'
16542  CREATE_DATA_DIR_FALSE=
16543fi
16544
16545
16546if test "$use_zlib" = "yes"; then
16547
16548	zlib=no
16549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
16550$as_echo_n "checking for zlibVersion in -lz... " >&6; }
16551if ${ac_cv_lib_z_zlibVersion+:} false; then :
16552  $as_echo_n "(cached) " >&6
16553else
16554  ac_check_lib_save_LIBS=$LIBS
16555LIBS="-lz  $LIBS"
16556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557/* end confdefs.h.  */
16558
16559/* Override any GCC internal prototype to avoid an error.
16560   Use char because int might match the return type of a GCC
16561   builtin and then its argument prototype would still apply.  */
16562#ifdef __cplusplus
16563extern "C"
16564#endif
16565char zlibVersion ();
16566int
16567main ()
16568{
16569return zlibVersion ();
16570  ;
16571  return 0;
16572}
16573_ACEOF
16574if ac_fn_c_try_link "$LINENO"; then :
16575  ac_cv_lib_z_zlibVersion=yes
16576else
16577  ac_cv_lib_z_zlibVersion=no
16578fi
16579rm -f core conftest.err conftest.$ac_objext \
16580    conftest$ac_exeext conftest.$ac_ext
16581LIBS=$ac_check_lib_save_LIBS
16582fi
16583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
16584$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
16585if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
16586   for ac_header in zlib.h
16587do :
16588  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16589if test "x$ac_cv_header_zlib_h" = xyes; then :
16590  cat >>confdefs.h <<_ACEOF
16591#define HAVE_ZLIB_H 1
16592_ACEOF
16593 zlib=yes
16594fi
16595
16596done
16597
16598fi
16599
16600
16601	if test "$zlib" = "no"; then
16602		ZLIB_LIBS=
16603		if test "$enable_mfsmaster" != "no" -o "$enable_mfschunkserver" != "no"; then
16604			as_fn_error $? "zlib development library not found" "$LINENO" 5
16605		fi
16606	else
16607		ZLIB_LIBS=-lz
16608	fi
16609
16610fi
16611
16612test "$prefix" = "NONE" && prefix=$ac_default_prefix
16613test "$exec_prefix" = "NONE" && exec_prefix=$prefix
16614eval DATA_PATH=${localstatedir}/mfs
16615eval ETC_PATH=${sysconfdir}
16616eval BIN_PATH=${bindir}
16617eval SBIN_PATH=${sbindir}
16618# use system /var/run when using system-wide installation prefix
16619if test "${prefix#/usr}" != "${prefix}" -o "${prefix#/opt}" != "${prefix}"; then
16620	RUN_PATH=/var/run/mfs
16621else
16622	RUN_PATH=${prefix}/var/run/mfs
16623fi
16624
16625
16626
16627
16628
16629
16630cat >>confdefs.h <<_ACEOF
16631#define PREFIX "${prefix}"
16632_ACEOF
16633
16634
16635cat >>confdefs.h <<_ACEOF
16636#define ETC_PATH "$ETC_PATH"
16637_ACEOF
16638
16639
16640cat >>confdefs.h <<_ACEOF
16641#define DATA_PATH "$DATA_PATH"
16642_ACEOF
16643
16644
16645cat >>confdefs.h <<_ACEOF
16646#define RUN_PATH "$RUN_PATH"
16647_ACEOF
16648
16649
16650DEFAULT_USER=nobody
16651DEFAULT_GROUP=
16652
16653# Check whether --with-default-user was given.
16654if test "${with_default_user+set}" = set; then :
16655  withval=$with_default_user; DEFAULT_USER=$withval
16656fi
16657
16658
16659# Check whether --with-default-group was given.
16660if test "${with_default_group+set}" = set; then :
16661  withval=$with_default_group; DEFAULT_GROUP=$withval
16662fi
16663
16664
16665cat >>confdefs.h <<_ACEOF
16666#define DEFAULT_USER "$DEFAULT_USER"
16667_ACEOF
16668
16669
16670cat >>confdefs.h <<_ACEOF
16671#define DEFAULT_GROUP "$DEFAULT_GROUP"
16672_ACEOF
16673
16674
16675
16676
16677DEFAULT_PORTBASE=9400
16678DEFAULT_MASTERNAME=mfsmaster
16679
16680# Check whether --with-default-portbase was given.
16681if test "${with_default_portbase+set}" = set; then :
16682  withval=$with_default_portbase; DEFAULT_PORTBASE=$withval
16683fi
16684
16685
16686# Check whether --with-default-mastername was given.
16687if test "${with_default_mastername+set}" = set; then :
16688  withval=$with_default_mastername; DEFAULT_MASTERNAME=$withval
16689fi
16690
16691DEFAULT_MASTER_CONTROL_PORT=$((DEFAULT_PORTBASE+19))
16692DEFAULT_MASTER_CS_PORT=$((DEFAULT_PORTBASE+20))
16693DEFAULT_MASTER_CLIENT_PORT=$((DEFAULT_PORTBASE+21))
16694DEFAULT_CS_DATA_PORT=$((DEFAULT_PORTBASE+22))
16695DEFAULT_CGISERV_HTTP_PORT=$((DEFAULT_PORTBASE+25))
16696
16697cat >>confdefs.h <<_ACEOF
16698#define DEFAULT_PORTBASE $DEFAULT_PORTBASE
16699_ACEOF
16700
16701
16702cat >>confdefs.h <<_ACEOF
16703#define DEFAULT_MASTER_CONTROL_PORT "$DEFAULT_MASTER_CONTROL_PORT"
16704_ACEOF
16705
16706
16707cat >>confdefs.h <<_ACEOF
16708#define DEFAULT_MASTER_CS_PORT "$DEFAULT_MASTER_CS_PORT"
16709_ACEOF
16710
16711
16712cat >>confdefs.h <<_ACEOF
16713#define DEFAULT_MASTER_CLIENT_PORT "$DEFAULT_MASTER_CLIENT_PORT"
16714_ACEOF
16715
16716
16717cat >>confdefs.h <<_ACEOF
16718#define DEFAULT_CS_DATA_PORT "$DEFAULT_CS_DATA_PORT"
16719_ACEOF
16720
16721
16722cat >>confdefs.h <<_ACEOF
16723#define DEFAULT_CGISERV_HTTP_PORT "$DEFAULT_CGISERV_HTTP_PORT"
16724_ACEOF
16725
16726
16727cat >>confdefs.h <<_ACEOF
16728#define DEFAULT_MASTERNAME "$DEFAULT_MASTERNAME"
16729_ACEOF
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739if test "$enable_lightmfs" = "yes"; then
16740	PROTO_BASE=65536
16741	LIGHT_MFS=1
16742else
16743	PROTO_BASE=0
16744	LIGHT_MFS=0
16745fi
16746
16747
16748
16749cat >>confdefs.h <<_ACEOF
16750#define PROTO_BASE $PROTO_BASE
16751_ACEOF
16752
16753
16754cat >>confdefs.h <<_ACEOF
16755#define LIGHT_MFS $LIGHT_MFS
16756_ACEOF
16757
16758
16759
16760
16761ac_config_files="$ac_config_files Makefile mfsmanpages/Makefile mfschunkserver/Makefile mfsscripts/Makefile mfsdata/Makefile mfsmaster/Makefile mfsmetadump/Makefile mfsmetalogger/Makefile mfssupervisor/Makefile mfsmount/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-master.service systemd/moosefs-metalogger.service"
16762
16763cat >confcache <<\_ACEOF
16764# This file is a shell script that caches the results of configure
16765# tests run on this system so they can be shared between configure
16766# scripts and configure runs, see configure's option --config-cache.
16767# It is not useful on other systems.  If it contains results you don't
16768# want to keep, you may remove or edit it.
16769#
16770# config.status only pays attention to the cache file if you give it
16771# the --recheck option to rerun configure.
16772#
16773# `ac_cv_env_foo' variables (set or unset) will be overridden when
16774# loading this file, other *unset* `ac_cv_foo' will be assigned the
16775# following values.
16776
16777_ACEOF
16778
16779# The following way of writing the cache mishandles newlines in values,
16780# but we know of no workaround that is simple, portable, and efficient.
16781# So, we kill variables containing newlines.
16782# Ultrix sh set writes to stderr and can't be redirected directly,
16783# and sets the high bit in the cache file unless we assign to the vars.
16784(
16785  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16786    eval ac_val=\$$ac_var
16787    case $ac_val in #(
16788    *${as_nl}*)
16789      case $ac_var in #(
16790      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16791$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16792      esac
16793      case $ac_var in #(
16794      _ | IFS | as_nl) ;; #(
16795      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16796      *) { eval $ac_var=; unset $ac_var;} ;;
16797      esac ;;
16798    esac
16799  done
16800
16801  (set) 2>&1 |
16802    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16803    *${as_nl}ac_space=\ *)
16804      # `set' does not quote correctly, so add quotes: double-quote
16805      # substitution turns \\\\ into \\, and sed turns \\ into \.
16806      sed -n \
16807	"s/'/'\\\\''/g;
16808	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16809      ;; #(
16810    *)
16811      # `set' quotes correctly as required by POSIX, so do not add quotes.
16812      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16813      ;;
16814    esac |
16815    sort
16816) |
16817  sed '
16818     /^ac_cv_env_/b end
16819     t clear
16820     :clear
16821     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16822     t end
16823     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16824     :end' >>confcache
16825if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16826  if test -w "$cache_file"; then
16827    if test "x$cache_file" != "x/dev/null"; then
16828      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16829$as_echo "$as_me: updating cache $cache_file" >&6;}
16830      if test ! -f "$cache_file" || test -h "$cache_file"; then
16831	cat confcache >"$cache_file"
16832      else
16833        case $cache_file in #(
16834        */* | ?:*)
16835	  mv -f confcache "$cache_file"$$ &&
16836	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16837        *)
16838	  mv -f confcache "$cache_file" ;;
16839	esac
16840      fi
16841    fi
16842  else
16843    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16844$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16845  fi
16846fi
16847rm -f confcache
16848
16849test "x$prefix" = xNONE && prefix=$ac_default_prefix
16850# Let make expand exec_prefix.
16851test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16852
16853DEFS=-DHAVE_CONFIG_H
16854
16855ac_libobjs=
16856ac_ltlibobjs=
16857U=
16858for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16859  # 1. Remove the extension, and $U if already installed.
16860  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16861  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16862  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16863  #    will be set to the directory where LIBOBJS objects are built.
16864  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16865  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16866done
16867LIBOBJS=$ac_libobjs
16868
16869LTLIBOBJS=$ac_ltlibobjs
16870
16871
16872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16873$as_echo_n "checking that generated files are newer than configure... " >&6; }
16874   if test -n "$am_sleep_pid"; then
16875     # Hide warnings about reused PIDs.
16876     wait $am_sleep_pid 2>/dev/null
16877   fi
16878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16879$as_echo "done" >&6; }
16880 if test -n "$EXEEXT"; then
16881  am__EXEEXT_TRUE=
16882  am__EXEEXT_FALSE='#'
16883else
16884  am__EXEEXT_TRUE='#'
16885  am__EXEEXT_FALSE=
16886fi
16887
16888if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16889  as_fn_error $? "conditional \"AMDEP\" was never defined.
16890Usually this means the macro was only invoked conditionally." "$LINENO" 5
16891fi
16892if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16893  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16894Usually this means the macro was only invoked conditionally." "$LINENO" 5
16895fi
16896
16897if test -z "${WITH_SYSTEMD_TRUE}" && test -z "${WITH_SYSTEMD_FALSE}"; then
16898  as_fn_error $? "conditional \"WITH_SYSTEMD\" was never defined.
16899Usually this means the macro was only invoked conditionally." "$LINENO" 5
16900fi
16901if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
16902  as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
16903Usually this means the macro was only invoked conditionally." "$LINENO" 5
16904fi
16905if test -z "${BUILD_SCRIPTS_TRUE}" && test -z "${BUILD_SCRIPTS_FALSE}"; then
16906  as_fn_error $? "conditional \"BUILD_SCRIPTS\" was never defined.
16907Usually this means the macro was only invoked conditionally." "$LINENO" 5
16908fi
16909if test -z "${INSTALL_CGI_TRUE}" && test -z "${INSTALL_CGI_FALSE}"; then
16910  as_fn_error $? "conditional \"INSTALL_CGI\" was never defined.
16911Usually this means the macro was only invoked conditionally." "$LINENO" 5
16912fi
16913if test -z "${INSTALL_CLI_TRUE}" && test -z "${INSTALL_CLI_FALSE}"; then
16914  as_fn_error $? "conditional \"INSTALL_CLI\" was never defined.
16915Usually this means the macro was only invoked conditionally." "$LINENO" 5
16916fi
16917if test -z "${INSTALL_CGISERV_TRUE}" && test -z "${INSTALL_CGISERV_FALSE}"; then
16918  as_fn_error $? "conditional \"INSTALL_CGISERV\" was never defined.
16919Usually this means the macro was only invoked conditionally." "$LINENO" 5
16920fi
16921if test -z "${BUILD_MASTER_TRUE}" && test -z "${BUILD_MASTER_FALSE}"; then
16922  as_fn_error $? "conditional \"BUILD_MASTER\" was never defined.
16923Usually this means the macro was only invoked conditionally." "$LINENO" 5
16924fi
16925if test -z "${BUILD_METALOGGER_TRUE}" && test -z "${BUILD_METALOGGER_FALSE}"; then
16926  as_fn_error $? "conditional \"BUILD_METALOGGER\" was never defined.
16927Usually this means the macro was only invoked conditionally." "$LINENO" 5
16928fi
16929if test -z "${BUILD_SUPERVISOR_TRUE}" && test -z "${BUILD_SUPERVISOR_FALSE}"; then
16930  as_fn_error $? "conditional \"BUILD_SUPERVISOR\" was never defined.
16931Usually this means the macro was only invoked conditionally." "$LINENO" 5
16932fi
16933if test -z "${BUILD_CHUNKSERVER_TRUE}" && test -z "${BUILD_CHUNKSERVER_FALSE}"; then
16934  as_fn_error $? "conditional \"BUILD_CHUNKSERVER\" was never defined.
16935Usually this means the macro was only invoked conditionally." "$LINENO" 5
16936fi
16937if test -z "${BUILD_NETDUMP_TRUE}" && test -z "${BUILD_NETDUMP_FALSE}"; then
16938  as_fn_error $? "conditional \"BUILD_NETDUMP\" was never defined.
16939Usually this means the macro was only invoked conditionally." "$LINENO" 5
16940fi
16941if test -z "${BUILD_MOUNT_TRUE}" && test -z "${BUILD_MOUNT_FALSE}"; then
16942  as_fn_error $? "conditional \"BUILD_MOUNT\" was never defined.
16943Usually this means the macro was only invoked conditionally." "$LINENO" 5
16944fi
16945if test -z "${CREATE_ETC_MFS_TRUE}" && test -z "${CREATE_ETC_MFS_FALSE}"; then
16946  as_fn_error $? "conditional \"CREATE_ETC_MFS\" was never defined.
16947Usually this means the macro was only invoked conditionally." "$LINENO" 5
16948fi
16949if test -z "${CREATE_DATA_DIR_TRUE}" && test -z "${CREATE_DATA_DIR_FALSE}"; then
16950  as_fn_error $? "conditional \"CREATE_DATA_DIR\" was never defined.
16951Usually this means the macro was only invoked conditionally." "$LINENO" 5
16952fi
16953
16954: "${CONFIG_STATUS=./config.status}"
16955ac_write_fail=0
16956ac_clean_files_save=$ac_clean_files
16957ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16958{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16959$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16960as_write_fail=0
16961cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16962#! $SHELL
16963# Generated by $as_me.
16964# Run this file to recreate the current configuration.
16965# Compiler output produced by configure, useful for debugging
16966# configure, is in config.log if it exists.
16967
16968debug=false
16969ac_cs_recheck=false
16970ac_cs_silent=false
16971
16972SHELL=\${CONFIG_SHELL-$SHELL}
16973export SHELL
16974_ASEOF
16975cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16976## -------------------- ##
16977## M4sh Initialization. ##
16978## -------------------- ##
16979
16980# Be more Bourne compatible
16981DUALCASE=1; export DUALCASE # for MKS sh
16982if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16983  emulate sh
16984  NULLCMD=:
16985  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16986  # is contrary to our usage.  Disable this feature.
16987  alias -g '${1+"$@"}'='"$@"'
16988  setopt NO_GLOB_SUBST
16989else
16990  case `(set -o) 2>/dev/null` in #(
16991  *posix*) :
16992    set -o posix ;; #(
16993  *) :
16994     ;;
16995esac
16996fi
16997
16998
16999as_nl='
17000'
17001export as_nl
17002# Printing a long string crashes Solaris 7 /usr/bin/printf.
17003as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17004as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17005as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17006# Prefer a ksh shell builtin over an external printf program on Solaris,
17007# but without wasting forks for bash or zsh.
17008if test -z "$BASH_VERSION$ZSH_VERSION" \
17009    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17010  as_echo='print -r --'
17011  as_echo_n='print -rn --'
17012elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17013  as_echo='printf %s\n'
17014  as_echo_n='printf %s'
17015else
17016  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17017    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17018    as_echo_n='/usr/ucb/echo -n'
17019  else
17020    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17021    as_echo_n_body='eval
17022      arg=$1;
17023      case $arg in #(
17024      *"$as_nl"*)
17025	expr "X$arg" : "X\\(.*\\)$as_nl";
17026	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17027      esac;
17028      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17029    '
17030    export as_echo_n_body
17031    as_echo_n='sh -c $as_echo_n_body as_echo'
17032  fi
17033  export as_echo_body
17034  as_echo='sh -c $as_echo_body as_echo'
17035fi
17036
17037# The user is always right.
17038if test "${PATH_SEPARATOR+set}" != set; then
17039  PATH_SEPARATOR=:
17040  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17041    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17042      PATH_SEPARATOR=';'
17043  }
17044fi
17045
17046
17047# IFS
17048# We need space, tab and new line, in precisely that order.  Quoting is
17049# there to prevent editors from complaining about space-tab.
17050# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17051# splitting by setting IFS to empty value.)
17052IFS=" ""	$as_nl"
17053
17054# Find who we are.  Look in the path if we contain no directory separator.
17055as_myself=
17056case $0 in #((
17057  *[\\/]* ) as_myself=$0 ;;
17058  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17059for as_dir in $PATH
17060do
17061  IFS=$as_save_IFS
17062  test -z "$as_dir" && as_dir=.
17063    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17064  done
17065IFS=$as_save_IFS
17066
17067     ;;
17068esac
17069# We did not find ourselves, most probably we were run as `sh COMMAND'
17070# in which case we are not to be found in the path.
17071if test "x$as_myself" = x; then
17072  as_myself=$0
17073fi
17074if test ! -f "$as_myself"; then
17075  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17076  exit 1
17077fi
17078
17079# Unset variables that we do not need and which cause bugs (e.g. in
17080# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17081# suppresses any "Segmentation fault" message there.  '((' could
17082# trigger a bug in pdksh 5.2.14.
17083for as_var in BASH_ENV ENV MAIL MAILPATH
17084do eval test x\${$as_var+set} = xset \
17085  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17086done
17087PS1='$ '
17088PS2='> '
17089PS4='+ '
17090
17091# NLS nuisances.
17092LC_ALL=C
17093export LC_ALL
17094LANGUAGE=C
17095export LANGUAGE
17096
17097# CDPATH.
17098(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17099
17100
17101# as_fn_error STATUS ERROR [LINENO LOG_FD]
17102# ----------------------------------------
17103# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17104# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17105# script with STATUS, using 1 if that was 0.
17106as_fn_error ()
17107{
17108  as_status=$1; test $as_status -eq 0 && as_status=1
17109  if test "$4"; then
17110    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17111    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17112  fi
17113  $as_echo "$as_me: error: $2" >&2
17114  as_fn_exit $as_status
17115} # as_fn_error
17116
17117
17118# as_fn_set_status STATUS
17119# -----------------------
17120# Set $? to STATUS, without forking.
17121as_fn_set_status ()
17122{
17123  return $1
17124} # as_fn_set_status
17125
17126# as_fn_exit STATUS
17127# -----------------
17128# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17129as_fn_exit ()
17130{
17131  set +e
17132  as_fn_set_status $1
17133  exit $1
17134} # as_fn_exit
17135
17136# as_fn_unset VAR
17137# ---------------
17138# Portably unset VAR.
17139as_fn_unset ()
17140{
17141  { eval $1=; unset $1;}
17142}
17143as_unset=as_fn_unset
17144# as_fn_append VAR VALUE
17145# ----------------------
17146# Append the text in VALUE to the end of the definition contained in VAR. Take
17147# advantage of any shell optimizations that allow amortized linear growth over
17148# repeated appends, instead of the typical quadratic growth present in naive
17149# implementations.
17150if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17151  eval 'as_fn_append ()
17152  {
17153    eval $1+=\$2
17154  }'
17155else
17156  as_fn_append ()
17157  {
17158    eval $1=\$$1\$2
17159  }
17160fi # as_fn_append
17161
17162# as_fn_arith ARG...
17163# ------------------
17164# Perform arithmetic evaluation on the ARGs, and store the result in the
17165# global $as_val. Take advantage of shells that can avoid forks. The arguments
17166# must be portable across $(()) and expr.
17167if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17168  eval 'as_fn_arith ()
17169  {
17170    as_val=$(( $* ))
17171  }'
17172else
17173  as_fn_arith ()
17174  {
17175    as_val=`expr "$@" || test $? -eq 1`
17176  }
17177fi # as_fn_arith
17178
17179
17180if expr a : '\(a\)' >/dev/null 2>&1 &&
17181   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17182  as_expr=expr
17183else
17184  as_expr=false
17185fi
17186
17187if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17188  as_basename=basename
17189else
17190  as_basename=false
17191fi
17192
17193if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17194  as_dirname=dirname
17195else
17196  as_dirname=false
17197fi
17198
17199as_me=`$as_basename -- "$0" ||
17200$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17201	 X"$0" : 'X\(//\)$' \| \
17202	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17203$as_echo X/"$0" |
17204    sed '/^.*\/\([^/][^/]*\)\/*$/{
17205	    s//\1/
17206	    q
17207	  }
17208	  /^X\/\(\/\/\)$/{
17209	    s//\1/
17210	    q
17211	  }
17212	  /^X\/\(\/\).*/{
17213	    s//\1/
17214	    q
17215	  }
17216	  s/.*/./; q'`
17217
17218# Avoid depending upon Character Ranges.
17219as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17220as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17221as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17222as_cr_digits='0123456789'
17223as_cr_alnum=$as_cr_Letters$as_cr_digits
17224
17225ECHO_C= ECHO_N= ECHO_T=
17226case `echo -n x` in #(((((
17227-n*)
17228  case `echo 'xy\c'` in
17229  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17230  xy)  ECHO_C='\c';;
17231  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17232       ECHO_T='	';;
17233  esac;;
17234*)
17235  ECHO_N='-n';;
17236esac
17237
17238rm -f conf$$ conf$$.exe conf$$.file
17239if test -d conf$$.dir; then
17240  rm -f conf$$.dir/conf$$.file
17241else
17242  rm -f conf$$.dir
17243  mkdir conf$$.dir 2>/dev/null
17244fi
17245if (echo >conf$$.file) 2>/dev/null; then
17246  if ln -s conf$$.file conf$$ 2>/dev/null; then
17247    as_ln_s='ln -s'
17248    # ... but there are two gotchas:
17249    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17250    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17251    # In both cases, we have to default to `cp -pR'.
17252    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17253      as_ln_s='cp -pR'
17254  elif ln conf$$.file conf$$ 2>/dev/null; then
17255    as_ln_s=ln
17256  else
17257    as_ln_s='cp -pR'
17258  fi
17259else
17260  as_ln_s='cp -pR'
17261fi
17262rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17263rmdir conf$$.dir 2>/dev/null
17264
17265
17266# as_fn_mkdir_p
17267# -------------
17268# Create "$as_dir" as a directory, including parents if necessary.
17269as_fn_mkdir_p ()
17270{
17271
17272  case $as_dir in #(
17273  -*) as_dir=./$as_dir;;
17274  esac
17275  test -d "$as_dir" || eval $as_mkdir_p || {
17276    as_dirs=
17277    while :; do
17278      case $as_dir in #(
17279      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17280      *) as_qdir=$as_dir;;
17281      esac
17282      as_dirs="'$as_qdir' $as_dirs"
17283      as_dir=`$as_dirname -- "$as_dir" ||
17284$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17285	 X"$as_dir" : 'X\(//\)[^/]' \| \
17286	 X"$as_dir" : 'X\(//\)$' \| \
17287	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17288$as_echo X"$as_dir" |
17289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17290	    s//\1/
17291	    q
17292	  }
17293	  /^X\(\/\/\)[^/].*/{
17294	    s//\1/
17295	    q
17296	  }
17297	  /^X\(\/\/\)$/{
17298	    s//\1/
17299	    q
17300	  }
17301	  /^X\(\/\).*/{
17302	    s//\1/
17303	    q
17304	  }
17305	  s/.*/./; q'`
17306      test -d "$as_dir" && break
17307    done
17308    test -z "$as_dirs" || eval "mkdir $as_dirs"
17309  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17310
17311
17312} # as_fn_mkdir_p
17313if mkdir -p . 2>/dev/null; then
17314  as_mkdir_p='mkdir -p "$as_dir"'
17315else
17316  test -d ./-p && rmdir ./-p
17317  as_mkdir_p=false
17318fi
17319
17320
17321# as_fn_executable_p FILE
17322# -----------------------
17323# Test if FILE is an executable regular file.
17324as_fn_executable_p ()
17325{
17326  test -f "$1" && test -x "$1"
17327} # as_fn_executable_p
17328as_test_x='test -x'
17329as_executable_p=as_fn_executable_p
17330
17331# Sed expression to map a string onto a valid CPP name.
17332as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17333
17334# Sed expression to map a string onto a valid variable name.
17335as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17336
17337
17338exec 6>&1
17339## ----------------------------------- ##
17340## Main body of $CONFIG_STATUS script. ##
17341## ----------------------------------- ##
17342_ASEOF
17343test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17344
17345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17346# Save the log message, to keep $0 and so on meaningful, and to
17347# report actual input values of CONFIG_FILES etc. instead of their
17348# values after options handling.
17349ac_log="
17350This file was extended by MFS $as_me 2.0.91, which was
17351generated by GNU Autoconf 2.69.  Invocation command line was
17352
17353  CONFIG_FILES    = $CONFIG_FILES
17354  CONFIG_HEADERS  = $CONFIG_HEADERS
17355  CONFIG_LINKS    = $CONFIG_LINKS
17356  CONFIG_COMMANDS = $CONFIG_COMMANDS
17357  $ $0 $@
17358
17359on `(hostname || uname -n) 2>/dev/null | sed 1q`
17360"
17361
17362_ACEOF
17363
17364case $ac_config_files in *"
17365"*) set x $ac_config_files; shift; ac_config_files=$*;;
17366esac
17367
17368case $ac_config_headers in *"
17369"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17370esac
17371
17372
17373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17374# Files that config.status was made for.
17375config_files="$ac_config_files"
17376config_headers="$ac_config_headers"
17377config_commands="$ac_config_commands"
17378
17379_ACEOF
17380
17381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17382ac_cs_usage="\
17383\`$as_me' instantiates files and other configuration actions
17384from templates according to the current configuration.  Unless the files
17385and actions are specified as TAGs, all are instantiated by default.
17386
17387Usage: $0 [OPTION]... [TAG]...
17388
17389  -h, --help       print this help, then exit
17390  -V, --version    print version number and configuration settings, then exit
17391      --config     print configuration, then exit
17392  -q, --quiet, --silent
17393                   do not print progress messages
17394  -d, --debug      don't remove temporary files
17395      --recheck    update $as_me by reconfiguring in the same conditions
17396      --file=FILE[:TEMPLATE]
17397                   instantiate the configuration file FILE
17398      --header=FILE[:TEMPLATE]
17399                   instantiate the configuration header FILE
17400
17401Configuration files:
17402$config_files
17403
17404Configuration headers:
17405$config_headers
17406
17407Configuration commands:
17408$config_commands
17409
17410Report bugs to <bugs@moosefs.com>."
17411
17412_ACEOF
17413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17414ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17415ac_cs_version="\\
17416MFS config.status 2.0.91
17417configured by $0, generated by GNU Autoconf 2.69,
17418  with options \\"\$ac_cs_config\\"
17419
17420Copyright (C) 2012 Free Software Foundation, Inc.
17421This config.status script is free software; the Free Software Foundation
17422gives unlimited permission to copy, distribute and modify it."
17423
17424ac_pwd='$ac_pwd'
17425srcdir='$srcdir'
17426INSTALL='$INSTALL'
17427MKDIR_P='$MKDIR_P'
17428AWK='$AWK'
17429test -n "\$AWK" || AWK=awk
17430_ACEOF
17431
17432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17433# The default lists apply if the user does not specify any file.
17434ac_need_defaults=:
17435while test $# != 0
17436do
17437  case $1 in
17438  --*=?*)
17439    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17440    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17441    ac_shift=:
17442    ;;
17443  --*=)
17444    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17445    ac_optarg=
17446    ac_shift=:
17447    ;;
17448  *)
17449    ac_option=$1
17450    ac_optarg=$2
17451    ac_shift=shift
17452    ;;
17453  esac
17454
17455  case $ac_option in
17456  # Handling of the options.
17457  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17458    ac_cs_recheck=: ;;
17459  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17460    $as_echo "$ac_cs_version"; exit ;;
17461  --config | --confi | --conf | --con | --co | --c )
17462    $as_echo "$ac_cs_config"; exit ;;
17463  --debug | --debu | --deb | --de | --d | -d )
17464    debug=: ;;
17465  --file | --fil | --fi | --f )
17466    $ac_shift
17467    case $ac_optarg in
17468    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17469    '') as_fn_error $? "missing file argument" ;;
17470    esac
17471    as_fn_append CONFIG_FILES " '$ac_optarg'"
17472    ac_need_defaults=false;;
17473  --header | --heade | --head | --hea )
17474    $ac_shift
17475    case $ac_optarg in
17476    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17477    esac
17478    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17479    ac_need_defaults=false;;
17480  --he | --h)
17481    # Conflict between --help and --header
17482    as_fn_error $? "ambiguous option: \`$1'
17483Try \`$0 --help' for more information.";;
17484  --help | --hel | -h )
17485    $as_echo "$ac_cs_usage"; exit ;;
17486  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17487  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17488    ac_cs_silent=: ;;
17489
17490  # This is an error.
17491  -*) as_fn_error $? "unrecognized option: \`$1'
17492Try \`$0 --help' for more information." ;;
17493
17494  *) as_fn_append ac_config_targets " $1"
17495     ac_need_defaults=false ;;
17496
17497  esac
17498  shift
17499done
17500
17501ac_configure_extra_args=
17502
17503if $ac_cs_silent; then
17504  exec 6>/dev/null
17505  ac_configure_extra_args="$ac_configure_extra_args --silent"
17506fi
17507
17508_ACEOF
17509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17510if \$ac_cs_recheck; then
17511  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17512  shift
17513  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17514  CONFIG_SHELL='$SHELL'
17515  export CONFIG_SHELL
17516  exec "\$@"
17517fi
17518
17519_ACEOF
17520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17521exec 5>>config.log
17522{
17523  echo
17524  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17525## Running $as_me. ##
17526_ASBOX
17527  $as_echo "$ac_log"
17528} >&5
17529
17530_ACEOF
17531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17532#
17533# INIT-COMMANDS
17534#
17535AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17536
17537
17538# The HP-UX ksh and POSIX shell print the target directory to stdout
17539# if CDPATH is set.
17540(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17541
17542sed_quote_subst='$sed_quote_subst'
17543double_quote_subst='$double_quote_subst'
17544delay_variable_subst='$delay_variable_subst'
17545macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17546macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17547enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17548enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17549pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17550enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17551shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17552SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17553ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17554PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17555host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17556host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17557host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17558build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17559build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17560build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17561SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17562Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17563GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17564EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17565FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17566LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17567NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17568LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17569max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17570ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17571exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17572lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17573lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17574lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17575lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17576lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17577reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17578reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17579OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17580deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17581file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17582file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17583want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17584DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17585sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17586AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17587AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17588archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17589STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17590RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17591old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17592old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17593old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17594lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17595CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17596CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17597compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17598GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17599lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17600lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17601lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17602lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17603lt_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"`'
17604lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17605nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17606lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17607lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17608objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17609MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17610lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17611lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17612lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17613lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17614lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17615need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17616MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17617DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17618NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17619LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17620OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17621OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17622libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17623shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17624extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17625archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17626enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17627export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17628whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17629compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17630old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17631old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17632archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17633archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17634module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17635module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17636with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17637allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17638no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17639hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17640hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17641hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17642hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17643hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17644hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17645hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17646inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17647link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17648always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17649export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17650exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17651include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17652prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17653postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17654file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17655variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17656need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17657need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17658version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17659runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17660shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17661shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17662libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17663library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17664soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17665install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17666postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17667postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17668finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17669finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17670hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17671sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17672configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17673configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17674hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17675enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17676enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17677enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17678old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17679striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17680
17681LTCC='$LTCC'
17682LTCFLAGS='$LTCFLAGS'
17683compiler='$compiler_DEFAULT'
17684
17685# A function that is used when there is no print builtin or printf.
17686func_fallback_echo ()
17687{
17688  eval 'cat <<_LTECHO_EOF
17689\$1
17690_LTECHO_EOF'
17691}
17692
17693# Quote evaled strings.
17694for var in SHELL \
17695ECHO \
17696PATH_SEPARATOR \
17697SED \
17698GREP \
17699EGREP \
17700FGREP \
17701LD \
17702NM \
17703LN_S \
17704lt_SP2NL \
17705lt_NL2SP \
17706reload_flag \
17707OBJDUMP \
17708deplibs_check_method \
17709file_magic_cmd \
17710file_magic_glob \
17711want_nocaseglob \
17712DLLTOOL \
17713sharedlib_from_linklib_cmd \
17714AR \
17715AR_FLAGS \
17716archiver_list_spec \
17717STRIP \
17718RANLIB \
17719CC \
17720CFLAGS \
17721compiler \
17722lt_cv_sys_global_symbol_pipe \
17723lt_cv_sys_global_symbol_to_cdecl \
17724lt_cv_sys_global_symbol_to_import \
17725lt_cv_sys_global_symbol_to_c_name_address \
17726lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17727lt_cv_nm_interface \
17728nm_file_list_spec \
17729lt_cv_truncate_bin \
17730lt_prog_compiler_no_builtin_flag \
17731lt_prog_compiler_pic \
17732lt_prog_compiler_wl \
17733lt_prog_compiler_static \
17734lt_cv_prog_compiler_c_o \
17735need_locks \
17736MANIFEST_TOOL \
17737DSYMUTIL \
17738NMEDIT \
17739LIPO \
17740OTOOL \
17741OTOOL64 \
17742shrext_cmds \
17743export_dynamic_flag_spec \
17744whole_archive_flag_spec \
17745compiler_needs_object \
17746with_gnu_ld \
17747allow_undefined_flag \
17748no_undefined_flag \
17749hardcode_libdir_flag_spec \
17750hardcode_libdir_separator \
17751exclude_expsyms \
17752include_expsyms \
17753file_list_spec \
17754variables_saved_for_relink \
17755libname_spec \
17756library_names_spec \
17757soname_spec \
17758install_override_mode \
17759finish_eval \
17760old_striplib \
17761striplib; do
17762    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17763    *[\\\\\\\`\\"\\\$]*)
17764      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17765      ;;
17766    *)
17767      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17768      ;;
17769    esac
17770done
17771
17772# Double-quote double-evaled strings.
17773for var in reload_cmds \
17774old_postinstall_cmds \
17775old_postuninstall_cmds \
17776old_archive_cmds \
17777extract_expsyms_cmds \
17778old_archive_from_new_cmds \
17779old_archive_from_expsyms_cmds \
17780archive_cmds \
17781archive_expsym_cmds \
17782module_cmds \
17783module_expsym_cmds \
17784export_symbols_cmds \
17785prelink_cmds \
17786postlink_cmds \
17787postinstall_cmds \
17788postuninstall_cmds \
17789finish_cmds \
17790sys_lib_search_path_spec \
17791configure_time_dlsearch_path \
17792configure_time_lt_sys_library_path; do
17793    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17794    *[\\\\\\\`\\"\\\$]*)
17795      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17796      ;;
17797    *)
17798      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17799      ;;
17800    esac
17801done
17802
17803ac_aux_dir='$ac_aux_dir'
17804
17805# See if we are running on zsh, and set the options that allow our
17806# commands through without removal of \ escapes INIT.
17807if test -n "\${ZSH_VERSION+set}"; then
17808   setopt NO_GLOB_SUBST
17809fi
17810
17811
17812    PACKAGE='$PACKAGE'
17813    VERSION='$VERSION'
17814    RM='$RM'
17815    ofile='$ofile'
17816
17817
17818
17819
17820_ACEOF
17821
17822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17823
17824# Handling of arguments.
17825for ac_config_target in $ac_config_targets
17826do
17827  case $ac_config_target in
17828    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17829    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17830    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17831    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17832    "mfsmanpages/Makefile") CONFIG_FILES="$CONFIG_FILES mfsmanpages/Makefile" ;;
17833    "mfschunkserver/Makefile") CONFIG_FILES="$CONFIG_FILES mfschunkserver/Makefile" ;;
17834    "mfsscripts/Makefile") CONFIG_FILES="$CONFIG_FILES mfsscripts/Makefile" ;;
17835    "mfsdata/Makefile") CONFIG_FILES="$CONFIG_FILES mfsdata/Makefile" ;;
17836    "mfsmaster/Makefile") CONFIG_FILES="$CONFIG_FILES mfsmaster/Makefile" ;;
17837    "mfsmetadump/Makefile") CONFIG_FILES="$CONFIG_FILES mfsmetadump/Makefile" ;;
17838    "mfsmetalogger/Makefile") CONFIG_FILES="$CONFIG_FILES mfsmetalogger/Makefile" ;;
17839    "mfssupervisor/Makefile") CONFIG_FILES="$CONFIG_FILES mfssupervisor/Makefile" ;;
17840    "mfsmount/Makefile") CONFIG_FILES="$CONFIG_FILES mfsmount/Makefile" ;;
17841    "mfsnetdump/Makefile") CONFIG_FILES="$CONFIG_FILES mfsnetdump/Makefile" ;;
17842    "mfstests/Makefile") CONFIG_FILES="$CONFIG_FILES mfstests/Makefile" ;;
17843    "systemd/Makefile") CONFIG_FILES="$CONFIG_FILES systemd/Makefile" ;;
17844    "mfsscripts/mfscli.py") CONFIG_FILES="$CONFIG_FILES mfsscripts/mfscli.py" ;;
17845    "mfsscripts/chart.cgi") CONFIG_FILES="$CONFIG_FILES mfsscripts/chart.cgi" ;;
17846    "mfsscripts/index.html") CONFIG_FILES="$CONFIG_FILES mfsscripts/index.html" ;;
17847    "mfsscripts/mfscgiserv.py") CONFIG_FILES="$CONFIG_FILES mfsscripts/mfscgiserv.py" ;;
17848    "mfsdata/mfschunkserver.cfg") CONFIG_FILES="$CONFIG_FILES mfsdata/mfschunkserver.cfg" ;;
17849    "mfsdata/mfsmaster.cfg") CONFIG_FILES="$CONFIG_FILES mfsdata/mfsmaster.cfg" ;;
17850    "mfsdata/mfsmetalogger.cfg") CONFIG_FILES="$CONFIG_FILES mfsdata/mfsmetalogger.cfg" ;;
17851    "mfsdata/mfsmount.cfg") CONFIG_FILES="$CONFIG_FILES mfsdata/mfsmount.cfg" ;;
17852    "systemd/moosefs-cgiserv.service") CONFIG_FILES="$CONFIG_FILES systemd/moosefs-cgiserv.service" ;;
17853    "systemd/moosefs-chunkserver.service") CONFIG_FILES="$CONFIG_FILES systemd/moosefs-chunkserver.service" ;;
17854    "systemd/moosefs-master.service") CONFIG_FILES="$CONFIG_FILES systemd/moosefs-master.service" ;;
17855    "systemd/moosefs-metalogger.service") CONFIG_FILES="$CONFIG_FILES systemd/moosefs-metalogger.service" ;;
17856
17857  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17858  esac
17859done
17860
17861
17862# If the user did not use the arguments to specify the items to instantiate,
17863# then the envvar interface is used.  Set only those that are not.
17864# We use the long form for the default assignment because of an extremely
17865# bizarre bug on SunOS 4.1.3.
17866if $ac_need_defaults; then
17867  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17868  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17869  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17870fi
17871
17872# Have a temporary directory for convenience.  Make it in the build tree
17873# simply because there is no reason against having it here, and in addition,
17874# creating and moving files from /tmp can sometimes cause problems.
17875# Hook for its removal unless debugging.
17876# Note that there is a small window in which the directory will not be cleaned:
17877# after its creation but before its name has been assigned to `$tmp'.
17878$debug ||
17879{
17880  tmp= ac_tmp=
17881  trap 'exit_status=$?
17882  : "${ac_tmp:=$tmp}"
17883  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17884' 0
17885  trap 'as_fn_exit 1' 1 2 13 15
17886}
17887# Create a (secure) tmp directory for tmp files.
17888
17889{
17890  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17891  test -d "$tmp"
17892}  ||
17893{
17894  tmp=./conf$$-$RANDOM
17895  (umask 077 && mkdir "$tmp")
17896} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17897ac_tmp=$tmp
17898
17899# Set up the scripts for CONFIG_FILES section.
17900# No need to generate them if there are no CONFIG_FILES.
17901# This happens for instance with `./config.status config.h'.
17902if test -n "$CONFIG_FILES"; then
17903
17904
17905ac_cr=`echo X | tr X '\015'`
17906# On cygwin, bash can eat \r inside `` if the user requested igncr.
17907# But we know of no other shell where ac_cr would be empty at this
17908# point, so we can use a bashism as a fallback.
17909if test "x$ac_cr" = x; then
17910  eval ac_cr=\$\'\\r\'
17911fi
17912ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17913if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17914  ac_cs_awk_cr='\\r'
17915else
17916  ac_cs_awk_cr=$ac_cr
17917fi
17918
17919echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17920_ACEOF
17921
17922
17923{
17924  echo "cat >conf$$subs.awk <<_ACEOF" &&
17925  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17926  echo "_ACEOF"
17927} >conf$$subs.sh ||
17928  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17929ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17930ac_delim='%!_!# '
17931for ac_last_try in false false false false false :; do
17932  . ./conf$$subs.sh ||
17933    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17934
17935  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17936  if test $ac_delim_n = $ac_delim_num; then
17937    break
17938  elif $ac_last_try; then
17939    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17940  else
17941    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17942  fi
17943done
17944rm -f conf$$subs.sh
17945
17946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17947cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17948_ACEOF
17949sed -n '
17950h
17951s/^/S["/; s/!.*/"]=/
17952p
17953g
17954s/^[^!]*!//
17955:repl
17956t repl
17957s/'"$ac_delim"'$//
17958t delim
17959:nl
17960h
17961s/\(.\{148\}\)..*/\1/
17962t more1
17963s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17964p
17965n
17966b repl
17967:more1
17968s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17969p
17970g
17971s/.\{148\}//
17972t nl
17973:delim
17974h
17975s/\(.\{148\}\)..*/\1/
17976t more2
17977s/["\\]/\\&/g; s/^/"/; s/$/"/
17978p
17979b
17980:more2
17981s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17982p
17983g
17984s/.\{148\}//
17985t delim
17986' <conf$$subs.awk | sed '
17987/^[^""]/{
17988  N
17989  s/\n//
17990}
17991' >>$CONFIG_STATUS || ac_write_fail=1
17992rm -f conf$$subs.awk
17993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17994_ACAWK
17995cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17996  for (key in S) S_is_set[key] = 1
17997  FS = ""
17998
17999}
18000{
18001  line = $ 0
18002  nfields = split(line, field, "@")
18003  substed = 0
18004  len = length(field[1])
18005  for (i = 2; i < nfields; i++) {
18006    key = field[i]
18007    keylen = length(key)
18008    if (S_is_set[key]) {
18009      value = S[key]
18010      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18011      len += length(value) + length(field[++i])
18012      substed = 1
18013    } else
18014      len += 1 + keylen
18015  }
18016
18017  print line
18018}
18019
18020_ACAWK
18021_ACEOF
18022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18023if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18024  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18025else
18026  cat
18027fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18028  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18029_ACEOF
18030
18031# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18032# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18033# trailing colons and then remove the whole line if VPATH becomes empty
18034# (actually we leave an empty line to preserve line numbers).
18035if test "x$srcdir" = x.; then
18036  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18037h
18038s///
18039s/^/:/
18040s/[	 ]*$/:/
18041s/:\$(srcdir):/:/g
18042s/:\${srcdir}:/:/g
18043s/:@srcdir@:/:/g
18044s/^:*//
18045s/:*$//
18046x
18047s/\(=[	 ]*\).*/\1/
18048G
18049s/\n//
18050s/^[^=]*=[	 ]*$//
18051}'
18052fi
18053
18054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18055fi # test -n "$CONFIG_FILES"
18056
18057# Set up the scripts for CONFIG_HEADERS section.
18058# No need to generate them if there are no CONFIG_HEADERS.
18059# This happens for instance with `./config.status Makefile'.
18060if test -n "$CONFIG_HEADERS"; then
18061cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18062BEGIN {
18063_ACEOF
18064
18065# Transform confdefs.h into an awk script `defines.awk', embedded as
18066# here-document in config.status, that substitutes the proper values into
18067# config.h.in to produce config.h.
18068
18069# Create a delimiter string that does not exist in confdefs.h, to ease
18070# handling of long lines.
18071ac_delim='%!_!# '
18072for ac_last_try in false false :; do
18073  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18074  if test -z "$ac_tt"; then
18075    break
18076  elif $ac_last_try; then
18077    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18078  else
18079    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18080  fi
18081done
18082
18083# For the awk script, D is an array of macro values keyed by name,
18084# likewise P contains macro parameters if any.  Preserve backslash
18085# newline sequences.
18086
18087ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18088sed -n '
18089s/.\{148\}/&'"$ac_delim"'/g
18090t rset
18091:rset
18092s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18093t def
18094d
18095:def
18096s/\\$//
18097t bsnl
18098s/["\\]/\\&/g
18099s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18100D["\1"]=" \3"/p
18101s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18102d
18103:bsnl
18104s/["\\]/\\&/g
18105s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18106D["\1"]=" \3\\\\\\n"\\/p
18107t cont
18108s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18109t cont
18110d
18111:cont
18112n
18113s/.\{148\}/&'"$ac_delim"'/g
18114t clear
18115:clear
18116s/\\$//
18117t bsnlc
18118s/["\\]/\\&/g; s/^/"/; s/$/"/p
18119d
18120:bsnlc
18121s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18122b cont
18123' <confdefs.h | sed '
18124s/'"$ac_delim"'/"\\\
18125"/g' >>$CONFIG_STATUS || ac_write_fail=1
18126
18127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18128  for (key in D) D_is_set[key] = 1
18129  FS = ""
18130}
18131/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18132  line = \$ 0
18133  split(line, arg, " ")
18134  if (arg[1] == "#") {
18135    defundef = arg[2]
18136    mac1 = arg[3]
18137  } else {
18138    defundef = substr(arg[1], 2)
18139    mac1 = arg[2]
18140  }
18141  split(mac1, mac2, "(") #)
18142  macro = mac2[1]
18143  prefix = substr(line, 1, index(line, defundef) - 1)
18144  if (D_is_set[macro]) {
18145    # Preserve the white space surrounding the "#".
18146    print prefix "define", macro P[macro] D[macro]
18147    next
18148  } else {
18149    # Replace #undef with comments.  This is necessary, for example,
18150    # in the case of _POSIX_SOURCE, which is predefined and required
18151    # on some systems where configure will not decide to define it.
18152    if (defundef == "undef") {
18153      print "/*", prefix defundef, macro, "*/"
18154      next
18155    }
18156  }
18157}
18158{ print }
18159_ACAWK
18160_ACEOF
18161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18162  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18163fi # test -n "$CONFIG_HEADERS"
18164
18165
18166eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18167shift
18168for ac_tag
18169do
18170  case $ac_tag in
18171  :[FHLC]) ac_mode=$ac_tag; continue;;
18172  esac
18173  case $ac_mode$ac_tag in
18174  :[FHL]*:*);;
18175  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18176  :[FH]-) ac_tag=-:-;;
18177  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18178  esac
18179  ac_save_IFS=$IFS
18180  IFS=:
18181  set x $ac_tag
18182  IFS=$ac_save_IFS
18183  shift
18184  ac_file=$1
18185  shift
18186
18187  case $ac_mode in
18188  :L) ac_source=$1;;
18189  :[FH])
18190    ac_file_inputs=
18191    for ac_f
18192    do
18193      case $ac_f in
18194      -) ac_f="$ac_tmp/stdin";;
18195      *) # Look for the file first in the build tree, then in the source tree
18196	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18197	 # because $ac_f cannot contain `:'.
18198	 test -f "$ac_f" ||
18199	   case $ac_f in
18200	   [\\/$]*) false;;
18201	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18202	   esac ||
18203	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18204      esac
18205      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18206      as_fn_append ac_file_inputs " '$ac_f'"
18207    done
18208
18209    # Let's still pretend it is `configure' which instantiates (i.e., don't
18210    # use $as_me), people would be surprised to read:
18211    #    /* config.h.  Generated by config.status.  */
18212    configure_input='Generated from '`
18213	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18214	`' by configure.'
18215    if test x"$ac_file" != x-; then
18216      configure_input="$ac_file.  $configure_input"
18217      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18218$as_echo "$as_me: creating $ac_file" >&6;}
18219    fi
18220    # Neutralize special characters interpreted by sed in replacement strings.
18221    case $configure_input in #(
18222    *\&* | *\|* | *\\* )
18223       ac_sed_conf_input=`$as_echo "$configure_input" |
18224       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18225    *) ac_sed_conf_input=$configure_input;;
18226    esac
18227
18228    case $ac_tag in
18229    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18230      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18231    esac
18232    ;;
18233  esac
18234
18235  ac_dir=`$as_dirname -- "$ac_file" ||
18236$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18237	 X"$ac_file" : 'X\(//\)[^/]' \| \
18238	 X"$ac_file" : 'X\(//\)$' \| \
18239	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18240$as_echo X"$ac_file" |
18241    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18242	    s//\1/
18243	    q
18244	  }
18245	  /^X\(\/\/\)[^/].*/{
18246	    s//\1/
18247	    q
18248	  }
18249	  /^X\(\/\/\)$/{
18250	    s//\1/
18251	    q
18252	  }
18253	  /^X\(\/\).*/{
18254	    s//\1/
18255	    q
18256	  }
18257	  s/.*/./; q'`
18258  as_dir="$ac_dir"; as_fn_mkdir_p
18259  ac_builddir=.
18260
18261case "$ac_dir" in
18262.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18263*)
18264  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18265  # A ".." for each directory in $ac_dir_suffix.
18266  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18267  case $ac_top_builddir_sub in
18268  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18269  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18270  esac ;;
18271esac
18272ac_abs_top_builddir=$ac_pwd
18273ac_abs_builddir=$ac_pwd$ac_dir_suffix
18274# for backward compatibility:
18275ac_top_builddir=$ac_top_build_prefix
18276
18277case $srcdir in
18278  .)  # We are building in place.
18279    ac_srcdir=.
18280    ac_top_srcdir=$ac_top_builddir_sub
18281    ac_abs_top_srcdir=$ac_pwd ;;
18282  [\\/]* | ?:[\\/]* )  # Absolute name.
18283    ac_srcdir=$srcdir$ac_dir_suffix;
18284    ac_top_srcdir=$srcdir
18285    ac_abs_top_srcdir=$srcdir ;;
18286  *) # Relative name.
18287    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18288    ac_top_srcdir=$ac_top_build_prefix$srcdir
18289    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18290esac
18291ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18292
18293
18294  case $ac_mode in
18295  :F)
18296  #
18297  # CONFIG_FILE
18298  #
18299
18300  case $INSTALL in
18301  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18302  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18303  esac
18304  ac_MKDIR_P=$MKDIR_P
18305  case $MKDIR_P in
18306  [\\/$]* | ?:[\\/]* ) ;;
18307  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18308  esac
18309_ACEOF
18310
18311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18312# If the template does not know about datarootdir, expand it.
18313# FIXME: This hack should be removed a few years after 2.60.
18314ac_datarootdir_hack=; ac_datarootdir_seen=
18315ac_sed_dataroot='
18316/datarootdir/ {
18317  p
18318  q
18319}
18320/@datadir@/p
18321/@docdir@/p
18322/@infodir@/p
18323/@localedir@/p
18324/@mandir@/p'
18325case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18326*datarootdir*) ac_datarootdir_seen=yes;;
18327*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18328  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18329$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18330_ACEOF
18331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18332  ac_datarootdir_hack='
18333  s&@datadir@&$datadir&g
18334  s&@docdir@&$docdir&g
18335  s&@infodir@&$infodir&g
18336  s&@localedir@&$localedir&g
18337  s&@mandir@&$mandir&g
18338  s&\\\${datarootdir}&$datarootdir&g' ;;
18339esac
18340_ACEOF
18341
18342# Neutralize VPATH when `$srcdir' = `.'.
18343# Shell code in configure.ac might set extrasub.
18344# FIXME: do we really want to maintain this feature?
18345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18346ac_sed_extra="$ac_vpsub
18347$extrasub
18348_ACEOF
18349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18350:t
18351/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18352s|@configure_input@|$ac_sed_conf_input|;t t
18353s&@top_builddir@&$ac_top_builddir_sub&;t t
18354s&@top_build_prefix@&$ac_top_build_prefix&;t t
18355s&@srcdir@&$ac_srcdir&;t t
18356s&@abs_srcdir@&$ac_abs_srcdir&;t t
18357s&@top_srcdir@&$ac_top_srcdir&;t t
18358s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18359s&@builddir@&$ac_builddir&;t t
18360s&@abs_builddir@&$ac_abs_builddir&;t t
18361s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18362s&@INSTALL@&$ac_INSTALL&;t t
18363s&@MKDIR_P@&$ac_MKDIR_P&;t t
18364$ac_datarootdir_hack
18365"
18366eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18367  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18368
18369test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18370  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18371  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18372      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18373  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18374which seems to be undefined.  Please make sure it is defined" >&5
18375$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18376which seems to be undefined.  Please make sure it is defined" >&2;}
18377
18378  rm -f "$ac_tmp/stdin"
18379  case $ac_file in
18380  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18381  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18382  esac \
18383  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18384 ;;
18385  :H)
18386  #
18387  # CONFIG_HEADER
18388  #
18389  if test x"$ac_file" != x-; then
18390    {
18391      $as_echo "/* $configure_input  */" \
18392      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18393    } >"$ac_tmp/config.h" \
18394      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18395    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18396      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18397$as_echo "$as_me: $ac_file is unchanged" >&6;}
18398    else
18399      rm -f "$ac_file"
18400      mv "$ac_tmp/config.h" "$ac_file" \
18401	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18402    fi
18403  else
18404    $as_echo "/* $configure_input  */" \
18405      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18406      || as_fn_error $? "could not create -" "$LINENO" 5
18407  fi
18408# Compute "$ac_file"'s index in $config_headers.
18409_am_arg="$ac_file"
18410_am_stamp_count=1
18411for _am_header in $config_headers :; do
18412  case $_am_header in
18413    $_am_arg | $_am_arg:* )
18414      break ;;
18415    * )
18416      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18417  esac
18418done
18419echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18420$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18421	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18422	 X"$_am_arg" : 'X\(//\)$' \| \
18423	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18424$as_echo X"$_am_arg" |
18425    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18426	    s//\1/
18427	    q
18428	  }
18429	  /^X\(\/\/\)[^/].*/{
18430	    s//\1/
18431	    q
18432	  }
18433	  /^X\(\/\/\)$/{
18434	    s//\1/
18435	    q
18436	  }
18437	  /^X\(\/\).*/{
18438	    s//\1/
18439	    q
18440	  }
18441	  s/.*/./; q'`/stamp-h$_am_stamp_count
18442 ;;
18443
18444  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18445$as_echo "$as_me: executing $ac_file commands" >&6;}
18446 ;;
18447  esac
18448
18449
18450  case $ac_file$ac_mode in
18451    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18452  # Older Autoconf quotes --file arguments for eval, but not when files
18453  # are listed without --file.  Let's play safe and only enable the eval
18454  # if we detect the quoting.
18455  case $CONFIG_FILES in
18456  *\'*) eval set x "$CONFIG_FILES" ;;
18457  *)   set x $CONFIG_FILES ;;
18458  esac
18459  shift
18460  for mf
18461  do
18462    # Strip MF so we end up with the name of the file.
18463    mf=`echo "$mf" | sed -e 's/:.*$//'`
18464    # Check whether this is an Automake generated Makefile or not.
18465    # We used to match only the files named 'Makefile.in', but
18466    # some people rename them; so instead we look at the file content.
18467    # Grep'ing the first line is not enough: some people post-process
18468    # each Makefile.in and add a new line on top of each file to say so.
18469    # Grep'ing the whole file is not good either: AIX grep has a line
18470    # limit of 2048, but all sed's we know have understand at least 4000.
18471    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18472      dirpart=`$as_dirname -- "$mf" ||
18473$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18474	 X"$mf" : 'X\(//\)[^/]' \| \
18475	 X"$mf" : 'X\(//\)$' \| \
18476	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18477$as_echo X"$mf" |
18478    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18479	    s//\1/
18480	    q
18481	  }
18482	  /^X\(\/\/\)[^/].*/{
18483	    s//\1/
18484	    q
18485	  }
18486	  /^X\(\/\/\)$/{
18487	    s//\1/
18488	    q
18489	  }
18490	  /^X\(\/\).*/{
18491	    s//\1/
18492	    q
18493	  }
18494	  s/.*/./; q'`
18495    else
18496      continue
18497    fi
18498    # Extract the definition of DEPDIR, am__include, and am__quote
18499    # from the Makefile without running 'make'.
18500    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18501    test -z "$DEPDIR" && continue
18502    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18503    test -z "$am__include" && continue
18504    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18505    # Find all dependency output files, they are included files with
18506    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18507    # simplest approach to changing $(DEPDIR) to its actual value in the
18508    # expansion.
18509    for file in `sed -n "
18510      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18511	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18512      # Make sure the directory exists.
18513      test -f "$dirpart/$file" && continue
18514      fdir=`$as_dirname -- "$file" ||
18515$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18516	 X"$file" : 'X\(//\)[^/]' \| \
18517	 X"$file" : 'X\(//\)$' \| \
18518	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18519$as_echo X"$file" |
18520    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18521	    s//\1/
18522	    q
18523	  }
18524	  /^X\(\/\/\)[^/].*/{
18525	    s//\1/
18526	    q
18527	  }
18528	  /^X\(\/\/\)$/{
18529	    s//\1/
18530	    q
18531	  }
18532	  /^X\(\/\).*/{
18533	    s//\1/
18534	    q
18535	  }
18536	  s/.*/./; q'`
18537      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18538      # echo "creating $dirpart/$file"
18539      echo '# dummy' > "$dirpart/$file"
18540    done
18541  done
18542}
18543 ;;
18544    "libtool":C)
18545
18546    # See if we are running on zsh, and set the options that allow our
18547    # commands through without removal of \ escapes.
18548    if test -n "${ZSH_VERSION+set}"; then
18549      setopt NO_GLOB_SUBST
18550    fi
18551
18552    cfgfile=${ofile}T
18553    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18554    $RM "$cfgfile"
18555
18556    cat <<_LT_EOF >> "$cfgfile"
18557#! $SHELL
18558# Generated automatically by $as_me ($PACKAGE) $VERSION
18559# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18560# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18561
18562# Provide generalized library-building support services.
18563# Written by Gordon Matzigkeit, 1996
18564
18565# Copyright (C) 2014 Free Software Foundation, Inc.
18566# This is free software; see the source for copying conditions.  There is NO
18567# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18568
18569# GNU Libtool is free software; you can redistribute it and/or modify
18570# it under the terms of the GNU General Public License as published by
18571# the Free Software Foundation; either version 2 of of the License, or
18572# (at your option) any later version.
18573#
18574# As a special exception to the GNU General Public License, if you
18575# distribute this file as part of a program or library that is built
18576# using GNU Libtool, you may include this file under the  same
18577# distribution terms that you use for the rest of that program.
18578#
18579# GNU Libtool is distributed in the hope that it will be useful, but
18580# WITHOUT ANY WARRANTY; without even the implied warranty of
18581# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18582# GNU General Public License for more details.
18583#
18584# You should have received a copy of the GNU General Public License
18585# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18586
18587
18588# The names of the tagged configurations supported by this script.
18589available_tags=''
18590
18591# Configured defaults for sys_lib_dlsearch_path munging.
18592: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18593
18594# ### BEGIN LIBTOOL CONFIG
18595
18596# Which release of libtool.m4 was used?
18597macro_version=$macro_version
18598macro_revision=$macro_revision
18599
18600# Whether or not to build shared libraries.
18601build_libtool_libs=$enable_shared
18602
18603# Whether or not to build static libraries.
18604build_old_libs=$enable_static
18605
18606# What type of objects to build.
18607pic_mode=$pic_mode
18608
18609# Whether or not to optimize for fast installation.
18610fast_install=$enable_fast_install
18611
18612# Shared archive member basename,for filename based shared library versioning on AIX.
18613shared_archive_member_spec=$shared_archive_member_spec
18614
18615# Shell to use when invoking shell scripts.
18616SHELL=$lt_SHELL
18617
18618# An echo program that protects backslashes.
18619ECHO=$lt_ECHO
18620
18621# The PATH separator for the build system.
18622PATH_SEPARATOR=$lt_PATH_SEPARATOR
18623
18624# The host system.
18625host_alias=$host_alias
18626host=$host
18627host_os=$host_os
18628
18629# The build system.
18630build_alias=$build_alias
18631build=$build
18632build_os=$build_os
18633
18634# A sed program that does not truncate output.
18635SED=$lt_SED
18636
18637# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18638Xsed="\$SED -e 1s/^X//"
18639
18640# A grep program that handles long lines.
18641GREP=$lt_GREP
18642
18643# An ERE matcher.
18644EGREP=$lt_EGREP
18645
18646# A literal string matcher.
18647FGREP=$lt_FGREP
18648
18649# A BSD- or MS-compatible name lister.
18650NM=$lt_NM
18651
18652# Whether we need soft or hard links.
18653LN_S=$lt_LN_S
18654
18655# What is the maximum length of a command?
18656max_cmd_len=$max_cmd_len
18657
18658# Object file suffix (normally "o").
18659objext=$ac_objext
18660
18661# Executable file suffix (normally "").
18662exeext=$exeext
18663
18664# whether the shell understands "unset".
18665lt_unset=$lt_unset
18666
18667# turn spaces into newlines.
18668SP2NL=$lt_lt_SP2NL
18669
18670# turn newlines into spaces.
18671NL2SP=$lt_lt_NL2SP
18672
18673# convert \$build file names to \$host format.
18674to_host_file_cmd=$lt_cv_to_host_file_cmd
18675
18676# convert \$build files to toolchain format.
18677to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18678
18679# An object symbol dumper.
18680OBJDUMP=$lt_OBJDUMP
18681
18682# Method to check whether dependent libraries are shared objects.
18683deplibs_check_method=$lt_deplibs_check_method
18684
18685# Command to use when deplibs_check_method = "file_magic".
18686file_magic_cmd=$lt_file_magic_cmd
18687
18688# How to find potential files when deplibs_check_method = "file_magic".
18689file_magic_glob=$lt_file_magic_glob
18690
18691# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18692want_nocaseglob=$lt_want_nocaseglob
18693
18694# DLL creation program.
18695DLLTOOL=$lt_DLLTOOL
18696
18697# Command to associate shared and link libraries.
18698sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18699
18700# The archiver.
18701AR=$lt_AR
18702
18703# Flags to create an archive.
18704AR_FLAGS=$lt_AR_FLAGS
18705
18706# How to feed a file listing to the archiver.
18707archiver_list_spec=$lt_archiver_list_spec
18708
18709# A symbol stripping program.
18710STRIP=$lt_STRIP
18711
18712# Commands used to install an old-style archive.
18713RANLIB=$lt_RANLIB
18714old_postinstall_cmds=$lt_old_postinstall_cmds
18715old_postuninstall_cmds=$lt_old_postuninstall_cmds
18716
18717# Whether to use a lock for old archive extraction.
18718lock_old_archive_extraction=$lock_old_archive_extraction
18719
18720# A C compiler.
18721LTCC=$lt_CC
18722
18723# LTCC compiler flags.
18724LTCFLAGS=$lt_CFLAGS
18725
18726# Take the output of nm and produce a listing of raw symbols and C names.
18727global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18728
18729# Transform the output of nm in a proper C declaration.
18730global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18731
18732# Transform the output of nm into a list of symbols to manually relocate.
18733global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18734
18735# Transform the output of nm in a C name address pair.
18736global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18737
18738# Transform the output of nm in a C name address pair when lib prefix is needed.
18739global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18740
18741# The name lister interface.
18742nm_interface=$lt_lt_cv_nm_interface
18743
18744# Specify filename containing input files for \$NM.
18745nm_file_list_spec=$lt_nm_file_list_spec
18746
18747# The root where to search for dependent libraries,and where our libraries should be installed.
18748lt_sysroot=$lt_sysroot
18749
18750# Command to truncate a binary pipe.
18751lt_truncate_bin=$lt_lt_cv_truncate_bin
18752
18753# The name of the directory that contains temporary libtool files.
18754objdir=$objdir
18755
18756# Used to examine libraries when file_magic_cmd begins with "file".
18757MAGIC_CMD=$MAGIC_CMD
18758
18759# Must we lock files when doing compilation?
18760need_locks=$lt_need_locks
18761
18762# Manifest tool.
18763MANIFEST_TOOL=$lt_MANIFEST_TOOL
18764
18765# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18766DSYMUTIL=$lt_DSYMUTIL
18767
18768# Tool to change global to local symbols on Mac OS X.
18769NMEDIT=$lt_NMEDIT
18770
18771# Tool to manipulate fat objects and archives on Mac OS X.
18772LIPO=$lt_LIPO
18773
18774# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18775OTOOL=$lt_OTOOL
18776
18777# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18778OTOOL64=$lt_OTOOL64
18779
18780# Old archive suffix (normally "a").
18781libext=$libext
18782
18783# Shared library suffix (normally ".so").
18784shrext_cmds=$lt_shrext_cmds
18785
18786# The commands to extract the exported symbol list from a shared archive.
18787extract_expsyms_cmds=$lt_extract_expsyms_cmds
18788
18789# Variables whose values should be saved in libtool wrapper scripts and
18790# restored at link time.
18791variables_saved_for_relink=$lt_variables_saved_for_relink
18792
18793# Do we need the "lib" prefix for modules?
18794need_lib_prefix=$need_lib_prefix
18795
18796# Do we need a version for libraries?
18797need_version=$need_version
18798
18799# Library versioning type.
18800version_type=$version_type
18801
18802# Shared library runtime path variable.
18803runpath_var=$runpath_var
18804
18805# Shared library path variable.
18806shlibpath_var=$shlibpath_var
18807
18808# Is shlibpath searched before the hard-coded library search path?
18809shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18810
18811# Format of library name prefix.
18812libname_spec=$lt_libname_spec
18813
18814# List of archive names.  First name is the real one, the rest are links.
18815# The last name is the one that the linker finds with -lNAME
18816library_names_spec=$lt_library_names_spec
18817
18818# The coded name of the library, if different from the real name.
18819soname_spec=$lt_soname_spec
18820
18821# Permission mode override for installation of shared libraries.
18822install_override_mode=$lt_install_override_mode
18823
18824# Command to use after installation of a shared archive.
18825postinstall_cmds=$lt_postinstall_cmds
18826
18827# Command to use after uninstallation of a shared archive.
18828postuninstall_cmds=$lt_postuninstall_cmds
18829
18830# Commands used to finish a libtool library installation in a directory.
18831finish_cmds=$lt_finish_cmds
18832
18833# As "finish_cmds", except a single script fragment to be evaled but
18834# not shown.
18835finish_eval=$lt_finish_eval
18836
18837# Whether we should hardcode library paths into libraries.
18838hardcode_into_libs=$hardcode_into_libs
18839
18840# Compile-time system search path for libraries.
18841sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18842
18843# Detected run-time system search path for libraries.
18844sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18845
18846# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18847configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18848
18849# Whether dlopen is supported.
18850dlopen_support=$enable_dlopen
18851
18852# Whether dlopen of programs is supported.
18853dlopen_self=$enable_dlopen_self
18854
18855# Whether dlopen of statically linked programs is supported.
18856dlopen_self_static=$enable_dlopen_self_static
18857
18858# Commands to strip libraries.
18859old_striplib=$lt_old_striplib
18860striplib=$lt_striplib
18861
18862
18863# The linker used to build libraries.
18864LD=$lt_LD
18865
18866# How to create reloadable object files.
18867reload_flag=$lt_reload_flag
18868reload_cmds=$lt_reload_cmds
18869
18870# Commands used to build an old-style archive.
18871old_archive_cmds=$lt_old_archive_cmds
18872
18873# A language specific compiler.
18874CC=$lt_compiler
18875
18876# Is the compiler the GNU compiler?
18877with_gcc=$GCC
18878
18879# Compiler flag to turn off builtin functions.
18880no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18881
18882# Additional compiler flags for building library objects.
18883pic_flag=$lt_lt_prog_compiler_pic
18884
18885# How to pass a linker flag through the compiler.
18886wl=$lt_lt_prog_compiler_wl
18887
18888# Compiler flag to prevent dynamic linking.
18889link_static_flag=$lt_lt_prog_compiler_static
18890
18891# Does compiler simultaneously support -c and -o options?
18892compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18893
18894# Whether or not to add -lc for building shared libraries.
18895build_libtool_need_lc=$archive_cmds_need_lc
18896
18897# Whether or not to disallow shared libs when runtime libs are static.
18898allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18899
18900# Compiler flag to allow reflexive dlopens.
18901export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18902
18903# Compiler flag to generate shared objects directly from archives.
18904whole_archive_flag_spec=$lt_whole_archive_flag_spec
18905
18906# Whether the compiler copes with passing no objects directly.
18907compiler_needs_object=$lt_compiler_needs_object
18908
18909# Create an old-style archive from a shared archive.
18910old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18911
18912# Create a temporary old-style archive to link instead of a shared archive.
18913old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18914
18915# Commands used to build a shared archive.
18916archive_cmds=$lt_archive_cmds
18917archive_expsym_cmds=$lt_archive_expsym_cmds
18918
18919# Commands used to build a loadable module if different from building
18920# a shared archive.
18921module_cmds=$lt_module_cmds
18922module_expsym_cmds=$lt_module_expsym_cmds
18923
18924# Whether we are building with GNU ld or not.
18925with_gnu_ld=$lt_with_gnu_ld
18926
18927# Flag that allows shared libraries with undefined symbols to be built.
18928allow_undefined_flag=$lt_allow_undefined_flag
18929
18930# Flag that enforces no undefined symbols.
18931no_undefined_flag=$lt_no_undefined_flag
18932
18933# Flag to hardcode \$libdir into a binary during linking.
18934# This must work even if \$libdir does not exist
18935hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18936
18937# Whether we need a single "-rpath" flag with a separated argument.
18938hardcode_libdir_separator=$lt_hardcode_libdir_separator
18939
18940# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18941# DIR into the resulting binary.
18942hardcode_direct=$hardcode_direct
18943
18944# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18945# DIR into the resulting binary and the resulting library dependency is
18946# "absolute",i.e impossible to change by setting \$shlibpath_var if the
18947# library is relocated.
18948hardcode_direct_absolute=$hardcode_direct_absolute
18949
18950# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18951# into the resulting binary.
18952hardcode_minus_L=$hardcode_minus_L
18953
18954# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18955# into the resulting binary.
18956hardcode_shlibpath_var=$hardcode_shlibpath_var
18957
18958# Set to "yes" if building a shared library automatically hardcodes DIR
18959# into the library and all subsequent libraries and executables linked
18960# against it.
18961hardcode_automatic=$hardcode_automatic
18962
18963# Set to yes if linker adds runtime paths of dependent libraries
18964# to runtime path list.
18965inherit_rpath=$inherit_rpath
18966
18967# Whether libtool must link a program against all its dependency libraries.
18968link_all_deplibs=$link_all_deplibs
18969
18970# Set to "yes" if exported symbols are required.
18971always_export_symbols=$always_export_symbols
18972
18973# The commands to list exported symbols.
18974export_symbols_cmds=$lt_export_symbols_cmds
18975
18976# Symbols that should not be listed in the preloaded symbols.
18977exclude_expsyms=$lt_exclude_expsyms
18978
18979# Symbols that must always be exported.
18980include_expsyms=$lt_include_expsyms
18981
18982# Commands necessary for linking programs (against libraries) with templates.
18983prelink_cmds=$lt_prelink_cmds
18984
18985# Commands necessary for finishing linking programs.
18986postlink_cmds=$lt_postlink_cmds
18987
18988# Specify filename containing input files.
18989file_list_spec=$lt_file_list_spec
18990
18991# How to hardcode a shared library path into an executable.
18992hardcode_action=$hardcode_action
18993
18994# ### END LIBTOOL CONFIG
18995
18996_LT_EOF
18997
18998    cat <<'_LT_EOF' >> "$cfgfile"
18999
19000# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19001
19002# func_munge_path_list VARIABLE PATH
19003# -----------------------------------
19004# VARIABLE is name of variable containing _space_ separated list of
19005# directories to be munged by the contents of PATH, which is string
19006# having a format:
19007# "DIR[:DIR]:"
19008#       string "DIR[ DIR]" will be prepended to VARIABLE
19009# ":DIR[:DIR]"
19010#       string "DIR[ DIR]" will be appended to VARIABLE
19011# "DIRP[:DIRP]::[DIRA:]DIRA"
19012#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19013#       "DIRA[ DIRA]" will be appended to VARIABLE
19014# "DIR[:DIR]"
19015#       VARIABLE will be replaced by "DIR[ DIR]"
19016func_munge_path_list ()
19017{
19018    case x$2 in
19019    x)
19020        ;;
19021    *:)
19022        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19023        ;;
19024    x:*)
19025        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19026        ;;
19027    *::*)
19028        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19029        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19030        ;;
19031    *)
19032        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19033        ;;
19034    esac
19035}
19036
19037
19038# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19039func_cc_basename ()
19040{
19041    for cc_temp in $*""; do
19042      case $cc_temp in
19043        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19044        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19045        \-*) ;;
19046        *) break;;
19047      esac
19048    done
19049    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19050}
19051
19052
19053# ### END FUNCTIONS SHARED WITH CONFIGURE
19054
19055_LT_EOF
19056
19057  case $host_os in
19058  aix3*)
19059    cat <<\_LT_EOF >> "$cfgfile"
19060# AIX sometimes has problems with the GCC collect2 program.  For some
19061# reason, if we set the COLLECT_NAMES environment variable, the problems
19062# vanish in a puff of smoke.
19063if test set != "${COLLECT_NAMES+set}"; then
19064  COLLECT_NAMES=
19065  export COLLECT_NAMES
19066fi
19067_LT_EOF
19068    ;;
19069  esac
19070
19071
19072ltmain=$ac_aux_dir/ltmain.sh
19073
19074
19075  # We use sed instead of cat because bash on DJGPP gets confused if
19076  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19077  # text mode, it properly converts lines to CR/LF.  This bash problem
19078  # is reportedly fixed, but why not run on old versions too?
19079  sed '$q' "$ltmain" >> "$cfgfile" \
19080     || (rm -f "$cfgfile"; exit 1)
19081
19082   mv -f "$cfgfile" "$ofile" ||
19083    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19084  chmod +x "$ofile"
19085
19086 ;;
19087
19088  esac
19089done # for ac_tag
19090
19091
19092as_fn_exit 0
19093_ACEOF
19094ac_clean_files=$ac_clean_files_save
19095
19096test $ac_write_fail = 0 ||
19097  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19098
19099
19100# configure is writing to config.log, and then calls config.status.
19101# config.status does its own redirection, appending to config.log.
19102# Unfortunately, on DOS this fails, as config.log is still kept open
19103# by configure, so config.status won't be able to write to it; its
19104# output is simply discarded.  So we exec the FD to /dev/null,
19105# effectively closing config.log, so it can be properly (re)opened and
19106# appended to by config.status.  When coming back to configure, we
19107# need to make the FD available again.
19108if test "$no_create" != yes; then
19109  ac_cs_success=:
19110  ac_config_status_args=
19111  test "$silent" = yes &&
19112    ac_config_status_args="$ac_config_status_args --quiet"
19113  exec 5>/dev/null
19114  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19115  exec 5>>config.log
19116  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19117  # would make configure fail if this is the last instruction.
19118  $ac_cs_success || as_fn_exit 1
19119fi
19120if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19121  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19122$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19123fi
19124
19125