1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# 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
137if test "x$CONFIG_SHELL" = x; then
138  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139  emulate sh
140  NULLCMD=:
141  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142  # is contrary to our usage.  Disable this feature.
143  alias -g '\${1+\"\$@\"}'='\"\$@\"'
144  setopt NO_GLOB_SUBST
145else
146  case \`(set -o) 2>/dev/null\` in #(
147  *posix*) :
148    set -o posix ;; #(
149  *) :
150     ;;
151esac
152fi
153"
154  as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168  exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    PATH=/empty FPATH=/empty; export PATH FPATH
181    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183test \$(( 1 + 1 )) = 2 || exit 1"
184  if (eval "$as_required") 2>/dev/null; then :
185  as_have_required=yes
186else
187  as_have_required=no
188fi
189  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191else
192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193as_found=false
194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195do
196  IFS=$as_save_IFS
197  test -z "$as_dir" && as_dir=.
198  as_found=:
199  case $as_dir in #(
200	 /*)
201	   for as_base in sh bash ksh sh5; do
202	     # Try only shells that exist, to save several forks.
203	     as_shell=$as_dir/$as_base
204	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206  CONFIG_SHELL=$as_shell as_have_required=yes
207		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  break 2
209fi
210fi
211	   done;;
212       esac
213  as_found=false
214done
215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217  CONFIG_SHELL=$SHELL as_have_required=yes
218fi; }
219IFS=$as_save_IFS
220
221
222      if test "x$CONFIG_SHELL" != x; then :
223  # We cannot yet assume a decent shell, so we have to provide a
224	# neutralization value for shells without unset; and this also
225	# works around shells that cannot unset nonexistent variables.
226	# Preserve -v and -x to the replacement shell.
227	BASH_ENV=/dev/null
228	ENV=/dev/null
229	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230	export CONFIG_SHELL
231	case $- in # ((((
232	  *v*x* | *x*v* ) as_opts=-vx ;;
233	  *v* ) as_opts=-v ;;
234	  *x* ) as_opts=-x ;;
235	  * ) as_opts= ;;
236	esac
237	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238fi
239
240    if test x$as_have_required = xno; then :
241  $as_echo "$0: This script requires a shell more modern than all"
242  $as_echo "$0: the shells that I found on your system."
243  if test x${ZSH_VERSION+set} = xset ; then
244    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246  else
247    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248$0: including any error possibly output before this
249$0: message. Then install a modern shell, or manually run
250$0: the script under such a shell if you do have one."
251  fi
252  exit 1
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265# as_fn_unset VAR
266# ---------------
267# Portably unset VAR.
268as_fn_unset ()
269{
270  { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274# as_fn_set_status STATUS
275# -----------------------
276# Set $? to STATUS, without forking.
277as_fn_set_status ()
278{
279  return $1
280} # as_fn_set_status
281
282# as_fn_exit STATUS
283# -----------------
284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285as_fn_exit ()
286{
287  set +e
288  as_fn_set_status $1
289  exit $1
290} # as_fn_exit
291
292# as_fn_mkdir_p
293# -------------
294# Create "$as_dir" as a directory, including parents if necessary.
295as_fn_mkdir_p ()
296{
297
298  case $as_dir in #(
299  -*) as_dir=./$as_dir;;
300  esac
301  test -d "$as_dir" || eval $as_mkdir_p || {
302    as_dirs=
303    while :; do
304      case $as_dir in #(
305      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306      *) as_qdir=$as_dir;;
307      esac
308      as_dirs="'$as_qdir' $as_dirs"
309      as_dir=`$as_dirname -- "$as_dir" ||
310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311	 X"$as_dir" : 'X\(//\)[^/]' \| \
312	 X"$as_dir" : 'X\(//\)$' \| \
313	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314$as_echo X"$as_dir" |
315    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)[^/].*/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)$/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\).*/{
328	    s//\1/
329	    q
330	  }
331	  s/.*/./; q'`
332      test -d "$as_dir" && break
333    done
334    test -z "$as_dirs" || eval "mkdir $as_dirs"
335  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338} # as_fn_mkdir_p
339# as_fn_append VAR VALUE
340# ----------------------
341# Append the text in VALUE to the end of the definition contained in VAR. Take
342# advantage of any shell optimizations that allow amortized linear growth over
343# repeated appends, instead of the typical quadratic growth present in naive
344# implementations.
345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346  eval 'as_fn_append ()
347  {
348    eval $1+=\$2
349  }'
350else
351  as_fn_append ()
352  {
353    eval $1=\$$1\$2
354  }
355fi # as_fn_append
356
357# as_fn_arith ARG...
358# ------------------
359# Perform arithmetic evaluation on the ARGs, and store the result in the
360# global $as_val. Take advantage of shells that can avoid forks. The arguments
361# must be portable across $(()) and expr.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363  eval 'as_fn_arith ()
364  {
365    as_val=$(( $* ))
366  }'
367else
368  as_fn_arith ()
369  {
370    as_val=`expr "$@" || test $? -eq 1`
371  }
372fi # as_fn_arith
373
374
375# as_fn_error STATUS ERROR [LINENO LOG_FD]
376# ----------------------------------------
377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379# script with STATUS, using 1 if that was 0.
380as_fn_error ()
381{
382  as_status=$1; test $as_status -eq 0 && as_status=1
383  if test "$4"; then
384    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386  fi
387  $as_echo "$as_me: error: $2" >&2
388  as_fn_exit $as_status
389} # as_fn_error
390
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392   test "X`expr 00001 : '.*\(...\)'`" = X001; then
393  as_expr=expr
394else
395  as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399  as_basename=basename
400else
401  as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405  as_dirname=dirname
406else
407  as_dirname=false
408fi
409
410as_me=`$as_basename -- "$0" ||
411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412	 X"$0" : 'X\(//\)$' \| \
413	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414$as_echo X/"$0" |
415    sed '/^.*\/\([^/][^/]*\)\/*$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\/\)$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\).*/{
424	    s//\1/
425	    q
426	  }
427	  s/.*/./; q'`
428
429# Avoid depending upon Character Ranges.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437  as_lineno_1=$LINENO as_lineno_1a=$LINENO
438  as_lineno_2=$LINENO as_lineno_2a=$LINENO
439  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442  sed -n '
443    p
444    /[$]LINENO/=
445  ' <$as_myself |
446    sed '
447      s/[$]LINENO.*/&-/
448      t lineno
449      b
450      :lineno
451      N
452      :loop
453      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454      t loop
455      s/-\n.*//
456    ' >$as_me.lineno &&
457  chmod +x "$as_me.lineno" ||
458    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460  # Don't try to exec as it changes $[0], causing all sort of problems
461  # (the dirname of $[0] is not the place where we might find the
462  # original and so on.  Autoconf is especially sensitive to this).
463  . "./$as_me.lineno"
464  # Exit status is that of the last command.
465  exit
466}
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in #(((((
470-n*)
471  case `echo 'xy\c'` in
472  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
473  xy)  ECHO_C='\c';;
474  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475       ECHO_T='	';;
476  esac;;
477*)
478  ECHO_N='-n';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483  rm -f conf$$.dir/conf$$.file
484else
485  rm -f conf$$.dir
486  mkdir conf$$.dir 2>/dev/null
487fi
488if (echo >conf$$.file) 2>/dev/null; then
489  if ln -s conf$$.file conf$$ 2>/dev/null; then
490    as_ln_s='ln -s'
491    # ... but there are two gotchas:
492    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494    # In both cases, we have to default to `cp -p'.
495    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496      as_ln_s='cp -p'
497  elif ln conf$$.file conf$$ 2>/dev/null; then
498    as_ln_s=ln
499  else
500    as_ln_s='cp -p'
501  fi
502else
503  as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509  as_mkdir_p='mkdir -p "$as_dir"'
510else
511  test -d ./-p && rmdir ./-p
512  as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516  as_test_x='test -x'
517else
518  if ls -dL / >/dev/null 2>&1; then
519    as_ls_L_option=L
520  else
521    as_ls_L_option=
522  fi
523  as_test_x='
524    eval sh -c '\''
525      if test -d "$1"; then
526	test -d "$1/.";
527      else
528	case $1 in #(
529	-*)set "./$1";;
530	esac;
531	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532	???[sx]*):;;*)false;;esac;fi
533    '\'' sh
534  '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541# Sed expression to map a string onto a valid variable name.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 6>&1
549
550# Name of the host.
551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552# so uname gets run too.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIBOBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME=
569PACKAGE_TARNAME=
570PACKAGE_VERSION=
571PACKAGE_STRING=
572PACKAGE_BUGREPORT=
573PACKAGE_URL=
574
575ac_unique_file="etc/afpd/main.c"
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590#  include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595#  include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
612ac_header_list=
613ac_subst_vars='am__EXEEXT_FALSE
614am__EXEEXT_TRUE
615LTLIBOBJS
616HAVE_ATFUNCS_FALSE
617HAVE_ATFUNCS_TRUE
618USE_APPLETALK_FALSE
619USE_APPLETALK_TRUE
620USE_BDB_FALSE
621USE_BDB_TRUE
622USE_UNDEF_FALSE
623USE_UNDEF_TRUE
624USE_SYSTEMD_FALSE
625USE_SYSTEMD_TRUE
626USE_DEBIAN_FALSE
627USE_DEBIAN_TRUE
628USE_GENTOO_FALSE
629USE_GENTOO_TRUE
630USE_SOLARIS_FALSE
631USE_SOLARIS_TRUE
632USE_TRU64_FALSE
633USE_TRU64_TRUE
634USE_SHADOWPW_FALSE
635USE_SHADOWPW_TRUE
636USE_SUSE_SYSV_FALSE
637USE_SUSE_SYSV_TRUE
638USE_REDHAT_SYSV_FALSE
639USE_REDHAT_SYSV_TRUE
640USE_NETBSD_FALSE
641USE_NETBSD_TRUE
642DEFAULT_HOOK_FALSE
643DEFAULT_HOOK_TRUE
644USE_PGP_FALSE
645USE_PGP_TRUE
646BUILD_PAM_FALSE
647BUILD_PAM_TRUE
648USE_PAM_FALSE
649USE_PAM_TRUE
650USE_PAM_SO_FALSE
651USE_PAM_SO_TRUE
652USE_KERBEROS_FALSE
653USE_KERBEROS_TRUE
654USE_RANDNUM_FALSE
655USE_RANDNUM_TRUE
656USE_DHX2_FALSE
657USE_DHX2_TRUE
658USE_DHX_FALSE
659USE_DHX_TRUE
660HAVE_LDAP_FALSE
661HAVE_LDAP_TRUE
662HAVE_ACLS_FALSE
663HAVE_ACLS_TRUE
664HAVE_OPENSSL_FALSE
665HAVE_OPENSSL_TRUE
666HAVE_LIBGCRYPT_FALSE
667HAVE_LIBGCRYPT_TRUE
668COMPILE_A2BOOT_FALSE
669COMPILE_A2BOOT_TRUE
670COMPILE_TIMELORD_FALSE
671COMPILE_TIMELORD_TRUE
672SOLARIS_MODULE_FALSE
673SOLARIS_MODULE_TRUE
674OVERWRITE_CONFIG
675WEBMIN_PORT
676WEBMIN_PASS
677WEBMIN_USER
678WEBMIN_VERSION
679WEBMIN_PATH
680ACL_LIBS
681USE_GSSAPI_FALSE
682USE_GSSAPI_TRUE
683GSSAPI_LDFLAGS
684GSSAPI_CFLAGS
685GSSAPI_LIBS
686KRB5_CONFIG
687CRYPT_LIBS
688BDB_PATH
689BDB_BIN
690BDB_LIBS
691BDB_CFLAGS
692SSL_LIBS
693SSL_CFLAGS
694LIBGCRYPT_LIBS
695LIBGCRYPT_CFLAGS
696LIBGCRYPT_CONFIG
697KLDFLAGS
698KCFLAGS
699COMPILE_64BIT_KMODULE
700COMPILE_KERNEL_GCC
701UAMS_PATH
702SPOOLDIR
703USE_SPOOLDIR_FALSE
704USE_SPOOLDIR_TRUE
705CUPS_LIBS
706CUPS_LDFLAGS
707CUPS_CFLAGS
708CUPS_CONFIG
709WRAP_LIBS
710PAM_SESSION
711PAM_PASSWORD
712PAM_ACCOUNT
713PAM_AUTH
714PAM_DIRECTIVE
715PAM_LIBS
716PAM_CFLAGS
717PAMDIR
718ZEROCONF_CFLAGS
719ZEROCONF_LIBS
720AVAHI_TPOLL_LIBS
721AVAHI_TPOLL_CFLAGS
722AVAHI_LIBS
723AVAHI_CFLAGS
724PKG_CONFIG
725SLP_CFLAGS
726SLP_LIBS
727QUOTA_LIBS
728compiled_backends
729DEFAULT_CNID_SCHEME
730USE_TDB_BACKEND_FALSE
731USE_TDB_BACKEND_TRUE
732USE_LAST_BACKEND_FALSE
733USE_LAST_BACKEND_TRUE
734USE_CDB_BACKEND_FALSE
735USE_CDB_BACKEND_TRUE
736BUILD_DBD_DAEMON_FALSE
737BUILD_DBD_DAEMON_TRUE
738ICONV_LIBS
739ICONV_CFLAGS
740SERVERTEXT
741PKGCONFDIR
742AFS_CFLAGS
743AFS_LIBS
744PTHREAD_LIBS
745LIBOBJS
746sys_symbol_underscore
747LIBADD_DL
748LT_DLPREOPEN
749LIBADD_DLD_LINK
750LIBADD_SHL_LOAD
751LIBADD_DLOPEN
752LT_DLLOADERS
753CPP
754OTOOL64
755OTOOL
756LIPO
757NMEDIT
758DSYMUTIL
759MANIFEST_TOOL
760RANLIB
761ac_ct_AR
762AR
763DLLTOOL
764OBJDUMP
765NM
766ac_ct_DUMPBIN
767DUMPBIN
768LD
769FGREP
770EGREP
771SED
772LIBTOOL
773LN_S
774am__fastdepCC_FALSE
775am__fastdepCC_TRUE
776CCDEPMODE
777am__nodep
778AMDEPBACKSLASH
779AMDEP_FALSE
780AMDEP_TRUE
781am__quote
782am__include
783DEPDIR
784OBJEXT
785EXEEXT
786ac_ct_CC
787CPPFLAGS
788LDFLAGS
789CFLAGS
790CC
791MAINT
792MAINTAINER_MODE_FALSE
793MAINTAINER_MODE_TRUE
794am__untar
795am__tar
796AMTAR
797am__leading_dot
798SET_MAKE
799AWK
800mkdir_p
801MKDIR_P
802INSTALL_STRIP_PROGRAM
803STRIP
804install_sh
805MAKEINFO
806AUTOHEADER
807AUTOMAKE
808AUTOCONF
809ACLOCAL
810VERSION
811PACKAGE
812CYGPATH_W
813am__isrc
814INSTALL_DATA
815INSTALL_SCRIPT
816INSTALL_PROGRAM
817target_os
818target_vendor
819target_cpu
820target
821host_os
822host_vendor
823host_cpu
824host
825build_os
826build_vendor
827build_cpu
828build
829NETATALK_VERSION
830target_alias
831host_alias
832build_alias
833LIBS
834ECHO_T
835ECHO_N
836ECHO_C
837DEFS
838mandir
839localedir
840libdir
841psdir
842pdfdir
843dvidir
844htmldir
845infodir
846docdir
847oldincludedir
848includedir
849localstatedir
850sharedstatedir
851sysconfdir
852datadir
853datarootdir
854libexecdir
855sbindir
856bindir
857program_transform_name
858prefix
859exec_prefix
860PACKAGE_URL
861PACKAGE_BUGREPORT
862PACKAGE_STRING
863PACKAGE_VERSION
864PACKAGE_TARNAME
865PACKAGE_NAME
866PATH_SEPARATOR
867SHELL
868PS
869PERL
870GREP'
871ac_subst_files=''
872ac_user_opts='
873enable_option_checking
874enable_maintainer_mode
875enable_dependency_tracking
876enable_shared
877enable_static
878with_pic
879enable_fast_install
880with_gnu_ld
881with_sysroot
882enable_libtool_lock
883enable_admin_group
884enable_afs
885with_pkgconfdir
886with_message_dir
887with_cracklib
888enable_ddp
889enable_debug1
890enable_debug
891enable_debugging
892enable_largefile
893with_libiconv
894enable_dropkludge
895enable_force_uidgid
896with_cnid_dbd_backend
897with_cnid_cdb_backend
898with_cnid_last_backend
899with_cnid_tdb_backend
900with_cnid_default_backend
901enable_quota
902enable_srvloc
903enable_zeroconf
904with_pam
905with_shadow
906enable_shell_check
907enable_tcp_wrappers
908enable_locking
909enable_redhat
910enable_redhat_sysv
911enable_redhat_systemd
912enable_suse
913enable_suse_sysv
914enable_suse_systemd
915enable_gentoo
916enable_netbsd
917enable_debian
918enable_systemd
919enable_timelord
920enable_a2boot
921with_uams_path
922enable_cups
923with_spooldir
924enable_fhs
925enable_sendfile
926with_libgcrypt_dir
927with_ssl_dir
928with_bdb
929enable_pgp_uam
930enable_krb4_uam
931enable_krbV_uam
932with_gssapi
933enable_overwrite
934with_ldap
935with_acls
936with_webmin
937with_webminuser
938with_webminversion
939with_webminpass
940with_webminport
941'
942      ac_precious_vars='build_alias
943host_alias
944target_alias
945CC
946CFLAGS
947LDFLAGS
948LIBS
949CPPFLAGS
950CPP
951PKG_CONFIG
952AVAHI_CFLAGS
953AVAHI_LIBS
954AVAHI_TPOLL_CFLAGS
955AVAHI_TPOLL_LIBS'
956
957
958# Initialize some variables set by options.
959ac_init_help=
960ac_init_version=false
961ac_unrecognized_opts=
962ac_unrecognized_sep=
963# The variables have the same names as the options, with
964# dashes changed to underlines.
965cache_file=/dev/null
966exec_prefix=NONE
967no_create=
968no_recursion=
969prefix=NONE
970program_prefix=NONE
971program_suffix=NONE
972program_transform_name=s,x,x,
973silent=
974site=
975srcdir=
976verbose=
977x_includes=NONE
978x_libraries=NONE
979
980# Installation directory options.
981# These are left unexpanded so users can "make install exec_prefix=/foo"
982# and all the variables that are supposed to be based on exec_prefix
983# by default will actually change.
984# Use braces instead of parens because sh, perl, etc. also accept them.
985# (The list follows the same order as the GNU Coding Standards.)
986bindir='${exec_prefix}/bin'
987sbindir='${exec_prefix}/sbin'
988libexecdir='${exec_prefix}/libexec'
989datarootdir='${prefix}/share'
990datadir='${datarootdir}'
991sysconfdir='${prefix}/etc'
992sharedstatedir='${prefix}/com'
993localstatedir='${prefix}/var'
994includedir='${prefix}/include'
995oldincludedir='/usr/include'
996docdir='${datarootdir}/doc/${PACKAGE}'
997infodir='${datarootdir}/info'
998htmldir='${docdir}'
999dvidir='${docdir}'
1000pdfdir='${docdir}'
1001psdir='${docdir}'
1002libdir='${exec_prefix}/lib'
1003localedir='${datarootdir}/locale'
1004mandir='${datarootdir}/man'
1005
1006ac_prev=
1007ac_dashdash=
1008for ac_option
1009do
1010  # If the previous option needs an argument, assign it.
1011  if test -n "$ac_prev"; then
1012    eval $ac_prev=\$ac_option
1013    ac_prev=
1014    continue
1015  fi
1016
1017  case $ac_option in
1018  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019  *=)   ac_optarg= ;;
1020  *)    ac_optarg=yes ;;
1021  esac
1022
1023  # Accept the important Cygnus configure options, so we can diagnose typos.
1024
1025  case $ac_dashdash$ac_option in
1026  --)
1027    ac_dashdash=yes ;;
1028
1029  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030    ac_prev=bindir ;;
1031  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032    bindir=$ac_optarg ;;
1033
1034  -build | --build | --buil | --bui | --bu)
1035    ac_prev=build_alias ;;
1036  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037    build_alias=$ac_optarg ;;
1038
1039  -cache-file | --cache-file | --cache-fil | --cache-fi \
1040  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041    ac_prev=cache_file ;;
1042  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044    cache_file=$ac_optarg ;;
1045
1046  --config-cache | -C)
1047    cache_file=config.cache ;;
1048
1049  -datadir | --datadir | --datadi | --datad)
1050    ac_prev=datadir ;;
1051  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052    datadir=$ac_optarg ;;
1053
1054  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055  | --dataroo | --dataro | --datar)
1056    ac_prev=datarootdir ;;
1057  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059    datarootdir=$ac_optarg ;;
1060
1061  -disable-* | --disable-*)
1062    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063    # Reject names that are not valid shell variable names.
1064    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065      as_fn_error $? "invalid feature name: $ac_useropt"
1066    ac_useropt_orig=$ac_useropt
1067    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068    case $ac_user_opts in
1069      *"
1070"enable_$ac_useropt"
1071"*) ;;
1072      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1073	 ac_unrecognized_sep=', ';;
1074    esac
1075    eval enable_$ac_useropt=no ;;
1076
1077  -docdir | --docdir | --docdi | --doc | --do)
1078    ac_prev=docdir ;;
1079  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1080    docdir=$ac_optarg ;;
1081
1082  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1083    ac_prev=dvidir ;;
1084  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1085    dvidir=$ac_optarg ;;
1086
1087  -enable-* | --enable-*)
1088    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089    # Reject names that are not valid shell variable names.
1090    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091      as_fn_error $? "invalid feature name: $ac_useropt"
1092    ac_useropt_orig=$ac_useropt
1093    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094    case $ac_user_opts in
1095      *"
1096"enable_$ac_useropt"
1097"*) ;;
1098      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1099	 ac_unrecognized_sep=', ';;
1100    esac
1101    eval enable_$ac_useropt=\$ac_optarg ;;
1102
1103  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1104  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1105  | --exec | --exe | --ex)
1106    ac_prev=exec_prefix ;;
1107  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1108  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1109  | --exec=* | --exe=* | --ex=*)
1110    exec_prefix=$ac_optarg ;;
1111
1112  -gas | --gas | --ga | --g)
1113    # Obsolete; use --with-gas.
1114    with_gas=yes ;;
1115
1116  -help | --help | --hel | --he | -h)
1117    ac_init_help=long ;;
1118  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1119    ac_init_help=recursive ;;
1120  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1121    ac_init_help=short ;;
1122
1123  -host | --host | --hos | --ho)
1124    ac_prev=host_alias ;;
1125  -host=* | --host=* | --hos=* | --ho=*)
1126    host_alias=$ac_optarg ;;
1127
1128  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1129    ac_prev=htmldir ;;
1130  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1131  | --ht=*)
1132    htmldir=$ac_optarg ;;
1133
1134  -includedir | --includedir | --includedi | --included | --include \
1135  | --includ | --inclu | --incl | --inc)
1136    ac_prev=includedir ;;
1137  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1138  | --includ=* | --inclu=* | --incl=* | --inc=*)
1139    includedir=$ac_optarg ;;
1140
1141  -infodir | --infodir | --infodi | --infod | --info | --inf)
1142    ac_prev=infodir ;;
1143  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1144    infodir=$ac_optarg ;;
1145
1146  -libdir | --libdir | --libdi | --libd)
1147    ac_prev=libdir ;;
1148  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1149    libdir=$ac_optarg ;;
1150
1151  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1152  | --libexe | --libex | --libe)
1153    ac_prev=libexecdir ;;
1154  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1155  | --libexe=* | --libex=* | --libe=*)
1156    libexecdir=$ac_optarg ;;
1157
1158  -localedir | --localedir | --localedi | --localed | --locale)
1159    ac_prev=localedir ;;
1160  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1161    localedir=$ac_optarg ;;
1162
1163  -localstatedir | --localstatedir | --localstatedi | --localstated \
1164  | --localstate | --localstat | --localsta | --localst | --locals)
1165    ac_prev=localstatedir ;;
1166  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1167  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1168    localstatedir=$ac_optarg ;;
1169
1170  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1171    ac_prev=mandir ;;
1172  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1173    mandir=$ac_optarg ;;
1174
1175  -nfp | --nfp | --nf)
1176    # Obsolete; use --without-fp.
1177    with_fp=no ;;
1178
1179  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1180  | --no-cr | --no-c | -n)
1181    no_create=yes ;;
1182
1183  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185    no_recursion=yes ;;
1186
1187  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1188  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1189  | --oldin | --oldi | --old | --ol | --o)
1190    ac_prev=oldincludedir ;;
1191  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1192  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1193  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1194    oldincludedir=$ac_optarg ;;
1195
1196  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1197    ac_prev=prefix ;;
1198  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1199    prefix=$ac_optarg ;;
1200
1201  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1202  | --program-pre | --program-pr | --program-p)
1203    ac_prev=program_prefix ;;
1204  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1205  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1206    program_prefix=$ac_optarg ;;
1207
1208  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1209  | --program-suf | --program-su | --program-s)
1210    ac_prev=program_suffix ;;
1211  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1212  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1213    program_suffix=$ac_optarg ;;
1214
1215  -program-transform-name | --program-transform-name \
1216  | --program-transform-nam | --program-transform-na \
1217  | --program-transform-n | --program-transform- \
1218  | --program-transform | --program-transfor \
1219  | --program-transfo | --program-transf \
1220  | --program-trans | --program-tran \
1221  | --progr-tra | --program-tr | --program-t)
1222    ac_prev=program_transform_name ;;
1223  -program-transform-name=* | --program-transform-name=* \
1224  | --program-transform-nam=* | --program-transform-na=* \
1225  | --program-transform-n=* | --program-transform-=* \
1226  | --program-transform=* | --program-transfor=* \
1227  | --program-transfo=* | --program-transf=* \
1228  | --program-trans=* | --program-tran=* \
1229  | --progr-tra=* | --program-tr=* | --program-t=*)
1230    program_transform_name=$ac_optarg ;;
1231
1232  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1233    ac_prev=pdfdir ;;
1234  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1235    pdfdir=$ac_optarg ;;
1236
1237  -psdir | --psdir | --psdi | --psd | --ps)
1238    ac_prev=psdir ;;
1239  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240    psdir=$ac_optarg ;;
1241
1242  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243  | -silent | --silent | --silen | --sile | --sil)
1244    silent=yes ;;
1245
1246  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247    ac_prev=sbindir ;;
1248  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249  | --sbi=* | --sb=*)
1250    sbindir=$ac_optarg ;;
1251
1252  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254  | --sharedst | --shareds | --shared | --share | --shar \
1255  | --sha | --sh)
1256    ac_prev=sharedstatedir ;;
1257  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260  | --sha=* | --sh=*)
1261    sharedstatedir=$ac_optarg ;;
1262
1263  -site | --site | --sit)
1264    ac_prev=site ;;
1265  -site=* | --site=* | --sit=*)
1266    site=$ac_optarg ;;
1267
1268  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269    ac_prev=srcdir ;;
1270  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271    srcdir=$ac_optarg ;;
1272
1273  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274  | --syscon | --sysco | --sysc | --sys | --sy)
1275    ac_prev=sysconfdir ;;
1276  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278    sysconfdir=$ac_optarg ;;
1279
1280  -target | --target | --targe | --targ | --tar | --ta | --t)
1281    ac_prev=target_alias ;;
1282  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283    target_alias=$ac_optarg ;;
1284
1285  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286    verbose=yes ;;
1287
1288  -version | --version | --versio | --versi | --vers | -V)
1289    ac_init_version=: ;;
1290
1291  -with-* | --with-*)
1292    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293    # Reject names that are not valid shell variable names.
1294    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295      as_fn_error $? "invalid package name: $ac_useropt"
1296    ac_useropt_orig=$ac_useropt
1297    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298    case $ac_user_opts in
1299      *"
1300"with_$ac_useropt"
1301"*) ;;
1302      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303	 ac_unrecognized_sep=', ';;
1304    esac
1305    eval with_$ac_useropt=\$ac_optarg ;;
1306
1307  -without-* | --without-*)
1308    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309    # Reject names that are not valid shell variable names.
1310    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311      as_fn_error $? "invalid package name: $ac_useropt"
1312    ac_useropt_orig=$ac_useropt
1313    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314    case $ac_user_opts in
1315      *"
1316"with_$ac_useropt"
1317"*) ;;
1318      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319	 ac_unrecognized_sep=', ';;
1320    esac
1321    eval with_$ac_useropt=no ;;
1322
1323  --x)
1324    # Obsolete; use --with-x.
1325    with_x=yes ;;
1326
1327  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1328  | --x-incl | --x-inc | --x-in | --x-i)
1329    ac_prev=x_includes ;;
1330  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1331  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1332    x_includes=$ac_optarg ;;
1333
1334  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1335  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1336    ac_prev=x_libraries ;;
1337  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1338  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1339    x_libraries=$ac_optarg ;;
1340
1341  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1342Try \`$0 --help' for more information"
1343    ;;
1344
1345  *=*)
1346    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1347    # Reject names that are not valid shell variable names.
1348    case $ac_envvar in #(
1349      '' | [0-9]* | *[!_$as_cr_alnum]* )
1350      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1351    esac
1352    eval $ac_envvar=\$ac_optarg
1353    export $ac_envvar ;;
1354
1355  *)
1356    # FIXME: should be removed in autoconf 3.0.
1357    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1359      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1361    ;;
1362
1363  esac
1364done
1365
1366if test -n "$ac_prev"; then
1367  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1368  as_fn_error $? "missing argument to $ac_option"
1369fi
1370
1371if test -n "$ac_unrecognized_opts"; then
1372  case $enable_option_checking in
1373    no) ;;
1374    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1375    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1376  esac
1377fi
1378
1379# Check all directory arguments for consistency.
1380for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381		datadir sysconfdir sharedstatedir localstatedir includedir \
1382		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383		libdir localedir mandir
1384do
1385  eval ac_val=\$$ac_var
1386  # Remove trailing slashes.
1387  case $ac_val in
1388    */ )
1389      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390      eval $ac_var=\$ac_val;;
1391  esac
1392  # Be sure to have absolute directory names.
1393  case $ac_val in
1394    [\\/$]* | ?:[\\/]* )  continue;;
1395    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1396  esac
1397  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1398done
1399
1400# There might be people who depend on the old broken behavior: `$host'
1401# used to hold the argument of --host etc.
1402# FIXME: To remove some day.
1403build=$build_alias
1404host=$host_alias
1405target=$target_alias
1406
1407# FIXME: To remove some day.
1408if test "x$host_alias" != x; then
1409  if test "x$build_alias" = x; then
1410    cross_compiling=maybe
1411    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1412    If a cross compiler is detected then cross compile mode will be used" >&2
1413  elif test "x$build_alias" != "x$host_alias"; then
1414    cross_compiling=yes
1415  fi
1416fi
1417
1418ac_tool_prefix=
1419test -n "$host_alias" && ac_tool_prefix=$host_alias-
1420
1421test "$silent" = yes && exec 6>/dev/null
1422
1423
1424ac_pwd=`pwd` && test -n "$ac_pwd" &&
1425ac_ls_di=`ls -di .` &&
1426ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1427  as_fn_error $? "working directory cannot be determined"
1428test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1429  as_fn_error $? "pwd does not report name of working directory"
1430
1431
1432# Find the source files, if location was not specified.
1433if test -z "$srcdir"; then
1434  ac_srcdir_defaulted=yes
1435  # Try the directory containing this script, then the parent directory.
1436  ac_confdir=`$as_dirname -- "$as_myself" ||
1437$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1438	 X"$as_myself" : 'X\(//\)[^/]' \| \
1439	 X"$as_myself" : 'X\(//\)$' \| \
1440	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1441$as_echo X"$as_myself" |
1442    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1443	    s//\1/
1444	    q
1445	  }
1446	  /^X\(\/\/\)[^/].*/{
1447	    s//\1/
1448	    q
1449	  }
1450	  /^X\(\/\/\)$/{
1451	    s//\1/
1452	    q
1453	  }
1454	  /^X\(\/\).*/{
1455	    s//\1/
1456	    q
1457	  }
1458	  s/.*/./; q'`
1459  srcdir=$ac_confdir
1460  if test ! -r "$srcdir/$ac_unique_file"; then
1461    srcdir=..
1462  fi
1463else
1464  ac_srcdir_defaulted=no
1465fi
1466if test ! -r "$srcdir/$ac_unique_file"; then
1467  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1468  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1469fi
1470ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1471ac_abs_confdir=`(
1472	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1473	pwd)`
1474# When building in place, set srcdir=.
1475if test "$ac_abs_confdir" = "$ac_pwd"; then
1476  srcdir=.
1477fi
1478# Remove unnecessary trailing slashes from srcdir.
1479# Double slashes in file names in object file debugging info
1480# mess up M-x gdb in Emacs.
1481case $srcdir in
1482*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1483esac
1484for ac_var in $ac_precious_vars; do
1485  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1486  eval ac_env_${ac_var}_value=\$${ac_var}
1487  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1488  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1489done
1490
1491#
1492# Report the --help message.
1493#
1494if test "$ac_init_help" = "long"; then
1495  # Omit some internal or obsolete options to make the list less imposing.
1496  # This message is too long to be a string in the A/UX 3.1 sh.
1497  cat <<_ACEOF
1498\`configure' configures this package to adapt to many kinds of systems.
1499
1500Usage: $0 [OPTION]... [VAR=VALUE]...
1501
1502To assign environment variables (e.g., CC, CFLAGS...), specify them as
1503VAR=VALUE.  See below for descriptions of some of the useful variables.
1504
1505Defaults for the options are specified in brackets.
1506
1507Configuration:
1508  -h, --help              display this help and exit
1509      --help=short        display options specific to this package
1510      --help=recursive    display the short help of all the included packages
1511  -V, --version           display version information and exit
1512  -q, --quiet, --silent   do not print \`checking ...' messages
1513      --cache-file=FILE   cache test results in FILE [disabled]
1514  -C, --config-cache      alias for \`--cache-file=config.cache'
1515  -n, --no-create         do not create output files
1516      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1517
1518Installation directories:
1519  --prefix=PREFIX         install architecture-independent files in PREFIX
1520                          [$ac_default_prefix]
1521  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1522                          [PREFIX]
1523
1524By default, \`make install' will install all the files in
1525\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1526an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1527for instance \`--prefix=\$HOME'.
1528
1529For better control, use the options below.
1530
1531Fine tuning of the installation directories:
1532  --bindir=DIR            user executables [EPREFIX/bin]
1533  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1534  --libexecdir=DIR        program executables [EPREFIX/libexec]
1535  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1536  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1537  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1538  --libdir=DIR            object code libraries [EPREFIX/lib]
1539  --includedir=DIR        C header files [PREFIX/include]
1540  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1541  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1542  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1543  --infodir=DIR           info documentation [DATAROOTDIR/info]
1544  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1545  --mandir=DIR            man documentation [DATAROOTDIR/man]
1546  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1547  --htmldir=DIR           html documentation [DOCDIR]
1548  --dvidir=DIR            dvi documentation [DOCDIR]
1549  --pdfdir=DIR            pdf documentation [DOCDIR]
1550  --psdir=DIR             ps documentation [DOCDIR]
1551_ACEOF
1552
1553  cat <<\_ACEOF
1554
1555Program names:
1556  --program-prefix=PREFIX            prepend PREFIX to installed program names
1557  --program-suffix=SUFFIX            append SUFFIX to installed program names
1558  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1559
1560System types:
1561  --build=BUILD     configure for building on BUILD [guessed]
1562  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1563  --target=TARGET   configure for building compilers for TARGET [HOST]
1564_ACEOF
1565fi
1566
1567if test -n "$ac_init_help"; then
1568
1569  cat <<\_ACEOF
1570
1571Optional Features:
1572  --disable-option-checking  ignore unrecognized --enable/--with options
1573  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1574  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1575  --disable-maintainer-mode  disable make rules and dependencies not useful
1576			  (and sometimes confusing) to the casual installer
1577  --disable-dependency-tracking  speeds up one-time build
1578  --enable-dependency-tracking   do not reject slow dependency extractors
1579  --enable-shared[=PKGS]  build shared libraries [default=yes]
1580  --enable-static[=PKGS]  build static libraries [default=yes]
1581  --enable-fast-install[=PKGS]
1582                          optimize for fast installation [default=yes]
1583  --disable-libtool-lock  avoid locking (might break parallel builds)
1584  --disable-admin-group   disable admin group
1585  --enable-afs            enable AFS support
1586  --enable-ddp            enable DDP (AppleTalk)
1587  --enable-debug1         enable debug code
1588  --enable-debug          enable verbose debug code
1589  --enable-debugging      disable SIGALRM timers and DSI tickles (eg for debugging with gdb/dbx/...)
1590  --disable-largefile     omit support for large files
1591  --enable-dropkludge     enable the experimental dropbox fix (INSECURE!)
1592  --enable-force-uidgid   allow forcing of uid/gid per volume (BROKEN)
1593  --enable-quota           Turn on quota support (default=auto)
1594  --enable-srvloc[=DIR]   enable Server Location Protocol (SLP) support
1595  --enable-zeroconf[=DIR]   enable Zeroconf support [auto]
1596  --disable-shell-check   disable checking for a valid shell
1597  --disable-tcp-wrappers  disable TCP wrappers support
1598  --disable-locking       disable system locking
1599  --enable-redhat         obsoleted
1600  --enable-redhat-sysv    use redhat-style sysv (upstart) configuration
1601  --enable-redhat-systemd use redhat-style systemd (>=Fedora15) configuration
1602  --enable-suse           obsoleted
1603  --enable-suse-sysv      use suse-style sysv configuration
1604  --enable-suse-systemd   use suse-style systemd (>=openSUSE12.1) configuration
1605  --enable-gentoo         use gentoo-style sysv configuration
1606  --enable-netbsd         use NetBSD-style rc.d configuration
1607  --enable-debian         use debian-style sysv configuration
1608  --enable-systemd        use general systemd configuration
1609  --enable-timelord       enable compilation of timelord server
1610  --enable-a2boot         enable compilation of Apple2 boot server
1611  --enable-cups           Turn on CUPS support (default=auto)
1612  --enable-fhs            use Filesystem Hierarchy Standard (FHS) compatibility
1613  --disable-sendfile       disable sendfile syscall
1614  --enable-pgp-uam        enable build of PGP UAM module
1615  --enable-krb4-uam       enable build of Kerberos v4 UAM module
1616  --enable-krbV-uam       enable build of Kerberos V UAM module
1617  --enable-overwrite      overwrite configuration files during installation
1618
1619Optional Packages:
1620  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1621  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1622  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1623                          both]
1624  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1625  --with-sysroot=DIR Search for dependent libraries within DIR
1626                        (or the compiler's sysroot if not specified).
1627  --with-pkgconfdir=DIR   package specific configuration in DIR
1628                          [SYSCONF/netatalk]
1629  --with-message-dir=PATH path to server message files [PKGCONF/msg]
1630  --with-cracklib=DICT    enable/set location of cracklib dictionary
1631  --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include [default=auto]
1632  --with-cnid-dbd-backend       build CNID with Database Daemon Data Store [yes]
1633  --with-cnid-cdb-backend	build CNID with Concurrent BDB Data Store  [no]
1634  --with-cnid-last-backend	build LAST CNID scheme                     [yes]
1635  --with-cnid-tdb-backend	build TDB CNID scheme                      [yes]
1636  --with-cnid-default-backend=val	set default DID scheme [dbd]
1637  --with-pam[=PATH]       specify path to PAM installation [auto]
1638  --with-shadow           enable shadow password support [auto]
1639  --with-uams-path=PATH   path to UAMs [PKGCONF/uams]
1640  --with-spooldir=PATH     path for spooldir used for CUPS support (LOCALSTATEDIR/spool/netatalk)
1641  --with-libgcrypt-dir=PATH
1642                          path where LIBGCRYPT is installed (optional). Must
1643                          contain lib and include dirs.
1644  --with-ssl-dir=PATH     specify path to OpenSSL installation (must contain
1645                          lib and include dirs)
1646  --with-bdb=PATH         specify path to Berkeley DB installation[auto]
1647  --with-gssapi[=PATH]    path to GSSAPI for Kerberos V UAM [auto]
1648  --with-ldap             LDAP support (default=auto)
1649  --with-acls             Include ACL support (default=auto)
1650  --with-webmin=PATH      path where webmin is installed [$PKGCONFDIR/webmin]
1651  --with-webminuser=NAME      name for the webmin admin user
1652  --with-webminversion=VERSION   Webmin version to fetch from sf.net [1.490]
1653  --with-webminpass=PASSWORD  password for the webmin admin user
1654  --with-webminport=PORT  TCP port for webmin
1655
1656Some influential environment variables:
1657  CC          C compiler command
1658  CFLAGS      C compiler flags
1659  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1660              nonstandard directory <lib dir>
1661  LIBS        libraries to pass to the linker, e.g. -l<library>
1662  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1663              you have headers in a nonstandard directory <include dir>
1664  CPP         C preprocessor
1665  PKG_CONFIG  path to pkg-config utility
1666  AVAHI_CFLAGS
1667              C compiler flags for AVAHI, overriding pkg-config
1668  AVAHI_LIBS  linker flags for AVAHI, overriding pkg-config
1669  AVAHI_TPOLL_CFLAGS
1670              C compiler flags for AVAHI_TPOLL, overriding pkg-config
1671  AVAHI_TPOLL_LIBS
1672              linker flags for AVAHI_TPOLL, overriding pkg-config
1673
1674Use these variables to override the choices made by `configure' or to help
1675it to find libraries and programs with nonstandard names/locations.
1676
1677Report bugs to the package provider.
1678_ACEOF
1679ac_status=$?
1680fi
1681
1682if test "$ac_init_help" = "recursive"; then
1683  # If there are subdirs, report their specific --help.
1684  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1685    test -d "$ac_dir" ||
1686      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1687      continue
1688    ac_builddir=.
1689
1690case "$ac_dir" in
1691.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1692*)
1693  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1694  # A ".." for each directory in $ac_dir_suffix.
1695  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1696  case $ac_top_builddir_sub in
1697  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1699  esac ;;
1700esac
1701ac_abs_top_builddir=$ac_pwd
1702ac_abs_builddir=$ac_pwd$ac_dir_suffix
1703# for backward compatibility:
1704ac_top_builddir=$ac_top_build_prefix
1705
1706case $srcdir in
1707  .)  # We are building in place.
1708    ac_srcdir=.
1709    ac_top_srcdir=$ac_top_builddir_sub
1710    ac_abs_top_srcdir=$ac_pwd ;;
1711  [\\/]* | ?:[\\/]* )  # Absolute name.
1712    ac_srcdir=$srcdir$ac_dir_suffix;
1713    ac_top_srcdir=$srcdir
1714    ac_abs_top_srcdir=$srcdir ;;
1715  *) # Relative name.
1716    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1717    ac_top_srcdir=$ac_top_build_prefix$srcdir
1718    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1719esac
1720ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1721
1722    cd "$ac_dir" || { ac_status=$?; continue; }
1723    # Check for guested configure.
1724    if test -f "$ac_srcdir/configure.gnu"; then
1725      echo &&
1726      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1727    elif test -f "$ac_srcdir/configure"; then
1728      echo &&
1729      $SHELL "$ac_srcdir/configure" --help=recursive
1730    else
1731      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1732    fi || ac_status=$?
1733    cd "$ac_pwd" || { ac_status=$?; break; }
1734  done
1735fi
1736
1737test -n "$ac_init_help" && exit $ac_status
1738if $ac_init_version; then
1739  cat <<\_ACEOF
1740configure
1741generated by GNU Autoconf 2.68
1742
1743Copyright (C) 2010 Free Software Foundation, Inc.
1744This configure script is free software; the Free Software Foundation
1745gives unlimited permission to copy, distribute and modify it.
1746_ACEOF
1747  exit
1748fi
1749
1750## ------------------------ ##
1751## Autoconf initialization. ##
1752## ------------------------ ##
1753
1754# ac_fn_c_try_compile LINENO
1755# --------------------------
1756# Try to compile conftest.$ac_ext, and return whether this succeeded.
1757ac_fn_c_try_compile ()
1758{
1759  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760  rm -f conftest.$ac_objext
1761  if { { ac_try="$ac_compile"
1762case "(($ac_try" in
1763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764  *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768  (eval "$ac_compile") 2>conftest.err
1769  ac_status=$?
1770  if test -s conftest.err; then
1771    grep -v '^ *+' conftest.err >conftest.er1
1772    cat conftest.er1 >&5
1773    mv -f conftest.er1 conftest.err
1774  fi
1775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776  test $ac_status = 0; } && {
1777	 test -z "$ac_c_werror_flag" ||
1778	 test ! -s conftest.err
1779       } && test -s conftest.$ac_objext; then :
1780  ac_retval=0
1781else
1782  $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785	ac_retval=1
1786fi
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788  as_fn_set_status $ac_retval
1789
1790} # ac_fn_c_try_compile
1791
1792# ac_fn_c_try_link LINENO
1793# -----------------------
1794# Try to link conftest.$ac_ext, and return whether this succeeded.
1795ac_fn_c_try_link ()
1796{
1797  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798  rm -f conftest.$ac_objext conftest$ac_exeext
1799  if { { ac_try="$ac_link"
1800case "(($ac_try" in
1801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802  *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806  (eval "$ac_link") 2>conftest.err
1807  ac_status=$?
1808  if test -s conftest.err; then
1809    grep -v '^ *+' conftest.err >conftest.er1
1810    cat conftest.er1 >&5
1811    mv -f conftest.er1 conftest.err
1812  fi
1813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814  test $ac_status = 0; } && {
1815	 test -z "$ac_c_werror_flag" ||
1816	 test ! -s conftest.err
1817       } && test -s conftest$ac_exeext && {
1818	 test "$cross_compiling" = yes ||
1819	 $as_test_x conftest$ac_exeext
1820       }; then :
1821  ac_retval=0
1822else
1823  $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826	ac_retval=1
1827fi
1828  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830  # interfere with the next link command; also delete a directory that is
1831  # left behind by Apple's compiler.  We do this before executing the actions.
1832  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834  as_fn_set_status $ac_retval
1835
1836} # ac_fn_c_try_link
1837
1838# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1839# -------------------------------------------------------
1840# Tests whether HEADER exists and can be compiled using the include files in
1841# INCLUDES, setting the cache variable VAR accordingly.
1842ac_fn_c_check_header_compile ()
1843{
1844  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846$as_echo_n "checking for $2... " >&6; }
1847if eval \${$3+:} false; then :
1848  $as_echo_n "(cached) " >&6
1849else
1850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851/* end confdefs.h.  */
1852$4
1853#include <$2>
1854_ACEOF
1855if ac_fn_c_try_compile "$LINENO"; then :
1856  eval "$3=yes"
1857else
1858  eval "$3=no"
1859fi
1860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861fi
1862eval ac_res=\$$3
1863	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864$as_echo "$ac_res" >&6; }
1865  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867} # ac_fn_c_check_header_compile
1868
1869# ac_fn_c_try_cpp LINENO
1870# ----------------------
1871# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1872ac_fn_c_try_cpp ()
1873{
1874  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875  if { { ac_try="$ac_cpp conftest.$ac_ext"
1876case "(($ac_try" in
1877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878  *) ac_try_echo=$ac_try;;
1879esac
1880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881$as_echo "$ac_try_echo"; } >&5
1882  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1883  ac_status=$?
1884  if test -s conftest.err; then
1885    grep -v '^ *+' conftest.err >conftest.er1
1886    cat conftest.er1 >&5
1887    mv -f conftest.er1 conftest.err
1888  fi
1889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890  test $ac_status = 0; } > conftest.i && {
1891	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892	 test ! -s conftest.err
1893       }; then :
1894  ac_retval=0
1895else
1896  $as_echo "$as_me: failed program was:" >&5
1897sed 's/^/| /' conftest.$ac_ext >&5
1898
1899    ac_retval=1
1900fi
1901  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902  as_fn_set_status $ac_retval
1903
1904} # ac_fn_c_try_cpp
1905
1906# ac_fn_c_try_run LINENO
1907# ----------------------
1908# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1909# that executables *can* be run.
1910ac_fn_c_try_run ()
1911{
1912  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913  if { { ac_try="$ac_link"
1914case "(($ac_try" in
1915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916  *) ac_try_echo=$ac_try;;
1917esac
1918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919$as_echo "$ac_try_echo"; } >&5
1920  (eval "$ac_link") 2>&5
1921  ac_status=$?
1922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1924  { { case "(($ac_try" in
1925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926  *) ac_try_echo=$ac_try;;
1927esac
1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929$as_echo "$ac_try_echo"; } >&5
1930  (eval "$ac_try") 2>&5
1931  ac_status=$?
1932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933  test $ac_status = 0; }; }; then :
1934  ac_retval=0
1935else
1936  $as_echo "$as_me: program exited with status $ac_status" >&5
1937       $as_echo "$as_me: failed program was:" >&5
1938sed 's/^/| /' conftest.$ac_ext >&5
1939
1940       ac_retval=$ac_status
1941fi
1942  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1943  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944  as_fn_set_status $ac_retval
1945
1946} # ac_fn_c_try_run
1947
1948# ac_fn_c_check_func LINENO FUNC VAR
1949# ----------------------------------
1950# Tests whether FUNC exists, setting the cache variable VAR accordingly
1951ac_fn_c_check_func ()
1952{
1953  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955$as_echo_n "checking for $2... " >&6; }
1956if eval \${$3+:} false; then :
1957  $as_echo_n "(cached) " >&6
1958else
1959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h.  */
1961/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1962   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1963#define $2 innocuous_$2
1964
1965/* System header to define __stub macros and hopefully few prototypes,
1966    which can conflict with char $2 (); below.
1967    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1968    <limits.h> exists even on freestanding compilers.  */
1969
1970#ifdef __STDC__
1971# include <limits.h>
1972#else
1973# include <assert.h>
1974#endif
1975
1976#undef $2
1977
1978/* Override any GCC internal prototype to avoid an error.
1979   Use char because int might match the return type of a GCC
1980   builtin and then its argument prototype would still apply.  */
1981#ifdef __cplusplus
1982extern "C"
1983#endif
1984char $2 ();
1985/* The GNU C library defines this for functions which it implements
1986    to always fail with ENOSYS.  Some functions are actually named
1987    something starting with __ and the normal name is an alias.  */
1988#if defined __stub_$2 || defined __stub___$2
1989choke me
1990#endif
1991
1992int
1993main ()
1994{
1995return $2 ();
1996  ;
1997  return 0;
1998}
1999_ACEOF
2000if ac_fn_c_try_link "$LINENO"; then :
2001  eval "$3=yes"
2002else
2003  eval "$3=no"
2004fi
2005rm -f core conftest.err conftest.$ac_objext \
2006    conftest$ac_exeext conftest.$ac_ext
2007fi
2008eval ac_res=\$$3
2009	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010$as_echo "$ac_res" >&6; }
2011  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012
2013} # ac_fn_c_check_func
2014
2015# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2016# -------------------------------------------------------
2017# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2018# the include files in INCLUDES and setting the cache variable VAR
2019# accordingly.
2020ac_fn_c_check_header_mongrel ()
2021{
2022  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023  if eval \${$3+:} false; then :
2024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025$as_echo_n "checking for $2... " >&6; }
2026if eval \${$3+:} false; then :
2027  $as_echo_n "(cached) " >&6
2028fi
2029eval ac_res=\$$3
2030	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2031$as_echo "$ac_res" >&6; }
2032else
2033  # Is the header compilable?
2034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2035$as_echo_n "checking $2 usability... " >&6; }
2036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037/* end confdefs.h.  */
2038$4
2039#include <$2>
2040_ACEOF
2041if ac_fn_c_try_compile "$LINENO"; then :
2042  ac_header_compiler=yes
2043else
2044  ac_header_compiler=no
2045fi
2046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2048$as_echo "$ac_header_compiler" >&6; }
2049
2050# Is the header present?
2051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2052$as_echo_n "checking $2 presence... " >&6; }
2053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054/* end confdefs.h.  */
2055#include <$2>
2056_ACEOF
2057if ac_fn_c_try_cpp "$LINENO"; then :
2058  ac_header_preproc=yes
2059else
2060  ac_header_preproc=no
2061fi
2062rm -f conftest.err conftest.i conftest.$ac_ext
2063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2064$as_echo "$ac_header_preproc" >&6; }
2065
2066# So?  What about this header?
2067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2068  yes:no: )
2069    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2070$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2071    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2072$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2073    ;;
2074  no:yes:* )
2075    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2076$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2077    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2078$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2079    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2080$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2081    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2082$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2083    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2084$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2085    ;;
2086esac
2087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2088$as_echo_n "checking for $2... " >&6; }
2089if eval \${$3+:} false; then :
2090  $as_echo_n "(cached) " >&6
2091else
2092  eval "$3=\$ac_header_compiler"
2093fi
2094eval ac_res=\$$3
2095	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096$as_echo "$ac_res" >&6; }
2097fi
2098  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099
2100} # ac_fn_c_check_header_mongrel
2101
2102# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2103# -------------------------------------------
2104# Tests whether TYPE exists after having included INCLUDES, setting cache
2105# variable VAR accordingly.
2106ac_fn_c_check_type ()
2107{
2108  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2110$as_echo_n "checking for $2... " >&6; }
2111if eval \${$3+:} false; then :
2112  $as_echo_n "(cached) " >&6
2113else
2114  eval "$3=no"
2115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116/* end confdefs.h.  */
2117$4
2118int
2119main ()
2120{
2121if (sizeof ($2))
2122	 return 0;
2123  ;
2124  return 0;
2125}
2126_ACEOF
2127if ac_fn_c_try_compile "$LINENO"; then :
2128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h.  */
2130$4
2131int
2132main ()
2133{
2134if (sizeof (($2)))
2135	    return 0;
2136  ;
2137  return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141
2142else
2143  eval "$3=yes"
2144fi
2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146fi
2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148fi
2149eval ac_res=\$$3
2150	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151$as_echo "$ac_res" >&6; }
2152  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2153
2154} # ac_fn_c_check_type
2155
2156# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2157# ----------------------------------------------------
2158# Tries to find if the field MEMBER exists in type AGGR, after including
2159# INCLUDES, setting cache variable VAR accordingly.
2160ac_fn_c_check_member ()
2161{
2162  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2164$as_echo_n "checking for $2.$3... " >&6; }
2165if eval \${$4+:} false; then :
2166  $as_echo_n "(cached) " >&6
2167else
2168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h.  */
2170$5
2171int
2172main ()
2173{
2174static $2 ac_aggr;
2175if (ac_aggr.$3)
2176return 0;
2177  ;
2178  return 0;
2179}
2180_ACEOF
2181if ac_fn_c_try_compile "$LINENO"; then :
2182  eval "$4=yes"
2183else
2184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185/* end confdefs.h.  */
2186$5
2187int
2188main ()
2189{
2190static $2 ac_aggr;
2191if (sizeof ac_aggr.$3)
2192return 0;
2193  ;
2194  return 0;
2195}
2196_ACEOF
2197if ac_fn_c_try_compile "$LINENO"; then :
2198  eval "$4=yes"
2199else
2200  eval "$4=no"
2201fi
2202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203fi
2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205fi
2206eval ac_res=\$$4
2207	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208$as_echo "$ac_res" >&6; }
2209  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210
2211} # ac_fn_c_check_member
2212
2213# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2214# ---------------------------------------------
2215# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2216# accordingly.
2217ac_fn_c_check_decl ()
2218{
2219  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220  as_decl_name=`echo $2|sed 's/ *(.*//'`
2221  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2223$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2224if eval \${$3+:} false; then :
2225  $as_echo_n "(cached) " >&6
2226else
2227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228/* end confdefs.h.  */
2229$4
2230int
2231main ()
2232{
2233#ifndef $as_decl_name
2234#ifdef __cplusplus
2235  (void) $as_decl_use;
2236#else
2237  (void) $as_decl_name;
2238#endif
2239#endif
2240
2241  ;
2242  return 0;
2243}
2244_ACEOF
2245if ac_fn_c_try_compile "$LINENO"; then :
2246  eval "$3=yes"
2247else
2248  eval "$3=no"
2249fi
2250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251fi
2252eval ac_res=\$$3
2253	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254$as_echo "$ac_res" >&6; }
2255  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256
2257} # ac_fn_c_check_decl
2258cat >config.log <<_ACEOF
2259This file contains any messages produced by compilers while
2260running configure, to aid debugging if configure makes a mistake.
2261
2262It was created by $as_me, which was
2263generated by GNU Autoconf 2.68.  Invocation command line was
2264
2265  $ $0 $@
2266
2267_ACEOF
2268exec 5>>config.log
2269{
2270cat <<_ASUNAME
2271## --------- ##
2272## Platform. ##
2273## --------- ##
2274
2275hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2276uname -m = `(uname -m) 2>/dev/null || echo unknown`
2277uname -r = `(uname -r) 2>/dev/null || echo unknown`
2278uname -s = `(uname -s) 2>/dev/null || echo unknown`
2279uname -v = `(uname -v) 2>/dev/null || echo unknown`
2280
2281/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2282/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2283
2284/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2285/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2286/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2287/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2288/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2289/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2290/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2291
2292_ASUNAME
2293
2294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295for as_dir in $PATH
2296do
2297  IFS=$as_save_IFS
2298  test -z "$as_dir" && as_dir=.
2299    $as_echo "PATH: $as_dir"
2300  done
2301IFS=$as_save_IFS
2302
2303} >&5
2304
2305cat >&5 <<_ACEOF
2306
2307
2308## ----------- ##
2309## Core tests. ##
2310## ----------- ##
2311
2312_ACEOF
2313
2314
2315# Keep a trace of the command line.
2316# Strip out --no-create and --no-recursion so they do not pile up.
2317# Strip out --silent because we don't want to record it for future runs.
2318# Also quote any args containing shell meta-characters.
2319# Make two passes to allow for proper duplicate-argument suppression.
2320ac_configure_args=
2321ac_configure_args0=
2322ac_configure_args1=
2323ac_must_keep_next=false
2324for ac_pass in 1 2
2325do
2326  for ac_arg
2327  do
2328    case $ac_arg in
2329    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2330    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2331    | -silent | --silent | --silen | --sile | --sil)
2332      continue ;;
2333    *\'*)
2334      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2335    esac
2336    case $ac_pass in
2337    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2338    2)
2339      as_fn_append ac_configure_args1 " '$ac_arg'"
2340      if test $ac_must_keep_next = true; then
2341	ac_must_keep_next=false # Got value, back to normal.
2342      else
2343	case $ac_arg in
2344	  *=* | --config-cache | -C | -disable-* | --disable-* \
2345	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2346	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2347	  | -with-* | --with-* | -without-* | --without-* | --x)
2348	    case "$ac_configure_args0 " in
2349	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2350	    esac
2351	    ;;
2352	  -* ) ac_must_keep_next=true ;;
2353	esac
2354      fi
2355      as_fn_append ac_configure_args " '$ac_arg'"
2356      ;;
2357    esac
2358  done
2359done
2360{ ac_configure_args0=; unset ac_configure_args0;}
2361{ ac_configure_args1=; unset ac_configure_args1;}
2362
2363# When interrupted or exit'd, cleanup temporary files, and complete
2364# config.log.  We remove comments because anyway the quotes in there
2365# would cause problems or look ugly.
2366# WARNING: Use '\'' to represent an apostrophe within the trap.
2367# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2368trap 'exit_status=$?
2369  # Save into config.log some information that might help in debugging.
2370  {
2371    echo
2372
2373    $as_echo "## ---------------- ##
2374## Cache variables. ##
2375## ---------------- ##"
2376    echo
2377    # The following way of writing the cache mishandles newlines in values,
2378(
2379  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2380    eval ac_val=\$$ac_var
2381    case $ac_val in #(
2382    *${as_nl}*)
2383      case $ac_var in #(
2384      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2385$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2386      esac
2387      case $ac_var in #(
2388      _ | IFS | as_nl) ;; #(
2389      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2390      *) { eval $ac_var=; unset $ac_var;} ;;
2391      esac ;;
2392    esac
2393  done
2394  (set) 2>&1 |
2395    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2396    *${as_nl}ac_space=\ *)
2397      sed -n \
2398	"s/'\''/'\''\\\\'\'''\''/g;
2399	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2400      ;; #(
2401    *)
2402      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2403      ;;
2404    esac |
2405    sort
2406)
2407    echo
2408
2409    $as_echo "## ----------------- ##
2410## Output variables. ##
2411## ----------------- ##"
2412    echo
2413    for ac_var in $ac_subst_vars
2414    do
2415      eval ac_val=\$$ac_var
2416      case $ac_val in
2417      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418      esac
2419      $as_echo "$ac_var='\''$ac_val'\''"
2420    done | sort
2421    echo
2422
2423    if test -n "$ac_subst_files"; then
2424      $as_echo "## ------------------- ##
2425## File substitutions. ##
2426## ------------------- ##"
2427      echo
2428      for ac_var in $ac_subst_files
2429      do
2430	eval ac_val=\$$ac_var
2431	case $ac_val in
2432	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433	esac
2434	$as_echo "$ac_var='\''$ac_val'\''"
2435      done | sort
2436      echo
2437    fi
2438
2439    if test -s confdefs.h; then
2440      $as_echo "## ----------- ##
2441## confdefs.h. ##
2442## ----------- ##"
2443      echo
2444      cat confdefs.h
2445      echo
2446    fi
2447    test "$ac_signal" != 0 &&
2448      $as_echo "$as_me: caught signal $ac_signal"
2449    $as_echo "$as_me: exit $exit_status"
2450  } >&5
2451  rm -f core *.core core.conftest.* &&
2452    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2453    exit $exit_status
2454' 0
2455for ac_signal in 1 2 13 15; do
2456  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2457done
2458ac_signal=0
2459
2460# confdefs.h avoids OS command line length limits that DEFS can exceed.
2461rm -f -r conftest* confdefs.h
2462
2463$as_echo "/* confdefs.h */" > confdefs.h
2464
2465# Predefined preprocessor variables.
2466
2467cat >>confdefs.h <<_ACEOF
2468#define PACKAGE_NAME "$PACKAGE_NAME"
2469_ACEOF
2470
2471cat >>confdefs.h <<_ACEOF
2472#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2473_ACEOF
2474
2475cat >>confdefs.h <<_ACEOF
2476#define PACKAGE_VERSION "$PACKAGE_VERSION"
2477_ACEOF
2478
2479cat >>confdefs.h <<_ACEOF
2480#define PACKAGE_STRING "$PACKAGE_STRING"
2481_ACEOF
2482
2483cat >>confdefs.h <<_ACEOF
2484#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2485_ACEOF
2486
2487cat >>confdefs.h <<_ACEOF
2488#define PACKAGE_URL "$PACKAGE_URL"
2489_ACEOF
2490
2491
2492# Let the site file select an alternate cache file if it wants to.
2493# Prefer an explicitly selected file to automatically selected ones.
2494ac_site_file1=NONE
2495ac_site_file2=NONE
2496if test -n "$CONFIG_SITE"; then
2497  # We do not want a PATH search for config.site.
2498  case $CONFIG_SITE in #((
2499    -*)  ac_site_file1=./$CONFIG_SITE;;
2500    */*) ac_site_file1=$CONFIG_SITE;;
2501    *)   ac_site_file1=./$CONFIG_SITE;;
2502  esac
2503elif test "x$prefix" != xNONE; then
2504  ac_site_file1=$prefix/share/config.site
2505  ac_site_file2=$prefix/etc/config.site
2506else
2507  ac_site_file1=$ac_default_prefix/share/config.site
2508  ac_site_file2=$ac_default_prefix/etc/config.site
2509fi
2510for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2511do
2512  test "x$ac_site_file" = xNONE && continue
2513  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2514    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2516    sed 's/^/| /' "$ac_site_file" >&5
2517    . "$ac_site_file" \
2518      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520as_fn_error $? "failed to load site script $ac_site_file
2521See \`config.log' for more details" "$LINENO" 5; }
2522  fi
2523done
2524
2525if test -r "$cache_file"; then
2526  # Some versions of bash will fail to source /dev/null (special files
2527  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2528  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2529    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2530$as_echo "$as_me: loading cache $cache_file" >&6;}
2531    case $cache_file in
2532      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2533      *)                      . "./$cache_file";;
2534    esac
2535  fi
2536else
2537  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2538$as_echo "$as_me: creating cache $cache_file" >&6;}
2539  >$cache_file
2540fi
2541
2542as_fn_append ac_header_list " stdlib.h"
2543as_fn_append ac_header_list " unistd.h"
2544as_fn_append ac_header_list " sys/param.h"
2545as_fn_append ac_header_list " utime.h"
2546# Check that the precious variables saved in the cache have kept the same
2547# value.
2548ac_cache_corrupted=false
2549for ac_var in $ac_precious_vars; do
2550  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2551  eval ac_new_set=\$ac_env_${ac_var}_set
2552  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2553  eval ac_new_val=\$ac_env_${ac_var}_value
2554  case $ac_old_set,$ac_new_set in
2555    set,)
2556      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2557$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2558      ac_cache_corrupted=: ;;
2559    ,set)
2560      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2561$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2562      ac_cache_corrupted=: ;;
2563    ,);;
2564    *)
2565      if test "x$ac_old_val" != "x$ac_new_val"; then
2566	# differences in whitespace do not lead to failure.
2567	ac_old_val_w=`echo x $ac_old_val`
2568	ac_new_val_w=`echo x $ac_new_val`
2569	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2570	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2571$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2572	  ac_cache_corrupted=:
2573	else
2574	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2575$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2576	  eval $ac_var=\$ac_old_val
2577	fi
2578	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2579$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2580	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2581$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2582      fi;;
2583  esac
2584  # Pass precious variables to config.status.
2585  if test "$ac_new_set" = set; then
2586    case $ac_new_val in
2587    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2588    *) ac_arg=$ac_var=$ac_new_val ;;
2589    esac
2590    case " $ac_configure_args " in
2591      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2592      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2593    esac
2594  fi
2595done
2596if $ac_cache_corrupted; then
2597  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2599  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2600$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2601  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2602fi
2603## -------------------- ##
2604## Main body of script. ##
2605## -------------------- ##
2606
2607ac_ext=c
2608ac_cpp='$CPP $CPPFLAGS'
2609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611ac_compiler_gnu=$ac_cv_c_compiler_gnu
2612
2613
2614
2615NETATALK_VERSION=`cat $srcdir/VERSION`
2616
2617
2618ac_aux_dir=
2619for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2620  if test -f "$ac_dir/install-sh"; then
2621    ac_aux_dir=$ac_dir
2622    ac_install_sh="$ac_aux_dir/install-sh -c"
2623    break
2624  elif test -f "$ac_dir/install.sh"; then
2625    ac_aux_dir=$ac_dir
2626    ac_install_sh="$ac_aux_dir/install.sh -c"
2627    break
2628  elif test -f "$ac_dir/shtool"; then
2629    ac_aux_dir=$ac_dir
2630    ac_install_sh="$ac_aux_dir/shtool install -c"
2631    break
2632  fi
2633done
2634if test -z "$ac_aux_dir"; then
2635  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2636fi
2637
2638# These three variables are undocumented and unsupported,
2639# and are intended to be withdrawn in a future Autoconf release.
2640# They can cause serious problems if a builder's source tree is in a directory
2641# whose full name contains unusual characters.
2642ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2643ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2644ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2645
2646
2647# Make sure we can run config.sub.
2648$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2649  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2650
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2652$as_echo_n "checking build system type... " >&6; }
2653if ${ac_cv_build+:} false; then :
2654  $as_echo_n "(cached) " >&6
2655else
2656  ac_build_alias=$build_alias
2657test "x$ac_build_alias" = x &&
2658  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2659test "x$ac_build_alias" = x &&
2660  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2661ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2662  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2663
2664fi
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2666$as_echo "$ac_cv_build" >&6; }
2667case $ac_cv_build in
2668*-*-*) ;;
2669*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2670esac
2671build=$ac_cv_build
2672ac_save_IFS=$IFS; IFS='-'
2673set x $ac_cv_build
2674shift
2675build_cpu=$1
2676build_vendor=$2
2677shift; shift
2678# Remember, the first character of IFS is used to create $*,
2679# except with old shells:
2680build_os=$*
2681IFS=$ac_save_IFS
2682case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2683
2684
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2686$as_echo_n "checking host system type... " >&6; }
2687if ${ac_cv_host+:} false; then :
2688  $as_echo_n "(cached) " >&6
2689else
2690  if test "x$host_alias" = x; then
2691  ac_cv_host=$ac_cv_build
2692else
2693  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2694    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2695fi
2696
2697fi
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2699$as_echo "$ac_cv_host" >&6; }
2700case $ac_cv_host in
2701*-*-*) ;;
2702*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2703esac
2704host=$ac_cv_host
2705ac_save_IFS=$IFS; IFS='-'
2706set x $ac_cv_host
2707shift
2708host_cpu=$1
2709host_vendor=$2
2710shift; shift
2711# Remember, the first character of IFS is used to create $*,
2712# except with old shells:
2713host_os=$*
2714IFS=$ac_save_IFS
2715case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2716
2717
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2719$as_echo_n "checking target system type... " >&6; }
2720if ${ac_cv_target+:} false; then :
2721  $as_echo_n "(cached) " >&6
2722else
2723  if test "x$target_alias" = x; then
2724  ac_cv_target=$ac_cv_host
2725else
2726  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2727    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2728fi
2729
2730fi
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2732$as_echo "$ac_cv_target" >&6; }
2733case $ac_cv_target in
2734*-*-*) ;;
2735*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2736esac
2737target=$ac_cv_target
2738ac_save_IFS=$IFS; IFS='-'
2739set x $ac_cv_target
2740shift
2741target_cpu=$1
2742target_vendor=$2
2743shift; shift
2744# Remember, the first character of IFS is used to create $*,
2745# except with old shells:
2746target_os=$*
2747IFS=$ac_save_IFS
2748case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2749
2750
2751# The aliases save the names the user supplied, while $host etc.
2752# will get canonicalized.
2753test -n "$target_alias" &&
2754  test "$program_prefix$program_suffix$program_transform_name" = \
2755    NONENONEs,x,x, &&
2756  program_prefix=${target_alias}-
2757
2758am__api_version='1.11'
2759
2760# Find a good install program.  We prefer a C program (faster),
2761# so one script is as good as another.  But avoid the broken or
2762# incompatible versions:
2763# SysV /etc/install, /usr/sbin/install
2764# SunOS /usr/etc/install
2765# IRIX /sbin/install
2766# AIX /bin/install
2767# AmigaOS /C/install, which installs bootblocks on floppy discs
2768# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2769# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2770# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2771# OS/2's system install, which has a completely different semantic
2772# ./install, which can be erroneously created by make from ./install.sh.
2773# Reject install programs that cannot install multiple files.
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2775$as_echo_n "checking for a BSD-compatible install... " >&6; }
2776if test -z "$INSTALL"; then
2777if ${ac_cv_path_install+:} false; then :
2778  $as_echo_n "(cached) " >&6
2779else
2780  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783  IFS=$as_save_IFS
2784  test -z "$as_dir" && as_dir=.
2785    # Account for people who put trailing slashes in PATH elements.
2786case $as_dir/ in #((
2787  ./ | .// | /[cC]/* | \
2788  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2789  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2790  /usr/ucb/* ) ;;
2791  *)
2792    # OSF1 and SCO ODT 3.0 have their own names for install.
2793    # Don't use installbsd from OSF since it installs stuff as root
2794    # by default.
2795    for ac_prog in ginstall scoinst install; do
2796      for ac_exec_ext in '' $ac_executable_extensions; do
2797	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2798	  if test $ac_prog = install &&
2799	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2800	    # AIX install.  It has an incompatible calling convention.
2801	    :
2802	  elif test $ac_prog = install &&
2803	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2804	    # program-specific install script used by HP pwplus--don't use.
2805	    :
2806	  else
2807	    rm -rf conftest.one conftest.two conftest.dir
2808	    echo one > conftest.one
2809	    echo two > conftest.two
2810	    mkdir conftest.dir
2811	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2812	      test -s conftest.one && test -s conftest.two &&
2813	      test -s conftest.dir/conftest.one &&
2814	      test -s conftest.dir/conftest.two
2815	    then
2816	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2817	      break 3
2818	    fi
2819	  fi
2820	fi
2821      done
2822    done
2823    ;;
2824esac
2825
2826  done
2827IFS=$as_save_IFS
2828
2829rm -rf conftest.one conftest.two conftest.dir
2830
2831fi
2832  if test "${ac_cv_path_install+set}" = set; then
2833    INSTALL=$ac_cv_path_install
2834  else
2835    # As a last resort, use the slow shell script.  Don't cache a
2836    # value for INSTALL within a source directory, because that will
2837    # break other packages using the cache if that directory is
2838    # removed, or if the value is a relative name.
2839    INSTALL=$ac_install_sh
2840  fi
2841fi
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2843$as_echo "$INSTALL" >&6; }
2844
2845# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2846# It thinks the first close brace ends the variable substitution.
2847test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2848
2849test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2850
2851test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2852
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2854$as_echo_n "checking whether build environment is sane... " >&6; }
2855# Just in case
2856sleep 1
2857echo timestamp > conftest.file
2858# Reject unsafe characters in $srcdir or the absolute working directory
2859# name.  Accept space and tab only in the latter.
2860am_lf='
2861'
2862case `pwd` in
2863  *[\\\"\#\$\&\'\`$am_lf]*)
2864    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2865esac
2866case $srcdir in
2867  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2868    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2869esac
2870
2871# Do `set' in a subshell so we don't clobber the current shell's
2872# arguments.  Must try -L first in case configure is actually a
2873# symlink; some systems play weird games with the mod time of symlinks
2874# (eg FreeBSD returns the mod time of the symlink's containing
2875# directory).
2876if (
2877   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2878   if test "$*" = "X"; then
2879      # -L didn't work.
2880      set X `ls -t "$srcdir/configure" conftest.file`
2881   fi
2882   rm -f conftest.file
2883   if test "$*" != "X $srcdir/configure conftest.file" \
2884      && test "$*" != "X conftest.file $srcdir/configure"; then
2885
2886      # If neither matched, then we have a broken ls.  This can happen
2887      # if, for instance, CONFIG_SHELL is bash and it inherits a
2888      # broken ls alias from the environment.  This has actually
2889      # happened.  Such a system could not be considered "sane".
2890      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2891alias in your environment" "$LINENO" 5
2892   fi
2893
2894   test "$2" = conftest.file
2895   )
2896then
2897   # Ok.
2898   :
2899else
2900   as_fn_error $? "newly created file is older than distributed files!
2901Check your system clock" "$LINENO" 5
2902fi
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2904$as_echo "yes" >&6; }
2905test "$program_prefix" != NONE &&
2906  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2907# Use a double $ so make ignores it.
2908test "$program_suffix" != NONE &&
2909  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2910# Double any \ or $.
2911# By default was `s,x,x', remove it if useless.
2912ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2913program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2914
2915# expand $ac_aux_dir to an absolute path
2916am_aux_dir=`cd $ac_aux_dir && pwd`
2917
2918if test x"${MISSING+set}" != xset; then
2919  case $am_aux_dir in
2920  *\ * | *\	*)
2921    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2922  *)
2923    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2924  esac
2925fi
2926# Use eval to expand $SHELL
2927if eval "$MISSING --run true"; then
2928  am_missing_run="$MISSING --run "
2929else
2930  am_missing_run=
2931  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2932$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2933fi
2934
2935if test x"${install_sh}" != xset; then
2936  case $am_aux_dir in
2937  *\ * | *\	*)
2938    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2939  *)
2940    install_sh="\${SHELL} $am_aux_dir/install-sh"
2941  esac
2942fi
2943
2944# Installed binaries are usually stripped using `strip' when the user
2945# run `make install-strip'.  However `strip' might not be the right
2946# tool to use in cross-compilation environments, therefore Automake
2947# will honor the `STRIP' environment variable to overrule this program.
2948if test "$cross_compiling" != no; then
2949  if test -n "$ac_tool_prefix"; then
2950  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2951set dummy ${ac_tool_prefix}strip; ac_word=$2
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953$as_echo_n "checking for $ac_word... " >&6; }
2954if ${ac_cv_prog_STRIP+:} false; then :
2955  $as_echo_n "(cached) " >&6
2956else
2957  if test -n "$STRIP"; then
2958  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2959else
2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961for as_dir in $PATH
2962do
2963  IFS=$as_save_IFS
2964  test -z "$as_dir" && as_dir=.
2965    for ac_exec_ext in '' $ac_executable_extensions; do
2966  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969    break 2
2970  fi
2971done
2972  done
2973IFS=$as_save_IFS
2974
2975fi
2976fi
2977STRIP=$ac_cv_prog_STRIP
2978if test -n "$STRIP"; then
2979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2980$as_echo "$STRIP" >&6; }
2981else
2982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983$as_echo "no" >&6; }
2984fi
2985
2986
2987fi
2988if test -z "$ac_cv_prog_STRIP"; then
2989  ac_ct_STRIP=$STRIP
2990  # Extract the first word of "strip", so it can be a program name with args.
2991set dummy strip; ac_word=$2
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993$as_echo_n "checking for $ac_word... " >&6; }
2994if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2995  $as_echo_n "(cached) " >&6
2996else
2997  if test -n "$ac_ct_STRIP"; then
2998  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2999else
3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001for as_dir in $PATH
3002do
3003  IFS=$as_save_IFS
3004  test -z "$as_dir" && as_dir=.
3005    for ac_exec_ext in '' $ac_executable_extensions; do
3006  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007    ac_cv_prog_ac_ct_STRIP="strip"
3008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009    break 2
3010  fi
3011done
3012  done
3013IFS=$as_save_IFS
3014
3015fi
3016fi
3017ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3018if test -n "$ac_ct_STRIP"; then
3019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3020$as_echo "$ac_ct_STRIP" >&6; }
3021else
3022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023$as_echo "no" >&6; }
3024fi
3025
3026  if test "x$ac_ct_STRIP" = x; then
3027    STRIP=":"
3028  else
3029    case $cross_compiling:$ac_tool_warned in
3030yes:)
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3033ac_tool_warned=yes ;;
3034esac
3035    STRIP=$ac_ct_STRIP
3036  fi
3037else
3038  STRIP="$ac_cv_prog_STRIP"
3039fi
3040
3041fi
3042INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3043
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3045$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3046if test -z "$MKDIR_P"; then
3047  if ${ac_cv_path_mkdir+:} false; then :
3048  $as_echo_n "(cached) " >&6
3049else
3050  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3052do
3053  IFS=$as_save_IFS
3054  test -z "$as_dir" && as_dir=.
3055    for ac_prog in mkdir gmkdir; do
3056	 for ac_exec_ext in '' $ac_executable_extensions; do
3057	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3058	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3059	     'mkdir (GNU coreutils) '* | \
3060	     'mkdir (coreutils) '* | \
3061	     'mkdir (fileutils) '4.1*)
3062	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3063	       break 3;;
3064	   esac
3065	 done
3066       done
3067  done
3068IFS=$as_save_IFS
3069
3070fi
3071
3072  test -d ./--version && rmdir ./--version
3073  if test "${ac_cv_path_mkdir+set}" = set; then
3074    MKDIR_P="$ac_cv_path_mkdir -p"
3075  else
3076    # As a last resort, use the slow shell script.  Don't cache a
3077    # value for MKDIR_P within a source directory, because that will
3078    # break other packages using the cache if that directory is
3079    # removed, or if the value is a relative name.
3080    MKDIR_P="$ac_install_sh -d"
3081  fi
3082fi
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3084$as_echo "$MKDIR_P" >&6; }
3085
3086mkdir_p="$MKDIR_P"
3087case $mkdir_p in
3088  [\\/$]* | ?:[\\/]*) ;;
3089  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3090esac
3091
3092for ac_prog in gawk mawk nawk awk
3093do
3094  # Extract the first word of "$ac_prog", so it can be a program name with args.
3095set dummy $ac_prog; ac_word=$2
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097$as_echo_n "checking for $ac_word... " >&6; }
3098if ${ac_cv_prog_AWK+:} false; then :
3099  $as_echo_n "(cached) " >&6
3100else
3101  if test -n "$AWK"; then
3102  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3103else
3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105for as_dir in $PATH
3106do
3107  IFS=$as_save_IFS
3108  test -z "$as_dir" && as_dir=.
3109    for ac_exec_ext in '' $ac_executable_extensions; do
3110  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111    ac_cv_prog_AWK="$ac_prog"
3112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113    break 2
3114  fi
3115done
3116  done
3117IFS=$as_save_IFS
3118
3119fi
3120fi
3121AWK=$ac_cv_prog_AWK
3122if test -n "$AWK"; then
3123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3124$as_echo "$AWK" >&6; }
3125else
3126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127$as_echo "no" >&6; }
3128fi
3129
3130
3131  test -n "$AWK" && break
3132done
3133
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3135$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3136set x ${MAKE-make}
3137ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3138if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3139  $as_echo_n "(cached) " >&6
3140else
3141  cat >conftest.make <<\_ACEOF
3142SHELL = /bin/sh
3143all:
3144	@echo '@@@%%%=$(MAKE)=@@@%%%'
3145_ACEOF
3146# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3147case `${MAKE-make} -f conftest.make 2>/dev/null` in
3148  *@@@%%%=?*=@@@%%%*)
3149    eval ac_cv_prog_make_${ac_make}_set=yes;;
3150  *)
3151    eval ac_cv_prog_make_${ac_make}_set=no;;
3152esac
3153rm -f conftest.make
3154fi
3155if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3157$as_echo "yes" >&6; }
3158  SET_MAKE=
3159else
3160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161$as_echo "no" >&6; }
3162  SET_MAKE="MAKE=${MAKE-make}"
3163fi
3164
3165rm -rf .tst 2>/dev/null
3166mkdir .tst 2>/dev/null
3167if test -d .tst; then
3168  am__leading_dot=.
3169else
3170  am__leading_dot=_
3171fi
3172rmdir .tst 2>/dev/null
3173
3174if test "`cd $srcdir && pwd`" != "`pwd`"; then
3175  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3176  # is not polluted with repeated "-I."
3177  am__isrc=' -I$(srcdir)'
3178  # test to see if srcdir already configured
3179  if test -f $srcdir/config.status; then
3180    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3181  fi
3182fi
3183
3184# test whether we have cygpath
3185if test -z "$CYGPATH_W"; then
3186  if (cygpath --version) >/dev/null 2>/dev/null; then
3187    CYGPATH_W='cygpath -w'
3188  else
3189    CYGPATH_W=echo
3190  fi
3191fi
3192
3193
3194# Define the identity of the package.
3195 PACKAGE=netatalk
3196 VERSION=${NETATALK_VERSION}
3197
3198
3199cat >>confdefs.h <<_ACEOF
3200#define PACKAGE "$PACKAGE"
3201_ACEOF
3202
3203
3204cat >>confdefs.h <<_ACEOF
3205#define VERSION "$VERSION"
3206_ACEOF
3207
3208# Some tools Automake needs.
3209
3210ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3211
3212
3213AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3214
3215
3216AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3217
3218
3219AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3220
3221
3222MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3223
3224# We need awk for the "check" target.  The system "awk" is bad on
3225# some platforms.
3226# Always define AMTAR for backward compatibility.  Yes, it's still used
3227# in the wild :-(  We should find a proper way to deprecate it ...
3228AMTAR='$${TAR-tar}'
3229
3230am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3231
3232
3233
3234
3235
3236ac_config_headers="$ac_config_headers config.h"
3237
3238
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3240$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3241    # Check whether --enable-maintainer-mode was given.
3242if test "${enable_maintainer_mode+set}" = set; then :
3243  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3244else
3245  USE_MAINTAINER_MODE=yes
3246fi
3247
3248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3249$as_echo "$USE_MAINTAINER_MODE" >&6; }
3250   if test $USE_MAINTAINER_MODE = yes; then
3251  MAINTAINER_MODE_TRUE=
3252  MAINTAINER_MODE_FALSE='#'
3253else
3254  MAINTAINER_MODE_TRUE='#'
3255  MAINTAINER_MODE_FALSE=
3256fi
3257
3258  MAINT=$MAINTAINER_MODE_TRUE
3259
3260
3261
3262for ac_prog in gawk mawk nawk awk
3263do
3264  # Extract the first word of "$ac_prog", so it can be a program name with args.
3265set dummy $ac_prog; ac_word=$2
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267$as_echo_n "checking for $ac_word... " >&6; }
3268if ${ac_cv_prog_AWK+:} false; then :
3269  $as_echo_n "(cached) " >&6
3270else
3271  if test -n "$AWK"; then
3272  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3273else
3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275for as_dir in $PATH
3276do
3277  IFS=$as_save_IFS
3278  test -z "$as_dir" && as_dir=.
3279    for ac_exec_ext in '' $ac_executable_extensions; do
3280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281    ac_cv_prog_AWK="$ac_prog"
3282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283    break 2
3284  fi
3285done
3286  done
3287IFS=$as_save_IFS
3288
3289fi
3290fi
3291AWK=$ac_cv_prog_AWK
3292if test -n "$AWK"; then
3293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3294$as_echo "$AWK" >&6; }
3295else
3296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297$as_echo "no" >&6; }
3298fi
3299
3300
3301  test -n "$AWK" && break
3302done
3303
3304ac_ext=c
3305ac_cpp='$CPP $CPPFLAGS'
3306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308ac_compiler_gnu=$ac_cv_c_compiler_gnu
3309if test -n "$ac_tool_prefix"; then
3310  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3311set dummy ${ac_tool_prefix}gcc; ac_word=$2
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313$as_echo_n "checking for $ac_word... " >&6; }
3314if ${ac_cv_prog_CC+:} false; then :
3315  $as_echo_n "(cached) " >&6
3316else
3317  if test -n "$CC"; then
3318  ac_cv_prog_CC="$CC" # Let the user override the test.
3319else
3320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321for as_dir in $PATH
3322do
3323  IFS=$as_save_IFS
3324  test -z "$as_dir" && as_dir=.
3325    for ac_exec_ext in '' $ac_executable_extensions; do
3326  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329    break 2
3330  fi
3331done
3332  done
3333IFS=$as_save_IFS
3334
3335fi
3336fi
3337CC=$ac_cv_prog_CC
3338if test -n "$CC"; then
3339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3340$as_echo "$CC" >&6; }
3341else
3342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343$as_echo "no" >&6; }
3344fi
3345
3346
3347fi
3348if test -z "$ac_cv_prog_CC"; then
3349  ac_ct_CC=$CC
3350  # Extract the first word of "gcc", so it can be a program name with args.
3351set dummy gcc; ac_word=$2
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353$as_echo_n "checking for $ac_word... " >&6; }
3354if ${ac_cv_prog_ac_ct_CC+:} false; then :
3355  $as_echo_n "(cached) " >&6
3356else
3357  if test -n "$ac_ct_CC"; then
3358  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3359else
3360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361for as_dir in $PATH
3362do
3363  IFS=$as_save_IFS
3364  test -z "$as_dir" && as_dir=.
3365    for ac_exec_ext in '' $ac_executable_extensions; do
3366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367    ac_cv_prog_ac_ct_CC="gcc"
3368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3369    break 2
3370  fi
3371done
3372  done
3373IFS=$as_save_IFS
3374
3375fi
3376fi
3377ac_ct_CC=$ac_cv_prog_ac_ct_CC
3378if test -n "$ac_ct_CC"; then
3379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3380$as_echo "$ac_ct_CC" >&6; }
3381else
3382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383$as_echo "no" >&6; }
3384fi
3385
3386  if test "x$ac_ct_CC" = x; then
3387    CC=""
3388  else
3389    case $cross_compiling:$ac_tool_warned in
3390yes:)
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3393ac_tool_warned=yes ;;
3394esac
3395    CC=$ac_ct_CC
3396  fi
3397else
3398  CC="$ac_cv_prog_CC"
3399fi
3400
3401if test -z "$CC"; then
3402          if test -n "$ac_tool_prefix"; then
3403    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3404set dummy ${ac_tool_prefix}cc; ac_word=$2
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406$as_echo_n "checking for $ac_word... " >&6; }
3407if ${ac_cv_prog_CC+:} false; then :
3408  $as_echo_n "(cached) " >&6
3409else
3410  if test -n "$CC"; then
3411  ac_cv_prog_CC="$CC" # Let the user override the test.
3412else
3413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414for as_dir in $PATH
3415do
3416  IFS=$as_save_IFS
3417  test -z "$as_dir" && as_dir=.
3418    for ac_exec_ext in '' $ac_executable_extensions; do
3419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420    ac_cv_prog_CC="${ac_tool_prefix}cc"
3421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422    break 2
3423  fi
3424done
3425  done
3426IFS=$as_save_IFS
3427
3428fi
3429fi
3430CC=$ac_cv_prog_CC
3431if test -n "$CC"; then
3432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3433$as_echo "$CC" >&6; }
3434else
3435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436$as_echo "no" >&6; }
3437fi
3438
3439
3440  fi
3441fi
3442if test -z "$CC"; then
3443  # Extract the first word of "cc", so it can be a program name with args.
3444set dummy cc; ac_word=$2
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3446$as_echo_n "checking for $ac_word... " >&6; }
3447if ${ac_cv_prog_CC+:} false; then :
3448  $as_echo_n "(cached) " >&6
3449else
3450  if test -n "$CC"; then
3451  ac_cv_prog_CC="$CC" # Let the user override the test.
3452else
3453  ac_prog_rejected=no
3454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455for as_dir in $PATH
3456do
3457  IFS=$as_save_IFS
3458  test -z "$as_dir" && as_dir=.
3459    for ac_exec_ext in '' $ac_executable_extensions; do
3460  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3461    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3462       ac_prog_rejected=yes
3463       continue
3464     fi
3465    ac_cv_prog_CC="cc"
3466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467    break 2
3468  fi
3469done
3470  done
3471IFS=$as_save_IFS
3472
3473if test $ac_prog_rejected = yes; then
3474  # We found a bogon in the path, so make sure we never use it.
3475  set dummy $ac_cv_prog_CC
3476  shift
3477  if test $# != 0; then
3478    # We chose a different compiler from the bogus one.
3479    # However, it has the same basename, so the bogon will be chosen
3480    # first if we set CC to just the basename; use the full file name.
3481    shift
3482    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3483  fi
3484fi
3485fi
3486fi
3487CC=$ac_cv_prog_CC
3488if test -n "$CC"; then
3489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3490$as_echo "$CC" >&6; }
3491else
3492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493$as_echo "no" >&6; }
3494fi
3495
3496
3497fi
3498if test -z "$CC"; then
3499  if test -n "$ac_tool_prefix"; then
3500  for ac_prog in cl.exe
3501  do
3502    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3503set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505$as_echo_n "checking for $ac_word... " >&6; }
3506if ${ac_cv_prog_CC+:} false; then :
3507  $as_echo_n "(cached) " >&6
3508else
3509  if test -n "$CC"; then
3510  ac_cv_prog_CC="$CC" # Let the user override the test.
3511else
3512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513for as_dir in $PATH
3514do
3515  IFS=$as_save_IFS
3516  test -z "$as_dir" && as_dir=.
3517    for ac_exec_ext in '' $ac_executable_extensions; do
3518  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521    break 2
3522  fi
3523done
3524  done
3525IFS=$as_save_IFS
3526
3527fi
3528fi
3529CC=$ac_cv_prog_CC
3530if test -n "$CC"; then
3531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3532$as_echo "$CC" >&6; }
3533else
3534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535$as_echo "no" >&6; }
3536fi
3537
3538
3539    test -n "$CC" && break
3540  done
3541fi
3542if test -z "$CC"; then
3543  ac_ct_CC=$CC
3544  for ac_prog in cl.exe
3545do
3546  # Extract the first word of "$ac_prog", so it can be a program name with args.
3547set dummy $ac_prog; ac_word=$2
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549$as_echo_n "checking for $ac_word... " >&6; }
3550if ${ac_cv_prog_ac_ct_CC+:} false; then :
3551  $as_echo_n "(cached) " >&6
3552else
3553  if test -n "$ac_ct_CC"; then
3554  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3555else
3556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557for as_dir in $PATH
3558do
3559  IFS=$as_save_IFS
3560  test -z "$as_dir" && as_dir=.
3561    for ac_exec_ext in '' $ac_executable_extensions; do
3562  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563    ac_cv_prog_ac_ct_CC="$ac_prog"
3564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565    break 2
3566  fi
3567done
3568  done
3569IFS=$as_save_IFS
3570
3571fi
3572fi
3573ac_ct_CC=$ac_cv_prog_ac_ct_CC
3574if test -n "$ac_ct_CC"; then
3575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3576$as_echo "$ac_ct_CC" >&6; }
3577else
3578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579$as_echo "no" >&6; }
3580fi
3581
3582
3583  test -n "$ac_ct_CC" && break
3584done
3585
3586  if test "x$ac_ct_CC" = x; then
3587    CC=""
3588  else
3589    case $cross_compiling:$ac_tool_warned in
3590yes:)
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3593ac_tool_warned=yes ;;
3594esac
3595    CC=$ac_ct_CC
3596  fi
3597fi
3598
3599fi
3600
3601
3602test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604as_fn_error $? "no acceptable C compiler found in \$PATH
3605See \`config.log' for more details" "$LINENO" 5; }
3606
3607# Provide some information about the compiler.
3608$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3609set X $ac_compile
3610ac_compiler=$2
3611for ac_option in --version -v -V -qversion; do
3612  { { ac_try="$ac_compiler $ac_option >&5"
3613case "(($ac_try" in
3614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615  *) ac_try_echo=$ac_try;;
3616esac
3617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618$as_echo "$ac_try_echo"; } >&5
3619  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3620  ac_status=$?
3621  if test -s conftest.err; then
3622    sed '10a\
3623... rest of stderr output deleted ...
3624         10q' conftest.err >conftest.er1
3625    cat conftest.er1 >&5
3626  fi
3627  rm -f conftest.er1 conftest.err
3628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629  test $ac_status = 0; }
3630done
3631
3632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633/* end confdefs.h.  */
3634
3635int
3636main ()
3637{
3638
3639  ;
3640  return 0;
3641}
3642_ACEOF
3643ac_clean_files_save=$ac_clean_files
3644ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3645# Try to create an executable without -o first, disregard a.out.
3646# It will help us diagnose broken compilers, and finding out an intuition
3647# of exeext.
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3649$as_echo_n "checking whether the C compiler works... " >&6; }
3650ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3651
3652# The possible output files:
3653ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3654
3655ac_rmfiles=
3656for ac_file in $ac_files
3657do
3658  case $ac_file in
3659    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3660    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3661  esac
3662done
3663rm -f $ac_rmfiles
3664
3665if { { ac_try="$ac_link_default"
3666case "(($ac_try" in
3667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668  *) ac_try_echo=$ac_try;;
3669esac
3670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671$as_echo "$ac_try_echo"; } >&5
3672  (eval "$ac_link_default") 2>&5
3673  ac_status=$?
3674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675  test $ac_status = 0; }; then :
3676  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3677# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3678# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3679# so that the user can short-circuit this test for compilers unknown to
3680# Autoconf.
3681for ac_file in $ac_files ''
3682do
3683  test -f "$ac_file" || continue
3684  case $ac_file in
3685    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3686	;;
3687    [ab].out )
3688	# We found the default executable, but exeext='' is most
3689	# certainly right.
3690	break;;
3691    *.* )
3692	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3693	then :; else
3694	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3695	fi
3696	# We set ac_cv_exeext here because the later test for it is not
3697	# safe: cross compilers may not add the suffix if given an `-o'
3698	# argument, so we may need to know it at that point already.
3699	# Even if this section looks crufty: it has the advantage of
3700	# actually working.
3701	break;;
3702    * )
3703	break;;
3704  esac
3705done
3706test "$ac_cv_exeext" = no && ac_cv_exeext=
3707
3708else
3709  ac_file=''
3710fi
3711if test -z "$ac_file"; then :
3712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713$as_echo "no" >&6; }
3714$as_echo "$as_me: failed program was:" >&5
3715sed 's/^/| /' conftest.$ac_ext >&5
3716
3717{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3719as_fn_error 77 "C compiler cannot create executables
3720See \`config.log' for more details" "$LINENO" 5; }
3721else
3722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3723$as_echo "yes" >&6; }
3724fi
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3726$as_echo_n "checking for C compiler default output file name... " >&6; }
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3728$as_echo "$ac_file" >&6; }
3729ac_exeext=$ac_cv_exeext
3730
3731rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3732ac_clean_files=$ac_clean_files_save
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3734$as_echo_n "checking for suffix of executables... " >&6; }
3735if { { ac_try="$ac_link"
3736case "(($ac_try" in
3737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738  *) ac_try_echo=$ac_try;;
3739esac
3740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741$as_echo "$ac_try_echo"; } >&5
3742  (eval "$ac_link") 2>&5
3743  ac_status=$?
3744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745  test $ac_status = 0; }; then :
3746  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3747# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3748# work properly (i.e., refer to `conftest.exe'), while it won't with
3749# `rm'.
3750for ac_file in conftest.exe conftest conftest.*; do
3751  test -f "$ac_file" || continue
3752  case $ac_file in
3753    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3754    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3755	  break;;
3756    * ) break;;
3757  esac
3758done
3759else
3760  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3762as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3763See \`config.log' for more details" "$LINENO" 5; }
3764fi
3765rm -f conftest conftest$ac_cv_exeext
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3767$as_echo "$ac_cv_exeext" >&6; }
3768
3769rm -f conftest.$ac_ext
3770EXEEXT=$ac_cv_exeext
3771ac_exeext=$EXEEXT
3772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773/* end confdefs.h.  */
3774#include <stdio.h>
3775int
3776main ()
3777{
3778FILE *f = fopen ("conftest.out", "w");
3779 return ferror (f) || fclose (f) != 0;
3780
3781  ;
3782  return 0;
3783}
3784_ACEOF
3785ac_clean_files="$ac_clean_files conftest.out"
3786# Check that the compiler produces executables we can run.  If not, either
3787# the compiler is broken, or we cross compile.
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3789$as_echo_n "checking whether we are cross compiling... " >&6; }
3790if test "$cross_compiling" != yes; then
3791  { { ac_try="$ac_link"
3792case "(($ac_try" in
3793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794  *) ac_try_echo=$ac_try;;
3795esac
3796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797$as_echo "$ac_try_echo"; } >&5
3798  (eval "$ac_link") 2>&5
3799  ac_status=$?
3800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801  test $ac_status = 0; }
3802  if { ac_try='./conftest$ac_cv_exeext'
3803  { { case "(($ac_try" in
3804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805  *) ac_try_echo=$ac_try;;
3806esac
3807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808$as_echo "$ac_try_echo"; } >&5
3809  (eval "$ac_try") 2>&5
3810  ac_status=$?
3811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812  test $ac_status = 0; }; }; then
3813    cross_compiling=no
3814  else
3815    if test "$cross_compiling" = maybe; then
3816	cross_compiling=yes
3817    else
3818	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820as_fn_error $? "cannot run C compiled programs.
3821If you meant to cross compile, use \`--host'.
3822See \`config.log' for more details" "$LINENO" 5; }
3823    fi
3824  fi
3825fi
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3827$as_echo "$cross_compiling" >&6; }
3828
3829rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3830ac_clean_files=$ac_clean_files_save
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3832$as_echo_n "checking for suffix of object files... " >&6; }
3833if ${ac_cv_objext+:} false; then :
3834  $as_echo_n "(cached) " >&6
3835else
3836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837/* end confdefs.h.  */
3838
3839int
3840main ()
3841{
3842
3843  ;
3844  return 0;
3845}
3846_ACEOF
3847rm -f conftest.o conftest.obj
3848if { { ac_try="$ac_compile"
3849case "(($ac_try" in
3850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851  *) ac_try_echo=$ac_try;;
3852esac
3853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3854$as_echo "$ac_try_echo"; } >&5
3855  (eval "$ac_compile") 2>&5
3856  ac_status=$?
3857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858  test $ac_status = 0; }; then :
3859  for ac_file in conftest.o conftest.obj conftest.*; do
3860  test -f "$ac_file" || continue;
3861  case $ac_file in
3862    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3863    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3864       break;;
3865  esac
3866done
3867else
3868  $as_echo "$as_me: failed program was:" >&5
3869sed 's/^/| /' conftest.$ac_ext >&5
3870
3871{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873as_fn_error $? "cannot compute suffix of object files: cannot compile
3874See \`config.log' for more details" "$LINENO" 5; }
3875fi
3876rm -f conftest.$ac_cv_objext conftest.$ac_ext
3877fi
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3879$as_echo "$ac_cv_objext" >&6; }
3880OBJEXT=$ac_cv_objext
3881ac_objext=$OBJEXT
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3883$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3884if ${ac_cv_c_compiler_gnu+:} false; then :
3885  $as_echo_n "(cached) " >&6
3886else
3887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888/* end confdefs.h.  */
3889
3890int
3891main ()
3892{
3893#ifndef __GNUC__
3894       choke me
3895#endif
3896
3897  ;
3898  return 0;
3899}
3900_ACEOF
3901if ac_fn_c_try_compile "$LINENO"; then :
3902  ac_compiler_gnu=yes
3903else
3904  ac_compiler_gnu=no
3905fi
3906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907ac_cv_c_compiler_gnu=$ac_compiler_gnu
3908
3909fi
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3911$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3912if test $ac_compiler_gnu = yes; then
3913  GCC=yes
3914else
3915  GCC=
3916fi
3917ac_test_CFLAGS=${CFLAGS+set}
3918ac_save_CFLAGS=$CFLAGS
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3920$as_echo_n "checking whether $CC accepts -g... " >&6; }
3921if ${ac_cv_prog_cc_g+:} false; then :
3922  $as_echo_n "(cached) " >&6
3923else
3924  ac_save_c_werror_flag=$ac_c_werror_flag
3925   ac_c_werror_flag=yes
3926   ac_cv_prog_cc_g=no
3927   CFLAGS="-g"
3928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929/* end confdefs.h.  */
3930
3931int
3932main ()
3933{
3934
3935  ;
3936  return 0;
3937}
3938_ACEOF
3939if ac_fn_c_try_compile "$LINENO"; then :
3940  ac_cv_prog_cc_g=yes
3941else
3942  CFLAGS=""
3943      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944/* end confdefs.h.  */
3945
3946int
3947main ()
3948{
3949
3950  ;
3951  return 0;
3952}
3953_ACEOF
3954if ac_fn_c_try_compile "$LINENO"; then :
3955
3956else
3957  ac_c_werror_flag=$ac_save_c_werror_flag
3958	 CFLAGS="-g"
3959	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960/* end confdefs.h.  */
3961
3962int
3963main ()
3964{
3965
3966  ;
3967  return 0;
3968}
3969_ACEOF
3970if ac_fn_c_try_compile "$LINENO"; then :
3971  ac_cv_prog_cc_g=yes
3972fi
3973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974fi
3975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976fi
3977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978   ac_c_werror_flag=$ac_save_c_werror_flag
3979fi
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3981$as_echo "$ac_cv_prog_cc_g" >&6; }
3982if test "$ac_test_CFLAGS" = set; then
3983  CFLAGS=$ac_save_CFLAGS
3984elif test $ac_cv_prog_cc_g = yes; then
3985  if test "$GCC" = yes; then
3986    CFLAGS="-g -O2"
3987  else
3988    CFLAGS="-g"
3989  fi
3990else
3991  if test "$GCC" = yes; then
3992    CFLAGS="-O2"
3993  else
3994    CFLAGS=
3995  fi
3996fi
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3998$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3999if ${ac_cv_prog_cc_c89+:} false; then :
4000  $as_echo_n "(cached) " >&6
4001else
4002  ac_cv_prog_cc_c89=no
4003ac_save_CC=$CC
4004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005/* end confdefs.h.  */
4006#include <stdarg.h>
4007#include <stdio.h>
4008#include <sys/types.h>
4009#include <sys/stat.h>
4010/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4011struct buf { int x; };
4012FILE * (*rcsopen) (struct buf *, struct stat *, int);
4013static char *e (p, i)
4014     char **p;
4015     int i;
4016{
4017  return p[i];
4018}
4019static char *f (char * (*g) (char **, int), char **p, ...)
4020{
4021  char *s;
4022  va_list v;
4023  va_start (v,p);
4024  s = g (p, va_arg (v,int));
4025  va_end (v);
4026  return s;
4027}
4028
4029/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4030   function prototypes and stuff, but not '\xHH' hex character constants.
4031   These don't provoke an error unfortunately, instead are silently treated
4032   as 'x'.  The following induces an error, until -std is added to get
4033   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4034   array size at least.  It's necessary to write '\x00'==0 to get something
4035   that's true only with -std.  */
4036int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4037
4038/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4039   inside strings and character constants.  */
4040#define FOO(x) 'x'
4041int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4042
4043int test (int i, double x);
4044struct s1 {int (*f) (int a);};
4045struct s2 {int (*f) (double a);};
4046int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4047int argc;
4048char **argv;
4049int
4050main ()
4051{
4052return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4053  ;
4054  return 0;
4055}
4056_ACEOF
4057for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4058	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4059do
4060  CC="$ac_save_CC $ac_arg"
4061  if ac_fn_c_try_compile "$LINENO"; then :
4062  ac_cv_prog_cc_c89=$ac_arg
4063fi
4064rm -f core conftest.err conftest.$ac_objext
4065  test "x$ac_cv_prog_cc_c89" != "xno" && break
4066done
4067rm -f conftest.$ac_ext
4068CC=$ac_save_CC
4069
4070fi
4071# AC_CACHE_VAL
4072case "x$ac_cv_prog_cc_c89" in
4073  x)
4074    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4075$as_echo "none needed" >&6; } ;;
4076  xno)
4077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4078$as_echo "unsupported" >&6; } ;;
4079  *)
4080    CC="$CC $ac_cv_prog_cc_c89"
4081    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4082$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4083esac
4084if test "x$ac_cv_prog_cc_c89" != xno; then :
4085
4086fi
4087
4088ac_ext=c
4089ac_cpp='$CPP $CPPFLAGS'
4090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093DEPDIR="${am__leading_dot}deps"
4094
4095ac_config_commands="$ac_config_commands depfiles"
4096
4097
4098am_make=${MAKE-make}
4099cat > confinc << 'END'
4100am__doit:
4101	@echo this is the am__doit target
4102.PHONY: am__doit
4103END
4104# If we don't find an include directive, just comment out the code.
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4106$as_echo_n "checking for style of include used by $am_make... " >&6; }
4107am__include="#"
4108am__quote=
4109_am_result=none
4110# First try GNU make style include.
4111echo "include confinc" > confmf
4112# Ignore all kinds of additional output from `make'.
4113case `$am_make -s -f confmf 2> /dev/null` in #(
4114*the\ am__doit\ target*)
4115  am__include=include
4116  am__quote=
4117  _am_result=GNU
4118  ;;
4119esac
4120# Now try BSD make style include.
4121if test "$am__include" = "#"; then
4122   echo '.include "confinc"' > confmf
4123   case `$am_make -s -f confmf 2> /dev/null` in #(
4124   *the\ am__doit\ target*)
4125     am__include=.include
4126     am__quote="\""
4127     _am_result=BSD
4128     ;;
4129   esac
4130fi
4131
4132
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4134$as_echo "$_am_result" >&6; }
4135rm -f confinc confmf
4136
4137# Check whether --enable-dependency-tracking was given.
4138if test "${enable_dependency_tracking+set}" = set; then :
4139  enableval=$enable_dependency_tracking;
4140fi
4141
4142if test "x$enable_dependency_tracking" != xno; then
4143  am_depcomp="$ac_aux_dir/depcomp"
4144  AMDEPBACKSLASH='\'
4145  am__nodep='_no'
4146fi
4147 if test "x$enable_dependency_tracking" != xno; then
4148  AMDEP_TRUE=
4149  AMDEP_FALSE='#'
4150else
4151  AMDEP_TRUE='#'
4152  AMDEP_FALSE=
4153fi
4154
4155
4156
4157depcc="$CC"   am_compiler_list=
4158
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4160$as_echo_n "checking dependency style of $depcc... " >&6; }
4161if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4162  $as_echo_n "(cached) " >&6
4163else
4164  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4165  # We make a subdir and do the tests there.  Otherwise we can end up
4166  # making bogus files that we don't know about and never remove.  For
4167  # instance it was reported that on HP-UX the gcc test will end up
4168  # making a dummy file named `D' -- because `-MD' means `put the output
4169  # in D'.
4170  rm -rf conftest.dir
4171  mkdir conftest.dir
4172  # Copy depcomp to subdir because otherwise we won't find it if we're
4173  # using a relative directory.
4174  cp "$am_depcomp" conftest.dir
4175  cd conftest.dir
4176  # We will build objects and dependencies in a subdirectory because
4177  # it helps to detect inapplicable dependency modes.  For instance
4178  # both Tru64's cc and ICC support -MD to output dependencies as a
4179  # side effect of compilation, but ICC will put the dependencies in
4180  # the current directory while Tru64 will put them in the object
4181  # directory.
4182  mkdir sub
4183
4184  am_cv_CC_dependencies_compiler_type=none
4185  if test "$am_compiler_list" = ""; then
4186     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4187  fi
4188  am__universal=false
4189  case " $depcc " in #(
4190     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4191     esac
4192
4193  for depmode in $am_compiler_list; do
4194    # Setup a source with many dependencies, because some compilers
4195    # like to wrap large dependency lists on column 80 (with \), and
4196    # we should not choose a depcomp mode which is confused by this.
4197    #
4198    # We need to recreate these files for each test, as the compiler may
4199    # overwrite some of them when testing with obscure command lines.
4200    # This happens at least with the AIX C compiler.
4201    : > sub/conftest.c
4202    for i in 1 2 3 4 5 6; do
4203      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4204      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4205      # Solaris 8's {/usr,}/bin/sh.
4206      touch sub/conftst$i.h
4207    done
4208    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4209
4210    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4211    # mode.  It turns out that the SunPro C++ compiler does not properly
4212    # handle `-M -o', and we need to detect this.  Also, some Intel
4213    # versions had trouble with output in subdirs
4214    am__obj=sub/conftest.${OBJEXT-o}
4215    am__minus_obj="-o $am__obj"
4216    case $depmode in
4217    gcc)
4218      # This depmode causes a compiler race in universal mode.
4219      test "$am__universal" = false || continue
4220      ;;
4221    nosideeffect)
4222      # after this tag, mechanisms are not by side-effect, so they'll
4223      # only be used when explicitly requested
4224      if test "x$enable_dependency_tracking" = xyes; then
4225	continue
4226      else
4227	break
4228      fi
4229      ;;
4230    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4231      # This compiler won't grok `-c -o', but also, the minuso test has
4232      # not run yet.  These depmodes are late enough in the game, and
4233      # so weak that their functioning should not be impacted.
4234      am__obj=conftest.${OBJEXT-o}
4235      am__minus_obj=
4236      ;;
4237    none) break ;;
4238    esac
4239    if depmode=$depmode \
4240       source=sub/conftest.c object=$am__obj \
4241       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4242       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4243         >/dev/null 2>conftest.err &&
4244       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4245       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4246       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4247       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4248      # icc doesn't choke on unknown options, it will just issue warnings
4249      # or remarks (even with -Werror).  So we grep stderr for any message
4250      # that says an option was ignored or not supported.
4251      # When given -MP, icc 7.0 and 7.1 complain thusly:
4252      #   icc: Command line warning: ignoring option '-M'; no argument required
4253      # The diagnosis changed in icc 8.0:
4254      #   icc: Command line remark: option '-MP' not supported
4255      if (grep 'ignoring option' conftest.err ||
4256          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4257        am_cv_CC_dependencies_compiler_type=$depmode
4258        break
4259      fi
4260    fi
4261  done
4262
4263  cd ..
4264  rm -rf conftest.dir
4265else
4266  am_cv_CC_dependencies_compiler_type=none
4267fi
4268
4269fi
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4271$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4272CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4273
4274 if
4275  test "x$enable_dependency_tracking" != xno \
4276  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4277  am__fastdepCC_TRUE=
4278  am__fastdepCC_FALSE='#'
4279else
4280  am__fastdepCC_TRUE='#'
4281  am__fastdepCC_FALSE=
4282fi
4283
4284
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4286$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4287if ${ac_cv_prog_cc_c99+:} false; then :
4288  $as_echo_n "(cached) " >&6
4289else
4290  ac_cv_prog_cc_c99=no
4291ac_save_CC=$CC
4292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h.  */
4294#include <stdarg.h>
4295#include <stdbool.h>
4296#include <stdlib.h>
4297#include <wchar.h>
4298#include <stdio.h>
4299
4300// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4301#define debug(...) fprintf (stderr, __VA_ARGS__)
4302#define showlist(...) puts (#__VA_ARGS__)
4303#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4304static void
4305test_varargs_macros (void)
4306{
4307  int x = 1234;
4308  int y = 5678;
4309  debug ("Flag");
4310  debug ("X = %d\n", x);
4311  showlist (The first, second, and third items.);
4312  report (x>y, "x is %d but y is %d", x, y);
4313}
4314
4315// Check long long types.
4316#define BIG64 18446744073709551615ull
4317#define BIG32 4294967295ul
4318#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4319#if !BIG_OK
4320  your preprocessor is broken;
4321#endif
4322#if BIG_OK
4323#else
4324  your preprocessor is broken;
4325#endif
4326static long long int bignum = -9223372036854775807LL;
4327static unsigned long long int ubignum = BIG64;
4328
4329struct incomplete_array
4330{
4331  int datasize;
4332  double data[];
4333};
4334
4335struct named_init {
4336  int number;
4337  const wchar_t *name;
4338  double average;
4339};
4340
4341typedef const char *ccp;
4342
4343static inline int
4344test_restrict (ccp restrict text)
4345{
4346  // See if C++-style comments work.
4347  // Iterate through items via the restricted pointer.
4348  // Also check for declarations in for loops.
4349  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4350    continue;
4351  return 0;
4352}
4353
4354// Check varargs and va_copy.
4355static void
4356test_varargs (const char *format, ...)
4357{
4358  va_list args;
4359  va_start (args, format);
4360  va_list args_copy;
4361  va_copy (args_copy, args);
4362
4363  const char *str;
4364  int number;
4365  float fnumber;
4366
4367  while (*format)
4368    {
4369      switch (*format++)
4370	{
4371	case 's': // string
4372	  str = va_arg (args_copy, const char *);
4373	  break;
4374	case 'd': // int
4375	  number = va_arg (args_copy, int);
4376	  break;
4377	case 'f': // float
4378	  fnumber = va_arg (args_copy, double);
4379	  break;
4380	default:
4381	  break;
4382	}
4383    }
4384  va_end (args_copy);
4385  va_end (args);
4386}
4387
4388int
4389main ()
4390{
4391
4392  // Check bool.
4393  _Bool success = false;
4394
4395  // Check restrict.
4396  if (test_restrict ("String literal") == 0)
4397    success = true;
4398  char *restrict newvar = "Another string";
4399
4400  // Check varargs.
4401  test_varargs ("s, d' f .", "string", 65, 34.234);
4402  test_varargs_macros ();
4403
4404  // Check flexible array members.
4405  struct incomplete_array *ia =
4406    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4407  ia->datasize = 10;
4408  for (int i = 0; i < ia->datasize; ++i)
4409    ia->data[i] = i * 1.234;
4410
4411  // Check named initializers.
4412  struct named_init ni = {
4413    .number = 34,
4414    .name = L"Test wide string",
4415    .average = 543.34343,
4416  };
4417
4418  ni.number = 58;
4419
4420  int dynamic_array[ni.number];
4421  dynamic_array[ni.number - 1] = 543;
4422
4423  // work around unused variable warnings
4424  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4425	  || dynamic_array[ni.number - 1] != 543);
4426
4427  ;
4428  return 0;
4429}
4430_ACEOF
4431for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4432do
4433  CC="$ac_save_CC $ac_arg"
4434  if ac_fn_c_try_compile "$LINENO"; then :
4435  ac_cv_prog_cc_c99=$ac_arg
4436fi
4437rm -f core conftest.err conftest.$ac_objext
4438  test "x$ac_cv_prog_cc_c99" != "xno" && break
4439done
4440rm -f conftest.$ac_ext
4441CC=$ac_save_CC
4442
4443fi
4444# AC_CACHE_VAL
4445case "x$ac_cv_prog_cc_c99" in
4446  x)
4447    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4448$as_echo "none needed" >&6; } ;;
4449  xno)
4450    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4451$as_echo "unsupported" >&6; } ;;
4452  *)
4453    CC="$CC $ac_cv_prog_cc_c99"
4454    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4455$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4456esac
4457if test "x$ac_cv_prog_cc_c99" != xno; then :
4458
4459fi
4460
4461
4462
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4464$as_echo_n "checking whether ln -s works... " >&6; }
4465LN_S=$as_ln_s
4466if test "$LN_S" = "ln -s"; then
4467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4468$as_echo "yes" >&6; }
4469else
4470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4471$as_echo "no, using $LN_S" >&6; }
4472fi
4473
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4475$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4476set x ${MAKE-make}
4477ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4478if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4479  $as_echo_n "(cached) " >&6
4480else
4481  cat >conftest.make <<\_ACEOF
4482SHELL = /bin/sh
4483all:
4484	@echo '@@@%%%=$(MAKE)=@@@%%%'
4485_ACEOF
4486# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4487case `${MAKE-make} -f conftest.make 2>/dev/null` in
4488  *@@@%%%=?*=@@@%%%*)
4489    eval ac_cv_prog_make_${ac_make}_set=yes;;
4490  *)
4491    eval ac_cv_prog_make_${ac_make}_set=no;;
4492esac
4493rm -f conftest.make
4494fi
4495if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4497$as_echo "yes" >&6; }
4498  SET_MAKE=
4499else
4500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4501$as_echo "no" >&6; }
4502  SET_MAKE="MAKE=${MAKE-make}"
4503fi
4504
4505enable_dlopen=yes
4506
4507
4508
4509case `pwd` in
4510  *\ * | *\	*)
4511    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4512$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4513esac
4514
4515
4516
4517macro_version='2.4.2'
4518macro_revision='1.3337'
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532ltmain="$ac_aux_dir/ltmain.sh"
4533
4534# Backslashify metacharacters that are still active within
4535# double-quoted strings.
4536sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4537
4538# Same as above, but do not quote variable references.
4539double_quote_subst='s/\(["`\\]\)/\\\1/g'
4540
4541# Sed substitution to delay expansion of an escaped shell variable in a
4542# double_quote_subst'ed string.
4543delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4544
4545# Sed substitution to delay expansion of an escaped single quote.
4546delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4547
4548# Sed substitution to avoid accidental globbing in evaled expressions
4549no_glob_subst='s/\*/\\\*/g'
4550
4551ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4552ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4553ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4554
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4556$as_echo_n "checking how to print strings... " >&6; }
4557# Test print first, because it will be a builtin if present.
4558if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4559   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4560  ECHO='print -r --'
4561elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4562  ECHO='printf %s\n'
4563else
4564  # Use this function as a fallback that always works.
4565  func_fallback_echo ()
4566  {
4567    eval 'cat <<_LTECHO_EOF
4568$1
4569_LTECHO_EOF'
4570  }
4571  ECHO='func_fallback_echo'
4572fi
4573
4574# func_echo_all arg...
4575# Invoke $ECHO with all args, space-separated.
4576func_echo_all ()
4577{
4578    $ECHO ""
4579}
4580
4581case "$ECHO" in
4582  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4583$as_echo "printf" >&6; } ;;
4584  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4585$as_echo "print -r" >&6; } ;;
4586  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4587$as_echo "cat" >&6; } ;;
4588esac
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4604$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4605if ${ac_cv_path_SED+:} false; then :
4606  $as_echo_n "(cached) " >&6
4607else
4608            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4609     for ac_i in 1 2 3 4 5 6 7; do
4610       ac_script="$ac_script$as_nl$ac_script"
4611     done
4612     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4613     { ac_script=; unset ac_script;}
4614     if test -z "$SED"; then
4615  ac_path_SED_found=false
4616  # Loop through the user's path and test for each of PROGNAME-LIST
4617  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618for as_dir in $PATH
4619do
4620  IFS=$as_save_IFS
4621  test -z "$as_dir" && as_dir=.
4622    for ac_prog in sed gsed; do
4623    for ac_exec_ext in '' $ac_executable_extensions; do
4624      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4625      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4626# Check for GNU ac_path_SED and select it if it is found.
4627  # Check for GNU $ac_path_SED
4628case `"$ac_path_SED" --version 2>&1` in
4629*GNU*)
4630  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4631*)
4632  ac_count=0
4633  $as_echo_n 0123456789 >"conftest.in"
4634  while :
4635  do
4636    cat "conftest.in" "conftest.in" >"conftest.tmp"
4637    mv "conftest.tmp" "conftest.in"
4638    cp "conftest.in" "conftest.nl"
4639    $as_echo '' >> "conftest.nl"
4640    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4641    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4642    as_fn_arith $ac_count + 1 && ac_count=$as_val
4643    if test $ac_count -gt ${ac_path_SED_max-0}; then
4644      # Best one so far, save it but keep looking for a better one
4645      ac_cv_path_SED="$ac_path_SED"
4646      ac_path_SED_max=$ac_count
4647    fi
4648    # 10*(2^10) chars as input seems more than enough
4649    test $ac_count -gt 10 && break
4650  done
4651  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4652esac
4653
4654      $ac_path_SED_found && break 3
4655    done
4656  done
4657  done
4658IFS=$as_save_IFS
4659  if test -z "$ac_cv_path_SED"; then
4660    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4661  fi
4662else
4663  ac_cv_path_SED=$SED
4664fi
4665
4666fi
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4668$as_echo "$ac_cv_path_SED" >&6; }
4669 SED="$ac_cv_path_SED"
4670  rm -f conftest.sed
4671
4672test -z "$SED" && SED=sed
4673Xsed="$SED -e 1s/^X//"
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687test x$GREP = x && # Extract the first word of "grep$EXEEXT", so it can be a program name with args.
4688set dummy grep$EXEEXT; ac_word=$2
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690$as_echo_n "checking for $ac_word... " >&6; }
4691if ${ac_cv_path_GREP+:} false; then :
4692  $as_echo_n "(cached) " >&6
4693else
4694  case $GREP in
4695  [\\/]* | ?:[\\/]*)
4696  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4697  ;;
4698  *)
4699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH
4701do
4702  IFS=$as_save_IFS
4703  test -z "$as_dir" && as_dir=.
4704    for ac_exec_ext in '' $ac_executable_extensions; do
4705  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708    break 2
4709  fi
4710done
4711  done
4712IFS=$as_save_IFS
4713
4714  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep$EXEEXT"
4715  ;;
4716esac
4717fi
4718GREP=$ac_cv_path_GREP
4719if test -n "$GREP"; then
4720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
4721$as_echo "$GREP" >&6; }
4722else
4723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724$as_echo "no" >&6; }
4725fi
4726
4727
4728test x$GREP = x && as_fn_error $? "no acceptable grep found in \$PATH" "$LINENO" 5
4729
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4731$as_echo_n "checking for egrep... " >&6; }
4732if ${ac_cv_path_EGREP+:} false; then :
4733  $as_echo_n "(cached) " >&6
4734else
4735  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4736   then ac_cv_path_EGREP="$GREP -E"
4737   else
4738     if test -z "$EGREP"; then
4739  ac_path_EGREP_found=false
4740  # Loop through the user's path and test for each of PROGNAME-LIST
4741  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4743do
4744  IFS=$as_save_IFS
4745  test -z "$as_dir" && as_dir=.
4746    for ac_prog in egrep; do
4747    for ac_exec_ext in '' $ac_executable_extensions; do
4748      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4749      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4750# Check for GNU ac_path_EGREP and select it if it is found.
4751  # Check for GNU $ac_path_EGREP
4752case `"$ac_path_EGREP" --version 2>&1` in
4753*GNU*)
4754  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4755*)
4756  ac_count=0
4757  $as_echo_n 0123456789 >"conftest.in"
4758  while :
4759  do
4760    cat "conftest.in" "conftest.in" >"conftest.tmp"
4761    mv "conftest.tmp" "conftest.in"
4762    cp "conftest.in" "conftest.nl"
4763    $as_echo 'EGREP' >> "conftest.nl"
4764    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4765    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4766    as_fn_arith $ac_count + 1 && ac_count=$as_val
4767    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4768      # Best one so far, save it but keep looking for a better one
4769      ac_cv_path_EGREP="$ac_path_EGREP"
4770      ac_path_EGREP_max=$ac_count
4771    fi
4772    # 10*(2^10) chars as input seems more than enough
4773    test $ac_count -gt 10 && break
4774  done
4775  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4776esac
4777
4778      $ac_path_EGREP_found && break 3
4779    done
4780  done
4781  done
4782IFS=$as_save_IFS
4783  if test -z "$ac_cv_path_EGREP"; then
4784    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4785  fi
4786else
4787  ac_cv_path_EGREP=$EGREP
4788fi
4789
4790   fi
4791fi
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4793$as_echo "$ac_cv_path_EGREP" >&6; }
4794 EGREP="$ac_cv_path_EGREP"
4795
4796
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4798$as_echo_n "checking for fgrep... " >&6; }
4799if ${ac_cv_path_FGREP+:} false; then :
4800  $as_echo_n "(cached) " >&6
4801else
4802  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4803   then ac_cv_path_FGREP="$GREP -F"
4804   else
4805     if test -z "$FGREP"; then
4806  ac_path_FGREP_found=false
4807  # Loop through the user's path and test for each of PROGNAME-LIST
4808  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4810do
4811  IFS=$as_save_IFS
4812  test -z "$as_dir" && as_dir=.
4813    for ac_prog in fgrep; do
4814    for ac_exec_ext in '' $ac_executable_extensions; do
4815      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4816      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4817# Check for GNU ac_path_FGREP and select it if it is found.
4818  # Check for GNU $ac_path_FGREP
4819case `"$ac_path_FGREP" --version 2>&1` in
4820*GNU*)
4821  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4822*)
4823  ac_count=0
4824  $as_echo_n 0123456789 >"conftest.in"
4825  while :
4826  do
4827    cat "conftest.in" "conftest.in" >"conftest.tmp"
4828    mv "conftest.tmp" "conftest.in"
4829    cp "conftest.in" "conftest.nl"
4830    $as_echo 'FGREP' >> "conftest.nl"
4831    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4832    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4833    as_fn_arith $ac_count + 1 && ac_count=$as_val
4834    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4835      # Best one so far, save it but keep looking for a better one
4836      ac_cv_path_FGREP="$ac_path_FGREP"
4837      ac_path_FGREP_max=$ac_count
4838    fi
4839    # 10*(2^10) chars as input seems more than enough
4840    test $ac_count -gt 10 && break
4841  done
4842  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4843esac
4844
4845      $ac_path_FGREP_found && break 3
4846    done
4847  done
4848  done
4849IFS=$as_save_IFS
4850  if test -z "$ac_cv_path_FGREP"; then
4851    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4852  fi
4853else
4854  ac_cv_path_FGREP=$FGREP
4855fi
4856
4857   fi
4858fi
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4860$as_echo "$ac_cv_path_FGREP" >&6; }
4861 FGREP="$ac_cv_path_FGREP"
4862
4863
4864test -z "$GREP" && GREP=grep
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884# Check whether --with-gnu-ld was given.
4885if test "${with_gnu_ld+set}" = set; then :
4886  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4887else
4888  with_gnu_ld=no
4889fi
4890
4891ac_prog=ld
4892if test "$GCC" = yes; then
4893  # Check if gcc -print-prog-name=ld gives a path.
4894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4895$as_echo_n "checking for ld used by $CC... " >&6; }
4896  case $host in
4897  *-*-mingw*)
4898    # gcc leaves a trailing carriage return which upsets mingw
4899    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4900  *)
4901    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4902  esac
4903  case $ac_prog in
4904    # Accept absolute paths.
4905    [\\/]* | ?:[\\/]*)
4906      re_direlt='/[^/][^/]*/\.\./'
4907      # Canonicalize the pathname of ld
4908      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4909      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4910	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4911      done
4912      test -z "$LD" && LD="$ac_prog"
4913      ;;
4914  "")
4915    # If it fails, then pretend we aren't using GCC.
4916    ac_prog=ld
4917    ;;
4918  *)
4919    # If it is relative, then search for the first ld in PATH.
4920    with_gnu_ld=unknown
4921    ;;
4922  esac
4923elif test "$with_gnu_ld" = yes; then
4924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4925$as_echo_n "checking for GNU ld... " >&6; }
4926else
4927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4928$as_echo_n "checking for non-GNU ld... " >&6; }
4929fi
4930if ${lt_cv_path_LD+:} false; then :
4931  $as_echo_n "(cached) " >&6
4932else
4933  if test -z "$LD"; then
4934  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4935  for ac_dir in $PATH; do
4936    IFS="$lt_save_ifs"
4937    test -z "$ac_dir" && ac_dir=.
4938    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4939      lt_cv_path_LD="$ac_dir/$ac_prog"
4940      # Check to see if the program is GNU ld.  I'd rather use --version,
4941      # but apparently some variants of GNU ld only accept -v.
4942      # Break only if it was the GNU/non-GNU ld that we prefer.
4943      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4944      *GNU* | *'with BFD'*)
4945	test "$with_gnu_ld" != no && break
4946	;;
4947      *)
4948	test "$with_gnu_ld" != yes && break
4949	;;
4950      esac
4951    fi
4952  done
4953  IFS="$lt_save_ifs"
4954else
4955  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4956fi
4957fi
4958
4959LD="$lt_cv_path_LD"
4960if test -n "$LD"; then
4961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4962$as_echo "$LD" >&6; }
4963else
4964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965$as_echo "no" >&6; }
4966fi
4967test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4969$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4970if ${lt_cv_prog_gnu_ld+:} false; then :
4971  $as_echo_n "(cached) " >&6
4972else
4973  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4974case `$LD -v 2>&1 </dev/null` in
4975*GNU* | *'with BFD'*)
4976  lt_cv_prog_gnu_ld=yes
4977  ;;
4978*)
4979  lt_cv_prog_gnu_ld=no
4980  ;;
4981esac
4982fi
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4984$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4985with_gnu_ld=$lt_cv_prog_gnu_ld
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4996$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4997if ${lt_cv_path_NM+:} false; then :
4998  $as_echo_n "(cached) " >&6
4999else
5000  if test -n "$NM"; then
5001  # Let the user override the test.
5002  lt_cv_path_NM="$NM"
5003else
5004  lt_nm_to_check="${ac_tool_prefix}nm"
5005  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5006    lt_nm_to_check="$lt_nm_to_check nm"
5007  fi
5008  for lt_tmp_nm in $lt_nm_to_check; do
5009    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5010    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5011      IFS="$lt_save_ifs"
5012      test -z "$ac_dir" && ac_dir=.
5013      tmp_nm="$ac_dir/$lt_tmp_nm"
5014      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5015	# Check to see if the nm accepts a BSD-compat flag.
5016	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5017	#   nm: unknown option "B" ignored
5018	# Tru64's nm complains that /dev/null is an invalid object file
5019	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5020	*/dev/null* | *'Invalid file or object type'*)
5021	  lt_cv_path_NM="$tmp_nm -B"
5022	  break
5023	  ;;
5024	*)
5025	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5026	  */dev/null*)
5027	    lt_cv_path_NM="$tmp_nm -p"
5028	    break
5029	    ;;
5030	  *)
5031	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5032	    continue # so that we can try to find one that supports BSD flags
5033	    ;;
5034	  esac
5035	  ;;
5036	esac
5037      fi
5038    done
5039    IFS="$lt_save_ifs"
5040  done
5041  : ${lt_cv_path_NM=no}
5042fi
5043fi
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5045$as_echo "$lt_cv_path_NM" >&6; }
5046if test "$lt_cv_path_NM" != "no"; then
5047  NM="$lt_cv_path_NM"
5048else
5049  # Didn't find any BSD compatible name lister, look for dumpbin.
5050  if test -n "$DUMPBIN"; then :
5051    # Let the user override the test.
5052  else
5053    if test -n "$ac_tool_prefix"; then
5054  for ac_prog in dumpbin "link -dump"
5055  do
5056    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5057set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059$as_echo_n "checking for $ac_word... " >&6; }
5060if ${ac_cv_prog_DUMPBIN+:} false; then :
5061  $as_echo_n "(cached) " >&6
5062else
5063  if test -n "$DUMPBIN"; then
5064  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5065else
5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069  IFS=$as_save_IFS
5070  test -z "$as_dir" && as_dir=.
5071    for ac_exec_ext in '' $ac_executable_extensions; do
5072  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075    break 2
5076  fi
5077done
5078  done
5079IFS=$as_save_IFS
5080
5081fi
5082fi
5083DUMPBIN=$ac_cv_prog_DUMPBIN
5084if test -n "$DUMPBIN"; then
5085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5086$as_echo "$DUMPBIN" >&6; }
5087else
5088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089$as_echo "no" >&6; }
5090fi
5091
5092
5093    test -n "$DUMPBIN" && break
5094  done
5095fi
5096if test -z "$DUMPBIN"; then
5097  ac_ct_DUMPBIN=$DUMPBIN
5098  for ac_prog in dumpbin "link -dump"
5099do
5100  # Extract the first word of "$ac_prog", so it can be a program name with args.
5101set dummy $ac_prog; ac_word=$2
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103$as_echo_n "checking for $ac_word... " >&6; }
5104if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5105  $as_echo_n "(cached) " >&6
5106else
5107  if test -n "$ac_ct_DUMPBIN"; then
5108  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5109else
5110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111for as_dir in $PATH
5112do
5113  IFS=$as_save_IFS
5114  test -z "$as_dir" && as_dir=.
5115    for ac_exec_ext in '' $ac_executable_extensions; do
5116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5119    break 2
5120  fi
5121done
5122  done
5123IFS=$as_save_IFS
5124
5125fi
5126fi
5127ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5128if test -n "$ac_ct_DUMPBIN"; then
5129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5130$as_echo "$ac_ct_DUMPBIN" >&6; }
5131else
5132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133$as_echo "no" >&6; }
5134fi
5135
5136
5137  test -n "$ac_ct_DUMPBIN" && break
5138done
5139
5140  if test "x$ac_ct_DUMPBIN" = x; then
5141    DUMPBIN=":"
5142  else
5143    case $cross_compiling:$ac_tool_warned in
5144yes:)
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5147ac_tool_warned=yes ;;
5148esac
5149    DUMPBIN=$ac_ct_DUMPBIN
5150  fi
5151fi
5152
5153    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5154    *COFF*)
5155      DUMPBIN="$DUMPBIN -symbols"
5156      ;;
5157    *)
5158      DUMPBIN=:
5159      ;;
5160    esac
5161  fi
5162
5163  if test "$DUMPBIN" != ":"; then
5164    NM="$DUMPBIN"
5165  fi
5166fi
5167test -z "$NM" && NM=nm
5168
5169
5170
5171
5172
5173
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5175$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5176if ${lt_cv_nm_interface+:} false; then :
5177  $as_echo_n "(cached) " >&6
5178else
5179  lt_cv_nm_interface="BSD nm"
5180  echo "int some_variable = 0;" > conftest.$ac_ext
5181  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5182  (eval "$ac_compile" 2>conftest.err)
5183  cat conftest.err >&5
5184  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5185  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5186  cat conftest.err >&5
5187  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5188  cat conftest.out >&5
5189  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5190    lt_cv_nm_interface="MS dumpbin"
5191  fi
5192  rm -f conftest*
5193fi
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5195$as_echo "$lt_cv_nm_interface" >&6; }
5196
5197# find the maximum length of command line arguments
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5199$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5200if ${lt_cv_sys_max_cmd_len+:} false; then :
5201  $as_echo_n "(cached) " >&6
5202else
5203    i=0
5204  teststring="ABCD"
5205
5206  case $build_os in
5207  msdosdjgpp*)
5208    # On DJGPP, this test can blow up pretty badly due to problems in libc
5209    # (any single argument exceeding 2000 bytes causes a buffer overrun
5210    # during glob expansion).  Even if it were fixed, the result of this
5211    # check would be larger than it should be.
5212    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5213    ;;
5214
5215  gnu*)
5216    # Under GNU Hurd, this test is not required because there is
5217    # no limit to the length of command line arguments.
5218    # Libtool will interpret -1 as no limit whatsoever
5219    lt_cv_sys_max_cmd_len=-1;
5220    ;;
5221
5222  cygwin* | mingw* | cegcc*)
5223    # On Win9x/ME, this test blows up -- it succeeds, but takes
5224    # about 5 minutes as the teststring grows exponentially.
5225    # Worse, since 9x/ME are not pre-emptively multitasking,
5226    # you end up with a "frozen" computer, even though with patience
5227    # the test eventually succeeds (with a max line length of 256k).
5228    # Instead, let's just punt: use the minimum linelength reported by
5229    # all of the supported platforms: 8192 (on NT/2K/XP).
5230    lt_cv_sys_max_cmd_len=8192;
5231    ;;
5232
5233  mint*)
5234    # On MiNT this can take a long time and run out of memory.
5235    lt_cv_sys_max_cmd_len=8192;
5236    ;;
5237
5238  amigaos*)
5239    # On AmigaOS with pdksh, this test takes hours, literally.
5240    # So we just punt and use a minimum line length of 8192.
5241    lt_cv_sys_max_cmd_len=8192;
5242    ;;
5243
5244  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5245    # This has been around since 386BSD, at least.  Likely further.
5246    if test -x /sbin/sysctl; then
5247      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5248    elif test -x /usr/sbin/sysctl; then
5249      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5250    else
5251      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5252    fi
5253    # And add a safety zone
5254    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5255    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5256    ;;
5257
5258  interix*)
5259    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5260    lt_cv_sys_max_cmd_len=196608
5261    ;;
5262
5263  os2*)
5264    # The test takes a long time on OS/2.
5265    lt_cv_sys_max_cmd_len=8192
5266    ;;
5267
5268  osf*)
5269    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5270    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5271    # nice to cause kernel panics so lets avoid the loop below.
5272    # First set a reasonable default.
5273    lt_cv_sys_max_cmd_len=16384
5274    #
5275    if test -x /sbin/sysconfig; then
5276      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5277        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5278      esac
5279    fi
5280    ;;
5281  sco3.2v5*)
5282    lt_cv_sys_max_cmd_len=102400
5283    ;;
5284  sysv5* | sco5v6* | sysv4.2uw2*)
5285    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5286    if test -n "$kargmax"; then
5287      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5288    else
5289      lt_cv_sys_max_cmd_len=32768
5290    fi
5291    ;;
5292  *)
5293    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5294    if test -n "$lt_cv_sys_max_cmd_len"; then
5295      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5296      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5297    else
5298      # Make teststring a little bigger before we do anything with it.
5299      # a 1K string should be a reasonable start.
5300      for i in 1 2 3 4 5 6 7 8 ; do
5301        teststring=$teststring$teststring
5302      done
5303      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5304      # If test is not a shell built-in, we'll probably end up computing a
5305      # maximum length that is only half of the actual maximum length, but
5306      # we can't tell.
5307      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5308	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5309	      test $i != 17 # 1/2 MB should be enough
5310      do
5311        i=`expr $i + 1`
5312        teststring=$teststring$teststring
5313      done
5314      # Only check the string length outside the loop.
5315      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5316      teststring=
5317      # Add a significant safety factor because C++ compilers can tack on
5318      # massive amounts of additional arguments before passing them to the
5319      # linker.  It appears as though 1/2 is a usable value.
5320      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5321    fi
5322    ;;
5323  esac
5324
5325fi
5326
5327if test -n $lt_cv_sys_max_cmd_len ; then
5328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5329$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5330else
5331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5332$as_echo "none" >&6; }
5333fi
5334max_cmd_len=$lt_cv_sys_max_cmd_len
5335
5336
5337
5338
5339
5340
5341: ${CP="cp -f"}
5342: ${MV="mv -f"}
5343: ${RM="rm -f"}
5344
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5346$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5347# Try some XSI features
5348xsi_shell=no
5349( _lt_dummy="a/b/c"
5350  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5351      = c,a/b,b/c, \
5352    && eval 'test $(( 1 + 1 )) -eq 2 \
5353    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5354  && xsi_shell=yes
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5356$as_echo "$xsi_shell" >&6; }
5357
5358
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5360$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5361lt_shell_append=no
5362( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5363    >/dev/null 2>&1 \
5364  && lt_shell_append=yes
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5366$as_echo "$lt_shell_append" >&6; }
5367
5368
5369if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5370  lt_unset=unset
5371else
5372  lt_unset=false
5373fi
5374
5375
5376
5377
5378
5379# test EBCDIC or ASCII
5380case `echo X|tr X '\101'` in
5381 A) # ASCII based system
5382    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5383  lt_SP2NL='tr \040 \012'
5384  lt_NL2SP='tr \015\012 \040\040'
5385  ;;
5386 *) # EBCDIC based system
5387  lt_SP2NL='tr \100 \n'
5388  lt_NL2SP='tr \r\n \100\100'
5389  ;;
5390esac
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5401$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5402if ${lt_cv_to_host_file_cmd+:} false; then :
5403  $as_echo_n "(cached) " >&6
5404else
5405  case $host in
5406  *-*-mingw* )
5407    case $build in
5408      *-*-mingw* ) # actually msys
5409        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5410        ;;
5411      *-*-cygwin* )
5412        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5413        ;;
5414      * ) # otherwise, assume *nix
5415        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5416        ;;
5417    esac
5418    ;;
5419  *-*-cygwin* )
5420    case $build in
5421      *-*-mingw* ) # actually msys
5422        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5423        ;;
5424      *-*-cygwin* )
5425        lt_cv_to_host_file_cmd=func_convert_file_noop
5426        ;;
5427      * ) # otherwise, assume *nix
5428        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5429        ;;
5430    esac
5431    ;;
5432  * ) # unhandled hosts (and "normal" native builds)
5433    lt_cv_to_host_file_cmd=func_convert_file_noop
5434    ;;
5435esac
5436
5437fi
5438
5439to_host_file_cmd=$lt_cv_to_host_file_cmd
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5441$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5442
5443
5444
5445
5446
5447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5448$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5449if ${lt_cv_to_tool_file_cmd+:} false; then :
5450  $as_echo_n "(cached) " >&6
5451else
5452  #assume ordinary cross tools, or native build.
5453lt_cv_to_tool_file_cmd=func_convert_file_noop
5454case $host in
5455  *-*-mingw* )
5456    case $build in
5457      *-*-mingw* ) # actually msys
5458        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5459        ;;
5460    esac
5461    ;;
5462esac
5463
5464fi
5465
5466to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5468$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5469
5470
5471
5472
5473
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5475$as_echo_n "checking for $LD option to reload object files... " >&6; }
5476if ${lt_cv_ld_reload_flag+:} false; then :
5477  $as_echo_n "(cached) " >&6
5478else
5479  lt_cv_ld_reload_flag='-r'
5480fi
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5482$as_echo "$lt_cv_ld_reload_flag" >&6; }
5483reload_flag=$lt_cv_ld_reload_flag
5484case $reload_flag in
5485"" | " "*) ;;
5486*) reload_flag=" $reload_flag" ;;
5487esac
5488reload_cmds='$LD$reload_flag -o $output$reload_objs'
5489case $host_os in
5490  cygwin* | mingw* | pw32* | cegcc*)
5491    if test "$GCC" != yes; then
5492      reload_cmds=false
5493    fi
5494    ;;
5495  darwin*)
5496    if test "$GCC" = yes; then
5497      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5498    else
5499      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5500    fi
5501    ;;
5502esac
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512if test -n "$ac_tool_prefix"; then
5513  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5514set dummy ${ac_tool_prefix}objdump; ac_word=$2
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516$as_echo_n "checking for $ac_word... " >&6; }
5517if ${ac_cv_prog_OBJDUMP+:} false; then :
5518  $as_echo_n "(cached) " >&6
5519else
5520  if test -n "$OBJDUMP"; then
5521  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5522else
5523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524for as_dir in $PATH
5525do
5526  IFS=$as_save_IFS
5527  test -z "$as_dir" && as_dir=.
5528    for ac_exec_ext in '' $ac_executable_extensions; do
5529  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532    break 2
5533  fi
5534done
5535  done
5536IFS=$as_save_IFS
5537
5538fi
5539fi
5540OBJDUMP=$ac_cv_prog_OBJDUMP
5541if test -n "$OBJDUMP"; then
5542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5543$as_echo "$OBJDUMP" >&6; }
5544else
5545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546$as_echo "no" >&6; }
5547fi
5548
5549
5550fi
5551if test -z "$ac_cv_prog_OBJDUMP"; then
5552  ac_ct_OBJDUMP=$OBJDUMP
5553  # Extract the first word of "objdump", so it can be a program name with args.
5554set dummy objdump; ac_word=$2
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556$as_echo_n "checking for $ac_word... " >&6; }
5557if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5558  $as_echo_n "(cached) " >&6
5559else
5560  if test -n "$ac_ct_OBJDUMP"; then
5561  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5562else
5563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564for as_dir in $PATH
5565do
5566  IFS=$as_save_IFS
5567  test -z "$as_dir" && as_dir=.
5568    for ac_exec_ext in '' $ac_executable_extensions; do
5569  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572    break 2
5573  fi
5574done
5575  done
5576IFS=$as_save_IFS
5577
5578fi
5579fi
5580ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5581if test -n "$ac_ct_OBJDUMP"; then
5582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5583$as_echo "$ac_ct_OBJDUMP" >&6; }
5584else
5585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586$as_echo "no" >&6; }
5587fi
5588
5589  if test "x$ac_ct_OBJDUMP" = x; then
5590    OBJDUMP="false"
5591  else
5592    case $cross_compiling:$ac_tool_warned in
5593yes:)
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5596ac_tool_warned=yes ;;
5597esac
5598    OBJDUMP=$ac_ct_OBJDUMP
5599  fi
5600else
5601  OBJDUMP="$ac_cv_prog_OBJDUMP"
5602fi
5603
5604test -z "$OBJDUMP" && OBJDUMP=objdump
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5615$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5616if ${lt_cv_deplibs_check_method+:} false; then :
5617  $as_echo_n "(cached) " >&6
5618else
5619  lt_cv_file_magic_cmd='$MAGIC_CMD'
5620lt_cv_file_magic_test_file=
5621lt_cv_deplibs_check_method='unknown'
5622# Need to set the preceding variable on all platforms that support
5623# interlibrary dependencies.
5624# 'none' -- dependencies not supported.
5625# `unknown' -- same as none, but documents that we really don't know.
5626# 'pass_all' -- all dependencies passed with no checks.
5627# 'test_compile' -- check by making test program.
5628# 'file_magic [[regex]]' -- check by looking for files in library path
5629# which responds to the $file_magic_cmd with a given extended regex.
5630# If you have `file' or equivalent on your system and you're not sure
5631# whether `pass_all' will *always* work, you probably want this one.
5632
5633case $host_os in
5634aix[4-9]*)
5635  lt_cv_deplibs_check_method=pass_all
5636  ;;
5637
5638beos*)
5639  lt_cv_deplibs_check_method=pass_all
5640  ;;
5641
5642bsdi[45]*)
5643  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5644  lt_cv_file_magic_cmd='/usr/bin/file -L'
5645  lt_cv_file_magic_test_file=/shlib/libc.so
5646  ;;
5647
5648cygwin*)
5649  # func_win32_libid is a shell function defined in ltmain.sh
5650  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5651  lt_cv_file_magic_cmd='func_win32_libid'
5652  ;;
5653
5654mingw* | pw32*)
5655  # Base MSYS/MinGW do not provide the 'file' command needed by
5656  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5657  # unless we find 'file', for example because we are cross-compiling.
5658  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5659  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5660    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5661    lt_cv_file_magic_cmd='func_win32_libid'
5662  else
5663    # Keep this pattern in sync with the one in func_win32_libid.
5664    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5665    lt_cv_file_magic_cmd='$OBJDUMP -f'
5666  fi
5667  ;;
5668
5669cegcc*)
5670  # use the weaker test based on 'objdump'. See mingw*.
5671  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5672  lt_cv_file_magic_cmd='$OBJDUMP -f'
5673  ;;
5674
5675darwin* | rhapsody*)
5676  lt_cv_deplibs_check_method=pass_all
5677  ;;
5678
5679freebsd* | dragonfly*)
5680  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5681    case $host_cpu in
5682    i*86 )
5683      # Not sure whether the presence of OpenBSD here was a mistake.
5684      # Let's accept both of them until this is cleared up.
5685      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5686      lt_cv_file_magic_cmd=/usr/bin/file
5687      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5688      ;;
5689    esac
5690  else
5691    lt_cv_deplibs_check_method=pass_all
5692  fi
5693  ;;
5694
5695gnu*)
5696  lt_cv_deplibs_check_method=pass_all
5697  ;;
5698
5699haiku*)
5700  lt_cv_deplibs_check_method=pass_all
5701  ;;
5702
5703hpux10.20* | hpux11*)
5704  lt_cv_file_magic_cmd=/usr/bin/file
5705  case $host_cpu in
5706  ia64*)
5707    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5708    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5709    ;;
5710  hppa*64*)
5711    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]'
5712    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5713    ;;
5714  *)
5715    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5716    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5717    ;;
5718  esac
5719  ;;
5720
5721interix[3-9]*)
5722  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5723  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5724  ;;
5725
5726irix5* | irix6* | nonstopux*)
5727  case $LD in
5728  *-32|*"-32 ") libmagic=32-bit;;
5729  *-n32|*"-n32 ") libmagic=N32;;
5730  *-64|*"-64 ") libmagic=64-bit;;
5731  *) libmagic=never-match;;
5732  esac
5733  lt_cv_deplibs_check_method=pass_all
5734  ;;
5735
5736# This must be glibc/ELF.
5737linux* | k*bsd*-gnu | kopensolaris*-gnu)
5738  lt_cv_deplibs_check_method=pass_all
5739  ;;
5740
5741netbsd*)
5742  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5743    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5744  else
5745    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5746  fi
5747  ;;
5748
5749newos6*)
5750  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5751  lt_cv_file_magic_cmd=/usr/bin/file
5752  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5753  ;;
5754
5755*nto* | *qnx*)
5756  lt_cv_deplibs_check_method=pass_all
5757  ;;
5758
5759openbsd*)
5760  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5761    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5762  else
5763    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5764  fi
5765  ;;
5766
5767osf3* | osf4* | osf5*)
5768  lt_cv_deplibs_check_method=pass_all
5769  ;;
5770
5771rdos*)
5772  lt_cv_deplibs_check_method=pass_all
5773  ;;
5774
5775solaris*)
5776  lt_cv_deplibs_check_method=pass_all
5777  ;;
5778
5779sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5780  lt_cv_deplibs_check_method=pass_all
5781  ;;
5782
5783sysv4 | sysv4.3*)
5784  case $host_vendor in
5785  motorola)
5786    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]'
5787    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5788    ;;
5789  ncr)
5790    lt_cv_deplibs_check_method=pass_all
5791    ;;
5792  sequent)
5793    lt_cv_file_magic_cmd='/bin/file'
5794    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5795    ;;
5796  sni)
5797    lt_cv_file_magic_cmd='/bin/file'
5798    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5799    lt_cv_file_magic_test_file=/lib/libc.so
5800    ;;
5801  siemens)
5802    lt_cv_deplibs_check_method=pass_all
5803    ;;
5804  pc)
5805    lt_cv_deplibs_check_method=pass_all
5806    ;;
5807  esac
5808  ;;
5809
5810tpf*)
5811  lt_cv_deplibs_check_method=pass_all
5812  ;;
5813esac
5814
5815fi
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5817$as_echo "$lt_cv_deplibs_check_method" >&6; }
5818
5819file_magic_glob=
5820want_nocaseglob=no
5821if test "$build" = "$host"; then
5822  case $host_os in
5823  mingw* | pw32*)
5824    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5825      want_nocaseglob=yes
5826    else
5827      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5828    fi
5829    ;;
5830  esac
5831fi
5832
5833file_magic_cmd=$lt_cv_file_magic_cmd
5834deplibs_check_method=$lt_cv_deplibs_check_method
5835test -z "$deplibs_check_method" && deplibs_check_method=unknown
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858if test -n "$ac_tool_prefix"; then
5859  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5860set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862$as_echo_n "checking for $ac_word... " >&6; }
5863if ${ac_cv_prog_DLLTOOL+:} false; then :
5864  $as_echo_n "(cached) " >&6
5865else
5866  if test -n "$DLLTOOL"; then
5867  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5868else
5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH
5871do
5872  IFS=$as_save_IFS
5873  test -z "$as_dir" && as_dir=.
5874    for ac_exec_ext in '' $ac_executable_extensions; do
5875  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878    break 2
5879  fi
5880done
5881  done
5882IFS=$as_save_IFS
5883
5884fi
5885fi
5886DLLTOOL=$ac_cv_prog_DLLTOOL
5887if test -n "$DLLTOOL"; then
5888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5889$as_echo "$DLLTOOL" >&6; }
5890else
5891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892$as_echo "no" >&6; }
5893fi
5894
5895
5896fi
5897if test -z "$ac_cv_prog_DLLTOOL"; then
5898  ac_ct_DLLTOOL=$DLLTOOL
5899  # Extract the first word of "dlltool", so it can be a program name with args.
5900set dummy dlltool; ac_word=$2
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902$as_echo_n "checking for $ac_word... " >&6; }
5903if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5904  $as_echo_n "(cached) " >&6
5905else
5906  if test -n "$ac_ct_DLLTOOL"; then
5907  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912  IFS=$as_save_IFS
5913  test -z "$as_dir" && as_dir=.
5914    for ac_exec_ext in '' $ac_executable_extensions; do
5915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918    break 2
5919  fi
5920done
5921  done
5922IFS=$as_save_IFS
5923
5924fi
5925fi
5926ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5927if test -n "$ac_ct_DLLTOOL"; then
5928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5929$as_echo "$ac_ct_DLLTOOL" >&6; }
5930else
5931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932$as_echo "no" >&6; }
5933fi
5934
5935  if test "x$ac_ct_DLLTOOL" = x; then
5936    DLLTOOL="false"
5937  else
5938    case $cross_compiling:$ac_tool_warned in
5939yes:)
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5942ac_tool_warned=yes ;;
5943esac
5944    DLLTOOL=$ac_ct_DLLTOOL
5945  fi
5946else
5947  DLLTOOL="$ac_cv_prog_DLLTOOL"
5948fi
5949
5950test -z "$DLLTOOL" && DLLTOOL=dlltool
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5962$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5963if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5964  $as_echo_n "(cached) " >&6
5965else
5966  lt_cv_sharedlib_from_linklib_cmd='unknown'
5967
5968case $host_os in
5969cygwin* | mingw* | pw32* | cegcc*)
5970  # two different shell functions defined in ltmain.sh
5971  # decide which to use based on capabilities of $DLLTOOL
5972  case `$DLLTOOL --help 2>&1` in
5973  *--identify-strict*)
5974    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5975    ;;
5976  *)
5977    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5978    ;;
5979  esac
5980  ;;
5981*)
5982  # fallback: assume linklib IS sharedlib
5983  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5984  ;;
5985esac
5986
5987fi
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5989$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5990sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5991test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5992
5993
5994
5995
5996
5997
5998
5999
6000if test -n "$ac_tool_prefix"; then
6001  for ac_prog in ar
6002  do
6003    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6004set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006$as_echo_n "checking for $ac_word... " >&6; }
6007if ${ac_cv_prog_AR+:} false; then :
6008  $as_echo_n "(cached) " >&6
6009else
6010  if test -n "$AR"; then
6011  ac_cv_prog_AR="$AR" # Let the user override the test.
6012else
6013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014for as_dir in $PATH
6015do
6016  IFS=$as_save_IFS
6017  test -z "$as_dir" && as_dir=.
6018    for ac_exec_ext in '' $ac_executable_extensions; do
6019  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022    break 2
6023  fi
6024done
6025  done
6026IFS=$as_save_IFS
6027
6028fi
6029fi
6030AR=$ac_cv_prog_AR
6031if test -n "$AR"; then
6032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6033$as_echo "$AR" >&6; }
6034else
6035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036$as_echo "no" >&6; }
6037fi
6038
6039
6040    test -n "$AR" && break
6041  done
6042fi
6043if test -z "$AR"; then
6044  ac_ct_AR=$AR
6045  for ac_prog in ar
6046do
6047  # Extract the first word of "$ac_prog", so it can be a program name with args.
6048set dummy $ac_prog; ac_word=$2
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050$as_echo_n "checking for $ac_word... " >&6; }
6051if ${ac_cv_prog_ac_ct_AR+:} false; then :
6052  $as_echo_n "(cached) " >&6
6053else
6054  if test -n "$ac_ct_AR"; then
6055  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6056else
6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058for as_dir in $PATH
6059do
6060  IFS=$as_save_IFS
6061  test -z "$as_dir" && as_dir=.
6062    for ac_exec_ext in '' $ac_executable_extensions; do
6063  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6064    ac_cv_prog_ac_ct_AR="$ac_prog"
6065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6066    break 2
6067  fi
6068done
6069  done
6070IFS=$as_save_IFS
6071
6072fi
6073fi
6074ac_ct_AR=$ac_cv_prog_ac_ct_AR
6075if test -n "$ac_ct_AR"; then
6076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6077$as_echo "$ac_ct_AR" >&6; }
6078else
6079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080$as_echo "no" >&6; }
6081fi
6082
6083
6084  test -n "$ac_ct_AR" && break
6085done
6086
6087  if test "x$ac_ct_AR" = x; then
6088    AR="false"
6089  else
6090    case $cross_compiling:$ac_tool_warned in
6091yes:)
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6094ac_tool_warned=yes ;;
6095esac
6096    AR=$ac_ct_AR
6097  fi
6098fi
6099
6100: ${AR=ar}
6101: ${AR_FLAGS=cru}
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6114$as_echo_n "checking for archiver @FILE support... " >&6; }
6115if ${lt_cv_ar_at_file+:} false; then :
6116  $as_echo_n "(cached) " >&6
6117else
6118  lt_cv_ar_at_file=no
6119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120/* end confdefs.h.  */
6121
6122int
6123main ()
6124{
6125
6126  ;
6127  return 0;
6128}
6129_ACEOF
6130if ac_fn_c_try_compile "$LINENO"; then :
6131  echo conftest.$ac_objext > conftest.lst
6132      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6133      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6134  (eval $lt_ar_try) 2>&5
6135  ac_status=$?
6136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6137  test $ac_status = 0; }
6138      if test "$ac_status" -eq 0; then
6139	# Ensure the archiver fails upon bogus file names.
6140	rm -f conftest.$ac_objext libconftest.a
6141	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6142  (eval $lt_ar_try) 2>&5
6143  ac_status=$?
6144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6145  test $ac_status = 0; }
6146	if test "$ac_status" -ne 0; then
6147          lt_cv_ar_at_file=@
6148        fi
6149      fi
6150      rm -f conftest.* libconftest.a
6151
6152fi
6153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154
6155fi
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6157$as_echo "$lt_cv_ar_at_file" >&6; }
6158
6159if test "x$lt_cv_ar_at_file" = xno; then
6160  archiver_list_spec=
6161else
6162  archiver_list_spec=$lt_cv_ar_at_file
6163fi
6164
6165
6166
6167
6168
6169
6170
6171if test -n "$ac_tool_prefix"; then
6172  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6173set dummy ${ac_tool_prefix}strip; ac_word=$2
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175$as_echo_n "checking for $ac_word... " >&6; }
6176if ${ac_cv_prog_STRIP+:} false; then :
6177  $as_echo_n "(cached) " >&6
6178else
6179  if test -n "$STRIP"; then
6180  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6181else
6182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183for as_dir in $PATH
6184do
6185  IFS=$as_save_IFS
6186  test -z "$as_dir" && as_dir=.
6187    for ac_exec_ext in '' $ac_executable_extensions; do
6188  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6189    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191    break 2
6192  fi
6193done
6194  done
6195IFS=$as_save_IFS
6196
6197fi
6198fi
6199STRIP=$ac_cv_prog_STRIP
6200if test -n "$STRIP"; then
6201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6202$as_echo "$STRIP" >&6; }
6203else
6204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205$as_echo "no" >&6; }
6206fi
6207
6208
6209fi
6210if test -z "$ac_cv_prog_STRIP"; then
6211  ac_ct_STRIP=$STRIP
6212  # Extract the first word of "strip", so it can be a program name with args.
6213set dummy strip; ac_word=$2
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215$as_echo_n "checking for $ac_word... " >&6; }
6216if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6217  $as_echo_n "(cached) " >&6
6218else
6219  if test -n "$ac_ct_STRIP"; then
6220  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6221else
6222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223for as_dir in $PATH
6224do
6225  IFS=$as_save_IFS
6226  test -z "$as_dir" && as_dir=.
6227    for ac_exec_ext in '' $ac_executable_extensions; do
6228  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6229    ac_cv_prog_ac_ct_STRIP="strip"
6230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231    break 2
6232  fi
6233done
6234  done
6235IFS=$as_save_IFS
6236
6237fi
6238fi
6239ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6240if test -n "$ac_ct_STRIP"; then
6241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6242$as_echo "$ac_ct_STRIP" >&6; }
6243else
6244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245$as_echo "no" >&6; }
6246fi
6247
6248  if test "x$ac_ct_STRIP" = x; then
6249    STRIP=":"
6250  else
6251    case $cross_compiling:$ac_tool_warned in
6252yes:)
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6255ac_tool_warned=yes ;;
6256esac
6257    STRIP=$ac_ct_STRIP
6258  fi
6259else
6260  STRIP="$ac_cv_prog_STRIP"
6261fi
6262
6263test -z "$STRIP" && STRIP=:
6264
6265
6266
6267
6268
6269
6270if test -n "$ac_tool_prefix"; then
6271  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6272set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274$as_echo_n "checking for $ac_word... " >&6; }
6275if ${ac_cv_prog_RANLIB+:} false; then :
6276  $as_echo_n "(cached) " >&6
6277else
6278  if test -n "$RANLIB"; then
6279  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284  IFS=$as_save_IFS
6285  test -z "$as_dir" && as_dir=.
6286    for ac_exec_ext in '' $ac_executable_extensions; do
6287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290    break 2
6291  fi
6292done
6293  done
6294IFS=$as_save_IFS
6295
6296fi
6297fi
6298RANLIB=$ac_cv_prog_RANLIB
6299if test -n "$RANLIB"; then
6300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6301$as_echo "$RANLIB" >&6; }
6302else
6303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304$as_echo "no" >&6; }
6305fi
6306
6307
6308fi
6309if test -z "$ac_cv_prog_RANLIB"; then
6310  ac_ct_RANLIB=$RANLIB
6311  # Extract the first word of "ranlib", so it can be a program name with args.
6312set dummy ranlib; ac_word=$2
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314$as_echo_n "checking for $ac_word... " >&6; }
6315if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6316  $as_echo_n "(cached) " >&6
6317else
6318  if test -n "$ac_ct_RANLIB"; then
6319  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6320else
6321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322for as_dir in $PATH
6323do
6324  IFS=$as_save_IFS
6325  test -z "$as_dir" && as_dir=.
6326    for ac_exec_ext in '' $ac_executable_extensions; do
6327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328    ac_cv_prog_ac_ct_RANLIB="ranlib"
6329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330    break 2
6331  fi
6332done
6333  done
6334IFS=$as_save_IFS
6335
6336fi
6337fi
6338ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6339if test -n "$ac_ct_RANLIB"; then
6340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6341$as_echo "$ac_ct_RANLIB" >&6; }
6342else
6343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344$as_echo "no" >&6; }
6345fi
6346
6347  if test "x$ac_ct_RANLIB" = x; then
6348    RANLIB=":"
6349  else
6350    case $cross_compiling:$ac_tool_warned in
6351yes:)
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6354ac_tool_warned=yes ;;
6355esac
6356    RANLIB=$ac_ct_RANLIB
6357  fi
6358else
6359  RANLIB="$ac_cv_prog_RANLIB"
6360fi
6361
6362test -z "$RANLIB" && RANLIB=:
6363
6364
6365
6366
6367
6368
6369# Determine commands to create old-style static archives.
6370old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6371old_postinstall_cmds='chmod 644 $oldlib'
6372old_postuninstall_cmds=
6373
6374if test -n "$RANLIB"; then
6375  case $host_os in
6376  openbsd*)
6377    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6378    ;;
6379  *)
6380    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6381    ;;
6382  esac
6383  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6384fi
6385
6386case $host_os in
6387  darwin*)
6388    lock_old_archive_extraction=yes ;;
6389  *)
6390    lock_old_archive_extraction=no ;;
6391esac
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431# If no C compiler was specified, use CC.
6432LTCC=${LTCC-"$CC"}
6433
6434# If no C compiler flags were specified, use CFLAGS.
6435LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6436
6437# Allow CC to be a program name with arguments.
6438compiler=$CC
6439
6440
6441# Check for command to grab the raw symbol name followed by C symbol from nm.
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6443$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6444if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6445  $as_echo_n "(cached) " >&6
6446else
6447
6448# These are sane defaults that work on at least a few old systems.
6449# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6450
6451# Character class describing NM global symbol codes.
6452symcode='[BCDEGRST]'
6453
6454# Regexp to match symbols that can be accessed directly from C.
6455sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6456
6457# Define system-specific variables.
6458case $host_os in
6459aix*)
6460  symcode='[BCDT]'
6461  ;;
6462cygwin* | mingw* | pw32* | cegcc*)
6463  symcode='[ABCDGISTW]'
6464  ;;
6465hpux*)
6466  if test "$host_cpu" = ia64; then
6467    symcode='[ABCDEGRST]'
6468  fi
6469  ;;
6470irix* | nonstopux*)
6471  symcode='[BCDEGRST]'
6472  ;;
6473osf*)
6474  symcode='[BCDEGQRST]'
6475  ;;
6476solaris*)
6477  symcode='[BDRT]'
6478  ;;
6479sco3.2v5*)
6480  symcode='[DT]'
6481  ;;
6482sysv4.2uw2*)
6483  symcode='[DT]'
6484  ;;
6485sysv5* | sco5v6* | unixware* | OpenUNIX*)
6486  symcode='[ABDT]'
6487  ;;
6488sysv4)
6489  symcode='[DFNSTU]'
6490  ;;
6491esac
6492
6493# If we're using GNU nm, then use its standard symbol codes.
6494case `$NM -V 2>&1` in
6495*GNU* | *'with BFD'*)
6496  symcode='[ABCDGIRSTW]' ;;
6497esac
6498
6499# Transform an extracted symbol line into a proper C declaration.
6500# Some systems (esp. on ia64) link data and code symbols differently,
6501# so use this general approach.
6502lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6503
6504# Transform an extracted symbol line into symbol name and symbol address
6505lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6506lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6507
6508# Handle CRLF in mingw tool chain
6509opt_cr=
6510case $build_os in
6511mingw*)
6512  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6513  ;;
6514esac
6515
6516# Try without a prefix underscore, then with it.
6517for ac_symprfx in "" "_"; do
6518
6519  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6520  symxfrm="\\1 $ac_symprfx\\2 \\2"
6521
6522  # Write the raw and C identifiers.
6523  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6524    # Fake it for dumpbin and say T for any non-static function
6525    # and D for any global variable.
6526    # Also find C++ and __fastcall symbols from MSVC++,
6527    # which start with @ or ?.
6528    lt_cv_sys_global_symbol_pipe="$AWK '"\
6529"     {last_section=section; section=\$ 3};"\
6530"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6531"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6532"     \$ 0!~/External *\|/{next};"\
6533"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6534"     {if(hide[section]) next};"\
6535"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6536"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6537"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6538"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6539"     ' prfx=^$ac_symprfx"
6540  else
6541    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6542  fi
6543  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6544
6545  # Check to see that the pipe works correctly.
6546  pipe_works=no
6547
6548  rm -f conftest*
6549  cat > conftest.$ac_ext <<_LT_EOF
6550#ifdef __cplusplus
6551extern "C" {
6552#endif
6553char nm_test_var;
6554void nm_test_func(void);
6555void nm_test_func(void){}
6556#ifdef __cplusplus
6557}
6558#endif
6559int main(){nm_test_var='a';nm_test_func();return(0);}
6560_LT_EOF
6561
6562  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6563  (eval $ac_compile) 2>&5
6564  ac_status=$?
6565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6566  test $ac_status = 0; }; then
6567    # Now try to grab the symbols.
6568    nlist=conftest.nm
6569    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6570  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6571  ac_status=$?
6572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573  test $ac_status = 0; } && test -s "$nlist"; then
6574      # Try sorting and uniquifying the output.
6575      if sort "$nlist" | uniq > "$nlist"T; then
6576	mv -f "$nlist"T "$nlist"
6577      else
6578	rm -f "$nlist"T
6579      fi
6580
6581      # Make sure that we snagged all the symbols we need.
6582      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6583	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6584	  cat <<_LT_EOF > conftest.$ac_ext
6585/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6586#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6587/* DATA imports from DLLs on WIN32 con't be const, because runtime
6588   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6589# define LT_DLSYM_CONST
6590#elif defined(__osf__)
6591/* This system does not cope well with relocations in const data.  */
6592# define LT_DLSYM_CONST
6593#else
6594# define LT_DLSYM_CONST const
6595#endif
6596
6597#ifdef __cplusplus
6598extern "C" {
6599#endif
6600
6601_LT_EOF
6602	  # Now generate the symbol file.
6603	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6604
6605	  cat <<_LT_EOF >> conftest.$ac_ext
6606
6607/* The mapping between symbol names and symbols.  */
6608LT_DLSYM_CONST struct {
6609  const char *name;
6610  void       *address;
6611}
6612lt__PROGRAM__LTX_preloaded_symbols[] =
6613{
6614  { "@PROGRAM@", (void *) 0 },
6615_LT_EOF
6616	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6617	  cat <<\_LT_EOF >> conftest.$ac_ext
6618  {0, (void *) 0}
6619};
6620
6621/* This works around a problem in FreeBSD linker */
6622#ifdef FREEBSD_WORKAROUND
6623static const void *lt_preloaded_setup() {
6624  return lt__PROGRAM__LTX_preloaded_symbols;
6625}
6626#endif
6627
6628#ifdef __cplusplus
6629}
6630#endif
6631_LT_EOF
6632	  # Now try linking the two files.
6633	  mv conftest.$ac_objext conftstm.$ac_objext
6634	  lt_globsym_save_LIBS=$LIBS
6635	  lt_globsym_save_CFLAGS=$CFLAGS
6636	  LIBS="conftstm.$ac_objext"
6637	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6638	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6639  (eval $ac_link) 2>&5
6640  ac_status=$?
6641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6642  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6643	    pipe_works=yes
6644	  fi
6645	  LIBS=$lt_globsym_save_LIBS
6646	  CFLAGS=$lt_globsym_save_CFLAGS
6647	else
6648	  echo "cannot find nm_test_func in $nlist" >&5
6649	fi
6650      else
6651	echo "cannot find nm_test_var in $nlist" >&5
6652      fi
6653    else
6654      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6655    fi
6656  else
6657    echo "$progname: failed program was:" >&5
6658    cat conftest.$ac_ext >&5
6659  fi
6660  rm -rf conftest* conftst*
6661
6662  # Do not use the global_symbol_pipe unless it works.
6663  if test "$pipe_works" = yes; then
6664    break
6665  else
6666    lt_cv_sys_global_symbol_pipe=
6667  fi
6668done
6669
6670fi
6671
6672if test -z "$lt_cv_sys_global_symbol_pipe"; then
6673  lt_cv_sys_global_symbol_to_cdecl=
6674fi
6675if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6677$as_echo "failed" >&6; }
6678else
6679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6680$as_echo "ok" >&6; }
6681fi
6682
6683# Response file support.
6684if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6685  nm_file_list_spec='@'
6686elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6687  nm_file_list_spec='@'
6688fi
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6717$as_echo_n "checking for sysroot... " >&6; }
6718
6719# Check whether --with-sysroot was given.
6720if test "${with_sysroot+set}" = set; then :
6721  withval=$with_sysroot;
6722else
6723  with_sysroot=no
6724fi
6725
6726
6727lt_sysroot=
6728case ${with_sysroot} in #(
6729 yes)
6730   if test "$GCC" = yes; then
6731     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6732   fi
6733   ;; #(
6734 /*)
6735   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6736   ;; #(
6737 no|'')
6738   ;; #(
6739 *)
6740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6741$as_echo "${with_sysroot}" >&6; }
6742   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6743   ;;
6744esac
6745
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6747$as_echo "${lt_sysroot:-no}" >&6; }
6748
6749
6750
6751
6752
6753# Check whether --enable-libtool-lock was given.
6754if test "${enable_libtool_lock+set}" = set; then :
6755  enableval=$enable_libtool_lock;
6756fi
6757
6758test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6759
6760# Some flags need to be propagated to the compiler or linker for good
6761# libtool support.
6762case $host in
6763ia64-*-hpux*)
6764  # Find out which ABI we are using.
6765  echo 'int i;' > conftest.$ac_ext
6766  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6767  (eval $ac_compile) 2>&5
6768  ac_status=$?
6769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6770  test $ac_status = 0; }; then
6771    case `/usr/bin/file conftest.$ac_objext` in
6772      *ELF-32*)
6773	HPUX_IA64_MODE="32"
6774	;;
6775      *ELF-64*)
6776	HPUX_IA64_MODE="64"
6777	;;
6778    esac
6779  fi
6780  rm -rf conftest*
6781  ;;
6782*-*-irix6*)
6783  # Find out which ABI we are using.
6784  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6785  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6786  (eval $ac_compile) 2>&5
6787  ac_status=$?
6788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6789  test $ac_status = 0; }; then
6790    if test "$lt_cv_prog_gnu_ld" = yes; then
6791      case `/usr/bin/file conftest.$ac_objext` in
6792	*32-bit*)
6793	  LD="${LD-ld} -melf32bsmip"
6794	  ;;
6795	*N32*)
6796	  LD="${LD-ld} -melf32bmipn32"
6797	  ;;
6798	*64-bit*)
6799	  LD="${LD-ld} -melf64bmip"
6800	;;
6801      esac
6802    else
6803      case `/usr/bin/file conftest.$ac_objext` in
6804	*32-bit*)
6805	  LD="${LD-ld} -32"
6806	  ;;
6807	*N32*)
6808	  LD="${LD-ld} -n32"
6809	  ;;
6810	*64-bit*)
6811	  LD="${LD-ld} -64"
6812	  ;;
6813      esac
6814    fi
6815  fi
6816  rm -rf conftest*
6817  ;;
6818
6819x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6820s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6821  # Find out which ABI we are using.
6822  echo 'int i;' > conftest.$ac_ext
6823  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6824  (eval $ac_compile) 2>&5
6825  ac_status=$?
6826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6827  test $ac_status = 0; }; then
6828    case `/usr/bin/file conftest.o` in
6829      *32-bit*)
6830	case $host in
6831	  x86_64-*kfreebsd*-gnu)
6832	    LD="${LD-ld} -m elf_i386_fbsd"
6833	    ;;
6834	  x86_64-*linux*)
6835	    LD="${LD-ld} -m elf_i386"
6836	    ;;
6837	  ppc64-*linux*|powerpc64-*linux*)
6838	    LD="${LD-ld} -m elf32ppclinux"
6839	    ;;
6840	  s390x-*linux*)
6841	    LD="${LD-ld} -m elf_s390"
6842	    ;;
6843	  sparc64-*linux*)
6844	    LD="${LD-ld} -m elf32_sparc"
6845	    ;;
6846	esac
6847	;;
6848      *64-bit*)
6849	case $host in
6850	  x86_64-*kfreebsd*-gnu)
6851	    LD="${LD-ld} -m elf_x86_64_fbsd"
6852	    ;;
6853	  x86_64-*linux*)
6854	    LD="${LD-ld} -m elf_x86_64"
6855	    ;;
6856	  ppc*-*linux*|powerpc*-*linux*)
6857	    LD="${LD-ld} -m elf64ppc"
6858	    ;;
6859	  s390*-*linux*|s390*-*tpf*)
6860	    LD="${LD-ld} -m elf64_s390"
6861	    ;;
6862	  sparc*-*linux*)
6863	    LD="${LD-ld} -m elf64_sparc"
6864	    ;;
6865	esac
6866	;;
6867    esac
6868  fi
6869  rm -rf conftest*
6870  ;;
6871
6872*-*-sco3.2v5*)
6873  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6874  SAVE_CFLAGS="$CFLAGS"
6875  CFLAGS="$CFLAGS -belf"
6876  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6877$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6878if ${lt_cv_cc_needs_belf+:} false; then :
6879  $as_echo_n "(cached) " >&6
6880else
6881  ac_ext=c
6882ac_cpp='$CPP $CPPFLAGS'
6883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6885ac_compiler_gnu=$ac_cv_c_compiler_gnu
6886
6887     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888/* end confdefs.h.  */
6889
6890int
6891main ()
6892{
6893
6894  ;
6895  return 0;
6896}
6897_ACEOF
6898if ac_fn_c_try_link "$LINENO"; then :
6899  lt_cv_cc_needs_belf=yes
6900else
6901  lt_cv_cc_needs_belf=no
6902fi
6903rm -f core conftest.err conftest.$ac_objext \
6904    conftest$ac_exeext conftest.$ac_ext
6905     ac_ext=c
6906ac_cpp='$CPP $CPPFLAGS'
6907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6909ac_compiler_gnu=$ac_cv_c_compiler_gnu
6910
6911fi
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6913$as_echo "$lt_cv_cc_needs_belf" >&6; }
6914  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6915    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6916    CFLAGS="$SAVE_CFLAGS"
6917  fi
6918  ;;
6919*-*solaris*)
6920  # Find out which ABI we are using.
6921  echo 'int i;' > conftest.$ac_ext
6922  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6923  (eval $ac_compile) 2>&5
6924  ac_status=$?
6925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6926  test $ac_status = 0; }; then
6927    case `/usr/bin/file conftest.o` in
6928    *64-bit*)
6929      case $lt_cv_prog_gnu_ld in
6930      yes*)
6931        case $host in
6932        i?86-*-solaris*)
6933          LD="${LD-ld} -m elf_x86_64"
6934          ;;
6935        sparc*-*-solaris*)
6936          LD="${LD-ld} -m elf64_sparc"
6937          ;;
6938        esac
6939        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6940        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6941          LD="${LD-ld}_sol2"
6942        fi
6943        ;;
6944      *)
6945	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6946	  LD="${LD-ld} -64"
6947	fi
6948	;;
6949      esac
6950      ;;
6951    esac
6952  fi
6953  rm -rf conftest*
6954  ;;
6955esac
6956
6957need_locks="$enable_libtool_lock"
6958
6959if test -n "$ac_tool_prefix"; then
6960  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6961set dummy ${ac_tool_prefix}mt; ac_word=$2
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963$as_echo_n "checking for $ac_word... " >&6; }
6964if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6965  $as_echo_n "(cached) " >&6
6966else
6967  if test -n "$MANIFEST_TOOL"; then
6968  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6969else
6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971for as_dir in $PATH
6972do
6973  IFS=$as_save_IFS
6974  test -z "$as_dir" && as_dir=.
6975    for ac_exec_ext in '' $ac_executable_extensions; do
6976  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6977    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979    break 2
6980  fi
6981done
6982  done
6983IFS=$as_save_IFS
6984
6985fi
6986fi
6987MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6988if test -n "$MANIFEST_TOOL"; then
6989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6990$as_echo "$MANIFEST_TOOL" >&6; }
6991else
6992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993$as_echo "no" >&6; }
6994fi
6995
6996
6997fi
6998if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6999  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7000  # Extract the first word of "mt", so it can be a program name with args.
7001set dummy mt; ac_word=$2
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003$as_echo_n "checking for $ac_word... " >&6; }
7004if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7005  $as_echo_n "(cached) " >&6
7006else
7007  if test -n "$ac_ct_MANIFEST_TOOL"; then
7008  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7009else
7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011for as_dir in $PATH
7012do
7013  IFS=$as_save_IFS
7014  test -z "$as_dir" && as_dir=.
7015    for ac_exec_ext in '' $ac_executable_extensions; do
7016  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019    break 2
7020  fi
7021done
7022  done
7023IFS=$as_save_IFS
7024
7025fi
7026fi
7027ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7028if test -n "$ac_ct_MANIFEST_TOOL"; then
7029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7030$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7031else
7032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033$as_echo "no" >&6; }
7034fi
7035
7036  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7037    MANIFEST_TOOL=":"
7038  else
7039    case $cross_compiling:$ac_tool_warned in
7040yes:)
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7043ac_tool_warned=yes ;;
7044esac
7045    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7046  fi
7047else
7048  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7049fi
7050
7051test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7053$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7054if ${lt_cv_path_mainfest_tool+:} false; then :
7055  $as_echo_n "(cached) " >&6
7056else
7057  lt_cv_path_mainfest_tool=no
7058  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7059  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7060  cat conftest.err >&5
7061  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7062    lt_cv_path_mainfest_tool=yes
7063  fi
7064  rm -f conftest*
7065fi
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7067$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7068if test "x$lt_cv_path_mainfest_tool" != xyes; then
7069  MANIFEST_TOOL=:
7070fi
7071
7072
7073
7074
7075
7076
7077  case $host_os in
7078    rhapsody* | darwin*)
7079    if test -n "$ac_tool_prefix"; then
7080  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7081set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083$as_echo_n "checking for $ac_word... " >&6; }
7084if ${ac_cv_prog_DSYMUTIL+:} false; then :
7085  $as_echo_n "(cached) " >&6
7086else
7087  if test -n "$DSYMUTIL"; then
7088  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7089else
7090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093  IFS=$as_save_IFS
7094  test -z "$as_dir" && as_dir=.
7095    for ac_exec_ext in '' $ac_executable_extensions; do
7096  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7097    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7099    break 2
7100  fi
7101done
7102  done
7103IFS=$as_save_IFS
7104
7105fi
7106fi
7107DSYMUTIL=$ac_cv_prog_DSYMUTIL
7108if test -n "$DSYMUTIL"; then
7109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7110$as_echo "$DSYMUTIL" >&6; }
7111else
7112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113$as_echo "no" >&6; }
7114fi
7115
7116
7117fi
7118if test -z "$ac_cv_prog_DSYMUTIL"; then
7119  ac_ct_DSYMUTIL=$DSYMUTIL
7120  # Extract the first word of "dsymutil", so it can be a program name with args.
7121set dummy dsymutil; ac_word=$2
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123$as_echo_n "checking for $ac_word... " >&6; }
7124if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7125  $as_echo_n "(cached) " >&6
7126else
7127  if test -n "$ac_ct_DSYMUTIL"; then
7128  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7129else
7130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131for as_dir in $PATH
7132do
7133  IFS=$as_save_IFS
7134  test -z "$as_dir" && as_dir=.
7135    for ac_exec_ext in '' $ac_executable_extensions; do
7136  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7137    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139    break 2
7140  fi
7141done
7142  done
7143IFS=$as_save_IFS
7144
7145fi
7146fi
7147ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7148if test -n "$ac_ct_DSYMUTIL"; then
7149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7150$as_echo "$ac_ct_DSYMUTIL" >&6; }
7151else
7152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153$as_echo "no" >&6; }
7154fi
7155
7156  if test "x$ac_ct_DSYMUTIL" = x; then
7157    DSYMUTIL=":"
7158  else
7159    case $cross_compiling:$ac_tool_warned in
7160yes:)
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7163ac_tool_warned=yes ;;
7164esac
7165    DSYMUTIL=$ac_ct_DSYMUTIL
7166  fi
7167else
7168  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7169fi
7170
7171    if test -n "$ac_tool_prefix"; then
7172  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7173set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7175$as_echo_n "checking for $ac_word... " >&6; }
7176if ${ac_cv_prog_NMEDIT+:} false; then :
7177  $as_echo_n "(cached) " >&6
7178else
7179  if test -n "$NMEDIT"; then
7180  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7181else
7182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183for as_dir in $PATH
7184do
7185  IFS=$as_save_IFS
7186  test -z "$as_dir" && as_dir=.
7187    for ac_exec_ext in '' $ac_executable_extensions; do
7188  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7189    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191    break 2
7192  fi
7193done
7194  done
7195IFS=$as_save_IFS
7196
7197fi
7198fi
7199NMEDIT=$ac_cv_prog_NMEDIT
7200if test -n "$NMEDIT"; then
7201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7202$as_echo "$NMEDIT" >&6; }
7203else
7204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205$as_echo "no" >&6; }
7206fi
7207
7208
7209fi
7210if test -z "$ac_cv_prog_NMEDIT"; then
7211  ac_ct_NMEDIT=$NMEDIT
7212  # Extract the first word of "nmedit", so it can be a program name with args.
7213set dummy nmedit; ac_word=$2
7214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215$as_echo_n "checking for $ac_word... " >&6; }
7216if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7217  $as_echo_n "(cached) " >&6
7218else
7219  if test -n "$ac_ct_NMEDIT"; then
7220  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7221else
7222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223for as_dir in $PATH
7224do
7225  IFS=$as_save_IFS
7226  test -z "$as_dir" && as_dir=.
7227    for ac_exec_ext in '' $ac_executable_extensions; do
7228  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7229    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231    break 2
7232  fi
7233done
7234  done
7235IFS=$as_save_IFS
7236
7237fi
7238fi
7239ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7240if test -n "$ac_ct_NMEDIT"; then
7241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7242$as_echo "$ac_ct_NMEDIT" >&6; }
7243else
7244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245$as_echo "no" >&6; }
7246fi
7247
7248  if test "x$ac_ct_NMEDIT" = x; then
7249    NMEDIT=":"
7250  else
7251    case $cross_compiling:$ac_tool_warned in
7252yes:)
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7255ac_tool_warned=yes ;;
7256esac
7257    NMEDIT=$ac_ct_NMEDIT
7258  fi
7259else
7260  NMEDIT="$ac_cv_prog_NMEDIT"
7261fi
7262
7263    if test -n "$ac_tool_prefix"; then
7264  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7265set dummy ${ac_tool_prefix}lipo; ac_word=$2
7266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267$as_echo_n "checking for $ac_word... " >&6; }
7268if ${ac_cv_prog_LIPO+:} false; then :
7269  $as_echo_n "(cached) " >&6
7270else
7271  if test -n "$LIPO"; then
7272  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7273else
7274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277  IFS=$as_save_IFS
7278  test -z "$as_dir" && as_dir=.
7279    for ac_exec_ext in '' $ac_executable_extensions; do
7280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7281    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7283    break 2
7284  fi
7285done
7286  done
7287IFS=$as_save_IFS
7288
7289fi
7290fi
7291LIPO=$ac_cv_prog_LIPO
7292if test -n "$LIPO"; then
7293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7294$as_echo "$LIPO" >&6; }
7295else
7296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297$as_echo "no" >&6; }
7298fi
7299
7300
7301fi
7302if test -z "$ac_cv_prog_LIPO"; then
7303  ac_ct_LIPO=$LIPO
7304  # Extract the first word of "lipo", so it can be a program name with args.
7305set dummy lipo; ac_word=$2
7306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307$as_echo_n "checking for $ac_word... " >&6; }
7308if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7309  $as_echo_n "(cached) " >&6
7310else
7311  if test -n "$ac_ct_LIPO"; then
7312  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7313else
7314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
7317  IFS=$as_save_IFS
7318  test -z "$as_dir" && as_dir=.
7319    for ac_exec_ext in '' $ac_executable_extensions; do
7320  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7321    ac_cv_prog_ac_ct_LIPO="lipo"
7322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323    break 2
7324  fi
7325done
7326  done
7327IFS=$as_save_IFS
7328
7329fi
7330fi
7331ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7332if test -n "$ac_ct_LIPO"; then
7333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7334$as_echo "$ac_ct_LIPO" >&6; }
7335else
7336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337$as_echo "no" >&6; }
7338fi
7339
7340  if test "x$ac_ct_LIPO" = x; then
7341    LIPO=":"
7342  else
7343    case $cross_compiling:$ac_tool_warned in
7344yes:)
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7347ac_tool_warned=yes ;;
7348esac
7349    LIPO=$ac_ct_LIPO
7350  fi
7351else
7352  LIPO="$ac_cv_prog_LIPO"
7353fi
7354
7355    if test -n "$ac_tool_prefix"; then
7356  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7357set dummy ${ac_tool_prefix}otool; ac_word=$2
7358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359$as_echo_n "checking for $ac_word... " >&6; }
7360if ${ac_cv_prog_OTOOL+:} false; then :
7361  $as_echo_n "(cached) " >&6
7362else
7363  if test -n "$OTOOL"; then
7364  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7365else
7366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367for as_dir in $PATH
7368do
7369  IFS=$as_save_IFS
7370  test -z "$as_dir" && as_dir=.
7371    for ac_exec_ext in '' $ac_executable_extensions; do
7372  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7373    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375    break 2
7376  fi
7377done
7378  done
7379IFS=$as_save_IFS
7380
7381fi
7382fi
7383OTOOL=$ac_cv_prog_OTOOL
7384if test -n "$OTOOL"; then
7385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7386$as_echo "$OTOOL" >&6; }
7387else
7388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389$as_echo "no" >&6; }
7390fi
7391
7392
7393fi
7394if test -z "$ac_cv_prog_OTOOL"; then
7395  ac_ct_OTOOL=$OTOOL
7396  # Extract the first word of "otool", so it can be a program name with args.
7397set dummy otool; ac_word=$2
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399$as_echo_n "checking for $ac_word... " >&6; }
7400if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7401  $as_echo_n "(cached) " >&6
7402else
7403  if test -n "$ac_ct_OTOOL"; then
7404  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7405else
7406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407for as_dir in $PATH
7408do
7409  IFS=$as_save_IFS
7410  test -z "$as_dir" && as_dir=.
7411    for ac_exec_ext in '' $ac_executable_extensions; do
7412  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413    ac_cv_prog_ac_ct_OTOOL="otool"
7414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415    break 2
7416  fi
7417done
7418  done
7419IFS=$as_save_IFS
7420
7421fi
7422fi
7423ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7424if test -n "$ac_ct_OTOOL"; then
7425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7426$as_echo "$ac_ct_OTOOL" >&6; }
7427else
7428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429$as_echo "no" >&6; }
7430fi
7431
7432  if test "x$ac_ct_OTOOL" = x; then
7433    OTOOL=":"
7434  else
7435    case $cross_compiling:$ac_tool_warned in
7436yes:)
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7439ac_tool_warned=yes ;;
7440esac
7441    OTOOL=$ac_ct_OTOOL
7442  fi
7443else
7444  OTOOL="$ac_cv_prog_OTOOL"
7445fi
7446
7447    if test -n "$ac_tool_prefix"; then
7448  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7449set dummy ${ac_tool_prefix}otool64; ac_word=$2
7450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451$as_echo_n "checking for $ac_word... " >&6; }
7452if ${ac_cv_prog_OTOOL64+:} false; then :
7453  $as_echo_n "(cached) " >&6
7454else
7455  if test -n "$OTOOL64"; then
7456  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7457else
7458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459for as_dir in $PATH
7460do
7461  IFS=$as_save_IFS
7462  test -z "$as_dir" && as_dir=.
7463    for ac_exec_ext in '' $ac_executable_extensions; do
7464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7465    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467    break 2
7468  fi
7469done
7470  done
7471IFS=$as_save_IFS
7472
7473fi
7474fi
7475OTOOL64=$ac_cv_prog_OTOOL64
7476if test -n "$OTOOL64"; then
7477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7478$as_echo "$OTOOL64" >&6; }
7479else
7480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481$as_echo "no" >&6; }
7482fi
7483
7484
7485fi
7486if test -z "$ac_cv_prog_OTOOL64"; then
7487  ac_ct_OTOOL64=$OTOOL64
7488  # Extract the first word of "otool64", so it can be a program name with args.
7489set dummy otool64; ac_word=$2
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491$as_echo_n "checking for $ac_word... " >&6; }
7492if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7493  $as_echo_n "(cached) " >&6
7494else
7495  if test -n "$ac_ct_OTOOL64"; then
7496  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7497else
7498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
7500do
7501  IFS=$as_save_IFS
7502  test -z "$as_dir" && as_dir=.
7503    for ac_exec_ext in '' $ac_executable_extensions; do
7504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7505    ac_cv_prog_ac_ct_OTOOL64="otool64"
7506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507    break 2
7508  fi
7509done
7510  done
7511IFS=$as_save_IFS
7512
7513fi
7514fi
7515ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7516if test -n "$ac_ct_OTOOL64"; then
7517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7518$as_echo "$ac_ct_OTOOL64" >&6; }
7519else
7520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521$as_echo "no" >&6; }
7522fi
7523
7524  if test "x$ac_ct_OTOOL64" = x; then
7525    OTOOL64=":"
7526  else
7527    case $cross_compiling:$ac_tool_warned in
7528yes:)
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7531ac_tool_warned=yes ;;
7532esac
7533    OTOOL64=$ac_ct_OTOOL64
7534  fi
7535else
7536  OTOOL64="$ac_cv_prog_OTOOL64"
7537fi
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7566$as_echo_n "checking for -single_module linker flag... " >&6; }
7567if ${lt_cv_apple_cc_single_mod+:} false; then :
7568  $as_echo_n "(cached) " >&6
7569else
7570  lt_cv_apple_cc_single_mod=no
7571      if test -z "${LT_MULTI_MODULE}"; then
7572	# By default we will add the -single_module flag. You can override
7573	# by either setting the environment variable LT_MULTI_MODULE
7574	# non-empty at configure time, or by adding -multi_module to the
7575	# link flags.
7576	rm -rf libconftest.dylib*
7577	echo "int foo(void){return 1;}" > conftest.c
7578	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7579-dynamiclib -Wl,-single_module conftest.c" >&5
7580	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7581	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7582        _lt_result=$?
7583	# If there is a non-empty error log, and "single_module"
7584	# appears in it, assume the flag caused a linker warning
7585        if test -s conftest.err && $GREP single_module conftest.err; then
7586	  cat conftest.err >&5
7587	# Otherwise, if the output was created with a 0 exit code from
7588	# the compiler, it worked.
7589	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7590	  lt_cv_apple_cc_single_mod=yes
7591	else
7592	  cat conftest.err >&5
7593	fi
7594	rm -rf libconftest.dylib*
7595	rm -f conftest.*
7596      fi
7597fi
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7599$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7600
7601    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7602$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7603if ${lt_cv_ld_exported_symbols_list+:} false; then :
7604  $as_echo_n "(cached) " >&6
7605else
7606  lt_cv_ld_exported_symbols_list=no
7607      save_LDFLAGS=$LDFLAGS
7608      echo "_main" > conftest.sym
7609      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7610      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611/* end confdefs.h.  */
7612
7613int
7614main ()
7615{
7616
7617  ;
7618  return 0;
7619}
7620_ACEOF
7621if ac_fn_c_try_link "$LINENO"; then :
7622  lt_cv_ld_exported_symbols_list=yes
7623else
7624  lt_cv_ld_exported_symbols_list=no
7625fi
7626rm -f core conftest.err conftest.$ac_objext \
7627    conftest$ac_exeext conftest.$ac_ext
7628	LDFLAGS="$save_LDFLAGS"
7629
7630fi
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7632$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7633
7634    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7635$as_echo_n "checking for -force_load linker flag... " >&6; }
7636if ${lt_cv_ld_force_load+:} false; then :
7637  $as_echo_n "(cached) " >&6
7638else
7639  lt_cv_ld_force_load=no
7640      cat > conftest.c << _LT_EOF
7641int forced_loaded() { return 2;}
7642_LT_EOF
7643      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7644      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7645      echo "$AR cru libconftest.a conftest.o" >&5
7646      $AR cru libconftest.a conftest.o 2>&5
7647      echo "$RANLIB libconftest.a" >&5
7648      $RANLIB libconftest.a 2>&5
7649      cat > conftest.c << _LT_EOF
7650int main() { return 0;}
7651_LT_EOF
7652      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7653      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7654      _lt_result=$?
7655      if test -s conftest.err && $GREP force_load conftest.err; then
7656	cat conftest.err >&5
7657      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7658	lt_cv_ld_force_load=yes
7659      else
7660	cat conftest.err >&5
7661      fi
7662        rm -f conftest.err libconftest.a conftest conftest.c
7663        rm -rf conftest.dSYM
7664
7665fi
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7667$as_echo "$lt_cv_ld_force_load" >&6; }
7668    case $host_os in
7669    rhapsody* | darwin1.[012])
7670      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7671    darwin1.*)
7672      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7673    darwin*) # darwin 5.x on
7674      # if running on 10.5 or later, the deployment target defaults
7675      # to the OS version, if on x86, and 10.4, the deployment
7676      # target defaults to 10.4. Don't you love it?
7677      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7678	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7679	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7680	10.[012]*)
7681	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7682	10.*)
7683	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7684      esac
7685    ;;
7686  esac
7687    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7688      _lt_dar_single_mod='$single_module'
7689    fi
7690    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7691      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7692    else
7693      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7694    fi
7695    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7696      _lt_dsymutil='~$DSYMUTIL $lib || :'
7697    else
7698      _lt_dsymutil=
7699    fi
7700    ;;
7701  esac
7702
7703ac_ext=c
7704ac_cpp='$CPP $CPPFLAGS'
7705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7707ac_compiler_gnu=$ac_cv_c_compiler_gnu
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7709$as_echo_n "checking how to run the C preprocessor... " >&6; }
7710# On Suns, sometimes $CPP names a directory.
7711if test -n "$CPP" && test -d "$CPP"; then
7712  CPP=
7713fi
7714if test -z "$CPP"; then
7715  if ${ac_cv_prog_CPP+:} false; then :
7716  $as_echo_n "(cached) " >&6
7717else
7718      # Double quotes because CPP needs to be expanded
7719    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7720    do
7721      ac_preproc_ok=false
7722for ac_c_preproc_warn_flag in '' yes
7723do
7724  # Use a header file that comes with gcc, so configuring glibc
7725  # with a fresh cross-compiler works.
7726  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7727  # <limits.h> exists even on freestanding compilers.
7728  # On the NeXT, cc -E runs the code through the compiler's parser,
7729  # not just through cpp. "Syntax error" is here to catch this case.
7730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731/* end confdefs.h.  */
7732#ifdef __STDC__
7733# include <limits.h>
7734#else
7735# include <assert.h>
7736#endif
7737		     Syntax error
7738_ACEOF
7739if ac_fn_c_try_cpp "$LINENO"; then :
7740
7741else
7742  # Broken: fails on valid input.
7743continue
7744fi
7745rm -f conftest.err conftest.i conftest.$ac_ext
7746
7747  # OK, works on sane cases.  Now check whether nonexistent headers
7748  # can be detected and how.
7749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750/* end confdefs.h.  */
7751#include <ac_nonexistent.h>
7752_ACEOF
7753if ac_fn_c_try_cpp "$LINENO"; then :
7754  # Broken: success on invalid input.
7755continue
7756else
7757  # Passes both tests.
7758ac_preproc_ok=:
7759break
7760fi
7761rm -f conftest.err conftest.i conftest.$ac_ext
7762
7763done
7764# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7765rm -f conftest.i conftest.err conftest.$ac_ext
7766if $ac_preproc_ok; then :
7767  break
7768fi
7769
7770    done
7771    ac_cv_prog_CPP=$CPP
7772
7773fi
7774  CPP=$ac_cv_prog_CPP
7775else
7776  ac_cv_prog_CPP=$CPP
7777fi
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7779$as_echo "$CPP" >&6; }
7780ac_preproc_ok=false
7781for ac_c_preproc_warn_flag in '' yes
7782do
7783  # Use a header file that comes with gcc, so configuring glibc
7784  # with a fresh cross-compiler works.
7785  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7786  # <limits.h> exists even on freestanding compilers.
7787  # On the NeXT, cc -E runs the code through the compiler's parser,
7788  # not just through cpp. "Syntax error" is here to catch this case.
7789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790/* end confdefs.h.  */
7791#ifdef __STDC__
7792# include <limits.h>
7793#else
7794# include <assert.h>
7795#endif
7796		     Syntax error
7797_ACEOF
7798if ac_fn_c_try_cpp "$LINENO"; then :
7799
7800else
7801  # Broken: fails on valid input.
7802continue
7803fi
7804rm -f conftest.err conftest.i conftest.$ac_ext
7805
7806  # OK, works on sane cases.  Now check whether nonexistent headers
7807  # can be detected and how.
7808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809/* end confdefs.h.  */
7810#include <ac_nonexistent.h>
7811_ACEOF
7812if ac_fn_c_try_cpp "$LINENO"; then :
7813  # Broken: success on invalid input.
7814continue
7815else
7816  # Passes both tests.
7817ac_preproc_ok=:
7818break
7819fi
7820rm -f conftest.err conftest.i conftest.$ac_ext
7821
7822done
7823# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7824rm -f conftest.i conftest.err conftest.$ac_ext
7825if $ac_preproc_ok; then :
7826
7827else
7828  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7830as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7831See \`config.log' for more details" "$LINENO" 5; }
7832fi
7833
7834ac_ext=c
7835ac_cpp='$CPP $CPPFLAGS'
7836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838ac_compiler_gnu=$ac_cv_c_compiler_gnu
7839
7840
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7842$as_echo_n "checking for ANSI C header files... " >&6; }
7843if ${ac_cv_header_stdc+:} false; then :
7844  $as_echo_n "(cached) " >&6
7845else
7846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847/* end confdefs.h.  */
7848#include <stdlib.h>
7849#include <stdarg.h>
7850#include <string.h>
7851#include <float.h>
7852
7853int
7854main ()
7855{
7856
7857  ;
7858  return 0;
7859}
7860_ACEOF
7861if ac_fn_c_try_compile "$LINENO"; then :
7862  ac_cv_header_stdc=yes
7863else
7864  ac_cv_header_stdc=no
7865fi
7866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867
7868if test $ac_cv_header_stdc = yes; then
7869  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h.  */
7872#include <string.h>
7873
7874_ACEOF
7875if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7876  $EGREP "memchr" >/dev/null 2>&1; then :
7877
7878else
7879  ac_cv_header_stdc=no
7880fi
7881rm -f conftest*
7882
7883fi
7884
7885if test $ac_cv_header_stdc = yes; then
7886  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888/* end confdefs.h.  */
7889#include <stdlib.h>
7890
7891_ACEOF
7892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7893  $EGREP "free" >/dev/null 2>&1; then :
7894
7895else
7896  ac_cv_header_stdc=no
7897fi
7898rm -f conftest*
7899
7900fi
7901
7902if test $ac_cv_header_stdc = yes; then
7903  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7904  if test "$cross_compiling" = yes; then :
7905  :
7906else
7907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908/* end confdefs.h.  */
7909#include <ctype.h>
7910#include <stdlib.h>
7911#if ((' ' & 0x0FF) == 0x020)
7912# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7913# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7914#else
7915# define ISLOWER(c) \
7916		   (('a' <= (c) && (c) <= 'i') \
7917		     || ('j' <= (c) && (c) <= 'r') \
7918		     || ('s' <= (c) && (c) <= 'z'))
7919# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7920#endif
7921
7922#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7923int
7924main ()
7925{
7926  int i;
7927  for (i = 0; i < 256; i++)
7928    if (XOR (islower (i), ISLOWER (i))
7929	|| toupper (i) != TOUPPER (i))
7930      return 2;
7931  return 0;
7932}
7933_ACEOF
7934if ac_fn_c_try_run "$LINENO"; then :
7935
7936else
7937  ac_cv_header_stdc=no
7938fi
7939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7940  conftest.$ac_objext conftest.beam conftest.$ac_ext
7941fi
7942
7943fi
7944fi
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7946$as_echo "$ac_cv_header_stdc" >&6; }
7947if test $ac_cv_header_stdc = yes; then
7948
7949$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7950
7951fi
7952
7953# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7954for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7955		  inttypes.h stdint.h unistd.h
7956do :
7957  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7958ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7959"
7960if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7961  cat >>confdefs.h <<_ACEOF
7962#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7963_ACEOF
7964
7965fi
7966
7967done
7968
7969
7970for ac_header in dlfcn.h
7971do :
7972  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7973"
7974if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7975  cat >>confdefs.h <<_ACEOF
7976#define HAVE_DLFCN_H 1
7977_ACEOF
7978
7979fi
7980
7981done
7982
7983
7984
7985
7986
7987# Set options
7988
7989
7990
7991
7992  enable_win32_dll=no
7993
7994
7995            # Check whether --enable-shared was given.
7996if test "${enable_shared+set}" = set; then :
7997  enableval=$enable_shared; p=${PACKAGE-default}
7998    case $enableval in
7999    yes) enable_shared=yes ;;
8000    no) enable_shared=no ;;
8001    *)
8002      enable_shared=no
8003      # Look at the argument we got.  We use all the common list separators.
8004      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8005      for pkg in $enableval; do
8006	IFS="$lt_save_ifs"
8007	if test "X$pkg" = "X$p"; then
8008	  enable_shared=yes
8009	fi
8010      done
8011      IFS="$lt_save_ifs"
8012      ;;
8013    esac
8014else
8015  enable_shared=yes
8016fi
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026  # Check whether --enable-static was given.
8027if test "${enable_static+set}" = set; then :
8028  enableval=$enable_static; p=${PACKAGE-default}
8029    case $enableval in
8030    yes) enable_static=yes ;;
8031    no) enable_static=no ;;
8032    *)
8033     enable_static=no
8034      # Look at the argument we got.  We use all the common list separators.
8035      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8036      for pkg in $enableval; do
8037	IFS="$lt_save_ifs"
8038	if test "X$pkg" = "X$p"; then
8039	  enable_static=yes
8040	fi
8041      done
8042      IFS="$lt_save_ifs"
8043      ;;
8044    esac
8045else
8046  enable_static=yes
8047fi
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058# Check whether --with-pic was given.
8059if test "${with_pic+set}" = set; then :
8060  withval=$with_pic; lt_p=${PACKAGE-default}
8061    case $withval in
8062    yes|no) pic_mode=$withval ;;
8063    *)
8064      pic_mode=default
8065      # Look at the argument we got.  We use all the common list separators.
8066      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8067      for lt_pkg in $withval; do
8068	IFS="$lt_save_ifs"
8069	if test "X$lt_pkg" = "X$lt_p"; then
8070	  pic_mode=yes
8071	fi
8072      done
8073      IFS="$lt_save_ifs"
8074      ;;
8075    esac
8076else
8077  pic_mode=default
8078fi
8079
8080
8081test -z "$pic_mode" && pic_mode=default
8082
8083
8084
8085
8086
8087
8088
8089  # Check whether --enable-fast-install was given.
8090if test "${enable_fast_install+set}" = set; then :
8091  enableval=$enable_fast_install; p=${PACKAGE-default}
8092    case $enableval in
8093    yes) enable_fast_install=yes ;;
8094    no) enable_fast_install=no ;;
8095    *)
8096      enable_fast_install=no
8097      # Look at the argument we got.  We use all the common list separators.
8098      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8099      for pkg in $enableval; do
8100	IFS="$lt_save_ifs"
8101	if test "X$pkg" = "X$p"; then
8102	  enable_fast_install=yes
8103	fi
8104      done
8105      IFS="$lt_save_ifs"
8106      ;;
8107    esac
8108else
8109  enable_fast_install=yes
8110fi
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122# This can be used to rebuild libtool when needed
8123LIBTOOL_DEPS="$ltmain"
8124
8125# Always use our own libtool.
8126LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157test -z "$LN_S" && LN_S="ln -s"
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172if test -n "${ZSH_VERSION+set}" ; then
8173   setopt NO_GLOB_SUBST
8174fi
8175
8176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8177$as_echo_n "checking for objdir... " >&6; }
8178if ${lt_cv_objdir+:} false; then :
8179  $as_echo_n "(cached) " >&6
8180else
8181  rm -f .libs 2>/dev/null
8182mkdir .libs 2>/dev/null
8183if test -d .libs; then
8184  lt_cv_objdir=.libs
8185else
8186  # MS-DOS does not allow filenames that begin with a dot.
8187  lt_cv_objdir=_libs
8188fi
8189rmdir .libs 2>/dev/null
8190fi
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8192$as_echo "$lt_cv_objdir" >&6; }
8193objdir=$lt_cv_objdir
8194
8195
8196
8197
8198
8199cat >>confdefs.h <<_ACEOF
8200#define LT_OBJDIR "$lt_cv_objdir/"
8201_ACEOF
8202
8203
8204
8205
8206case $host_os in
8207aix3*)
8208  # AIX sometimes has problems with the GCC collect2 program.  For some
8209  # reason, if we set the COLLECT_NAMES environment variable, the problems
8210  # vanish in a puff of smoke.
8211  if test "X${COLLECT_NAMES+set}" != Xset; then
8212    COLLECT_NAMES=
8213    export COLLECT_NAMES
8214  fi
8215  ;;
8216esac
8217
8218# Global variables:
8219ofile=libtool
8220can_build_shared=yes
8221
8222# All known linkers require a `.a' archive for static linking (except MSVC,
8223# which needs '.lib').
8224libext=a
8225
8226with_gnu_ld="$lt_cv_prog_gnu_ld"
8227
8228old_CC="$CC"
8229old_CFLAGS="$CFLAGS"
8230
8231# Set sane defaults for various variables
8232test -z "$CC" && CC=cc
8233test -z "$LTCC" && LTCC=$CC
8234test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8235test -z "$LD" && LD=ld
8236test -z "$ac_objext" && ac_objext=o
8237
8238for cc_temp in $compiler""; do
8239  case $cc_temp in
8240    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8241    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8242    \-*) ;;
8243    *) break;;
8244  esac
8245done
8246cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8247
8248
8249# Only perform the check for file, if the check method requires it
8250test -z "$MAGIC_CMD" && MAGIC_CMD=file
8251case $deplibs_check_method in
8252file_magic*)
8253  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8254    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8255$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8256if ${lt_cv_path_MAGIC_CMD+:} false; then :
8257  $as_echo_n "(cached) " >&6
8258else
8259  case $MAGIC_CMD in
8260[\\/*] |  ?:[\\/]*)
8261  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8262  ;;
8263*)
8264  lt_save_MAGIC_CMD="$MAGIC_CMD"
8265  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8266  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8267  for ac_dir in $ac_dummy; do
8268    IFS="$lt_save_ifs"
8269    test -z "$ac_dir" && ac_dir=.
8270    if test -f $ac_dir/${ac_tool_prefix}file; then
8271      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8272      if test -n "$file_magic_test_file"; then
8273	case $deplibs_check_method in
8274	"file_magic "*)
8275	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8276	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8277	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8278	    $EGREP "$file_magic_regex" > /dev/null; then
8279	    :
8280	  else
8281	    cat <<_LT_EOF 1>&2
8282
8283*** Warning: the command libtool uses to detect shared libraries,
8284*** $file_magic_cmd, produces output that libtool cannot recognize.
8285*** The result is that libtool may fail to recognize shared libraries
8286*** as such.  This will affect the creation of libtool libraries that
8287*** depend on shared libraries, but programs linked with such libtool
8288*** libraries will work regardless of this problem.  Nevertheless, you
8289*** may want to report the problem to your system manager and/or to
8290*** bug-libtool@gnu.org
8291
8292_LT_EOF
8293	  fi ;;
8294	esac
8295      fi
8296      break
8297    fi
8298  done
8299  IFS="$lt_save_ifs"
8300  MAGIC_CMD="$lt_save_MAGIC_CMD"
8301  ;;
8302esac
8303fi
8304
8305MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8306if test -n "$MAGIC_CMD"; then
8307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8308$as_echo "$MAGIC_CMD" >&6; }
8309else
8310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8311$as_echo "no" >&6; }
8312fi
8313
8314
8315
8316
8317
8318if test -z "$lt_cv_path_MAGIC_CMD"; then
8319  if test -n "$ac_tool_prefix"; then
8320    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8321$as_echo_n "checking for file... " >&6; }
8322if ${lt_cv_path_MAGIC_CMD+:} false; then :
8323  $as_echo_n "(cached) " >&6
8324else
8325  case $MAGIC_CMD in
8326[\\/*] |  ?:[\\/]*)
8327  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8328  ;;
8329*)
8330  lt_save_MAGIC_CMD="$MAGIC_CMD"
8331  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8332  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8333  for ac_dir in $ac_dummy; do
8334    IFS="$lt_save_ifs"
8335    test -z "$ac_dir" && ac_dir=.
8336    if test -f $ac_dir/file; then
8337      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8338      if test -n "$file_magic_test_file"; then
8339	case $deplibs_check_method in
8340	"file_magic "*)
8341	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8342	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8343	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8344	    $EGREP "$file_magic_regex" > /dev/null; then
8345	    :
8346	  else
8347	    cat <<_LT_EOF 1>&2
8348
8349*** Warning: the command libtool uses to detect shared libraries,
8350*** $file_magic_cmd, produces output that libtool cannot recognize.
8351*** The result is that libtool may fail to recognize shared libraries
8352*** as such.  This will affect the creation of libtool libraries that
8353*** depend on shared libraries, but programs linked with such libtool
8354*** libraries will work regardless of this problem.  Nevertheless, you
8355*** may want to report the problem to your system manager and/or to
8356*** bug-libtool@gnu.org
8357
8358_LT_EOF
8359	  fi ;;
8360	esac
8361      fi
8362      break
8363    fi
8364  done
8365  IFS="$lt_save_ifs"
8366  MAGIC_CMD="$lt_save_MAGIC_CMD"
8367  ;;
8368esac
8369fi
8370
8371MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8372if test -n "$MAGIC_CMD"; then
8373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8374$as_echo "$MAGIC_CMD" >&6; }
8375else
8376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377$as_echo "no" >&6; }
8378fi
8379
8380
8381  else
8382    MAGIC_CMD=:
8383  fi
8384fi
8385
8386  fi
8387  ;;
8388esac
8389
8390# Use C for the default configuration in the libtool script
8391
8392lt_save_CC="$CC"
8393ac_ext=c
8394ac_cpp='$CPP $CPPFLAGS'
8395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8397ac_compiler_gnu=$ac_cv_c_compiler_gnu
8398
8399
8400# Source file extension for C test sources.
8401ac_ext=c
8402
8403# Object file extension for compiled C test sources.
8404objext=o
8405objext=$objext
8406
8407# Code to be used in simple compile tests
8408lt_simple_compile_test_code="int some_variable = 0;"
8409
8410# Code to be used in simple link tests
8411lt_simple_link_test_code='int main(){return(0);}'
8412
8413
8414
8415
8416
8417
8418
8419# If no C compiler was specified, use CC.
8420LTCC=${LTCC-"$CC"}
8421
8422# If no C compiler flags were specified, use CFLAGS.
8423LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8424
8425# Allow CC to be a program name with arguments.
8426compiler=$CC
8427
8428# Save the default compiler, since it gets overwritten when the other
8429# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8430compiler_DEFAULT=$CC
8431
8432# save warnings/boilerplate of simple test code
8433ac_outfile=conftest.$ac_objext
8434echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8435eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8436_lt_compiler_boilerplate=`cat conftest.err`
8437$RM conftest*
8438
8439ac_outfile=conftest.$ac_objext
8440echo "$lt_simple_link_test_code" >conftest.$ac_ext
8441eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8442_lt_linker_boilerplate=`cat conftest.err`
8443$RM -r conftest*
8444
8445
8446## CAVEAT EMPTOR:
8447## There is no encapsulation within the following macros, do not change
8448## the running order or otherwise move them around unless you know exactly
8449## what you are doing...
8450if test -n "$compiler"; then
8451
8452lt_prog_compiler_no_builtin_flag=
8453
8454if test "$GCC" = yes; then
8455  case $cc_basename in
8456  nvcc*)
8457    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8458  *)
8459    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8460  esac
8461
8462  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8463$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8464if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8465  $as_echo_n "(cached) " >&6
8466else
8467  lt_cv_prog_compiler_rtti_exceptions=no
8468   ac_outfile=conftest.$ac_objext
8469   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8470   lt_compiler_flag="-fno-rtti -fno-exceptions"
8471   # Insert the option either (1) after the last *FLAGS variable, or
8472   # (2) before a word containing "conftest.", or (3) at the end.
8473   # Note that $ac_compile itself does not contain backslashes and begins
8474   # with a dollar sign (not a hyphen), so the echo should work correctly.
8475   # The option is referenced via a variable to avoid confusing sed.
8476   lt_compile=`echo "$ac_compile" | $SED \
8477   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8478   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8479   -e 's:$: $lt_compiler_flag:'`
8480   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8481   (eval "$lt_compile" 2>conftest.err)
8482   ac_status=$?
8483   cat conftest.err >&5
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   if (exit $ac_status) && test -s "$ac_outfile"; then
8486     # The compiler can only warn and ignore the option if not recognized
8487     # So say no if there are warnings other than the usual output.
8488     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8489     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8490     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8491       lt_cv_prog_compiler_rtti_exceptions=yes
8492     fi
8493   fi
8494   $RM conftest*
8495
8496fi
8497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8498$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8499
8500if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8501    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8502else
8503    :
8504fi
8505
8506fi
8507
8508
8509
8510
8511
8512
8513  lt_prog_compiler_wl=
8514lt_prog_compiler_pic=
8515lt_prog_compiler_static=
8516
8517
8518  if test "$GCC" = yes; then
8519    lt_prog_compiler_wl='-Wl,'
8520    lt_prog_compiler_static='-static'
8521
8522    case $host_os in
8523      aix*)
8524      # All AIX code is PIC.
8525      if test "$host_cpu" = ia64; then
8526	# AIX 5 now supports IA64 processor
8527	lt_prog_compiler_static='-Bstatic'
8528      fi
8529      ;;
8530
8531    amigaos*)
8532      case $host_cpu in
8533      powerpc)
8534            # see comment about AmigaOS4 .so support
8535            lt_prog_compiler_pic='-fPIC'
8536        ;;
8537      m68k)
8538            # FIXME: we need at least 68020 code to build shared libraries, but
8539            # adding the `-m68020' flag to GCC prevents building anything better,
8540            # like `-m68040'.
8541            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8542        ;;
8543      esac
8544      ;;
8545
8546    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8547      # PIC is the default for these OSes.
8548      ;;
8549
8550    mingw* | cygwin* | pw32* | os2* | cegcc*)
8551      # This hack is so that the source file can tell whether it is being
8552      # built for inclusion in a dll (and should export symbols for example).
8553      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8554      # (--disable-auto-import) libraries
8555      lt_prog_compiler_pic='-DDLL_EXPORT'
8556      ;;
8557
8558    darwin* | rhapsody*)
8559      # PIC is the default on this platform
8560      # Common symbols not allowed in MH_DYLIB files
8561      lt_prog_compiler_pic='-fno-common'
8562      ;;
8563
8564    haiku*)
8565      # PIC is the default for Haiku.
8566      # The "-static" flag exists, but is broken.
8567      lt_prog_compiler_static=
8568      ;;
8569
8570    hpux*)
8571      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8572      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8573      # sets the default TLS model and affects inlining.
8574      case $host_cpu in
8575      hppa*64*)
8576	# +Z the default
8577	;;
8578      *)
8579	lt_prog_compiler_pic='-fPIC'
8580	;;
8581      esac
8582      ;;
8583
8584    interix[3-9]*)
8585      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8586      # Instead, we relocate shared libraries at runtime.
8587      ;;
8588
8589    msdosdjgpp*)
8590      # Just because we use GCC doesn't mean we suddenly get shared libraries
8591      # on systems that don't support them.
8592      lt_prog_compiler_can_build_shared=no
8593      enable_shared=no
8594      ;;
8595
8596    *nto* | *qnx*)
8597      # QNX uses GNU C++, but need to define -shared option too, otherwise
8598      # it will coredump.
8599      lt_prog_compiler_pic='-fPIC -shared'
8600      ;;
8601
8602    sysv4*MP*)
8603      if test -d /usr/nec; then
8604	lt_prog_compiler_pic=-Kconform_pic
8605      fi
8606      ;;
8607
8608    *)
8609      lt_prog_compiler_pic='-fPIC'
8610      ;;
8611    esac
8612
8613    case $cc_basename in
8614    nvcc*) # Cuda Compiler Driver 2.2
8615      lt_prog_compiler_wl='-Xlinker '
8616      if test -n "$lt_prog_compiler_pic"; then
8617        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8618      fi
8619      ;;
8620    esac
8621  else
8622    # PORTME Check for flag to pass linker flags through the system compiler.
8623    case $host_os in
8624    aix*)
8625      lt_prog_compiler_wl='-Wl,'
8626      if test "$host_cpu" = ia64; then
8627	# AIX 5 now supports IA64 processor
8628	lt_prog_compiler_static='-Bstatic'
8629      else
8630	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8631      fi
8632      ;;
8633
8634    mingw* | cygwin* | pw32* | os2* | cegcc*)
8635      # This hack is so that the source file can tell whether it is being
8636      # built for inclusion in a dll (and should export symbols for example).
8637      lt_prog_compiler_pic='-DDLL_EXPORT'
8638      ;;
8639
8640    hpux9* | hpux10* | hpux11*)
8641      lt_prog_compiler_wl='-Wl,'
8642      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8643      # not for PA HP-UX.
8644      case $host_cpu in
8645      hppa*64*|ia64*)
8646	# +Z the default
8647	;;
8648      *)
8649	lt_prog_compiler_pic='+Z'
8650	;;
8651      esac
8652      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8653      lt_prog_compiler_static='${wl}-a ${wl}archive'
8654      ;;
8655
8656    irix5* | irix6* | nonstopux*)
8657      lt_prog_compiler_wl='-Wl,'
8658      # PIC (with -KPIC) is the default.
8659      lt_prog_compiler_static='-non_shared'
8660      ;;
8661
8662    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8663      case $cc_basename in
8664      # old Intel for x86_64 which still supported -KPIC.
8665      ecc*)
8666	lt_prog_compiler_wl='-Wl,'
8667	lt_prog_compiler_pic='-KPIC'
8668	lt_prog_compiler_static='-static'
8669        ;;
8670      # icc used to be incompatible with GCC.
8671      # ICC 10 doesn't accept -KPIC any more.
8672      icc* | ifort*)
8673	lt_prog_compiler_wl='-Wl,'
8674	lt_prog_compiler_pic='-fPIC'
8675	lt_prog_compiler_static='-static'
8676        ;;
8677      # Lahey Fortran 8.1.
8678      lf95*)
8679	lt_prog_compiler_wl='-Wl,'
8680	lt_prog_compiler_pic='--shared'
8681	lt_prog_compiler_static='--static'
8682	;;
8683      nagfor*)
8684	# NAG Fortran compiler
8685	lt_prog_compiler_wl='-Wl,-Wl,,'
8686	lt_prog_compiler_pic='-PIC'
8687	lt_prog_compiler_static='-Bstatic'
8688	;;
8689      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8690        # Portland Group compilers (*not* the Pentium gcc compiler,
8691	# which looks to be a dead project)
8692	lt_prog_compiler_wl='-Wl,'
8693	lt_prog_compiler_pic='-fpic'
8694	lt_prog_compiler_static='-Bstatic'
8695        ;;
8696      ccc*)
8697        lt_prog_compiler_wl='-Wl,'
8698        # All Alpha code is PIC.
8699        lt_prog_compiler_static='-non_shared'
8700        ;;
8701      xl* | bgxl* | bgf* | mpixl*)
8702	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8703	lt_prog_compiler_wl='-Wl,'
8704	lt_prog_compiler_pic='-qpic'
8705	lt_prog_compiler_static='-qstaticlink'
8706	;;
8707      *)
8708	case `$CC -V 2>&1 | sed 5q` in
8709	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8710	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8711	  lt_prog_compiler_pic='-KPIC'
8712	  lt_prog_compiler_static='-Bstatic'
8713	  lt_prog_compiler_wl=''
8714	  ;;
8715	*Sun\ F* | *Sun*Fortran*)
8716	  lt_prog_compiler_pic='-KPIC'
8717	  lt_prog_compiler_static='-Bstatic'
8718	  lt_prog_compiler_wl='-Qoption ld '
8719	  ;;
8720	*Sun\ C*)
8721	  # Sun C 5.9
8722	  lt_prog_compiler_pic='-KPIC'
8723	  lt_prog_compiler_static='-Bstatic'
8724	  lt_prog_compiler_wl='-Wl,'
8725	  ;;
8726        *Intel*\ [CF]*Compiler*)
8727	  lt_prog_compiler_wl='-Wl,'
8728	  lt_prog_compiler_pic='-fPIC'
8729	  lt_prog_compiler_static='-static'
8730	  ;;
8731	*Portland\ Group*)
8732	  lt_prog_compiler_wl='-Wl,'
8733	  lt_prog_compiler_pic='-fpic'
8734	  lt_prog_compiler_static='-Bstatic'
8735	  ;;
8736	esac
8737	;;
8738      esac
8739      ;;
8740
8741    newsos6)
8742      lt_prog_compiler_pic='-KPIC'
8743      lt_prog_compiler_static='-Bstatic'
8744      ;;
8745
8746    *nto* | *qnx*)
8747      # QNX uses GNU C++, but need to define -shared option too, otherwise
8748      # it will coredump.
8749      lt_prog_compiler_pic='-fPIC -shared'
8750      ;;
8751
8752    osf3* | osf4* | osf5*)
8753      lt_prog_compiler_wl='-Wl,'
8754      # All OSF/1 code is PIC.
8755      lt_prog_compiler_static='-non_shared'
8756      ;;
8757
8758    rdos*)
8759      lt_prog_compiler_static='-non_shared'
8760      ;;
8761
8762    solaris*)
8763      lt_prog_compiler_pic='-KPIC'
8764      lt_prog_compiler_static='-Bstatic'
8765      case $cc_basename in
8766      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8767	lt_prog_compiler_wl='-Qoption ld ';;
8768      *)
8769	lt_prog_compiler_wl='-Wl,';;
8770      esac
8771      ;;
8772
8773    sunos4*)
8774      lt_prog_compiler_wl='-Qoption ld '
8775      lt_prog_compiler_pic='-PIC'
8776      lt_prog_compiler_static='-Bstatic'
8777      ;;
8778
8779    sysv4 | sysv4.2uw2* | sysv4.3*)
8780      lt_prog_compiler_wl='-Wl,'
8781      lt_prog_compiler_pic='-KPIC'
8782      lt_prog_compiler_static='-Bstatic'
8783      ;;
8784
8785    sysv4*MP*)
8786      if test -d /usr/nec ;then
8787	lt_prog_compiler_pic='-Kconform_pic'
8788	lt_prog_compiler_static='-Bstatic'
8789      fi
8790      ;;
8791
8792    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8793      lt_prog_compiler_wl='-Wl,'
8794      lt_prog_compiler_pic='-KPIC'
8795      lt_prog_compiler_static='-Bstatic'
8796      ;;
8797
8798    unicos*)
8799      lt_prog_compiler_wl='-Wl,'
8800      lt_prog_compiler_can_build_shared=no
8801      ;;
8802
8803    uts4*)
8804      lt_prog_compiler_pic='-pic'
8805      lt_prog_compiler_static='-Bstatic'
8806      ;;
8807
8808    *)
8809      lt_prog_compiler_can_build_shared=no
8810      ;;
8811    esac
8812  fi
8813
8814case $host_os in
8815  # For platforms which do not support PIC, -DPIC is meaningless:
8816  *djgpp*)
8817    lt_prog_compiler_pic=
8818    ;;
8819  *)
8820    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8821    ;;
8822esac
8823
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8825$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8826if ${lt_cv_prog_compiler_pic+:} false; then :
8827  $as_echo_n "(cached) " >&6
8828else
8829  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8830fi
8831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8832$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8833lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8834
8835#
8836# Check to make sure the PIC flag actually works.
8837#
8838if test -n "$lt_prog_compiler_pic"; then
8839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8840$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8841if ${lt_cv_prog_compiler_pic_works+:} false; then :
8842  $as_echo_n "(cached) " >&6
8843else
8844  lt_cv_prog_compiler_pic_works=no
8845   ac_outfile=conftest.$ac_objext
8846   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8847   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8848   # Insert the option either (1) after the last *FLAGS variable, or
8849   # (2) before a word containing "conftest.", or (3) at the end.
8850   # Note that $ac_compile itself does not contain backslashes and begins
8851   # with a dollar sign (not a hyphen), so the echo should work correctly.
8852   # The option is referenced via a variable to avoid confusing sed.
8853   lt_compile=`echo "$ac_compile" | $SED \
8854   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8855   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8856   -e 's:$: $lt_compiler_flag:'`
8857   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8858   (eval "$lt_compile" 2>conftest.err)
8859   ac_status=$?
8860   cat conftest.err >&5
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   if (exit $ac_status) && test -s "$ac_outfile"; then
8863     # The compiler can only warn and ignore the option if not recognized
8864     # So say no if there are warnings other than the usual output.
8865     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8866     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8867     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8868       lt_cv_prog_compiler_pic_works=yes
8869     fi
8870   fi
8871   $RM conftest*
8872
8873fi
8874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8875$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8876
8877if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8878    case $lt_prog_compiler_pic in
8879     "" | " "*) ;;
8880     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8881     esac
8882else
8883    lt_prog_compiler_pic=
8884     lt_prog_compiler_can_build_shared=no
8885fi
8886
8887fi
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899#
8900# Check to make sure the static flag actually works.
8901#
8902wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8904$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8905if ${lt_cv_prog_compiler_static_works+:} false; then :
8906  $as_echo_n "(cached) " >&6
8907else
8908  lt_cv_prog_compiler_static_works=no
8909   save_LDFLAGS="$LDFLAGS"
8910   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8911   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8912   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8913     # The linker can only warn and ignore the option if not recognized
8914     # So say no if there are warnings
8915     if test -s conftest.err; then
8916       # Append any errors to the config.log.
8917       cat conftest.err 1>&5
8918       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8919       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8920       if diff conftest.exp conftest.er2 >/dev/null; then
8921         lt_cv_prog_compiler_static_works=yes
8922       fi
8923     else
8924       lt_cv_prog_compiler_static_works=yes
8925     fi
8926   fi
8927   $RM -r conftest*
8928   LDFLAGS="$save_LDFLAGS"
8929
8930fi
8931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8932$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8933
8934if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8935    :
8936else
8937    lt_prog_compiler_static=
8938fi
8939
8940
8941
8942
8943
8944
8945
8946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8947$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8948if ${lt_cv_prog_compiler_c_o+:} false; then :
8949  $as_echo_n "(cached) " >&6
8950else
8951  lt_cv_prog_compiler_c_o=no
8952   $RM -r conftest 2>/dev/null
8953   mkdir conftest
8954   cd conftest
8955   mkdir out
8956   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8957
8958   lt_compiler_flag="-o out/conftest2.$ac_objext"
8959   # Insert the option either (1) after the last *FLAGS variable, or
8960   # (2) before a word containing "conftest.", or (3) at the end.
8961   # Note that $ac_compile itself does not contain backslashes and begins
8962   # with a dollar sign (not a hyphen), so the echo should work correctly.
8963   lt_compile=`echo "$ac_compile" | $SED \
8964   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8965   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8966   -e 's:$: $lt_compiler_flag:'`
8967   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8968   (eval "$lt_compile" 2>out/conftest.err)
8969   ac_status=$?
8970   cat out/conftest.err >&5
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8973   then
8974     # The compiler can only warn and ignore the option if not recognized
8975     # So say no if there are warnings
8976     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8977     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8978     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8979       lt_cv_prog_compiler_c_o=yes
8980     fi
8981   fi
8982   chmod u+w . 2>&5
8983   $RM conftest*
8984   # SGI C++ compiler will create directory out/ii_files/ for
8985   # template instantiation
8986   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8987   $RM out/* && rmdir out
8988   cd ..
8989   $RM -r conftest
8990   $RM conftest*
8991
8992fi
8993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8994$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8995
8996
8997
8998
8999
9000
9001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9002$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9003if ${lt_cv_prog_compiler_c_o+:} false; then :
9004  $as_echo_n "(cached) " >&6
9005else
9006  lt_cv_prog_compiler_c_o=no
9007   $RM -r conftest 2>/dev/null
9008   mkdir conftest
9009   cd conftest
9010   mkdir out
9011   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9012
9013   lt_compiler_flag="-o out/conftest2.$ac_objext"
9014   # Insert the option either (1) after the last *FLAGS variable, or
9015   # (2) before a word containing "conftest.", or (3) at the end.
9016   # Note that $ac_compile itself does not contain backslashes and begins
9017   # with a dollar sign (not a hyphen), so the echo should work correctly.
9018   lt_compile=`echo "$ac_compile" | $SED \
9019   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9020   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9021   -e 's:$: $lt_compiler_flag:'`
9022   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9023   (eval "$lt_compile" 2>out/conftest.err)
9024   ac_status=$?
9025   cat out/conftest.err >&5
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9028   then
9029     # The compiler can only warn and ignore the option if not recognized
9030     # So say no if there are warnings
9031     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9032     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9033     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9034       lt_cv_prog_compiler_c_o=yes
9035     fi
9036   fi
9037   chmod u+w . 2>&5
9038   $RM conftest*
9039   # SGI C++ compiler will create directory out/ii_files/ for
9040   # template instantiation
9041   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9042   $RM out/* && rmdir out
9043   cd ..
9044   $RM -r conftest
9045   $RM conftest*
9046
9047fi
9048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9049$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9050
9051
9052
9053
9054hard_links="nottested"
9055if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9056  # do not overwrite the value of need_locks provided by the user
9057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9058$as_echo_n "checking if we can lock with hard links... " >&6; }
9059  hard_links=yes
9060  $RM conftest*
9061  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9062  touch conftest.a
9063  ln conftest.a conftest.b 2>&5 || hard_links=no
9064  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9066$as_echo "$hard_links" >&6; }
9067  if test "$hard_links" = no; then
9068    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9069$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9070    need_locks=warn
9071  fi
9072else
9073  need_locks=no
9074fi
9075
9076
9077
9078
9079
9080
9081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9082$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9083
9084  runpath_var=
9085  allow_undefined_flag=
9086  always_export_symbols=no
9087  archive_cmds=
9088  archive_expsym_cmds=
9089  compiler_needs_object=no
9090  enable_shared_with_static_runtimes=no
9091  export_dynamic_flag_spec=
9092  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9093  hardcode_automatic=no
9094  hardcode_direct=no
9095  hardcode_direct_absolute=no
9096  hardcode_libdir_flag_spec=
9097  hardcode_libdir_separator=
9098  hardcode_minus_L=no
9099  hardcode_shlibpath_var=unsupported
9100  inherit_rpath=no
9101  link_all_deplibs=unknown
9102  module_cmds=
9103  module_expsym_cmds=
9104  old_archive_from_new_cmds=
9105  old_archive_from_expsyms_cmds=
9106  thread_safe_flag_spec=
9107  whole_archive_flag_spec=
9108  # include_expsyms should be a list of space-separated symbols to be *always*
9109  # included in the symbol list
9110  include_expsyms=
9111  # exclude_expsyms can be an extended regexp of symbols to exclude
9112  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9113  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9114  # as well as any symbol that contains `d'.
9115  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9116  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9117  # platforms (ab)use it in PIC code, but their linkers get confused if
9118  # the symbol is explicitly referenced.  Since portable code cannot
9119  # rely on this symbol name, it's probably fine to never include it in
9120  # preloaded symbol tables.
9121  # Exclude shared library initialization/finalization symbols.
9122  extract_expsyms_cmds=
9123
9124  case $host_os in
9125  cygwin* | mingw* | pw32* | cegcc*)
9126    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9127    # When not using gcc, we currently assume that we are using
9128    # Microsoft Visual C++.
9129    if test "$GCC" != yes; then
9130      with_gnu_ld=no
9131    fi
9132    ;;
9133  interix*)
9134    # we just hope/assume this is gcc and not c89 (= MSVC++)
9135    with_gnu_ld=yes
9136    ;;
9137  openbsd*)
9138    with_gnu_ld=no
9139    ;;
9140  esac
9141
9142  ld_shlibs=yes
9143
9144  # On some targets, GNU ld is compatible enough with the native linker
9145  # that we're better off using the native interface for both.
9146  lt_use_gnu_ld_interface=no
9147  if test "$with_gnu_ld" = yes; then
9148    case $host_os in
9149      aix*)
9150	# The AIX port of GNU ld has always aspired to compatibility
9151	# with the native linker.  However, as the warning in the GNU ld
9152	# block says, versions before 2.19.5* couldn't really create working
9153	# shared libraries, regardless of the interface used.
9154	case `$LD -v 2>&1` in
9155	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9156	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9157	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9158	  *)
9159	    lt_use_gnu_ld_interface=yes
9160	    ;;
9161	esac
9162	;;
9163      *)
9164	lt_use_gnu_ld_interface=yes
9165	;;
9166    esac
9167  fi
9168
9169  if test "$lt_use_gnu_ld_interface" = yes; then
9170    # If archive_cmds runs LD, not CC, wlarc should be empty
9171    wlarc='${wl}'
9172
9173    # Set some defaults for GNU ld with shared library support. These
9174    # are reset later if shared libraries are not supported. Putting them
9175    # here allows them to be overridden if necessary.
9176    runpath_var=LD_RUN_PATH
9177    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9178    export_dynamic_flag_spec='${wl}--export-dynamic'
9179    # ancient GNU ld didn't support --whole-archive et. al.
9180    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9181      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9182    else
9183      whole_archive_flag_spec=
9184    fi
9185    supports_anon_versioning=no
9186    case `$LD -v 2>&1` in
9187      *GNU\ gold*) supports_anon_versioning=yes ;;
9188      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9189      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9190      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9191      *\ 2.11.*) ;; # other 2.11 versions
9192      *) supports_anon_versioning=yes ;;
9193    esac
9194
9195    # See if GNU ld supports shared libraries.
9196    case $host_os in
9197    aix[3-9]*)
9198      # On AIX/PPC, the GNU linker is very broken
9199      if test "$host_cpu" != ia64; then
9200	ld_shlibs=no
9201	cat <<_LT_EOF 1>&2
9202
9203*** Warning: the GNU linker, at least up to release 2.19, is reported
9204*** to be unable to reliably create shared libraries on AIX.
9205*** Therefore, libtool is disabling shared libraries support.  If you
9206*** really care for shared libraries, you may want to install binutils
9207*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9208*** You will then need to restart the configuration process.
9209
9210_LT_EOF
9211      fi
9212      ;;
9213
9214    amigaos*)
9215      case $host_cpu in
9216      powerpc)
9217            # see comment about AmigaOS4 .so support
9218            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9219            archive_expsym_cmds=''
9220        ;;
9221      m68k)
9222            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)'
9223            hardcode_libdir_flag_spec='-L$libdir'
9224            hardcode_minus_L=yes
9225        ;;
9226      esac
9227      ;;
9228
9229    beos*)
9230      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9231	allow_undefined_flag=unsupported
9232	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9233	# support --undefined.  This deserves some investigation.  FIXME
9234	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235      else
9236	ld_shlibs=no
9237      fi
9238      ;;
9239
9240    cygwin* | mingw* | pw32* | cegcc*)
9241      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9242      # as there is no search path for DLLs.
9243      hardcode_libdir_flag_spec='-L$libdir'
9244      export_dynamic_flag_spec='${wl}--export-all-symbols'
9245      allow_undefined_flag=unsupported
9246      always_export_symbols=no
9247      enable_shared_with_static_runtimes=yes
9248      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'
9249      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9250
9251      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9252        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9253	# If the export-symbols file already is a .def file (1st line
9254	# is EXPORTS), use it as is; otherwise, prepend...
9255	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9256	  cp $export_symbols $output_objdir/$soname.def;
9257	else
9258	  echo EXPORTS > $output_objdir/$soname.def;
9259	  cat $export_symbols >> $output_objdir/$soname.def;
9260	fi~
9261	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9262      else
9263	ld_shlibs=no
9264      fi
9265      ;;
9266
9267    haiku*)
9268      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9269      link_all_deplibs=yes
9270      ;;
9271
9272    interix[3-9]*)
9273      hardcode_direct=no
9274      hardcode_shlibpath_var=no
9275      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9276      export_dynamic_flag_spec='${wl}-E'
9277      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9278      # Instead, shared libraries are loaded at an image base (0x10000000 by
9279      # default) and relocated if they conflict, which is a slow very memory
9280      # consuming and fragmenting process.  To avoid this, we pick a random,
9281      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9282      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9283      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9284      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'
9285      ;;
9286
9287    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9288      tmp_diet=no
9289      if test "$host_os" = linux-dietlibc; then
9290	case $cc_basename in
9291	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9292	esac
9293      fi
9294      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9295	 && test "$tmp_diet" = no
9296      then
9297	tmp_addflag=' $pic_flag'
9298	tmp_sharedflag='-shared'
9299	case $cc_basename,$host_cpu in
9300        pgcc*)				# Portland Group C compiler
9301	  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'
9302	  tmp_addflag=' $pic_flag'
9303	  ;;
9304	pgf77* | pgf90* | pgf95* | pgfortran*)
9305					# Portland Group f77 and f90 compilers
9306	  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'
9307	  tmp_addflag=' $pic_flag -Mnomain' ;;
9308	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9309	  tmp_addflag=' -i_dynamic' ;;
9310	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9311	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9312	ifc* | ifort*)			# Intel Fortran compiler
9313	  tmp_addflag=' -nofor_main' ;;
9314	lf95*)				# Lahey Fortran 8.1
9315	  whole_archive_flag_spec=
9316	  tmp_sharedflag='--shared' ;;
9317	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9318	  tmp_sharedflag='-qmkshrobj'
9319	  tmp_addflag= ;;
9320	nvcc*)	# Cuda Compiler Driver 2.2
9321	  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'
9322	  compiler_needs_object=yes
9323	  ;;
9324	esac
9325	case `$CC -V 2>&1 | sed 5q` in
9326	*Sun\ C*)			# Sun C 5.9
9327	  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'
9328	  compiler_needs_object=yes
9329	  tmp_sharedflag='-G' ;;
9330	*Sun\ F*)			# Sun Fortran 8.3
9331	  tmp_sharedflag='-G' ;;
9332	esac
9333	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334
9335        if test "x$supports_anon_versioning" = xyes; then
9336          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9337	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9338	    echo "local: *; };" >> $output_objdir/$libname.ver~
9339	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9340        fi
9341
9342	case $cc_basename in
9343	xlf* | bgf* | bgxlf* | mpixlf*)
9344	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9345	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9346	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9347	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9348	  if test "x$supports_anon_versioning" = xyes; then
9349	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9350	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9351	      echo "local: *; };" >> $output_objdir/$libname.ver~
9352	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9353	  fi
9354	  ;;
9355	esac
9356      else
9357        ld_shlibs=no
9358      fi
9359      ;;
9360
9361    netbsd*)
9362      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9363	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9364	wlarc=
9365      else
9366	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9367	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9368      fi
9369      ;;
9370
9371    solaris*)
9372      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9373	ld_shlibs=no
9374	cat <<_LT_EOF 1>&2
9375
9376*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9377*** create shared libraries on Solaris systems.  Therefore, libtool
9378*** is disabling shared libraries support.  We urge you to upgrade GNU
9379*** binutils to release 2.9.1 or newer.  Another option is to modify
9380*** your PATH or compiler configuration so that the native linker is
9381*** used, and then restart.
9382
9383_LT_EOF
9384      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9385	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9386	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9387      else
9388	ld_shlibs=no
9389      fi
9390      ;;
9391
9392    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9393      case `$LD -v 2>&1` in
9394        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9395	ld_shlibs=no
9396	cat <<_LT_EOF 1>&2
9397
9398*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9399*** reliably create shared libraries on SCO systems.  Therefore, libtool
9400*** is disabling shared libraries support.  We urge you to upgrade GNU
9401*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9402*** your PATH or compiler configuration so that the native linker is
9403*** used, and then restart.
9404
9405_LT_EOF
9406	;;
9407	*)
9408	  # For security reasons, it is highly recommended that you always
9409	  # use absolute paths for naming shared libraries, and exclude the
9410	  # DT_RUNPATH tag from executables and libraries.  But doing so
9411	  # requires that you compile everything twice, which is a pain.
9412	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9413	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9414	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9415	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9416	  else
9417	    ld_shlibs=no
9418	  fi
9419	;;
9420      esac
9421      ;;
9422
9423    sunos4*)
9424      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9425      wlarc=
9426      hardcode_direct=yes
9427      hardcode_shlibpath_var=no
9428      ;;
9429
9430    *)
9431      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9432	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9433	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9434      else
9435	ld_shlibs=no
9436      fi
9437      ;;
9438    esac
9439
9440    if test "$ld_shlibs" = no; then
9441      runpath_var=
9442      hardcode_libdir_flag_spec=
9443      export_dynamic_flag_spec=
9444      whole_archive_flag_spec=
9445    fi
9446  else
9447    # PORTME fill in a description of your system's linker (not GNU ld)
9448    case $host_os in
9449    aix3*)
9450      allow_undefined_flag=unsupported
9451      always_export_symbols=yes
9452      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'
9453      # Note: this linker hardcodes the directories in LIBPATH if there
9454      # are no directories specified by -L.
9455      hardcode_minus_L=yes
9456      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9457	# Neither direct hardcoding nor static linking is supported with a
9458	# broken collect2.
9459	hardcode_direct=unsupported
9460      fi
9461      ;;
9462
9463    aix[4-9]*)
9464      if test "$host_cpu" = ia64; then
9465	# On IA64, the linker does run time linking by default, so we don't
9466	# have to do anything special.
9467	aix_use_runtimelinking=no
9468	exp_sym_flag='-Bexport'
9469	no_entry_flag=""
9470      else
9471	# If we're using GNU nm, then we don't want the "-C" option.
9472	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9473	# Also, AIX nm treats weak defined symbols like other global
9474	# defined symbols, whereas GNU nm marks them as "W".
9475	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9476	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9477	else
9478	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9479	fi
9480	aix_use_runtimelinking=no
9481
9482	# Test if we are trying to use run time linking or normal
9483	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9484	# need to do runtime linking.
9485	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9486	  for ld_flag in $LDFLAGS; do
9487	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9488	    aix_use_runtimelinking=yes
9489	    break
9490	  fi
9491	  done
9492	  ;;
9493	esac
9494
9495	exp_sym_flag='-bexport'
9496	no_entry_flag='-bnoentry'
9497      fi
9498
9499      # When large executables or shared objects are built, AIX ld can
9500      # have problems creating the table of contents.  If linking a library
9501      # or program results in "error TOC overflow" add -mminimal-toc to
9502      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9503      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9504
9505      archive_cmds=''
9506      hardcode_direct=yes
9507      hardcode_direct_absolute=yes
9508      hardcode_libdir_separator=':'
9509      link_all_deplibs=yes
9510      file_list_spec='${wl}-f,'
9511
9512      if test "$GCC" = yes; then
9513	case $host_os in aix4.[012]|aix4.[012].*)
9514	# We only want to do this on AIX 4.2 and lower, the check
9515	# below for broken collect2 doesn't work under 4.3+
9516	  collect2name=`${CC} -print-prog-name=collect2`
9517	  if test -f "$collect2name" &&
9518	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9519	  then
9520	  # We have reworked collect2
9521	  :
9522	  else
9523	  # We have old collect2
9524	  hardcode_direct=unsupported
9525	  # It fails to find uninstalled libraries when the uninstalled
9526	  # path is not listed in the libpath.  Setting hardcode_minus_L
9527	  # to unsupported forces relinking
9528	  hardcode_minus_L=yes
9529	  hardcode_libdir_flag_spec='-L$libdir'
9530	  hardcode_libdir_separator=
9531	  fi
9532	  ;;
9533	esac
9534	shared_flag='-shared'
9535	if test "$aix_use_runtimelinking" = yes; then
9536	  shared_flag="$shared_flag "'${wl}-G'
9537	fi
9538      else
9539	# not using gcc
9540	if test "$host_cpu" = ia64; then
9541	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9542	# chokes on -Wl,-G. The following line is correct:
9543	  shared_flag='-G'
9544	else
9545	  if test "$aix_use_runtimelinking" = yes; then
9546	    shared_flag='${wl}-G'
9547	  else
9548	    shared_flag='${wl}-bM:SRE'
9549	  fi
9550	fi
9551      fi
9552
9553      export_dynamic_flag_spec='${wl}-bexpall'
9554      # It seems that -bexpall does not export symbols beginning with
9555      # underscore (_), so it is better to generate a list of symbols to export.
9556      always_export_symbols=yes
9557      if test "$aix_use_runtimelinking" = yes; then
9558	# Warning - without using the other runtime loading flags (-brtl),
9559	# -berok will link without error, but may produce a broken library.
9560	allow_undefined_flag='-berok'
9561        # Determine the default libpath from the value encoded in an
9562        # empty executable.
9563        if test "${lt_cv_aix_libpath+set}" = set; then
9564  aix_libpath=$lt_cv_aix_libpath
9565else
9566  if ${lt_cv_aix_libpath_+:} false; then :
9567  $as_echo_n "(cached) " >&6
9568else
9569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570/* end confdefs.h.  */
9571
9572int
9573main ()
9574{
9575
9576  ;
9577  return 0;
9578}
9579_ACEOF
9580if ac_fn_c_try_link "$LINENO"; then :
9581
9582  lt_aix_libpath_sed='
9583      /Import File Strings/,/^$/ {
9584	  /^0/ {
9585	      s/^0  *\([^ ]*\) *$/\1/
9586	      p
9587	  }
9588      }'
9589  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9590  # Check for a 64-bit object if we didn't find anything.
9591  if test -z "$lt_cv_aix_libpath_"; then
9592    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9593  fi
9594fi
9595rm -f core conftest.err conftest.$ac_objext \
9596    conftest$ac_exeext conftest.$ac_ext
9597  if test -z "$lt_cv_aix_libpath_"; then
9598    lt_cv_aix_libpath_="/usr/lib:/lib"
9599  fi
9600
9601fi
9602
9603  aix_libpath=$lt_cv_aix_libpath_
9604fi
9605
9606        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9607        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9608      else
9609	if test "$host_cpu" = ia64; then
9610	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9611	  allow_undefined_flag="-z nodefs"
9612	  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"
9613	else
9614	 # Determine the default libpath from the value encoded in an
9615	 # empty executable.
9616	 if test "${lt_cv_aix_libpath+set}" = set; then
9617  aix_libpath=$lt_cv_aix_libpath
9618else
9619  if ${lt_cv_aix_libpath_+:} false; then :
9620  $as_echo_n "(cached) " >&6
9621else
9622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623/* end confdefs.h.  */
9624
9625int
9626main ()
9627{
9628
9629  ;
9630  return 0;
9631}
9632_ACEOF
9633if ac_fn_c_try_link "$LINENO"; then :
9634
9635  lt_aix_libpath_sed='
9636      /Import File Strings/,/^$/ {
9637	  /^0/ {
9638	      s/^0  *\([^ ]*\) *$/\1/
9639	      p
9640	  }
9641      }'
9642  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9643  # Check for a 64-bit object if we didn't find anything.
9644  if test -z "$lt_cv_aix_libpath_"; then
9645    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9646  fi
9647fi
9648rm -f core conftest.err conftest.$ac_objext \
9649    conftest$ac_exeext conftest.$ac_ext
9650  if test -z "$lt_cv_aix_libpath_"; then
9651    lt_cv_aix_libpath_="/usr/lib:/lib"
9652  fi
9653
9654fi
9655
9656  aix_libpath=$lt_cv_aix_libpath_
9657fi
9658
9659	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9660	  # Warning - without using the other run time loading flags,
9661	  # -berok will link without error, but may produce a broken library.
9662	  no_undefined_flag=' ${wl}-bernotok'
9663	  allow_undefined_flag=' ${wl}-berok'
9664	  if test "$with_gnu_ld" = yes; then
9665	    # We only use this code for GNU lds that support --whole-archive.
9666	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9667	  else
9668	    # Exported symbols can be pulled into shared objects from archives
9669	    whole_archive_flag_spec='$convenience'
9670	  fi
9671	  archive_cmds_need_lc=yes
9672	  # This is similar to how AIX traditionally builds its shared libraries.
9673	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9674	fi
9675      fi
9676      ;;
9677
9678    amigaos*)
9679      case $host_cpu in
9680      powerpc)
9681            # see comment about AmigaOS4 .so support
9682            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9683            archive_expsym_cmds=''
9684        ;;
9685      m68k)
9686            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)'
9687            hardcode_libdir_flag_spec='-L$libdir'
9688            hardcode_minus_L=yes
9689        ;;
9690      esac
9691      ;;
9692
9693    bsdi[45]*)
9694      export_dynamic_flag_spec=-rdynamic
9695      ;;
9696
9697    cygwin* | mingw* | pw32* | cegcc*)
9698      # When not using gcc, we currently assume that we are using
9699      # Microsoft Visual C++.
9700      # hardcode_libdir_flag_spec is actually meaningless, as there is
9701      # no search path for DLLs.
9702      case $cc_basename in
9703      cl*)
9704	# Native MSVC
9705	hardcode_libdir_flag_spec=' '
9706	allow_undefined_flag=unsupported
9707	always_export_symbols=yes
9708	file_list_spec='@'
9709	# Tell ltmain to make .lib files, not .a files.
9710	libext=lib
9711	# Tell ltmain to make .dll files, not .so files.
9712	shrext_cmds=".dll"
9713	# FIXME: Setting linknames here is a bad hack.
9714	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9715	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9716	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9717	  else
9718	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9719	  fi~
9720	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9721	  linknames='
9722	# The linker will not automatically build a static lib if we build a DLL.
9723	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9724	enable_shared_with_static_runtimes=yes
9725	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9726	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9727	# Don't use ranlib
9728	old_postinstall_cmds='chmod 644 $oldlib'
9729	postlink_cmds='lt_outputfile="@OUTPUT@"~
9730	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9731	  case $lt_outputfile in
9732	    *.exe|*.EXE) ;;
9733	    *)
9734	      lt_outputfile="$lt_outputfile.exe"
9735	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9736	      ;;
9737	  esac~
9738	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9739	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9740	    $RM "$lt_outputfile.manifest";
9741	  fi'
9742	;;
9743      *)
9744	# Assume MSVC wrapper
9745	hardcode_libdir_flag_spec=' '
9746	allow_undefined_flag=unsupported
9747	# Tell ltmain to make .lib files, not .a files.
9748	libext=lib
9749	# Tell ltmain to make .dll files, not .so files.
9750	shrext_cmds=".dll"
9751	# FIXME: Setting linknames here is a bad hack.
9752	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9753	# The linker will automatically build a .lib file if we build a DLL.
9754	old_archive_from_new_cmds='true'
9755	# FIXME: Should let the user specify the lib program.
9756	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9757	enable_shared_with_static_runtimes=yes
9758	;;
9759      esac
9760      ;;
9761
9762    darwin* | rhapsody*)
9763
9764
9765  archive_cmds_need_lc=no
9766  hardcode_direct=no
9767  hardcode_automatic=yes
9768  hardcode_shlibpath_var=unsupported
9769  if test "$lt_cv_ld_force_load" = "yes"; then
9770    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\"`'
9771
9772  else
9773    whole_archive_flag_spec=''
9774  fi
9775  link_all_deplibs=yes
9776  allow_undefined_flag="$_lt_dar_allow_undefined"
9777  case $cc_basename in
9778     ifort*) _lt_dar_can_shared=yes ;;
9779     *) _lt_dar_can_shared=$GCC ;;
9780  esac
9781  if test "$_lt_dar_can_shared" = "yes"; then
9782    output_verbose_link_cmd=func_echo_all
9783    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9784    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9785    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}"
9786    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}"
9787
9788  else
9789  ld_shlibs=no
9790  fi
9791
9792      ;;
9793
9794    dgux*)
9795      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9796      hardcode_libdir_flag_spec='-L$libdir'
9797      hardcode_shlibpath_var=no
9798      ;;
9799
9800    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9801    # support.  Future versions do this automatically, but an explicit c++rt0.o
9802    # does not break anything, and helps significantly (at the cost of a little
9803    # extra space).
9804    freebsd2.2*)
9805      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9806      hardcode_libdir_flag_spec='-R$libdir'
9807      hardcode_direct=yes
9808      hardcode_shlibpath_var=no
9809      ;;
9810
9811    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9812    freebsd2.*)
9813      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9814      hardcode_direct=yes
9815      hardcode_minus_L=yes
9816      hardcode_shlibpath_var=no
9817      ;;
9818
9819    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9820    freebsd* | dragonfly*)
9821      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9822      hardcode_libdir_flag_spec='-R$libdir'
9823      hardcode_direct=yes
9824      hardcode_shlibpath_var=no
9825      ;;
9826
9827    hpux9*)
9828      if test "$GCC" = yes; then
9829	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9830      else
9831	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9832      fi
9833      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9834      hardcode_libdir_separator=:
9835      hardcode_direct=yes
9836
9837      # hardcode_minus_L: Not really in the search PATH,
9838      # but as the default location of the library.
9839      hardcode_minus_L=yes
9840      export_dynamic_flag_spec='${wl}-E'
9841      ;;
9842
9843    hpux10*)
9844      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9845	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9846      else
9847	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9848      fi
9849      if test "$with_gnu_ld" = no; then
9850	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9851	hardcode_libdir_separator=:
9852	hardcode_direct=yes
9853	hardcode_direct_absolute=yes
9854	export_dynamic_flag_spec='${wl}-E'
9855	# hardcode_minus_L: Not really in the search PATH,
9856	# but as the default location of the library.
9857	hardcode_minus_L=yes
9858      fi
9859      ;;
9860
9861    hpux11*)
9862      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9863	case $host_cpu in
9864	hppa*64*)
9865	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9866	  ;;
9867	ia64*)
9868	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9869	  ;;
9870	*)
9871	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9872	  ;;
9873	esac
9874      else
9875	case $host_cpu in
9876	hppa*64*)
9877	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9878	  ;;
9879	ia64*)
9880	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9881	  ;;
9882	*)
9883
9884	  # Older versions of the 11.00 compiler do not understand -b yet
9885	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9886	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9887$as_echo_n "checking if $CC understands -b... " >&6; }
9888if ${lt_cv_prog_compiler__b+:} false; then :
9889  $as_echo_n "(cached) " >&6
9890else
9891  lt_cv_prog_compiler__b=no
9892   save_LDFLAGS="$LDFLAGS"
9893   LDFLAGS="$LDFLAGS -b"
9894   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9895   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9896     # The linker can only warn and ignore the option if not recognized
9897     # So say no if there are warnings
9898     if test -s conftest.err; then
9899       # Append any errors to the config.log.
9900       cat conftest.err 1>&5
9901       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9902       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9903       if diff conftest.exp conftest.er2 >/dev/null; then
9904         lt_cv_prog_compiler__b=yes
9905       fi
9906     else
9907       lt_cv_prog_compiler__b=yes
9908     fi
9909   fi
9910   $RM -r conftest*
9911   LDFLAGS="$save_LDFLAGS"
9912
9913fi
9914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9915$as_echo "$lt_cv_prog_compiler__b" >&6; }
9916
9917if test x"$lt_cv_prog_compiler__b" = xyes; then
9918    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9919else
9920    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9921fi
9922
9923	  ;;
9924	esac
9925      fi
9926      if test "$with_gnu_ld" = no; then
9927	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9928	hardcode_libdir_separator=:
9929
9930	case $host_cpu in
9931	hppa*64*|ia64*)
9932	  hardcode_direct=no
9933	  hardcode_shlibpath_var=no
9934	  ;;
9935	*)
9936	  hardcode_direct=yes
9937	  hardcode_direct_absolute=yes
9938	  export_dynamic_flag_spec='${wl}-E'
9939
9940	  # hardcode_minus_L: Not really in the search PATH,
9941	  # but as the default location of the library.
9942	  hardcode_minus_L=yes
9943	  ;;
9944	esac
9945      fi
9946      ;;
9947
9948    irix5* | irix6* | nonstopux*)
9949      if test "$GCC" = yes; then
9950	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'
9951	# Try to use the -exported_symbol ld option, if it does not
9952	# work, assume that -exports_file does not work either and
9953	# implicitly export all symbols.
9954	# This should be the same for all languages, so no per-tag cache variable.
9955	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9956$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9957if ${lt_cv_irix_exported_symbol+:} false; then :
9958  $as_echo_n "(cached) " >&6
9959else
9960  save_LDFLAGS="$LDFLAGS"
9961	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9962	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963/* end confdefs.h.  */
9964int foo (void) { return 0; }
9965_ACEOF
9966if ac_fn_c_try_link "$LINENO"; then :
9967  lt_cv_irix_exported_symbol=yes
9968else
9969  lt_cv_irix_exported_symbol=no
9970fi
9971rm -f core conftest.err conftest.$ac_objext \
9972    conftest$ac_exeext conftest.$ac_ext
9973           LDFLAGS="$save_LDFLAGS"
9974fi
9975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9976$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9977	if test "$lt_cv_irix_exported_symbol" = yes; then
9978          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'
9979	fi
9980      else
9981	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'
9982	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'
9983      fi
9984      archive_cmds_need_lc='no'
9985      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9986      hardcode_libdir_separator=:
9987      inherit_rpath=yes
9988      link_all_deplibs=yes
9989      ;;
9990
9991    netbsd*)
9992      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9993	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9994      else
9995	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9996      fi
9997      hardcode_libdir_flag_spec='-R$libdir'
9998      hardcode_direct=yes
9999      hardcode_shlibpath_var=no
10000      ;;
10001
10002    newsos6)
10003      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10004      hardcode_direct=yes
10005      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10006      hardcode_libdir_separator=:
10007      hardcode_shlibpath_var=no
10008      ;;
10009
10010    *nto* | *qnx*)
10011      ;;
10012
10013    openbsd*)
10014      if test -f /usr/libexec/ld.so; then
10015	hardcode_direct=yes
10016	hardcode_shlibpath_var=no
10017	hardcode_direct_absolute=yes
10018	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10019	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10020	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10021	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10022	  export_dynamic_flag_spec='${wl}-E'
10023	else
10024	  case $host_os in
10025	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10026	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10027	     hardcode_libdir_flag_spec='-R$libdir'
10028	     ;;
10029	   *)
10030	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10031	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10032	     ;;
10033	  esac
10034	fi
10035      else
10036	ld_shlibs=no
10037      fi
10038      ;;
10039
10040    os2*)
10041      hardcode_libdir_flag_spec='-L$libdir'
10042      hardcode_minus_L=yes
10043      allow_undefined_flag=unsupported
10044      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10045      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10046      ;;
10047
10048    osf3*)
10049      if test "$GCC" = yes; then
10050	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10051	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'
10052      else
10053	allow_undefined_flag=' -expect_unresolved \*'
10054	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'
10055      fi
10056      archive_cmds_need_lc='no'
10057      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10058      hardcode_libdir_separator=:
10059      ;;
10060
10061    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10062      if test "$GCC" = yes; then
10063	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10064	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'
10065	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10066      else
10067	allow_undefined_flag=' -expect_unresolved \*'
10068	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'
10069	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~
10070	$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'
10071
10072	# Both c and cxx compiler support -rpath directly
10073	hardcode_libdir_flag_spec='-rpath $libdir'
10074      fi
10075      archive_cmds_need_lc='no'
10076      hardcode_libdir_separator=:
10077      ;;
10078
10079    solaris*)
10080      no_undefined_flag=' -z defs'
10081      if test "$GCC" = yes; then
10082	wlarc='${wl}'
10083	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10084	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10085	  $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'
10086      else
10087	case `$CC -V 2>&1` in
10088	*"Compilers 5.0"*)
10089	  wlarc=''
10090	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10092	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10093	  ;;
10094	*)
10095	  wlarc='${wl}'
10096	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10097	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10098	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10099	  ;;
10100	esac
10101      fi
10102      hardcode_libdir_flag_spec='-R$libdir'
10103      hardcode_shlibpath_var=no
10104      case $host_os in
10105      solaris2.[0-5] | solaris2.[0-5].*) ;;
10106      *)
10107	# The compiler driver will combine and reorder linker options,
10108	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10109	# but is careful enough not to reorder.
10110	# Supported since Solaris 2.6 (maybe 2.5.1?)
10111	if test "$GCC" = yes; then
10112	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10113	else
10114	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10115	fi
10116	;;
10117      esac
10118      link_all_deplibs=yes
10119      ;;
10120
10121    sunos4*)
10122      if test "x$host_vendor" = xsequent; then
10123	# Use $CC to link under sequent, because it throws in some extra .o
10124	# files that make .init and .fini sections work.
10125	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10126      else
10127	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10128      fi
10129      hardcode_libdir_flag_spec='-L$libdir'
10130      hardcode_direct=yes
10131      hardcode_minus_L=yes
10132      hardcode_shlibpath_var=no
10133      ;;
10134
10135    sysv4)
10136      case $host_vendor in
10137	sni)
10138	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10139	  hardcode_direct=yes # is this really true???
10140	;;
10141	siemens)
10142	  ## LD is ld it makes a PLAMLIB
10143	  ## CC just makes a GrossModule.
10144	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10145	  reload_cmds='$CC -r -o $output$reload_objs'
10146	  hardcode_direct=no
10147        ;;
10148	motorola)
10149	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10151	;;
10152      esac
10153      runpath_var='LD_RUN_PATH'
10154      hardcode_shlibpath_var=no
10155      ;;
10156
10157    sysv4.3*)
10158      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10159      hardcode_shlibpath_var=no
10160      export_dynamic_flag_spec='-Bexport'
10161      ;;
10162
10163    sysv4*MP*)
10164      if test -d /usr/nec; then
10165	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10166	hardcode_shlibpath_var=no
10167	runpath_var=LD_RUN_PATH
10168	hardcode_runpath_var=yes
10169	ld_shlibs=yes
10170      fi
10171      ;;
10172
10173    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10174      no_undefined_flag='${wl}-z,text'
10175      archive_cmds_need_lc=no
10176      hardcode_shlibpath_var=no
10177      runpath_var='LD_RUN_PATH'
10178
10179      if test "$GCC" = yes; then
10180	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182      else
10183	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10185      fi
10186      ;;
10187
10188    sysv5* | sco3.2v5* | sco5v6*)
10189      # Note: We can NOT use -z defs as we might desire, because we do not
10190      # link with -lc, and that would cause any symbols used from libc to
10191      # always be unresolved, which means just about no library would
10192      # ever link correctly.  If we're not using GNU ld we use -z text
10193      # though, which does catch some bad symbols but isn't as heavy-handed
10194      # as -z defs.
10195      no_undefined_flag='${wl}-z,text'
10196      allow_undefined_flag='${wl}-z,nodefs'
10197      archive_cmds_need_lc=no
10198      hardcode_shlibpath_var=no
10199      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10200      hardcode_libdir_separator=':'
10201      link_all_deplibs=yes
10202      export_dynamic_flag_spec='${wl}-Bexport'
10203      runpath_var='LD_RUN_PATH'
10204
10205      if test "$GCC" = yes; then
10206	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10207	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10208      else
10209	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10210	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10211      fi
10212      ;;
10213
10214    uts4*)
10215      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216      hardcode_libdir_flag_spec='-L$libdir'
10217      hardcode_shlibpath_var=no
10218      ;;
10219
10220    *)
10221      ld_shlibs=no
10222      ;;
10223    esac
10224
10225    if test x$host_vendor = xsni; then
10226      case $host in
10227      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10228	export_dynamic_flag_spec='${wl}-Blargedynsym'
10229	;;
10230      esac
10231    fi
10232  fi
10233
10234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10235$as_echo "$ld_shlibs" >&6; }
10236test "$ld_shlibs" = no && can_build_shared=no
10237
10238with_gnu_ld=$with_gnu_ld
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254#
10255# Do we need to explicitly link libc?
10256#
10257case "x$archive_cmds_need_lc" in
10258x|xyes)
10259  # Assume -lc should be added
10260  archive_cmds_need_lc=yes
10261
10262  if test "$enable_shared" = yes && test "$GCC" = yes; then
10263    case $archive_cmds in
10264    *'~'*)
10265      # FIXME: we may have to deal with multi-command sequences.
10266      ;;
10267    '$CC '*)
10268      # Test whether the compiler implicitly links with -lc since on some
10269      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10270      # to ld, don't add -lc before -lgcc.
10271      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10272$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10273if ${lt_cv_archive_cmds_need_lc+:} false; then :
10274  $as_echo_n "(cached) " >&6
10275else
10276  $RM conftest*
10277	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10278
10279	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10280  (eval $ac_compile) 2>&5
10281  ac_status=$?
10282  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10283  test $ac_status = 0; } 2>conftest.err; then
10284	  soname=conftest
10285	  lib=conftest
10286	  libobjs=conftest.$ac_objext
10287	  deplibs=
10288	  wl=$lt_prog_compiler_wl
10289	  pic_flag=$lt_prog_compiler_pic
10290	  compiler_flags=-v
10291	  linker_flags=-v
10292	  verstring=
10293	  output_objdir=.
10294	  libname=conftest
10295	  lt_save_allow_undefined_flag=$allow_undefined_flag
10296	  allow_undefined_flag=
10297	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10298  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10299  ac_status=$?
10300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10301  test $ac_status = 0; }
10302	  then
10303	    lt_cv_archive_cmds_need_lc=no
10304	  else
10305	    lt_cv_archive_cmds_need_lc=yes
10306	  fi
10307	  allow_undefined_flag=$lt_save_allow_undefined_flag
10308	else
10309	  cat conftest.err 1>&5
10310	fi
10311	$RM conftest*
10312
10313fi
10314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10315$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10316      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10317      ;;
10318    esac
10319  fi
10320  ;;
10321esac
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10475$as_echo_n "checking dynamic linker characteristics... " >&6; }
10476
10477if test "$GCC" = yes; then
10478  case $host_os in
10479    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10480    *) lt_awk_arg="/^libraries:/" ;;
10481  esac
10482  case $host_os in
10483    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10484    *) lt_sed_strip_eq="s,=/,/,g" ;;
10485  esac
10486  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10487  case $lt_search_path_spec in
10488  *\;*)
10489    # if the path contains ";" then we assume it to be the separator
10490    # otherwise default to the standard path separator (i.e. ":") - it is
10491    # assumed that no part of a normal pathname contains ";" but that should
10492    # okay in the real world where ";" in dirpaths is itself problematic.
10493    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10494    ;;
10495  *)
10496    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10497    ;;
10498  esac
10499  # Ok, now we have the path, separated by spaces, we can step through it
10500  # and add multilib dir if necessary.
10501  lt_tmp_lt_search_path_spec=
10502  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10503  for lt_sys_path in $lt_search_path_spec; do
10504    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10505      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10506    else
10507      test -d "$lt_sys_path" && \
10508	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10509    fi
10510  done
10511  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10512BEGIN {RS=" "; FS="/|\n";} {
10513  lt_foo="";
10514  lt_count=0;
10515  for (lt_i = NF; lt_i > 0; lt_i--) {
10516    if ($lt_i != "" && $lt_i != ".") {
10517      if ($lt_i == "..") {
10518        lt_count++;
10519      } else {
10520        if (lt_count == 0) {
10521          lt_foo="/" $lt_i lt_foo;
10522        } else {
10523          lt_count--;
10524        }
10525      }
10526    }
10527  }
10528  if (lt_foo != "") { lt_freq[lt_foo]++; }
10529  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10530}'`
10531  # AWK program above erroneously prepends '/' to C:/dos/paths
10532  # for these hosts.
10533  case $host_os in
10534    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10535      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10536  esac
10537  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10538else
10539  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10540fi
10541library_names_spec=
10542libname_spec='lib$name'
10543soname_spec=
10544shrext_cmds=".so"
10545postinstall_cmds=
10546postuninstall_cmds=
10547finish_cmds=
10548finish_eval=
10549shlibpath_var=
10550shlibpath_overrides_runpath=unknown
10551version_type=none
10552dynamic_linker="$host_os ld.so"
10553sys_lib_dlsearch_path_spec="/lib /usr/lib"
10554need_lib_prefix=unknown
10555hardcode_into_libs=no
10556
10557# when you set need_version to no, make sure it does not cause -set_version
10558# flags to be left without arguments
10559need_version=unknown
10560
10561case $host_os in
10562aix3*)
10563  version_type=linux # correct to gnu/linux during the next big refactor
10564  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10565  shlibpath_var=LIBPATH
10566
10567  # AIX 3 has no versioning support, so we append a major version to the name.
10568  soname_spec='${libname}${release}${shared_ext}$major'
10569  ;;
10570
10571aix[4-9]*)
10572  version_type=linux # correct to gnu/linux during the next big refactor
10573  need_lib_prefix=no
10574  need_version=no
10575  hardcode_into_libs=yes
10576  if test "$host_cpu" = ia64; then
10577    # AIX 5 supports IA64
10578    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10579    shlibpath_var=LD_LIBRARY_PATH
10580  else
10581    # With GCC up to 2.95.x, collect2 would create an import file
10582    # for dependence libraries.  The import file would start with
10583    # the line `#! .'.  This would cause the generated library to
10584    # depend on `.', always an invalid library.  This was fixed in
10585    # development snapshots of GCC prior to 3.0.
10586    case $host_os in
10587      aix4 | aix4.[01] | aix4.[01].*)
10588      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10589	   echo ' yes '
10590	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10591	:
10592      else
10593	can_build_shared=no
10594      fi
10595      ;;
10596    esac
10597    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10598    # soname into executable. Probably we can add versioning support to
10599    # collect2, so additional links can be useful in future.
10600    if test "$aix_use_runtimelinking" = yes; then
10601      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10602      # instead of lib<name>.a to let people know that these are not
10603      # typical AIX shared libraries.
10604      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605    else
10606      # We preserve .a as extension for shared libraries through AIX4.2
10607      # and later when we are not doing run time linking.
10608      library_names_spec='${libname}${release}.a $libname.a'
10609      soname_spec='${libname}${release}${shared_ext}$major'
10610    fi
10611    shlibpath_var=LIBPATH
10612  fi
10613  ;;
10614
10615amigaos*)
10616  case $host_cpu in
10617  powerpc)
10618    # Since July 2007 AmigaOS4 officially supports .so libraries.
10619    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10620    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621    ;;
10622  m68k)
10623    library_names_spec='$libname.ixlibrary $libname.a'
10624    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10625    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10626    ;;
10627  esac
10628  ;;
10629
10630beos*)
10631  library_names_spec='${libname}${shared_ext}'
10632  dynamic_linker="$host_os ld.so"
10633  shlibpath_var=LIBRARY_PATH
10634  ;;
10635
10636bsdi[45]*)
10637  version_type=linux # correct to gnu/linux during the next big refactor
10638  need_version=no
10639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640  soname_spec='${libname}${release}${shared_ext}$major'
10641  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10642  shlibpath_var=LD_LIBRARY_PATH
10643  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10644  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10645  # the default ld.so.conf also contains /usr/contrib/lib and
10646  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10647  # libtool to hard-code these into programs
10648  ;;
10649
10650cygwin* | mingw* | pw32* | cegcc*)
10651  version_type=windows
10652  shrext_cmds=".dll"
10653  need_version=no
10654  need_lib_prefix=no
10655
10656  case $GCC,$cc_basename in
10657  yes,*)
10658    # gcc
10659    library_names_spec='$libname.dll.a'
10660    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10661    postinstall_cmds='base_file=`basename \${file}`~
10662      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10663      dldir=$destdir/`dirname \$dlpath`~
10664      test -d \$dldir || mkdir -p \$dldir~
10665      $install_prog $dir/$dlname \$dldir/$dlname~
10666      chmod a+x \$dldir/$dlname~
10667      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10668        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10669      fi'
10670    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10671      dlpath=$dir/\$dldll~
10672       $RM \$dlpath'
10673    shlibpath_overrides_runpath=yes
10674
10675    case $host_os in
10676    cygwin*)
10677      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10678      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10679
10680      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10681      ;;
10682    mingw* | cegcc*)
10683      # MinGW DLLs use traditional 'lib' prefix
10684      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10685      ;;
10686    pw32*)
10687      # pw32 DLLs use 'pw' prefix rather than 'lib'
10688      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10689      ;;
10690    esac
10691    dynamic_linker='Win32 ld.exe'
10692    ;;
10693
10694  *,cl*)
10695    # Native MSVC
10696    libname_spec='$name'
10697    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10698    library_names_spec='${libname}.dll.lib'
10699
10700    case $build_os in
10701    mingw*)
10702      sys_lib_search_path_spec=
10703      lt_save_ifs=$IFS
10704      IFS=';'
10705      for lt_path in $LIB
10706      do
10707        IFS=$lt_save_ifs
10708        # Let DOS variable expansion print the short 8.3 style file name.
10709        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10710        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10711      done
10712      IFS=$lt_save_ifs
10713      # Convert to MSYS style.
10714      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10715      ;;
10716    cygwin*)
10717      # Convert to unix form, then to dos form, then back to unix form
10718      # but this time dos style (no spaces!) so that the unix form looks
10719      # like /cygdrive/c/PROGRA~1:/cygdr...
10720      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10721      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10722      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10723      ;;
10724    *)
10725      sys_lib_search_path_spec="$LIB"
10726      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10727        # It is most probably a Windows format PATH.
10728        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10729      else
10730        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10731      fi
10732      # FIXME: find the short name or the path components, as spaces are
10733      # common. (e.g. "Program Files" -> "PROGRA~1")
10734      ;;
10735    esac
10736
10737    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10738    postinstall_cmds='base_file=`basename \${file}`~
10739      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10740      dldir=$destdir/`dirname \$dlpath`~
10741      test -d \$dldir || mkdir -p \$dldir~
10742      $install_prog $dir/$dlname \$dldir/$dlname'
10743    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10744      dlpath=$dir/\$dldll~
10745       $RM \$dlpath'
10746    shlibpath_overrides_runpath=yes
10747    dynamic_linker='Win32 link.exe'
10748    ;;
10749
10750  *)
10751    # Assume MSVC wrapper
10752    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10753    dynamic_linker='Win32 ld.exe'
10754    ;;
10755  esac
10756  # FIXME: first we should search . and the directory the executable is in
10757  shlibpath_var=PATH
10758  ;;
10759
10760darwin* | rhapsody*)
10761  dynamic_linker="$host_os dyld"
10762  version_type=darwin
10763  need_lib_prefix=no
10764  need_version=no
10765  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10766  soname_spec='${libname}${release}${major}$shared_ext'
10767  shlibpath_overrides_runpath=yes
10768  shlibpath_var=DYLD_LIBRARY_PATH
10769  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10770
10771  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10772  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10773  ;;
10774
10775dgux*)
10776  version_type=linux # correct to gnu/linux during the next big refactor
10777  need_lib_prefix=no
10778  need_version=no
10779  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10780  soname_spec='${libname}${release}${shared_ext}$major'
10781  shlibpath_var=LD_LIBRARY_PATH
10782  ;;
10783
10784freebsd* | dragonfly*)
10785  # DragonFly does not have aout.  When/if they implement a new
10786  # versioning mechanism, adjust this.
10787  if test -x /usr/bin/objformat; then
10788    objformat=`/usr/bin/objformat`
10789  else
10790    case $host_os in
10791    freebsd[23].*) objformat=aout ;;
10792    *) objformat=elf ;;
10793    esac
10794  fi
10795  version_type=freebsd-$objformat
10796  case $version_type in
10797    freebsd-elf*)
10798      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10799      need_version=no
10800      need_lib_prefix=no
10801      ;;
10802    freebsd-*)
10803      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10804      need_version=yes
10805      ;;
10806  esac
10807  shlibpath_var=LD_LIBRARY_PATH
10808  case $host_os in
10809  freebsd2.*)
10810    shlibpath_overrides_runpath=yes
10811    ;;
10812  freebsd3.[01]* | freebsdelf3.[01]*)
10813    shlibpath_overrides_runpath=yes
10814    hardcode_into_libs=yes
10815    ;;
10816  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10817  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10818    shlibpath_overrides_runpath=no
10819    hardcode_into_libs=yes
10820    ;;
10821  *) # from 4.6 on, and DragonFly
10822    shlibpath_overrides_runpath=yes
10823    hardcode_into_libs=yes
10824    ;;
10825  esac
10826  ;;
10827
10828gnu*)
10829  version_type=linux # correct to gnu/linux during the next big refactor
10830  need_lib_prefix=no
10831  need_version=no
10832  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10833  soname_spec='${libname}${release}${shared_ext}$major'
10834  shlibpath_var=LD_LIBRARY_PATH
10835  shlibpath_overrides_runpath=no
10836  hardcode_into_libs=yes
10837  ;;
10838
10839haiku*)
10840  version_type=linux # correct to gnu/linux during the next big refactor
10841  need_lib_prefix=no
10842  need_version=no
10843  dynamic_linker="$host_os runtime_loader"
10844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10845  soname_spec='${libname}${release}${shared_ext}$major'
10846  shlibpath_var=LIBRARY_PATH
10847  shlibpath_overrides_runpath=yes
10848  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10849  hardcode_into_libs=yes
10850  ;;
10851
10852hpux9* | hpux10* | hpux11*)
10853  # Give a soname corresponding to the major version so that dld.sl refuses to
10854  # link against other versions.
10855  version_type=sunos
10856  need_lib_prefix=no
10857  need_version=no
10858  case $host_cpu in
10859  ia64*)
10860    shrext_cmds='.so'
10861    hardcode_into_libs=yes
10862    dynamic_linker="$host_os dld.so"
10863    shlibpath_var=LD_LIBRARY_PATH
10864    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10865    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866    soname_spec='${libname}${release}${shared_ext}$major'
10867    if test "X$HPUX_IA64_MODE" = X32; then
10868      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10869    else
10870      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10871    fi
10872    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10873    ;;
10874  hppa*64*)
10875    shrext_cmds='.sl'
10876    hardcode_into_libs=yes
10877    dynamic_linker="$host_os dld.sl"
10878    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10879    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10880    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10881    soname_spec='${libname}${release}${shared_ext}$major'
10882    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10883    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10884    ;;
10885  *)
10886    shrext_cmds='.sl'
10887    dynamic_linker="$host_os dld.sl"
10888    shlibpath_var=SHLIB_PATH
10889    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10890    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10891    soname_spec='${libname}${release}${shared_ext}$major'
10892    ;;
10893  esac
10894  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10895  postinstall_cmds='chmod 555 $lib'
10896  # or fails outright, so override atomically:
10897  install_override_mode=555
10898  ;;
10899
10900interix[3-9]*)
10901  version_type=linux # correct to gnu/linux during the next big refactor
10902  need_lib_prefix=no
10903  need_version=no
10904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10905  soname_spec='${libname}${release}${shared_ext}$major'
10906  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10907  shlibpath_var=LD_LIBRARY_PATH
10908  shlibpath_overrides_runpath=no
10909  hardcode_into_libs=yes
10910  ;;
10911
10912irix5* | irix6* | nonstopux*)
10913  case $host_os in
10914    nonstopux*) version_type=nonstopux ;;
10915    *)
10916	if test "$lt_cv_prog_gnu_ld" = yes; then
10917		version_type=linux # correct to gnu/linux during the next big refactor
10918	else
10919		version_type=irix
10920	fi ;;
10921  esac
10922  need_lib_prefix=no
10923  need_version=no
10924  soname_spec='${libname}${release}${shared_ext}$major'
10925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10926  case $host_os in
10927  irix5* | nonstopux*)
10928    libsuff= shlibsuff=
10929    ;;
10930  *)
10931    case $LD in # libtool.m4 will add one of these switches to LD
10932    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10933      libsuff= shlibsuff= libmagic=32-bit;;
10934    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10935      libsuff=32 shlibsuff=N32 libmagic=N32;;
10936    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10937      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10938    *) libsuff= shlibsuff= libmagic=never-match;;
10939    esac
10940    ;;
10941  esac
10942  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10943  shlibpath_overrides_runpath=no
10944  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10945  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10946  hardcode_into_libs=yes
10947  ;;
10948
10949# No shared lib support for Linux oldld, aout, or coff.
10950linux*oldld* | linux*aout* | linux*coff*)
10951  dynamic_linker=no
10952  ;;
10953
10954# This must be glibc/ELF.
10955linux* | k*bsd*-gnu | kopensolaris*-gnu)
10956  version_type=linux # correct to gnu/linux during the next big refactor
10957  need_lib_prefix=no
10958  need_version=no
10959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960  soname_spec='${libname}${release}${shared_ext}$major'
10961  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10962  shlibpath_var=LD_LIBRARY_PATH
10963  shlibpath_overrides_runpath=no
10964
10965  # Some binutils ld are patched to set DT_RUNPATH
10966  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10967  $as_echo_n "(cached) " >&6
10968else
10969  lt_cv_shlibpath_overrides_runpath=no
10970    save_LDFLAGS=$LDFLAGS
10971    save_libdir=$libdir
10972    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10973	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10974    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975/* end confdefs.h.  */
10976
10977int
10978main ()
10979{
10980
10981  ;
10982  return 0;
10983}
10984_ACEOF
10985if ac_fn_c_try_link "$LINENO"; then :
10986  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10987  lt_cv_shlibpath_overrides_runpath=yes
10988fi
10989fi
10990rm -f core conftest.err conftest.$ac_objext \
10991    conftest$ac_exeext conftest.$ac_ext
10992    LDFLAGS=$save_LDFLAGS
10993    libdir=$save_libdir
10994
10995fi
10996
10997  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10998
10999  # This implies no fast_install, which is unacceptable.
11000  # Some rework will be needed to allow for fast_install
11001  # before this can be enabled.
11002  hardcode_into_libs=yes
11003
11004  # Append ld.so.conf contents to the search path
11005  if test -f /etc/ld.so.conf; then
11006    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' ' '`
11007    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11008  fi
11009
11010  # We used to test for /lib/ld.so.1 and disable shared libraries on
11011  # powerpc, because MkLinux only supported shared libraries with the
11012  # GNU dynamic linker.  Since this was broken with cross compilers,
11013  # most powerpc-linux boxes support dynamic linking these days and
11014  # people can always --disable-shared, the test was removed, and we
11015  # assume the GNU/Linux dynamic linker is in use.
11016  dynamic_linker='GNU/Linux ld.so'
11017  ;;
11018
11019netbsd*)
11020  version_type=sunos
11021  need_lib_prefix=no
11022  need_version=no
11023  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11024    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11025    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11026    dynamic_linker='NetBSD (a.out) ld.so'
11027  else
11028    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11029    soname_spec='${libname}${release}${shared_ext}$major'
11030    dynamic_linker='NetBSD ld.elf_so'
11031  fi
11032  shlibpath_var=LD_LIBRARY_PATH
11033  shlibpath_overrides_runpath=yes
11034  hardcode_into_libs=yes
11035  ;;
11036
11037newsos6)
11038  version_type=linux # correct to gnu/linux during the next big refactor
11039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040  shlibpath_var=LD_LIBRARY_PATH
11041  shlibpath_overrides_runpath=yes
11042  ;;
11043
11044*nto* | *qnx*)
11045  version_type=qnx
11046  need_lib_prefix=no
11047  need_version=no
11048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049  soname_spec='${libname}${release}${shared_ext}$major'
11050  shlibpath_var=LD_LIBRARY_PATH
11051  shlibpath_overrides_runpath=no
11052  hardcode_into_libs=yes
11053  dynamic_linker='ldqnx.so'
11054  ;;
11055
11056openbsd*)
11057  version_type=sunos
11058  sys_lib_dlsearch_path_spec="/usr/lib"
11059  need_lib_prefix=no
11060  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11061  case $host_os in
11062    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11063    *)				need_version=no  ;;
11064  esac
11065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11066  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11067  shlibpath_var=LD_LIBRARY_PATH
11068  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11069    case $host_os in
11070      openbsd2.[89] | openbsd2.[89].*)
11071	shlibpath_overrides_runpath=no
11072	;;
11073      *)
11074	shlibpath_overrides_runpath=yes
11075	;;
11076      esac
11077  else
11078    shlibpath_overrides_runpath=yes
11079  fi
11080  ;;
11081
11082os2*)
11083  libname_spec='$name'
11084  shrext_cmds=".dll"
11085  need_lib_prefix=no
11086  library_names_spec='$libname${shared_ext} $libname.a'
11087  dynamic_linker='OS/2 ld.exe'
11088  shlibpath_var=LIBPATH
11089  ;;
11090
11091osf3* | osf4* | osf5*)
11092  version_type=osf
11093  need_lib_prefix=no
11094  need_version=no
11095  soname_spec='${libname}${release}${shared_ext}$major'
11096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11097  shlibpath_var=LD_LIBRARY_PATH
11098  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11099  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11100  ;;
11101
11102rdos*)
11103  dynamic_linker=no
11104  ;;
11105
11106solaris*)
11107  version_type=linux # correct to gnu/linux during the next big refactor
11108  need_lib_prefix=no
11109  need_version=no
11110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111  soname_spec='${libname}${release}${shared_ext}$major'
11112  shlibpath_var=LD_LIBRARY_PATH
11113  shlibpath_overrides_runpath=yes
11114  hardcode_into_libs=yes
11115  # ldd complains unless libraries are executable
11116  postinstall_cmds='chmod +x $lib'
11117  ;;
11118
11119sunos4*)
11120  version_type=sunos
11121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11122  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11123  shlibpath_var=LD_LIBRARY_PATH
11124  shlibpath_overrides_runpath=yes
11125  if test "$with_gnu_ld" = yes; then
11126    need_lib_prefix=no
11127  fi
11128  need_version=yes
11129  ;;
11130
11131sysv4 | sysv4.3*)
11132  version_type=linux # correct to gnu/linux during the next big refactor
11133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11134  soname_spec='${libname}${release}${shared_ext}$major'
11135  shlibpath_var=LD_LIBRARY_PATH
11136  case $host_vendor in
11137    sni)
11138      shlibpath_overrides_runpath=no
11139      need_lib_prefix=no
11140      runpath_var=LD_RUN_PATH
11141      ;;
11142    siemens)
11143      need_lib_prefix=no
11144      ;;
11145    motorola)
11146      need_lib_prefix=no
11147      need_version=no
11148      shlibpath_overrides_runpath=no
11149      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11150      ;;
11151  esac
11152  ;;
11153
11154sysv4*MP*)
11155  if test -d /usr/nec ;then
11156    version_type=linux # correct to gnu/linux during the next big refactor
11157    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11158    soname_spec='$libname${shared_ext}.$major'
11159    shlibpath_var=LD_LIBRARY_PATH
11160  fi
11161  ;;
11162
11163sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11164  version_type=freebsd-elf
11165  need_lib_prefix=no
11166  need_version=no
11167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11168  soname_spec='${libname}${release}${shared_ext}$major'
11169  shlibpath_var=LD_LIBRARY_PATH
11170  shlibpath_overrides_runpath=yes
11171  hardcode_into_libs=yes
11172  if test "$with_gnu_ld" = yes; then
11173    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11174  else
11175    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11176    case $host_os in
11177      sco3.2v5*)
11178        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11179	;;
11180    esac
11181  fi
11182  sys_lib_dlsearch_path_spec='/usr/lib'
11183  ;;
11184
11185tpf*)
11186  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11187  version_type=linux # correct to gnu/linux during the next big refactor
11188  need_lib_prefix=no
11189  need_version=no
11190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11191  shlibpath_var=LD_LIBRARY_PATH
11192  shlibpath_overrides_runpath=no
11193  hardcode_into_libs=yes
11194  ;;
11195
11196uts4*)
11197  version_type=linux # correct to gnu/linux during the next big refactor
11198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11199  soname_spec='${libname}${release}${shared_ext}$major'
11200  shlibpath_var=LD_LIBRARY_PATH
11201  ;;
11202
11203*)
11204  dynamic_linker=no
11205  ;;
11206esac
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11208$as_echo "$dynamic_linker" >&6; }
11209test "$dynamic_linker" = no && can_build_shared=no
11210
11211variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11212if test "$GCC" = yes; then
11213  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11214fi
11215
11216if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11217  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11218fi
11219if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11220  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11221fi
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11315$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11316hardcode_action=
11317if test -n "$hardcode_libdir_flag_spec" ||
11318   test -n "$runpath_var" ||
11319   test "X$hardcode_automatic" = "Xyes" ; then
11320
11321  # We can hardcode non-existent directories.
11322  if test "$hardcode_direct" != no &&
11323     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11324     # have to relink, otherwise we might link with an installed library
11325     # when we should be linking with a yet-to-be-installed one
11326     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11327     test "$hardcode_minus_L" != no; then
11328    # Linking always hardcodes the temporary library directory.
11329    hardcode_action=relink
11330  else
11331    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11332    hardcode_action=immediate
11333  fi
11334else
11335  # We cannot hardcode anything, or else we can only hardcode existing
11336  # directories.
11337  hardcode_action=unsupported
11338fi
11339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11340$as_echo "$hardcode_action" >&6; }
11341
11342if test "$hardcode_action" = relink ||
11343   test "$inherit_rpath" = yes; then
11344  # Fast installation is not supported
11345  enable_fast_install=no
11346elif test "$shlibpath_overrides_runpath" = yes ||
11347     test "$enable_shared" = no; then
11348  # Fast installation is not necessary
11349  enable_fast_install=needless
11350fi
11351
11352
11353
11354
11355
11356
11357  if test "x$enable_dlopen" != xyes; then
11358  enable_dlopen=unknown
11359  enable_dlopen_self=unknown
11360  enable_dlopen_self_static=unknown
11361else
11362  lt_cv_dlopen=no
11363  lt_cv_dlopen_libs=
11364
11365  case $host_os in
11366  beos*)
11367    lt_cv_dlopen="load_add_on"
11368    lt_cv_dlopen_libs=
11369    lt_cv_dlopen_self=yes
11370    ;;
11371
11372  mingw* | pw32* | cegcc*)
11373    lt_cv_dlopen="LoadLibrary"
11374    lt_cv_dlopen_libs=
11375    ;;
11376
11377  cygwin*)
11378    lt_cv_dlopen="dlopen"
11379    lt_cv_dlopen_libs=
11380    ;;
11381
11382  darwin*)
11383  # if libdl is installed we need to link against it
11384    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11385$as_echo_n "checking for dlopen in -ldl... " >&6; }
11386if ${ac_cv_lib_dl_dlopen+:} false; then :
11387  $as_echo_n "(cached) " >&6
11388else
11389  ac_check_lib_save_LIBS=$LIBS
11390LIBS="-ldl  $LIBS"
11391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392/* end confdefs.h.  */
11393
11394/* Override any GCC internal prototype to avoid an error.
11395   Use char because int might match the return type of a GCC
11396   builtin and then its argument prototype would still apply.  */
11397#ifdef __cplusplus
11398extern "C"
11399#endif
11400char dlopen ();
11401int
11402main ()
11403{
11404return dlopen ();
11405  ;
11406  return 0;
11407}
11408_ACEOF
11409if ac_fn_c_try_link "$LINENO"; then :
11410  ac_cv_lib_dl_dlopen=yes
11411else
11412  ac_cv_lib_dl_dlopen=no
11413fi
11414rm -f core conftest.err conftest.$ac_objext \
11415    conftest$ac_exeext conftest.$ac_ext
11416LIBS=$ac_check_lib_save_LIBS
11417fi
11418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11419$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11420if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11421  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11422else
11423
11424    lt_cv_dlopen="dyld"
11425    lt_cv_dlopen_libs=
11426    lt_cv_dlopen_self=yes
11427
11428fi
11429
11430    ;;
11431
11432  *)
11433    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11434if test "x$ac_cv_func_shl_load" = xyes; then :
11435  lt_cv_dlopen="shl_load"
11436else
11437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11438$as_echo_n "checking for shl_load in -ldld... " >&6; }
11439if ${ac_cv_lib_dld_shl_load+:} false; then :
11440  $as_echo_n "(cached) " >&6
11441else
11442  ac_check_lib_save_LIBS=$LIBS
11443LIBS="-ldld  $LIBS"
11444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445/* end confdefs.h.  */
11446
11447/* Override any GCC internal prototype to avoid an error.
11448   Use char because int might match the return type of a GCC
11449   builtin and then its argument prototype would still apply.  */
11450#ifdef __cplusplus
11451extern "C"
11452#endif
11453char shl_load ();
11454int
11455main ()
11456{
11457return shl_load ();
11458  ;
11459  return 0;
11460}
11461_ACEOF
11462if ac_fn_c_try_link "$LINENO"; then :
11463  ac_cv_lib_dld_shl_load=yes
11464else
11465  ac_cv_lib_dld_shl_load=no
11466fi
11467rm -f core conftest.err conftest.$ac_objext \
11468    conftest$ac_exeext conftest.$ac_ext
11469LIBS=$ac_check_lib_save_LIBS
11470fi
11471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11472$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11473if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11474  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11475else
11476  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11477if test "x$ac_cv_func_dlopen" = xyes; then :
11478  lt_cv_dlopen="dlopen"
11479else
11480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11481$as_echo_n "checking for dlopen in -ldl... " >&6; }
11482if ${ac_cv_lib_dl_dlopen+:} false; then :
11483  $as_echo_n "(cached) " >&6
11484else
11485  ac_check_lib_save_LIBS=$LIBS
11486LIBS="-ldl  $LIBS"
11487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488/* end confdefs.h.  */
11489
11490/* Override any GCC internal prototype to avoid an error.
11491   Use char because int might match the return type of a GCC
11492   builtin and then its argument prototype would still apply.  */
11493#ifdef __cplusplus
11494extern "C"
11495#endif
11496char dlopen ();
11497int
11498main ()
11499{
11500return dlopen ();
11501  ;
11502  return 0;
11503}
11504_ACEOF
11505if ac_fn_c_try_link "$LINENO"; then :
11506  ac_cv_lib_dl_dlopen=yes
11507else
11508  ac_cv_lib_dl_dlopen=no
11509fi
11510rm -f core conftest.err conftest.$ac_objext \
11511    conftest$ac_exeext conftest.$ac_ext
11512LIBS=$ac_check_lib_save_LIBS
11513fi
11514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11515$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11516if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11517  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11518else
11519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11520$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11521if ${ac_cv_lib_svld_dlopen+:} false; then :
11522  $as_echo_n "(cached) " >&6
11523else
11524  ac_check_lib_save_LIBS=$LIBS
11525LIBS="-lsvld  $LIBS"
11526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527/* end confdefs.h.  */
11528
11529/* Override any GCC internal prototype to avoid an error.
11530   Use char because int might match the return type of a GCC
11531   builtin and then its argument prototype would still apply.  */
11532#ifdef __cplusplus
11533extern "C"
11534#endif
11535char dlopen ();
11536int
11537main ()
11538{
11539return dlopen ();
11540  ;
11541  return 0;
11542}
11543_ACEOF
11544if ac_fn_c_try_link "$LINENO"; then :
11545  ac_cv_lib_svld_dlopen=yes
11546else
11547  ac_cv_lib_svld_dlopen=no
11548fi
11549rm -f core conftest.err conftest.$ac_objext \
11550    conftest$ac_exeext conftest.$ac_ext
11551LIBS=$ac_check_lib_save_LIBS
11552fi
11553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11554$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11555if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11556  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11557else
11558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11559$as_echo_n "checking for dld_link in -ldld... " >&6; }
11560if ${ac_cv_lib_dld_dld_link+:} false; then :
11561  $as_echo_n "(cached) " >&6
11562else
11563  ac_check_lib_save_LIBS=$LIBS
11564LIBS="-ldld  $LIBS"
11565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566/* end confdefs.h.  */
11567
11568/* Override any GCC internal prototype to avoid an error.
11569   Use char because int might match the return type of a GCC
11570   builtin and then its argument prototype would still apply.  */
11571#ifdef __cplusplus
11572extern "C"
11573#endif
11574char dld_link ();
11575int
11576main ()
11577{
11578return dld_link ();
11579  ;
11580  return 0;
11581}
11582_ACEOF
11583if ac_fn_c_try_link "$LINENO"; then :
11584  ac_cv_lib_dld_dld_link=yes
11585else
11586  ac_cv_lib_dld_dld_link=no
11587fi
11588rm -f core conftest.err conftest.$ac_objext \
11589    conftest$ac_exeext conftest.$ac_ext
11590LIBS=$ac_check_lib_save_LIBS
11591fi
11592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11593$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11594if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11595  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11596fi
11597
11598
11599fi
11600
11601
11602fi
11603
11604
11605fi
11606
11607
11608fi
11609
11610
11611fi
11612
11613    ;;
11614  esac
11615
11616  if test "x$lt_cv_dlopen" != xno; then
11617    enable_dlopen=yes
11618  else
11619    enable_dlopen=no
11620  fi
11621
11622  case $lt_cv_dlopen in
11623  dlopen)
11624    save_CPPFLAGS="$CPPFLAGS"
11625    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11626
11627    save_LDFLAGS="$LDFLAGS"
11628    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11629
11630    save_LIBS="$LIBS"
11631    LIBS="$lt_cv_dlopen_libs $LIBS"
11632
11633    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11634$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11635if ${lt_cv_dlopen_self+:} false; then :
11636  $as_echo_n "(cached) " >&6
11637else
11638  	  if test "$cross_compiling" = yes; then :
11639  lt_cv_dlopen_self=cross
11640else
11641  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11642  lt_status=$lt_dlunknown
11643  cat > conftest.$ac_ext <<_LT_EOF
11644#line $LINENO "configure"
11645#include "confdefs.h"
11646
11647#if HAVE_DLFCN_H
11648#include <dlfcn.h>
11649#endif
11650
11651#include <stdio.h>
11652
11653#ifdef RTLD_GLOBAL
11654#  define LT_DLGLOBAL		RTLD_GLOBAL
11655#else
11656#  ifdef DL_GLOBAL
11657#    define LT_DLGLOBAL		DL_GLOBAL
11658#  else
11659#    define LT_DLGLOBAL		0
11660#  endif
11661#endif
11662
11663/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11664   find out it does not work in some platform. */
11665#ifndef LT_DLLAZY_OR_NOW
11666#  ifdef RTLD_LAZY
11667#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11668#  else
11669#    ifdef DL_LAZY
11670#      define LT_DLLAZY_OR_NOW		DL_LAZY
11671#    else
11672#      ifdef RTLD_NOW
11673#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11674#      else
11675#        ifdef DL_NOW
11676#          define LT_DLLAZY_OR_NOW	DL_NOW
11677#        else
11678#          define LT_DLLAZY_OR_NOW	0
11679#        endif
11680#      endif
11681#    endif
11682#  endif
11683#endif
11684
11685/* When -fvisbility=hidden is used, assume the code has been annotated
11686   correspondingly for the symbols needed.  */
11687#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11688int fnord () __attribute__((visibility("default")));
11689#endif
11690
11691int fnord () { return 42; }
11692int main ()
11693{
11694  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11695  int status = $lt_dlunknown;
11696
11697  if (self)
11698    {
11699      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11700      else
11701        {
11702	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11703          else puts (dlerror ());
11704	}
11705      /* dlclose (self); */
11706    }
11707  else
11708    puts (dlerror ());
11709
11710  return status;
11711}
11712_LT_EOF
11713  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11714  (eval $ac_link) 2>&5
11715  ac_status=$?
11716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11717  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11718    (./conftest; exit; ) >&5 2>/dev/null
11719    lt_status=$?
11720    case x$lt_status in
11721      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11722      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11723      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11724    esac
11725  else :
11726    # compilation failed
11727    lt_cv_dlopen_self=no
11728  fi
11729fi
11730rm -fr conftest*
11731
11732
11733fi
11734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11735$as_echo "$lt_cv_dlopen_self" >&6; }
11736
11737    if test "x$lt_cv_dlopen_self" = xyes; then
11738      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11739      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11740$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11741if ${lt_cv_dlopen_self_static+:} false; then :
11742  $as_echo_n "(cached) " >&6
11743else
11744  	  if test "$cross_compiling" = yes; then :
11745  lt_cv_dlopen_self_static=cross
11746else
11747  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11748  lt_status=$lt_dlunknown
11749  cat > conftest.$ac_ext <<_LT_EOF
11750#line $LINENO "configure"
11751#include "confdefs.h"
11752
11753#if HAVE_DLFCN_H
11754#include <dlfcn.h>
11755#endif
11756
11757#include <stdio.h>
11758
11759#ifdef RTLD_GLOBAL
11760#  define LT_DLGLOBAL		RTLD_GLOBAL
11761#else
11762#  ifdef DL_GLOBAL
11763#    define LT_DLGLOBAL		DL_GLOBAL
11764#  else
11765#    define LT_DLGLOBAL		0
11766#  endif
11767#endif
11768
11769/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11770   find out it does not work in some platform. */
11771#ifndef LT_DLLAZY_OR_NOW
11772#  ifdef RTLD_LAZY
11773#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11774#  else
11775#    ifdef DL_LAZY
11776#      define LT_DLLAZY_OR_NOW		DL_LAZY
11777#    else
11778#      ifdef RTLD_NOW
11779#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11780#      else
11781#        ifdef DL_NOW
11782#          define LT_DLLAZY_OR_NOW	DL_NOW
11783#        else
11784#          define LT_DLLAZY_OR_NOW	0
11785#        endif
11786#      endif
11787#    endif
11788#  endif
11789#endif
11790
11791/* When -fvisbility=hidden is used, assume the code has been annotated
11792   correspondingly for the symbols needed.  */
11793#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11794int fnord () __attribute__((visibility("default")));
11795#endif
11796
11797int fnord () { return 42; }
11798int main ()
11799{
11800  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11801  int status = $lt_dlunknown;
11802
11803  if (self)
11804    {
11805      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11806      else
11807        {
11808	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11809          else puts (dlerror ());
11810	}
11811      /* dlclose (self); */
11812    }
11813  else
11814    puts (dlerror ());
11815
11816  return status;
11817}
11818_LT_EOF
11819  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11820  (eval $ac_link) 2>&5
11821  ac_status=$?
11822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11823  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11824    (./conftest; exit; ) >&5 2>/dev/null
11825    lt_status=$?
11826    case x$lt_status in
11827      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11828      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11829      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11830    esac
11831  else :
11832    # compilation failed
11833    lt_cv_dlopen_self_static=no
11834  fi
11835fi
11836rm -fr conftest*
11837
11838
11839fi
11840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11841$as_echo "$lt_cv_dlopen_self_static" >&6; }
11842    fi
11843
11844    CPPFLAGS="$save_CPPFLAGS"
11845    LDFLAGS="$save_LDFLAGS"
11846    LIBS="$save_LIBS"
11847    ;;
11848  esac
11849
11850  case $lt_cv_dlopen_self in
11851  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11852  *) enable_dlopen_self=unknown ;;
11853  esac
11854
11855  case $lt_cv_dlopen_self_static in
11856  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11857  *) enable_dlopen_self_static=unknown ;;
11858  esac
11859fi
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877striplib=
11878old_striplib=
11879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11880$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11881if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11882  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11883  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11885$as_echo "yes" >&6; }
11886else
11887# FIXME - insert some real tests, host_os isn't really good enough
11888  case $host_os in
11889  darwin*)
11890    if test -n "$STRIP" ; then
11891      striplib="$STRIP -x"
11892      old_striplib="$STRIP -S"
11893      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11894$as_echo "yes" >&6; }
11895    else
11896      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897$as_echo "no" >&6; }
11898    fi
11899    ;;
11900  *)
11901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902$as_echo "no" >&6; }
11903    ;;
11904  esac
11905fi
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918  # Report which library types will actually be built
11919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11920$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11922$as_echo "$can_build_shared" >&6; }
11923
11924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11925$as_echo_n "checking whether to build shared libraries... " >&6; }
11926  test "$can_build_shared" = "no" && enable_shared=no
11927
11928  # On AIX, shared libraries and static libraries use the same namespace, and
11929  # are all built from PIC.
11930  case $host_os in
11931  aix3*)
11932    test "$enable_shared" = yes && enable_static=no
11933    if test -n "$RANLIB"; then
11934      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11935      postinstall_cmds='$RANLIB $lib'
11936    fi
11937    ;;
11938
11939  aix[4-9]*)
11940    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11941      test "$enable_shared" = yes && enable_static=no
11942    fi
11943    ;;
11944  esac
11945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11946$as_echo "$enable_shared" >&6; }
11947
11948  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11949$as_echo_n "checking whether to build static libraries... " >&6; }
11950  # Make sure either enable_shared or enable_static is yes.
11951  test "$enable_shared" = yes || enable_static=yes
11952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11953$as_echo "$enable_static" >&6; }
11954
11955
11956
11957
11958fi
11959ac_ext=c
11960ac_cpp='$CPP $CPPFLAGS'
11961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11963ac_compiler_gnu=$ac_cv_c_compiler_gnu
11964
11965CC="$lt_save_CC"
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981        ac_config_commands="$ac_config_commands libtool"
11982
11983
11984
11985
11986# Only expand once:
11987
11988
11989
11990		test "x$PERL" = x && # Extract the first word of "perl$EXEEXT", so it can be a program name with args.
11991set dummy perl$EXEEXT; ac_word=$2
11992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11993$as_echo_n "checking for $ac_word... " >&6; }
11994if ${ac_cv_path_PERL+:} false; then :
11995  $as_echo_n "(cached) " >&6
11996else
11997  case $PERL in
11998  [\\/]* | ?:[\\/]*)
11999  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12000  ;;
12001  *)
12002  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003for as_dir in $PATH
12004do
12005  IFS=$as_save_IFS
12006  test -z "$as_dir" && as_dir=.
12007    for ac_exec_ext in '' $ac_executable_extensions; do
12008  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12009    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011    break 2
12012  fi
12013done
12014  done
12015IFS=$as_save_IFS
12016
12017  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl$EXEEXT"
12018  ;;
12019esac
12020fi
12021PERL=$ac_cv_path_PERL
12022if test -n "$PERL"; then
12023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12024$as_echo "$PERL" >&6; }
12025else
12026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027$as_echo "no" >&6; }
12028fi
12029
12030
12031	test "x$PERL" = x && as_fn_error $? "no acceptable Perl found in \$PATH" "$LINENO" 5
12032
12033
12034test x$GREP = x && # Extract the first word of "grep$EXEEXT", so it can be a program name with args.
12035set dummy grep$EXEEXT; ac_word=$2
12036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037$as_echo_n "checking for $ac_word... " >&6; }
12038if ${ac_cv_path_GREP+:} false; then :
12039  $as_echo_n "(cached) " >&6
12040else
12041  case $GREP in
12042  [\\/]* | ?:[\\/]*)
12043  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
12044  ;;
12045  *)
12046  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12047for as_dir in $PATH
12048do
12049  IFS=$as_save_IFS
12050  test -z "$as_dir" && as_dir=.
12051    for ac_exec_ext in '' $ac_executable_extensions; do
12052  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12053    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
12054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12055    break 2
12056  fi
12057done
12058  done
12059IFS=$as_save_IFS
12060
12061  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep$EXEEXT"
12062  ;;
12063esac
12064fi
12065GREP=$ac_cv_path_GREP
12066if test -n "$GREP"; then
12067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
12068$as_echo "$GREP" >&6; }
12069else
12070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071$as_echo "no" >&6; }
12072fi
12073
12074
12075test x$GREP = x && as_fn_error $? "no acceptable grep found in \$PATH" "$LINENO" 5
12076
12077
12078test x$PS = x && # Extract the first word of "ps$EXEEXT", so it can be a program name with args.
12079set dummy ps$EXEEXT; ac_word=$2
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12081$as_echo_n "checking for $ac_word... " >&6; }
12082if ${ac_cv_path_PS+:} false; then :
12083  $as_echo_n "(cached) " >&6
12084else
12085  case $PS in
12086  [\\/]* | ?:[\\/]*)
12087  ac_cv_path_PS="$PS" # Let the user override the test with a path.
12088  ;;
12089  *)
12090  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12091for as_dir in $PATH
12092do
12093  IFS=$as_save_IFS
12094  test -z "$as_dir" && as_dir=.
12095    for ac_exec_ext in '' $ac_executable_extensions; do
12096  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12097    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
12098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12099    break 2
12100  fi
12101done
12102  done
12103IFS=$as_save_IFS
12104
12105  test -z "$ac_cv_path_PS" && ac_cv_path_PS="ps$EXEEXT"
12106  ;;
12107esac
12108fi
12109PS=$ac_cv_path_PS
12110if test -n "$PS"; then
12111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
12112$as_echo "$PS" >&6; }
12113else
12114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115$as_echo "no" >&6; }
12116fi
12117
12118
12119test x$PS = x && as_fn_error $? "no acceptable ps found in \$PATH" "$LINENO" 5
12120
12121
12122if test "x$CC" != xcc; then
12123  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12124$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12125else
12126  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12127$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12128fi
12129set dummy $CC; ac_cc=`$as_echo "$2" |
12130		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12131if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12132  $as_echo_n "(cached) " >&6
12133else
12134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135/* end confdefs.h.  */
12136
12137int
12138main ()
12139{
12140
12141  ;
12142  return 0;
12143}
12144_ACEOF
12145# Make sure it works both with $CC and with simple cc.
12146# We do the test twice because some compilers refuse to overwrite an
12147# existing .o file with -o, though they will create one.
12148ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12149rm -f conftest2.*
12150if { { case "(($ac_try" in
12151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152  *) ac_try_echo=$ac_try;;
12153esac
12154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12155$as_echo "$ac_try_echo"; } >&5
12156  (eval "$ac_try") 2>&5
12157  ac_status=$?
12158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12159  test $ac_status = 0; } &&
12160   test -f conftest2.$ac_objext && { { case "(($ac_try" in
12161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162  *) ac_try_echo=$ac_try;;
12163esac
12164eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12165$as_echo "$ac_try_echo"; } >&5
12166  (eval "$ac_try") 2>&5
12167  ac_status=$?
12168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12169  test $ac_status = 0; };
12170then
12171  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12172  if test "x$CC" != xcc; then
12173    # Test first that cc exists at all.
12174    if { ac_try='cc -c conftest.$ac_ext >&5'
12175  { { case "(($ac_try" in
12176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177  *) ac_try_echo=$ac_try;;
12178esac
12179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12180$as_echo "$ac_try_echo"; } >&5
12181  (eval "$ac_try") 2>&5
12182  ac_status=$?
12183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12184  test $ac_status = 0; }; }; then
12185      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12186      rm -f conftest2.*
12187      if { { case "(($ac_try" in
12188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189  *) ac_try_echo=$ac_try;;
12190esac
12191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12192$as_echo "$ac_try_echo"; } >&5
12193  (eval "$ac_try") 2>&5
12194  ac_status=$?
12195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12196  test $ac_status = 0; } &&
12197	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199  *) ac_try_echo=$ac_try;;
12200esac
12201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12202$as_echo "$ac_try_echo"; } >&5
12203  (eval "$ac_try") 2>&5
12204  ac_status=$?
12205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12206  test $ac_status = 0; };
12207      then
12208	# cc works too.
12209	:
12210      else
12211	# cc exists but doesn't like -o.
12212	eval ac_cv_prog_cc_${ac_cc}_c_o=no
12213      fi
12214    fi
12215  fi
12216else
12217  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12218fi
12219rm -f core conftest*
12220
12221fi
12222if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12224$as_echo "yes" >&6; }
12225else
12226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227$as_echo "no" >&6; }
12228
12229$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12230
12231fi
12232
12233# FIXME: we rely on the cache variable name because
12234# there is no other way.
12235set dummy $CC
12236am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12237eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12238if test "$am_t" != yes; then
12239   # Losing compiler, so override with the script.
12240   # FIXME: It is wrong to rewrite CC.
12241   # But if we don't then we get into trouble of one sort or another.
12242   # A longer-term fix would be to have automake use am__CC in this case,
12243   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12244   CC="$am_aux_dir/compile $CC"
12245fi
12246
12247
12248
12249ac_header_dirent=no
12250for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12251  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12253$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12254if eval \${$as_ac_Header+:} false; then :
12255  $as_echo_n "(cached) " >&6
12256else
12257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258/* end confdefs.h.  */
12259#include <sys/types.h>
12260#include <$ac_hdr>
12261
12262int
12263main ()
12264{
12265if ((DIR *) 0)
12266return 0;
12267  ;
12268  return 0;
12269}
12270_ACEOF
12271if ac_fn_c_try_compile "$LINENO"; then :
12272  eval "$as_ac_Header=yes"
12273else
12274  eval "$as_ac_Header=no"
12275fi
12276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12277fi
12278eval ac_res=\$$as_ac_Header
12279	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12280$as_echo "$ac_res" >&6; }
12281if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12282  cat >>confdefs.h <<_ACEOF
12283#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12284_ACEOF
12285
12286ac_header_dirent=$ac_hdr; break
12287fi
12288
12289done
12290# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12291if test $ac_header_dirent = dirent.h; then
12292  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12293$as_echo_n "checking for library containing opendir... " >&6; }
12294if ${ac_cv_search_opendir+:} false; then :
12295  $as_echo_n "(cached) " >&6
12296else
12297  ac_func_search_save_LIBS=$LIBS
12298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299/* end confdefs.h.  */
12300
12301/* Override any GCC internal prototype to avoid an error.
12302   Use char because int might match the return type of a GCC
12303   builtin and then its argument prototype would still apply.  */
12304#ifdef __cplusplus
12305extern "C"
12306#endif
12307char opendir ();
12308int
12309main ()
12310{
12311return opendir ();
12312  ;
12313  return 0;
12314}
12315_ACEOF
12316for ac_lib in '' dir; do
12317  if test -z "$ac_lib"; then
12318    ac_res="none required"
12319  else
12320    ac_res=-l$ac_lib
12321    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12322  fi
12323  if ac_fn_c_try_link "$LINENO"; then :
12324  ac_cv_search_opendir=$ac_res
12325fi
12326rm -f core conftest.err conftest.$ac_objext \
12327    conftest$ac_exeext
12328  if ${ac_cv_search_opendir+:} false; then :
12329  break
12330fi
12331done
12332if ${ac_cv_search_opendir+:} false; then :
12333
12334else
12335  ac_cv_search_opendir=no
12336fi
12337rm conftest.$ac_ext
12338LIBS=$ac_func_search_save_LIBS
12339fi
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12341$as_echo "$ac_cv_search_opendir" >&6; }
12342ac_res=$ac_cv_search_opendir
12343if test "$ac_res" != no; then :
12344  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12345
12346fi
12347
12348else
12349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12350$as_echo_n "checking for library containing opendir... " >&6; }
12351if ${ac_cv_search_opendir+:} false; then :
12352  $as_echo_n "(cached) " >&6
12353else
12354  ac_func_search_save_LIBS=$LIBS
12355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356/* end confdefs.h.  */
12357
12358/* Override any GCC internal prototype to avoid an error.
12359   Use char because int might match the return type of a GCC
12360   builtin and then its argument prototype would still apply.  */
12361#ifdef __cplusplus
12362extern "C"
12363#endif
12364char opendir ();
12365int
12366main ()
12367{
12368return opendir ();
12369  ;
12370  return 0;
12371}
12372_ACEOF
12373for ac_lib in '' x; do
12374  if test -z "$ac_lib"; then
12375    ac_res="none required"
12376  else
12377    ac_res=-l$ac_lib
12378    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12379  fi
12380  if ac_fn_c_try_link "$LINENO"; then :
12381  ac_cv_search_opendir=$ac_res
12382fi
12383rm -f core conftest.err conftest.$ac_objext \
12384    conftest$ac_exeext
12385  if ${ac_cv_search_opendir+:} false; then :
12386  break
12387fi
12388done
12389if ${ac_cv_search_opendir+:} false; then :
12390
12391else
12392  ac_cv_search_opendir=no
12393fi
12394rm conftest.$ac_ext
12395LIBS=$ac_func_search_save_LIBS
12396fi
12397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12398$as_echo "$ac_cv_search_opendir" >&6; }
12399ac_res=$ac_cv_search_opendir
12400if test "$ac_res" != no; then :
12401  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12402
12403fi
12404
12405fi
12406
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12408$as_echo_n "checking for ANSI C header files... " >&6; }
12409if ${ac_cv_header_stdc+:} false; then :
12410  $as_echo_n "(cached) " >&6
12411else
12412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413/* end confdefs.h.  */
12414#include <stdlib.h>
12415#include <stdarg.h>
12416#include <string.h>
12417#include <float.h>
12418
12419int
12420main ()
12421{
12422
12423  ;
12424  return 0;
12425}
12426_ACEOF
12427if ac_fn_c_try_compile "$LINENO"; then :
12428  ac_cv_header_stdc=yes
12429else
12430  ac_cv_header_stdc=no
12431fi
12432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12433
12434if test $ac_cv_header_stdc = yes; then
12435  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437/* end confdefs.h.  */
12438#include <string.h>
12439
12440_ACEOF
12441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12442  $EGREP "memchr" >/dev/null 2>&1; then :
12443
12444else
12445  ac_cv_header_stdc=no
12446fi
12447rm -f conftest*
12448
12449fi
12450
12451if test $ac_cv_header_stdc = yes; then
12452  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454/* end confdefs.h.  */
12455#include <stdlib.h>
12456
12457_ACEOF
12458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12459  $EGREP "free" >/dev/null 2>&1; then :
12460
12461else
12462  ac_cv_header_stdc=no
12463fi
12464rm -f conftest*
12465
12466fi
12467
12468if test $ac_cv_header_stdc = yes; then
12469  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12470  if test "$cross_compiling" = yes; then :
12471  :
12472else
12473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474/* end confdefs.h.  */
12475#include <ctype.h>
12476#include <stdlib.h>
12477#if ((' ' & 0x0FF) == 0x020)
12478# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12479# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12480#else
12481# define ISLOWER(c) \
12482		   (('a' <= (c) && (c) <= 'i') \
12483		     || ('j' <= (c) && (c) <= 'r') \
12484		     || ('s' <= (c) && (c) <= 'z'))
12485# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12486#endif
12487
12488#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12489int
12490main ()
12491{
12492  int i;
12493  for (i = 0; i < 256; i++)
12494    if (XOR (islower (i), ISLOWER (i))
12495	|| toupper (i) != TOUPPER (i))
12496      return 2;
12497  return 0;
12498}
12499_ACEOF
12500if ac_fn_c_try_run "$LINENO"; then :
12501
12502else
12503  ac_cv_header_stdc=no
12504fi
12505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12506  conftest.$ac_objext conftest.beam conftest.$ac_ext
12507fi
12508
12509fi
12510fi
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12512$as_echo "$ac_cv_header_stdc" >&6; }
12513if test $ac_cv_header_stdc = yes; then
12514
12515$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12516
12517fi
12518
12519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12520$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12521if ${ac_cv_header_sys_wait_h+:} false; then :
12522  $as_echo_n "(cached) " >&6
12523else
12524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525/* end confdefs.h.  */
12526#include <sys/types.h>
12527#include <sys/wait.h>
12528#ifndef WEXITSTATUS
12529# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12530#endif
12531#ifndef WIFEXITED
12532# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12533#endif
12534
12535int
12536main ()
12537{
12538  int s;
12539  wait (&s);
12540  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12541  ;
12542  return 0;
12543}
12544_ACEOF
12545if ac_fn_c_try_compile "$LINENO"; then :
12546  ac_cv_header_sys_wait_h=yes
12547else
12548  ac_cv_header_sys_wait_h=no
12549fi
12550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551fi
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12553$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12554if test $ac_cv_header_sys_wait_h = yes; then
12555
12556$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12557
12558fi
12559
12560for ac_header in fcntl.h limits.h stdint.h strings.h time.h sys/param.h sys/fcntl.h sys/file.h sys/ioctl.h sys/time.h sys/mnttab.h sys/statvfs.h sys/stat.h sys/vfs.h mntent.h syslog.h unistd.h termios.h sys/termios.h netdb.h sgtty.h ufs/quota.h mount.h statfs.h sys/types.h dlfcn.h errno.h sys/errno.h sys/uio.h langinfo.h locale.h sys/filio.h
12561do :
12562  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12563ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12564if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12565  cat >>confdefs.h <<_ACEOF
12566#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12567_ACEOF
12568
12569fi
12570
12571done
12572
12573ac_fn_c_check_header_mongrel "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
12574if test "x$ac_cv_header_sys_cdefs_h" = xyes; then :
12575
12576else
12577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling generic cdefs.h from tree" >&5
12578$as_echo "enabling generic cdefs.h from tree" >&6; }
12579	CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
12580
12581fi
12582
12583
12584for ac_header in sys/mount.h
12585do :
12586  ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#ifdef HAVE_SYS_PARAM_H
12587#include <sys/param.h>
12588#endif
12589
12590"
12591if test "x$ac_cv_header_sys_mount_h" = xyes; then :
12592  cat >>confdefs.h <<_ACEOF
12593#define HAVE_SYS_MOUNT_H 1
12594_ACEOF
12595
12596fi
12597
12598done
12599
12600
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12602$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12603if ${ac_cv_c_const+:} false; then :
12604  $as_echo_n "(cached) " >&6
12605else
12606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607/* end confdefs.h.  */
12608
12609int
12610main ()
12611{
12612/* FIXME: Include the comments suggested by Paul. */
12613#ifndef __cplusplus
12614  /* Ultrix mips cc rejects this.  */
12615  typedef int charset[2];
12616  const charset cs;
12617  /* SunOS 4.1.1 cc rejects this.  */
12618  char const *const *pcpcc;
12619  char **ppc;
12620  /* NEC SVR4.0.2 mips cc rejects this.  */
12621  struct point {int x, y;};
12622  static struct point const zero = {0,0};
12623  /* AIX XL C 1.02.0.0 rejects this.
12624     It does not let you subtract one const X* pointer from another in
12625     an arm of an if-expression whose if-part is not a constant
12626     expression */
12627  const char *g = "string";
12628  pcpcc = &g + (g ? g-g : 0);
12629  /* HPUX 7.0 cc rejects these. */
12630  ++pcpcc;
12631  ppc = (char**) pcpcc;
12632  pcpcc = (char const *const *) ppc;
12633  { /* SCO 3.2v4 cc rejects this.  */
12634    char *t;
12635    char const *s = 0 ? (char *) 0 : (char const *) 0;
12636
12637    *t++ = 0;
12638    if (s) return 0;
12639  }
12640  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12641    int x[] = {25, 17};
12642    const int *foo = &x[0];
12643    ++foo;
12644  }
12645  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12646    typedef const int *iptr;
12647    iptr p = 0;
12648    ++p;
12649  }
12650  { /* AIX XL C 1.02.0.0 rejects this saying
12651       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12652    struct s { int j; const int *ap[3]; };
12653    struct s *b; b->j = 5;
12654  }
12655  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12656    const int foo = 10;
12657    if (!foo) return 0;
12658  }
12659  return !cs[0] && !zero.x;
12660#endif
12661
12662  ;
12663  return 0;
12664}
12665_ACEOF
12666if ac_fn_c_try_compile "$LINENO"; then :
12667  ac_cv_c_const=yes
12668else
12669  ac_cv_c_const=no
12670fi
12671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672fi
12673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12674$as_echo "$ac_cv_c_const" >&6; }
12675if test $ac_cv_c_const = no; then
12676
12677$as_echo "#define const /**/" >>confdefs.h
12678
12679fi
12680
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12682$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12683if ${ac_cv_type_uid_t+:} false; then :
12684  $as_echo_n "(cached) " >&6
12685else
12686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687/* end confdefs.h.  */
12688#include <sys/types.h>
12689
12690_ACEOF
12691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12692  $EGREP "uid_t" >/dev/null 2>&1; then :
12693  ac_cv_type_uid_t=yes
12694else
12695  ac_cv_type_uid_t=no
12696fi
12697rm -f conftest*
12698
12699fi
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12701$as_echo "$ac_cv_type_uid_t" >&6; }
12702if test $ac_cv_type_uid_t = no; then
12703
12704$as_echo "#define uid_t int" >>confdefs.h
12705
12706
12707$as_echo "#define gid_t int" >>confdefs.h
12708
12709fi
12710
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12712$as_echo_n "checking for inline... " >&6; }
12713if ${ac_cv_c_inline+:} false; then :
12714  $as_echo_n "(cached) " >&6
12715else
12716  ac_cv_c_inline=no
12717for ac_kw in inline __inline__ __inline; do
12718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719/* end confdefs.h.  */
12720#ifndef __cplusplus
12721typedef int foo_t;
12722static $ac_kw foo_t static_foo () {return 0; }
12723$ac_kw foo_t foo () {return 0; }
12724#endif
12725
12726_ACEOF
12727if ac_fn_c_try_compile "$LINENO"; then :
12728  ac_cv_c_inline=$ac_kw
12729fi
12730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12731  test "$ac_cv_c_inline" != no && break
12732done
12733
12734fi
12735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12736$as_echo "$ac_cv_c_inline" >&6; }
12737
12738case $ac_cv_c_inline in
12739  inline | yes) ;;
12740  *)
12741    case $ac_cv_c_inline in
12742      no) ac_val=;;
12743      *) ac_val=$ac_cv_c_inline;;
12744    esac
12745    cat >>confdefs.h <<_ACEOF
12746#ifndef __cplusplus
12747#define inline $ac_val
12748#endif
12749_ACEOF
12750    ;;
12751esac
12752
12753ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12754if test "x$ac_cv_type_mode_t" = xyes; then :
12755
12756else
12757
12758cat >>confdefs.h <<_ACEOF
12759#define mode_t int
12760_ACEOF
12761
12762fi
12763
12764ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12765if test "x$ac_cv_type_off_t" = xyes; then :
12766
12767else
12768
12769cat >>confdefs.h <<_ACEOF
12770#define off_t long int
12771_ACEOF
12772
12773fi
12774
12775ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12776if test "x$ac_cv_type_pid_t" = xyes; then :
12777
12778else
12779
12780cat >>confdefs.h <<_ACEOF
12781#define pid_t int
12782_ACEOF
12783
12784fi
12785
12786ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12787if test "x$ac_cv_type_size_t" = xyes; then :
12788
12789else
12790
12791cat >>confdefs.h <<_ACEOF
12792#define size_t unsigned int
12793_ACEOF
12794
12795fi
12796
12797ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12798if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
12799
12800cat >>confdefs.h <<_ACEOF
12801#define HAVE_STRUCT_STAT_ST_RDEV 1
12802_ACEOF
12803
12804
12805$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
12806
12807fi
12808
12809
12810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12811$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12812if ${ac_cv_header_time+:} false; then :
12813  $as_echo_n "(cached) " >&6
12814else
12815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816/* end confdefs.h.  */
12817#include <sys/types.h>
12818#include <sys/time.h>
12819#include <time.h>
12820
12821int
12822main ()
12823{
12824if ((struct tm *) 0)
12825return 0;
12826  ;
12827  return 0;
12828}
12829_ACEOF
12830if ac_fn_c_try_compile "$LINENO"; then :
12831  ac_cv_header_time=yes
12832else
12833  ac_cv_header_time=no
12834fi
12835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12836fi
12837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12838$as_echo "$ac_cv_header_time" >&6; }
12839if test $ac_cv_header_time = yes; then
12840
12841$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12842
12843fi
12844
12845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12846$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12847if ${ac_cv_struct_tm+:} false; then :
12848  $as_echo_n "(cached) " >&6
12849else
12850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851/* end confdefs.h.  */
12852#include <sys/types.h>
12853#include <time.h>
12854
12855int
12856main ()
12857{
12858struct tm tm;
12859				     int *p = &tm.tm_sec;
12860				     return !p;
12861  ;
12862  return 0;
12863}
12864_ACEOF
12865if ac_fn_c_try_compile "$LINENO"; then :
12866  ac_cv_struct_tm=time.h
12867else
12868  ac_cv_struct_tm=sys/time.h
12869fi
12870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871fi
12872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12873$as_echo "$ac_cv_struct_tm" >&6; }
12874if test $ac_cv_struct_tm = sys/time.h; then
12875
12876$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12877
12878fi
12879
12880
12881
12882LT_DLLOADERS=
12883
12884
12885ac_ext=c
12886ac_cpp='$CPP $CPPFLAGS'
12887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12889ac_compiler_gnu=$ac_cv_c_compiler_gnu
12890
12891
12892LIBADD_DLOPEN=
12893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12894$as_echo_n "checking for library containing dlopen... " >&6; }
12895if ${ac_cv_search_dlopen+:} false; then :
12896  $as_echo_n "(cached) " >&6
12897else
12898  ac_func_search_save_LIBS=$LIBS
12899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900/* end confdefs.h.  */
12901
12902/* Override any GCC internal prototype to avoid an error.
12903   Use char because int might match the return type of a GCC
12904   builtin and then its argument prototype would still apply.  */
12905#ifdef __cplusplus
12906extern "C"
12907#endif
12908char dlopen ();
12909int
12910main ()
12911{
12912return dlopen ();
12913  ;
12914  return 0;
12915}
12916_ACEOF
12917for ac_lib in '' dl; do
12918  if test -z "$ac_lib"; then
12919    ac_res="none required"
12920  else
12921    ac_res=-l$ac_lib
12922    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12923  fi
12924  if ac_fn_c_try_link "$LINENO"; then :
12925  ac_cv_search_dlopen=$ac_res
12926fi
12927rm -f core conftest.err conftest.$ac_objext \
12928    conftest$ac_exeext
12929  if ${ac_cv_search_dlopen+:} false; then :
12930  break
12931fi
12932done
12933if ${ac_cv_search_dlopen+:} false; then :
12934
12935else
12936  ac_cv_search_dlopen=no
12937fi
12938rm conftest.$ac_ext
12939LIBS=$ac_func_search_save_LIBS
12940fi
12941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12942$as_echo "$ac_cv_search_dlopen" >&6; }
12943ac_res=$ac_cv_search_dlopen
12944if test "$ac_res" != no; then :
12945  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12946
12947$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12948
12949	if test "$ac_cv_search_dlopen" != "none required" ; then
12950	  LIBADD_DLOPEN="-ldl"
12951	fi
12952	libltdl_cv_lib_dl_dlopen="yes"
12953	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12954else
12955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956/* end confdefs.h.  */
12957#if HAVE_DLFCN_H
12958#  include <dlfcn.h>
12959#endif
12960
12961int
12962main ()
12963{
12964dlopen(0, 0);
12965  ;
12966  return 0;
12967}
12968_ACEOF
12969if ac_fn_c_try_link "$LINENO"; then :
12970
12971$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12972
12973	    libltdl_cv_func_dlopen="yes"
12974	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12975else
12976  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12977$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12978if ${ac_cv_lib_svld_dlopen+:} false; then :
12979  $as_echo_n "(cached) " >&6
12980else
12981  ac_check_lib_save_LIBS=$LIBS
12982LIBS="-lsvld  $LIBS"
12983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984/* end confdefs.h.  */
12985
12986/* Override any GCC internal prototype to avoid an error.
12987   Use char because int might match the return type of a GCC
12988   builtin and then its argument prototype would still apply.  */
12989#ifdef __cplusplus
12990extern "C"
12991#endif
12992char dlopen ();
12993int
12994main ()
12995{
12996return dlopen ();
12997  ;
12998  return 0;
12999}
13000_ACEOF
13001if ac_fn_c_try_link "$LINENO"; then :
13002  ac_cv_lib_svld_dlopen=yes
13003else
13004  ac_cv_lib_svld_dlopen=no
13005fi
13006rm -f core conftest.err conftest.$ac_objext \
13007    conftest$ac_exeext conftest.$ac_ext
13008LIBS=$ac_check_lib_save_LIBS
13009fi
13010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13011$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13012if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13013
13014$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
13015
13016	        LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
13017		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
13018fi
13019
13020fi
13021rm -f core conftest.err conftest.$ac_objext \
13022    conftest$ac_exeext conftest.$ac_ext
13023fi
13024
13025if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
13026then
13027  lt_save_LIBS="$LIBS"
13028  LIBS="$LIBS $LIBADD_DLOPEN"
13029  for ac_func in dlerror
13030do :
13031  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
13032if test "x$ac_cv_func_dlerror" = xyes; then :
13033  cat >>confdefs.h <<_ACEOF
13034#define HAVE_DLERROR 1
13035_ACEOF
13036
13037fi
13038done
13039
13040  LIBS="$lt_save_LIBS"
13041fi
13042
13043
13044LIBADD_SHL_LOAD=
13045ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13046if test "x$ac_cv_func_shl_load" = xyes; then :
13047
13048$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
13049
13050	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
13051else
13052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13053$as_echo_n "checking for shl_load in -ldld... " >&6; }
13054if ${ac_cv_lib_dld_shl_load+:} false; then :
13055  $as_echo_n "(cached) " >&6
13056else
13057  ac_check_lib_save_LIBS=$LIBS
13058LIBS="-ldld  $LIBS"
13059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060/* end confdefs.h.  */
13061
13062/* Override any GCC internal prototype to avoid an error.
13063   Use char because int might match the return type of a GCC
13064   builtin and then its argument prototype would still apply.  */
13065#ifdef __cplusplus
13066extern "C"
13067#endif
13068char shl_load ();
13069int
13070main ()
13071{
13072return shl_load ();
13073  ;
13074  return 0;
13075}
13076_ACEOF
13077if ac_fn_c_try_link "$LINENO"; then :
13078  ac_cv_lib_dld_shl_load=yes
13079else
13080  ac_cv_lib_dld_shl_load=no
13081fi
13082rm -f core conftest.err conftest.$ac_objext \
13083    conftest$ac_exeext conftest.$ac_ext
13084LIBS=$ac_check_lib_save_LIBS
13085fi
13086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13087$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13088if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13089
13090$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
13091
13092	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
13093	    LIBADD_SHL_LOAD="-ldld"
13094fi
13095
13096fi
13097
13098
13099
13100case $host_os in
13101darwin[1567].*)
13102# We only want this for pre-Mac OS X 10.4.
13103  ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
13104if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
13105
13106$as_echo "#define HAVE_DYLD 1" >>confdefs.h
13107
13108	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
13109fi
13110
13111  ;;
13112beos*)
13113  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
13114  ;;
13115cygwin* | mingw* | os2* | pw32*)
13116  ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
13117"
13118if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
13119  ac_have_decl=1
13120else
13121  ac_have_decl=0
13122fi
13123
13124cat >>confdefs.h <<_ACEOF
13125#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
13126_ACEOF
13127
13128  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
13129  ;;
13130esac
13131
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13133$as_echo_n "checking for dld_link in -ldld... " >&6; }
13134if ${ac_cv_lib_dld_dld_link+:} false; then :
13135  $as_echo_n "(cached) " >&6
13136else
13137  ac_check_lib_save_LIBS=$LIBS
13138LIBS="-ldld  $LIBS"
13139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140/* end confdefs.h.  */
13141
13142/* Override any GCC internal prototype to avoid an error.
13143   Use char because int might match the return type of a GCC
13144   builtin and then its argument prototype would still apply.  */
13145#ifdef __cplusplus
13146extern "C"
13147#endif
13148char dld_link ();
13149int
13150main ()
13151{
13152return dld_link ();
13153  ;
13154  return 0;
13155}
13156_ACEOF
13157if ac_fn_c_try_link "$LINENO"; then :
13158  ac_cv_lib_dld_dld_link=yes
13159else
13160  ac_cv_lib_dld_dld_link=no
13161fi
13162rm -f core conftest.err conftest.$ac_objext \
13163    conftest$ac_exeext conftest.$ac_ext
13164LIBS=$ac_check_lib_save_LIBS
13165fi
13166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13167$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13168if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13169
13170$as_echo "#define HAVE_DLD 1" >>confdefs.h
13171
13172		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
13173fi
13174
13175
13176
13177
13178LT_DLPREOPEN=
13179if test -n "$LT_DLLOADERS"
13180then
13181  for lt_loader in $LT_DLLOADERS; do
13182    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
13183  done
13184
13185$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
13186
13187fi
13188
13189
13190LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
13191
13192
13193ac_ext=c
13194ac_cpp='$CPP $CPPFLAGS'
13195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13197ac_compiler_gnu=$ac_cv_c_compiler_gnu
13198
13199
13200for ac_func in dlopen dlsym dlclose
13201do :
13202  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13203ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13204if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13205  cat >>confdefs.h <<_ACEOF
13206#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13207_ACEOF
13208
13209fi
13210done
13211
13212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
13213$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
13214if ${lt_cv_sys_symbol_underscore+:} false; then :
13215  $as_echo_n "(cached) " >&6
13216else
13217  lt_cv_sys_symbol_underscore=no
13218  cat > conftest.$ac_ext <<_LT_EOF
13219void nm_test_func(){}
13220int main(){nm_test_func;return 0;}
13221_LT_EOF
13222  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13223  (eval $ac_compile) 2>&5
13224  ac_status=$?
13225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13226  test $ac_status = 0; }; then
13227    # Now try to grab the symbols.
13228    ac_nlist=conftest.nm
13229    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
13230  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
13231  ac_status=$?
13232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13233  test $ac_status = 0; } && test -s "$ac_nlist"; then
13234      # See whether the symbols have a leading underscore.
13235      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
13236        lt_cv_sys_symbol_underscore=yes
13237      else
13238        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
13239	  :
13240        else
13241	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
13242        fi
13243      fi
13244    else
13245      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
13246    fi
13247  else
13248    echo "configure: failed program was:" >&5
13249    cat conftest.c >&5
13250  fi
13251  rm -rf conftest*
13252
13253fi
13254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
13255$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
13256  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
13257
13258
13259if test x"$lt_cv_sys_symbol_underscore" = xyes; then
13260  if test x"$libltdl_cv_func_dlopen" = xyes ||
13261     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
13262	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
13263$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
13264if ${libltdl_cv_need_uscore+:} false; then :
13265  $as_echo_n "(cached) " >&6
13266else
13267  libltdl_cv_need_uscore=unknown
13268          save_LIBS="$LIBS"
13269          LIBS="$LIBS $LIBADD_DLOPEN"
13270	  if test "$cross_compiling" = yes; then :
13271  libltdl_cv_need_uscore=cross
13272else
13273  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13274  lt_status=$lt_dlunknown
13275  cat > conftest.$ac_ext <<_LT_EOF
13276#line $LINENO "configure"
13277#include "confdefs.h"
13278
13279#if HAVE_DLFCN_H
13280#include <dlfcn.h>
13281#endif
13282
13283#include <stdio.h>
13284
13285#ifdef RTLD_GLOBAL
13286#  define LT_DLGLOBAL		RTLD_GLOBAL
13287#else
13288#  ifdef DL_GLOBAL
13289#    define LT_DLGLOBAL		DL_GLOBAL
13290#  else
13291#    define LT_DLGLOBAL		0
13292#  endif
13293#endif
13294
13295/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13296   find out it does not work in some platform. */
13297#ifndef LT_DLLAZY_OR_NOW
13298#  ifdef RTLD_LAZY
13299#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13300#  else
13301#    ifdef DL_LAZY
13302#      define LT_DLLAZY_OR_NOW		DL_LAZY
13303#    else
13304#      ifdef RTLD_NOW
13305#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13306#      else
13307#        ifdef DL_NOW
13308#          define LT_DLLAZY_OR_NOW	DL_NOW
13309#        else
13310#          define LT_DLLAZY_OR_NOW	0
13311#        endif
13312#      endif
13313#    endif
13314#  endif
13315#endif
13316
13317/* When -fvisbility=hidden is used, assume the code has been annotated
13318   correspondingly for the symbols needed.  */
13319#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13320int fnord () __attribute__((visibility("default")));
13321#endif
13322
13323int fnord () { return 42; }
13324int main ()
13325{
13326  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13327  int status = $lt_dlunknown;
13328
13329  if (self)
13330    {
13331      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13332      else
13333        {
13334	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13335          else puts (dlerror ());
13336	}
13337      /* dlclose (self); */
13338    }
13339  else
13340    puts (dlerror ());
13341
13342  return status;
13343}
13344_LT_EOF
13345  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13346  (eval $ac_link) 2>&5
13347  ac_status=$?
13348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13349  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13350    (./conftest; exit; ) >&5 2>/dev/null
13351    lt_status=$?
13352    case x$lt_status in
13353      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
13354      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
13355      x$lt_dlunknown|x*)  ;;
13356    esac
13357  else :
13358    # compilation failed
13359
13360  fi
13361fi
13362rm -fr conftest*
13363
13364	  LIBS="$save_LIBS"
13365
13366fi
13367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
13368$as_echo "$libltdl_cv_need_uscore" >&6; }
13369  fi
13370fi
13371
13372if test x"$libltdl_cv_need_uscore" = xyes; then
13373
13374$as_echo "#define NEED_USCORE 1" >>confdefs.h
13375
13376fi
13377
13378if test x"$libltdl_cv_need_uscore" = xyes; then
13379
13380$as_echo "#define DLSYM_PREPEND_UNDERSCORE 1" >>confdefs.h
13381
13382fi
13383
13384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
13385$as_echo_n "checking type of array argument to getgroups... " >&6; }
13386if ${ac_cv_type_getgroups+:} false; then :
13387  $as_echo_n "(cached) " >&6
13388else
13389  if test "$cross_compiling" = yes; then :
13390  ac_cv_type_getgroups=cross
13391else
13392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393/* end confdefs.h.  */
13394/* Thanks to Mike Rendell for this test.  */
13395$ac_includes_default
13396#define NGID 256
13397#undef MAX
13398#define MAX(x, y) ((x) > (y) ? (x) : (y))
13399
13400int
13401main ()
13402{
13403  gid_t gidset[NGID];
13404  int i, n;
13405  union { gid_t gval; long int lval; }  val;
13406
13407  val.lval = -1;
13408  for (i = 0; i < NGID; i++)
13409    gidset[i] = val.gval;
13410  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
13411		 gidset);
13412  /* Exit non-zero if getgroups seems to require an array of ints.  This
13413     happens when gid_t is short int but getgroups modifies an array
13414     of ints.  */
13415  return n > 0 && gidset[n] != val.gval;
13416}
13417_ACEOF
13418if ac_fn_c_try_run "$LINENO"; then :
13419  ac_cv_type_getgroups=gid_t
13420else
13421  ac_cv_type_getgroups=int
13422fi
13423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13424  conftest.$ac_objext conftest.beam conftest.$ac_ext
13425fi
13426
13427if test $ac_cv_type_getgroups = cross; then
13428        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429/* end confdefs.h.  */
13430#include <unistd.h>
13431
13432_ACEOF
13433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13434  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
13435  ac_cv_type_getgroups=gid_t
13436else
13437  ac_cv_type_getgroups=int
13438fi
13439rm -f conftest*
13440
13441fi
13442fi
13443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
13444$as_echo "$ac_cv_type_getgroups" >&6; }
13445
13446cat >>confdefs.h <<_ACEOF
13447#define GETGROUPS_T $ac_cv_type_getgroups
13448_ACEOF
13449
13450
13451if test $ac_cv_c_compiler_gnu = yes; then
13452    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13453$as_echo_n "checking whether $CC needs -traditional... " >&6; }
13454if ${ac_cv_prog_gcc_traditional+:} false; then :
13455  $as_echo_n "(cached) " >&6
13456else
13457    ac_pattern="Autoconf.*'x'"
13458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459/* end confdefs.h.  */
13460#include <sgtty.h>
13461Autoconf TIOCGETP
13462_ACEOF
13463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13464  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13465  ac_cv_prog_gcc_traditional=yes
13466else
13467  ac_cv_prog_gcc_traditional=no
13468fi
13469rm -f conftest*
13470
13471
13472  if test $ac_cv_prog_gcc_traditional = no; then
13473    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474/* end confdefs.h.  */
13475#include <termio.h>
13476Autoconf TCGETA
13477_ACEOF
13478if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13479  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13480  ac_cv_prog_gcc_traditional=yes
13481fi
13482rm -f conftest*
13483
13484  fi
13485fi
13486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13487$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13488  if test $ac_cv_prog_gcc_traditional = yes; then
13489    CC="$CC -traditional"
13490  fi
13491fi
13492
13493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
13494$as_echo_n "checking for working memcmp... " >&6; }
13495if ${ac_cv_func_memcmp_working+:} false; then :
13496  $as_echo_n "(cached) " >&6
13497else
13498  if test "$cross_compiling" = yes; then :
13499  ac_cv_func_memcmp_working=no
13500else
13501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502/* end confdefs.h.  */
13503$ac_includes_default
13504int
13505main ()
13506{
13507
13508  /* Some versions of memcmp are not 8-bit clean.  */
13509  char c0 = '\100', c1 = '\200', c2 = '\201';
13510  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13511    return 1;
13512
13513  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13514     or more and with at least one buffer not starting on a 4-byte boundary.
13515     William Lewis provided this test program.   */
13516  {
13517    char foo[21];
13518    char bar[21];
13519    int i;
13520    for (i = 0; i < 4; i++)
13521      {
13522	char *a = foo + i;
13523	char *b = bar + i;
13524	strcpy (a, "--------01111111");
13525	strcpy (b, "--------10000000");
13526	if (memcmp (a, b, 16) >= 0)
13527	  return 1;
13528      }
13529    return 0;
13530  }
13531
13532  ;
13533  return 0;
13534}
13535_ACEOF
13536if ac_fn_c_try_run "$LINENO"; then :
13537  ac_cv_func_memcmp_working=yes
13538else
13539  ac_cv_func_memcmp_working=no
13540fi
13541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13542  conftest.$ac_objext conftest.beam conftest.$ac_ext
13543fi
13544
13545fi
13546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
13547$as_echo "$ac_cv_func_memcmp_working" >&6; }
13548test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13549  *" memcmp.$ac_objext "* ) ;;
13550  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13551 ;;
13552esac
13553
13554
13555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
13556$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
13557if ${ac_cv_header_sys_types_h_makedev+:} false; then :
13558  $as_echo_n "(cached) " >&6
13559else
13560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561/* end confdefs.h.  */
13562#include <sys/types.h>
13563int
13564main ()
13565{
13566return makedev(0, 0);
13567  ;
13568  return 0;
13569}
13570_ACEOF
13571if ac_fn_c_try_link "$LINENO"; then :
13572  ac_cv_header_sys_types_h_makedev=yes
13573else
13574  ac_cv_header_sys_types_h_makedev=no
13575fi
13576rm -f core conftest.err conftest.$ac_objext \
13577    conftest$ac_exeext conftest.$ac_ext
13578
13579fi
13580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
13581$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
13582
13583if test $ac_cv_header_sys_types_h_makedev = no; then
13584ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
13585if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
13586
13587$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
13588
13589fi
13590
13591
13592
13593  if test $ac_cv_header_sys_mkdev_h = no; then
13594    ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
13595if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
13596
13597$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
13598
13599fi
13600
13601
13602  fi
13603fi
13604
13605
13606
13607
13608  for ac_header in $ac_header_list
13609do :
13610  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13611ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13612"
13613if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13614  cat >>confdefs.h <<_ACEOF
13615#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13616_ACEOF
13617
13618fi
13619
13620done
13621
13622
13623
13624
13625
13626
13627
13628
13629for ac_func in getpagesize
13630do :
13631  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13632if test "x$ac_cv_func_getpagesize" = xyes; then :
13633  cat >>confdefs.h <<_ACEOF
13634#define HAVE_GETPAGESIZE 1
13635_ACEOF
13636
13637fi
13638done
13639
13640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13641$as_echo_n "checking for working mmap... " >&6; }
13642if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13643  $as_echo_n "(cached) " >&6
13644else
13645  if test "$cross_compiling" = yes; then :
13646  ac_cv_func_mmap_fixed_mapped=no
13647else
13648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649/* end confdefs.h.  */
13650$ac_includes_default
13651/* malloc might have been renamed as rpl_malloc. */
13652#undef malloc
13653
13654/* Thanks to Mike Haertel and Jim Avera for this test.
13655   Here is a matrix of mmap possibilities:
13656	mmap private not fixed
13657	mmap private fixed at somewhere currently unmapped
13658	mmap private fixed at somewhere already mapped
13659	mmap shared not fixed
13660	mmap shared fixed at somewhere currently unmapped
13661	mmap shared fixed at somewhere already mapped
13662   For private mappings, we should verify that changes cannot be read()
13663   back from the file, nor mmap's back from the file at a different
13664   address.  (There have been systems where private was not correctly
13665   implemented like the infamous i386 svr4.0, and systems where the
13666   VM page cache was not coherent with the file system buffer cache
13667   like early versions of FreeBSD and possibly contemporary NetBSD.)
13668   For shared mappings, we should conversely verify that changes get
13669   propagated back to all the places they're supposed to be.
13670
13671   Grep wants private fixed already mapped.
13672   The main things grep needs to know about mmap are:
13673   * does it exist and is it safe to write into the mmap'd area
13674   * how to use it (BSD variants)  */
13675
13676#include <fcntl.h>
13677#include <sys/mman.h>
13678
13679#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13680char *malloc ();
13681#endif
13682
13683/* This mess was copied from the GNU getpagesize.h.  */
13684#ifndef HAVE_GETPAGESIZE
13685# ifdef _SC_PAGESIZE
13686#  define getpagesize() sysconf(_SC_PAGESIZE)
13687# else /* no _SC_PAGESIZE */
13688#  ifdef HAVE_SYS_PARAM_H
13689#   include <sys/param.h>
13690#   ifdef EXEC_PAGESIZE
13691#    define getpagesize() EXEC_PAGESIZE
13692#   else /* no EXEC_PAGESIZE */
13693#    ifdef NBPG
13694#     define getpagesize() NBPG * CLSIZE
13695#     ifndef CLSIZE
13696#      define CLSIZE 1
13697#     endif /* no CLSIZE */
13698#    else /* no NBPG */
13699#     ifdef NBPC
13700#      define getpagesize() NBPC
13701#     else /* no NBPC */
13702#      ifdef PAGESIZE
13703#       define getpagesize() PAGESIZE
13704#      endif /* PAGESIZE */
13705#     endif /* no NBPC */
13706#    endif /* no NBPG */
13707#   endif /* no EXEC_PAGESIZE */
13708#  else /* no HAVE_SYS_PARAM_H */
13709#   define getpagesize() 8192	/* punt totally */
13710#  endif /* no HAVE_SYS_PARAM_H */
13711# endif /* no _SC_PAGESIZE */
13712
13713#endif /* no HAVE_GETPAGESIZE */
13714
13715int
13716main ()
13717{
13718  char *data, *data2, *data3;
13719  const char *cdata2;
13720  int i, pagesize;
13721  int fd, fd2;
13722
13723  pagesize = getpagesize ();
13724
13725  /* First, make a file with some known garbage in it. */
13726  data = (char *) malloc (pagesize);
13727  if (!data)
13728    return 1;
13729  for (i = 0; i < pagesize; ++i)
13730    *(data + i) = rand ();
13731  umask (0);
13732  fd = creat ("conftest.mmap", 0600);
13733  if (fd < 0)
13734    return 2;
13735  if (write (fd, data, pagesize) != pagesize)
13736    return 3;
13737  close (fd);
13738
13739  /* Next, check that the tail of a page is zero-filled.  File must have
13740     non-zero length, otherwise we risk SIGBUS for entire page.  */
13741  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13742  if (fd2 < 0)
13743    return 4;
13744  cdata2 = "";
13745  if (write (fd2, cdata2, 1) != 1)
13746    return 5;
13747  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13748  if (data2 == MAP_FAILED)
13749    return 6;
13750  for (i = 0; i < pagesize; ++i)
13751    if (*(data2 + i))
13752      return 7;
13753  close (fd2);
13754  if (munmap (data2, pagesize))
13755    return 8;
13756
13757  /* Next, try to mmap the file at a fixed address which already has
13758     something else allocated at it.  If we can, also make sure that
13759     we see the same garbage.  */
13760  fd = open ("conftest.mmap", O_RDWR);
13761  if (fd < 0)
13762    return 9;
13763  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13764		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
13765    return 10;
13766  for (i = 0; i < pagesize; ++i)
13767    if (*(data + i) != *(data2 + i))
13768      return 11;
13769
13770  /* Finally, make sure that changes to the mapped area do not
13771     percolate back to the file as seen by read().  (This is a bug on
13772     some variants of i386 svr4.0.)  */
13773  for (i = 0; i < pagesize; ++i)
13774    *(data2 + i) = *(data2 + i) + 1;
13775  data3 = (char *) malloc (pagesize);
13776  if (!data3)
13777    return 12;
13778  if (read (fd, data3, pagesize) != pagesize)
13779    return 13;
13780  for (i = 0; i < pagesize; ++i)
13781    if (*(data + i) != *(data3 + i))
13782      return 14;
13783  close (fd);
13784  return 0;
13785}
13786_ACEOF
13787if ac_fn_c_try_run "$LINENO"; then :
13788  ac_cv_func_mmap_fixed_mapped=yes
13789else
13790  ac_cv_func_mmap_fixed_mapped=no
13791fi
13792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13793  conftest.$ac_objext conftest.beam conftest.$ac_ext
13794fi
13795
13796fi
13797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13798$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13799if test $ac_cv_func_mmap_fixed_mapped = yes; then
13800
13801$as_echo "#define HAVE_MMAP 1" >>confdefs.h
13802
13803fi
13804rm -f conftest.mmap conftest.txt
13805
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13807$as_echo_n "checking return type of signal handlers... " >&6; }
13808if ${ac_cv_type_signal+:} false; then :
13809  $as_echo_n "(cached) " >&6
13810else
13811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812/* end confdefs.h.  */
13813#include <sys/types.h>
13814#include <signal.h>
13815
13816int
13817main ()
13818{
13819return *(signal (0, 0)) (0) == 1;
13820  ;
13821  return 0;
13822}
13823_ACEOF
13824if ac_fn_c_try_compile "$LINENO"; then :
13825  ac_cv_type_signal=int
13826else
13827  ac_cv_type_signal=void
13828fi
13829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13830fi
13831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13832$as_echo "$ac_cv_type_signal" >&6; }
13833
13834cat >>confdefs.h <<_ACEOF
13835#define RETSIGTYPE $ac_cv_type_signal
13836_ACEOF
13837
13838
13839
13840
13841
13842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
13843$as_echo_n "checking whether utime accepts a null argument... " >&6; }
13844if ${ac_cv_func_utime_null+:} false; then :
13845  $as_echo_n "(cached) " >&6
13846else
13847  rm -f conftest.data; >conftest.data
13848# Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
13849if test "$cross_compiling" = yes; then :
13850  ac_cv_func_utime_null='guessing yes'
13851else
13852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853/* end confdefs.h.  */
13854$ac_includes_default
13855	       #ifdef HAVE_UTIME_H
13856	       # include <utime.h>
13857	       #endif
13858int
13859main ()
13860{
13861struct stat s, t;
13862  return ! (stat ("conftest.data", &s) == 0
13863	    && utime ("conftest.data", 0) == 0
13864	    && stat ("conftest.data", &t) == 0
13865	    && t.st_mtime >= s.st_mtime
13866	    && t.st_mtime - s.st_mtime < 120);
13867  ;
13868  return 0;
13869}
13870_ACEOF
13871if ac_fn_c_try_run "$LINENO"; then :
13872  ac_cv_func_utime_null=yes
13873else
13874  ac_cv_func_utime_null=no
13875fi
13876rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13877  conftest.$ac_objext conftest.beam conftest.$ac_ext
13878fi
13879
13880fi
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
13882$as_echo "$ac_cv_func_utime_null" >&6; }
13883if test "x$ac_cv_func_utime_null" != xno; then
13884  ac_cv_func_utime_null=yes
13885
13886$as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
13887
13888fi
13889rm -f conftest.data
13890
13891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
13892$as_echo_n "checking for wait3 that fills in rusage... " >&6; }
13893if ${ac_cv_func_wait3_rusage+:} false; then :
13894  $as_echo_n "(cached) " >&6
13895else
13896  if test "$cross_compiling" = yes; then :
13897  ac_cv_func_wait3_rusage=no
13898else
13899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900/* end confdefs.h.  */
13901$ac_includes_default
13902#include <sys/time.h>
13903#include <sys/resource.h>
13904#include <sys/wait.h>
13905/* HP-UX has wait3 but does not fill in rusage at all.  */
13906int
13907main ()
13908{
13909  struct rusage r;
13910  int i;
13911  /* Use a field that we can force nonzero --
13912     voluntary context switches.
13913     For systems like NeXT and OSF/1 that don't set it,
13914     also use the system CPU time.  And page faults (I/O) for Linux.  */
13915  r.ru_nvcsw = 0;
13916  r.ru_stime.tv_sec = 0;
13917  r.ru_stime.tv_usec = 0;
13918  r.ru_majflt = r.ru_minflt = 0;
13919  switch (fork ())
13920    {
13921    case 0: /* Child.  */
13922      sleep(1); /* Give up the CPU.  */
13923      _exit(0);
13924      break;
13925    case -1: /* What can we do?  */
13926      _exit(0);
13927      break;
13928    default: /* Parent.  */
13929      wait3(&i, 0, &r);
13930      /* Avoid "text file busy" from rm on fast HP-UX machines.  */
13931      sleep(2);
13932      return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
13933	      && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
13934    }
13935}
13936_ACEOF
13937if ac_fn_c_try_run "$LINENO"; then :
13938  ac_cv_func_wait3_rusage=yes
13939else
13940  ac_cv_func_wait3_rusage=no
13941fi
13942rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13943  conftest.$ac_objext conftest.beam conftest.$ac_ext
13944fi
13945
13946fi
13947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
13948$as_echo "$ac_cv_func_wait3_rusage" >&6; }
13949if test $ac_cv_func_wait3_rusage = yes; then
13950
13951$as_echo "#define HAVE_WAIT3 1" >>confdefs.h
13952
13953fi
13954
13955for ac_func in getcwd gethostname gettimeofday getusershell mkdir rmdir select socket strdup strcasestr strstr strtoul strchr memcpy
13956do :
13957  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13958ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13959if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13960  cat >>confdefs.h <<_ACEOF
13961#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13962_ACEOF
13963
13964fi
13965done
13966
13967for ac_func in backtrace_symbols setlocale nl_langinfo strlcpy strlcat setlinebuf dirfd pselect access pread pwrite
13968do :
13969  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13970ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13971if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13972  cat >>confdefs.h <<_ACEOF
13973#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13974_ACEOF
13975
13976fi
13977done
13978
13979for ac_func in waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
13980do :
13981  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13982ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13983if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13984  cat >>confdefs.h <<_ACEOF
13985#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13986_ACEOF
13987
13988fi
13989done
13990
13991ac_neta_haveatfuncs=yes
13992for ac_func in openat renameat fstatat unlinkat
13993do :
13994  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13995ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13996if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13997  cat >>confdefs.h <<_ACEOF
13998#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13999_ACEOF
14000
14001else
14002  ac_neta_haveatfuncs=no
14003fi
14004done
14005
14006if test x"$ac_neta_haveatfuncs" = x"yes" ; then
14007
14008$as_echo "#define _ATFILE_SOURCE 1" >>confdefs.h
14009
14010
14011$as_echo "#define HAVE_ATFUNCS 1" >>confdefs.h
14012
14013fi
14014
14015ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14016"
14017if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
14018
14019cat >>confdefs.h <<_ACEOF
14020#define HAVE_STRUCT_TM_TM_GMTOFF 1
14021_ACEOF
14022
14023
14024fi
14025
14026
14027ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14028if test "x$ac_cv_func_gethostbyname" = xyes; then :
14029
14030else
14031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
14032$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
14033if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
14034  $as_echo_n "(cached) " >&6
14035else
14036  ac_check_lib_save_LIBS=$LIBS
14037LIBS="-lnsl  $LIBS"
14038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039/* end confdefs.h.  */
14040
14041/* Override any GCC internal prototype to avoid an error.
14042   Use char because int might match the return type of a GCC
14043   builtin and then its argument prototype would still apply.  */
14044#ifdef __cplusplus
14045extern "C"
14046#endif
14047char gethostbyname ();
14048int
14049main ()
14050{
14051return gethostbyname ();
14052  ;
14053  return 0;
14054}
14055_ACEOF
14056if ac_fn_c_try_link "$LINENO"; then :
14057  ac_cv_lib_nsl_gethostbyname=yes
14058else
14059  ac_cv_lib_nsl_gethostbyname=no
14060fi
14061rm -f core conftest.err conftest.$ac_objext \
14062    conftest$ac_exeext conftest.$ac_ext
14063LIBS=$ac_check_lib_save_LIBS
14064fi
14065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
14066$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
14067if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
14068  cat >>confdefs.h <<_ACEOF
14069#define HAVE_LIBNSL 1
14070_ACEOF
14071
14072  LIBS="-lnsl $LIBS"
14073
14074fi
14075
14076fi
14077
14078ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14079if test "x$ac_cv_func_connect" = xyes; then :
14080
14081else
14082  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
14083$as_echo_n "checking for connect in -lsocket... " >&6; }
14084if ${ac_cv_lib_socket_connect+:} false; then :
14085  $as_echo_n "(cached) " >&6
14086else
14087  ac_check_lib_save_LIBS=$LIBS
14088LIBS="-lsocket  $LIBS"
14089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090/* end confdefs.h.  */
14091
14092/* Override any GCC internal prototype to avoid an error.
14093   Use char because int might match the return type of a GCC
14094   builtin and then its argument prototype would still apply.  */
14095#ifdef __cplusplus
14096extern "C"
14097#endif
14098char connect ();
14099int
14100main ()
14101{
14102return connect ();
14103  ;
14104  return 0;
14105}
14106_ACEOF
14107if ac_fn_c_try_link "$LINENO"; then :
14108  ac_cv_lib_socket_connect=yes
14109else
14110  ac_cv_lib_socket_connect=no
14111fi
14112rm -f core conftest.err conftest.$ac_objext \
14113    conftest$ac_exeext conftest.$ac_ext
14114LIBS=$ac_check_lib_save_LIBS
14115fi
14116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
14117$as_echo "$ac_cv_lib_socket_connect" >&6; }
14118if test "x$ac_cv_lib_socket_connect" = xyes; then :
14119  cat >>confdefs.h <<_ACEOF
14120#define HAVE_LIBSOCKET 1
14121_ACEOF
14122
14123  LIBS="-lsocket $LIBS"
14124
14125fi
14126
14127fi
14128
14129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_sigmask" >&5
14130$as_echo_n "checking for library containing pthread_sigmask... " >&6; }
14131if ${ac_cv_search_pthread_sigmask+:} false; then :
14132  $as_echo_n "(cached) " >&6
14133else
14134  ac_func_search_save_LIBS=$LIBS
14135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136/* end confdefs.h.  */
14137
14138/* Override any GCC internal prototype to avoid an error.
14139   Use char because int might match the return type of a GCC
14140   builtin and then its argument prototype would still apply.  */
14141#ifdef __cplusplus
14142extern "C"
14143#endif
14144char pthread_sigmask ();
14145int
14146main ()
14147{
14148return pthread_sigmask ();
14149  ;
14150  return 0;
14151}
14152_ACEOF
14153for ac_lib in '' pthread; do
14154  if test -z "$ac_lib"; then
14155    ac_res="none required"
14156  else
14157    ac_res=-l$ac_lib
14158    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14159  fi
14160  if ac_fn_c_try_link "$LINENO"; then :
14161  ac_cv_search_pthread_sigmask=$ac_res
14162fi
14163rm -f core conftest.err conftest.$ac_objext \
14164    conftest$ac_exeext
14165  if ${ac_cv_search_pthread_sigmask+:} false; then :
14166  break
14167fi
14168done
14169if ${ac_cv_search_pthread_sigmask+:} false; then :
14170
14171else
14172  ac_cv_search_pthread_sigmask=no
14173fi
14174rm conftest.$ac_ext
14175LIBS=$ac_func_search_save_LIBS
14176fi
14177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_sigmask" >&5
14178$as_echo "$ac_cv_search_pthread_sigmask" >&6; }
14179ac_res=$ac_cv_search_pthread_sigmask
14180if test "$ac_res" != no; then :
14181  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14182
14183else
14184  as_fn_error $? "cannot find pthread_sigmask in libc or libpthread" "$LINENO" 5
14185fi
14186
14187if test x"$ac_cv_search_pthread_sigmask" != x"none required" ; then
14188   PTHREAD_LIBS=$ac_cv_search_pthread_sigmask
14189fi
14190
14191cat >confcache <<\_ACEOF
14192# This file is a shell script that caches the results of configure
14193# tests run on this system so they can be shared between configure
14194# scripts and configure runs, see configure's option --config-cache.
14195# It is not useful on other systems.  If it contains results you don't
14196# want to keep, you may remove or edit it.
14197#
14198# config.status only pays attention to the cache file if you give it
14199# the --recheck option to rerun configure.
14200#
14201# `ac_cv_env_foo' variables (set or unset) will be overridden when
14202# loading this file, other *unset* `ac_cv_foo' will be assigned the
14203# following values.
14204
14205_ACEOF
14206
14207# The following way of writing the cache mishandles newlines in values,
14208# but we know of no workaround that is simple, portable, and efficient.
14209# So, we kill variables containing newlines.
14210# Ultrix sh set writes to stderr and can't be redirected directly,
14211# and sets the high bit in the cache file unless we assign to the vars.
14212(
14213  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14214    eval ac_val=\$$ac_var
14215    case $ac_val in #(
14216    *${as_nl}*)
14217      case $ac_var in #(
14218      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14219$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14220      esac
14221      case $ac_var in #(
14222      _ | IFS | as_nl) ;; #(
14223      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14224      *) { eval $ac_var=; unset $ac_var;} ;;
14225      esac ;;
14226    esac
14227  done
14228
14229  (set) 2>&1 |
14230    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14231    *${as_nl}ac_space=\ *)
14232      # `set' does not quote correctly, so add quotes: double-quote
14233      # substitution turns \\\\ into \\, and sed turns \\ into \.
14234      sed -n \
14235	"s/'/'\\\\''/g;
14236	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14237      ;; #(
14238    *)
14239      # `set' quotes correctly as required by POSIX, so do not add quotes.
14240      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14241      ;;
14242    esac |
14243    sort
14244) |
14245  sed '
14246     /^ac_cv_env_/b end
14247     t clear
14248     :clear
14249     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14250     t end
14251     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14252     :end' >>confcache
14253if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14254  if test -w "$cache_file"; then
14255    if test "x$cache_file" != "x/dev/null"; then
14256      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14257$as_echo "$as_me: updating cache $cache_file" >&6;}
14258      if test ! -f "$cache_file" || test -h "$cache_file"; then
14259	cat confcache >"$cache_file"
14260      else
14261        case $cache_file in #(
14262        */* | ?:*)
14263	  mv -f confcache "$cache_file"$$ &&
14264	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14265        *)
14266	  mv -f confcache "$cache_file" ;;
14267	esac
14268      fi
14269    fi
14270  else
14271    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14272$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14273  fi
14274fi
14275rm -f confcache
14276
14277
14278	for ac_func in snprintf vsnprintf
14279do :
14280  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14281ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14282if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14283  cat >>confdefs.h <<_ACEOF
14284#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14285_ACEOF
14286
14287fi
14288done
14289
14290
14291	for ac_header in stdarg.h varargs.h
14292do :
14293  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14294ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14295if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14296  cat >>confdefs.h <<_ACEOF
14297#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14298_ACEOF
14299
14300fi
14301
14302done
14303
14304
14305	for ac_func in strerror
14306do :
14307  ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
14308if test "x$ac_cv_func_strerror" = xyes; then :
14309  cat >>confdefs.h <<_ACEOF
14310#define HAVE_STRERROR 1
14311_ACEOF
14312
14313fi
14314done
14315
14316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
14317$as_echo_n "checking for errno... " >&6; }
14318if ${ac_cv_errno+:} false; then :
14319  $as_echo_n "(cached) " >&6
14320else
14321
14322	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323/* end confdefs.h.  */
14324
14325int
14326main ()
14327{
14328extern int errno; return (errno);
14329  ;
14330  return 0;
14331}
14332_ACEOF
14333if ac_fn_c_try_link "$LINENO"; then :
14334  ac_cv_errno=yes
14335else
14336  ac_cv_errno=no
14337fi
14338rm -f core conftest.err conftest.$ac_objext \
14339    conftest$ac_exeext conftest.$ac_ext
14340
14341fi
14342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_errno" >&5
14343$as_echo "$ac_cv_errno" >&6; }
14344	if test "$ac_cv_errno" = yes; then
14345
14346$as_echo "#define HAVE_ERRNO 1" >>confdefs.h
14347
14348		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno declaration" >&5
14349$as_echo_n "checking for errno declaration... " >&6; }
14350if ${ac_cv_decl_errno+:} false; then :
14351  $as_echo_n "(cached) " >&6
14352else
14353
14354		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355/* end confdefs.h.  */
14356
14357		#include <stdio.h>
14358		#ifdef HAVE_STDLIB_H
14359		#include <stdlib.h>
14360		#endif
14361		#ifdef HAVE_UNISTD_H
14362		#include <unistd.h>
14363		#endif
14364		#ifdef HAVE_ERRNO_H
14365		#include <errno.h>
14366		#endif
14367
14368int
14369main ()
14370{
14371return(sys_nerr);
14372  ;
14373  return 0;
14374}
14375_ACEOF
14376if ac_fn_c_try_compile "$LINENO"; then :
14377  ac_cv_decl_errno=yes
14378else
14379  ac_cv_decl_errno=no
14380fi
14381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14382
14383fi
14384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_errno" >&5
14385$as_echo "$ac_cv_decl_errno" >&6; }
14386		if test "$ac_cv_decl_errno" = yes; then
14387
14388$as_echo "#define HAVE_DECL_ERRNO 1" >>confdefs.h
14389
14390		fi;
14391	fi
14392
14393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_nerr" >&5
14394$as_echo_n "checking for sys_nerr... " >&6; }
14395if ${ac_cv_sys_nerr+:} false; then :
14396  $as_echo_n "(cached) " >&6
14397else
14398
14399	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400/* end confdefs.h.  */
14401
14402int
14403main ()
14404{
14405extern int sys_nerr; return (sys_nerr);
14406  ;
14407  return 0;
14408}
14409_ACEOF
14410if ac_fn_c_try_link "$LINENO"; then :
14411  ac_cv_sys_nerr=yes
14412else
14413  ac_cv_sys_nerr=no
14414fi
14415rm -f core conftest.err conftest.$ac_objext \
14416    conftest$ac_exeext conftest.$ac_ext
14417
14418fi
14419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_nerr" >&5
14420$as_echo "$ac_cv_sys_nerr" >&6; }
14421	if test "$ac_cv_sys_nerr" = yes; then
14422
14423$as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
14424
14425		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_nerr declaration" >&5
14426$as_echo_n "checking for sys_nerr declaration... " >&6; }
14427if ${ac_cv_decl_sys_nerr+:} false; then :
14428  $as_echo_n "(cached) " >&6
14429else
14430
14431		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432/* end confdefs.h.  */
14433
14434		#include <stdio.h>
14435		#ifdef HAVE_STDLIB_H
14436		#include <stdlib.h>
14437		#endif
14438		#ifdef HAVE_UNISTD_H
14439		#include <unistd.h>
14440		#endif
14441int
14442main ()
14443{
14444return(sys_nerr);
14445  ;
14446  return 0;
14447}
14448_ACEOF
14449if ac_fn_c_try_compile "$LINENO"; then :
14450  ac_cv_decl_sys_nerr_def=yes
14451else
14452  ac_cv_decl_sys_nerr_def=no
14453fi
14454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14455
14456fi
14457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_sys_nerr" >&5
14458$as_echo "$ac_cv_decl_sys_nerr" >&6; }
14459		if test "$ac_cv_decl_sys_nerr" = yes; then
14460
14461$as_echo "#define HAVE_DECL_SYS_NERR 1" >>confdefs.h
14462
14463		fi
14464	fi
14465
14466
14467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist array" >&5
14468$as_echo_n "checking for sys_errlist array... " >&6; }
14469if ${ac_cv_sys_errlist+:} false; then :
14470  $as_echo_n "(cached) " >&6
14471else
14472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473/* end confdefs.h.  */
14474
14475int
14476main ()
14477{
14478extern char *sys_errlist[];
14479		sys_errlist[0];
14480  ;
14481  return 0;
14482}
14483_ACEOF
14484if ac_fn_c_try_link "$LINENO"; then :
14485  ac_cv_sys_errlist=yes
14486else
14487  ac_cv_sys_errlist=no
14488fi
14489rm -f core conftest.err conftest.$ac_objext \
14490    conftest$ac_exeext conftest.$ac_ext
14491
14492fi
14493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_errlist" >&5
14494$as_echo "$ac_cv_sys_errlist" >&6; }
14495	if test "$ac_cv_sys_errlist" = yes; then
14496
14497$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14498
14499		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist declaration" >&5
14500$as_echo_n "checking for sys_errlist declaration... " >&6; }
14501if ${ac_cv_sys_errlist_def+:} false; then :
14502  $as_echo_n "(cached) " >&6
14503else
14504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505/* end confdefs.h.  */
14506
14507		#include <stdio.h>
14508		#include <errno.h>
14509		#ifdef HAVE_STDLIB_H
14510		#include <stdlib.h>
14511		#endif
14512		#ifdef HAVE_UNISTD_H
14513		#include <unistd.h>
14514		#endif
14515int
14516main ()
14517{
14518char *s = sys_errlist[0]; return(*s);
14519  ;
14520  return 0;
14521}
14522_ACEOF
14523if ac_fn_c_try_compile "$LINENO"; then :
14524  ac_cv_decl_sys_errlist=yes
14525else
14526  ac_cv_decl_sys_errlist=no
14527fi
14528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14529
14530fi
14531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_errlist_def" >&5
14532$as_echo "$ac_cv_sys_errlist_def" >&6; }
14533		if test "$ac_cv_decl_sys_errlist" = yes; then
14534
14535$as_echo "#define HAVE_DECL_SYS_ERRLIST 1" >>confdefs.h
14536
14537		fi
14538	fi
14539
14540
14541
14542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
14543$as_echo_n "checking for long long... " >&6; }
14544if ${ac_cv_long_long+:} false; then :
14545  $as_echo_n "(cached) " >&6
14546else
14547
14548	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549/* end confdefs.h.  */
14550
14551	#include <stdio.h>
14552	#include <sys/types.h>
14553
14554int
14555main ()
14556{
14557printf("%d",sizeof(long long));
14558  ;
14559  return 0;
14560}
14561_ACEOF
14562if ac_fn_c_try_compile "$LINENO"; then :
14563  ac_cv_long_long=yes
14564else
14565  ac_cv_long_long=no
14566fi
14567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568
14569fi
14570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_long_long" >&5
14571$as_echo "$ac_cv_long_long" >&6; }
14572	if test $ac_cv_long_long = yes; then
14573
14574$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
14575
14576	fi
14577
14578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
14579$as_echo_n "checking for long double... " >&6; }
14580if ${ac_cv_long_double+:} false; then :
14581  $as_echo_n "(cached) " >&6
14582else
14583
14584	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585/* end confdefs.h.  */
14586
14587	#include <stdio.h>
14588	#include <sys/types.h>
14589
14590int
14591main ()
14592{
14593printf("%d",sizeof(long double));
14594  ;
14595  return 0;
14596}
14597_ACEOF
14598if ac_fn_c_try_compile "$LINENO"; then :
14599  ac_cv_long_double=yes
14600else
14601  ac_cv_long_double=no
14602fi
14603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14604
14605fi
14606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_long_double" >&5
14607$as_echo "$ac_cv_long_double" >&6; }
14608	if test $ac_cv_long_double = yes; then
14609
14610$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14611
14612	fi
14613
14614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for quad_t" >&5
14615$as_echo_n "checking for quad_t... " >&6; }
14616if ${ac_cv_quad_t+:} false; then :
14617  $as_echo_n "(cached) " >&6
14618else
14619
14620	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621/* end confdefs.h.  */
14622
14623	#include <stdio.h>
14624	#include <sys/types.h>
14625
14626int
14627main ()
14628{
14629printf("%d",sizeof(quad_t));
14630  ;
14631  return 0;
14632}
14633_ACEOF
14634if ac_fn_c_try_compile "$LINENO"; then :
14635  ac_cv_quad_t=yes
14636else
14637  ac_cv_quad_t=no
14638fi
14639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14640
14641fi
14642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_quad_t" >&5
14643$as_echo "$ac_cv_quad_t" >&6; }
14644	if test $ac_cv_quad_t = yes; then
14645
14646$as_echo "#define HAVE_QUAD_T 1" >>confdefs.h
14647
14648	fi
14649
14650
14651
14652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for 64bit libraries" >&5
14653$as_echo_n "checking whether to check for 64bit libraries... " >&6; }
14654# Test if the compiler is in 64bit mode
14655echo 'int i;' > conftest.$ac_ext
14656atalk_cv_cc_64bit_output=no
14657if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14658  (eval $ac_compile) 2>&5
14659  ac_status=$?
14660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14661  test $ac_status = 0; }; then
14662    case `/usr/bin/file conftest.$ac_objext` in
14663    *"ELF 64"*)
14664      atalk_cv_cc_64bit_output=yes
14665      ;;
14666    esac
14667fi
14668rm -rf conftest*
14669
14670case $host_cpu:$atalk_cv_cc_64bit_output in
14671powerpc64:yes | s390x:yes | sparc*:yes | x86_64:yes | i386:yes)
14672    case $target_os in
14673    solaris2*)
14674        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14675$as_echo "yes" >&6; }
14676        atalk_libname="lib/64"
14677        ;;
14678    *bsd* | dragonfly*)
14679        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14680$as_echo "no" >&6; }
14681        atalk_libname="lib"
14682        ;;
14683    *)
14684        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14685$as_echo "yes" >&6; }
14686        atalk_libname="lib64"
14687        ;;
14688    esac
14689    ;;
14690*:*)
14691    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14692$as_echo "no" >&6; }
14693    atalk_libname="lib"
14694    ;;
14695esac
14696
14697
14698
14699netatalk_cv_admin_group=yes
14700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for administrative group support" >&5
14701$as_echo_n "checking for administrative group support... " >&6; }
14702# Check whether --enable-admin-group was given.
14703if test "${enable_admin_group+set}" = set; then :
14704  enableval=$enable_admin_group;
14705        if test x"$enableval" = x"no"; then
14706
14707$as_echo "#define ADMIN_GRP 0" >>confdefs.h
14708
14709		netatalk_cv_admin_group=no
14710		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14711$as_echo "no" >&6; }
14712	else
14713
14714$as_echo "#define ADMIN_GRP 1" >>confdefs.h
14715
14716		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14717$as_echo "yes" >&6; }
14718        fi
14719else
14720
14721
14722$as_echo "#define ADMIN_GRP 1" >>confdefs.h
14723
14724		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14725$as_echo "yes" >&6; }
14726
14727
14728fi
14729
14730
14731
14732	AFS_LIBS=
14733	AFS_CFLAGS=
14734
14735	netatalk_cv_afs=no
14736	# Check whether --enable-afs was given.
14737if test "${enable_afs+set}" = set; then :
14738  enableval=$enable_afs;
14739			if test "x$enableval" = "xyes"; then
14740				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in -lafsauthent" >&5
14741$as_echo_n "checking for pioctl in -lafsauthent... " >&6; }
14742if ${ac_cv_lib_afsauthent_pioctl+:} false; then :
14743  $as_echo_n "(cached) " >&6
14744else
14745  ac_check_lib_save_LIBS=$LIBS
14746LIBS="-lafsauthent  $LIBS"
14747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14748/* end confdefs.h.  */
14749
14750/* Override any GCC internal prototype to avoid an error.
14751   Use char because int might match the return type of a GCC
14752   builtin and then its argument prototype would still apply.  */
14753#ifdef __cplusplus
14754extern "C"
14755#endif
14756char pioctl ();
14757int
14758main ()
14759{
14760return pioctl ();
14761  ;
14762  return 0;
14763}
14764_ACEOF
14765if ac_fn_c_try_link "$LINENO"; then :
14766  ac_cv_lib_afsauthent_pioctl=yes
14767else
14768  ac_cv_lib_afsauthent_pioctl=no
14769fi
14770rm -f core conftest.err conftest.$ac_objext \
14771    conftest$ac_exeext conftest.$ac_ext
14772LIBS=$ac_check_lib_save_LIBS
14773fi
14774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_afsauthent_pioctl" >&5
14775$as_echo "$ac_cv_lib_afsauthent_pioctl" >&6; }
14776if test "x$ac_cv_lib_afsauthent_pioctl" = xyes; then :
14777  netatalk_cv_afs=yes
14778else
14779  as_fn_error $? "AFS installation not found" "$LINENO" 5
14780
14781fi
14782
14783				AFS_LIBS=-lresolv -lafsrpc -lafsauthent
14784
14785$as_echo "#define AFS 1" >>confdefs.h
14786
14787			fi
14788
14789
14790fi
14791
14792
14793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable AFS support" >&5
14794$as_echo_n "checking whether to enable AFS support... " >&6; }
14795	if test x"$netatalk_cv_afs" = x"yes"; then
14796		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14797$as_echo "yes" >&6; }
14798	else
14799		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14800$as_echo "no" >&6; }
14801	fi
14802
14803
14804
14805
14806
14807
14808	PKGCONFDIR="${sysconfdir}/netatalk"
14809
14810
14811# Check whether --with-pkgconfdir was given.
14812if test "${with_pkgconfdir+set}" = set; then :
14813  withval=$with_pkgconfdir;
14814			if test "x$withval" != "x"; then
14815				PKGCONFDIR="$withval"
14816			fi
14817
14818
14819fi
14820
14821
14822
14823	SERVERTEXT="${PKGCONFDIR}/msg"
14824
14825
14826# Check whether --with-message-dir was given.
14827if test "${with_message_dir+set}" = set; then :
14828  withval=$with_message_dir;
14829			if test x"$withval" = x"no";  then
14830				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** message-dir is mandatory and cannot be disabled, using default ***" >&5
14831$as_echo "$as_me: WARNING: *** message-dir is mandatory and cannot be disabled, using default ***" >&2;}
14832			elif test "x$withval" != "x" && test x"$withval" != x"yes"; then
14833				SERVERTEXT="$withval"
14834			fi
14835
14836
14837fi
14838
14839
14840
14841
14842
14843
14844netatalk_cv_with_cracklib=no
14845
14846# Check whether --with-cracklib was given.
14847if test "${with_cracklib+set}" = set; then :
14848  withval=$with_cracklib;
14849	if test "x$withval" != "xno" ; then
14850		cracklib="$withval"
14851		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrack" >&5
14852$as_echo_n "checking for main in -lcrack... " >&6; }
14853if ${ac_cv_lib_crack_main+:} false; then :
14854  $as_echo_n "(cached) " >&6
14855else
14856  ac_check_lib_save_LIBS=$LIBS
14857LIBS="-lcrack  $LIBS"
14858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859/* end confdefs.h.  */
14860
14861
14862int
14863main ()
14864{
14865return main ();
14866  ;
14867  return 0;
14868}
14869_ACEOF
14870if ac_fn_c_try_link "$LINENO"; then :
14871  ac_cv_lib_crack_main=yes
14872else
14873  ac_cv_lib_crack_main=no
14874fi
14875rm -f core conftest.err conftest.$ac_objext \
14876    conftest$ac_exeext conftest.$ac_ext
14877LIBS=$ac_check_lib_save_LIBS
14878fi
14879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crack_main" >&5
14880$as_echo "$ac_cv_lib_crack_main" >&6; }
14881if test "x$ac_cv_lib_crack_main" = xyes; then :
14882
14883
14884$as_echo "#define USE_CRACKLIB 1" >>confdefs.h
14885
14886			LIBS="$LIBS -lcrack"
14887			if test "$cracklib" = "yes"; then
14888				cracklib="/usr/$atalk_libname/cracklib_dict"
14889			fi
14890
14891cat >>confdefs.h <<_ACEOF
14892#define _PATH_CRACKLIB "$cracklib"
14893_ACEOF
14894
14895			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: setting cracklib dictionary to $cracklib" >&5
14896$as_echo "setting cracklib dictionary to $cracklib" >&6; }
14897			netatalk_cv_with_cracklib=yes
14898
14899else
14900
14901			as_fn_error $? "cracklib not found!" "$LINENO" 5
14902
14903
14904fi
14905
14906	fi
14907
14908
14909fi
14910
14911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cracklib support" >&5
14912$as_echo_n "checking for cracklib support... " >&6; }
14913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_with_cracklib" >&5
14914$as_echo "$netatalk_cv_with_cracklib" >&6; }
14915
14916netatalk_cv_ddp_enabled=no
14917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DDP" >&5
14918$as_echo_n "checking whether to enable DDP... " >&6; }
14919# Check whether --enable-ddp was given.
14920if test "${enable_ddp+set}" = set; then :
14921  enableval=$enable_ddp;
14922	if test "$enableval" = "yes"; then
14923		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14924$as_echo "yes" >&6; }
14925		netatalk_cv_ddp_enabled=yes
14926	else
14927		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14928$as_echo "yes" >&6; }
14929
14930$as_echo "#define NO_DDP 1" >>confdefs.h
14931
14932	fi
14933
14934else
14935
14936		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14937$as_echo "no" >&6; }
14938
14939$as_echo "#define NO_DDP 1" >>confdefs.h
14940
14941
14942
14943fi
14944
14945
14946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug code" >&5
14947$as_echo_n "checking whether to enable debug code... " >&6; }
14948# Check whether --enable-debug1 was given.
14949if test "${enable_debug1+set}" = set; then :
14950  enableval=$enable_debug1;
14951	if test "$enableval" != "no"; then
14952		if test "$enableval" = "yes"; then
14953
14954$as_echo "#define DEBUG1 1" >>confdefs.h
14955
14956		else
14957
14958cat >>confdefs.h <<_ACEOF
14959#define DEBUG1 $enableval
14960_ACEOF
14961
14962		fi
14963		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14964$as_echo "yes" >&6; }
14965	else
14966		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14967$as_echo "no" >&6; }
14968	fi
14969
14970else
14971
14972		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14973$as_echo "no" >&6; }
14974
14975
14976fi
14977
14978
14979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose debug code" >&5
14980$as_echo_n "checking whether to enable verbose debug code... " >&6; }
14981# Check whether --enable-debug was given.
14982if test "${enable_debug+set}" = set; then :
14983  enableval=$enable_debug;
14984	if test "$enableval" != "no"; then
14985		if test "$enableval" = "yes"; then
14986
14987$as_echo "#define DEBUG 1" >>confdefs.h
14988
14989		else
14990
14991cat >>confdefs.h <<_ACEOF
14992#define DEBUG $enableval
14993_ACEOF
14994
14995		fi
14996		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14997$as_echo "yes" >&6; }
14998	else
14999		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15000$as_echo "no" >&6; }
15001
15002$as_echo "#define NDEBUG 1" >>confdefs.h
15003
15004	fi
15005
15006else
15007
15008		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15009$as_echo "no" >&6; }
15010
15011$as_echo "#define NDEBUG 1" >>confdefs.h
15012
15013
15014
15015fi
15016
15017
15018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging with debuggers" >&5
15019$as_echo_n "checking whether to enable debugging with debuggers... " >&6; }
15020# Check whether --enable-debugging was given.
15021if test "${enable_debugging+set}" = set; then :
15022  enableval=$enable_debugging;
15023	if test "$enableval" != "no"; then
15024		if test "$enableval" = "yes"; then
15025
15026$as_echo "#define DEBUGGING 1" >>confdefs.h
15027
15028		else
15029
15030cat >>confdefs.h <<_ACEOF
15031#define DEBUGGING $enableval
15032_ACEOF
15033
15034		fi
15035		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15036$as_echo "yes" >&6; }
15037	else
15038		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15039$as_echo "no" >&6; }
15040	fi
15041
15042else
15043
15044		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15045$as_echo "no" >&6; }
15046
15047
15048fi
15049
15050
15051# Check whether --enable-largefile was given.
15052if test "${enable_largefile+set}" = set; then :
15053  enableval=$enable_largefile;
15054fi
15055
15056if test "$enable_largefile" != no; then
15057            wx_largefile=no
15058
15059    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15060$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15061if ${ac_cv_sys_file_offset_bits+:} false; then :
15062  $as_echo_n "(cached) " >&6
15063else
15064
15065          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066/* end confdefs.h.  */
15067#define _FILE_OFFSET_BITS 64
15068                          #include <sys/types.h>
15069int
15070main ()
15071{
15072typedef struct {
15073    unsigned int field: sizeof(off_t) == 8;
15074} wxlf;
15075
15076  ;
15077  return 0;
15078}
15079_ACEOF
15080if ac_fn_c_try_compile "$LINENO"; then :
15081  ac_cv_sys_file_offset_bits=64
15082else
15083  ac_cv_sys_file_offset_bits=no
15084fi
15085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15086
15087
15088fi
15089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15090$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15091
15092    if test "$ac_cv_sys_file_offset_bits" != no; then
15093        wx_largefile=yes
15094
15095cat >>confdefs.h <<_ACEOF
15096#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15097_ACEOF
15098
15099    fi
15100
15101    if test "x$wx_largefile" != "xyes"; then
15102
15103    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15104$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15105if ${ac_cv_sys_large_files+:} false; then :
15106  $as_echo_n "(cached) " >&6
15107else
15108
15109          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110/* end confdefs.h.  */
15111#define _LARGE_FILES 1
15112                          #include <sys/types.h>
15113int
15114main ()
15115{
15116typedef struct {
15117    unsigned int field: sizeof(off_t) == 8;
15118} wxlf;
15119
15120  ;
15121  return 0;
15122}
15123_ACEOF
15124if ac_fn_c_try_compile "$LINENO"; then :
15125  ac_cv_sys_large_files=1
15126else
15127  ac_cv_sys_large_files=no
15128fi
15129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130
15131
15132fi
15133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15134$as_echo "$ac_cv_sys_large_files" >&6; }
15135
15136    if test "$ac_cv_sys_large_files" != no; then
15137        wx_largefile=yes
15138
15139cat >>confdefs.h <<_ACEOF
15140#define _LARGE_FILES $ac_cv_sys_large_files
15141_ACEOF
15142
15143    fi
15144
15145    fi
15146
15147
15148    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit off_t" >&5
15149$as_echo_n "checking for 64 bit off_t... " >&6; }
15150if ${netatalk_cv_SIZEOF_OFF_T+:} false; then :
15151  $as_echo_n "(cached) " >&6
15152else
15153
15154    if test "$cross_compiling" = yes; then :
15155  netatalk_cv_SIZEOF_OFF_T=cross
15156else
15157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158/* end confdefs.h.  */
15159#include <stdio.h>
15160#include <stdlib.h>
15161#include <sys/stat.h>
15162main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
15163_ACEOF
15164if ac_fn_c_try_run "$LINENO"; then :
15165  netatalk_cv_SIZEOF_OFF_T=yes
15166else
15167  netatalk_cv_SIZEOF_OFF_T=no
15168fi
15169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15170  conftest.$ac_objext conftest.beam conftest.$ac_ext
15171fi
15172
15173fi
15174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_SIZEOF_OFF_T" >&5
15175$as_echo "$netatalk_cv_SIZEOF_OFF_T" >&6; }
15176
15177    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if large file support is available" >&5
15178$as_echo_n "checking if large file support is available... " >&6; }
15179    if test "x$netatalk_cv_SIZEOF_OFF_T" != "xno"; then
15180
15181$as_echo "#define HAVE_LARGEFILE_SUPPORT /**/" >>confdefs.h
15182
15183	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15184$as_echo "yes" >&6; }
15185        :
15186    else
15187        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15188$as_echo "no" >&6; }
15189        as_fn_error $? "AFP 3.x support requires Large File Support." "$LINENO" 5
15190    fi
15191fi
15192
15193
15194
15195	saved_CPPFLAGS="$CPPFLAGS"
15196        savedcflags="$CFLAGS"
15197        savedldflags="$LDFLAGS"
15198	ICONV_CFLAGS=""
15199	ICONV_LIBS=""
15200
15201
15202# Check whether --with-libiconv was given.
15203if test "${with_libiconv+set}" = set; then :
15204  withval=$with_libiconv;  case "$withval" in
15205	  no)
15206	    ;;
15207	  yes)
15208	    ;;
15209	  *)
15210	    ICONV_CFLAGS="-I$withval/include"
15211	    ICONV_LIBS="-L$withval/$atalk_libname"
15212	    ;;
15213	  esac
15214else
15215  withval="no"
15216
15217fi
15218
15219
15220	CFLAGS="$ICONV_CFLAGS $CFLAGS"
15221        LDFLAGS="$LDFLAGS $ICONV_LIBS -liconv"
15222
15223	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv" >&5
15224$as_echo_n "checking for libiconv... " >&6; }
15225if ${netatalk_cv_iconv+:} false; then :
15226  $as_echo_n "(cached) " >&6
15227else
15228
15229          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230/* end confdefs.h.  */
15231
15232#include <stdlib.h>
15233#include <iconv.h>
15234
15235int
15236main ()
15237{
15238
15239	iconv_t cd = iconv_open("","");
15240        iconv(cd,NULL,NULL,NULL,NULL);
15241        iconv_close(cd);
15242
15243  ;
15244  return 0;
15245}
15246_ACEOF
15247if ac_fn_c_try_link "$LINENO"; then :
15248  netatalk_cv_iconv=yes
15249else
15250  netatalk_cv_iconv=no
15251fi
15252rm -f core conftest.err conftest.$ac_objext \
15253    conftest$ac_exeext conftest.$ac_ext
15254fi
15255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_iconv" >&5
15256$as_echo "$netatalk_cv_iconv" >&6; }
15257
15258	if test x"$netatalk_cv_iconv" = x"yes"; then
15259	    ICONV_LIBS="$ICONV_LIBS -liconv"
15260        else
15261	    CFLAGS="$savedcflags"
15262	    LDFLAGS="$savedldflags"
15263	    ICONV_LIBS=""
15264	    ICONV_CFLAGS=""
15265	    if test x"$withval" != x"no"; then
15266	        as_fn_error $? "libiconv not found" "$LINENO" 5
15267	    fi
15268	fi
15269
15270
15271
15272  ac_new_flags=""
15273  for i in $ICONV_CFLAGS; do
15274    case $i in
15275    -I/usr/include|-I/usr/include/) ;;
15276    *) ac_new_flags="$ac_new_flags $i" ;;
15277    esac
15278  done
15279  ICONV_CFLAGS=$ac_new_flags
15280
15281
15282  ac_new_flags=""
15283  for i in $ICONV_LIBS; do
15284    case $i in
15285    -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
15286    *) ac_new_flags="$ac_new_flags $i" ;;
15287    esac
15288  done
15289  ICONV_LIBS=$ac_new_flags
15290
15291
15292
15293
15294
15295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15296$as_echo_n "checking for working iconv... " >&6; }
15297if ${netatalk_cv_HAVE_USABLE_ICONV+:} false; then :
15298  $as_echo_n "(cached) " >&6
15299else
15300
15301		if test "$cross_compiling" = yes; then :
15302  netatalk_cv_HAVE_USABLE_ICONV=cross
15303else
15304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15305/* end confdefs.h.  */
15306\
15307#include <iconv.h>
15308main() {
15309       iconv_t cd = iconv_open("ASCII", "UTF-8");
15310       if (cd == 0 || cd == (iconv_t)-1) return -1;
15311       return 0;
15312}
15313
15314_ACEOF
15315if ac_fn_c_try_run "$LINENO"; then :
15316  netatalk_cv_HAVE_USABLE_ICONV=yes
15317else
15318  netatalk_cv_HAVE_USABLE_ICONV=no
15319fi
15320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15321  conftest.$ac_objext conftest.beam conftest.$ac_ext
15322fi
15323
15324fi
15325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_HAVE_USABLE_ICONV" >&5
15326$as_echo "$netatalk_cv_HAVE_USABLE_ICONV" >&6; }
15327
15328	if test x"$netatalk_cv_HAVE_USABLE_ICONV" = x"yes"; then
15329
15330$as_echo "#define HAVE_USABLE_ICONV 1" >>confdefs.h
15331
15332	fi
15333
15334  	if test x"$netatalk_cv_HAVE_USABLE_ICONV" = x"yes"; then
15335    		if ${am_cv_proto_iconv+:} false; then :
15336  $as_echo_n "(cached) " >&6
15337else
15338
15339      		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340/* end confdefs.h.  */
15341\
15342#include <stdlib.h>
15343#include <iconv.h>
15344extern
15345#ifdef __cplusplus
15346"C"
15347#endif
15348#if defined(__STDC__) || defined(__cplusplus)
15349size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15350#else
15351size_t iconv();
15352#endif
15353
15354int
15355main ()
15356{
15357
15358  ;
15359  return 0;
15360}
15361_ACEOF
15362if ac_fn_c_try_compile "$LINENO"; then :
15363  am_cv_proto_iconv_arg1=""
15364else
15365  am_cv_proto_iconv_arg1="const"
15366fi
15367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15368	      	am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
15369fi
15370
15371
15372cat >>confdefs.h <<_ACEOF
15373#define ICONV_CONST $am_cv_proto_iconv_arg1
15374_ACEOF
15375
15376  	fi
15377
15378	if test x"$netatalk_cv_HAVE_USABLE_ICONV" = x"yes"; then
15379	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv supports UCS-2-INTERNAL" >&5
15380$as_echo_n "checking whether iconv supports UCS-2-INTERNAL... " >&6; }
15381if ${netatalk_cv_HAVE_UCS2INTERNAL+:} false; then :
15382  $as_echo_n "(cached) " >&6
15383else
15384
15385		if test "$cross_compiling" = yes; then :
15386  netatalk_cv_HAVEUCS2INTERNAL=cross
15387else
15388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15389/* end confdefs.h.  */
15390\
15391#include <iconv.h>
15392int main() {
15393       iconv_t cd = iconv_open("ASCII", "UCS-2-INTERNAL");
15394       if (cd == 0 || cd == (iconv_t)-1) return -1;
15395       return 0;
15396}
15397
15398_ACEOF
15399if ac_fn_c_try_run "$LINENO"; then :
15400  netatalk_cv_HAVE_UCS2INTERNAL=yes
15401else
15402  netatalk_cv_HAVE_UCS2INTERNAL=no
15403fi
15404rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15405  conftest.$ac_objext conftest.beam conftest.$ac_ext
15406fi
15407
15408fi
15409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_HAVE_UCS2INTERNAL" >&5
15410$as_echo "$netatalk_cv_HAVE_UCS2INTERNAL" >&6; }
15411
15412	if test x"$netatalk_cv_HAVE_UCS2INTERNAL" = x"yes"; then
15413
15414$as_echo "#define HAVE_UCS2INTERNAL 1" >>confdefs.h
15415
15416	fi
15417	fi
15418
15419        CFLAGS="$savedcflags"
15420        LDFLAGS="$savedldflags"
15421	CPPFLAGS="$saved_CPPFLAGS"
15422
15423
15424
15425
15426netatalk_cv_dropkludge=no
15427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable experimental dropbox support" >&5
15428$as_echo_n "checking whether to enable experimental dropbox support... " >&6; }
15429# Check whether --enable-dropkludge was given.
15430if test "${enable_dropkludge+set}" = set; then :
15431  enableval=$enable_dropkludge;
15432	if test "$enableval" = "yes"; then
15433
15434$as_echo "#define DROPKLUDGE 1" >>confdefs.h
15435
15436		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15437$as_echo "yes" >&6; }
15438		netatalk_cv_dropkludge=yes
15439	else
15440		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15441$as_echo "no" >&6; }
15442	fi
15443
15444else
15445
15446		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15447$as_echo "no" >&6; }
15448
15449
15450fi
15451
15452
15453netatalk_cv_force_uidgid=no
15454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable forcing of uid/gid per volume" >&5
15455$as_echo_n "checking whether to enable forcing of uid/gid per volume... " >&6; }
15456# Check whether --enable-force-uidgid was given.
15457if test "${enable_force_uidgid+set}" = set; then :
15458  enableval=$enable_force_uidgid;
15459	if test "$enableval" = "yes"; then
15460
15461$as_echo "#define FORCE_UIDGID 1" >>confdefs.h
15462
15463		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling forcing of uid/gid per volume" >&5
15464$as_echo "enabling forcing of uid/gid per volume" >&6; }
15465		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15466$as_echo "yes" >&6; }
15467		netatalk_cv_force_uidgid=yes
15468	else
15469		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15470$as_echo "no" >&6; }
15471	fi
15472
15473else
15474
15475		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15476$as_echo "no" >&6; }
15477
15478
15479fi
15480
15481
15482bdb_required=no
15483
15484        bdb_required=no
15485    compiled_backends=""
15486
15487        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to use Database Daemon CNID backend" >&5
15488$as_echo_n "checking whether or not to use Database Daemon CNID backend... " >&6; }
15489
15490# Check whether --with-cnid-dbd-backend was given.
15491if test "${with_cnid_dbd_backend+set}" = set; then :
15492  withval=$with_cnid_dbd_backend;    if test x"$withval" = x"no"; then
15493            use_dbd_backend=no
15494            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15495$as_echo "no" >&6; }
15496        else
15497            use_dbd_backend=yes
15498            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15499$as_echo "yes" >&6; }
15500        fi
15501
15502else
15503
15504        use_dbd_backend=yes
15505        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15506$as_echo "yes" >&6; }
15507
15508fi
15509
15510
15511    if test $use_dbd_backend = yes; then
15512        compiled_backends="$compiled_backends dbd"
15513
15514$as_echo "#define CNID_BACKEND_DBD 1" >>confdefs.h
15515
15516        if test x"$DEFAULT_CNID_SCHEME" = x; then
15517            DEFAULT_CNID_SCHEME=dbd
15518        fi
15519        bdb_required=yes
15520    fi
15521     if test x"$use_dbd_backend" = x"yes"; then
15522  BUILD_DBD_DAEMON_TRUE=
15523  BUILD_DBD_DAEMON_FALSE='#'
15524else
15525  BUILD_DBD_DAEMON_TRUE='#'
15526  BUILD_DBD_DAEMON_FALSE=
15527fi
15528
15529
15530        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to use BDB Concurrent Data Store" >&5
15531$as_echo_n "checking whether or not to use BDB Concurrent Data Store... " >&6; }
15532
15533# Check whether --with-cnid-cdb-backend was given.
15534if test "${with_cnid_cdb_backend+set}" = set; then :
15535  withval=$with_cnid_cdb_backend;
15536	    if test x"$withval" = x"no"; then
15537	        use_cdb_backend=no
15538        else
15539            use_cdb_backend=yes
15540        fi
15541
15542else
15543
15544        use_cdb_backend=no
15545
15546fi
15547
15548
15549
15550    if test $use_cdb_backend = yes; then
15551        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15552$as_echo "yes" >&6; }
15553
15554$as_echo "#define CNID_BACKEND_CDB 1" >>confdefs.h
15555
15556        if test x"$DEFAULT_CNID_SCHEME" = x; then
15557            DEFAULT_CNID_SCHEME=cdb
15558        fi
15559        bdb_required=yes
15560        compiled_backends="$compiled_backends cdb"
15561    else
15562        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15563$as_echo "no" >&6; }
15564    fi
15565     if test x"$use_cdb_backend" = x"yes"; then
15566  USE_CDB_BACKEND_TRUE=
15567  USE_CDB_BACKEND_FALSE='#'
15568else
15569  USE_CDB_BACKEND_TRUE='#'
15570  USE_CDB_BACKEND_FALSE=
15571fi
15572
15573
15574        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to use LAST DID scheme" >&5
15575$as_echo_n "checking whether or not to use LAST DID scheme... " >&6; }
15576
15577# Check whether --with-cnid-last-backend was given.
15578if test "${with_cnid_last_backend+set}" = set; then :
15579  withval=$with_cnid_last_backend;
15580        if test x"$withval" = x"no"; then
15581            use_last_backend=no
15582        else
15583            use_last_backend=yes
15584        fi
15585
15586else
15587
15588        use_last_backend=yes
15589
15590fi
15591
15592
15593    if test $use_last_backend = yes; then
15594        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15595$as_echo "yes" >&6; }
15596
15597$as_echo "#define CNID_BACKEND_LAST 1" >>confdefs.h
15598
15599        if test x"$DEFAULT_CNID_SCHEME" = x; then
15600            DEFAULT_CNID_SCHEME=last
15601        fi
15602        compiled_backends="$compiled_backends last"
15603    else
15604        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15605$as_echo "no" >&6; }
15606    fi
15607     if test x"$use_last_backend" = x"yes"; then
15608  USE_LAST_BACKEND_TRUE=
15609  USE_LAST_BACKEND_FALSE='#'
15610else
15611  USE_LAST_BACKEND_TRUE='#'
15612  USE_LAST_BACKEND_FALSE=
15613fi
15614
15615
15616        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to use TDB DID scheme" >&5
15617$as_echo_n "checking whether or not to use TDB DID scheme... " >&6; }
15618
15619# Check whether --with-cnid-tdb-backend was given.
15620if test "${with_cnid_tdb_backend+set}" = set; then :
15621  withval=$with_cnid_tdb_backend;
15622        if test x"$withval" = x"no"; then
15623            use_tdb_backend=no
15624        else
15625            use_tdb_backend=yes
15626        fi
15627
15628else
15629
15630        use_tdb_backend=yes
15631
15632fi
15633
15634
15635    if test $use_tdb_backend = yes; then
15636        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15637$as_echo "yes" >&6; }
15638
15639$as_echo "#define CNID_BACKEND_TDB 1" >>confdefs.h
15640
15641        if test x"$DEFAULT_CNID_SCHEME" = x; then
15642            DEFAULT_CNID_SCHEME=tdb
15643        fi
15644        compiled_backends="$compiled_backends tdb"
15645    else
15646        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15647$as_echo "no" >&6; }
15648    fi
15649     if test x"$use_tdb_backend" = x"yes"; then
15650  USE_TDB_BACKEND_TRUE=
15651  USE_TDB_BACKEND_FALSE='#'
15652else
15653  USE_TDB_BACKEND_TRUE='#'
15654  USE_TDB_BACKEND_FALSE=
15655fi
15656
15657
15658        { $as_echo "$as_me:${as_lineno-$LINENO}: checking default DID scheme" >&5
15659$as_echo_n "checking default DID scheme... " >&6; }
15660
15661# Check whether --with-cnid-default-backend was given.
15662if test "${with_cnid_default_backend+set}" = set; then :
15663  withval=$with_cnid_default_backend;
15664        if test x"$withval" = x; then
15665            { $as_echo "$as_me:${as_lineno-$LINENO}: result: ignored" >&5
15666$as_echo "ignored" >&6; }
15667        else
15668            DEFAULT_CNID_SCHEME=$withval
15669            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_CNID_SCHEME" >&5
15670$as_echo "$DEFAULT_CNID_SCHEME" >&6; }
15671        fi
15672
15673else
15674
15675        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_CNID_SCHEME" >&5
15676$as_echo "$DEFAULT_CNID_SCHEME" >&6; }
15677
15678fi
15679
15680
15681    if test x"$DEFAULT_CNID_SCHEME" = x; then
15682        as_fn_error $? "No DID schemes compiled in " "$LINENO" 5
15683    fi
15684
15685    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether default CNID scheme has been activated" >&5
15686$as_echo_n "checking whether default CNID scheme has been activated... " >&6; }
15687    found_scheme=no
15688    for scheme in $compiled_backends ; do
15689        if test x"$scheme" = x"$DEFAULT_CNID_SCHEME"; then
15690            found_scheme=yes
15691        fi
15692    done
15693    if test x"$found_scheme" = x"no"; then
15694        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15695$as_echo "no" >&6; }
15696        as_fn_error $? "Specified default CNID scheme $DEFAULT_CNID_SCHEME was not selected for compilation" "$LINENO" 5
15697    else
15698        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15699$as_echo "yes" >&6; }
15700    fi
15701
15702
15703cat >>confdefs.h <<_ACEOF
15704#define DEFAULT_CNID_SCHEME "$DEFAULT_CNID_SCHEME"
15705_ACEOF
15706
15707
15708
15709
15710    if test "x$bdb_required" = "xyes"; then
15711	bdb_required=yes
15712    else
15713	bdb_required=no
15714    fi
15715
15716
15717
15718	# Check whether --enable-quota was given.
15719if test "${enable_quota+set}" = set; then :
15720  enableval=$enable_quota;
15721fi
15722
15723
15724	if test x$enable_quota != xno; then
15725	QUOTA_LIBS=""
15726	netatalk_cv_quotasupport="yes"
15727	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrpcsvc" >&5
15728$as_echo_n "checking for main in -lrpcsvc... " >&6; }
15729if ${ac_cv_lib_rpcsvc_main+:} false; then :
15730  $as_echo_n "(cached) " >&6
15731else
15732  ac_check_lib_save_LIBS=$LIBS
15733LIBS="-lrpcsvc  $LIBS"
15734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735/* end confdefs.h.  */
15736
15737
15738int
15739main ()
15740{
15741return main ();
15742  ;
15743  return 0;
15744}
15745_ACEOF
15746if ac_fn_c_try_link "$LINENO"; then :
15747  ac_cv_lib_rpcsvc_main=yes
15748else
15749  ac_cv_lib_rpcsvc_main=no
15750fi
15751rm -f core conftest.err conftest.$ac_objext \
15752    conftest$ac_exeext conftest.$ac_ext
15753LIBS=$ac_check_lib_save_LIBS
15754fi
15755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsvc_main" >&5
15756$as_echo "$ac_cv_lib_rpcsvc_main" >&6; }
15757if test "x$ac_cv_lib_rpcsvc_main" = xyes; then :
15758  QUOTA_LIBS="-lrpcsvc"
15759fi
15760
15761	for ac_header in rpc/rpc.h rpc/pmap_prot.h rpcsvc/rquota.h
15762do :
15763  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15764ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15765if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15766  cat >>confdefs.h <<_ACEOF
15767#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15768_ACEOF
15769
15770else
15771
15772		QUOTA_LIBS=""
15773		netatalk_cv_quotasupport="no"
15774
15775$as_echo "#define NO_QUOTA_SUPPORT 1" >>confdefs.h
15776
15777
15778fi
15779
15780done
15781
15782	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getfsquota in -lquota" >&5
15783$as_echo_n "checking for getfsquota in -lquota... " >&6; }
15784if ${ac_cv_lib_quota_getfsquota+:} false; then :
15785  $as_echo_n "(cached) " >&6
15786else
15787  ac_check_lib_save_LIBS=$LIBS
15788LIBS="-lquota -lprop -lrpcsvc $LIBS"
15789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15790/* end confdefs.h.  */
15791
15792/* Override any GCC internal prototype to avoid an error.
15793   Use char because int might match the return type of a GCC
15794   builtin and then its argument prototype would still apply.  */
15795#ifdef __cplusplus
15796extern "C"
15797#endif
15798char getfsquota ();
15799int
15800main ()
15801{
15802return getfsquota ();
15803  ;
15804  return 0;
15805}
15806_ACEOF
15807if ac_fn_c_try_link "$LINENO"; then :
15808  ac_cv_lib_quota_getfsquota=yes
15809else
15810  ac_cv_lib_quota_getfsquota=no
15811fi
15812rm -f core conftest.err conftest.$ac_objext \
15813    conftest$ac_exeext conftest.$ac_ext
15814LIBS=$ac_check_lib_save_LIBS
15815fi
15816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quota_getfsquota" >&5
15817$as_echo "$ac_cv_lib_quota_getfsquota" >&6; }
15818if test "x$ac_cv_lib_quota_getfsquota" = xyes; then :
15819  QUOTA_LIBS="-lquota -lprop -lrpcsvc"
15820
15821$as_echo "#define HAVE_LIBQUOTA 1" >>confdefs.h
15822
15823fi
15824
15825	else
15826		netatalk_cv_quotasupport="no"
15827
15828$as_echo "#define NO_QUOTA_SUPPORT 1" >>confdefs.h
15829
15830	fi
15831
15832
15833
15834
15835
15836
15837	SLP_LIBS=""
15838	SLP_CFLAGS=""
15839	found_slp=no
15840	srvlocdir=""
15841
15842	# Check whether --enable-srvloc was given.
15843if test "${enable_srvloc+set}" = set; then :
15844  enableval=$enable_srvloc; srvloc=$enableval
15845else
15846  srvloc=no
15847
15848fi
15849
15850
15851        [ -n "$atalk_libname" ] || as_fn_error $? "internal error, atalk_libname undefined" "$LINENO" 5
15852
15853	if test "x$srvloc" != "xno"; then
15854
15855		savedcppflags="$CPPFLAGS"
15856		savedldflags="$LDFLAGS"
15857		if test "x$srvloc" = "xyes" ; then
15858			srvlocdir="/usr"
15859		else
15860			srvlocdir="$srvloc"
15861		fi
15862		CPPFLAGS="$CPPFLAGS -I$srvlocdir/include"
15863		LDFLAGS="$LDFLAGS -L$srvlocdir/$atalk_libname"
15864
15865		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for slp.h" >&5
15866$as_echo_n "checking for slp.h... " >&6; }
15867		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868/* end confdefs.h.  */
15869#include <slp.h>
15870_ACEOF
15871if ac_fn_c_try_cpp "$LINENO"; then :
15872
15873				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15874$as_echo "yes" >&6; }
15875				found_slp=yes
15876
15877else
15878
15879				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15880$as_echo "no" >&6; }
15881
15882
15883fi
15884rm -f conftest.err conftest.i conftest.$ac_ext
15885
15886		if test "x$found_slp" = "xyes"; then
15887			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
15888$as_echo_n "checking for SLPOpen in -lslp... " >&6; }
15889if ${ac_cv_lib_slp_SLPOpen+:} false; then :
15890  $as_echo_n "(cached) " >&6
15891else
15892  ac_check_lib_save_LIBS=$LIBS
15893LIBS="-lslp  $LIBS"
15894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895/* end confdefs.h.  */
15896
15897/* Override any GCC internal prototype to avoid an error.
15898   Use char because int might match the return type of a GCC
15899   builtin and then its argument prototype would still apply.  */
15900#ifdef __cplusplus
15901extern "C"
15902#endif
15903char SLPOpen ();
15904int
15905main ()
15906{
15907return SLPOpen ();
15908  ;
15909  return 0;
15910}
15911_ACEOF
15912if ac_fn_c_try_link "$LINENO"; then :
15913  ac_cv_lib_slp_SLPOpen=yes
15914else
15915  ac_cv_lib_slp_SLPOpen=no
15916fi
15917rm -f core conftest.err conftest.$ac_objext \
15918    conftest$ac_exeext conftest.$ac_ext
15919LIBS=$ac_check_lib_save_LIBS
15920fi
15921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
15922$as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
15923if test "x$ac_cv_lib_slp_SLPOpen" = xyes; then :
15924
15925		    	   SLP_LIBS="-L$srvlocdir/$atalk_libname -lslp"
15926		    	   SLP_CFLAGS="-I$srvlocdir/include"
15927
15928else
15929
15930		    	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15931$as_echo "no" >&6; }
15932			   found_slp=no
15933
15934fi
15935
15936		fi
15937
15938		CPPFLAGS="$savedcppflags"
15939		LDFLAGS="$savedldflags"
15940	fi
15941
15942	netatalk_cv_srvloc=no
15943	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable srvloc (SLP) support" >&5
15944$as_echo_n "checking whether to enable srvloc (SLP) support... " >&6; }
15945	if test "x$found_slp" = "xyes"; then
15946		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15947$as_echo "yes" >&6; }
15948
15949$as_echo "#define USE_SRVLOC 1" >>confdefs.h
15950
15951		netatalk_cv_srvloc=yes
15952	else
15953		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15954$as_echo "no" >&6; }
15955		if test "x$srvloc" != "xno" -a "x$srvloc" != "xyes"; then
15956			as_fn_error $? "SLP installation not found" "$LINENO" 5
15957		fi
15958	fi
15959
15960
15961
15962
15963  ac_new_flags=""
15964  for i in $SLP_LIBS; do
15965    case $i in
15966    -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
15967    *) ac_new_flags="$ac_new_flags $i" ;;
15968    esac
15969  done
15970  SLP_LIBS=$ac_new_flags
15971
15972
15973  ac_new_flags=""
15974  for i in $SLP_CFLAGS; do
15975    case $i in
15976    -I/usr/include|-I/usr/include/) ;;
15977    *) ac_new_flags="$ac_new_flags $i" ;;
15978    esac
15979  done
15980  SLP_CFLAGS=$ac_new_flags
15981
15982
15983
15984
15985
15986
15987
15988if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15989	if test -n "$ac_tool_prefix"; then
15990  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15991set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15993$as_echo_n "checking for $ac_word... " >&6; }
15994if ${ac_cv_path_PKG_CONFIG+:} false; then :
15995  $as_echo_n "(cached) " >&6
15996else
15997  case $PKG_CONFIG in
15998  [\\/]* | ?:[\\/]*)
15999  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16000  ;;
16001  *)
16002  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16003for as_dir in $PATH
16004do
16005  IFS=$as_save_IFS
16006  test -z "$as_dir" && as_dir=.
16007    for ac_exec_ext in '' $ac_executable_extensions; do
16008  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16009    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16011    break 2
16012  fi
16013done
16014  done
16015IFS=$as_save_IFS
16016
16017  ;;
16018esac
16019fi
16020PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16021if test -n "$PKG_CONFIG"; then
16022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16023$as_echo "$PKG_CONFIG" >&6; }
16024else
16025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16026$as_echo "no" >&6; }
16027fi
16028
16029
16030fi
16031if test -z "$ac_cv_path_PKG_CONFIG"; then
16032  ac_pt_PKG_CONFIG=$PKG_CONFIG
16033  # Extract the first word of "pkg-config", so it can be a program name with args.
16034set dummy pkg-config; ac_word=$2
16035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16036$as_echo_n "checking for $ac_word... " >&6; }
16037if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16038  $as_echo_n "(cached) " >&6
16039else
16040  case $ac_pt_PKG_CONFIG in
16041  [\\/]* | ?:[\\/]*)
16042  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16043  ;;
16044  *)
16045  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16046for as_dir in $PATH
16047do
16048  IFS=$as_save_IFS
16049  test -z "$as_dir" && as_dir=.
16050    for ac_exec_ext in '' $ac_executable_extensions; do
16051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16052    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16054    break 2
16055  fi
16056done
16057  done
16058IFS=$as_save_IFS
16059
16060  ;;
16061esac
16062fi
16063ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16064if test -n "$ac_pt_PKG_CONFIG"; then
16065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16066$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16067else
16068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16069$as_echo "no" >&6; }
16070fi
16071
16072  if test "x$ac_pt_PKG_CONFIG" = x; then
16073    PKG_CONFIG=""
16074  else
16075    case $cross_compiling:$ac_tool_warned in
16076yes:)
16077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16079ac_tool_warned=yes ;;
16080esac
16081    PKG_CONFIG=$ac_pt_PKG_CONFIG
16082  fi
16083else
16084  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16085fi
16086
16087fi
16088if test -n "$PKG_CONFIG"; then
16089	_pkg_min_version=0.9.0
16090	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16091$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16092	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16093		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16094$as_echo "yes" >&6; }
16095	else
16096		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16097$as_echo "no" >&6; }
16098		PKG_CONFIG=""
16099	fi
16100
16101fi
16102
16103	ZEROCONF_LIBS=""
16104	ZEROCONF_CFLAGS=""
16105	found_zeroconf=no
16106	zeroconf_dir=""
16107
16108	# Check whether --enable-zeroconf was given.
16109if test "${enable_zeroconf+set}" = set; then :
16110  enableval=$enable_zeroconf; zeroconf=$enableval
16111else
16112  zeroconf=try
16113
16114fi
16115
16116
16117        [ -n "$atalk_libname" ] || as_fn_error $? "internal error, atalk_libname undefined" "$LINENO" 5
16118
16119	if test "x$zeroconf" != "xno"; then
16120		savedcppflags="$CPPFLAGS"
16121		savedldflags="$LDFLAGS"
16122
16123		if test "x$zeroconf" = "xyes" -o "x$zeroconf" = "xtry"; then
16124			zeroconf_dir="/usr"
16125		else
16126			zeroconf_dir="$zeroconf"
16127		fi
16128
16129        # mDNS support using mDNSResponder
16130        ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
16131if test "x$ac_cv_header_dns_sd_h" = xyes; then :
16132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNSServiceRegister in -ldns_sd" >&5
16133$as_echo_n "checking for DNSServiceRegister in -ldns_sd... " >&6; }
16134if ${ac_cv_lib_dns_sd_DNSServiceRegister+:} false; then :
16135  $as_echo_n "(cached) " >&6
16136else
16137  ac_check_lib_save_LIBS=$LIBS
16138LIBS="-ldns_sd  $LIBS"
16139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16140/* end confdefs.h.  */
16141
16142/* Override any GCC internal prototype to avoid an error.
16143   Use char because int might match the return type of a GCC
16144   builtin and then its argument prototype would still apply.  */
16145#ifdef __cplusplus
16146extern "C"
16147#endif
16148char DNSServiceRegister ();
16149int
16150main ()
16151{
16152return DNSServiceRegister ();
16153  ;
16154  return 0;
16155}
16156_ACEOF
16157if ac_fn_c_try_link "$LINENO"; then :
16158  ac_cv_lib_dns_sd_DNSServiceRegister=yes
16159else
16160  ac_cv_lib_dns_sd_DNSServiceRegister=no
16161fi
16162rm -f core conftest.err conftest.$ac_objext \
16163    conftest$ac_exeext conftest.$ac_ext
16164LIBS=$ac_check_lib_save_LIBS
16165fi
16166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5
16167$as_echo "$ac_cv_lib_dns_sd_DNSServiceRegister" >&6; }
16168if test "x$ac_cv_lib_dns_sd_DNSServiceRegister" = xyes; then :
16169
16170$as_echo "#define USE_ZEROCONF 1" >>confdefs.h
16171
16172fi
16173
16174
16175fi
16176
16177
16178
16179        if test "$ac_cv_lib_dns_sd_DNSServiceRegister" = yes; then
16180            ZEROCONF_LIBS="-ldns_sd"
16181
16182$as_echo "#define HAVE_MDNS 1" >>confdefs.h
16183
16184            found_zeroconf=yes
16185        fi
16186
16187        # mDNS support using Avahi
16188        if test x"$found_zeroconf" != x"yes" ; then
16189            ac_fn_c_check_header_mongrel "$LINENO" "avahi-client/client.h" "ac_cv_header_avahi_client_client_h" "$ac_includes_default"
16190if test "x$ac_cv_header_avahi_client_client_h" = xyes; then :
16191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
16192$as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
16193if ${ac_cv_lib_avahi_client_avahi_client_new+:} false; then :
16194  $as_echo_n "(cached) " >&6
16195else
16196  ac_check_lib_save_LIBS=$LIBS
16197LIBS="-lavahi-client  $LIBS"
16198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16199/* end confdefs.h.  */
16200
16201/* Override any GCC internal prototype to avoid an error.
16202   Use char because int might match the return type of a GCC
16203   builtin and then its argument prototype would still apply.  */
16204#ifdef __cplusplus
16205extern "C"
16206#endif
16207char avahi_client_new ();
16208int
16209main ()
16210{
16211return avahi_client_new ();
16212  ;
16213  return 0;
16214}
16215_ACEOF
16216if ac_fn_c_try_link "$LINENO"; then :
16217  ac_cv_lib_avahi_client_avahi_client_new=yes
16218else
16219  ac_cv_lib_avahi_client_avahi_client_new=no
16220fi
16221rm -f core conftest.err conftest.$ac_objext \
16222    conftest$ac_exeext conftest.$ac_ext
16223LIBS=$ac_check_lib_save_LIBS
16224fi
16225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
16226$as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
16227if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes; then :
16228
16229$as_echo "#define USE_ZEROCONF 1" >>confdefs.h
16230
16231fi
16232
16233
16234fi
16235
16236
16237
16238            case "$ac_cv_lib_avahi_client_avahi_client_new" in
16239            yes)
16240
16241pkg_failed=no
16242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVAHI" >&5
16243$as_echo_n "checking for AVAHI... " >&6; }
16244
16245if test -n "$PKG_CONFIG"; then
16246    if test -n "$AVAHI_CFLAGS"; then
16247        pkg_cv_AVAHI_CFLAGS="$AVAHI_CFLAGS"
16248    else
16249        if test -n "$PKG_CONFIG" && \
16250    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6 \""; } >&5
16251  ($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6 ") 2>&5
16252  ac_status=$?
16253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16254  test $ac_status = 0; }; then
16255  pkg_cv_AVAHI_CFLAGS=`$PKG_CONFIG --cflags " avahi-client >= 0.6 " 2>/dev/null`
16256else
16257  pkg_failed=yes
16258fi
16259    fi
16260else
16261	pkg_failed=untried
16262fi
16263if test -n "$PKG_CONFIG"; then
16264    if test -n "$AVAHI_LIBS"; then
16265        pkg_cv_AVAHI_LIBS="$AVAHI_LIBS"
16266    else
16267        if test -n "$PKG_CONFIG" && \
16268    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6 \""; } >&5
16269  ($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6 ") 2>&5
16270  ac_status=$?
16271  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16272  test $ac_status = 0; }; then
16273  pkg_cv_AVAHI_LIBS=`$PKG_CONFIG --libs " avahi-client >= 0.6 " 2>/dev/null`
16274else
16275  pkg_failed=yes
16276fi
16277    fi
16278else
16279	pkg_failed=untried
16280fi
16281
16282
16283
16284if test $pkg_failed = yes; then
16285
16286if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16287        _pkg_short_errors_supported=yes
16288else
16289        _pkg_short_errors_supported=no
16290fi
16291        if test $_pkg_short_errors_supported = yes; then
16292	        AVAHI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " avahi-client >= 0.6 "`
16293        else
16294	        AVAHI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " avahi-client >= 0.6 "`
16295        fi
16296	# Put the nasty error message in config.log where it belongs
16297	echo "$AVAHI_PKG_ERRORS" >&5
16298
16299	as_fn_error $? "Package requirements ( avahi-client >= 0.6 ) were not met:
16300
16301$AVAHI_PKG_ERRORS
16302
16303Consider adjusting the PKG_CONFIG_PATH environment variable if you
16304installed software in a non-standard prefix.
16305
16306Alternatively, you may set the environment variables AVAHI_CFLAGS
16307and AVAHI_LIBS to avoid the need to call pkg-config.
16308See the pkg-config man page for more details.
16309" "$LINENO" 5
16310elif test $pkg_failed = untried; then
16311	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16313as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16314is in your PATH or set the PKG_CONFIG environment variable to the full
16315path to pkg-config.
16316
16317Alternatively, you may set the environment variables AVAHI_CFLAGS
16318and AVAHI_LIBS to avoid the need to call pkg-config.
16319See the pkg-config man page for more details.
16320
16321To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16322See \`config.log' for more details" "$LINENO" 5; }
16323else
16324	AVAHI_CFLAGS=$pkg_cv_AVAHI_CFLAGS
16325	AVAHI_LIBS=$pkg_cv_AVAHI_LIBS
16326        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16327$as_echo "yes" >&6; }
16328	:
16329fi
16330
16331pkg_failed=no
16332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVAHI_TPOLL" >&5
16333$as_echo_n "checking for AVAHI_TPOLL... " >&6; }
16334
16335if test -n "$PKG_CONFIG"; then
16336    if test -n "$AVAHI_TPOLL_CFLAGS"; then
16337        pkg_cv_AVAHI_TPOLL_CFLAGS="$AVAHI_TPOLL_CFLAGS"
16338    else
16339        if test -n "$PKG_CONFIG" && \
16340    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6.4 \""; } >&5
16341  ($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6.4 ") 2>&5
16342  ac_status=$?
16343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16344  test $ac_status = 0; }; then
16345  pkg_cv_AVAHI_TPOLL_CFLAGS=`$PKG_CONFIG --cflags " avahi-client >= 0.6.4 " 2>/dev/null`
16346else
16347  pkg_failed=yes
16348fi
16349    fi
16350else
16351	pkg_failed=untried
16352fi
16353if test -n "$PKG_CONFIG"; then
16354    if test -n "$AVAHI_TPOLL_LIBS"; then
16355        pkg_cv_AVAHI_TPOLL_LIBS="$AVAHI_TPOLL_LIBS"
16356    else
16357        if test -n "$PKG_CONFIG" && \
16358    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6.4 \""; } >&5
16359  ($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6.4 ") 2>&5
16360  ac_status=$?
16361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16362  test $ac_status = 0; }; then
16363  pkg_cv_AVAHI_TPOLL_LIBS=`$PKG_CONFIG --libs " avahi-client >= 0.6.4 " 2>/dev/null`
16364else
16365  pkg_failed=yes
16366fi
16367    fi
16368else
16369	pkg_failed=untried
16370fi
16371
16372
16373
16374if test $pkg_failed = yes; then
16375
16376if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16377        _pkg_short_errors_supported=yes
16378else
16379        _pkg_short_errors_supported=no
16380fi
16381        if test $_pkg_short_errors_supported = yes; then
16382	        AVAHI_TPOLL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " avahi-client >= 0.6.4 "`
16383        else
16384	        AVAHI_TPOLL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " avahi-client >= 0.6.4 "`
16385        fi
16386	# Put the nasty error message in config.log where it belongs
16387	echo "$AVAHI_TPOLL_PKG_ERRORS" >&5
16388
16389	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16390$as_echo "no" >&6; }
16391                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This Avahi implementation is not supporting threaded poll objects. Maybe this is not what you want." >&5
16392$as_echo "$as_me: WARNING: This Avahi implementation is not supporting threaded poll objects. Maybe this is not what you want." >&2;}
16393elif test $pkg_failed = untried; then
16394	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This Avahi implementation is not supporting threaded poll objects. Maybe this is not what you want." >&5
16395$as_echo "$as_me: WARNING: This Avahi implementation is not supporting threaded poll objects. Maybe this is not what you want." >&2;}
16396else
16397	AVAHI_TPOLL_CFLAGS=$pkg_cv_AVAHI_TPOLL_CFLAGS
16398	AVAHI_TPOLL_LIBS=$pkg_cv_AVAHI_TPOLL_LIBS
16399        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16400$as_echo "yes" >&6; }
16401
16402$as_echo "#define HAVE_AVAHI_THREADED_POLL 1" >>confdefs.h
16403
16404fi
16405                ZEROCONF_LIBS="$AVAHI_LIBS"
16406                ZEROCONF_CFLAGS="$AVAHI_CFLAGS"
16407
16408$as_echo "#define HAVE_AVAHI 1" >>confdefs.h
16409
16410                found_zeroconf=yes
16411                ;;
16412            esac
16413	    	CPPFLAGS="$savedcppflags"
16414		    LDFLAGS="$savedldflags"
16415    	fi
16416	fi
16417
16418	netatalk_cv_zeroconf=no
16419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Zerconf support" >&5
16420$as_echo_n "checking whether to enable Zerconf support... " >&6; }
16421	if test "x$found_zeroconf" = "xyes"; then
16422		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16423$as_echo "yes" >&6; }
16424
16425$as_echo "#define USE_ZEROCONF 1" >>confdefs.h
16426
16427		netatalk_cv_zeroconf=yes
16428	else
16429		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16430$as_echo "no" >&6; }
16431		if test "x$zeroconf" != "xno" -a "x$zeroconf" != "xtry"; then
16432			as_fn_error $? "Zeroconf installation not found" "$LINENO" 5
16433		fi
16434	fi
16435
16436
16437  ac_new_flags=""
16438  for i in $ZEROCONF_LIBS; do
16439    case $i in
16440    -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
16441    *) ac_new_flags="$ac_new_flags $i" ;;
16442    esac
16443  done
16444  ZEROCONF_LIBS=$ac_new_flags
16445
16446
16447  ac_new_flags=""
16448  for i in $ZEROCONF_CFLAGS; do
16449    case $i in
16450    -I/usr/include|-I/usr/include/) ;;
16451    *) ac_new_flags="$ac_new_flags $i" ;;
16452    esac
16453  done
16454  ZEROCONF_CFLAGS=$ac_new_flags
16455
16456
16457
16458
16459
16460netatalk_cv_use_pam=no
16461
16462
16463# Check whether --with-pam was given.
16464if test "${with_pam+set}" = set; then :
16465  withval=$with_pam;
16466			require_pam="yes"
16467			if test "x$withval" = "xno"; then
16468				PAMDIR="NONE"
16469				require_pam="never"
16470			elif test "x$withval" = "xyes"; then
16471				PAMDIR="NONE"
16472			else
16473				PAMDIR="$withval"
16474			fi
16475
16476else
16477  PAMDIR="NONE";require_pam="no"
16478
16479fi
16480
16481
16482	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM installation directory" >&5
16483$as_echo_n "checking for PAM installation directory... " >&6; }
16484	if test "$host_os" != "solaris"; then
16485		if test "x$PAMDIR" = "xNONE" -a "x$require_pam" != "xnever"; then
16486		  		  pam_paths="/ /usr/ /usr/local/"
16487		  for path in $pam_paths; do
16488			if test -d "${path}etc/pam.d"; then
16489				PAMDIR="$path"
16490				break
16491			fi
16492		  done
16493		fi
16494
16495		if test "x$PAMDIR" != "xNONE"; then
16496			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (path: ${PAMDIR}etc/pam.d)" >&5
16497$as_echo "yes (path: ${PAMDIR}etc/pam.d)" >&6; }
16498		else
16499			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16500$as_echo "no" >&6; }
16501		fi
16502	else
16503		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: /etc/pam.conf (solaris)" >&5
16504$as_echo "/etc/pam.conf (solaris)" >&6; }
16505	fi
16506
16507	pam_found="no"
16508	if test "x$require_pam" != "xnever"; then
16509
16510		savedCFLAGS="$CFLAGS"
16511		savedLDFLAGS="$LDFLAGS"
16512		savedLIBS="$LIBS"
16513
16514		if test "x$PAMDIR" != "xNONE" -a "x$PAMDIR" != "x/"; then
16515			PAM_CFLAGS="-I${PAMDIR}include"
16516			PAM_LDFLAGS="-L${PAMDIR}lib"
16517			LDFLAGS="$LDFLAGS $PAM_LDFLAGS"
16518			CFLAGS="$CFLAGS $PAM_CFLAGS"
16519		fi
16520
16521		for ac_header in security/pam_appl.h pam/pam_appl.h
16522do :
16523  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16524ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16525if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16526  cat >>confdefs.h <<_ACEOF
16527#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16528_ACEOF
16529
16530fi
16531
16532done
16533
16534
16535		if test x"$ac_cv_header_security_pam_appl_h" = x"no" -a x"$ac_cv_header_pam_pam_appl_h" = x"no"; then
16536			pam_found=no
16537		else
16538			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
16539$as_echo_n "checking for pam_set_item in -lpam... " >&6; }
16540if ${ac_cv_lib_pam_pam_set_item+:} false; then :
16541  $as_echo_n "(cached) " >&6
16542else
16543  ac_check_lib_save_LIBS=$LIBS
16544LIBS="-lpam  $LIBS"
16545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546/* end confdefs.h.  */
16547
16548/* Override any GCC internal prototype to avoid an error.
16549   Use char because int might match the return type of a GCC
16550   builtin and then its argument prototype would still apply.  */
16551#ifdef __cplusplus
16552extern "C"
16553#endif
16554char pam_set_item ();
16555int
16556main ()
16557{
16558return pam_set_item ();
16559  ;
16560  return 0;
16561}
16562_ACEOF
16563if ac_fn_c_try_link "$LINENO"; then :
16564  ac_cv_lib_pam_pam_set_item=yes
16565else
16566  ac_cv_lib_pam_pam_set_item=no
16567fi
16568rm -f core conftest.err conftest.$ac_objext \
16569    conftest$ac_exeext conftest.$ac_ext
16570LIBS=$ac_check_lib_save_LIBS
16571fi
16572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
16573$as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
16574if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
16575
16576				PAM_LIBS="$PAM_LDFLAGS -lpam"
16577				pam_found="yes"
16578
16579fi
16580
16581		fi
16582		CFLAGS="$savedCFLAGS"
16583		LDFLAGS="$savedLDFLAGS"
16584		LIBS="$savedLIBS"
16585	fi
16586
16587	netatalk_cv_install_pam=yes
16588	if test x"$pam_found" = "xyes" -a "x$PAMDIR" = "xNONE"; then
16589		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PAM support can be compiled, but the install location for the netatalk.pamd file could not be determined. Either install this file by hand or specify the install path." >&5
16590$as_echo "$as_me: WARNING: PAM support can be compiled, but the install location for the netatalk.pamd file could not be determined. Either install this file by hand or specify the install path." >&2;}
16591		netatalk_cv_install_pam=no
16592    else
16593                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for includable common PAM config" >&5
16594$as_echo_n "checking for includable common PAM config... " >&6; }
16595        pampath="${PAMDIR}etc/pam.d"
16596                if test -f "$pampath/common-auth" ; then
16597           PAM_DIRECTIVE=include
16598           PAM_AUTH=common-auth
16599           PAM_ACCOUNT=common-account
16600           PAM_PASSWORD=common-password
16601           PAM_SESSION=common-session
16602                elif test -f "$pampath/system-auth" ; then
16603           PAM_DIRECTIVE=include
16604           PAM_AUTH=system-auth
16605           PAM_ACCOUNT=system-auth
16606           PAM_PASSWORD=system-auth
16607           PAM_SESSION=system-auth
16608                elif test -f "$pampath/system" ; then
16609           PAM_DIRECTIVE=include
16610           PAM_AUTH=system
16611           PAM_ACCOUNT=system
16612           PAM_PASSWORD=system
16613           PAM_SESSION=system
16614                else
16615           PAM_DIRECTIVE=required
16616           PAM_AUTH=pam_unix.so
16617           PAM_ACCOUNT=pam_unix.so
16618           PAM_PASSWORD="pam_unix.so use_authtok"
16619           PAM_SESSION=pam_unix.so
16620        fi
16621
16622        if test "x$PAM_DIRECTIVE" != "xrequired" ; then
16623            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($PAM_DIRECTIVE $PAM_AUTH)" >&5
16624$as_echo "yes ($PAM_DIRECTIVE $PAM_AUTH)" >&6; }
16625        else
16626            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (using defaut pam_unix.so)" >&5
16627$as_echo "no (using defaut pam_unix.so)" >&6; }
16628        fi
16629	fi
16630
16631	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PAM support" >&5
16632$as_echo_n "checking whether to enable PAM support... " >&6; }
16633	if test "x$pam_found" = "xno"; then
16634		netatalk_cv_install_pam=no
16635		if test "x$require_pam" = "xyes"; then
16636			as_fn_error $? "PAM support missing" "$LINENO" 5
16637		else
16638			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16639$as_echo "no" >&6; }
16640		fi
16641		:
16642	else
16643		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16644$as_echo "yes" >&6; }
16645
16646	use_pam_so=yes
16647	compile_pam=yes
16648	netatalk_cv_use_pam=yes
16649
16650$as_echo "#define USE_PAM 1" >>confdefs.h
16651
16652
16653	fi
16654
16655
16656  ac_new_flags=""
16657  for i in $PAM_LIBS; do
16658    case $i in
16659    -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
16660    *) ac_new_flags="$ac_new_flags $i" ;;
16661    esac
16662  done
16663  PAM_LIBS=$ac_new_flags
16664
16665
16666  ac_new_flags=""
16667  for i in $PAM_CFLAGS; do
16668    case $i in
16669    -I/usr/include|-I/usr/include/) ;;
16670    *) ac_new_flags="$ac_new_flags $i" ;;
16671    esac
16672  done
16673  PAM_CFLAGS=$ac_new_flags
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685netatalk_cv_use_shadowpw=no
16686
16687# Check whether --with-shadow was given.
16688if test "${with_shadow+set}" = set; then :
16689  withval=$with_shadow; netatalk_cv_use_shadowpw="$withval"
16690else
16691  netatalk_cv_use_shadowpw=auto
16692
16693fi
16694
16695
16696if test "x$netatalk_cv_use_shadowpw" != "xno"; then
16697    ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
16698if test "x$ac_cv_header_shadow_h" = xyes; then :
16699
16700fi
16701
16702
16703    if test x"$ac_cv_header_shadow_h" = x"yes"; then
16704	netatalk_cv_use_shadowpw=yes
16705
16706$as_echo "#define SHADOWPW 1" >>confdefs.h
16707
16708    else
16709      if test "x$shadowpw" = "xyes"; then
16710        as_fn_error $? "shadow support not available" "$LINENO" 5
16711      else
16712       	netatalk_cv_use_shadowpw=no
16713      fi
16714    fi
16715fi
16716
16717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shadow support should be enabled" >&5
16718$as_echo_n "checking whether shadow support should be enabled... " >&6; }
16719if test "x$netatalk_cv_use_shadowpw" = "xyes"; then
16720	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16721$as_echo "yes" >&6; }
16722else
16723	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16724$as_echo "no" >&6; }
16725fi
16726
16727
16728
16729netatalk_cv_use_shellcheck=yes
16730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether checking for a valid shell should be enabled" >&5
16731$as_echo_n "checking whether checking for a valid shell should be enabled... " >&6; }
16732# Check whether --enable-shell-check was given.
16733if test "${enable_shell_check+set}" = set; then :
16734  enableval=$enable_shell_check;
16735	if test "$enableval" = "no"; then
16736
16737$as_echo "#define DISABLE_SHELLCHECK 1" >>confdefs.h
16738
16739		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16740$as_echo "no" >&6; }
16741		netatalk_cv_use_shellcheck=no
16742	else
16743		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16744$as_echo "yes" >&6; }
16745	fi
16746
16747else
16748
16749		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16750$as_echo "yes" >&6; }
16751
16752
16753fi
16754
16755
16756
16757	check=maybe
16758	# Check whether --enable-tcp-wrappers was given.
16759if test "${enable_tcp_wrappers+set}" = set; then :
16760  enableval=$enable_tcp_wrappers;
16761			if test "x$enableval" = "xno"; then
16762				wrapcheck=no
16763			else
16764				wrapcheck=yes
16765			fi
16766
16767
16768fi
16769
16770
16771	enable=no
16772	netatalk_cv_tcpwrap=no
16773	if test "x$wrapcheck" != "xno"; then
16774		saved_LIBS=$LIBS
16775		W_LIBS="-lwrap"
16776		LIBS="$LIBS $W_LIBS"
16777		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16778/* end confdefs.h.  */
16779 int allow_severity = 0; int deny_severity = 0;
16780
16781int
16782main ()
16783{
16784hosts_access();
16785
16786  ;
16787  return 0;
16788}
16789_ACEOF
16790if ac_fn_c_try_link "$LINENO"; then :
16791  netatalk_cv_tcpwrap=yes
16792else
16793
16794				LIBS=$saved_LIBS
16795				W_LIBS="-lwrap -lnsl"
16796				LIBS="$LIBS $W_LIBS"
16797				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16798/* end confdefs.h.  */
16799 int allow_severity = 0; int deny_severity = 0;
16800
16801int
16802main ()
16803{
16804hosts_access();
16805
16806  ;
16807  return 0;
16808}
16809_ACEOF
16810if ac_fn_c_try_link "$LINENO"; then :
16811  netatalk_cv_tcpwrap=yes
16812else
16813  netatalk_cv_tcpwrap=no
16814fi
16815rm -f core conftest.err conftest.$ac_objext \
16816    conftest$ac_exeext conftest.$ac_ext
16817
16818
16819fi
16820rm -f core conftest.err conftest.$ac_objext \
16821    conftest$ac_exeext conftest.$ac_ext
16822
16823		LIBS=$saved_LIBS
16824	fi
16825
16826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TCP wrappers" >&5
16827$as_echo_n "checking whether to enable the TCP wrappers... " >&6; }
16828	if test "x$netatalk_cv_tcpwrap" = "xyes"; then
16829
16830$as_echo "#define TCPWRAP 1" >>confdefs.h
16831
16832		WRAP_LIBS=$W_LIBS
16833		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16834$as_echo "yes" >&6; }
16835	else
16836		if test "x$wrapcheck" = "xyes"; then
16837			as_fn_error $? "libwrap not found" "$LINENO" 5
16838		else
16839			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16840$as_echo "no" >&6; }
16841		fi
16842	fi
16843
16844
16845
16846
16847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system (fcntl) locking should be disabled" >&5
16848$as_echo_n "checking whether system (fcntl) locking should be disabled... " >&6; }
16849# Check whether --enable-locking was given.
16850if test "${enable_locking+set}" = set; then :
16851  enableval=$enable_locking;
16852        	if test "$enableval" = "no"; then
16853
16854$as_echo "#define DISABLE_LOCKING 1" >>confdefs.h
16855
16856	                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16857$as_echo "yes" >&6; }
16858		else
16859	                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16860$as_echo "no" >&6; }
16861        	fi
16862
16863
16864else
16865
16866		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16867$as_echo "no" >&6; }
16868
16869
16870
16871fi
16872
16873
16874# Check whether --enable-redhat was given.
16875if test "${enable_redhat+set}" = set; then :
16876  enableval=$enable_redhat;
16877	echo "ERROR: --enable-redhat is obsoleted. Use --enable-redhat-sysv or --enable-redhat-systemd."
16878	exit 1
16879
16880
16881fi
16882
16883
16884# Check whether --enable-redhat-sysv was given.
16885if test "${enable_redhat_sysv+set}" = set; then :
16886  enableval=$enable_redhat_sysv;
16887	if test "$enableval" = "yes"; then
16888		sysv_style=redhat-sysv
16889	fi
16890	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling redhat-style sysv support" >&5
16891$as_echo "enabling redhat-style sysv support" >&6; }
16892
16893
16894fi
16895
16896
16897# Check whether --enable-redhat-systemd was given.
16898if test "${enable_redhat_systemd+set}" = set; then :
16899  enableval=$enable_redhat_systemd;
16900	if test "$enableval" = "yes"; then
16901		sysv_style=redhat-systemd
16902	fi
16903	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling redhat-style systemd support" >&5
16904$as_echo "enabling redhat-style systemd support" >&6; }
16905
16906
16907fi
16908
16909
16910# Check whether --enable-suse was given.
16911if test "${enable_suse+set}" = set; then :
16912  enableval=$enable_suse;
16913	echo "ERROR: --enable-suse is obsoleted. Use --enable-suse-sysv or --enable-suse-systemd."
16914	exit 1
16915
16916
16917fi
16918
16919
16920# Check whether --enable-suse-sysv was given.
16921if test "${enable_suse_sysv+set}" = set; then :
16922  enableval=$enable_suse_sysv;
16923	if test "$enableval" = "yes"; then
16924		sysv_style=suse-sysv
16925	fi
16926	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling suse-style sysv support" >&5
16927$as_echo "enabling suse-style sysv support" >&6; }
16928
16929
16930fi
16931
16932
16933# Check whether --enable-suse-systemd was given.
16934if test "${enable_suse_systemd+set}" = set; then :
16935  enableval=$enable_suse_systemd;
16936	if test "$enableval" = "yes"; then
16937		sysv_style=suse-systemd
16938	fi
16939	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling suse-style systemd support" >&5
16940$as_echo "enabling suse-style systemd support" >&6; }
16941
16942
16943fi
16944
16945
16946# Check whether --enable-gentoo was given.
16947if test "${enable_gentoo+set}" = set; then :
16948  enableval=$enable_gentoo;
16949	if test "$enableval" = "yes"; then
16950		sysv_style=gentoo
16951	fi
16952	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling gentoo-style sysv support" >&5
16953$as_echo "enabling gentoo-style sysv support" >&6; }
16954
16955
16956fi
16957
16958
16959# Check whether --enable-netbsd was given.
16960if test "${enable_netbsd+set}" = set; then :
16961  enableval=$enable_netbsd; if test "x$enableval" = "xyes"; then
16962		sysv_style=netbsd
16963	fi
16964	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling NetBSD-style rc.d support" >&5
16965$as_echo "enabling NetBSD-style rc.d support" >&6; }
16966
16967fi
16968
16969
16970# Check whether --enable-debian was given.
16971if test "${enable_debian+set}" = set; then :
16972  enableval=$enable_debian;
16973	if test "$enableval" = "yes"; then
16974		sysv_style=debian
16975	fi
16976	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling debian-style sysv support" >&5
16977$as_echo "enabling debian-style sysv support" >&6; }
16978
16979
16980fi
16981
16982
16983# Check whether --enable-systemd was given.
16984if test "${enable_systemd+set}" = set; then :
16985  enableval=$enable_systemd;
16986	if test "$enableval" = "yes"; then
16987		sysv_style=systemd
16988	fi
16989	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling general systemd support" >&5
16990$as_echo "enabling general systemd support" >&6; }
16991
16992
16993fi
16994
16995
16996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether timelord should be compiled" >&5
16997$as_echo_n "checking whether timelord should be compiled... " >&6; }
16998compile_timelord=no
16999# Check whether --enable-timelord was given.
17000if test "${enable_timelord+set}" = set; then :
17001  enableval=$enable_timelord; compile_timelord="$enableval"
17002else
17003  compile_timelord="no"
17004
17005fi
17006
17007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_timelord" >&5
17008$as_echo "$compile_timelord" >&6; }
17009
17010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a2boot should be compiled" >&5
17011$as_echo_n "checking whether a2boot should be compiled... " >&6; }
17012compile_a2boot=no
17013# Check whether --enable-a2boot was given.
17014if test "${enable_a2boot+set}" = set; then :
17015  enableval=$enable_a2boot; compile_a2boot="$enableval"
17016else
17017  compile_a2boot="no"
17018
17019fi
17020
17021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_a2boot" >&5
17022$as_echo "$compile_a2boot" >&6; }
17023
17024
17025# Check whether --with-uams-path was given.
17026if test "${with_uams_path+set}" = set; then :
17027  withval=$with_uams_path;
17028		uams_path="$withval"
17029
17030else
17031
17032		uams_path="${PKGCONFDIR}/uams"
17033
17034
17035fi
17036
17037
17038
17039
17040		spool_required=no
17041	netatalk_cv_use_cups=no
17042
17043	# Check whether --enable-cups was given.
17044if test "${enable_cups+set}" = set; then :
17045  enableval=$enable_cups;
17046fi
17047
17048
17049	if test x$enable_cups != xno; then
17050        	# Extract the first word of "cups-config", so it can be a program name with args.
17051set dummy cups-config; ac_word=$2
17052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17053$as_echo_n "checking for $ac_word... " >&6; }
17054if ${ac_cv_path_CUPS_CONFIG+:} false; then :
17055  $as_echo_n "(cached) " >&6
17056else
17057  case $CUPS_CONFIG in
17058  [\\/]* | ?:[\\/]*)
17059  ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
17060  ;;
17061  *)
17062  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17063for as_dir in $PATH
17064do
17065  IFS=$as_save_IFS
17066  test -z "$as_dir" && as_dir=.
17067    for ac_exec_ext in '' $ac_executable_extensions; do
17068  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17069    ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17071    break 2
17072  fi
17073done
17074  done
17075IFS=$as_save_IFS
17076
17077  ;;
17078esac
17079fi
17080CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
17081if test -n "$CUPS_CONFIG"; then
17082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_CONFIG" >&5
17083$as_echo "$CUPS_CONFIG" >&6; }
17084else
17085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17086$as_echo "no" >&6; }
17087fi
17088
17089
17090
17091        	if test "x$CUPS_CONFIG" != x; then
17092
17093$as_echo "#define HAVE_CUPS 1" >>confdefs.h
17094
17095	                CUPS_CFLAGS="`$CUPS_CONFIG --cflags`"
17096        	        CUPS_LDFLAGS="`$CUPS_CONFIG --ldflags`"
17097                	CUPS_LIBS="`$CUPS_CONFIG --libs`"
17098			CUPS_VERSION="`$CUPS_CONFIG --version`"
17099
17100cat >>confdefs.h <<_ACEOF
17101#define CUPS_API_VERSION "`$CUPS_CONFIG --api-version`"
17102_ACEOF
17103
17104
17105
17106
17107
17108			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CUPS version" >&5
17109$as_echo_n "checking CUPS version... " >&6; }
17110                	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_VERSION" >&5
17111$as_echo "$CUPS_VERSION" >&6; }
17112			netatalk_cv_use_cups=yes
17113
17114			if test x"$netatalk_cv_HAVE_USABLE_ICONV" = x"no" ; then
17115				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Warning: iconv not found on your system, using simple ascii mapping***" >&5
17116$as_echo "$as_me: WARNING: *** Warning: iconv not found on your system, using simple ascii mapping***" >&2;}
17117			fi
17118	                spool_required="yes"
17119		elif test x"$enable_cups" = "xyes"; then
17120			as_fn_error $? "*** CUPS not found. You might need to specify the path to cups-config ***" "$LINENO" 5
17121	        fi
17122	fi
17123
17124	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CUPS support can be enabled" >&5
17125$as_echo_n "checking whether CUPS support can be enabled... " >&6; }
17126	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_use_cups" >&5
17127$as_echo "$netatalk_cv_use_cups" >&6; }
17128
17129
17130
17131# Check whether --with-spooldir was given.
17132if test "${with_spooldir+set}" = set; then :
17133  withval=$with_spooldir;
17134
17135	        if test "$withval" = "no"; then
17136        	       if test x"$spool_required" = x"yes"; then
17137                	       as_fn_error $? "*** CUPS support requires a spooldir ***" "$LINENO" 5
17138	               else
17139
17140$as_echo "#define DISABLE_SPOOL 1" >>confdefs.h
17141
17142                	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: spool disabled" >&5
17143$as_echo "spool disabled" >&6; }
17144               		fi
17145        	elif test "$withval" != "yes"; then
17146			SPOOLDIR="$withval"
17147	                { $as_echo "$as_me:${as_lineno-$LINENO}: result: spooldir set to $withval" >&5
17148$as_echo "spooldir set to $withval" >&6; }
17149        	else
17150			SPOOLDIR="${localstatedir}/spool/netatalk"
17151	                { $as_echo "$as_me:${as_lineno-$LINENO}: result: spool set to default" >&5
17152$as_echo "spool set to default" >&6; }
17153        	fi
17154
17155else
17156
17157		SPOOLDIR="${localstatedir}/spool/netatalk"
17158
17159fi
17160
17161
17162	 if test x"$spool_required" = x"yes"; then
17163  USE_SPOOLDIR_TRUE=
17164  USE_SPOOLDIR_FALSE='#'
17165else
17166  USE_SPOOLDIR_TRUE='#'
17167  USE_SPOOLDIR_FALSE=
17168fi
17169
17170
17171
17172
17173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can add '__attribute__((unused))' to CFLAGS" >&5
17174$as_echo_n "checking to see if we can add '__attribute__((unused))' to CFLAGS... " >&6; }
17175if test x$GCC != x ; then
17176  CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
17177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17178$as_echo "yes" >&6; }
17179else
17180  CFLAGS="-D_U_=\"\" $CFLAGS"
17181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17182$as_echo "no" >&6; }
17183fi
17184
17185
17186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Filesystem Hierarchy Standard (FHS) compatibility" >&5
17187$as_echo_n "checking whether to use Filesystem Hierarchy Standard (FHS) compatibility... " >&6; }
17188# Check whether --enable-fhs was given.
17189if test "${enable_fhs+set}" = set; then :
17190  enableval=$enable_fhs;
17191	if test "$enableval" = "yes"; then
17192		uams_path="${libdir}/netatalk"
17193		sysconfdir="/etc"
17194		PKGCONFDIR=${sysconfdir}/netatalk
17195		SERVERTEXT="${PKGCONFDIR}/msg"
17196		use_pam_so=yes
17197		mandir="/usr/share/man"
17198
17199$as_echo "#define FHS_COMPATIBILITY 1" >>confdefs.h
17200
17201		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17202$as_echo "yes" >&6; }
17203	else
17204		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17205$as_echo "no" >&6; }
17206	fi
17207
17208else
17209
17210		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17211$as_echo "no" >&6; }
17212
17213
17214fi
17215
17216
17217
17218UAMS_PATH="${uams_path}"
17219
17220
17221
17222LIBS="$LIBS -L\$(top_srcdir)/libatalk"
17223CFLAGS="-I\$(top_srcdir)/include $CFLAGS -I\$(top_srcdir)/sys"
17224
17225
17226$as_echo "#define OPEN_NOFOLLOW_ERRNO ELOOP" >>confdefs.h
17227
17228
17229
17230
17231case "$host_os" in
17232	*aix*)				this_os=aix ;;
17233	*kfreebsd*-gnu)			this_os=kfreebsd-gnu ;;
17234	*freebsd*) 			this_os=freebsd ;;
17235	*hpux11*)			this_os=hpux11 ;;
17236	*irix*)				this_os=irix ;;
17237	*linux*)   			this_os=linux ;;
17238	*osx*)				this_os=macosx ;;
17239	*darwin*)			this_os=macosx ;;
17240	*netbsd*) 			this_os=netbsd ;;
17241	*openbsd*) 			this_os=openbsd ;;
17242	*osf*) 				this_os=tru64 ;;
17243	*solaris*) 			this_os=solaris ;;
17244esac
17245
17246case "$host_cpu" in
17247	i386|i486|i586|i686|k7)		this_cpu=x86 ;;
17248	alpha)						this_cpu=alpha ;;
17249	mips)						this_cpu=mips ;;
17250	powerpc|ppc)				this_cpu=ppc ;;
17251esac
17252
17253case "$this_os" in
17254	linux)
17255$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
17256
17257        ;;
17258     kfreebsd-gnu)
17259$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
17260
17261        ;;
17262esac
17263
17264
17265if test x"$this_os" = "xaix"; then
17266	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  * AIX specific configuration" >&5
17267$as_echo " * AIX specific configuration" >&6; }
17268
17269$as_echo "#define NO_STRUCT_TM_GMTOFF 1" >>confdefs.h
17270
17271
17272
17273$as_echo "#define HAVE_32BIT_LONGS 1" >>confdefs.h
17274
17275fi
17276
17277if test x"$this_os" = "xfreebsd"; then
17278	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  * FreeBSD specific configuration" >&5
17279$as_echo " * FreeBSD specific configuration" >&6; }
17280
17281$as_echo "#define BSD4_4 1" >>confdefs.h
17282
17283
17284$as_echo "#define FREEBSD 1" >>confdefs.h
17285
17286
17287$as_echo "#define OPEN_NOFOLLOW_ERRNO EMLINK" >>confdefs.h
17288
17289fi
17290
17291if test x"$this_os" = "xkfreebsd-gnu"; then
17292	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  * GNU/kFreeBSD specific configuration" >&5
17293$as_echo " * GNU/kFreeBSD specific configuration" >&6; }
17294
17295$as_echo "#define BSD4_4 1" >>confdefs.h
17296
17297
17298$as_echo "#define FREEBSD 1" >>confdefs.h
17299
17300
17301$as_echo "#define OPEN_NOFOLLOW_ERRNO EMLINK" >>confdefs.h
17302
17303fi
17304
17305if test x"$this_os" = "xhpux11"; then
17306	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  * HP-UX 11 specific configuration" >&5
17307$as_echo " * HP-UX 11 specific configuration" >&6; }
17308
17309
17310$as_echo "#define _ISOC9X_SOURCE 1" >>confdefs.h
17311
17312
17313$as_echo "#define NO_STRUCT_TM_GMTOFF 1" >>confdefs.h
17314
17315fi
17316
17317if test x"$this_os" = "xirix"; then
17318	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  * IRIX specific configuration" >&5
17319$as_echo " * IRIX specific configuration" >&6; }
17320
17321
17322$as_echo "#define NO_STRUCT_TM_GMTOFF 1" >>confdefs.h
17323
17324fi
17325
17326if test x"$this_os" = "xlinux"; then
17327	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  * Linux specific configuration" >&5
17328$as_echo " * Linux specific configuration" >&6; }
17329
17330		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct atalk_addr" >&5
17331$as_echo_n "checking for struct atalk_addr... " >&6; }
17332	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17333/* end confdefs.h.  */
17334
17335#include <sys/socket.h>
17336#include <asm/types.h>
17337#include <linux/atalk.h>
17338
17339	struct atalk_addr foo;
17340
17341int
17342main ()
17343{
17344
17345  ;
17346  return 0;
17347}
17348_ACEOF
17349if ac_fn_c_try_compile "$LINENO"; then :
17350
17351		ac_have_atalk_addr=yes
17352		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17353$as_echo "yes" >&6; }
17354
17355else
17356
17357		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17358$as_echo "no" >&6; }
17359
17360fi
17361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17362
17363if test "x$ac_have_atalk_addr" = "xyes"; then
17364
17365$as_echo "#define HAVE_ATALK_ADDR 1" >>confdefs.h
17366
17367fi
17368
17369	#	AC_CHECK_HEADERS(sys/quota.h linux/quota.h)
17370#	AC_CHECK_FUNC(quotactl,,
17371#		AC_DEFINE(NEED_QUOTACTL_WRAPPER, 1, [Define if the quotactl wrapper is needed])
17372#		AC_MSG_RESULT([enabling quotactl wrapper])
17373#	)
17374
17375        # For quotas on Linux XFS filesystems
17376
17377        # For linux > 2.5.56
17378        for ac_header in linux/dqblk_xfs.h
17379do :
17380  ac_fn_c_check_header_mongrel "$LINENO" "linux/dqblk_xfs.h" "ac_cv_header_linux_dqblk_xfs_h" "$ac_includes_default"
17381if test "x$ac_cv_header_linux_dqblk_xfs_h" = xyes; then :
17382  cat >>confdefs.h <<_ACEOF
17383#define HAVE_LINUX_DQBLK_XFS_H 1
17384_ACEOF
17385
17386else
17387  for ac_header in linux/xqm.h linux/xfs_fs.h
17388do :
17389  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17390ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17391if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17392  cat >>confdefs.h <<_ACEOF
17393#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17394_ACEOF
17395
17396fi
17397
17398done
17399
17400        	for ac_header in xfs/libxfs.h xfs/xqm.h xfs/xfs_fs.h
17401do :
17402  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17403ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17404if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17405  cat >>confdefs.h <<_ACEOF
17406#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17407_ACEOF
17408
17409fi
17410
17411done
17412
17413
17414fi
17415
17416done
17417
17418
17419
17420
17421$as_echo "#define HAVE_BROKEN_DBTOB 1" >>confdefs.h
17422
17423
17424
17425		if test x"$this_cpu" = "xalpha"; then
17426		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling gcc memcpy bug workaround" >&5
17427$as_echo "enabling gcc memcpy bug workaround" >&6; }
17428
17429$as_echo "#define HAVE_GCC_MEMCPY_BUG 1" >>confdefs.h
17430
17431	fi
17432	need_dash_r=no
17433
17434
17435fi
17436
17437if test x"$this_os" = "xmacosx"; then
17438	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  * Mac OSX specific configuration" >&5
17439$as_echo " * Mac OSX specific configuration" >&6; }
17440
17441$as_echo "#define BSD4_4 1" >>confdefs.h
17442
17443
17444$as_echo "#define HAVE_2ARG_DBTOB 1" >>confdefs.h
17445
17446
17447$as_echo "#define NO_DDP 1" >>confdefs.h
17448
17449
17450$as_echo "#define NO_QUOTA_SUPPORT 1" >>confdefs.h
17451
17452
17453$as_echo "#define MACOSX_SERVER 1" >>confdefs.h
17454
17455fi
17456
17457if test x"$this_os" = "xnetbsd"; then
17458	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  * NetBSD specific configuration" >&5
17459$as_echo " * NetBSD specific configuration" >&6; }
17460
17461$as_echo "#define BSD4_4 1" >>confdefs.h
17462
17463
17464$as_echo "#define NETBSD 1" >>confdefs.h
17465
17466
17467$as_echo "#define OPEN_NOFOLLOW_ERRNO EFTYPE" >>confdefs.h
17468
17469
17470	CFLAGS="-I\$(top_srcdir)/sys/netbsd $CFLAGS"
17471	need_dash_r=yes
17472
17473
17474$as_echo "#define UAM_DHX 1" >>confdefs.h
17475
17476fi
17477
17478if test x"$this_os" = "xopenbsd"; then
17479	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  * OpenBSD specific configuration" >&5
17480$as_echo " * OpenBSD specific configuration" >&6; }
17481
17482$as_echo "#define BSD4_4 1" >>confdefs.h
17483
17484
17485$as_echo "#define UAM_DHX 1" >>confdefs.h
17486
17487
17488$as_echo "#define NO_DDP 1" >>confdefs.h
17489
17490fi
17491
17492if test x"$this_os" = "xsolaris"; then
17493	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  * Solaris specific configuration" >&5
17494$as_echo " * Solaris specific configuration" >&6; }
17495
17496$as_echo "#define __svr4__ 1" >>confdefs.h
17497
17498
17499$as_echo "#define _ISOC9X_SOURCE 1" >>confdefs.h
17500
17501
17502$as_echo "#define NO_STRUCT_TM_GMTOFF 1" >>confdefs.h
17503
17504
17505$as_echo "#define SOLARIS 1" >>confdefs.h
17506
17507
17508$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
17509
17510
17511$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
17512
17513	CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
17514	need_dash_r=yes
17515	sysv_style=solaris
17516
17517	solaris_module=no
17518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build Solaris kernel module" >&5
17519$as_echo_n "checking if we can build Solaris kernel module... " >&6; }
17520	if test -x /usr/ccs/bin/ld && test x"$netatalk_cv_ddp_enabled" = x"yes" ; then
17521		solaris_module=yes
17522	fi
17523	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $solaris_module" >&5
17524$as_echo "$solaris_module" >&6; }
17525
17526	COMPILE_64BIT_KMODULE=no
17527	KCFLAGS=""
17528	KLDFLAGS=""
17529	COMPILE_KERNEL_GCC=no
17530
17531	if test "$solaris_module" = "yes"; then
17532	              { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have to build a 64bit kernel module" >&5
17533$as_echo_n "checking if we have to build a 64bit kernel module... " >&6; }
17534
17535	   # check for isainfo, if not found it has to be a 32 bit kernel (<=2.6)
17536	   if test -x /usr/bin/isainfo; then
17537		# check for 64 bit platform
17538		if isainfo -kv | grep '^64-bit'; then
17539			COMPILE_64BIT_KMODULE=yes
17540		fi
17541	   fi
17542
17543	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_64BIT_KMODULE" >&5
17544$as_echo "$COMPILE_64BIT_KMODULE" >&6; }
17545
17546	   if test "${GCC}" = yes; then
17547		COMPILE_KERNEL_GCC=yes
17548		if test "$COMPILE_64BIT_KMODULE" = yes; then
17549
17550                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build a 64bit kernel module" >&5
17551$as_echo_n "checking if we can build a 64bit kernel module... " >&6; }
17552
17553                        case `$CC --version 2>/dev/null` in
17554			[12].* | 3.0.*)
17555				COMPILE_64BIT_KMODULE=no
17556				COMPILE_KERNEL_GCC=no
17557				solaris_module=no;;
17558			*)
17559			       	# use for 64 bit
17560				KCFLAGS="-m64"
17561				#KLDFLAGS="-melf64_sparc"
17562				KLDFLAGS="-64";;
17563			esac
17564
17565			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_64BIT_KMODULE" >&5
17566$as_echo "$COMPILE_64BIT_KMODULE" >&6; }
17567
17568		else
17569			KCFLAGS=""
17570			KLDFLAGS=""
17571		fi
17572		KCFLAGS="$KCFLAGS -D_KERNEL -Wall -Wstrict-prototypes"
17573           else
17574		if test "$COMPILE_64BIT_KMODULE" = yes; then
17575                # use Sun CC (for a 64-bit kernel, uncomment " -xarch=v9 -xregs=no%appl ")
17576 			KCFLAGS="-xarch=v9 -xregs=no%appl"
17577			KLDFLAGS="-64"
17578		else
17579 			KCFLAGS=""
17580			KLDFLAGS=""
17581		fi
17582		KCFLAGS="-D_KERNEL $KCFLAGS -mno-app-regs -munaligned-doubles -fpcc-struct-return"
17583	   fi
17584
17585           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeout_id_t" >&5
17586$as_echo_n "checking for timeout_id_t... " >&6; }
17587if ${netatalk_cv_HAVE_TIMEOUT_ID_T+:} false; then :
17588  $as_echo_n "(cached) " >&6
17589else
17590
17591           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17592/* end confdefs.h.  */
17593\
17594#include <sys/stream.h>
17595#include <sys/ddi.h>
17596int
17597main ()
17598{
17599\
17600timeout_id_t dummy;
17601
17602  ;
17603  return 0;
17604}
17605_ACEOF
17606if ac_fn_c_try_link "$LINENO"; then :
17607  netatalk_cv_HAVE_TIMEOUT_ID_T=yes
17608else
17609  netatalk_cv_HAVE_TIMEOUT_ID_T=no
17610fi
17611rm -f core conftest.err conftest.$ac_objext \
17612    conftest$ac_exeext conftest.$ac_ext
17613fi
17614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_HAVE_TIMEOUT_ID_T" >&5
17615$as_echo "$netatalk_cv_HAVE_TIMEOUT_ID_T" >&6; }
17616
17617
17618$as_echo "#define HAVE_TIMEOUT_ID_T test x\"\$netatalk_cv_HAVE_TIMEOUT_ID\" = x\"yes\"" >>confdefs.h
17619
17620	fi
17621
17622
17623
17624
17625
17626fi
17627
17628if test x"$this_os" = "xtru64"; then
17629	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  * Tru64 specific configuration" >&5
17630$as_echo " * Tru64 specific configuration" >&6; }
17631
17632$as_echo "#define NO_DDP 1" >>confdefs.h
17633
17634
17635$as_echo "#define HAVE_64BIT_LONGS 1" >>confdefs.h
17636
17637
17638$as_echo "#define USE_OLD_RQUOTA 1" >>confdefs.h
17639
17640
17641$as_echo "#define TRU64 1" >>confdefs.h
17642
17643
17644$as_echo "#define _OSF_SOURCE 1" >>confdefs.h
17645
17646
17647$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
17648
17649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for set_auth_parameters in -lsecurity" >&5
17650$as_echo_n "checking for set_auth_parameters in -lsecurity... " >&6; }
17651if ${ac_cv_lib_security_set_auth_parameters+:} false; then :
17652  $as_echo_n "(cached) " >&6
17653else
17654  ac_check_lib_save_LIBS=$LIBS
17655LIBS="-lsecurity  $LIBS"
17656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17657/* end confdefs.h.  */
17658
17659/* Override any GCC internal prototype to avoid an error.
17660   Use char because int might match the return type of a GCC
17661   builtin and then its argument prototype would still apply.  */
17662#ifdef __cplusplus
17663extern "C"
17664#endif
17665char set_auth_parameters ();
17666int
17667main ()
17668{
17669return set_auth_parameters ();
17670  ;
17671  return 0;
17672}
17673_ACEOF
17674if ac_fn_c_try_link "$LINENO"; then :
17675  ac_cv_lib_security_set_auth_parameters=yes
17676else
17677  ac_cv_lib_security_set_auth_parameters=no
17678fi
17679rm -f core conftest.err conftest.$ac_objext \
17680    conftest$ac_exeext conftest.$ac_ext
17681LIBS=$ac_check_lib_save_LIBS
17682fi
17683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_security_set_auth_parameters" >&5
17684$as_echo "$ac_cv_lib_security_set_auth_parameters" >&6; }
17685if test "x$ac_cv_lib_security_set_auth_parameters" = xyes; then :
17686  cat >>confdefs.h <<_ACEOF
17687#define HAVE_LIBSECURITY 1
17688_ACEOF
17689
17690  LIBS="-lsecurity $LIBS"
17691
17692fi
17693
17694	CFLAGS="-I\$(top_srcdir)/sys/tru64 $CFLAGS"
17695	need_dash_r=no
17696	sysv_style=tru64
17697fi
17698
17699netatalk_cv_search_sendfile=yes
17700# Check whether --enable-sendfile was given.
17701if test "${enable_sendfile+set}" = set; then :
17702  enableval=$enable_sendfile; if test x"$enableval" = x"no"; then
17703            netatalk_cv_search_sendfile=no
17704        fi
17705
17706fi
17707
17708
17709if test x"$netatalk_cv_search_sendfile" = x"yes"; then
17710   case "$host_os" in
17711   *linux*)
17712
17713$as_echo "#define SENDFILE_FLAVOR_LINUX 1" >>confdefs.h
17714
17715        ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
17716if test "x$ac_cv_func_sendfile" = xyes; then :
17717  netatalk_cv_HAVE_SENDFILE=yes
17718fi
17719
17720        ;;
17721
17722    *solaris*)
17723
17724$as_echo "#define SENDFILE_FLAVOR_SOLARIS 1" >>confdefs.h
17725
17726        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
17727$as_echo_n "checking for library containing sendfile... " >&6; }
17728if ${ac_cv_search_sendfile+:} false; then :
17729  $as_echo_n "(cached) " >&6
17730else
17731  ac_func_search_save_LIBS=$LIBS
17732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17733/* end confdefs.h.  */
17734
17735/* Override any GCC internal prototype to avoid an error.
17736   Use char because int might match the return type of a GCC
17737   builtin and then its argument prototype would still apply.  */
17738#ifdef __cplusplus
17739extern "C"
17740#endif
17741char sendfile ();
17742int
17743main ()
17744{
17745return sendfile ();
17746  ;
17747  return 0;
17748}
17749_ACEOF
17750for ac_lib in '' sendfile; do
17751  if test -z "$ac_lib"; then
17752    ac_res="none required"
17753  else
17754    ac_res=-l$ac_lib
17755    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17756  fi
17757  if ac_fn_c_try_link "$LINENO"; then :
17758  ac_cv_search_sendfile=$ac_res
17759fi
17760rm -f core conftest.err conftest.$ac_objext \
17761    conftest$ac_exeext
17762  if ${ac_cv_search_sendfile+:} false; then :
17763  break
17764fi
17765done
17766if ${ac_cv_search_sendfile+:} false; then :
17767
17768else
17769  ac_cv_search_sendfile=no
17770fi
17771rm conftest.$ac_ext
17772LIBS=$ac_func_search_save_LIBS
17773fi
17774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
17775$as_echo "$ac_cv_search_sendfile" >&6; }
17776ac_res=$ac_cv_search_sendfile
17777if test "$ac_res" != no; then :
17778  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17779
17780fi
17781
17782        ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
17783if test "x$ac_cv_func_sendfile" = xyes; then :
17784  netatalk_cv_HAVE_SENDFILE=yes
17785fi
17786
17787        ;;
17788
17789    *freebsd*)
17790
17791$as_echo "#define SENDFILE_FLAVOR_BSD 1" >>confdefs.h
17792
17793        ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
17794if test "x$ac_cv_func_sendfile" = xyes; then :
17795  netatalk_cv_HAVE_SENDFILE=yes
17796fi
17797
17798        ;;
17799
17800    *)
17801        ;;
17802
17803    esac
17804
17805    if test x"$netatalk_cv_HAVE_SENDFILE" = x"yes"; then
17806
17807$as_echo "#define WITH_SENDFILE 1" >>confdefs.h
17808
17809    fi
17810fi
17811
17812
17813# Check whether --with-libgcrypt-dir was given.
17814if test "${with_libgcrypt_dir+set}" = set; then :
17815  withval=$with_libgcrypt_dir; libgcrypt_config_prefix="$withval"
17816else
17817  libgcrypt_config_prefix=""
17818fi
17819
17820  if test x$libgcrypt_config_prefix != x ; then
17821     if test x${LIBGCRYPT_CONFIG+set} != xset ; then
17822        LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
17823     fi
17824  fi
17825
17826  ok=no
17827
17828if test x$libgcrypt_config_prefix != xno ; then
17829
17830  # Extract the first word of "libgcrypt-config", so it can be a program name with args.
17831set dummy libgcrypt-config; ac_word=$2
17832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17833$as_echo_n "checking for $ac_word... " >&6; }
17834if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
17835  $as_echo_n "(cached) " >&6
17836else
17837  case $LIBGCRYPT_CONFIG in
17838  [\\/]* | ?:[\\/]*)
17839  ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
17840  ;;
17841  *)
17842  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17843for as_dir in $PATH
17844do
17845  IFS=$as_save_IFS
17846  test -z "$as_dir" && as_dir=.
17847    for ac_exec_ext in '' $ac_executable_extensions; do
17848  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17849    ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17851    break 2
17852  fi
17853done
17854  done
17855IFS=$as_save_IFS
17856
17857  test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
17858  ;;
17859esac
17860fi
17861LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
17862if test -n "$LIBGCRYPT_CONFIG"; then
17863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
17864$as_echo "$LIBGCRYPT_CONFIG" >&6; }
17865else
17866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17867$as_echo "no" >&6; }
17868fi
17869
17870
17871  tmp=1:1.2.3
17872  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
17873     req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
17874     min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
17875  else
17876     req_libgcrypt_api=0
17877     min_libgcrypt_version="$tmp"
17878  fi
17879
17880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
17881$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
17882  if test "$LIBGCRYPT_CONFIG" != "no" ; then
17883    req_major=`echo $min_libgcrypt_version | \
17884               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
17885    req_minor=`echo $min_libgcrypt_version | \
17886               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
17887    req_micro=`echo $min_libgcrypt_version | \
17888               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
17889    libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
17890    major=`echo $libgcrypt_config_version | \
17891               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
17892    minor=`echo $libgcrypt_config_version | \
17893               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
17894    micro=`echo $libgcrypt_config_version | \
17895               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
17896    if test "$major" -gt "$req_major"; then
17897        ok=yes
17898    else
17899        if test "$major" -eq "$req_major"; then
17900            if test "$minor" -gt "$req_minor"; then
17901               ok=yes
17902            else
17903               if test "$minor" -eq "$req_minor"; then
17904                   if test "$micro" -ge "$req_micro"; then
17905                     ok=yes
17906                   fi
17907               fi
17908            fi
17909	   fi
17910	fi
17911  fi
17912  if test $ok = yes; then
17913    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
17914$as_echo "yes ($libgcrypt_config_version)" >&6; }
17915  else
17916    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17917$as_echo "no" >&6; }
17918  fi
17919fi
17920
17921  if test $ok = yes; then
17922     # If we have a recent libgcrypt, we should also check that the
17923     # API is compatible
17924     if test "$req_libgcrypt_api" -gt 0 ; then
17925        tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
17926        if test "$tmp" -gt 0 ; then
17927           { $as_echo "$as_me:${as_lineno-$LINENO}: checking libgcrypt API version" >&5
17928$as_echo_n "checking libgcrypt API version... " >&6; }
17929           if test "$req_libgcrypt_api" -eq "$tmp" ; then
17930             { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
17931$as_echo "okay" >&6; }
17932           else
17933             ok=no
17934             { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
17935$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
17936           fi
17937        fi
17938     fi
17939  fi
17940  if test $ok = yes; then
17941     # Opensolaris 11/08 provided libgcrypt doesn't have CAST5,
17942     # so we better check the general case
17943      { $as_echo "$as_me:${as_lineno-$LINENO}: checking libgcrypt hast CAST5 API" >&5
17944$as_echo_n "checking libgcrypt hast CAST5 API... " >&6; }
17945      cast=`$LIBGCRYPT_CONFIG --algorithms 2>/dev/null | grep cast5 | sed 's/\(.*\)\(cast5\)\(.*\)/\2/'`
17946      if test x$cast = xcast5 ; then
17947        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17948$as_echo "yes" >&6; }
17949      else
17950        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17951$as_echo "no" >&6; }
17952        echo "***          Detected libgcryt without CAST5              ***"
17953        echo "*** Please install/build another one and point to it with ***"
17954        echo "***         --with-libgcrypt-dir=<path-to-lib>            ***"
17955        ok=no
17956      fi
17957  fi
17958
17959  if test $ok = yes; then
17960    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
17961    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
17962    neta_cv_compile_dhx2=yes
17963			neta_cv_have_libgcrypt=yes
17964			{ $as_echo "$as_me:${as_lineno-$LINENO}: Enabling DHX2 UAM" >&5
17965$as_echo "$as_me: Enabling DHX2 UAM" >&6;}
17966
17967$as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
17968
17969
17970$as_echo "#define UAM_DHX2 1" >>confdefs.h
17971
17972
17973  else
17974    LIBGCRYPT_CFLAGS=""
17975    LIBGCRYPT_LIBS=""
17976    :
17977  fi
17978
17979
17980
17981
17982
17983
17984# Check whether --with-ssl-dir was given.
17985if test "${with_ssl_dir+set}" = set; then :
17986  withval=$with_ssl_dir;
17987			if test "x$withval" = "xno"; then
17988				tryssl=no
17989			elif test "x$withval" = "xyes"; then
17990				tryssl=yes
17991				tryssldir=
17992			else
17993								tryssl=yes
17994				tryssldir="$withval"
17995			fi
17996
17997else
17998  tryssl=yes
17999
18000fi
18001
18002
18003	SSL_CFLAGS=""
18004	SSL_LIBS=""
18005	saved_LIBS=$LIBS
18006	saved_CFLAGS=$CFLAGS
18007	neta_cv_have_openssl=no
18008
18009		[ -n "$atalk_libname" ] || as_fn_error $? "internal error, atalk_libname undefined" "$LINENO" 5
18010
18011	if test "$tryssl" = "yes"; then
18012		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
18013$as_echo_n "checking for SSL... " >&6; }
18014		for ssldir in "" $tryssldir /usr /usr/local/openssl /usr/$atalk_libname/openssl /usr/local/ssl /usr/$atalk_libname/ssl /usr/local /usr/pkg /opt /opt/openssl /usr/local/ssl ; do
18015			if test -f "$ssldir/include/openssl/cast.h" ; then
18016				SSL_CFLAGS="$SSL_CFLAGS -I$ssldir/include -I$ssldir/include/openssl"
18017				SSL_LIBS="$SSL_LIBS -L$ssldir/$atalk_libname -L$ssldir -lcrypto"
18018				if test "x$need_dash_r" = "xyes"; then
18019					SSL_LIBS="$SSL_LIBS -R$ssldir/$atalk_libname -R$ssldir"
18020				fi
18021				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir (enabling RANDNUM and DHX support)" >&5
18022$as_echo "$ssldir (enabling RANDNUM and DHX support)" >&6; }
18023				CFLAGS="$CFLAGS $SSL_CFLAGS"
18024				LIBS="$LIBS $SSL_LIBS"
18025
18026								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
18027$as_echo_n "checking for main in -lcrypto... " >&6; }
18028if ${ac_cv_lib_crypto_main+:} false; then :
18029  $as_echo_n "(cached) " >&6
18030else
18031  ac_check_lib_save_LIBS=$LIBS
18032LIBS="-lcrypto  $LIBS"
18033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18034/* end confdefs.h.  */
18035
18036
18037int
18038main ()
18039{
18040return main ();
18041  ;
18042  return 0;
18043}
18044_ACEOF
18045if ac_fn_c_try_link "$LINENO"; then :
18046  ac_cv_lib_crypto_main=yes
18047else
18048  ac_cv_lib_crypto_main=no
18049fi
18050rm -f core conftest.err conftest.$ac_objext \
18051    conftest$ac_exeext conftest.$ac_ext
18052LIBS=$ac_check_lib_save_LIBS
18053fi
18054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
18055$as_echo "$ac_cv_lib_crypto_main" >&6; }
18056if test "x$ac_cv_lib_crypto_main" = xyes; then :
18057  cat >>confdefs.h <<_ACEOF
18058#define HAVE_LIBCRYPTO 1
18059_ACEOF
18060
18061  LIBS="-lcrypto $LIBS"
18062
18063fi
18064
18065								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldes" >&5
18066$as_echo_n "checking for main in -ldes... " >&6; }
18067if ${ac_cv_lib_des_main+:} false; then :
18068  $as_echo_n "(cached) " >&6
18069else
18070  ac_check_lib_save_LIBS=$LIBS
18071LIBS="-ldes  $LIBS"
18072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18073/* end confdefs.h.  */
18074
18075
18076int
18077main ()
18078{
18079return main ();
18080  ;
18081  return 0;
18082}
18083_ACEOF
18084if ac_fn_c_try_link "$LINENO"; then :
18085  ac_cv_lib_des_main=yes
18086else
18087  ac_cv_lib_des_main=no
18088fi
18089rm -f core conftest.err conftest.$ac_objext \
18090    conftest$ac_exeext conftest.$ac_ext
18091LIBS=$ac_check_lib_save_LIBS
18092fi
18093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_main" >&5
18094$as_echo "$ac_cv_lib_des_main" >&6; }
18095if test "x$ac_cv_lib_des_main" = xyes; then :
18096  cat >>confdefs.h <<_ACEOF
18097#define HAVE_LIBDES 1
18098_ACEOF
18099
18100  LIBS="-ldes $LIBS"
18101
18102fi
18103
18104
18105
18106$as_echo "#define OPENSSL_DHX 1" >>confdefs.h
18107
18108
18109$as_echo "#define UAM_DHX 1" >>confdefs.h
18110
18111				neta_cv_have_openssl=yes
18112				neta_cv_compile_dhx=yes
18113				CFLAGS=$saved_CFLAGS
18114				LIBS=$saved_LIBS
18115				break
18116			fi
18117		done
18118		if test "x$neta_cv_have_openssl" = "xno"; then
18119			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18120$as_echo "no" >&6; }
18121		fi
18122	fi
18123
18124  ac_new_flags=""
18125  for i in $SSL_CFLAGS; do
18126    case $i in
18127    -I/usr/include|-I/usr/include/) ;;
18128    *) ac_new_flags="$ac_new_flags $i" ;;
18129    esac
18130  done
18131  SSL_CFLAGS=$ac_new_flags
18132
18133
18134  ac_new_flags=""
18135  for i in $SSL_LIBS; do
18136    case $i in
18137    -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
18138    *) ac_new_flags="$ac_new_flags $i" ;;
18139    esac
18140  done
18141  SSL_LIBS=$ac_new_flags
18142
18143
18144
18145	LIBS=$saved_LIBS
18146
18147
18148if test "x$bdb_required" = "xyes"; then
18149
18150    trybdbdir=""
18151    dobdbsearch=yes
18152    bdb_search_dirs="/usr/local /usr"
18153    search_subdirs="/ /db5 /db5.1 /db51 /db5.0 /db50 /db4.8 /db48 /db4.7 /db47 /db4.6 /db46 /db4"
18154
18155    bdbfound=no
18156    savedcflags="$CFLAGS"
18157    savedldflags="$LDFLAGS"
18158    savedcppflags="$CPPFLAGS"
18159    savedlibs="$LIBS"
18160    saved_shlibpath_var=$shlibpath_var
18161
18162        DB_MAJOR_REQ=4
18163    DB_MINOR_REQ=6
18164    DB_PATCH_REQ=0
18165
18166        [ -n "$atalk_libname" ] || as_fn_error $? "internal error, atalk_libname undefined" "$LINENO" 5
18167    saved_atalk_libname=$atalk_libname
18168
18169
18170cat >>confdefs.h <<_ACEOF
18171#define DB_MAJOR_REQ ${DB_MAJOR_REQ}
18172_ACEOF
18173
18174
18175cat >>confdefs.h <<_ACEOF
18176#define DB_MINOR_REQ ${DB_MINOR_REQ}
18177_ACEOF
18178
18179
18180cat >>confdefs.h <<_ACEOF
18181#define DB_PATCH_REQ ${DB_PATCH_REQ}
18182_ACEOF
18183
18184
18185
18186# Check whether --with-bdb was given.
18187if test "${with_bdb+set}" = set; then :
18188  withval=$with_bdb; if test "x$withval" = "xno"; then
18189            dobdbsearch=no
18190        elif test "x$withval" = "xyes"; then
18191            dobdbsearch=yes
18192        else
18193            bdb_search_dirs="$withval"
18194        fi
18195
18196fi
18197
18198
18199    if test "x$dobdbsearch" = "xyes"; then
18200        for bdbdir in $bdb_search_dirs; do
18201            if test $bdbfound = "yes"; then
18202                break;
18203            fi
18204            for subdir in ${search_subdirs}; do
18205                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB headers in ${bdbdir}/include${subdir}" >&5
18206$as_echo_n "checking for Berkeley DB headers in ${bdbdir}/include${subdir}... " >&6; }
18207                                if test -f "${bdbdir}/include${subdir}/db.h" ; then
18208                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18209$as_echo "yes" >&6; }
18210
18211
18212        { $as_echo "$as_me:${as_lineno-$LINENO}: checking ${bdbdir}/include${subdir}/db.h version >= ${DB_MAJOR_REQ}.${DB_MINOR_REQ}.${DB_PATCH_REQ}" >&5
18213$as_echo_n "checking ${bdbdir}/include${subdir}/db.h version >= ${DB_MAJOR_REQ}.${DB_MINOR_REQ}.${DB_PATCH_REQ}... " >&6; }
18214
18215    atalk_cv_bdb_MAJOR=`grep DB_VERSION_MAJOR "${bdbdir}/include${subdir}/db.h" | cut -f 3`
18216    atalk_cv_bdb_MINOR=`grep DB_VERSION_MINOR "${bdbdir}/include${subdir}/db.h" | cut -f 3`
18217
18218    if test $atalk_cv_bdb_MAJOR -gt $DB_MAJOR_REQ ; then
18219        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18220$as_echo "yes" >&6; }
18221        atalk_cv_bdbheader=yes
18222    elif test $DB_MAJOR_REQ -gt $atalk_cv_bdb_MAJOR ; then
18223        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18224$as_echo "no" >&6; }
18225        atalk_cv_bdbheader=no
18226    elif test $DB_MINOR_REQ -gt $atalk_cv_bdb_MINOR ; then
18227        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18228$as_echo "no" >&6; }
18229        atalk_cv_bdbheader=no
18230    else
18231        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18232$as_echo "yes" >&6; }
18233        atalk_cv_bdbheader=yes
18234    fi
18235
18236
18237                    if test ${atalk_cv_bdbheader} != "no"; then
18238                        bdblibdir="${bdbdir}/${atalk_libname}"
18239                        bdbbindir="${bdbdir}/bin"
18240
18241                        CPPFLAGS="-I${bdbdir}/include${subdir} $CPPFLAGS"
18242                        LDFLAGS="-L$bdblibdir $LDFLAGS"
18243
18244                                                                                                                                                                        eval export $shlibpath_var=$bdblibdir
18245
18246    atalk_cv_bdb_version=no
18247    maj=$atalk_cv_bdb_MAJOR
18248    min=$atalk_cv_bdb_MINOR
18249    atalk_cv_bdb_try_libs="db$maj$min db$maj.$min db-$maj$min db-$maj.$min db$maj-$maj.$min db"
18250
18251    for lib in $atalk_cv_bdb_try_libs ; do
18252        LIBS="-l$lib $savedlibs"
18253        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Berkeley DB library (-l$lib)" >&5
18254$as_echo_n "checking Berkeley DB library (-l$lib)... " >&6; }
18255        if test "$cross_compiling" = yes; then :
18256
18257            bdblibs=`ls $bdblibdir/lib$lib.* 2>/dev/null`
18258            for bdblib in $bdblibs ; do
18259                echo "Testing for lib file $bdblib" >&5
18260                if test -f "$bdblib" ; then
18261                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (cross-compiling)" >&5
18262$as_echo "yes (cross-compiling)" >&6; }
18263                    atalk_cv_bdb_version="yes"
18264                    atalk_cv_lib_db="-l$lib"
18265                    break
18266                fi
18267            done
18268            if test "x$atalk_cv_bdb_version" = "xyes" ; then
18269                break
18270            fi
18271            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cross-compiling)" >&5
18272$as_echo "no (cross-compiling)" >&6; }
18273
18274else
18275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276/* end confdefs.h.  */
18277
18278            #include <stdio.h>
18279            #include <db.h>
18280            int main(void) {
18281                int major, minor, patch;
18282                char *version_str;
18283                version_str = db_version(&major, &minor, &patch);
18284                if ((major*100 + minor*10 + patch) < (DB_MAJOR_REQ*100 + DB_MINOR_REQ*10 + DB_PATCH_REQ)) {
18285                    printf("linking wrong library version (%d.%d.%d), ",major, minor, patch);
18286                    return (2);
18287                }
18288                if ( major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR || patch != DB_VERSION_PATCH) {
18289                    printf("header/library version mismatch (%d.%d.%d/%d.%d.%d), ",
18290                        DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH, major, minor, patch);
18291                    return (3);
18292                }
18293                printf("%d.%d.%d ... ",major, minor, patch);
18294                return (0);
18295            }
18296
18297_ACEOF
18298if ac_fn_c_try_run "$LINENO"; then :
18299
18300            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18301$as_echo "yes" >&6; }
18302            atalk_cv_bdb_version="yes"
18303            atalk_cv_lib_db="-l$lib"
18304            break
18305
18306else
18307
18308            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18309$as_echo "no" >&6; }
18310
18311fi
18312rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18313  conftest.$ac_objext conftest.beam conftest.$ac_ext
18314fi
18315
18316    done
18317    LIBS="$savedlibs"
18318
18319                        eval export $shlibpath_var=$saved_shlibpath_var
18320
18321                        if test x"${atalk_cv_bdb_version}" = x"yes"; then
18322                            BDB_CFLAGS="-I${bdbdir}/include${subdir}"
18323                            BDB_LIBS="-L${bdblibdir} ${atalk_cv_lib_db}"
18324                            BDB_BIN="$bdbbindir"
18325                            BDB_PATH="$bdbdir"
18326                            bdbfound=yes
18327                            break;
18328                        fi
18329
18330                                                                                                if test x"$atalk_libname" != x"lib" ; then
18331                           bdblibdir="${bdbdir}/lib"
18332                           bdbbindir="${bdbdir}/bin"
18333
18334                           CPPFLAGS="-I${bdbdir}/include${subdir} $CPPFLAGS"
18335                           LDFLAGS="-L$bdblibdir $LDFLAGS"
18336
18337                           eval export $shlibpath_var=$bdblibdir
18338
18339    atalk_cv_bdb_version=no
18340    maj=$atalk_cv_bdb_MAJOR
18341    min=$atalk_cv_bdb_MINOR
18342    atalk_cv_bdb_try_libs="db$maj$min db$maj.$min db-$maj$min db-$maj.$min db$maj-$maj.$min db"
18343
18344    for lib in $atalk_cv_bdb_try_libs ; do
18345        LIBS="-l$lib $savedlibs"
18346        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Berkeley DB library (-l$lib)" >&5
18347$as_echo_n "checking Berkeley DB library (-l$lib)... " >&6; }
18348        if test "$cross_compiling" = yes; then :
18349
18350            bdblibs=`ls $bdblibdir/lib$lib.* 2>/dev/null`
18351            for bdblib in $bdblibs ; do
18352                echo "Testing for lib file $bdblib" >&5
18353                if test -f "$bdblib" ; then
18354                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (cross-compiling)" >&5
18355$as_echo "yes (cross-compiling)" >&6; }
18356                    atalk_cv_bdb_version="yes"
18357                    atalk_cv_lib_db="-l$lib"
18358                    break
18359                fi
18360            done
18361            if test "x$atalk_cv_bdb_version" = "xyes" ; then
18362                break
18363            fi
18364            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cross-compiling)" >&5
18365$as_echo "no (cross-compiling)" >&6; }
18366
18367else
18368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369/* end confdefs.h.  */
18370
18371            #include <stdio.h>
18372            #include <db.h>
18373            int main(void) {
18374                int major, minor, patch;
18375                char *version_str;
18376                version_str = db_version(&major, &minor, &patch);
18377                if ((major*100 + minor*10 + patch) < (DB_MAJOR_REQ*100 + DB_MINOR_REQ*10 + DB_PATCH_REQ)) {
18378                    printf("linking wrong library version (%d.%d.%d), ",major, minor, patch);
18379                    return (2);
18380                }
18381                if ( major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR || patch != DB_VERSION_PATCH) {
18382                    printf("header/library version mismatch (%d.%d.%d/%d.%d.%d), ",
18383                        DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH, major, minor, patch);
18384                    return (3);
18385                }
18386                printf("%d.%d.%d ... ",major, minor, patch);
18387                return (0);
18388            }
18389
18390_ACEOF
18391if ac_fn_c_try_run "$LINENO"; then :
18392
18393            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18394$as_echo "yes" >&6; }
18395            atalk_cv_bdb_version="yes"
18396            atalk_cv_lib_db="-l$lib"
18397            break
18398
18399else
18400
18401            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18402$as_echo "no" >&6; }
18403
18404fi
18405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18406  conftest.$ac_objext conftest.beam conftest.$ac_ext
18407fi
18408
18409    done
18410    LIBS="$savedlibs"
18411
18412                           eval export $shlibpath_var=$saved_shlibpath_var
18413
18414                           if test x"${atalk_cv_bdb_version}" = x"yes"; then
18415                              BDB_CFLAGS="-I${bdbdir}/include${subdir}"
18416                              BDB_LIBS="-L${bdblibdir} ${atalk_cv_lib_db}"
18417                              BDB_BIN="$bdbbindir"
18418                              BDB_PATH="$bdbdir"
18419                              bdbfound=yes
18420                              break;
18421                           fi
18422                        fi
18423                    fi
18424                    CFLAGS="$savedcflags"
18425                    LDFLAGS="$savedldflags"
18426                    CPPFLAGS="$savedcppflags"
18427                    LIBS="$savedlibs"
18428                else
18429                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18430$as_echo "no" >&6; }
18431                fi
18432            done
18433        done
18434    fi
18435
18436    CFLAGS="$savedcflags"
18437    LDFLAGS="$savedldflags"
18438    CPPFLAGS="$savedcppflags"
18439    LIBS="$savedlibs"
18440    atalk_libname=$saved_atalk_libname
18441
18442    if test "x$bdbfound" = "xyes"; then
18443        :
18444    else
18445
18446		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18447$as_echo "" >&6; }
18448		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Make sure you have the required Berkeley DB libraries AND headers installed." >&5
18449$as_echo "Make sure you have the required Berkeley DB libraries AND headers installed." >&6; }
18450		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: You can download the latest version from http://www.sleepycat.com." >&5
18451$as_echo "You can download the latest version from http://www.sleepycat.com." >&6; }
18452		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: If you have installed BDB in a non standard location use the" >&5
18453$as_echo "If you have installed BDB in a non standard location use the" >&6; }
18454		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-bdb=/path/to/bdb configure option and make sure" >&5
18455$as_echo "--with-bdb=/path/to/bdb configure option and make sure" >&6; }
18456		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: your linker is configured to check for libraries there." >&5
18457$as_echo "your linker is configured to check for libraries there." >&6; }
18458		as_fn_error $? "Berkeley DB library required but not found!" "$LINENO" 5
18459
18460    fi
18461
18462
18463  ac_new_flags=""
18464  for i in $BDB_CFLAGS; do
18465    case $i in
18466    -I/usr/include|-I/usr/include/) ;;
18467    *) ac_new_flags="$ac_new_flags $i" ;;
18468    esac
18469  done
18470  BDB_CFLAGS=$ac_new_flags
18471
18472
18473  ac_new_flags=""
18474  for i in $BDB_LIBS; do
18475    case $i in
18476    -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
18477    *) ac_new_flags="$ac_new_flags $i" ;;
18478    esac
18479  done
18480  BDB_LIBS=$ac_new_flags
18481
18482
18483
18484
18485
18486
18487fi
18488
18489
18490
18491	saveLIBS=$LIBS
18492	LIBS=""
18493	CRYPT_LIBS=""
18494
18495	for ac_header in crypt.h
18496do :
18497  ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
18498if test "x$ac_cv_header_crypt_h" = xyes; then :
18499  cat >>confdefs.h <<_ACEOF
18500#define HAVE_CRYPT_H 1
18501_ACEOF
18502
18503fi
18504
18505done
18506
18507	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
18508$as_echo_n "checking for main in -lcrypt... " >&6; }
18509if ${ac_cv_lib_crypt_main+:} false; then :
18510  $as_echo_n "(cached) " >&6
18511else
18512  ac_check_lib_save_LIBS=$LIBS
18513LIBS="-lcrypt  $LIBS"
18514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18515/* end confdefs.h.  */
18516
18517
18518int
18519main ()
18520{
18521return main ();
18522  ;
18523  return 0;
18524}
18525_ACEOF
18526if ac_fn_c_try_link "$LINENO"; then :
18527  ac_cv_lib_crypt_main=yes
18528else
18529  ac_cv_lib_crypt_main=no
18530fi
18531rm -f core conftest.err conftest.$ac_objext \
18532    conftest$ac_exeext conftest.$ac_ext
18533LIBS=$ac_check_lib_save_LIBS
18534fi
18535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
18536$as_echo "$ac_cv_lib_crypt_main" >&6; }
18537if test "x$ac_cv_lib_crypt_main" = xyes; then :
18538  cat >>confdefs.h <<_ACEOF
18539#define HAVE_LIBCRYPT 1
18540_ACEOF
18541
18542  LIBS="-lcrypt $LIBS"
18543
18544fi
18545
18546
18547	CRYPT_LIBS=$LIBS
18548	LIBS=$saveLIBS
18549
18550
18551
18552
18553
18554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the PGP UAM should be build" >&5
18555$as_echo_n "checking whether the PGP UAM should be build... " >&6; }
18556# Check whether --enable-pgp-uam was given.
18557if test "${enable_pgp_uam+set}" = set; then :
18558  enableval=$enable_pgp_uam;
18559	if test "$enableval" = "yes"; then
18560		if test "x$neta_cv_have_openssl" = "xyes"; then
18561
18562$as_echo "#define UAM_PGP 1" >>confdefs.h
18563
18564			compile_pgp=yes
18565			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18566$as_echo "yes" >&6; }
18567		else
18568			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18569$as_echo "no" >&6; }
18570		fi
18571	fi
18572
18573else
18574
18575		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18576$as_echo "no" >&6; }
18577
18578
18579fi
18580
18581
18582
18583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Kerberos IV UAM should be build" >&5
18584$as_echo_n "checking whether the Kerberos IV UAM should be build... " >&6; }
18585# Check whether --enable-krb4-uam was given.
18586if test "${enable_krb4_uam+set}" = set; then :
18587  enableval=$enable_krb4_uam;
18588	if test "$enableval" = "yes"; then
18589
18590$as_echo "#define UAM_KRB4 1" >>confdefs.h
18591
18592		compile_kerberos=yes
18593		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18594$as_echo "yes" >&6; }
18595	else
18596		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18597$as_echo "no" >&6; }
18598	fi
18599
18600else
18601
18602		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18603$as_echo "no" >&6; }
18604
18605
18606fi
18607
18608
18609
18610netatalk_cv_build_krb5_uam=no
18611# Check whether --enable-krbV-uam was given.
18612if test "${enable_krbV_uam+set}" = set; then :
18613  enableval=$enable_krbV_uam;
18614		if test x"$enableval" = x"yes"; then
18615
18616	FOUND_GSSAPI=no
18617	GSSAPI_LIBS=""
18618	GSSAPI_CFLAGS=""
18619
18620
18621# Check whether --with-gssapi was given.
18622if test "${with_gssapi+set}" = set; then :
18623  withval=$with_gssapi; compilegssapi=$withval
18624else
18625  compilegssapi=auto
18626
18627fi
18628
18629
18630	if test x"$compilegssapi" != x"no"; then
18631
18632                if test "x$compilegssapi" != "xyes" -a "x$compilegssapi" != "xauto"; then
18633            		GSSAPI_CFLAGS="-I$withval/include"
18634            		GSSAPI_CPPFLAGS="-I$withval/include"
18635            		GSSAPI_LDFLAGS="-L$withval/${atalk_libname}"
18636            		FOUND_GSSAPI=yes
18637			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for GSSAPI support in" >&5
18638$as_echo_n "checking checking for GSSAPI support in... " >&6; }
18639			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $compilegssapi" >&5
18640$as_echo "$compilegssapi" >&6; }
18641                fi
18642
18643
18644  	  # Do no harm to the values of CFLAGS and LIBS while testing for
18645	  # Kerberos support.
18646
18647		save_CFLAGS=$CFLAGS
18648		save_CPPFLAGS=$CPPFLAGS
18649		save_LDFLAGS=$LDFLAGS
18650		save_LIBS=$LIBS
18651
18652	if test x$FOUND_GSSAPI = x"no"; then
18653	  #################################################
18654	  # check for krb5-config from recent MIT and Heimdal kerberos 5
18655	  # Extract the first word of "krb5-config", so it can be a program name with args.
18656set dummy krb5-config; ac_word=$2
18657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18658$as_echo_n "checking for $ac_word... " >&6; }
18659if ${ac_cv_path_KRB5_CONFIG+:} false; then :
18660  $as_echo_n "(cached) " >&6
18661else
18662  case $KRB5_CONFIG in
18663  [\\/]* | ?:[\\/]*)
18664  ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
18665  ;;
18666  *)
18667  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18668for as_dir in $PATH
18669do
18670  IFS=$as_save_IFS
18671  test -z "$as_dir" && as_dir=.
18672    for ac_exec_ext in '' $ac_executable_extensions; do
18673  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18674    ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18676    break 2
18677  fi
18678done
18679  done
18680IFS=$as_save_IFS
18681
18682  ;;
18683esac
18684fi
18685KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
18686if test -n "$KRB5_CONFIG"; then
18687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
18688$as_echo "$KRB5_CONFIG" >&6; }
18689else
18690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18691$as_echo "no" >&6; }
18692fi
18693
18694
18695	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working krb5-config" >&5
18696$as_echo_n "checking for working krb5-config... " >&6; }
18697	  if test -x "$KRB5_CONFIG"; then
18698	    TEMP="`$KRB5_CONFIG --libs gssapi`"
18699        if test $? -eq 0 ; then
18700	        save_CFLAGS=$CFLAGS
18701	    CFLAGS="";export CFLAGS
18702	        save_LDFLAGS=$LDFLAGS
18703	    LDFLAGS="";export LDFLAGS
18704	    GSSAPI_CFLAGS="`$KRB5_CONFIG --cflags | sed s/@INCLUDE_des@//`"
18705	    GSSAPI_CPPFLAGS="`$KRB5_CONFIG --cflags | sed s/@INCLUDE_des@//`"
18706            GSSAPI_LIBS="$TEMP"
18707	        CFLAGS=$save_CFLAGS;export CFLAGS
18708	        LDFLAGS=$save_LDFLAGS;export LDFLAGS
18709	    FOUND_GSSAPI=yes
18710	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18711$as_echo "yes" >&6; }
18712	  else
18713	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Fallback to previous krb5 detection strategy" >&5
18714$as_echo "no. Fallback to previous krb5 detection strategy" >&6; }
18715	  fi
18716	  else
18717	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Fallback to previous krb5 detection strategy" >&5
18718$as_echo "no. Fallback to previous krb5 detection strategy" >&6; }
18719	fi
18720	fi
18721
18722	if test x$FOUND_GSSAPI = x"no"; then
18723	#################################################
18724	# see if this box has the SuSE location for the heimdal krb implementation
18725	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/heimdal" >&5
18726$as_echo_n "checking for /usr/include/heimdal... " >&6; }
18727	  if test -d /usr/include/heimdal; then
18728	    if test -f /usr/lib/heimdal/lib/libkrb5.a; then
18729		GSSAPI_CFLAGS="-I/usr/include/heimdal"
18730		GSSAPI_CPPFLAGS="-I/usr/include/heimdal"
18731		GSSAPI_LDFLAGS="-L/usr/lib/heimdal/lib"
18732		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18733$as_echo "yes" >&6; }
18734            	FOUND_GSSAPI=yes
18735	    else
18736		GSSAPI_CFLAGS="-I/usr/include/heimdal"
18737		GSSAPI_CPPFLAGS="-I/usr/include/heimdal"
18738		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18739$as_echo "yes" >&6; }
18740            	FOUND_GSSAPI=yes
18741	    fi
18742	  else
18743	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18744$as_echo "no" >&6; }
18745	  fi
18746	fi
18747
18748	if test x$FOUND_GSSAPI = x"no"; then
18749	#################################################
18750	# see if this box has the RedHat location for kerberos
18751	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/kerberos" >&5
18752$as_echo_n "checking for /usr/kerberos... " >&6; }
18753	  if test -d /usr/kerberos -a -f /usr/kerberos/lib/libkrb5.a; then
18754		GSSAPI_LDFLAGS="-L/usr/kerberos/lib"
18755		GSSAPI_CFLAGS="-I/usr/kerberos/include"
18756		GSSAPI_CPPFLAGS="-I/usr/kerberos/include"
18757		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18758$as_echo "yes" >&6; }
18759	  else
18760		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18761$as_echo "no" >&6; }
18762	  fi
18763	fi
18764
18765	CFLAGS="$CFLAGS $GSSAPI_CFLAGS"
18766	CPPFLAGS="$CPPFLAGS $GSSAPI_CPPFLAGS"
18767	LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
18768	LIBS="$LIBS $GSSAPI_LIBS"
18769
18770
18771	# check for gssapi headers
18772
18773	gss_headers_found=no
18774	for ac_header in gssapi.h gssapi/gssapi_generic.h gssapi/gssapi.h gssapi/gssapi_krb5.h
18775do :
18776  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18777ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18778if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18779  cat >>confdefs.h <<_ACEOF
18780#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18781_ACEOF
18782 gss_headers_found=yes
18783fi
18784
18785done
18786
18787	if test x"$gss_headers_found" = x"no"; then
18788		as_fn_error $? "GSSAPI installation not found, headers missing" "$LINENO" 5
18789	fi
18790
18791	# check for libs
18792
18793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgssapi" >&5
18794$as_echo_n "checking for gss_display_status in -lgssapi... " >&6; }
18795if ${ac_cv_lib_gssapi_gss_display_status+:} false; then :
18796  $as_echo_n "(cached) " >&6
18797else
18798  ac_check_lib_save_LIBS=$LIBS
18799LIBS="-lgssapi  $LIBS"
18800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18801/* end confdefs.h.  */
18802
18803/* Override any GCC internal prototype to avoid an error.
18804   Use char because int might match the return type of a GCC
18805   builtin and then its argument prototype would still apply.  */
18806#ifdef __cplusplus
18807extern "C"
18808#endif
18809char gss_display_status ();
18810int
18811main ()
18812{
18813return gss_display_status ();
18814  ;
18815  return 0;
18816}
18817_ACEOF
18818if ac_fn_c_try_link "$LINENO"; then :
18819  ac_cv_lib_gssapi_gss_display_status=yes
18820else
18821  ac_cv_lib_gssapi_gss_display_status=no
18822fi
18823rm -f core conftest.err conftest.$ac_objext \
18824    conftest$ac_exeext conftest.$ac_ext
18825LIBS=$ac_check_lib_save_LIBS
18826fi
18827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_display_status" >&5
18828$as_echo "$ac_cv_lib_gssapi_gss_display_status" >&6; }
18829if test "x$ac_cv_lib_gssapi_gss_display_status" = xyes; then :
18830  cat >>confdefs.h <<_ACEOF
18831#define HAVE_LIBGSSAPI 1
18832_ACEOF
18833
18834  LIBS="-lgssapi $LIBS"
18835
18836fi
18837
18838	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgssapi_krb5" >&5
18839$as_echo_n "checking for gss_display_status in -lgssapi_krb5... " >&6; }
18840if ${ac_cv_lib_gssapi_krb5_gss_display_status+:} false; then :
18841  $as_echo_n "(cached) " >&6
18842else
18843  ac_check_lib_save_LIBS=$LIBS
18844LIBS="-lgssapi_krb5  $LIBS"
18845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18846/* end confdefs.h.  */
18847
18848/* Override any GCC internal prototype to avoid an error.
18849   Use char because int might match the return type of a GCC
18850   builtin and then its argument prototype would still apply.  */
18851#ifdef __cplusplus
18852extern "C"
18853#endif
18854char gss_display_status ();
18855int
18856main ()
18857{
18858return gss_display_status ();
18859  ;
18860  return 0;
18861}
18862_ACEOF
18863if ac_fn_c_try_link "$LINENO"; then :
18864  ac_cv_lib_gssapi_krb5_gss_display_status=yes
18865else
18866  ac_cv_lib_gssapi_krb5_gss_display_status=no
18867fi
18868rm -f core conftest.err conftest.$ac_objext \
18869    conftest$ac_exeext conftest.$ac_ext
18870LIBS=$ac_check_lib_save_LIBS
18871fi
18872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_display_status" >&5
18873$as_echo "$ac_cv_lib_gssapi_krb5_gss_display_status" >&6; }
18874if test "x$ac_cv_lib_gssapi_krb5_gss_display_status" = xyes; then :
18875  cat >>confdefs.h <<_ACEOF
18876#define HAVE_LIBGSSAPI_KRB5 1
18877_ACEOF
18878
18879  LIBS="-lgssapi_krb5 $LIBS"
18880
18881fi
18882
18883	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
18884$as_echo_n "checking for gss_display_status in -lgss... " >&6; }
18885if ${ac_cv_lib_gss_gss_display_status+:} false; then :
18886  $as_echo_n "(cached) " >&6
18887else
18888  ac_check_lib_save_LIBS=$LIBS
18889LIBS="-lgss  $LIBS"
18890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891/* end confdefs.h.  */
18892
18893/* Override any GCC internal prototype to avoid an error.
18894   Use char because int might match the return type of a GCC
18895   builtin and then its argument prototype would still apply.  */
18896#ifdef __cplusplus
18897extern "C"
18898#endif
18899char gss_display_status ();
18900int
18901main ()
18902{
18903return gss_display_status ();
18904  ;
18905  return 0;
18906}
18907_ACEOF
18908if ac_fn_c_try_link "$LINENO"; then :
18909  ac_cv_lib_gss_gss_display_status=yes
18910else
18911  ac_cv_lib_gss_gss_display_status=no
18912fi
18913rm -f core conftest.err conftest.$ac_objext \
18914    conftest$ac_exeext conftest.$ac_ext
18915LIBS=$ac_check_lib_save_LIBS
18916fi
18917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
18918$as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
18919if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
18920  cat >>confdefs.h <<_ACEOF
18921#define HAVE_LIBGSS 1
18922_ACEOF
18923
18924  LIBS="-lgss $LIBS"
18925
18926fi
18927
18928
18929	# check for functions
18930
18931  	ac_fn_c_check_func "$LINENO" "gss_acquire_cred" "ac_cv_func_gss_acquire_cred"
18932if test "x$ac_cv_func_gss_acquire_cred" = xyes; then :
18933
18934else
18935  as_fn_error $? "GSSAPI: required function gss_acquire_cred missing" "$LINENO" 5
18936fi
18937
18938
18939	# Heimdal/MIT compatibility fix
18940	if test "$ac_cv_header_gssapi_h" = "yes"; then
18941	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18942/* end confdefs.h.  */
18943#include <gssapi.h>
18944
18945_ACEOF
18946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18947  $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
18948
18949$as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
18950
18951fi
18952rm -f conftest*
18953
18954	else
18955	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18956/* end confdefs.h.  */
18957#include <gssapi/gssapi.h>
18958
18959_ACEOF
18960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18961  $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
18962
18963$as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
18964
18965fi
18966rm -f conftest*
18967
18968	fi
18969
18970
18971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GSSAPI support is used" >&5
18972$as_echo_n "checking whether GSSAPI support is used... " >&6; }
18973	if test x"$ac_cv_func_gss_acquire_cred" = x"yes"; then
18974
18975$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
18976
18977		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18978$as_echo "yes" >&6; }
18979		GSSAPI_LIBS="$LDFLAGS $LIBS"
18980	else
18981		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18982$as_echo "no" >&6; }
18983		if test x"$compilegssapi" = x"yes"; then
18984			as_fn_error $? "GSSAPI installation not found" "$LINENO" 5
18985		fi
18986        	GSSAPI_LIBS=""
18987	fi
18988
18989        LIBS="$save_LIBS"
18990        CFLAGS="$save_CFLAGS"
18991        LDFLAGS="$save_LDFLAGS"
18992        CPPFLAGS="$save_CPPFLAGS"
18993	fi
18994
18995        if test x"$ac_cv_func_gss_acquire_cred" = x"yes"; then
18996
18997				netatalk_cv_build_krb5_uam=yes
18998
18999        else
19000
19001				as_fn_error $? "need GSSAPI to build Kerberos V UAM" "$LINENO" 5
19002
19003        fi
19004
19005
19006
19007
19008
19009
19010
19011		fi
19012
19013
19014
19015fi
19016
19017
19018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Kerberos V UAM should be build" >&5
19019$as_echo_n "checking whether Kerberos V UAM should be build... " >&6; }
19020if test x"$netatalk_cv_build_krb5_uam" = x"yes"; then
19021	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19022$as_echo "yes" >&6; }
19023else
19024	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19025$as_echo "no" >&6; }
19026fi
19027 if test x"$netatalk_cv_build_krb5_uam" = x"yes"; then
19028  USE_GSSAPI_TRUE=
19029  USE_GSSAPI_FALSE='#'
19030else
19031  USE_GSSAPI_TRUE='#'
19032  USE_GSSAPI_FALSE=
19033fi
19034
19035
19036
19037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether configuration files should be overwritten" >&5
19038$as_echo_n "checking whether configuration files should be overwritten... " >&6; }
19039# Check whether --enable-overwrite was given.
19040if test "${enable_overwrite+set}" = set; then :
19041  enableval=$enable_overwrite; OVERWRITE_CONFIG="${enable_overwrite}"
19042else
19043  OVERWRITE_CONFIG="no"
19044
19045fi
19046
19047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OVERWRITE_CONFIG" >&5
19048$as_echo "$OVERWRITE_CONFIG" >&6; }
19049
19050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP (necessary for client-side ACL visibility)" >&5
19051$as_echo_n "checking for LDAP (necessary for client-side ACL visibility)... " >&6; }
19052
19053# Check whether --with-ldap was given.
19054if test "${with_ldap+set}" = set; then :
19055  withval=$with_ldap;  case "$withval" in
19056      yes|no)
19057          with_ldap="$withval"
19058		  ;;
19059      *)
19060          with_ldap=auto
19061          ;;
19062      esac
19063fi
19064
19065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
19066$as_echo "$with_ldap" >&6; }
19067
19068if test x"$with_ldap" != x"no" ; then
19069   	ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
19070if test "x$ac_cv_header_ldap_h" = xyes; then :
19071  with_ldap=yes
19072else
19073   if test x"$with_ldap" = x"yes" ; then
19074            as_fn_error $? "Missing LDAP headers" "$LINENO" 5
19075        fi
19076		with_ldap=no
19077
19078fi
19079
19080
19081	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -lldap" >&5
19082$as_echo_n "checking for ldap_init in -lldap... " >&6; }
19083if ${ac_cv_lib_ldap_ldap_init+:} false; then :
19084  $as_echo_n "(cached) " >&6
19085else
19086  ac_check_lib_save_LIBS=$LIBS
19087LIBS="-lldap  $LIBS"
19088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19089/* end confdefs.h.  */
19090
19091/* Override any GCC internal prototype to avoid an error.
19092   Use char because int might match the return type of a GCC
19093   builtin and then its argument prototype would still apply.  */
19094#ifdef __cplusplus
19095extern "C"
19096#endif
19097char ldap_init ();
19098int
19099main ()
19100{
19101return ldap_init ();
19102  ;
19103  return 0;
19104}
19105_ACEOF
19106if ac_fn_c_try_link "$LINENO"; then :
19107  ac_cv_lib_ldap_ldap_init=yes
19108else
19109  ac_cv_lib_ldap_ldap_init=no
19110fi
19111rm -f core conftest.err conftest.$ac_objext \
19112    conftest$ac_exeext conftest.$ac_ext
19113LIBS=$ac_check_lib_save_LIBS
19114fi
19115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_init" >&5
19116$as_echo "$ac_cv_lib_ldap_ldap_init" >&6; }
19117if test "x$ac_cv_lib_ldap_ldap_init" = xyes; then :
19118  with_ldap=yes
19119else
19120   if test x"$with_ldap" = x"yes" ; then
19121            as_fn_error $? "Missing LDAP library" "$LINENO" 5
19122        fi
19123		with_ldap=no
19124
19125fi
19126
19127fi
19128
19129if test x"$with_ldap" = x"yes"; then
19130
19131$as_echo "#define HAVE_LDAP 1" >>confdefs.h
19132
19133fi
19134
19135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ACLs" >&5
19136$as_echo_n "checking whether to support ACLs... " >&6; }
19137
19138# Check whether --with-acls was given.
19139if test "${with_acls+set}" = set; then :
19140  withval=$with_acls;  case "$withval" in
19141      yes|no)
19142          with_acl_support="$withval"
19143		  ;;
19144      *)
19145          with_acl_support=auto
19146          ;;
19147      esac
19148else
19149  with_acl_support=auto
19150fi
19151
19152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_acl_support" >&5
19153$as_echo "$with_acl_support" >&6; }
19154
19155if test x"$with_acl_support" = x"no"; then
19156	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ACL support" >&5
19157$as_echo "Disabling ACL support" >&6; }
19158
19159$as_echo "#define HAVE_NO_ACLS 1" >>confdefs.h
19160
19161else
19162    with_acl_support=yes
19163fi
19164
19165if test x"$with_acl_support" = x"yes" ; then
19166	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ACL support is available:" >&5
19167$as_echo "$as_me: checking whether ACL support is available:" >&6;}
19168	case "$host_os" in
19169	*sysv5*)
19170		{ $as_echo "$as_me:${as_lineno-$LINENO}: Using UnixWare ACLs" >&5
19171$as_echo "$as_me: Using UnixWare ACLs" >&6;}
19172
19173$as_echo "#define HAVE_UNIXWARE_ACLS 1" >>confdefs.h
19174
19175		;;
19176	*solaris*)
19177		{ $as_echo "$as_me:${as_lineno-$LINENO}: Using solaris ACLs" >&5
19178$as_echo "$as_me: Using solaris ACLs" >&6;}
19179
19180$as_echo "#define HAVE_SOLARIS_ACLS 1" >>confdefs.h
19181
19182		ACL_LIBS="$ACL_LIBS -lsec"
19183		;;
19184	*hpux*)
19185		{ $as_echo "$as_me:${as_lineno-$LINENO}: Using HPUX ACLs" >&5
19186$as_echo "$as_me: Using HPUX ACLs" >&6;}
19187
19188$as_echo "#define HAVE_HPUX_ACLS 1" >>confdefs.h
19189
19190		;;
19191	*irix*)
19192		{ $as_echo "$as_me:${as_lineno-$LINENO}: Using IRIX ACLs" >&5
19193$as_echo "$as_me: Using IRIX ACLs" >&6;}
19194
19195$as_echo "#define HAVE_IRIX_ACLS 1" >>confdefs.h
19196
19197		;;
19198	*aix*)
19199		{ $as_echo "$as_me:${as_lineno-$LINENO}: Using AIX ACLs" >&5
19200$as_echo "$as_me: Using AIX ACLs" >&6;}
19201
19202$as_echo "#define HAVE_AIX_ACLS 1" >>confdefs.h
19203
19204		;;
19205	*osf*)
19206		{ $as_echo "$as_me:${as_lineno-$LINENO}: Using Tru64 ACLs" >&5
19207$as_echo "$as_me: Using Tru64 ACLs" >&6;}
19208
19209$as_echo "#define HAVE_TRU64_ACLS 1" >>confdefs.h
19210
19211		ACL_LIBS="$ACL_LIBS -lpacl"
19212		;;
19213	*darwin*)
19214		{ $as_echo "$as_me:${as_lineno-$LINENO}: ACLs on Darwin currently not supported" >&5
19215$as_echo "$as_me: ACLs on Darwin currently not supported" >&6;}
19216
19217$as_echo "#define HAVE_NO_ACLS 1" >>confdefs.h
19218
19219		;;
19220	*)
19221		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
19222$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
19223if ${ac_cv_lib_acl_acl_get_file+:} false; then :
19224  $as_echo_n "(cached) " >&6
19225else
19226  ac_check_lib_save_LIBS=$LIBS
19227LIBS="-lacl  $LIBS"
19228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19229/* end confdefs.h.  */
19230
19231/* Override any GCC internal prototype to avoid an error.
19232   Use char because int might match the return type of a GCC
19233   builtin and then its argument prototype would still apply.  */
19234#ifdef __cplusplus
19235extern "C"
19236#endif
19237char acl_get_file ();
19238int
19239main ()
19240{
19241return acl_get_file ();
19242  ;
19243  return 0;
19244}
19245_ACEOF
19246if ac_fn_c_try_link "$LINENO"; then :
19247  ac_cv_lib_acl_acl_get_file=yes
19248else
19249  ac_cv_lib_acl_acl_get_file=no
19250fi
19251rm -f core conftest.err conftest.$ac_objext \
19252    conftest$ac_exeext conftest.$ac_ext
19253LIBS=$ac_check_lib_save_LIBS
19254fi
19255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
19256$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
19257if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
19258  ACL_LIBS="$ACL_LIBS -lacl"
19259fi
19260
19261		case "$host_os" in
19262		*linux*)
19263			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5
19264$as_echo_n "checking for getxattr in -lattr... " >&6; }
19265if ${ac_cv_lib_attr_getxattr+:} false; then :
19266  $as_echo_n "(cached) " >&6
19267else
19268  ac_check_lib_save_LIBS=$LIBS
19269LIBS="-lattr  $LIBS"
19270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19271/* end confdefs.h.  */
19272
19273/* Override any GCC internal prototype to avoid an error.
19274   Use char because int might match the return type of a GCC
19275   builtin and then its argument prototype would still apply.  */
19276#ifdef __cplusplus
19277extern "C"
19278#endif
19279char getxattr ();
19280int
19281main ()
19282{
19283return getxattr ();
19284  ;
19285  return 0;
19286}
19287_ACEOF
19288if ac_fn_c_try_link "$LINENO"; then :
19289  ac_cv_lib_attr_getxattr=yes
19290else
19291  ac_cv_lib_attr_getxattr=no
19292fi
19293rm -f core conftest.err conftest.$ac_objext \
19294    conftest$ac_exeext conftest.$ac_ext
19295LIBS=$ac_check_lib_save_LIBS
19296fi
19297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5
19298$as_echo "$ac_cv_lib_attr_getxattr" >&6; }
19299if test "x$ac_cv_lib_attr_getxattr" = xyes; then :
19300  ACL_LIBS="$ACL_LIBS -lattr"
19301fi
19302
19303			;;
19304		esac
19305		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
19306$as_echo_n "checking for POSIX ACL support... " >&6; }
19307if ${netatalk_cv_HAVE_POSIX_ACLS+:} false; then :
19308  $as_echo_n "(cached) " >&6
19309else
19310
19311			acl_LIBS=$LIBS
19312			LIBS="$LIBS $ACL_LIBS"
19313			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19314/* end confdefs.h.  */
19315
19316				#include <sys/types.h>
19317				#include <sys/acl.h>
19318
19319int
19320main ()
19321{
19322
19323				acl_t acl;
19324				int entry_id;
19325				acl_entry_t *entry_p;
19326				return acl_get_entry(acl, entry_id, entry_p);
19327
19328  ;
19329  return 0;
19330}
19331_ACEOF
19332if ac_fn_c_try_link "$LINENO"; then :
19333  netatalk_cv_HAVE_POSIX_ACLS=yes
19334else
19335  netatalk_cv_HAVE_POSIX_ACLS=no
19336                with_acl_support=no
19337fi
19338rm -f core conftest.err conftest.$ac_objext \
19339    conftest$ac_exeext conftest.$ac_ext
19340			LIBS=$acl_LIBS
19341
19342fi
19343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_HAVE_POSIX_ACLS" >&5
19344$as_echo "$netatalk_cv_HAVE_POSIX_ACLS" >&6; }
19345		if test x"$netatalk_cv_HAVE_POSIX_ACLS" = x"yes"; then
19346			{ $as_echo "$as_me:${as_lineno-$LINENO}: Using POSIX ACLs" >&5
19347$as_echo "$as_me: Using POSIX ACLs" >&6;}
19348
19349$as_echo "#define HAVE_POSIX_ACLS 1" >>confdefs.h
19350
19351			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_perm_np" >&5
19352$as_echo_n "checking for acl_get_perm_np... " >&6; }
19353if ${netatalk_cv_HAVE_ACL_GET_PERM_NP+:} false; then :
19354  $as_echo_n "(cached) " >&6
19355else
19356
19357				acl_LIBS=$LIBS
19358				LIBS="$LIBS $ACL_LIBS"
19359				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19360/* end confdefs.h.  */
19361
19362					#include <sys/types.h>
19363					#include <sys/acl.h>
19364
19365int
19366main ()
19367{
19368
19369					acl_permset_t permset_d;
19370					acl_perm_t perm;
19371					return acl_get_perm_np(permset_d, perm);
19372
19373  ;
19374  return 0;
19375}
19376_ACEOF
19377if ac_fn_c_try_link "$LINENO"; then :
19378  netatalk_cv_HAVE_ACL_GET_PERM_NP=yes
19379else
19380  netatalk_cv_HAVE_ACL_GET_PERM_NP=no
19381fi
19382rm -f core conftest.err conftest.$ac_objext \
19383    conftest$ac_exeext conftest.$ac_ext
19384				LIBS=$acl_LIBS
19385
19386fi
19387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_HAVE_ACL_GET_PERM_NP" >&5
19388$as_echo "$netatalk_cv_HAVE_ACL_GET_PERM_NP" >&6; }
19389			if test x"$netatalk_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
19390
19391$as_echo "#define HAVE_ACL_GET_PERM_NP 1" >>confdefs.h
19392
19393			fi
19394
19395			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_from_mode" >&5
19396$as_echo_n "checking for acl_from_mode... " >&6; }
19397if ${netatalk_cv_HAVE_ACL_FROM_MODE+:} false; then :
19398  $as_echo_n "(cached) " >&6
19399else
19400
19401				acl_LIBS=$LIBS
19402				LIBS="$LIBS $ACL_LIBS"
19403                for ac_func in acl_from_mode
19404do :
19405  ac_fn_c_check_func "$LINENO" "acl_from_mode" "ac_cv_func_acl_from_mode"
19406if test "x$ac_cv_func_acl_from_mode" = xyes; then :
19407  cat >>confdefs.h <<_ACEOF
19408#define HAVE_ACL_FROM_MODE 1
19409_ACEOF
19410 netatalk_cv_HAVE_ACL_FROM_MODE=yes
19411else
19412  netatalk_cv_HAVE_ACL_FROM_MODE=no
19413fi
19414done
19415
19416				LIBS=$acl_LIBS
19417
19418fi
19419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_HAVE_ACL_FROM_MODE" >&5
19420$as_echo "$netatalk_cv_HAVE_ACL_FROM_MODE" >&6; }
19421			if test x"netatalk_cv_HAVE_ACL_FROM_MODE" = x"yes"; then
19422
19423$as_echo "#define HAVE_ACL_FROM_MODE 1" >>confdefs.h
19424
19425			fi
19426
19427
19428		else
19429			{ $as_echo "$as_me:${as_lineno-$LINENO}: ACL support is not avaliable" >&5
19430$as_echo "$as_me: ACL support is not avaliable" >&6;}
19431
19432$as_echo "#define HAVE_NO_ACLS 1" >>confdefs.h
19433
19434		fi
19435		;;
19436    esac
19437fi
19438
19439if test x"$with_acl_support" = x"yes" ; then
19440   for ac_header in acl/libacl.h
19441do :
19442  ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
19443if test "x$ac_cv_header_acl_libacl_h" = xyes; then :
19444  cat >>confdefs.h <<_ACEOF
19445#define HAVE_ACL_LIBACL_H 1
19446_ACEOF
19447
19448fi
19449
19450done
19451
19452
19453$as_echo "#define HAVE_ACLS 1" >>confdefs.h
19454
19455
19456fi
19457
19458neta_cv_eas="ad"
19459neta_cv_eas_sys_found=no
19460neta_cv_eas_sys_not_found=no
19461
19462for ac_header in sys/attributes.h attr/xattr.h sys/xattr.h sys/extattr.h sys/uio.h sys/ea.h
19463do :
19464  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19465ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19466if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19467  cat >>confdefs.h <<_ACEOF
19468#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19469_ACEOF
19470
19471fi
19472
19473done
19474
19475
19476case "$this_os" in
19477
19478  *osf*)
19479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getproplist" >&5
19480$as_echo_n "checking for library containing getproplist... " >&6; }
19481if ${ac_cv_search_getproplist+:} false; then :
19482  $as_echo_n "(cached) " >&6
19483else
19484  ac_func_search_save_LIBS=$LIBS
19485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19486/* end confdefs.h.  */
19487
19488/* Override any GCC internal prototype to avoid an error.
19489   Use char because int might match the return type of a GCC
19490   builtin and then its argument prototype would still apply.  */
19491#ifdef __cplusplus
19492extern "C"
19493#endif
19494char getproplist ();
19495int
19496main ()
19497{
19498return getproplist ();
19499  ;
19500  return 0;
19501}
19502_ACEOF
19503for ac_lib in '' proplist; do
19504  if test -z "$ac_lib"; then
19505    ac_res="none required"
19506  else
19507    ac_res=-l$ac_lib
19508    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19509  fi
19510  if ac_fn_c_try_link "$LINENO"; then :
19511  ac_cv_search_getproplist=$ac_res
19512fi
19513rm -f core conftest.err conftest.$ac_objext \
19514    conftest$ac_exeext
19515  if ${ac_cv_search_getproplist+:} false; then :
19516  break
19517fi
19518done
19519if ${ac_cv_search_getproplist+:} false; then :
19520
19521else
19522  ac_cv_search_getproplist=no
19523fi
19524rm conftest.$ac_ext
19525LIBS=$ac_func_search_save_LIBS
19526fi
19527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getproplist" >&5
19528$as_echo "$ac_cv_search_getproplist" >&6; }
19529ac_res=$ac_cv_search_getproplist
19530if test "$ac_res" != no; then :
19531  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19532
19533fi
19534
19535	for ac_func in getproplist fgetproplist setproplist fsetproplist
19536do :
19537  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19538ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19539if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19540  cat >>confdefs.h <<_ACEOF
19541#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19542_ACEOF
19543 neta_cv_eas_sys_found=yes
19544else
19545  neta_cv_eas_sys_not_found=yes
19546fi
19547done
19548
19549	for ac_func in delproplist fdelproplist add_proplist_entry get_proplist_entry
19550do :
19551  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19552ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19553if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19554  cat >>confdefs.h <<_ACEOF
19555#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19556_ACEOF
19557
19558else
19559  neta_cv_eas_sys_not_found=yes
19560fi
19561done
19562
19563	for ac_func in sizeof_proplist_entry
19564do :
19565  ac_fn_c_check_func "$LINENO" "sizeof_proplist_entry" "ac_cv_func_sizeof_proplist_entry"
19566if test "x$ac_cv_func_sizeof_proplist_entry" = xyes; then :
19567  cat >>confdefs.h <<_ACEOF
19568#define HAVE_SIZEOF_PROPLIST_ENTRY 1
19569_ACEOF
19570
19571else
19572  neta_cv_eas_sys_not_found=yes
19573fi
19574done
19575
19576  ;;
19577
19578  *solaris*)
19579	for ac_func in attropen
19580do :
19581  ac_fn_c_check_func "$LINENO" "attropen" "ac_cv_func_attropen"
19582if test "x$ac_cv_func_attropen" = xyes; then :
19583  cat >>confdefs.h <<_ACEOF
19584#define HAVE_ATTROPEN 1
19585_ACEOF
19586 neta_cv_eas_sys_found=yes
19587else
19588  neta_cv_eas_sys_not_found=yes
19589fi
19590done
19591
19592  ;;
19593
19594  'freebsd')
19595    for ac_func in extattr_delete_fd extattr_delete_file extattr_delete_link
19596do :
19597  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19598ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19599if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19600  cat >>confdefs.h <<_ACEOF
19601#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19602_ACEOF
19603 neta_cv_eas_sys_found=yes
19604else
19605  neta_cv_eas_sys_not_found=yes
19606fi
19607done
19608
19609    for ac_func in extattr_get_fd extattr_get_file extattr_get_link
19610do :
19611  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19612ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19613if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19614  cat >>confdefs.h <<_ACEOF
19615#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19616_ACEOF
19617
19618else
19619  neta_cv_eas_sys_not_found=yes
19620fi
19621done
19622
19623    for ac_func in extattr_list_fd extattr_list_file extattr_list_link
19624do :
19625  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19626ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19627if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19628  cat >>confdefs.h <<_ACEOF
19629#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19630_ACEOF
19631
19632else
19633  neta_cv_eas_sys_not_found=yes
19634fi
19635done
19636
19637    for ac_func in extattr_set_fd extattr_set_file extattr_set_link
19638do :
19639  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19640ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19641if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19642  cat >>confdefs.h <<_ACEOF
19643#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19644_ACEOF
19645
19646else
19647  neta_cv_eas_sys_not_found=yes
19648fi
19649done
19650
19651  ;;
19652
19653  *freebsd4* | *dragonfly* )
19654
19655$as_echo "#define BROKEN_EXTATTR 1" >>confdefs.h
19656
19657  ;;
19658
19659  *)
19660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getxattr" >&5
19661$as_echo_n "checking for library containing getxattr... " >&6; }
19662if ${ac_cv_search_getxattr+:} false; then :
19663  $as_echo_n "(cached) " >&6
19664else
19665  ac_func_search_save_LIBS=$LIBS
19666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19667/* end confdefs.h.  */
19668
19669/* Override any GCC internal prototype to avoid an error.
19670   Use char because int might match the return type of a GCC
19671   builtin and then its argument prototype would still apply.  */
19672#ifdef __cplusplus
19673extern "C"
19674#endif
19675char getxattr ();
19676int
19677main ()
19678{
19679return getxattr ();
19680  ;
19681  return 0;
19682}
19683_ACEOF
19684for ac_lib in '' attr; do
19685  if test -z "$ac_lib"; then
19686    ac_res="none required"
19687  else
19688    ac_res=-l$ac_lib
19689    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19690  fi
19691  if ac_fn_c_try_link "$LINENO"; then :
19692  ac_cv_search_getxattr=$ac_res
19693fi
19694rm -f core conftest.err conftest.$ac_objext \
19695    conftest$ac_exeext
19696  if ${ac_cv_search_getxattr+:} false; then :
19697  break
19698fi
19699done
19700if ${ac_cv_search_getxattr+:} false; then :
19701
19702else
19703  ac_cv_search_getxattr=no
19704fi
19705rm conftest.$ac_ext
19706LIBS=$ac_func_search_save_LIBS
19707fi
19708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getxattr" >&5
19709$as_echo "$ac_cv_search_getxattr" >&6; }
19710ac_res=$ac_cv_search_getxattr
19711if test "$ac_res" != no; then :
19712  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19713
19714fi
19715
19716
19717    if test "x$neta_cv_eas_sys_found" != "xyes" ; then
19718       for ac_func in getxattr lgetxattr fgetxattr listxattr llistxattr
19719do :
19720  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19721ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19722if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19723  cat >>confdefs.h <<_ACEOF
19724#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19725_ACEOF
19726 neta_cv_eas_sys_found=yes
19727else
19728  neta_cv_eas_sys_not_found=yes
19729fi
19730done
19731
19732	   for ac_func in flistxattr removexattr lremovexattr fremovexattr
19733do :
19734  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19735ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19736if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19737  cat >>confdefs.h <<_ACEOF
19738#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19739_ACEOF
19740
19741else
19742  neta_cv_eas_sys_not_found=yes
19743fi
19744done
19745
19746	   for ac_func in setxattr lsetxattr fsetxattr
19747do :
19748  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19749ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19750if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19751  cat >>confdefs.h <<_ACEOF
19752#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19753_ACEOF
19754
19755else
19756  neta_cv_eas_sys_not_found=yes
19757fi
19758done
19759
19760    fi
19761
19762    if test "x$neta_cv_eas_sys_found" != "xyes" ; then
19763	   for ac_func in getea fgetea lgetea listea flistea llistea
19764do :
19765  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19766ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19767if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19768  cat >>confdefs.h <<_ACEOF
19769#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19770_ACEOF
19771 neta_cv_eas_sys_found=yes
19772else
19773  neta_cv_eas_sys_not_found=yes
19774fi
19775done
19776
19777	   for ac_func in removeea fremoveea lremoveea setea fsetea lsetea
19778do :
19779  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19780ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19781if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19782  cat >>confdefs.h <<_ACEOF
19783#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19784_ACEOF
19785
19786else
19787  neta_cv_eas_sys_not_found=yes
19788fi
19789done
19790
19791    fi
19792
19793    if test "x$neta_cv_eas_sys_found" != "xyes" ; then
19794	   for ac_func in attr_get attr_list attr_set attr_remove
19795do :
19796  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19797ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19798if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19799  cat >>confdefs.h <<_ACEOF
19800#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19801_ACEOF
19802
19803else
19804  neta_cv_eas_sys_not_found=yes
19805fi
19806done
19807
19808       for ac_func in attr_getf attr_listf attr_setf attr_removef
19809do :
19810  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19811ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19812if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19813  cat >>confdefs.h <<_ACEOF
19814#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19815_ACEOF
19816
19817else
19818  neta_cv_eas_sys_not_found=yes
19819fi
19820done
19821
19822    fi
19823  ;;
19824esac
19825
19826# Do xattr functions take additional options like on Darwin?
19827if test x"$ac_cv_func_getxattr" = x"yes" ; then
19828	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr interface takes additional options" >&5
19829$as_echo_n "checking whether xattr interface takes additional options... " >&6; }
19830if ${smb_attr_cv_xattr_add_opt+:} false; then :
19831  $as_echo_n "(cached) " >&6
19832else
19833
19834		old_LIBS=$LIBS
19835		LIBS="$LIBS $ACL_LIBS"
19836		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19837/* end confdefs.h.  */
19838
19839			#include <sys/types.h>
19840			#if HAVE_ATTR_XATTR_H
19841			#include <attr/xattr.h>
19842			#elif HAVE_SYS_XATTR_H
19843			#include <sys/xattr.h>
19844			#endif
19845
19846int
19847main ()
19848{
19849
19850			getxattr(0, 0, 0, 0, 0, 0);
19851
19852  ;
19853  return 0;
19854}
19855_ACEOF
19856if ac_fn_c_try_compile "$LINENO"; then :
19857  smb_attr_cv_xattr_add_opt=yes
19858else
19859  smb_attr_cv_xattr_add_opt=no;LIBS=$old_LIBS
19860fi
19861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19862
19863fi
19864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smb_attr_cv_xattr_add_opt" >&5
19865$as_echo "$smb_attr_cv_xattr_add_opt" >&6; }
19866	if test x"$smb_attr_cv_xattr_add_opt" = x"yes"; then
19867
19868$as_echo "#define XATTR_ADD_OPT 1" >>confdefs.h
19869
19870	fi
19871fi
19872
19873if test "x$neta_cv_eas_sys_found" = "xyes" ; then
19874   if test "x$neta_cv_eas_sys_not_found" != "xyes" ; then
19875      neta_cv_eas="$neta_cv_eas | sys"
19876   fi
19877fi
19878
19879cat >>confdefs.h <<_ACEOF
19880#define EA_MODULES "$neta_cv_eas"
19881_ACEOF
19882
19883
19884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the realpath function allows a NULL argument" >&5
19885$as_echo_n "checking if the realpath function allows a NULL argument... " >&6; }
19886if ${neta_cv_REALPATH_TAKES_NULL+:} false; then :
19887  $as_echo_n "(cached) " >&6
19888else
19889
19890        if test "$cross_compiling" = yes; then :
19891  neta_cv_REALPATH_TAKES_NULL=cross
19892
19893else
19894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19895/* end confdefs.h.  */
19896
19897            #include <stdio.h>
19898            #include <limits.h>
19899            #include <signal.h>
19900
19901            void exit_on_core(int ignored) {
19902                 exit(1);
19903            }
19904
19905            main() {
19906                char *newpath;
19907                signal(SIGSEGV, exit_on_core);
19908                newpath = realpath("/tmp", NULL);
19909                exit((newpath != NULL) ? 0 : 1);
19910            }
19911_ACEOF
19912if ac_fn_c_try_run "$LINENO"; then :
19913  neta_cv_REALPATH_TAKES_NULL=yes
19914else
19915  neta_cv_REALPATH_TAKES_NULL=no
19916fi
19917rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19918  conftest.$ac_objext conftest.beam conftest.$ac_ext
19919fi
19920
19921
19922
19923fi
19924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $neta_cv_REALPATH_TAKES_NULL" >&5
19925$as_echo "$neta_cv_REALPATH_TAKES_NULL" >&6; }
19926
19927if test x"$neta_cv_REALPATH_TAKES_NULL" = x"yes"; then
19928
19929$as_echo "#define REALPATH_TAKES_NULL 1" >>confdefs.h
19930
19931fi
19932
19933
19934
19935# Check whether --with-webmin was given.
19936if test "${with_webmin+set}" = set; then :
19937  withval=$with_webmin; if test "x$withval" = "xyes"; then
19938            webminpath="$PKGCONFDIR"
19939        elif test "x$withval" = "xno"; then
19940            webminpath=""
19941        else
19942            webminpath="$withval"
19943        fi
19944
19945fi
19946
19947
19948
19949# Check whether --with-webminuser was given.
19950if test "${with_webminuser+set}" = set; then :
19951  withval=$with_webminuser; if test "x$withval" = "xyes"; then
19952            webminuser=""
19953        elif test "x$withval" = "xno"; then
19954            webminuser=""
19955        else
19956            webminuser="$withval"
19957        fi
19958
19959fi
19960
19961
19962
19963# Check whether --with-webminversion was given.
19964if test "${with_webminversion+set}" = set; then :
19965  withval=$with_webminversion; if test "x$withval" = "xyes"; then
19966            webminversion="1.490"
19967        elif test "x$withval" = "xno"; then
19968            webminversions="1.490"
19969        else
19970            webminversion="$withval"
19971        fi
19972
19973fi
19974
19975
19976
19977# Check whether --with-webminpass was given.
19978if test "${with_webminpass+set}" = set; then :
19979  withval=$with_webminpass; if test "x$withval" = "xyes"; then
19980            webminpass=""
19981        elif test "x$withval" = "xno"; then
19982            webminpass=""
19983        else
19984            webminpass="$withval"
19985        fi
19986
19987fi
19988
19989
19990
19991# Check whether --with-webminport was given.
19992if test "${with_webminport+set}" = set; then :
19993  withval=$with_webminport; if test "x$withval" = "xyes"; then
19994            webminport=""
19995        elif test "x$withval" = "xno"; then
19996            webminport=""
19997        else
19998            webminport="$withval"
19999        fi
20000
20001fi
20002
20003
20004    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if webmin administration shall be installed" >&5
20005$as_echo_n "checking if webmin administration shall be installed... " >&6; }
20006    if test "x$webminpath" != "x" &&
20007            test "x$webminuser" != "x" &&
20008            test "x$webminpass" != "x" &&
20009            test "x$webminport" != "x" &&
20010            test "x$webminversion" != "x"; then
20011        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20012$as_echo "yes" >&6; }
20013        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neccessary Perl module 'Net::SSLeay' is installed" >&5
20014$as_echo_n "checking if neccessary Perl module 'Net::SSLeay' is installed... " >&6; }
20015        $ac_cv_path_PERL -e 'use Net::SSLeay' >/dev/null 2>/dev/null
20016		if test "$?" != "0" ; then
20017            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20018$as_echo "no" >&6; }
20019            webminpath=""
20020        else
20021            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20022$as_echo "yes" >&6; }
20023            { $as_echo "$as_me:${as_lineno-$LINENO}: Installing Webmin in \"$webminpath/webmin\"" >&5
20024$as_echo "$as_me: Installing Webmin in \"$webminpath/webmin\"" >&6;}
20025        fi
20026    else
20027        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20028$as_echo "no" >&6; }
20029    fi
20030
20031    WEBMIN_PATH=$webminpath
20032
20033    WEBMIN_VERSION=$webminversion
20034
20035    WEBMIN_USER=$webminuser
20036
20037    WEBMIN_PASS=$webminpass
20038
20039    WEBMIN_PORT=$webminport
20040
20041
20042
20043
20044
20045
20046
20047
20048 if test x$solaris_module = xyes; then
20049  SOLARIS_MODULE_TRUE=
20050  SOLARIS_MODULE_FALSE='#'
20051else
20052  SOLARIS_MODULE_TRUE='#'
20053  SOLARIS_MODULE_FALSE=
20054fi
20055
20056 if test x$compile_timelord = xyes; then
20057  COMPILE_TIMELORD_TRUE=
20058  COMPILE_TIMELORD_FALSE='#'
20059else
20060  COMPILE_TIMELORD_TRUE='#'
20061  COMPILE_TIMELORD_FALSE=
20062fi
20063
20064 if test x$compile_a2boot = xyes; then
20065  COMPILE_A2BOOT_TRUE=
20066  COMPILE_A2BOOT_FALSE='#'
20067else
20068  COMPILE_A2BOOT_TRUE='#'
20069  COMPILE_A2BOOT_FALSE=
20070fi
20071
20072 if test x$neta_cv_have_libgcrypt = xyes; then
20073  HAVE_LIBGCRYPT_TRUE=
20074  HAVE_LIBGCRYPT_FALSE='#'
20075else
20076  HAVE_LIBGCRYPT_TRUE='#'
20077  HAVE_LIBGCRYPT_FALSE=
20078fi
20079
20080 if test x$neta_cv_have_openssl = xyes; then
20081  HAVE_OPENSSL_TRUE=
20082  HAVE_OPENSSL_FALSE='#'
20083else
20084  HAVE_OPENSSL_TRUE='#'
20085  HAVE_OPENSSL_FALSE=
20086fi
20087
20088 if test x"$with_acl_support" = x"yes"; then
20089  HAVE_ACLS_TRUE=
20090  HAVE_ACLS_FALSE='#'
20091else
20092  HAVE_ACLS_TRUE='#'
20093  HAVE_ACLS_FALSE=
20094fi
20095
20096 if test x"$with_ldap" = x"yes"; then
20097  HAVE_LDAP_TRUE=
20098  HAVE_LDAP_FALSE='#'
20099else
20100  HAVE_LDAP_TRUE='#'
20101  HAVE_LDAP_FALSE=
20102fi
20103
20104 if test x$neta_cv_compile_dhx = xyes; then
20105  USE_DHX_TRUE=
20106  USE_DHX_FALSE='#'
20107else
20108  USE_DHX_TRUE='#'
20109  USE_DHX_FALSE=
20110fi
20111
20112 if test x$neta_cv_compile_dhx2 = xyes; then
20113  USE_DHX2_TRUE=
20114  USE_DHX2_FALSE='#'
20115else
20116  USE_DHX2_TRUE='#'
20117  USE_DHX2_FALSE=
20118fi
20119
20120 if test x$neta_cv_have_openssl = xyes; then
20121  USE_RANDNUM_TRUE=
20122  USE_RANDNUM_FALSE='#'
20123else
20124  USE_RANDNUM_TRUE='#'
20125  USE_RANDNUM_FALSE=
20126fi
20127
20128 if test x$compile_kerberos = xyes; then
20129  USE_KERBEROS_TRUE=
20130  USE_KERBEROS_FALSE='#'
20131else
20132  USE_KERBEROS_TRUE='#'
20133  USE_KERBEROS_FALSE=
20134fi
20135
20136 if test x$use_pam_so = xyes; then
20137  USE_PAM_SO_TRUE=
20138  USE_PAM_SO_FALSE='#'
20139else
20140  USE_PAM_SO_TRUE='#'
20141  USE_PAM_SO_FALSE=
20142fi
20143
20144 if test x$netatalk_cv_install_pam = xyes; then
20145  USE_PAM_TRUE=
20146  USE_PAM_FALSE='#'
20147else
20148  USE_PAM_TRUE='#'
20149  USE_PAM_FALSE=
20150fi
20151
20152 if test x$compile_pam = xyes; then
20153  BUILD_PAM_TRUE=
20154  BUILD_PAM_FALSE='#'
20155else
20156  BUILD_PAM_TRUE='#'
20157  BUILD_PAM_FALSE=
20158fi
20159
20160 if test x$compile_pgp = xyes; then
20161  USE_PGP_TRUE=
20162  USE_PGP_FALSE='#'
20163else
20164  USE_PGP_TRUE='#'
20165  USE_PGP_FALSE=
20166fi
20167
20168 if test x$neta_cv_have_libgcrypt != xyes && test x$neta_cv_have_openssl != xyes; then
20169  DEFAULT_HOOK_TRUE=
20170  DEFAULT_HOOK_FALSE='#'
20171else
20172  DEFAULT_HOOK_TRUE='#'
20173  DEFAULT_HOOK_FALSE=
20174fi
20175
20176 if test x$sysv_style = xnetbsd; then
20177  USE_NETBSD_TRUE=
20178  USE_NETBSD_FALSE='#'
20179else
20180  USE_NETBSD_TRUE='#'
20181  USE_NETBSD_FALSE=
20182fi
20183
20184 if test x$sysv_style = xredhat-sysv; then
20185  USE_REDHAT_SYSV_TRUE=
20186  USE_REDHAT_SYSV_FALSE='#'
20187else
20188  USE_REDHAT_SYSV_TRUE='#'
20189  USE_REDHAT_SYSV_FALSE=
20190fi
20191
20192 if test x$sysv_style = xsuse-sysv; then
20193  USE_SUSE_SYSV_TRUE=
20194  USE_SUSE_SYSV_FALSE='#'
20195else
20196  USE_SUSE_SYSV_TRUE='#'
20197  USE_SUSE_SYSV_FALSE=
20198fi
20199
20200 if test x$shadowpw = xyes; then
20201  USE_SHADOWPW_TRUE=
20202  USE_SHADOWPW_FALSE='#'
20203else
20204  USE_SHADOWPW_TRUE='#'
20205  USE_SHADOWPW_FALSE=
20206fi
20207
20208 if test x$sysv_style = xtru64; then
20209  USE_TRU64_TRUE=
20210  USE_TRU64_FALSE='#'
20211else
20212  USE_TRU64_TRUE='#'
20213  USE_TRU64_FALSE=
20214fi
20215
20216 if test x$sysv_style = xsolaris; then
20217  USE_SOLARIS_TRUE=
20218  USE_SOLARIS_FALSE='#'
20219else
20220  USE_SOLARIS_TRUE='#'
20221  USE_SOLARIS_FALSE=
20222fi
20223
20224 if test x$sysv_style = xgentoo; then
20225  USE_GENTOO_TRUE=
20226  USE_GENTOO_FALSE='#'
20227else
20228  USE_GENTOO_TRUE='#'
20229  USE_GENTOO_FALSE=
20230fi
20231
20232 if test x$sysv_style = xdebian; then
20233  USE_DEBIAN_TRUE=
20234  USE_DEBIAN_FALSE='#'
20235else
20236  USE_DEBIAN_TRUE='#'
20237  USE_DEBIAN_FALSE=
20238fi
20239
20240 if test x$sysv_style = xsystemd || test x$sysv_style = xredhat-systemd || test x$sysv_style = xsuse-systemd; then
20241  USE_SYSTEMD_TRUE=
20242  USE_SYSTEMD_FALSE='#'
20243else
20244  USE_SYSTEMD_TRUE='#'
20245  USE_SYSTEMD_FALSE=
20246fi
20247
20248 if test x$sysv_style = x; then
20249  USE_UNDEF_TRUE=
20250  USE_UNDEF_FALSE='#'
20251else
20252  USE_UNDEF_TRUE='#'
20253  USE_UNDEF_FALSE=
20254fi
20255
20256 if test x$bdb_required = xyes; then
20257  USE_BDB_TRUE=
20258  USE_BDB_FALSE='#'
20259else
20260  USE_BDB_TRUE='#'
20261  USE_BDB_FALSE=
20262fi
20263
20264 if test x$netatalk_cv_ddp_enabled = xyes; then
20265  USE_APPLETALK_TRUE=
20266  USE_APPLETALK_FALSE='#'
20267else
20268  USE_APPLETALK_TRUE='#'
20269  USE_APPLETALK_FALSE=
20270fi
20271
20272 if test x"$ac_neta_haveatfuncs" = x"yes"; then
20273  HAVE_ATFUNCS_TRUE=
20274  HAVE_ATFUNCS_FALSE='#'
20275else
20276  HAVE_ATFUNCS_TRUE='#'
20277  HAVE_ATFUNCS_FALSE=
20278fi
20279
20280
20281
20282ac_config_files="$ac_config_files Makefile bin/Makefile bin/ad/Makefile bin/adv1tov2/Makefile bin/aecho/Makefile bin/afppasswd/Makefile bin/cnid/Makefile bin/cnid/cnid2_create bin/getzones/Makefile bin/megatron/Makefile bin/misc/Makefile bin/nbp/Makefile bin/pap/Makefile bin/psorder/Makefile bin/uniconv/Makefile config/Makefile config/pam/Makefile contrib/Makefile contrib/macusers/Makefile contrib/macusers/macusers contrib/misc/Makefile contrib/printing/Makefile contrib/shell_utils/Makefile contrib/shell_utils/apple_dump contrib/shell_utils/asip-status.pl contrib/timelord/Makefile contrib/a2boot/Makefile distrib/Makefile distrib/config/Makefile distrib/config/netatalk-config distrib/initscripts/Makefile distrib/m4/Makefile distrib/systemd/Makefile doc/Makefile etc/Makefile etc/afpd/Makefile etc/atalkd/Makefile etc/cnid_dbd/Makefile etc/uams/Makefile etc/uams/uams_krb4/Makefile etc/papd/Makefile etc/psf/Makefile include/Makefile include/atalk/Makefile libatalk/Makefile libatalk/acl/Makefile libatalk/adouble/Makefile libatalk/asp/Makefile libatalk/atp/Makefile libatalk/bstring/Makefile libatalk/cnid/Makefile libatalk/cnid/cdb/Makefile libatalk/cnid/last/Makefile libatalk/cnid/dbd/Makefile libatalk/cnid/tdb/Makefile libatalk/compat/Makefile libatalk/dsi/Makefile libatalk/nbp/Makefile libatalk/netddp/Makefile libatalk/util/Makefile libatalk/tdb/Makefile libatalk/unicode/Makefile libatalk/unicode/charsets/Makefile libatalk/vfs/Makefile macros/Makefile man/Makefile man/man1/Makefile man/man3/Makefile man/man4/Makefile man/man5/Makefile man/man8/Makefile sys/Makefile sys/generic/Makefile sys/generic/sys/Makefile sys/netatalk/Makefile sys/netbsd/Makefile sys/netbsd/netatalk/Makefile sys/solaris/Makefile sys/sunos/Makefile sys/ultrix/Makefile test/Makefile test/afpd/Makefile"
20283
20284ac_config_commands="$ac_config_commands default"
20285
20286cat >confcache <<\_ACEOF
20287# This file is a shell script that caches the results of configure
20288# tests run on this system so they can be shared between configure
20289# scripts and configure runs, see configure's option --config-cache.
20290# It is not useful on other systems.  If it contains results you don't
20291# want to keep, you may remove or edit it.
20292#
20293# config.status only pays attention to the cache file if you give it
20294# the --recheck option to rerun configure.
20295#
20296# `ac_cv_env_foo' variables (set or unset) will be overridden when
20297# loading this file, other *unset* `ac_cv_foo' will be assigned the
20298# following values.
20299
20300_ACEOF
20301
20302# The following way of writing the cache mishandles newlines in values,
20303# but we know of no workaround that is simple, portable, and efficient.
20304# So, we kill variables containing newlines.
20305# Ultrix sh set writes to stderr and can't be redirected directly,
20306# and sets the high bit in the cache file unless we assign to the vars.
20307(
20308  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20309    eval ac_val=\$$ac_var
20310    case $ac_val in #(
20311    *${as_nl}*)
20312      case $ac_var in #(
20313      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20314$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20315      esac
20316      case $ac_var in #(
20317      _ | IFS | as_nl) ;; #(
20318      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20319      *) { eval $ac_var=; unset $ac_var;} ;;
20320      esac ;;
20321    esac
20322  done
20323
20324  (set) 2>&1 |
20325    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20326    *${as_nl}ac_space=\ *)
20327      # `set' does not quote correctly, so add quotes: double-quote
20328      # substitution turns \\\\ into \\, and sed turns \\ into \.
20329      sed -n \
20330	"s/'/'\\\\''/g;
20331	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20332      ;; #(
20333    *)
20334      # `set' quotes correctly as required by POSIX, so do not add quotes.
20335      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20336      ;;
20337    esac |
20338    sort
20339) |
20340  sed '
20341     /^ac_cv_env_/b end
20342     t clear
20343     :clear
20344     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20345     t end
20346     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20347     :end' >>confcache
20348if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20349  if test -w "$cache_file"; then
20350    if test "x$cache_file" != "x/dev/null"; then
20351      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20352$as_echo "$as_me: updating cache $cache_file" >&6;}
20353      if test ! -f "$cache_file" || test -h "$cache_file"; then
20354	cat confcache >"$cache_file"
20355      else
20356        case $cache_file in #(
20357        */* | ?:*)
20358	  mv -f confcache "$cache_file"$$ &&
20359	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20360        *)
20361	  mv -f confcache "$cache_file" ;;
20362	esac
20363      fi
20364    fi
20365  else
20366    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20367$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20368  fi
20369fi
20370rm -f confcache
20371
20372test "x$prefix" = xNONE && prefix=$ac_default_prefix
20373# Let make expand exec_prefix.
20374test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20375
20376DEFS=-DHAVE_CONFIG_H
20377
20378ac_libobjs=
20379ac_ltlibobjs=
20380U=
20381for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20382  # 1. Remove the extension, and $U if already installed.
20383  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20384  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20385  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20386  #    will be set to the directory where LIBOBJS objects are built.
20387  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20388  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20389done
20390LIBOBJS=$ac_libobjs
20391
20392LTLIBOBJS=$ac_ltlibobjs
20393
20394
20395 if test -n "$EXEEXT"; then
20396  am__EXEEXT_TRUE=
20397  am__EXEEXT_FALSE='#'
20398else
20399  am__EXEEXT_TRUE='#'
20400  am__EXEEXT_FALSE=
20401fi
20402
20403if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20404  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20405Usually this means the macro was only invoked conditionally." "$LINENO" 5
20406fi
20407if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20408  as_fn_error $? "conditional \"AMDEP\" was never defined.
20409Usually this means the macro was only invoked conditionally." "$LINENO" 5
20410fi
20411if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20412  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20413Usually this means the macro was only invoked conditionally." "$LINENO" 5
20414fi
20415if test -z "${BUILD_DBD_DAEMON_TRUE}" && test -z "${BUILD_DBD_DAEMON_FALSE}"; then
20416  as_fn_error $? "conditional \"BUILD_DBD_DAEMON\" was never defined.
20417Usually this means the macro was only invoked conditionally." "$LINENO" 5
20418fi
20419if test -z "${USE_CDB_BACKEND_TRUE}" && test -z "${USE_CDB_BACKEND_FALSE}"; then
20420  as_fn_error $? "conditional \"USE_CDB_BACKEND\" was never defined.
20421Usually this means the macro was only invoked conditionally." "$LINENO" 5
20422fi
20423if test -z "${USE_LAST_BACKEND_TRUE}" && test -z "${USE_LAST_BACKEND_FALSE}"; then
20424  as_fn_error $? "conditional \"USE_LAST_BACKEND\" was never defined.
20425Usually this means the macro was only invoked conditionally." "$LINENO" 5
20426fi
20427if test -z "${USE_TDB_BACKEND_TRUE}" && test -z "${USE_TDB_BACKEND_FALSE}"; then
20428  as_fn_error $? "conditional \"USE_TDB_BACKEND\" was never defined.
20429Usually this means the macro was only invoked conditionally." "$LINENO" 5
20430fi
20431if test -z "${USE_SPOOLDIR_TRUE}" && test -z "${USE_SPOOLDIR_FALSE}"; then
20432  as_fn_error $? "conditional \"USE_SPOOLDIR\" was never defined.
20433Usually this means the macro was only invoked conditionally." "$LINENO" 5
20434fi
20435if test -z "${USE_GSSAPI_TRUE}" && test -z "${USE_GSSAPI_FALSE}"; then
20436  as_fn_error $? "conditional \"USE_GSSAPI\" was never defined.
20437Usually this means the macro was only invoked conditionally." "$LINENO" 5
20438fi
20439if test -z "${SOLARIS_MODULE_TRUE}" && test -z "${SOLARIS_MODULE_FALSE}"; then
20440  as_fn_error $? "conditional \"SOLARIS_MODULE\" was never defined.
20441Usually this means the macro was only invoked conditionally." "$LINENO" 5
20442fi
20443if test -z "${COMPILE_TIMELORD_TRUE}" && test -z "${COMPILE_TIMELORD_FALSE}"; then
20444  as_fn_error $? "conditional \"COMPILE_TIMELORD\" was never defined.
20445Usually this means the macro was only invoked conditionally." "$LINENO" 5
20446fi
20447if test -z "${COMPILE_A2BOOT_TRUE}" && test -z "${COMPILE_A2BOOT_FALSE}"; then
20448  as_fn_error $? "conditional \"COMPILE_A2BOOT\" was never defined.
20449Usually this means the macro was only invoked conditionally." "$LINENO" 5
20450fi
20451if test -z "${HAVE_LIBGCRYPT_TRUE}" && test -z "${HAVE_LIBGCRYPT_FALSE}"; then
20452  as_fn_error $? "conditional \"HAVE_LIBGCRYPT\" was never defined.
20453Usually this means the macro was only invoked conditionally." "$LINENO" 5
20454fi
20455if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
20456  as_fn_error $? "conditional \"HAVE_OPENSSL\" was never defined.
20457Usually this means the macro was only invoked conditionally." "$LINENO" 5
20458fi
20459if test -z "${HAVE_ACLS_TRUE}" && test -z "${HAVE_ACLS_FALSE}"; then
20460  as_fn_error $? "conditional \"HAVE_ACLS\" was never defined.
20461Usually this means the macro was only invoked conditionally." "$LINENO" 5
20462fi
20463if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
20464  as_fn_error $? "conditional \"HAVE_LDAP\" was never defined.
20465Usually this means the macro was only invoked conditionally." "$LINENO" 5
20466fi
20467if test -z "${USE_DHX_TRUE}" && test -z "${USE_DHX_FALSE}"; then
20468  as_fn_error $? "conditional \"USE_DHX\" was never defined.
20469Usually this means the macro was only invoked conditionally." "$LINENO" 5
20470fi
20471if test -z "${USE_DHX2_TRUE}" && test -z "${USE_DHX2_FALSE}"; then
20472  as_fn_error $? "conditional \"USE_DHX2\" was never defined.
20473Usually this means the macro was only invoked conditionally." "$LINENO" 5
20474fi
20475if test -z "${USE_RANDNUM_TRUE}" && test -z "${USE_RANDNUM_FALSE}"; then
20476  as_fn_error $? "conditional \"USE_RANDNUM\" was never defined.
20477Usually this means the macro was only invoked conditionally." "$LINENO" 5
20478fi
20479if test -z "${USE_KERBEROS_TRUE}" && test -z "${USE_KERBEROS_FALSE}"; then
20480  as_fn_error $? "conditional \"USE_KERBEROS\" was never defined.
20481Usually this means the macro was only invoked conditionally." "$LINENO" 5
20482fi
20483if test -z "${USE_PAM_SO_TRUE}" && test -z "${USE_PAM_SO_FALSE}"; then
20484  as_fn_error $? "conditional \"USE_PAM_SO\" was never defined.
20485Usually this means the macro was only invoked conditionally." "$LINENO" 5
20486fi
20487if test -z "${USE_PAM_TRUE}" && test -z "${USE_PAM_FALSE}"; then
20488  as_fn_error $? "conditional \"USE_PAM\" was never defined.
20489Usually this means the macro was only invoked conditionally." "$LINENO" 5
20490fi
20491if test -z "${BUILD_PAM_TRUE}" && test -z "${BUILD_PAM_FALSE}"; then
20492  as_fn_error $? "conditional \"BUILD_PAM\" was never defined.
20493Usually this means the macro was only invoked conditionally." "$LINENO" 5
20494fi
20495if test -z "${USE_PGP_TRUE}" && test -z "${USE_PGP_FALSE}"; then
20496  as_fn_error $? "conditional \"USE_PGP\" was never defined.
20497Usually this means the macro was only invoked conditionally." "$LINENO" 5
20498fi
20499if test -z "${DEFAULT_HOOK_TRUE}" && test -z "${DEFAULT_HOOK_FALSE}"; then
20500  as_fn_error $? "conditional \"DEFAULT_HOOK\" was never defined.
20501Usually this means the macro was only invoked conditionally." "$LINENO" 5
20502fi
20503if test -z "${USE_NETBSD_TRUE}" && test -z "${USE_NETBSD_FALSE}"; then
20504  as_fn_error $? "conditional \"USE_NETBSD\" was never defined.
20505Usually this means the macro was only invoked conditionally." "$LINENO" 5
20506fi
20507if test -z "${USE_REDHAT_SYSV_TRUE}" && test -z "${USE_REDHAT_SYSV_FALSE}"; then
20508  as_fn_error $? "conditional \"USE_REDHAT_SYSV\" was never defined.
20509Usually this means the macro was only invoked conditionally." "$LINENO" 5
20510fi
20511if test -z "${USE_SUSE_SYSV_TRUE}" && test -z "${USE_SUSE_SYSV_FALSE}"; then
20512  as_fn_error $? "conditional \"USE_SUSE_SYSV\" was never defined.
20513Usually this means the macro was only invoked conditionally." "$LINENO" 5
20514fi
20515if test -z "${USE_SHADOWPW_TRUE}" && test -z "${USE_SHADOWPW_FALSE}"; then
20516  as_fn_error $? "conditional \"USE_SHADOWPW\" was never defined.
20517Usually this means the macro was only invoked conditionally." "$LINENO" 5
20518fi
20519if test -z "${USE_TRU64_TRUE}" && test -z "${USE_TRU64_FALSE}"; then
20520  as_fn_error $? "conditional \"USE_TRU64\" was never defined.
20521Usually this means the macro was only invoked conditionally." "$LINENO" 5
20522fi
20523if test -z "${USE_SOLARIS_TRUE}" && test -z "${USE_SOLARIS_FALSE}"; then
20524  as_fn_error $? "conditional \"USE_SOLARIS\" was never defined.
20525Usually this means the macro was only invoked conditionally." "$LINENO" 5
20526fi
20527if test -z "${USE_GENTOO_TRUE}" && test -z "${USE_GENTOO_FALSE}"; then
20528  as_fn_error $? "conditional \"USE_GENTOO\" was never defined.
20529Usually this means the macro was only invoked conditionally." "$LINENO" 5
20530fi
20531if test -z "${USE_DEBIAN_TRUE}" && test -z "${USE_DEBIAN_FALSE}"; then
20532  as_fn_error $? "conditional \"USE_DEBIAN\" was never defined.
20533Usually this means the macro was only invoked conditionally." "$LINENO" 5
20534fi
20535if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
20536  as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
20537Usually this means the macro was only invoked conditionally." "$LINENO" 5
20538fi
20539if test -z "${USE_UNDEF_TRUE}" && test -z "${USE_UNDEF_FALSE}"; then
20540  as_fn_error $? "conditional \"USE_UNDEF\" was never defined.
20541Usually this means the macro was only invoked conditionally." "$LINENO" 5
20542fi
20543if test -z "${USE_BDB_TRUE}" && test -z "${USE_BDB_FALSE}"; then
20544  as_fn_error $? "conditional \"USE_BDB\" was never defined.
20545Usually this means the macro was only invoked conditionally." "$LINENO" 5
20546fi
20547if test -z "${USE_APPLETALK_TRUE}" && test -z "${USE_APPLETALK_FALSE}"; then
20548  as_fn_error $? "conditional \"USE_APPLETALK\" was never defined.
20549Usually this means the macro was only invoked conditionally." "$LINENO" 5
20550fi
20551if test -z "${HAVE_ATFUNCS_TRUE}" && test -z "${HAVE_ATFUNCS_FALSE}"; then
20552  as_fn_error $? "conditional \"HAVE_ATFUNCS\" was never defined.
20553Usually this means the macro was only invoked conditionally." "$LINENO" 5
20554fi
20555
20556: "${CONFIG_STATUS=./config.status}"
20557ac_write_fail=0
20558ac_clean_files_save=$ac_clean_files
20559ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20560{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20561$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20562as_write_fail=0
20563cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20564#! $SHELL
20565# Generated by $as_me.
20566# Run this file to recreate the current configuration.
20567# Compiler output produced by configure, useful for debugging
20568# configure, is in config.log if it exists.
20569
20570debug=false
20571ac_cs_recheck=false
20572ac_cs_silent=false
20573
20574SHELL=\${CONFIG_SHELL-$SHELL}
20575export SHELL
20576_ASEOF
20577cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20578## -------------------- ##
20579## M4sh Initialization. ##
20580## -------------------- ##
20581
20582# Be more Bourne compatible
20583DUALCASE=1; export DUALCASE # for MKS sh
20584if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20585  emulate sh
20586  NULLCMD=:
20587  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20588  # is contrary to our usage.  Disable this feature.
20589  alias -g '${1+"$@"}'='"$@"'
20590  setopt NO_GLOB_SUBST
20591else
20592  case `(set -o) 2>/dev/null` in #(
20593  *posix*) :
20594    set -o posix ;; #(
20595  *) :
20596     ;;
20597esac
20598fi
20599
20600
20601as_nl='
20602'
20603export as_nl
20604# Printing a long string crashes Solaris 7 /usr/bin/printf.
20605as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20606as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20607as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20608# Prefer a ksh shell builtin over an external printf program on Solaris,
20609# but without wasting forks for bash or zsh.
20610if test -z "$BASH_VERSION$ZSH_VERSION" \
20611    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20612  as_echo='print -r --'
20613  as_echo_n='print -rn --'
20614elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20615  as_echo='printf %s\n'
20616  as_echo_n='printf %s'
20617else
20618  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20619    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20620    as_echo_n='/usr/ucb/echo -n'
20621  else
20622    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20623    as_echo_n_body='eval
20624      arg=$1;
20625      case $arg in #(
20626      *"$as_nl"*)
20627	expr "X$arg" : "X\\(.*\\)$as_nl";
20628	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20629      esac;
20630      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20631    '
20632    export as_echo_n_body
20633    as_echo_n='sh -c $as_echo_n_body as_echo'
20634  fi
20635  export as_echo_body
20636  as_echo='sh -c $as_echo_body as_echo'
20637fi
20638
20639# The user is always right.
20640if test "${PATH_SEPARATOR+set}" != set; then
20641  PATH_SEPARATOR=:
20642  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20643    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20644      PATH_SEPARATOR=';'
20645  }
20646fi
20647
20648
20649# IFS
20650# We need space, tab and new line, in precisely that order.  Quoting is
20651# there to prevent editors from complaining about space-tab.
20652# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20653# splitting by setting IFS to empty value.)
20654IFS=" ""	$as_nl"
20655
20656# Find who we are.  Look in the path if we contain no directory separator.
20657as_myself=
20658case $0 in #((
20659  *[\\/]* ) as_myself=$0 ;;
20660  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20661for as_dir in $PATH
20662do
20663  IFS=$as_save_IFS
20664  test -z "$as_dir" && as_dir=.
20665    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20666  done
20667IFS=$as_save_IFS
20668
20669     ;;
20670esac
20671# We did not find ourselves, most probably we were run as `sh COMMAND'
20672# in which case we are not to be found in the path.
20673if test "x$as_myself" = x; then
20674  as_myself=$0
20675fi
20676if test ! -f "$as_myself"; then
20677  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20678  exit 1
20679fi
20680
20681# Unset variables that we do not need and which cause bugs (e.g. in
20682# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20683# suppresses any "Segmentation fault" message there.  '((' could
20684# trigger a bug in pdksh 5.2.14.
20685for as_var in BASH_ENV ENV MAIL MAILPATH
20686do eval test x\${$as_var+set} = xset \
20687  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20688done
20689PS1='$ '
20690PS2='> '
20691PS4='+ '
20692
20693# NLS nuisances.
20694LC_ALL=C
20695export LC_ALL
20696LANGUAGE=C
20697export LANGUAGE
20698
20699# CDPATH.
20700(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20701
20702
20703# as_fn_error STATUS ERROR [LINENO LOG_FD]
20704# ----------------------------------------
20705# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20706# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20707# script with STATUS, using 1 if that was 0.
20708as_fn_error ()
20709{
20710  as_status=$1; test $as_status -eq 0 && as_status=1
20711  if test "$4"; then
20712    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20713    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20714  fi
20715  $as_echo "$as_me: error: $2" >&2
20716  as_fn_exit $as_status
20717} # as_fn_error
20718
20719
20720# as_fn_set_status STATUS
20721# -----------------------
20722# Set $? to STATUS, without forking.
20723as_fn_set_status ()
20724{
20725  return $1
20726} # as_fn_set_status
20727
20728# as_fn_exit STATUS
20729# -----------------
20730# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20731as_fn_exit ()
20732{
20733  set +e
20734  as_fn_set_status $1
20735  exit $1
20736} # as_fn_exit
20737
20738# as_fn_unset VAR
20739# ---------------
20740# Portably unset VAR.
20741as_fn_unset ()
20742{
20743  { eval $1=; unset $1;}
20744}
20745as_unset=as_fn_unset
20746# as_fn_append VAR VALUE
20747# ----------------------
20748# Append the text in VALUE to the end of the definition contained in VAR. Take
20749# advantage of any shell optimizations that allow amortized linear growth over
20750# repeated appends, instead of the typical quadratic growth present in naive
20751# implementations.
20752if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20753  eval 'as_fn_append ()
20754  {
20755    eval $1+=\$2
20756  }'
20757else
20758  as_fn_append ()
20759  {
20760    eval $1=\$$1\$2
20761  }
20762fi # as_fn_append
20763
20764# as_fn_arith ARG...
20765# ------------------
20766# Perform arithmetic evaluation on the ARGs, and store the result in the
20767# global $as_val. Take advantage of shells that can avoid forks. The arguments
20768# must be portable across $(()) and expr.
20769if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20770  eval 'as_fn_arith ()
20771  {
20772    as_val=$(( $* ))
20773  }'
20774else
20775  as_fn_arith ()
20776  {
20777    as_val=`expr "$@" || test $? -eq 1`
20778  }
20779fi # as_fn_arith
20780
20781
20782if expr a : '\(a\)' >/dev/null 2>&1 &&
20783   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20784  as_expr=expr
20785else
20786  as_expr=false
20787fi
20788
20789if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20790  as_basename=basename
20791else
20792  as_basename=false
20793fi
20794
20795if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20796  as_dirname=dirname
20797else
20798  as_dirname=false
20799fi
20800
20801as_me=`$as_basename -- "$0" ||
20802$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20803	 X"$0" : 'X\(//\)$' \| \
20804	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20805$as_echo X/"$0" |
20806    sed '/^.*\/\([^/][^/]*\)\/*$/{
20807	    s//\1/
20808	    q
20809	  }
20810	  /^X\/\(\/\/\)$/{
20811	    s//\1/
20812	    q
20813	  }
20814	  /^X\/\(\/\).*/{
20815	    s//\1/
20816	    q
20817	  }
20818	  s/.*/./; q'`
20819
20820# Avoid depending upon Character Ranges.
20821as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20822as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20823as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20824as_cr_digits='0123456789'
20825as_cr_alnum=$as_cr_Letters$as_cr_digits
20826
20827ECHO_C= ECHO_N= ECHO_T=
20828case `echo -n x` in #(((((
20829-n*)
20830  case `echo 'xy\c'` in
20831  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20832  xy)  ECHO_C='\c';;
20833  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20834       ECHO_T='	';;
20835  esac;;
20836*)
20837  ECHO_N='-n';;
20838esac
20839
20840rm -f conf$$ conf$$.exe conf$$.file
20841if test -d conf$$.dir; then
20842  rm -f conf$$.dir/conf$$.file
20843else
20844  rm -f conf$$.dir
20845  mkdir conf$$.dir 2>/dev/null
20846fi
20847if (echo >conf$$.file) 2>/dev/null; then
20848  if ln -s conf$$.file conf$$ 2>/dev/null; then
20849    as_ln_s='ln -s'
20850    # ... but there are two gotchas:
20851    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20852    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20853    # In both cases, we have to default to `cp -p'.
20854    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20855      as_ln_s='cp -p'
20856  elif ln conf$$.file conf$$ 2>/dev/null; then
20857    as_ln_s=ln
20858  else
20859    as_ln_s='cp -p'
20860  fi
20861else
20862  as_ln_s='cp -p'
20863fi
20864rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20865rmdir conf$$.dir 2>/dev/null
20866
20867
20868# as_fn_mkdir_p
20869# -------------
20870# Create "$as_dir" as a directory, including parents if necessary.
20871as_fn_mkdir_p ()
20872{
20873
20874  case $as_dir in #(
20875  -*) as_dir=./$as_dir;;
20876  esac
20877  test -d "$as_dir" || eval $as_mkdir_p || {
20878    as_dirs=
20879    while :; do
20880      case $as_dir in #(
20881      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20882      *) as_qdir=$as_dir;;
20883      esac
20884      as_dirs="'$as_qdir' $as_dirs"
20885      as_dir=`$as_dirname -- "$as_dir" ||
20886$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20887	 X"$as_dir" : 'X\(//\)[^/]' \| \
20888	 X"$as_dir" : 'X\(//\)$' \| \
20889	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20890$as_echo X"$as_dir" |
20891    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20892	    s//\1/
20893	    q
20894	  }
20895	  /^X\(\/\/\)[^/].*/{
20896	    s//\1/
20897	    q
20898	  }
20899	  /^X\(\/\/\)$/{
20900	    s//\1/
20901	    q
20902	  }
20903	  /^X\(\/\).*/{
20904	    s//\1/
20905	    q
20906	  }
20907	  s/.*/./; q'`
20908      test -d "$as_dir" && break
20909    done
20910    test -z "$as_dirs" || eval "mkdir $as_dirs"
20911  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20912
20913
20914} # as_fn_mkdir_p
20915if mkdir -p . 2>/dev/null; then
20916  as_mkdir_p='mkdir -p "$as_dir"'
20917else
20918  test -d ./-p && rmdir ./-p
20919  as_mkdir_p=false
20920fi
20921
20922if test -x / >/dev/null 2>&1; then
20923  as_test_x='test -x'
20924else
20925  if ls -dL / >/dev/null 2>&1; then
20926    as_ls_L_option=L
20927  else
20928    as_ls_L_option=
20929  fi
20930  as_test_x='
20931    eval sh -c '\''
20932      if test -d "$1"; then
20933	test -d "$1/.";
20934      else
20935	case $1 in #(
20936	-*)set "./$1";;
20937	esac;
20938	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20939	???[sx]*):;;*)false;;esac;fi
20940    '\'' sh
20941  '
20942fi
20943as_executable_p=$as_test_x
20944
20945# Sed expression to map a string onto a valid CPP name.
20946as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20947
20948# Sed expression to map a string onto a valid variable name.
20949as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20950
20951
20952exec 6>&1
20953## ----------------------------------- ##
20954## Main body of $CONFIG_STATUS script. ##
20955## ----------------------------------- ##
20956_ASEOF
20957test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20958
20959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20960# Save the log message, to keep $0 and so on meaningful, and to
20961# report actual input values of CONFIG_FILES etc. instead of their
20962# values after options handling.
20963ac_log="
20964This file was extended by $as_me, which was
20965generated by GNU Autoconf 2.68.  Invocation command line was
20966
20967  CONFIG_FILES    = $CONFIG_FILES
20968  CONFIG_HEADERS  = $CONFIG_HEADERS
20969  CONFIG_LINKS    = $CONFIG_LINKS
20970  CONFIG_COMMANDS = $CONFIG_COMMANDS
20971  $ $0 $@
20972
20973on `(hostname || uname -n) 2>/dev/null | sed 1q`
20974"
20975
20976_ACEOF
20977
20978case $ac_config_files in *"
20979"*) set x $ac_config_files; shift; ac_config_files=$*;;
20980esac
20981
20982case $ac_config_headers in *"
20983"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20984esac
20985
20986
20987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20988# Files that config.status was made for.
20989config_files="$ac_config_files"
20990config_headers="$ac_config_headers"
20991config_commands="$ac_config_commands"
20992
20993_ACEOF
20994
20995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20996ac_cs_usage="\
20997\`$as_me' instantiates files and other configuration actions
20998from templates according to the current configuration.  Unless the files
20999and actions are specified as TAGs, all are instantiated by default.
21000
21001Usage: $0 [OPTION]... [TAG]...
21002
21003  -h, --help       print this help, then exit
21004  -V, --version    print version number and configuration settings, then exit
21005      --config     print configuration, then exit
21006  -q, --quiet, --silent
21007                   do not print progress messages
21008  -d, --debug      don't remove temporary files
21009      --recheck    update $as_me by reconfiguring in the same conditions
21010      --file=FILE[:TEMPLATE]
21011                   instantiate the configuration file FILE
21012      --header=FILE[:TEMPLATE]
21013                   instantiate the configuration header FILE
21014
21015Configuration files:
21016$config_files
21017
21018Configuration headers:
21019$config_headers
21020
21021Configuration commands:
21022$config_commands
21023
21024Report bugs to the package provider."
21025
21026_ACEOF
21027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21028ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21029ac_cs_version="\\
21030config.status
21031configured by $0, generated by GNU Autoconf 2.68,
21032  with options \\"\$ac_cs_config\\"
21033
21034Copyright (C) 2010 Free Software Foundation, Inc.
21035This config.status script is free software; the Free Software Foundation
21036gives unlimited permission to copy, distribute and modify it."
21037
21038ac_pwd='$ac_pwd'
21039srcdir='$srcdir'
21040INSTALL='$INSTALL'
21041MKDIR_P='$MKDIR_P'
21042AWK='$AWK'
21043test -n "\$AWK" || AWK=awk
21044_ACEOF
21045
21046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21047# The default lists apply if the user does not specify any file.
21048ac_need_defaults=:
21049while test $# != 0
21050do
21051  case $1 in
21052  --*=?*)
21053    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21054    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21055    ac_shift=:
21056    ;;
21057  --*=)
21058    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21059    ac_optarg=
21060    ac_shift=:
21061    ;;
21062  *)
21063    ac_option=$1
21064    ac_optarg=$2
21065    ac_shift=shift
21066    ;;
21067  esac
21068
21069  case $ac_option in
21070  # Handling of the options.
21071  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21072    ac_cs_recheck=: ;;
21073  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21074    $as_echo "$ac_cs_version"; exit ;;
21075  --config | --confi | --conf | --con | --co | --c )
21076    $as_echo "$ac_cs_config"; exit ;;
21077  --debug | --debu | --deb | --de | --d | -d )
21078    debug=: ;;
21079  --file | --fil | --fi | --f )
21080    $ac_shift
21081    case $ac_optarg in
21082    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21083    '') as_fn_error $? "missing file argument" ;;
21084    esac
21085    as_fn_append CONFIG_FILES " '$ac_optarg'"
21086    ac_need_defaults=false;;
21087  --header | --heade | --head | --hea )
21088    $ac_shift
21089    case $ac_optarg in
21090    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21091    esac
21092    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21093    ac_need_defaults=false;;
21094  --he | --h)
21095    # Conflict between --help and --header
21096    as_fn_error $? "ambiguous option: \`$1'
21097Try \`$0 --help' for more information.";;
21098  --help | --hel | -h )
21099    $as_echo "$ac_cs_usage"; exit ;;
21100  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21101  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21102    ac_cs_silent=: ;;
21103
21104  # This is an error.
21105  -*) as_fn_error $? "unrecognized option: \`$1'
21106Try \`$0 --help' for more information." ;;
21107
21108  *) as_fn_append ac_config_targets " $1"
21109     ac_need_defaults=false ;;
21110
21111  esac
21112  shift
21113done
21114
21115ac_configure_extra_args=
21116
21117if $ac_cs_silent; then
21118  exec 6>/dev/null
21119  ac_configure_extra_args="$ac_configure_extra_args --silent"
21120fi
21121
21122_ACEOF
21123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21124if \$ac_cs_recheck; then
21125  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21126  shift
21127  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21128  CONFIG_SHELL='$SHELL'
21129  export CONFIG_SHELL
21130  exec "\$@"
21131fi
21132
21133_ACEOF
21134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21135exec 5>>config.log
21136{
21137  echo
21138  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21139## Running $as_me. ##
21140_ASBOX
21141  $as_echo "$ac_log"
21142} >&5
21143
21144_ACEOF
21145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21146#
21147# INIT-COMMANDS
21148#
21149AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21150
21151
21152# The HP-UX ksh and POSIX shell print the target directory to stdout
21153# if CDPATH is set.
21154(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21155
21156sed_quote_subst='$sed_quote_subst'
21157double_quote_subst='$double_quote_subst'
21158delay_variable_subst='$delay_variable_subst'
21159macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21160macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21161enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21162enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21163pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21164enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21165SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21166ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21167PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21168host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21169host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21170host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21171build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21172build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21173build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21174SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21175Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21176GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21177EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21178FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21179LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21180NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21181LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21182max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21183ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21184exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21185lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21186lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21187lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21188lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21189lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21190reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21191reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21192OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21193deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21194file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21195file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21196want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21197DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21198sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21199AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21200AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21201archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21202STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21203RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21204old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21205old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21206old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21207lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21208CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21209CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21210compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21211GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21212lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21213lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21214lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21215lt_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"`'
21216nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21217lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21218objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21219MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21220lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21221lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21222lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21223lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21224lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21225need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21226MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21227DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21228NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21229LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21230OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21231OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21232libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21233shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21234extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21235archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21236enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21237export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21238whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21239compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21240old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21241old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21242archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21243archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21244module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21245module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21246with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21247allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21248no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21249hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21250hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21251hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21252hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21253hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21254hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21255hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21256inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21257link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21258always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21259export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21260exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21261include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21262prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21263postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21264file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21265variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21266need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21267need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21268version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21269runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21270shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21271shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21272libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21273library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21274soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21275install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21276postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21277postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21278finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21279finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21280hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21281sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21282sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21283hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21284enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21285enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21286enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21287old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21288striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21289
21290LTCC='$LTCC'
21291LTCFLAGS='$LTCFLAGS'
21292compiler='$compiler_DEFAULT'
21293
21294# A function that is used when there is no print builtin or printf.
21295func_fallback_echo ()
21296{
21297  eval 'cat <<_LTECHO_EOF
21298\$1
21299_LTECHO_EOF'
21300}
21301
21302# Quote evaled strings.
21303for var in SHELL \
21304ECHO \
21305PATH_SEPARATOR \
21306SED \
21307GREP \
21308EGREP \
21309FGREP \
21310LD \
21311NM \
21312LN_S \
21313lt_SP2NL \
21314lt_NL2SP \
21315reload_flag \
21316OBJDUMP \
21317deplibs_check_method \
21318file_magic_cmd \
21319file_magic_glob \
21320want_nocaseglob \
21321DLLTOOL \
21322sharedlib_from_linklib_cmd \
21323AR \
21324AR_FLAGS \
21325archiver_list_spec \
21326STRIP \
21327RANLIB \
21328CC \
21329CFLAGS \
21330compiler \
21331lt_cv_sys_global_symbol_pipe \
21332lt_cv_sys_global_symbol_to_cdecl \
21333lt_cv_sys_global_symbol_to_c_name_address \
21334lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21335nm_file_list_spec \
21336lt_prog_compiler_no_builtin_flag \
21337lt_prog_compiler_pic \
21338lt_prog_compiler_wl \
21339lt_prog_compiler_static \
21340lt_cv_prog_compiler_c_o \
21341need_locks \
21342MANIFEST_TOOL \
21343DSYMUTIL \
21344NMEDIT \
21345LIPO \
21346OTOOL \
21347OTOOL64 \
21348shrext_cmds \
21349export_dynamic_flag_spec \
21350whole_archive_flag_spec \
21351compiler_needs_object \
21352with_gnu_ld \
21353allow_undefined_flag \
21354no_undefined_flag \
21355hardcode_libdir_flag_spec \
21356hardcode_libdir_separator \
21357exclude_expsyms \
21358include_expsyms \
21359file_list_spec \
21360variables_saved_for_relink \
21361libname_spec \
21362library_names_spec \
21363soname_spec \
21364install_override_mode \
21365finish_eval \
21366old_striplib \
21367striplib; do
21368    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21369    *[\\\\\\\`\\"\\\$]*)
21370      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21371      ;;
21372    *)
21373      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21374      ;;
21375    esac
21376done
21377
21378# Double-quote double-evaled strings.
21379for var in reload_cmds \
21380old_postinstall_cmds \
21381old_postuninstall_cmds \
21382old_archive_cmds \
21383extract_expsyms_cmds \
21384old_archive_from_new_cmds \
21385old_archive_from_expsyms_cmds \
21386archive_cmds \
21387archive_expsym_cmds \
21388module_cmds \
21389module_expsym_cmds \
21390export_symbols_cmds \
21391prelink_cmds \
21392postlink_cmds \
21393postinstall_cmds \
21394postuninstall_cmds \
21395finish_cmds \
21396sys_lib_search_path_spec \
21397sys_lib_dlsearch_path_spec; do
21398    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21399    *[\\\\\\\`\\"\\\$]*)
21400      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21401      ;;
21402    *)
21403      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21404      ;;
21405    esac
21406done
21407
21408ac_aux_dir='$ac_aux_dir'
21409xsi_shell='$xsi_shell'
21410lt_shell_append='$lt_shell_append'
21411
21412# See if we are running on zsh, and set the options which allow our
21413# commands through without removal of \ escapes INIT.
21414if test -n "\${ZSH_VERSION+set}" ; then
21415   setopt NO_GLOB_SUBST
21416fi
21417
21418
21419    PACKAGE='$PACKAGE'
21420    VERSION='$VERSION'
21421    TIMESTAMP='$TIMESTAMP'
21422    RM='$RM'
21423    ofile='$ofile'
21424
21425
21426
21427
21428_ACEOF
21429
21430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21431
21432# Handling of arguments.
21433for ac_config_target in $ac_config_targets
21434do
21435  case $ac_config_target in
21436    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21437    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21438    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21439    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21440    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
21441    "bin/ad/Makefile") CONFIG_FILES="$CONFIG_FILES bin/ad/Makefile" ;;
21442    "bin/adv1tov2/Makefile") CONFIG_FILES="$CONFIG_FILES bin/adv1tov2/Makefile" ;;
21443    "bin/aecho/Makefile") CONFIG_FILES="$CONFIG_FILES bin/aecho/Makefile" ;;
21444    "bin/afppasswd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/afppasswd/Makefile" ;;
21445    "bin/cnid/Makefile") CONFIG_FILES="$CONFIG_FILES bin/cnid/Makefile" ;;
21446    "bin/cnid/cnid2_create") CONFIG_FILES="$CONFIG_FILES bin/cnid/cnid2_create" ;;
21447    "bin/getzones/Makefile") CONFIG_FILES="$CONFIG_FILES bin/getzones/Makefile" ;;
21448    "bin/megatron/Makefile") CONFIG_FILES="$CONFIG_FILES bin/megatron/Makefile" ;;
21449    "bin/misc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/misc/Makefile" ;;
21450    "bin/nbp/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nbp/Makefile" ;;
21451    "bin/pap/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pap/Makefile" ;;
21452    "bin/psorder/Makefile") CONFIG_FILES="$CONFIG_FILES bin/psorder/Makefile" ;;
21453    "bin/uniconv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/uniconv/Makefile" ;;
21454    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
21455    "config/pam/Makefile") CONFIG_FILES="$CONFIG_FILES config/pam/Makefile" ;;
21456    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
21457    "contrib/macusers/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/macusers/Makefile" ;;
21458    "contrib/macusers/macusers") CONFIG_FILES="$CONFIG_FILES contrib/macusers/macusers" ;;
21459    "contrib/misc/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/misc/Makefile" ;;
21460    "contrib/printing/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/printing/Makefile" ;;
21461    "contrib/shell_utils/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/Makefile" ;;
21462    "contrib/shell_utils/apple_dump") CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/apple_dump" ;;
21463    "contrib/shell_utils/asip-status.pl") CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/asip-status.pl" ;;
21464    "contrib/timelord/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/timelord/Makefile" ;;
21465    "contrib/a2boot/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/a2boot/Makefile" ;;
21466    "distrib/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
21467    "distrib/config/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/config/Makefile" ;;
21468    "distrib/config/netatalk-config") CONFIG_FILES="$CONFIG_FILES distrib/config/netatalk-config" ;;
21469    "distrib/initscripts/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/initscripts/Makefile" ;;
21470    "distrib/m4/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/m4/Makefile" ;;
21471    "distrib/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/systemd/Makefile" ;;
21472    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21473    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
21474    "etc/afpd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/afpd/Makefile" ;;
21475    "etc/atalkd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/atalkd/Makefile" ;;
21476    "etc/cnid_dbd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/cnid_dbd/Makefile" ;;
21477    "etc/uams/Makefile") CONFIG_FILES="$CONFIG_FILES etc/uams/Makefile" ;;
21478    "etc/uams/uams_krb4/Makefile") CONFIG_FILES="$CONFIG_FILES etc/uams/uams_krb4/Makefile" ;;
21479    "etc/papd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/papd/Makefile" ;;
21480    "etc/psf/Makefile") CONFIG_FILES="$CONFIG_FILES etc/psf/Makefile" ;;
21481    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21482    "include/atalk/Makefile") CONFIG_FILES="$CONFIG_FILES include/atalk/Makefile" ;;
21483    "libatalk/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/Makefile" ;;
21484    "libatalk/acl/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/acl/Makefile" ;;
21485    "libatalk/adouble/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/adouble/Makefile" ;;
21486    "libatalk/asp/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/asp/Makefile" ;;
21487    "libatalk/atp/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/atp/Makefile" ;;
21488    "libatalk/bstring/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/bstring/Makefile" ;;
21489    "libatalk/cnid/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/cnid/Makefile" ;;
21490    "libatalk/cnid/cdb/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/cnid/cdb/Makefile" ;;
21491    "libatalk/cnid/last/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/cnid/last/Makefile" ;;
21492    "libatalk/cnid/dbd/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/cnid/dbd/Makefile" ;;
21493    "libatalk/cnid/tdb/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/cnid/tdb/Makefile" ;;
21494    "libatalk/compat/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/compat/Makefile" ;;
21495    "libatalk/dsi/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/dsi/Makefile" ;;
21496    "libatalk/nbp/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/nbp/Makefile" ;;
21497    "libatalk/netddp/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/netddp/Makefile" ;;
21498    "libatalk/util/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/util/Makefile" ;;
21499    "libatalk/tdb/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/tdb/Makefile" ;;
21500    "libatalk/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/unicode/Makefile" ;;
21501    "libatalk/unicode/charsets/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/unicode/charsets/Makefile" ;;
21502    "libatalk/vfs/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/vfs/Makefile" ;;
21503    "macros/Makefile") CONFIG_FILES="$CONFIG_FILES macros/Makefile" ;;
21504    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21505    "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
21506    "man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES man/man3/Makefile" ;;
21507    "man/man4/Makefile") CONFIG_FILES="$CONFIG_FILES man/man4/Makefile" ;;
21508    "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
21509    "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
21510    "sys/Makefile") CONFIG_FILES="$CONFIG_FILES sys/Makefile" ;;
21511    "sys/generic/Makefile") CONFIG_FILES="$CONFIG_FILES sys/generic/Makefile" ;;
21512    "sys/generic/sys/Makefile") CONFIG_FILES="$CONFIG_FILES sys/generic/sys/Makefile" ;;
21513    "sys/netatalk/Makefile") CONFIG_FILES="$CONFIG_FILES sys/netatalk/Makefile" ;;
21514    "sys/netbsd/Makefile") CONFIG_FILES="$CONFIG_FILES sys/netbsd/Makefile" ;;
21515    "sys/netbsd/netatalk/Makefile") CONFIG_FILES="$CONFIG_FILES sys/netbsd/netatalk/Makefile" ;;
21516    "sys/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES sys/solaris/Makefile" ;;
21517    "sys/sunos/Makefile") CONFIG_FILES="$CONFIG_FILES sys/sunos/Makefile" ;;
21518    "sys/ultrix/Makefile") CONFIG_FILES="$CONFIG_FILES sys/ultrix/Makefile" ;;
21519    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21520    "test/afpd/Makefile") CONFIG_FILES="$CONFIG_FILES test/afpd/Makefile" ;;
21521    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21522
21523  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21524  esac
21525done
21526
21527
21528# If the user did not use the arguments to specify the items to instantiate,
21529# then the envvar interface is used.  Set only those that are not.
21530# We use the long form for the default assignment because of an extremely
21531# bizarre bug on SunOS 4.1.3.
21532if $ac_need_defaults; then
21533  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21534  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21535  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21536fi
21537
21538# Have a temporary directory for convenience.  Make it in the build tree
21539# simply because there is no reason against having it here, and in addition,
21540# creating and moving files from /tmp can sometimes cause problems.
21541# Hook for its removal unless debugging.
21542# Note that there is a small window in which the directory will not be cleaned:
21543# after its creation but before its name has been assigned to `$tmp'.
21544$debug ||
21545{
21546  tmp= ac_tmp=
21547  trap 'exit_status=$?
21548  : "${ac_tmp:=$tmp}"
21549  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21550' 0
21551  trap 'as_fn_exit 1' 1 2 13 15
21552}
21553# Create a (secure) tmp directory for tmp files.
21554
21555{
21556  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21557  test -d "$tmp"
21558}  ||
21559{
21560  tmp=./conf$$-$RANDOM
21561  (umask 077 && mkdir "$tmp")
21562} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21563ac_tmp=$tmp
21564
21565# Set up the scripts for CONFIG_FILES section.
21566# No need to generate them if there are no CONFIG_FILES.
21567# This happens for instance with `./config.status config.h'.
21568if test -n "$CONFIG_FILES"; then
21569
21570
21571ac_cr=`echo X | tr X '\015'`
21572# On cygwin, bash can eat \r inside `` if the user requested igncr.
21573# But we know of no other shell where ac_cr would be empty at this
21574# point, so we can use a bashism as a fallback.
21575if test "x$ac_cr" = x; then
21576  eval ac_cr=\$\'\\r\'
21577fi
21578ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21579if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21580  ac_cs_awk_cr='\\r'
21581else
21582  ac_cs_awk_cr=$ac_cr
21583fi
21584
21585echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21586_ACEOF
21587
21588
21589{
21590  echo "cat >conf$$subs.awk <<_ACEOF" &&
21591  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21592  echo "_ACEOF"
21593} >conf$$subs.sh ||
21594  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21595ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21596ac_delim='%!_!# '
21597for ac_last_try in false false false false false :; do
21598  . ./conf$$subs.sh ||
21599    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21600
21601  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21602  if test $ac_delim_n = $ac_delim_num; then
21603    break
21604  elif $ac_last_try; then
21605    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21606  else
21607    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21608  fi
21609done
21610rm -f conf$$subs.sh
21611
21612cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21613cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21614_ACEOF
21615sed -n '
21616h
21617s/^/S["/; s/!.*/"]=/
21618p
21619g
21620s/^[^!]*!//
21621:repl
21622t repl
21623s/'"$ac_delim"'$//
21624t delim
21625:nl
21626h
21627s/\(.\{148\}\)..*/\1/
21628t more1
21629s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21630p
21631n
21632b repl
21633:more1
21634s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21635p
21636g
21637s/.\{148\}//
21638t nl
21639:delim
21640h
21641s/\(.\{148\}\)..*/\1/
21642t more2
21643s/["\\]/\\&/g; s/^/"/; s/$/"/
21644p
21645b
21646:more2
21647s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21648p
21649g
21650s/.\{148\}//
21651t delim
21652' <conf$$subs.awk | sed '
21653/^[^""]/{
21654  N
21655  s/\n//
21656}
21657' >>$CONFIG_STATUS || ac_write_fail=1
21658rm -f conf$$subs.awk
21659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21660_ACAWK
21661cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21662  for (key in S) S_is_set[key] = 1
21663  FS = ""
21664
21665}
21666{
21667  line = $ 0
21668  nfields = split(line, field, "@")
21669  substed = 0
21670  len = length(field[1])
21671  for (i = 2; i < nfields; i++) {
21672    key = field[i]
21673    keylen = length(key)
21674    if (S_is_set[key]) {
21675      value = S[key]
21676      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21677      len += length(value) + length(field[++i])
21678      substed = 1
21679    } else
21680      len += 1 + keylen
21681  }
21682
21683  print line
21684}
21685
21686_ACAWK
21687_ACEOF
21688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21689if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21690  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21691else
21692  cat
21693fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21694  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21695_ACEOF
21696
21697# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21698# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21699# trailing colons and then remove the whole line if VPATH becomes empty
21700# (actually we leave an empty line to preserve line numbers).
21701if test "x$srcdir" = x.; then
21702  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21703h
21704s///
21705s/^/:/
21706s/[	 ]*$/:/
21707s/:\$(srcdir):/:/g
21708s/:\${srcdir}:/:/g
21709s/:@srcdir@:/:/g
21710s/^:*//
21711s/:*$//
21712x
21713s/\(=[	 ]*\).*/\1/
21714G
21715s/\n//
21716s/^[^=]*=[	 ]*$//
21717}'
21718fi
21719
21720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21721fi # test -n "$CONFIG_FILES"
21722
21723# Set up the scripts for CONFIG_HEADERS section.
21724# No need to generate them if there are no CONFIG_HEADERS.
21725# This happens for instance with `./config.status Makefile'.
21726if test -n "$CONFIG_HEADERS"; then
21727cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21728BEGIN {
21729_ACEOF
21730
21731# Transform confdefs.h into an awk script `defines.awk', embedded as
21732# here-document in config.status, that substitutes the proper values into
21733# config.h.in to produce config.h.
21734
21735# Create a delimiter string that does not exist in confdefs.h, to ease
21736# handling of long lines.
21737ac_delim='%!_!# '
21738for ac_last_try in false false :; do
21739  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21740  if test -z "$ac_tt"; then
21741    break
21742  elif $ac_last_try; then
21743    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21744  else
21745    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21746  fi
21747done
21748
21749# For the awk script, D is an array of macro values keyed by name,
21750# likewise P contains macro parameters if any.  Preserve backslash
21751# newline sequences.
21752
21753ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21754sed -n '
21755s/.\{148\}/&'"$ac_delim"'/g
21756t rset
21757:rset
21758s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21759t def
21760d
21761:def
21762s/\\$//
21763t bsnl
21764s/["\\]/\\&/g
21765s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21766D["\1"]=" \3"/p
21767s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21768d
21769:bsnl
21770s/["\\]/\\&/g
21771s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21772D["\1"]=" \3\\\\\\n"\\/p
21773t cont
21774s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21775t cont
21776d
21777:cont
21778n
21779s/.\{148\}/&'"$ac_delim"'/g
21780t clear
21781:clear
21782s/\\$//
21783t bsnlc
21784s/["\\]/\\&/g; s/^/"/; s/$/"/p
21785d
21786:bsnlc
21787s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21788b cont
21789' <confdefs.h | sed '
21790s/'"$ac_delim"'/"\\\
21791"/g' >>$CONFIG_STATUS || ac_write_fail=1
21792
21793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21794  for (key in D) D_is_set[key] = 1
21795  FS = ""
21796}
21797/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21798  line = \$ 0
21799  split(line, arg, " ")
21800  if (arg[1] == "#") {
21801    defundef = arg[2]
21802    mac1 = arg[3]
21803  } else {
21804    defundef = substr(arg[1], 2)
21805    mac1 = arg[2]
21806  }
21807  split(mac1, mac2, "(") #)
21808  macro = mac2[1]
21809  prefix = substr(line, 1, index(line, defundef) - 1)
21810  if (D_is_set[macro]) {
21811    # Preserve the white space surrounding the "#".
21812    print prefix "define", macro P[macro] D[macro]
21813    next
21814  } else {
21815    # Replace #undef with comments.  This is necessary, for example,
21816    # in the case of _POSIX_SOURCE, which is predefined and required
21817    # on some systems where configure will not decide to define it.
21818    if (defundef == "undef") {
21819      print "/*", prefix defundef, macro, "*/"
21820      next
21821    }
21822  }
21823}
21824{ print }
21825_ACAWK
21826_ACEOF
21827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21828  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21829fi # test -n "$CONFIG_HEADERS"
21830
21831
21832eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21833shift
21834for ac_tag
21835do
21836  case $ac_tag in
21837  :[FHLC]) ac_mode=$ac_tag; continue;;
21838  esac
21839  case $ac_mode$ac_tag in
21840  :[FHL]*:*);;
21841  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21842  :[FH]-) ac_tag=-:-;;
21843  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21844  esac
21845  ac_save_IFS=$IFS
21846  IFS=:
21847  set x $ac_tag
21848  IFS=$ac_save_IFS
21849  shift
21850  ac_file=$1
21851  shift
21852
21853  case $ac_mode in
21854  :L) ac_source=$1;;
21855  :[FH])
21856    ac_file_inputs=
21857    for ac_f
21858    do
21859      case $ac_f in
21860      -) ac_f="$ac_tmp/stdin";;
21861      *) # Look for the file first in the build tree, then in the source tree
21862	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21863	 # because $ac_f cannot contain `:'.
21864	 test -f "$ac_f" ||
21865	   case $ac_f in
21866	   [\\/$]*) false;;
21867	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21868	   esac ||
21869	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21870      esac
21871      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21872      as_fn_append ac_file_inputs " '$ac_f'"
21873    done
21874
21875    # Let's still pretend it is `configure' which instantiates (i.e., don't
21876    # use $as_me), people would be surprised to read:
21877    #    /* config.h.  Generated by config.status.  */
21878    configure_input='Generated from '`
21879	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21880	`' by configure.'
21881    if test x"$ac_file" != x-; then
21882      configure_input="$ac_file.  $configure_input"
21883      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21884$as_echo "$as_me: creating $ac_file" >&6;}
21885    fi
21886    # Neutralize special characters interpreted by sed in replacement strings.
21887    case $configure_input in #(
21888    *\&* | *\|* | *\\* )
21889       ac_sed_conf_input=`$as_echo "$configure_input" |
21890       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21891    *) ac_sed_conf_input=$configure_input;;
21892    esac
21893
21894    case $ac_tag in
21895    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21896      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21897    esac
21898    ;;
21899  esac
21900
21901  ac_dir=`$as_dirname -- "$ac_file" ||
21902$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21903	 X"$ac_file" : 'X\(//\)[^/]' \| \
21904	 X"$ac_file" : 'X\(//\)$' \| \
21905	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21906$as_echo X"$ac_file" |
21907    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21908	    s//\1/
21909	    q
21910	  }
21911	  /^X\(\/\/\)[^/].*/{
21912	    s//\1/
21913	    q
21914	  }
21915	  /^X\(\/\/\)$/{
21916	    s//\1/
21917	    q
21918	  }
21919	  /^X\(\/\).*/{
21920	    s//\1/
21921	    q
21922	  }
21923	  s/.*/./; q'`
21924  as_dir="$ac_dir"; as_fn_mkdir_p
21925  ac_builddir=.
21926
21927case "$ac_dir" in
21928.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21929*)
21930  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21931  # A ".." for each directory in $ac_dir_suffix.
21932  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21933  case $ac_top_builddir_sub in
21934  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21935  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21936  esac ;;
21937esac
21938ac_abs_top_builddir=$ac_pwd
21939ac_abs_builddir=$ac_pwd$ac_dir_suffix
21940# for backward compatibility:
21941ac_top_builddir=$ac_top_build_prefix
21942
21943case $srcdir in
21944  .)  # We are building in place.
21945    ac_srcdir=.
21946    ac_top_srcdir=$ac_top_builddir_sub
21947    ac_abs_top_srcdir=$ac_pwd ;;
21948  [\\/]* | ?:[\\/]* )  # Absolute name.
21949    ac_srcdir=$srcdir$ac_dir_suffix;
21950    ac_top_srcdir=$srcdir
21951    ac_abs_top_srcdir=$srcdir ;;
21952  *) # Relative name.
21953    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21954    ac_top_srcdir=$ac_top_build_prefix$srcdir
21955    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21956esac
21957ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21958
21959
21960  case $ac_mode in
21961  :F)
21962  #
21963  # CONFIG_FILE
21964  #
21965
21966  case $INSTALL in
21967  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21968  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21969  esac
21970  ac_MKDIR_P=$MKDIR_P
21971  case $MKDIR_P in
21972  [\\/$]* | ?:[\\/]* ) ;;
21973  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21974  esac
21975_ACEOF
21976
21977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21978# If the template does not know about datarootdir, expand it.
21979# FIXME: This hack should be removed a few years after 2.60.
21980ac_datarootdir_hack=; ac_datarootdir_seen=
21981ac_sed_dataroot='
21982/datarootdir/ {
21983  p
21984  q
21985}
21986/@datadir@/p
21987/@docdir@/p
21988/@infodir@/p
21989/@localedir@/p
21990/@mandir@/p'
21991case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21992*datarootdir*) ac_datarootdir_seen=yes;;
21993*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21994  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21995$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21996_ACEOF
21997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21998  ac_datarootdir_hack='
21999  s&@datadir@&$datadir&g
22000  s&@docdir@&$docdir&g
22001  s&@infodir@&$infodir&g
22002  s&@localedir@&$localedir&g
22003  s&@mandir@&$mandir&g
22004  s&\\\${datarootdir}&$datarootdir&g' ;;
22005esac
22006_ACEOF
22007
22008# Neutralize VPATH when `$srcdir' = `.'.
22009# Shell code in configure.ac might set extrasub.
22010# FIXME: do we really want to maintain this feature?
22011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22012ac_sed_extra="$ac_vpsub
22013$extrasub
22014_ACEOF
22015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22016:t
22017/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22018s|@configure_input@|$ac_sed_conf_input|;t t
22019s&@top_builddir@&$ac_top_builddir_sub&;t t
22020s&@top_build_prefix@&$ac_top_build_prefix&;t t
22021s&@srcdir@&$ac_srcdir&;t t
22022s&@abs_srcdir@&$ac_abs_srcdir&;t t
22023s&@top_srcdir@&$ac_top_srcdir&;t t
22024s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22025s&@builddir@&$ac_builddir&;t t
22026s&@abs_builddir@&$ac_abs_builddir&;t t
22027s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22028s&@INSTALL@&$ac_INSTALL&;t t
22029s&@MKDIR_P@&$ac_MKDIR_P&;t t
22030$ac_datarootdir_hack
22031"
22032eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22033  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22034
22035test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22036  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22037  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22038      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22039  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22040which seems to be undefined.  Please make sure it is defined" >&5
22041$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22042which seems to be undefined.  Please make sure it is defined" >&2;}
22043
22044  rm -f "$ac_tmp/stdin"
22045  case $ac_file in
22046  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22047  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22048  esac \
22049  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22050 ;;
22051  :H)
22052  #
22053  # CONFIG_HEADER
22054  #
22055  if test x"$ac_file" != x-; then
22056    {
22057      $as_echo "/* $configure_input  */" \
22058      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22059    } >"$ac_tmp/config.h" \
22060      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22061    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22062      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22063$as_echo "$as_me: $ac_file is unchanged" >&6;}
22064    else
22065      rm -f "$ac_file"
22066      mv "$ac_tmp/config.h" "$ac_file" \
22067	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22068    fi
22069  else
22070    $as_echo "/* $configure_input  */" \
22071      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22072      || as_fn_error $? "could not create -" "$LINENO" 5
22073  fi
22074# Compute "$ac_file"'s index in $config_headers.
22075_am_arg="$ac_file"
22076_am_stamp_count=1
22077for _am_header in $config_headers :; do
22078  case $_am_header in
22079    $_am_arg | $_am_arg:* )
22080      break ;;
22081    * )
22082      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22083  esac
22084done
22085echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22086$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22087	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22088	 X"$_am_arg" : 'X\(//\)$' \| \
22089	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22090$as_echo X"$_am_arg" |
22091    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22092	    s//\1/
22093	    q
22094	  }
22095	  /^X\(\/\/\)[^/].*/{
22096	    s//\1/
22097	    q
22098	  }
22099	  /^X\(\/\/\)$/{
22100	    s//\1/
22101	    q
22102	  }
22103	  /^X\(\/\).*/{
22104	    s//\1/
22105	    q
22106	  }
22107	  s/.*/./; q'`/stamp-h$_am_stamp_count
22108 ;;
22109
22110  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22111$as_echo "$as_me: executing $ac_file commands" >&6;}
22112 ;;
22113  esac
22114
22115
22116  case $ac_file$ac_mode in
22117    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22118  # Autoconf 2.62 quotes --file arguments for eval, but not when files
22119  # are listed without --file.  Let's play safe and only enable the eval
22120  # if we detect the quoting.
22121  case $CONFIG_FILES in
22122  *\'*) eval set x "$CONFIG_FILES" ;;
22123  *)   set x $CONFIG_FILES ;;
22124  esac
22125  shift
22126  for mf
22127  do
22128    # Strip MF so we end up with the name of the file.
22129    mf=`echo "$mf" | sed -e 's/:.*$//'`
22130    # Check whether this is an Automake generated Makefile or not.
22131    # We used to match only the files named `Makefile.in', but
22132    # some people rename them; so instead we look at the file content.
22133    # Grep'ing the first line is not enough: some people post-process
22134    # each Makefile.in and add a new line on top of each file to say so.
22135    # Grep'ing the whole file is not good either: AIX grep has a line
22136    # limit of 2048, but all sed's we know have understand at least 4000.
22137    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22138      dirpart=`$as_dirname -- "$mf" ||
22139$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22140	 X"$mf" : 'X\(//\)[^/]' \| \
22141	 X"$mf" : 'X\(//\)$' \| \
22142	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22143$as_echo X"$mf" |
22144    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22145	    s//\1/
22146	    q
22147	  }
22148	  /^X\(\/\/\)[^/].*/{
22149	    s//\1/
22150	    q
22151	  }
22152	  /^X\(\/\/\)$/{
22153	    s//\1/
22154	    q
22155	  }
22156	  /^X\(\/\).*/{
22157	    s//\1/
22158	    q
22159	  }
22160	  s/.*/./; q'`
22161    else
22162      continue
22163    fi
22164    # Extract the definition of DEPDIR, am__include, and am__quote
22165    # from the Makefile without running `make'.
22166    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22167    test -z "$DEPDIR" && continue
22168    am__include=`sed -n 's/^am__include = //p' < "$mf"`
22169    test -z "am__include" && continue
22170    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22171    # When using ansi2knr, U may be empty or an underscore; expand it
22172    U=`sed -n 's/^U = //p' < "$mf"`
22173    # Find all dependency output files, they are included files with
22174    # $(DEPDIR) in their names.  We invoke sed twice because it is the
22175    # simplest approach to changing $(DEPDIR) to its actual value in the
22176    # expansion.
22177    for file in `sed -n "
22178      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22179	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22180      # Make sure the directory exists.
22181      test -f "$dirpart/$file" && continue
22182      fdir=`$as_dirname -- "$file" ||
22183$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22184	 X"$file" : 'X\(//\)[^/]' \| \
22185	 X"$file" : 'X\(//\)$' \| \
22186	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22187$as_echo X"$file" |
22188    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22189	    s//\1/
22190	    q
22191	  }
22192	  /^X\(\/\/\)[^/].*/{
22193	    s//\1/
22194	    q
22195	  }
22196	  /^X\(\/\/\)$/{
22197	    s//\1/
22198	    q
22199	  }
22200	  /^X\(\/\).*/{
22201	    s//\1/
22202	    q
22203	  }
22204	  s/.*/./; q'`
22205      as_dir=$dirpart/$fdir; as_fn_mkdir_p
22206      # echo "creating $dirpart/$file"
22207      echo '# dummy' > "$dirpart/$file"
22208    done
22209  done
22210}
22211 ;;
22212    "libtool":C)
22213
22214    # See if we are running on zsh, and set the options which allow our
22215    # commands through without removal of \ escapes.
22216    if test -n "${ZSH_VERSION+set}" ; then
22217      setopt NO_GLOB_SUBST
22218    fi
22219
22220    cfgfile="${ofile}T"
22221    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22222    $RM "$cfgfile"
22223
22224    cat <<_LT_EOF >> "$cfgfile"
22225#! $SHELL
22226
22227# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22228# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22229# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22230# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22231#
22232#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22233#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22234#                 Foundation, Inc.
22235#   Written by Gordon Matzigkeit, 1996
22236#
22237#   This file is part of GNU Libtool.
22238#
22239# GNU Libtool is free software; you can redistribute it and/or
22240# modify it under the terms of the GNU General Public License as
22241# published by the Free Software Foundation; either version 2 of
22242# the License, or (at your option) any later version.
22243#
22244# As a special exception to the GNU General Public License,
22245# if you distribute this file as part of a program or library that
22246# is built using GNU Libtool, you may include this file under the
22247# same distribution terms that you use for the rest of that program.
22248#
22249# GNU Libtool is distributed in the hope that it will be useful,
22250# but WITHOUT ANY WARRANTY; without even the implied warranty of
22251# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22252# GNU General Public License for more details.
22253#
22254# You should have received a copy of the GNU General Public License
22255# along with GNU Libtool; see the file COPYING.  If not, a copy
22256# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22257# obtained by writing to the Free Software Foundation, Inc.,
22258# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22259
22260
22261# The names of the tagged configurations supported by this script.
22262available_tags=""
22263
22264# ### BEGIN LIBTOOL CONFIG
22265
22266# Which release of libtool.m4 was used?
22267macro_version=$macro_version
22268macro_revision=$macro_revision
22269
22270# Whether or not to build shared libraries.
22271build_libtool_libs=$enable_shared
22272
22273# Whether or not to build static libraries.
22274build_old_libs=$enable_static
22275
22276# What type of objects to build.
22277pic_mode=$pic_mode
22278
22279# Whether or not to optimize for fast installation.
22280fast_install=$enable_fast_install
22281
22282# Shell to use when invoking shell scripts.
22283SHELL=$lt_SHELL
22284
22285# An echo program that protects backslashes.
22286ECHO=$lt_ECHO
22287
22288# The PATH separator for the build system.
22289PATH_SEPARATOR=$lt_PATH_SEPARATOR
22290
22291# The host system.
22292host_alias=$host_alias
22293host=$host
22294host_os=$host_os
22295
22296# The build system.
22297build_alias=$build_alias
22298build=$build
22299build_os=$build_os
22300
22301# A sed program that does not truncate output.
22302SED=$lt_SED
22303
22304# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22305Xsed="\$SED -e 1s/^X//"
22306
22307# A grep program that handles long lines.
22308GREP=$lt_GREP
22309
22310# An ERE matcher.
22311EGREP=$lt_EGREP
22312
22313# A literal string matcher.
22314FGREP=$lt_FGREP
22315
22316# A BSD- or MS-compatible name lister.
22317NM=$lt_NM
22318
22319# Whether we need soft or hard links.
22320LN_S=$lt_LN_S
22321
22322# What is the maximum length of a command?
22323max_cmd_len=$max_cmd_len
22324
22325# Object file suffix (normally "o").
22326objext=$ac_objext
22327
22328# Executable file suffix (normally "").
22329exeext=$exeext
22330
22331# whether the shell understands "unset".
22332lt_unset=$lt_unset
22333
22334# turn spaces into newlines.
22335SP2NL=$lt_lt_SP2NL
22336
22337# turn newlines into spaces.
22338NL2SP=$lt_lt_NL2SP
22339
22340# convert \$build file names to \$host format.
22341to_host_file_cmd=$lt_cv_to_host_file_cmd
22342
22343# convert \$build files to toolchain format.
22344to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22345
22346# An object symbol dumper.
22347OBJDUMP=$lt_OBJDUMP
22348
22349# Method to check whether dependent libraries are shared objects.
22350deplibs_check_method=$lt_deplibs_check_method
22351
22352# Command to use when deplibs_check_method = "file_magic".
22353file_magic_cmd=$lt_file_magic_cmd
22354
22355# How to find potential files when deplibs_check_method = "file_magic".
22356file_magic_glob=$lt_file_magic_glob
22357
22358# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22359want_nocaseglob=$lt_want_nocaseglob
22360
22361# DLL creation program.
22362DLLTOOL=$lt_DLLTOOL
22363
22364# Command to associate shared and link libraries.
22365sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22366
22367# The archiver.
22368AR=$lt_AR
22369
22370# Flags to create an archive.
22371AR_FLAGS=$lt_AR_FLAGS
22372
22373# How to feed a file listing to the archiver.
22374archiver_list_spec=$lt_archiver_list_spec
22375
22376# A symbol stripping program.
22377STRIP=$lt_STRIP
22378
22379# Commands used to install an old-style archive.
22380RANLIB=$lt_RANLIB
22381old_postinstall_cmds=$lt_old_postinstall_cmds
22382old_postuninstall_cmds=$lt_old_postuninstall_cmds
22383
22384# Whether to use a lock for old archive extraction.
22385lock_old_archive_extraction=$lock_old_archive_extraction
22386
22387# A C compiler.
22388LTCC=$lt_CC
22389
22390# LTCC compiler flags.
22391LTCFLAGS=$lt_CFLAGS
22392
22393# Take the output of nm and produce a listing of raw symbols and C names.
22394global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22395
22396# Transform the output of nm in a proper C declaration.
22397global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22398
22399# Transform the output of nm in a C name address pair.
22400global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22401
22402# Transform the output of nm in a C name address pair when lib prefix is needed.
22403global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22404
22405# Specify filename containing input files for \$NM.
22406nm_file_list_spec=$lt_nm_file_list_spec
22407
22408# The root where to search for dependent libraries,and in which our libraries should be installed.
22409lt_sysroot=$lt_sysroot
22410
22411# The name of the directory that contains temporary libtool files.
22412objdir=$objdir
22413
22414# Used to examine libraries when file_magic_cmd begins with "file".
22415MAGIC_CMD=$MAGIC_CMD
22416
22417# Must we lock files when doing compilation?
22418need_locks=$lt_need_locks
22419
22420# Manifest tool.
22421MANIFEST_TOOL=$lt_MANIFEST_TOOL
22422
22423# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22424DSYMUTIL=$lt_DSYMUTIL
22425
22426# Tool to change global to local symbols on Mac OS X.
22427NMEDIT=$lt_NMEDIT
22428
22429# Tool to manipulate fat objects and archives on Mac OS X.
22430LIPO=$lt_LIPO
22431
22432# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22433OTOOL=$lt_OTOOL
22434
22435# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22436OTOOL64=$lt_OTOOL64
22437
22438# Old archive suffix (normally "a").
22439libext=$libext
22440
22441# Shared library suffix (normally ".so").
22442shrext_cmds=$lt_shrext_cmds
22443
22444# The commands to extract the exported symbol list from a shared archive.
22445extract_expsyms_cmds=$lt_extract_expsyms_cmds
22446
22447# Variables whose values should be saved in libtool wrapper scripts and
22448# restored at link time.
22449variables_saved_for_relink=$lt_variables_saved_for_relink
22450
22451# Do we need the "lib" prefix for modules?
22452need_lib_prefix=$need_lib_prefix
22453
22454# Do we need a version for libraries?
22455need_version=$need_version
22456
22457# Library versioning type.
22458version_type=$version_type
22459
22460# Shared library runtime path variable.
22461runpath_var=$runpath_var
22462
22463# Shared library path variable.
22464shlibpath_var=$shlibpath_var
22465
22466# Is shlibpath searched before the hard-coded library search path?
22467shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22468
22469# Format of library name prefix.
22470libname_spec=$lt_libname_spec
22471
22472# List of archive names.  First name is the real one, the rest are links.
22473# The last name is the one that the linker finds with -lNAME
22474library_names_spec=$lt_library_names_spec
22475
22476# The coded name of the library, if different from the real name.
22477soname_spec=$lt_soname_spec
22478
22479# Permission mode override for installation of shared libraries.
22480install_override_mode=$lt_install_override_mode
22481
22482# Command to use after installation of a shared archive.
22483postinstall_cmds=$lt_postinstall_cmds
22484
22485# Command to use after uninstallation of a shared archive.
22486postuninstall_cmds=$lt_postuninstall_cmds
22487
22488# Commands used to finish a libtool library installation in a directory.
22489finish_cmds=$lt_finish_cmds
22490
22491# As "finish_cmds", except a single script fragment to be evaled but
22492# not shown.
22493finish_eval=$lt_finish_eval
22494
22495# Whether we should hardcode library paths into libraries.
22496hardcode_into_libs=$hardcode_into_libs
22497
22498# Compile-time system search path for libraries.
22499sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22500
22501# Run-time system search path for libraries.
22502sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22503
22504# Whether dlopen is supported.
22505dlopen_support=$enable_dlopen
22506
22507# Whether dlopen of programs is supported.
22508dlopen_self=$enable_dlopen_self
22509
22510# Whether dlopen of statically linked programs is supported.
22511dlopen_self_static=$enable_dlopen_self_static
22512
22513# Commands to strip libraries.
22514old_striplib=$lt_old_striplib
22515striplib=$lt_striplib
22516
22517
22518# The linker used to build libraries.
22519LD=$lt_LD
22520
22521# How to create reloadable object files.
22522reload_flag=$lt_reload_flag
22523reload_cmds=$lt_reload_cmds
22524
22525# Commands used to build an old-style archive.
22526old_archive_cmds=$lt_old_archive_cmds
22527
22528# A language specific compiler.
22529CC=$lt_compiler
22530
22531# Is the compiler the GNU compiler?
22532with_gcc=$GCC
22533
22534# Compiler flag to turn off builtin functions.
22535no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22536
22537# Additional compiler flags for building library objects.
22538pic_flag=$lt_lt_prog_compiler_pic
22539
22540# How to pass a linker flag through the compiler.
22541wl=$lt_lt_prog_compiler_wl
22542
22543# Compiler flag to prevent dynamic linking.
22544link_static_flag=$lt_lt_prog_compiler_static
22545
22546# Does compiler simultaneously support -c and -o options?
22547compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22548
22549# Whether or not to add -lc for building shared libraries.
22550build_libtool_need_lc=$archive_cmds_need_lc
22551
22552# Whether or not to disallow shared libs when runtime libs are static.
22553allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22554
22555# Compiler flag to allow reflexive dlopens.
22556export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22557
22558# Compiler flag to generate shared objects directly from archives.
22559whole_archive_flag_spec=$lt_whole_archive_flag_spec
22560
22561# Whether the compiler copes with passing no objects directly.
22562compiler_needs_object=$lt_compiler_needs_object
22563
22564# Create an old-style archive from a shared archive.
22565old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22566
22567# Create a temporary old-style archive to link instead of a shared archive.
22568old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22569
22570# Commands used to build a shared archive.
22571archive_cmds=$lt_archive_cmds
22572archive_expsym_cmds=$lt_archive_expsym_cmds
22573
22574# Commands used to build a loadable module if different from building
22575# a shared archive.
22576module_cmds=$lt_module_cmds
22577module_expsym_cmds=$lt_module_expsym_cmds
22578
22579# Whether we are building with GNU ld or not.
22580with_gnu_ld=$lt_with_gnu_ld
22581
22582# Flag that allows shared libraries with undefined symbols to be built.
22583allow_undefined_flag=$lt_allow_undefined_flag
22584
22585# Flag that enforces no undefined symbols.
22586no_undefined_flag=$lt_no_undefined_flag
22587
22588# Flag to hardcode \$libdir into a binary during linking.
22589# This must work even if \$libdir does not exist
22590hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22591
22592# Whether we need a single "-rpath" flag with a separated argument.
22593hardcode_libdir_separator=$lt_hardcode_libdir_separator
22594
22595# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22596# DIR into the resulting binary.
22597hardcode_direct=$hardcode_direct
22598
22599# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22600# DIR into the resulting binary and the resulting library dependency is
22601# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22602# library is relocated.
22603hardcode_direct_absolute=$hardcode_direct_absolute
22604
22605# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22606# into the resulting binary.
22607hardcode_minus_L=$hardcode_minus_L
22608
22609# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22610# into the resulting binary.
22611hardcode_shlibpath_var=$hardcode_shlibpath_var
22612
22613# Set to "yes" if building a shared library automatically hardcodes DIR
22614# into the library and all subsequent libraries and executables linked
22615# against it.
22616hardcode_automatic=$hardcode_automatic
22617
22618# Set to yes if linker adds runtime paths of dependent libraries
22619# to runtime path list.
22620inherit_rpath=$inherit_rpath
22621
22622# Whether libtool must link a program against all its dependency libraries.
22623link_all_deplibs=$link_all_deplibs
22624
22625# Set to "yes" if exported symbols are required.
22626always_export_symbols=$always_export_symbols
22627
22628# The commands to list exported symbols.
22629export_symbols_cmds=$lt_export_symbols_cmds
22630
22631# Symbols that should not be listed in the preloaded symbols.
22632exclude_expsyms=$lt_exclude_expsyms
22633
22634# Symbols that must always be exported.
22635include_expsyms=$lt_include_expsyms
22636
22637# Commands necessary for linking programs (against libraries) with templates.
22638prelink_cmds=$lt_prelink_cmds
22639
22640# Commands necessary for finishing linking programs.
22641postlink_cmds=$lt_postlink_cmds
22642
22643# Specify filename containing input files.
22644file_list_spec=$lt_file_list_spec
22645
22646# How to hardcode a shared library path into an executable.
22647hardcode_action=$hardcode_action
22648
22649# ### END LIBTOOL CONFIG
22650
22651_LT_EOF
22652
22653  case $host_os in
22654  aix3*)
22655    cat <<\_LT_EOF >> "$cfgfile"
22656# AIX sometimes has problems with the GCC collect2 program.  For some
22657# reason, if we set the COLLECT_NAMES environment variable, the problems
22658# vanish in a puff of smoke.
22659if test "X${COLLECT_NAMES+set}" != Xset; then
22660  COLLECT_NAMES=
22661  export COLLECT_NAMES
22662fi
22663_LT_EOF
22664    ;;
22665  esac
22666
22667
22668ltmain="$ac_aux_dir/ltmain.sh"
22669
22670
22671  # We use sed instead of cat because bash on DJGPP gets confused if
22672  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22673  # text mode, it properly converts lines to CR/LF.  This bash problem
22674  # is reportedly fixed, but why not run on old versions too?
22675  sed '$q' "$ltmain" >> "$cfgfile" \
22676     || (rm -f "$cfgfile"; exit 1)
22677
22678  if test x"$xsi_shell" = xyes; then
22679  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22680func_dirname ()\
22681{\
22682\    case ${1} in\
22683\      */*) func_dirname_result="${1%/*}${2}" ;;\
22684\      *  ) func_dirname_result="${3}" ;;\
22685\    esac\
22686} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22687  && mv -f "$cfgfile.tmp" "$cfgfile" \
22688    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22689test 0 -eq $? || _lt_function_replace_fail=:
22690
22691
22692  sed -e '/^func_basename ()$/,/^} # func_basename /c\
22693func_basename ()\
22694{\
22695\    func_basename_result="${1##*/}"\
22696} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22697  && mv -f "$cfgfile.tmp" "$cfgfile" \
22698    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22699test 0 -eq $? || _lt_function_replace_fail=:
22700
22701
22702  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22703func_dirname_and_basename ()\
22704{\
22705\    case ${1} in\
22706\      */*) func_dirname_result="${1%/*}${2}" ;;\
22707\      *  ) func_dirname_result="${3}" ;;\
22708\    esac\
22709\    func_basename_result="${1##*/}"\
22710} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22711  && mv -f "$cfgfile.tmp" "$cfgfile" \
22712    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22713test 0 -eq $? || _lt_function_replace_fail=:
22714
22715
22716  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22717func_stripname ()\
22718{\
22719\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22720\    # positional parameters, so assign one to ordinary parameter first.\
22721\    func_stripname_result=${3}\
22722\    func_stripname_result=${func_stripname_result#"${1}"}\
22723\    func_stripname_result=${func_stripname_result%"${2}"}\
22724} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22725  && mv -f "$cfgfile.tmp" "$cfgfile" \
22726    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22727test 0 -eq $? || _lt_function_replace_fail=:
22728
22729
22730  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22731func_split_long_opt ()\
22732{\
22733\    func_split_long_opt_name=${1%%=*}\
22734\    func_split_long_opt_arg=${1#*=}\
22735} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22736  && mv -f "$cfgfile.tmp" "$cfgfile" \
22737    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22738test 0 -eq $? || _lt_function_replace_fail=:
22739
22740
22741  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22742func_split_short_opt ()\
22743{\
22744\    func_split_short_opt_arg=${1#??}\
22745\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22746} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22747  && mv -f "$cfgfile.tmp" "$cfgfile" \
22748    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22749test 0 -eq $? || _lt_function_replace_fail=:
22750
22751
22752  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22753func_lo2o ()\
22754{\
22755\    case ${1} in\
22756\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22757\      *)    func_lo2o_result=${1} ;;\
22758\    esac\
22759} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22760  && mv -f "$cfgfile.tmp" "$cfgfile" \
22761    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22762test 0 -eq $? || _lt_function_replace_fail=:
22763
22764
22765  sed -e '/^func_xform ()$/,/^} # func_xform /c\
22766func_xform ()\
22767{\
22768    func_xform_result=${1%.*}.lo\
22769} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22770  && mv -f "$cfgfile.tmp" "$cfgfile" \
22771    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22772test 0 -eq $? || _lt_function_replace_fail=:
22773
22774
22775  sed -e '/^func_arith ()$/,/^} # func_arith /c\
22776func_arith ()\
22777{\
22778    func_arith_result=$(( $* ))\
22779} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22780  && mv -f "$cfgfile.tmp" "$cfgfile" \
22781    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22782test 0 -eq $? || _lt_function_replace_fail=:
22783
22784
22785  sed -e '/^func_len ()$/,/^} # func_len /c\
22786func_len ()\
22787{\
22788    func_len_result=${#1}\
22789} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22790  && mv -f "$cfgfile.tmp" "$cfgfile" \
22791    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22792test 0 -eq $? || _lt_function_replace_fail=:
22793
22794fi
22795
22796if test x"$lt_shell_append" = xyes; then
22797  sed -e '/^func_append ()$/,/^} # func_append /c\
22798func_append ()\
22799{\
22800    eval "${1}+=\\${2}"\
22801} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22802  && mv -f "$cfgfile.tmp" "$cfgfile" \
22803    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22804test 0 -eq $? || _lt_function_replace_fail=:
22805
22806
22807  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22808func_append_quoted ()\
22809{\
22810\    func_quote_for_eval "${2}"\
22811\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22812} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22813  && mv -f "$cfgfile.tmp" "$cfgfile" \
22814    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22815test 0 -eq $? || _lt_function_replace_fail=:
22816
22817
22818  # Save a `func_append' function call where possible by direct use of '+='
22819  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22820    && mv -f "$cfgfile.tmp" "$cfgfile" \
22821      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22822  test 0 -eq $? || _lt_function_replace_fail=:
22823else
22824  # Save a `func_append' function call even when '+=' is not available
22825  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22826    && mv -f "$cfgfile.tmp" "$cfgfile" \
22827      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22828  test 0 -eq $? || _lt_function_replace_fail=:
22829fi
22830
22831if test x"$_lt_function_replace_fail" = x":"; then
22832  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22833$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22834fi
22835
22836
22837   mv -f "$cfgfile" "$ofile" ||
22838    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22839  chmod +x "$ofile"
22840
22841 ;;
22842    "default":C) chmod a+x distrib/config/netatalk-config contrib/shell_utils/apple_*
22843 ;;
22844
22845  esac
22846done # for ac_tag
22847
22848
22849as_fn_exit 0
22850_ACEOF
22851ac_clean_files=$ac_clean_files_save
22852
22853test $ac_write_fail = 0 ||
22854  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22855
22856
22857# configure is writing to config.log, and then calls config.status.
22858# config.status does its own redirection, appending to config.log.
22859# Unfortunately, on DOS this fails, as config.log is still kept open
22860# by configure, so config.status won't be able to write to it; its
22861# output is simply discarded.  So we exec the FD to /dev/null,
22862# effectively closing config.log, so it can be properly (re)opened and
22863# appended to by config.status.  When coming back to configure, we
22864# need to make the FD available again.
22865if test "$no_create" != yes; then
22866  ac_cs_success=:
22867  ac_config_status_args=
22868  test "$silent" = yes &&
22869    ac_config_status_args="$ac_config_status_args --quiet"
22870  exec 5>/dev/null
22871  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22872  exec 5>>config.log
22873  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22874  # would make configure fail if this is the last instruction.
22875  $ac_cs_success || as_fn_exit 1
22876fi
22877if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22878  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22879$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22880fi
22881
22882
22883
22884
22885	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using libraries:" >&5
22886$as_echo "Using libraries:" >&6; }
22887	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     LIBS = $LIBS" >&5
22888$as_echo "    LIBS = $LIBS" >&6; }
22889	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     CFLAGS = $CFLAGS" >&5
22890$as_echo "    CFLAGS = $CFLAGS" >&6; }
22891	if test x"$neta_cv_have_openssl" = x"yes"; then
22892		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     SSL:" >&5
22893$as_echo "    SSL:" >&6; }
22894		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $SSL_LIBS" >&5
22895$as_echo "        LIBS   = $SSL_LIBS" >&6; }
22896		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $SSL_CFLAGS" >&5
22897$as_echo "        CFLAGS = $SSL_CFLAGS" >&6; }
22898	fi
22899        if test x"$neta_cv_have_libgcrypt" = x"yes"; then
22900                { $as_echo "$as_me:${as_lineno-$LINENO}: result:     LIBGCRYPT:" >&5
22901$as_echo "    LIBGCRYPT:" >&6; }
22902                { $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $LIBGCRYPT_LIBS" >&5
22903$as_echo "        LIBS   = $LIBGCRYPT_LIBS" >&6; }
22904                { $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $LIBGCRYPT_CFLAGS" >&5
22905$as_echo "        CFLAGS = $LIBGCRYPT_CFLAGS" >&6; }
22906        fi
22907	if test x"$netatalk_cv_use_pam" = x"yes"; then
22908		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     PAM:" >&5
22909$as_echo "    PAM:" >&6; }
22910		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $PAM_LIBS" >&5
22911$as_echo "        LIBS   = $PAM_LIBS" >&6; }
22912		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $PAM_CFLAGS" >&5
22913$as_echo "        CFLAGS = $PAM_CFLAGS" >&6; }
22914	fi
22915	if test x"$netatalk_cv_use_pam" = x"yes"; then
22916		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     WRAP:" >&5
22917$as_echo "    WRAP:" >&6; }
22918		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $WRAP_LIBS" >&5
22919$as_echo "        LIBS   = $WRAP_LIBS" >&6; }
22920		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $WRAP_CFLAGS" >&5
22921$as_echo "        CFLAGS = $WRAP_CFLAGS" >&6; }
22922	fi
22923	if test x"$bdb_required" = x"yes"; then
22924		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     BDB:" >&5
22925$as_echo "    BDB:" >&6; }
22926		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $BDB_LIBS" >&5
22927$as_echo "        LIBS   = $BDB_LIBS" >&6; }
22928		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $BDB_CFLAGS" >&5
22929$as_echo "        CFLAGS = $BDB_CFLAGS" >&6; }
22930	fi
22931	if test x"$netatalk_cv_build_krb5_uam" = x"yes"; then
22932		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     GSSAPI:" >&5
22933$as_echo "    GSSAPI:" >&6; }
22934		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $GSSAPI_LIBS" >&5
22935$as_echo "        LIBS   = $GSSAPI_LIBS" >&6; }
22936		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $GSSAPI_CFLAGS" >&5
22937$as_echo "        CFLAGS = $GSSAPI_CFLAGS" >&6; }
22938	fi
22939	if test x"$netatalk_cv_srvloc" = x"yes"; then
22940		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     SRVLOC:" >&5
22941$as_echo "    SRVLOC:" >&6; }
22942		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $SLP_LIBS" >&5
22943$as_echo "        LIBS   = $SLP_LIBS" >&6; }
22944		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $SLP_CFLAGS" >&5
22945$as_echo "        CFLAGS = $SLP_CFLAGS" >&6; }
22946	fi
22947	if test x"$netatalk_cv_use_cups" = x"yes"; then
22948		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     CUPS:" >&5
22949$as_echo "    CUPS:" >&6; }
22950		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $CUPS_LIBS" >&5
22951$as_echo "        LIBS   = $CUPS_LIBS" >&6; }
22952		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $CUPS_CFLAGS" >&5
22953$as_echo "        CFLAGS = $CUPS_CFLAGS" >&6; }
22954	fi
22955	if test x"$netatalk_cv_zeroconf" = x"yes"; then
22956		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     ZEROCONF:" >&5
22957$as_echo "    ZEROCONF:" >&6; }
22958		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $ZEROCONF_LIBS" >&5
22959$as_echo "        LIBS   = $ZEROCONF_LIBS" >&6; }
22960		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $ZEROCONF_CFLAGS" >&5
22961$as_echo "        CFLAGS = $ZEROCONF_CFLAGS" >&6; }
22962	fi
22963
22964
22965
22966	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Configure summary:" >&5
22967$as_echo "Configure summary:" >&6; }
22968	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     Install style:" >&5
22969$as_echo "    Install style:" >&6; }
22970	if test "x$sysv_style" != "x"; then
22971		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          $sysv_style" >&5
22972$as_echo "         $sysv_style" >&6; }
22973	else
22974		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          none" >&5
22975$as_echo "         none" >&6; }
22976	fi
22977	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     AFP:" >&5
22978$as_echo "    AFP:" >&6; }
22979	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          Large file support (>2GB) for AFP3: $wx_largefile" >&5
22980$as_echo "         Large file support (>2GB) for AFP3: $wx_largefile" >&6; }
22981	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          Extended Attributes: $neta_cv_eas" >&5
22982$as_echo "         Extended Attributes: $neta_cv_eas" >&6; }
22983	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     CNID:" >&5
22984$as_echo "    CNID:" >&6; }
22985	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          backends: $compiled_backends" >&5
22986$as_echo "         backends: $compiled_backends" >&6; }
22987	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     UAMS:" >&5
22988$as_echo "    UAMS:" >&6; }
22989	uams_using_options=""
22990	if test x"$netatalk_cv_use_pam" != x"no"; then
22991        	uams_using_options="PAM"
22992	fi
22993	if test "x$netatalk_cv_use_shadowpw" = "xyes"; then
22994        	uams_using_options="$uams_using_options SHADOW"
22995	fi
22996	if test "x$neta_cv_compile_dhx" = "xyes"; then
22997		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          DHX     ($uams_using_options)" >&5
22998$as_echo "         DHX     ($uams_using_options)" >&6; }
22999	fi
23000        if test "x$neta_cv_compile_dhx2" = "xyes"; then
23001                { $as_echo "$as_me:${as_lineno-$LINENO}: result:          DHX2    ($uams_using_options)" >&5
23002$as_echo "         DHX2    ($uams_using_options)" >&6; }
23003        fi
23004	if test "x$neta_cv_have_openssl" = "xyes"; then
23005		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          RANDNUM (afppasswd)" >&5
23006$as_echo "         RANDNUM (afppasswd)" >&6; }
23007	fi
23008	if test x"$netatalk_cv_build_krb5_uam" = x"yes"; then
23009		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          Kerberos V" >&5
23010$as_echo "         Kerberos V" >&6; }
23011	fi
23012	if test x"$compile_kerberos" = x"yes"; then
23013		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          Kerberos IV" >&5
23014$as_echo "         Kerberos IV" >&6; }
23015	fi
23016	if test x"$compile_pgp" = x"yes"; then
23017		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          PGP" >&5
23018$as_echo "         PGP" >&6; }
23019	fi
23020	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          clrtxt  ($uams_using_options)" >&5
23021$as_echo "         clrtxt  ($uams_using_options)" >&6; }
23022	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          guest" >&5
23023$as_echo "         guest" >&6; }
23024	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     Options:" >&5
23025$as_echo "    Options:" >&6; }
23026	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          DDP (AppleTalk) support: $netatalk_cv_ddp_enabled" >&5
23027$as_echo "         DDP (AppleTalk) support: $netatalk_cv_ddp_enabled" >&6; }
23028	if test "x$netatalk_cv_ddp_enabled" = "xyes"; then
23029		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          CUPS support:            $netatalk_cv_use_cups" >&5
23030$as_echo "         CUPS support:            $netatalk_cv_use_cups" >&6; }
23031		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          Apple 2 boot support:    $compile_a2boot" >&5
23032$as_echo "         Apple 2 boot support:    $compile_a2boot" >&6; }
23033	fi
23034	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          SLP support:             $netatalk_cv_srvloc" >&5
23035$as_echo "         SLP support:             $netatalk_cv_srvloc" >&6; }
23036	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          Zeroconf support:        $netatalk_cv_zeroconf" >&5
23037$as_echo "         Zeroconf support:        $netatalk_cv_zeroconf" >&6; }
23038	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          tcp wrapper support:     $netatalk_cv_tcpwrap" >&5
23039$as_echo "         tcp wrapper support:     $netatalk_cv_tcpwrap" >&6; }
23040	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          quota support:           $netatalk_cv_quotasupport" >&5
23041$as_echo "         quota support:           $netatalk_cv_quotasupport" >&6; }
23042	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          admin group support:     $netatalk_cv_admin_group" >&5
23043$as_echo "         admin group support:     $netatalk_cv_admin_group" >&6; }
23044	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          valid shell check:       $netatalk_cv_use_shellcheck" >&5
23045$as_echo "         valid shell check:       $netatalk_cv_use_shellcheck" >&6; }
23046	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          cracklib support:        $netatalk_cv_with_cracklib" >&5
23047$as_echo "         cracklib support:        $netatalk_cv_with_cracklib" >&6; }
23048	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          dropbox kludge:          $netatalk_cv_dropkludge" >&5
23049$as_echo "         dropbox kludge:          $netatalk_cv_dropkludge" >&6; }
23050	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          force volume uid/gid:    $netatalk_cv_force_uidgid" >&5
23051$as_echo "         force volume uid/gid:    $netatalk_cv_force_uidgid" >&6; }
23052	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          ACL support:             $with_acl_support" >&5
23053$as_echo "         ACL support:             $with_acl_support" >&6; }
23054	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          LDAP support:            $with_ldap" >&5
23055$as_echo "         LDAP support:            $with_ldap" >&6; }
23056	if test x"$use_pam_so" = x"yes" -a x"$netatalk_cv_install_pam" = x"no"; then
23057		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
23058$as_echo "" >&6; }
23059		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  PAM support was configured for your system, but the netatalk PAM configuration file" >&5
23060$as_echo "$as_me: WARNING:  PAM support was configured for your system, but the netatalk PAM configuration file" >&2;}
23061		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  cannot be installed. Please install the config/netatalk.pamd file manually." >&5
23062$as_echo "$as_me: WARNING:  cannot be installed. Please install the config/netatalk.pamd file manually." >&2;}
23063		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  If you're running Solaris or BSD you'll have to edit /etc/pam.conf to get PAM working." >&5
23064$as_echo "$as_me: WARNING:  If you're running Solaris or BSD you'll have to edit /etc/pam.conf to get PAM working." >&2;}
23065		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  You can also re-run configure and specify --without-pam to disable PAM support." >&5
23066$as_echo "$as_me: WARNING:  You can also re-run configure and specify --without-pam to disable PAM support." >&2;}
23067	fi
23068
23069
23070