1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    PATH=/empty FPATH=/empty; export PATH FPATH
205    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="etc/afpd/main.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632enable_option_checking=no
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636LIBOBJS
637AM_BACKSLASH
638AM_DEFAULT_VERBOSITY
639AM_DEFAULT_V
640AM_V
641USE_SHADOWPW_FALSE
642USE_SHADOWPW_TRUE
643HAVE_ATFUNCS_FALSE
644HAVE_ATFUNCS_TRUE
645USE_BDB_FALSE
646USE_BDB_TRUE
647DEFAULT_HOOK_FALSE
648DEFAULT_HOOK_TRUE
649USE_PGP_FALSE
650USE_PGP_TRUE
651BUILD_PAM_FALSE
652BUILD_PAM_TRUE
653USE_PAM_FALSE
654USE_PAM_TRUE
655USE_PAM_SO_FALSE
656USE_PAM_SO_TRUE
657USE_RANDNUM_FALSE
658USE_RANDNUM_TRUE
659USE_DHX2_FALSE
660USE_DHX2_TRUE
661USE_DHX_FALSE
662USE_DHX_TRUE
663HAVE_LDAP_FALSE
664HAVE_LDAP_TRUE
665HAVE_ACLS_FALSE
666HAVE_ACLS_TRUE
667HAVE_OPENSSL_FALSE
668HAVE_OPENSSL_TRUE
669HAVE_LIBGCRYPT_FALSE
670HAVE_LIBGCRYPT_TRUE
671SOLARIS_MODULE_FALSE
672SOLARIS_MODULE_TRUE
673UAMS_PATH
674DOCBOOK_ROOT
675XSLTPROC_FLAGS
676HAVE_XSLTPROC_FALSE
677HAVE_XSLTPROC_TRUE
678XSLTPROC
679PATH_NETATALK_LOCK
680DBUS_SYS_DIR
681HAVE_DBUS_GLIB_FALSE
682HAVE_DBUS_GLIB_TRUE
683DBUS_GTHREAD_LIBS
684DBUS_GTHREAD_CFLAGS
685DBUS_GLIB_LIBS
686DBUS_GLIB_CFLAGS
687DBUS_LIBS
688DBUS_CFLAGS
689WITH_DTRACE_FALSE
690WITH_DTRACE_TRUE
691DTRACE_LIBS
692atalk_cv_have_dtrace
693DEVELOPER_FALSE
694DEVELOPER_TRUE
695USE_BUILTIN_LIBEVENT_FALSE
696USE_BUILTIN_LIBEVENT_TRUE
697LIBEVENT_LDFLAGS
698LIBEVENT_CFLAGS
699subdirs
700ACL_LIBS
701LDAP_LIBS
702LDAP_LDFLAGS
703LDAP_CFLAGS
704OVERWRITE_CONFIG
705KRB5_LIBS
706KRB5_CFLAGS
707USE_GSSAPI_FALSE
708USE_GSSAPI_TRUE
709GSSAPI_LDFLAGS
710GSSAPI_CFLAGS
711GSSAPI_LIBS
712KRB5_CONFIG
713CRYPT_LIBS
714BDB_PATH
715BDB_BIN
716BDB_LIBS
717BDB_CFLAGS
718SSL_LIBS
719SSL_CFLAGS
720LIBGCRYPT_LIBS
721LIBGCRYPT_CFLAGS
722LIBGCRYPT_CONFIG
723INIT_DIR
724USE_UNDEF_FALSE
725USE_UNDEF_TRUE
726USE_SYSTEMD_FALSE
727USE_SYSTEMD_TRUE
728USE_DEBIAN_FALSE
729USE_DEBIAN_TRUE
730USE_GENTOO_FALSE
731USE_GENTOO_TRUE
732USE_SOLARIS_FALSE
733USE_SOLARIS_TRUE
734USE_SUSE_SYSV_FALSE
735USE_SUSE_SYSV_TRUE
736USE_REDHAT_SYSV_FALSE
737USE_REDHAT_SYSV_TRUE
738USE_NETBSD_FALSE
739USE_NETBSD_TRUE
740PAM_SESSION
741PAM_PASSWORD
742PAM_ACCOUNT
743PAM_AUTH
744PAM_DIRECTIVE
745PAM_LIBS
746PAM_CFLAGS
747PAMDIR
748WRAP_LIBS
749ZEROCONF_CFLAGS
750ZEROCONF_LIBS
751AVAHI_TPOLL_LIBS
752AVAHI_TPOLL_CFLAGS
753AVAHI_LIBS
754AVAHI_CFLAGS
755PKG_CONFIG
756QUOTA_LIBS
757compiled_backends
758DEFAULT_CNID_SCHEME
759USE_TDB_BACKEND_FALSE
760USE_TDB_BACKEND_TRUE
761USE_LAST_BACKEND_FALSE
762USE_LAST_BACKEND_TRUE
763USE_CDB_BACKEND_FALSE
764USE_CDB_BACKEND_TRUE
765BUILD_DBD_DAEMON_FALSE
766BUILD_DBD_DAEMON_TRUE
767ICONV_LIBS
768ICONV_CFLAGS
769SERVERTEXT
770PKGCONFDIR
771AFS_CFLAGS
772AFS_LIBS
773RUN_LDCONFIG_FALSE
774RUN_LDCONFIG_TRUE
775NETA_LDCONFIG
776PTHREAD_CFLAGS
777PTHREAD_LIBS
778PTHREAD_CC
779ax_pthread_config
780sys_symbol_underscore
781LIBADD_DL
782LT_DLPREOPEN
783LIBADD_DLD_LINK
784LIBADD_SHL_LOAD
785LIBADD_DLOPEN
786LT_DLLOADERS
787CPP
788OTOOL64
789OTOOL
790LIPO
791NMEDIT
792DSYMUTIL
793MANIFEST_TOOL
794RANLIB
795ac_ct_AR
796AR
797DLLTOOL
798OBJDUMP
799NM
800ac_ct_DUMPBIN
801DUMPBIN
802LD
803FGREP
804EGREP
805SED
806LIBTOOL
807LN_S
808am__fastdepCC_FALSE
809am__fastdepCC_TRUE
810CCDEPMODE
811am__nodep
812AMDEPBACKSLASH
813AMDEP_FALSE
814AMDEP_TRUE
815am__quote
816am__include
817DEPDIR
818OBJEXT
819EXEEXT
820ac_ct_CC
821CPPFLAGS
822LDFLAGS
823CFLAGS
824CC
825MAINT
826MAINTAINER_MODE_FALSE
827MAINTAINER_MODE_TRUE
828am__untar
829am__tar
830AMTAR
831am__leading_dot
832SET_MAKE
833AWK
834mkdir_p
835MKDIR_P
836INSTALL_STRIP_PROGRAM
837STRIP
838install_sh
839MAKEINFO
840AUTOHEADER
841AUTOMAKE
842AUTOCONF
843ACLOCAL
844VERSION
845PACKAGE
846CYGPATH_W
847am__isrc
848INSTALL_DATA
849INSTALL_SCRIPT
850INSTALL_PROGRAM
851target_os
852target_vendor
853target_cpu
854target
855host_os
856host_vendor
857host_cpu
858host
859build_os
860build_vendor
861build_cpu
862build
863NETATALK_VERSION
864target_alias
865host_alias
866build_alias
867LIBS
868ECHO_T
869ECHO_N
870ECHO_C
871DEFS
872mandir
873localedir
874libdir
875psdir
876pdfdir
877dvidir
878htmldir
879infodir
880docdir
881oldincludedir
882includedir
883localstatedir
884sharedstatedir
885sysconfdir
886datadir
887datarootdir
888libexecdir
889sbindir
890bindir
891program_transform_name
892prefix
893exec_prefix
894PACKAGE_URL
895PACKAGE_BUGREPORT
896PACKAGE_STRING
897PACKAGE_VERSION
898PACKAGE_TARNAME
899PACKAGE_NAME
900PATH_SEPARATOR
901SHELL
902PS
903PERL
904GREP'
905ac_subst_files=''
906ac_user_opts='
907enable_option_checking
908enable_maintainer_mode
909enable_dependency_tracking
910enable_shared
911enable_static
912with_pic
913enable_fast_install
914with_gnu_ld
915with_sysroot
916enable_libtool_lock
917enable_largefile
918enable_admin_group
919enable_afs
920with_pkgconfdir
921with_message_dir
922with_cracklib
923enable_debug
924enable_debugging
925with_libiconv
926with_cnid_dbd_backend
927with_cnid_cdb_backend
928with_cnid_last_backend
929with_cnid_tdb_backend
930with_cnid_default_backend
931enable_quota
932enable_zeroconf
933enable_tcp_wrappers
934with_pam
935with_pam_confdir
936with_shadow
937enable_shell_check
938with_init_style
939with_init_dir
940with_uams_path
941with_libgcrypt_dir
942with_ssl_dir
943with_bdb
944enable_pgp_uam
945enable_krbV_uam
946with_gssapi
947with_kerberos
948enable_overwrite
949with_ldap
950with_acls
951enable_sendfile
952with_libevent
953with_libevent_header
954with_libevent_lib
955enable_developer
956with_dtrace
957with_dbus_sysconf_dir
958enable_fhs
959with_lockfile
960with_docbook
961enable_silent_rules
962'
963      ac_precious_vars='build_alias
964host_alias
965target_alias
966CC
967CFLAGS
968LDFLAGS
969LIBS
970CPPFLAGS
971CPP
972PKG_CONFIG
973AVAHI_CFLAGS
974AVAHI_LIBS
975AVAHI_TPOLL_CFLAGS
976AVAHI_TPOLL_LIBS
977DBUS_CFLAGS
978DBUS_LIBS
979DBUS_GLIB_CFLAGS
980DBUS_GLIB_LIBS
981DBUS_GTHREAD_CFLAGS
982DBUS_GTHREAD_LIBS'
983ac_subdirs_all='libevent'
984
985# Initialize some variables set by options.
986ac_init_help=
987ac_init_version=false
988ac_unrecognized_opts=
989ac_unrecognized_sep=
990# The variables have the same names as the options, with
991# dashes changed to underlines.
992cache_file=/dev/null
993exec_prefix=NONE
994no_create=
995no_recursion=
996prefix=NONE
997program_prefix=NONE
998program_suffix=NONE
999program_transform_name=s,x,x,
1000silent=
1001site=
1002srcdir=
1003verbose=
1004x_includes=NONE
1005x_libraries=NONE
1006
1007# Installation directory options.
1008# These are left unexpanded so users can "make install exec_prefix=/foo"
1009# and all the variables that are supposed to be based on exec_prefix
1010# by default will actually change.
1011# Use braces instead of parens because sh, perl, etc. also accept them.
1012# (The list follows the same order as the GNU Coding Standards.)
1013bindir='${exec_prefix}/bin'
1014sbindir='${exec_prefix}/sbin'
1015libexecdir='${exec_prefix}/libexec'
1016datarootdir='${prefix}/share'
1017datadir='${datarootdir}'
1018sysconfdir='${prefix}/etc'
1019sharedstatedir='${prefix}/com'
1020localstatedir='${prefix}/var'
1021includedir='${prefix}/include'
1022oldincludedir='/usr/include'
1023docdir='${datarootdir}/doc/${PACKAGE}'
1024infodir='${datarootdir}/info'
1025htmldir='${docdir}'
1026dvidir='${docdir}'
1027pdfdir='${docdir}'
1028psdir='${docdir}'
1029libdir='${exec_prefix}/lib'
1030localedir='${datarootdir}/locale'
1031mandir='${datarootdir}/man'
1032
1033ac_prev=
1034ac_dashdash=
1035for ac_option
1036do
1037  # If the previous option needs an argument, assign it.
1038  if test -n "$ac_prev"; then
1039    eval $ac_prev=\$ac_option
1040    ac_prev=
1041    continue
1042  fi
1043
1044  case $ac_option in
1045  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1046  *=)   ac_optarg= ;;
1047  *)    ac_optarg=yes ;;
1048  esac
1049
1050  # Accept the important Cygnus configure options, so we can diagnose typos.
1051
1052  case $ac_dashdash$ac_option in
1053  --)
1054    ac_dashdash=yes ;;
1055
1056  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1057    ac_prev=bindir ;;
1058  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1059    bindir=$ac_optarg ;;
1060
1061  -build | --build | --buil | --bui | --bu)
1062    ac_prev=build_alias ;;
1063  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1064    build_alias=$ac_optarg ;;
1065
1066  -cache-file | --cache-file | --cache-fil | --cache-fi \
1067  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1068    ac_prev=cache_file ;;
1069  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1070  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1071    cache_file=$ac_optarg ;;
1072
1073  --config-cache | -C)
1074    cache_file=config.cache ;;
1075
1076  -datadir | --datadir | --datadi | --datad)
1077    ac_prev=datadir ;;
1078  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1079    datadir=$ac_optarg ;;
1080
1081  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1082  | --dataroo | --dataro | --datar)
1083    ac_prev=datarootdir ;;
1084  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1085  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1086    datarootdir=$ac_optarg ;;
1087
1088  -disable-* | --disable-*)
1089    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1090    # Reject names that are not valid shell variable names.
1091    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092      as_fn_error $? "invalid feature name: $ac_useropt"
1093    ac_useropt_orig=$ac_useropt
1094    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095    case $ac_user_opts in
1096      *"
1097"enable_$ac_useropt"
1098"*) ;;
1099      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1100	 ac_unrecognized_sep=', ';;
1101    esac
1102    eval enable_$ac_useropt=no ;;
1103
1104  -docdir | --docdir | --docdi | --doc | --do)
1105    ac_prev=docdir ;;
1106  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1107    docdir=$ac_optarg ;;
1108
1109  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1110    ac_prev=dvidir ;;
1111  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1112    dvidir=$ac_optarg ;;
1113
1114  -enable-* | --enable-*)
1115    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1116    # Reject names that are not valid shell variable names.
1117    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118      as_fn_error $? "invalid feature name: $ac_useropt"
1119    ac_useropt_orig=$ac_useropt
1120    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121    case $ac_user_opts in
1122      *"
1123"enable_$ac_useropt"
1124"*) ;;
1125      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1126	 ac_unrecognized_sep=', ';;
1127    esac
1128    eval enable_$ac_useropt=\$ac_optarg ;;
1129
1130  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1131  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1132  | --exec | --exe | --ex)
1133    ac_prev=exec_prefix ;;
1134  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1135  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1136  | --exec=* | --exe=* | --ex=*)
1137    exec_prefix=$ac_optarg ;;
1138
1139  -gas | --gas | --ga | --g)
1140    # Obsolete; use --with-gas.
1141    with_gas=yes ;;
1142
1143  -help | --help | --hel | --he | -h)
1144    ac_init_help=long ;;
1145  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1146    ac_init_help=recursive ;;
1147  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1148    ac_init_help=short ;;
1149
1150  -host | --host | --hos | --ho)
1151    ac_prev=host_alias ;;
1152  -host=* | --host=* | --hos=* | --ho=*)
1153    host_alias=$ac_optarg ;;
1154
1155  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1156    ac_prev=htmldir ;;
1157  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1158  | --ht=*)
1159    htmldir=$ac_optarg ;;
1160
1161  -includedir | --includedir | --includedi | --included | --include \
1162  | --includ | --inclu | --incl | --inc)
1163    ac_prev=includedir ;;
1164  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1165  | --includ=* | --inclu=* | --incl=* | --inc=*)
1166    includedir=$ac_optarg ;;
1167
1168  -infodir | --infodir | --infodi | --infod | --info | --inf)
1169    ac_prev=infodir ;;
1170  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1171    infodir=$ac_optarg ;;
1172
1173  -libdir | --libdir | --libdi | --libd)
1174    ac_prev=libdir ;;
1175  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1176    libdir=$ac_optarg ;;
1177
1178  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1179  | --libexe | --libex | --libe)
1180    ac_prev=libexecdir ;;
1181  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1182  | --libexe=* | --libex=* | --libe=*)
1183    libexecdir=$ac_optarg ;;
1184
1185  -localedir | --localedir | --localedi | --localed | --locale)
1186    ac_prev=localedir ;;
1187  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1188    localedir=$ac_optarg ;;
1189
1190  -localstatedir | --localstatedir | --localstatedi | --localstated \
1191  | --localstate | --localstat | --localsta | --localst | --locals)
1192    ac_prev=localstatedir ;;
1193  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1194  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1195    localstatedir=$ac_optarg ;;
1196
1197  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1198    ac_prev=mandir ;;
1199  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1200    mandir=$ac_optarg ;;
1201
1202  -nfp | --nfp | --nf)
1203    # Obsolete; use --without-fp.
1204    with_fp=no ;;
1205
1206  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1207  | --no-cr | --no-c | -n)
1208    no_create=yes ;;
1209
1210  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1211  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1212    no_recursion=yes ;;
1213
1214  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1215  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1216  | --oldin | --oldi | --old | --ol | --o)
1217    ac_prev=oldincludedir ;;
1218  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1219  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1220  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1221    oldincludedir=$ac_optarg ;;
1222
1223  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1224    ac_prev=prefix ;;
1225  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1226    prefix=$ac_optarg ;;
1227
1228  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1229  | --program-pre | --program-pr | --program-p)
1230    ac_prev=program_prefix ;;
1231  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1232  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1233    program_prefix=$ac_optarg ;;
1234
1235  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1236  | --program-suf | --program-su | --program-s)
1237    ac_prev=program_suffix ;;
1238  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1239  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1240    program_suffix=$ac_optarg ;;
1241
1242  -program-transform-name | --program-transform-name \
1243  | --program-transform-nam | --program-transform-na \
1244  | --program-transform-n | --program-transform- \
1245  | --program-transform | --program-transfor \
1246  | --program-transfo | --program-transf \
1247  | --program-trans | --program-tran \
1248  | --progr-tra | --program-tr | --program-t)
1249    ac_prev=program_transform_name ;;
1250  -program-transform-name=* | --program-transform-name=* \
1251  | --program-transform-nam=* | --program-transform-na=* \
1252  | --program-transform-n=* | --program-transform-=* \
1253  | --program-transform=* | --program-transfor=* \
1254  | --program-transfo=* | --program-transf=* \
1255  | --program-trans=* | --program-tran=* \
1256  | --progr-tra=* | --program-tr=* | --program-t=*)
1257    program_transform_name=$ac_optarg ;;
1258
1259  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1260    ac_prev=pdfdir ;;
1261  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1262    pdfdir=$ac_optarg ;;
1263
1264  -psdir | --psdir | --psdi | --psd | --ps)
1265    ac_prev=psdir ;;
1266  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1267    psdir=$ac_optarg ;;
1268
1269  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270  | -silent | --silent | --silen | --sile | --sil)
1271    silent=yes ;;
1272
1273  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1274    ac_prev=sbindir ;;
1275  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1276  | --sbi=* | --sb=*)
1277    sbindir=$ac_optarg ;;
1278
1279  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1280  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1281  | --sharedst | --shareds | --shared | --share | --shar \
1282  | --sha | --sh)
1283    ac_prev=sharedstatedir ;;
1284  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1285  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1286  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1287  | --sha=* | --sh=*)
1288    sharedstatedir=$ac_optarg ;;
1289
1290  -site | --site | --sit)
1291    ac_prev=site ;;
1292  -site=* | --site=* | --sit=*)
1293    site=$ac_optarg ;;
1294
1295  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1296    ac_prev=srcdir ;;
1297  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1298    srcdir=$ac_optarg ;;
1299
1300  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1301  | --syscon | --sysco | --sysc | --sys | --sy)
1302    ac_prev=sysconfdir ;;
1303  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1304  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1305    sysconfdir=$ac_optarg ;;
1306
1307  -target | --target | --targe | --targ | --tar | --ta | --t)
1308    ac_prev=target_alias ;;
1309  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1310    target_alias=$ac_optarg ;;
1311
1312  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1313    verbose=yes ;;
1314
1315  -version | --version | --versio | --versi | --vers | -V)
1316    ac_init_version=: ;;
1317
1318  -with-* | --with-*)
1319    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1320    # Reject names that are not valid shell variable names.
1321    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1322      as_fn_error $? "invalid package name: $ac_useropt"
1323    ac_useropt_orig=$ac_useropt
1324    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325    case $ac_user_opts in
1326      *"
1327"with_$ac_useropt"
1328"*) ;;
1329      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1330	 ac_unrecognized_sep=', ';;
1331    esac
1332    eval with_$ac_useropt=\$ac_optarg ;;
1333
1334  -without-* | --without-*)
1335    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1336    # Reject names that are not valid shell variable names.
1337    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338      as_fn_error $? "invalid package name: $ac_useropt"
1339    ac_useropt_orig=$ac_useropt
1340    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341    case $ac_user_opts in
1342      *"
1343"with_$ac_useropt"
1344"*) ;;
1345      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1346	 ac_unrecognized_sep=', ';;
1347    esac
1348    eval with_$ac_useropt=no ;;
1349
1350  --x)
1351    # Obsolete; use --with-x.
1352    with_x=yes ;;
1353
1354  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1355  | --x-incl | --x-inc | --x-in | --x-i)
1356    ac_prev=x_includes ;;
1357  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1358  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1359    x_includes=$ac_optarg ;;
1360
1361  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1362  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1363    ac_prev=x_libraries ;;
1364  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1365  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1366    x_libraries=$ac_optarg ;;
1367
1368  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1369Try \`$0 --help' for more information"
1370    ;;
1371
1372  *=*)
1373    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1374    # Reject names that are not valid shell variable names.
1375    case $ac_envvar in #(
1376      '' | [0-9]* | *[!_$as_cr_alnum]* )
1377      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1378    esac
1379    eval $ac_envvar=\$ac_optarg
1380    export $ac_envvar ;;
1381
1382  *)
1383    # FIXME: should be removed in autoconf 3.0.
1384    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1385    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1386      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1387    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1388    ;;
1389
1390  esac
1391done
1392
1393if test -n "$ac_prev"; then
1394  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1395  as_fn_error $? "missing argument to $ac_option"
1396fi
1397
1398if test -n "$ac_unrecognized_opts"; then
1399  case $enable_option_checking in
1400    no) ;;
1401    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1402    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1403  esac
1404fi
1405
1406# Check all directory arguments for consistency.
1407for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1408		datadir sysconfdir sharedstatedir localstatedir includedir \
1409		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1410		libdir localedir mandir
1411do
1412  eval ac_val=\$$ac_var
1413  # Remove trailing slashes.
1414  case $ac_val in
1415    */ )
1416      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1417      eval $ac_var=\$ac_val;;
1418  esac
1419  # Be sure to have absolute directory names.
1420  case $ac_val in
1421    [\\/$]* | ?:[\\/]* )  continue;;
1422    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1423  esac
1424  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1425done
1426
1427# There might be people who depend on the old broken behavior: `$host'
1428# used to hold the argument of --host etc.
1429# FIXME: To remove some day.
1430build=$build_alias
1431host=$host_alias
1432target=$target_alias
1433
1434# FIXME: To remove some day.
1435if test "x$host_alias" != x; then
1436  if test "x$build_alias" = x; then
1437    cross_compiling=maybe
1438  elif test "x$build_alias" != "x$host_alias"; then
1439    cross_compiling=yes
1440  fi
1441fi
1442
1443ac_tool_prefix=
1444test -n "$host_alias" && ac_tool_prefix=$host_alias-
1445
1446test "$silent" = yes && exec 6>/dev/null
1447
1448
1449ac_pwd=`pwd` && test -n "$ac_pwd" &&
1450ac_ls_di=`ls -di .` &&
1451ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1452  as_fn_error $? "working directory cannot be determined"
1453test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1454  as_fn_error $? "pwd does not report name of working directory"
1455
1456
1457# Find the source files, if location was not specified.
1458if test -z "$srcdir"; then
1459  ac_srcdir_defaulted=yes
1460  # Try the directory containing this script, then the parent directory.
1461  ac_confdir=`$as_dirname -- "$as_myself" ||
1462$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1463	 X"$as_myself" : 'X\(//\)[^/]' \| \
1464	 X"$as_myself" : 'X\(//\)$' \| \
1465	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1466$as_echo X"$as_myself" |
1467    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468	    s//\1/
1469	    q
1470	  }
1471	  /^X\(\/\/\)[^/].*/{
1472	    s//\1/
1473	    q
1474	  }
1475	  /^X\(\/\/\)$/{
1476	    s//\1/
1477	    q
1478	  }
1479	  /^X\(\/\).*/{
1480	    s//\1/
1481	    q
1482	  }
1483	  s/.*/./; q'`
1484  srcdir=$ac_confdir
1485  if test ! -r "$srcdir/$ac_unique_file"; then
1486    srcdir=..
1487  fi
1488else
1489  ac_srcdir_defaulted=no
1490fi
1491if test ! -r "$srcdir/$ac_unique_file"; then
1492  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1493  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1494fi
1495ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1496ac_abs_confdir=`(
1497	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1498	pwd)`
1499# When building in place, set srcdir=.
1500if test "$ac_abs_confdir" = "$ac_pwd"; then
1501  srcdir=.
1502fi
1503# Remove unnecessary trailing slashes from srcdir.
1504# Double slashes in file names in object file debugging info
1505# mess up M-x gdb in Emacs.
1506case $srcdir in
1507*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1508esac
1509for ac_var in $ac_precious_vars; do
1510  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1511  eval ac_env_${ac_var}_value=\$${ac_var}
1512  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1513  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1514done
1515
1516#
1517# Report the --help message.
1518#
1519if test "$ac_init_help" = "long"; then
1520  # Omit some internal or obsolete options to make the list less imposing.
1521  # This message is too long to be a string in the A/UX 3.1 sh.
1522  cat <<_ACEOF
1523\`configure' configures this package to adapt to many kinds of systems.
1524
1525Usage: $0 [OPTION]... [VAR=VALUE]...
1526
1527To assign environment variables (e.g., CC, CFLAGS...), specify them as
1528VAR=VALUE.  See below for descriptions of some of the useful variables.
1529
1530Defaults for the options are specified in brackets.
1531
1532Configuration:
1533  -h, --help              display this help and exit
1534      --help=short        display options specific to this package
1535      --help=recursive    display the short help of all the included packages
1536  -V, --version           display version information and exit
1537  -q, --quiet, --silent   do not print \`checking ...' messages
1538      --cache-file=FILE   cache test results in FILE [disabled]
1539  -C, --config-cache      alias for \`--cache-file=config.cache'
1540  -n, --no-create         do not create output files
1541      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1542
1543Installation directories:
1544  --prefix=PREFIX         install architecture-independent files in PREFIX
1545                          [$ac_default_prefix]
1546  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1547                          [PREFIX]
1548
1549By default, \`make install' will install all the files in
1550\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1551an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1552for instance \`--prefix=\$HOME'.
1553
1554For better control, use the options below.
1555
1556Fine tuning of the installation directories:
1557  --bindir=DIR            user executables [EPREFIX/bin]
1558  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1559  --libexecdir=DIR        program executables [EPREFIX/libexec]
1560  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1561  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1562  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1563  --libdir=DIR            object code libraries [EPREFIX/lib]
1564  --includedir=DIR        C header files [PREFIX/include]
1565  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1566  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1567  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1568  --infodir=DIR           info documentation [DATAROOTDIR/info]
1569  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1570  --mandir=DIR            man documentation [DATAROOTDIR/man]
1571  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1572  --htmldir=DIR           html documentation [DOCDIR]
1573  --dvidir=DIR            dvi documentation [DOCDIR]
1574  --pdfdir=DIR            pdf documentation [DOCDIR]
1575  --psdir=DIR             ps documentation [DOCDIR]
1576_ACEOF
1577
1578  cat <<\_ACEOF
1579
1580Program names:
1581  --program-prefix=PREFIX            prepend PREFIX to installed program names
1582  --program-suffix=SUFFIX            append SUFFIX to installed program names
1583  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1584
1585System types:
1586  --build=BUILD     configure for building on BUILD [guessed]
1587  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1588  --target=TARGET   configure for building compilers for TARGET [HOST]
1589_ACEOF
1590fi
1591
1592if test -n "$ac_init_help"; then
1593
1594  cat <<\_ACEOF
1595
1596Optional Features:
1597  --disable-option-checking  ignore unrecognized --enable/--with options
1598  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1599  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1600  --disable-maintainer-mode
1601                          disable make rules and dependencies not useful (and
1602                          sometimes confusing) to the casual installer
1603  --enable-dependency-tracking
1604                          do not reject slow dependency extractors
1605  --disable-dependency-tracking
1606                          speeds up one-time build
1607  --enable-shared[=PKGS]  build shared libraries [default=yes]
1608  --enable-static[=PKGS]  build static libraries [default=yes]
1609  --enable-fast-install[=PKGS]
1610                          optimize for fast installation [default=yes]
1611  --disable-libtool-lock  avoid locking (might break parallel builds)
1612  --disable-largefile     omit support for large files
1613  --disable-admin-group   disable admin group
1614  --enable-afs            enable AFS support
1615  --enable-debug          enable verbose debug code
1616  --enable-debugging      disable SIGALRM timers and DSI tickles (eg for debugging with gdb/dbx/...)
1617  --enable-quota           Turn on quota support (default=auto)
1618  --enable-zeroconf[=DIR]   enable Zeroconf support [auto]
1619  --disable-tcp-wrappers  disable TCP wrappers support
1620  --disable-shell-check   disable checking for a valid shell
1621  --enable-pgp-uam        enable build of PGP UAM module
1622  --enable-krbV-uam       enable build of Kerberos V UAM module
1623  --enable-overwrite      overwrite configuration files during installation
1624  --disable-sendfile       disable sendfile syscall
1625  --enable-developer      whether to enable developer build (ABI checking)
1626  --enable-fhs            use Filesystem Hierarchy Standard (FHS) compatibility
1627  --enable-silent-rules   less verbose build output (undo: "make V=1")
1628  --disable-silent-rules  verbose build output (undo: "make V=0")
1629
1630Optional Packages:
1631  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1632  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1633  --with-pic              try to use only PIC/non-PIC objects [default=use
1634                          both]
1635  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1636  --with-sysroot=DIR Search for dependent libraries within DIR
1637                        (or the compiler's sysroot if not specified).
1638  --with-pkgconfdir=DIR   package specific configuration in DIR
1639                          [$sysconfdir]
1640  --with-message-dir=PATH path to server message files [$localstatedir/netatalk/msg/]
1641  --with-cracklib[=DICT]  enable/set location of cracklib dictionary [no]
1642  --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include [default=auto]
1643  --with-cnid-dbd-backend       build CNID with Database Daemon Data Store [yes]
1644  --with-cnid-cdb-backend	build CNID with Concurrent BDB Data Store  [no]
1645  --with-cnid-last-backend	build LAST CNID scheme                     [yes]
1646  --with-cnid-tdb-backend	build TDB CNID scheme                      [yes]
1647  --with-cnid-default-backend=val	set default DID scheme [dbd]
1648  --with-pam[=PATH]       specify path to PAM installation [auto]
1649  --with-pam-confdir=PATH Path to PAM config dir (default:
1650                          ${sysconfdir}/pam.d)
1651  --with-shadow           enable shadow password support [auto]
1652  --with-init-style       use OS specific init config [redhat-sysv|redhat-systemd|suse-sysv|suse-systemd|gentoo|netbsd|debian|solaris|systemd]
1653  --with-init-dir=PATH    path to OS specific init directory
1654  --with-uams-path=PATH   path to UAMs [$libdir/netatalk/]
1655  --with-libgcrypt-dir=PATH
1656                          path where LIBGCRYPT is installed (optional). Must
1657                          contain lib and include dirs.
1658  --with-ssl-dir=PATH     specify path to OpenSSL installation (must contain
1659                          lib and include dirs)
1660  --with-bdb=PATH         specify path to Berkeley DB installation[auto]
1661  --with-gssapi[=PATH]    path to GSSAPI for Kerberos V UAM [auto]
1662  --with-kerberos         Kerberos 5 support (default=auto)
1663  --with-ldap             LDAP support (default=auto)
1664  --with-acls             Include ACL support (default=auto)
1665  --with-libevent         whether to use the bundled libevent (default: yes)
1666  --with-libevent-header  path to libevent header files
1667  --with-libevent-lib     path to libevent library
1668  --with-dtrace           Enable dtrace probes (default: enabled if dtrace
1669                          found)
1670  --with-dbus-sysconf-dir=PATH
1671                          Path to dbus system bus security configuration
1672                          directory (default: ${sysconfdir}/dbus-1/system.d/)
1673  --with-lockfile=PATH    Path of netatalk lockfile
1674  --with-docbook          Path to Docbook XSL directory
1675
1676Some influential environment variables:
1677  CC          C compiler command
1678  CFLAGS      C compiler flags
1679  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1680              nonstandard directory <lib dir>
1681  LIBS        libraries to pass to the linker, e.g. -l<library>
1682  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1683              you have headers in a nonstandard directory <include dir>
1684  CPP         C preprocessor
1685  PKG_CONFIG  path to pkg-config utility
1686  AVAHI_CFLAGS
1687              C compiler flags for AVAHI, overriding pkg-config
1688  AVAHI_LIBS  linker flags for AVAHI, overriding pkg-config
1689  AVAHI_TPOLL_CFLAGS
1690              C compiler flags for AVAHI_TPOLL, overriding pkg-config
1691  AVAHI_TPOLL_LIBS
1692              linker flags for AVAHI_TPOLL, overriding pkg-config
1693  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1694  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1695  DBUS_GLIB_CFLAGS
1696              C compiler flags for DBUS_GLIB, overriding pkg-config
1697  DBUS_GLIB_LIBS
1698              linker flags for DBUS_GLIB, overriding pkg-config
1699  DBUS_GTHREAD_CFLAGS
1700              C compiler flags for DBUS_GTHREAD, overriding pkg-config
1701  DBUS_GTHREAD_LIBS
1702              linker flags for DBUS_GTHREAD, overriding pkg-config
1703
1704Use these variables to override the choices made by `configure' or to help
1705it to find libraries and programs with nonstandard names/locations.
1706
1707Report bugs to the package provider.
1708_ACEOF
1709ac_status=$?
1710fi
1711
1712if test "$ac_init_help" = "recursive"; then
1713  # If there are subdirs, report their specific --help.
1714  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1715    test -d "$ac_dir" ||
1716      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1717      continue
1718    ac_builddir=.
1719
1720case "$ac_dir" in
1721.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722*)
1723  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1724  # A ".." for each directory in $ac_dir_suffix.
1725  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1726  case $ac_top_builddir_sub in
1727  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1729  esac ;;
1730esac
1731ac_abs_top_builddir=$ac_pwd
1732ac_abs_builddir=$ac_pwd$ac_dir_suffix
1733# for backward compatibility:
1734ac_top_builddir=$ac_top_build_prefix
1735
1736case $srcdir in
1737  .)  # We are building in place.
1738    ac_srcdir=.
1739    ac_top_srcdir=$ac_top_builddir_sub
1740    ac_abs_top_srcdir=$ac_pwd ;;
1741  [\\/]* | ?:[\\/]* )  # Absolute name.
1742    ac_srcdir=$srcdir$ac_dir_suffix;
1743    ac_top_srcdir=$srcdir
1744    ac_abs_top_srcdir=$srcdir ;;
1745  *) # Relative name.
1746    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1747    ac_top_srcdir=$ac_top_build_prefix$srcdir
1748    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1749esac
1750ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1751
1752    cd "$ac_dir" || { ac_status=$?; continue; }
1753    # Check for guested configure.
1754    if test -f "$ac_srcdir/configure.gnu"; then
1755      echo &&
1756      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1757    elif test -f "$ac_srcdir/configure"; then
1758      echo &&
1759      $SHELL "$ac_srcdir/configure" --help=recursive
1760    else
1761      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1762    fi || ac_status=$?
1763    cd "$ac_pwd" || { ac_status=$?; break; }
1764  done
1765fi
1766
1767test -n "$ac_init_help" && exit $ac_status
1768if $ac_init_version; then
1769  cat <<\_ACEOF
1770configure
1771generated by GNU Autoconf 2.69
1772
1773Copyright (C) 2012 Free Software Foundation, Inc.
1774This configure script is free software; the Free Software Foundation
1775gives unlimited permission to copy, distribute and modify it.
1776_ACEOF
1777  exit
1778fi
1779
1780## ------------------------ ##
1781## Autoconf initialization. ##
1782## ------------------------ ##
1783
1784# ac_fn_c_try_compile LINENO
1785# --------------------------
1786# Try to compile conftest.$ac_ext, and return whether this succeeded.
1787ac_fn_c_try_compile ()
1788{
1789  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790  rm -f conftest.$ac_objext
1791  if { { ac_try="$ac_compile"
1792case "(($ac_try" in
1793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794  *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798  (eval "$ac_compile") 2>conftest.err
1799  ac_status=$?
1800  if test -s conftest.err; then
1801    grep -v '^ *+' conftest.err >conftest.er1
1802    cat conftest.er1 >&5
1803    mv -f conftest.er1 conftest.err
1804  fi
1805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806  test $ac_status = 0; } && {
1807	 test -z "$ac_c_werror_flag" ||
1808	 test ! -s conftest.err
1809       } && test -s conftest.$ac_objext; then :
1810  ac_retval=0
1811else
1812  $as_echo "$as_me: failed program was:" >&5
1813sed 's/^/| /' conftest.$ac_ext >&5
1814
1815	ac_retval=1
1816fi
1817  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818  as_fn_set_status $ac_retval
1819
1820} # ac_fn_c_try_compile
1821
1822# ac_fn_c_try_link LINENO
1823# -----------------------
1824# Try to link conftest.$ac_ext, and return whether this succeeded.
1825ac_fn_c_try_link ()
1826{
1827  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828  rm -f conftest.$ac_objext conftest$ac_exeext
1829  if { { ac_try="$ac_link"
1830case "(($ac_try" in
1831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832  *) ac_try_echo=$ac_try;;
1833esac
1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835$as_echo "$ac_try_echo"; } >&5
1836  (eval "$ac_link") 2>conftest.err
1837  ac_status=$?
1838  if test -s conftest.err; then
1839    grep -v '^ *+' conftest.err >conftest.er1
1840    cat conftest.er1 >&5
1841    mv -f conftest.er1 conftest.err
1842  fi
1843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844  test $ac_status = 0; } && {
1845	 test -z "$ac_c_werror_flag" ||
1846	 test ! -s conftest.err
1847       } && test -s conftest$ac_exeext && {
1848	 test "$cross_compiling" = yes ||
1849	 test -x conftest$ac_exeext
1850       }; then :
1851  ac_retval=0
1852else
1853  $as_echo "$as_me: failed program was:" >&5
1854sed 's/^/| /' conftest.$ac_ext >&5
1855
1856	ac_retval=1
1857fi
1858  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1859  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1860  # interfere with the next link command; also delete a directory that is
1861  # left behind by Apple's compiler.  We do this before executing the actions.
1862  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1863  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864  as_fn_set_status $ac_retval
1865
1866} # ac_fn_c_try_link
1867
1868# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1869# -------------------------------------------------------
1870# Tests whether HEADER exists and can be compiled using the include files in
1871# INCLUDES, setting the cache variable VAR accordingly.
1872ac_fn_c_check_header_compile ()
1873{
1874  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876$as_echo_n "checking for $2... " >&6; }
1877if eval \${$3+:} false; then :
1878  $as_echo_n "(cached) " >&6
1879else
1880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h.  */
1882$4
1883#include <$2>
1884_ACEOF
1885if ac_fn_c_try_compile "$LINENO"; then :
1886  eval "$3=yes"
1887else
1888  eval "$3=no"
1889fi
1890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891fi
1892eval ac_res=\$$3
1893	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894$as_echo "$ac_res" >&6; }
1895  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896
1897} # ac_fn_c_check_header_compile
1898
1899# ac_fn_c_try_cpp LINENO
1900# ----------------------
1901# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1902ac_fn_c_try_cpp ()
1903{
1904  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905  if { { ac_try="$ac_cpp conftest.$ac_ext"
1906case "(($ac_try" in
1907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908  *) ac_try_echo=$ac_try;;
1909esac
1910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911$as_echo "$ac_try_echo"; } >&5
1912  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1913  ac_status=$?
1914  if test -s conftest.err; then
1915    grep -v '^ *+' conftest.err >conftest.er1
1916    cat conftest.er1 >&5
1917    mv -f conftest.er1 conftest.err
1918  fi
1919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920  test $ac_status = 0; } > conftest.i && {
1921	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1922	 test ! -s conftest.err
1923       }; then :
1924  ac_retval=0
1925else
1926  $as_echo "$as_me: failed program was:" >&5
1927sed 's/^/| /' conftest.$ac_ext >&5
1928
1929    ac_retval=1
1930fi
1931  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932  as_fn_set_status $ac_retval
1933
1934} # ac_fn_c_try_cpp
1935
1936# ac_fn_c_try_run LINENO
1937# ----------------------
1938# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1939# that executables *can* be run.
1940ac_fn_c_try_run ()
1941{
1942  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943  if { { ac_try="$ac_link"
1944case "(($ac_try" in
1945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946  *) ac_try_echo=$ac_try;;
1947esac
1948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949$as_echo "$ac_try_echo"; } >&5
1950  (eval "$ac_link") 2>&5
1951  ac_status=$?
1952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1954  { { case "(($ac_try" in
1955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956  *) ac_try_echo=$ac_try;;
1957esac
1958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959$as_echo "$ac_try_echo"; } >&5
1960  (eval "$ac_try") 2>&5
1961  ac_status=$?
1962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963  test $ac_status = 0; }; }; then :
1964  ac_retval=0
1965else
1966  $as_echo "$as_me: program exited with status $ac_status" >&5
1967       $as_echo "$as_me: failed program was:" >&5
1968sed 's/^/| /' conftest.$ac_ext >&5
1969
1970       ac_retval=$ac_status
1971fi
1972  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974  as_fn_set_status $ac_retval
1975
1976} # ac_fn_c_try_run
1977
1978# ac_fn_c_check_func LINENO FUNC VAR
1979# ----------------------------------
1980# Tests whether FUNC exists, setting the cache variable VAR accordingly
1981ac_fn_c_check_func ()
1982{
1983  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985$as_echo_n "checking for $2... " >&6; }
1986if eval \${$3+:} false; then :
1987  $as_echo_n "(cached) " >&6
1988else
1989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990/* end confdefs.h.  */
1991/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1992   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1993#define $2 innocuous_$2
1994
1995/* System header to define __stub macros and hopefully few prototypes,
1996    which can conflict with char $2 (); below.
1997    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1998    <limits.h> exists even on freestanding compilers.  */
1999
2000#ifdef __STDC__
2001# include <limits.h>
2002#else
2003# include <assert.h>
2004#endif
2005
2006#undef $2
2007
2008/* Override any GCC internal prototype to avoid an error.
2009   Use char because int might match the return type of a GCC
2010   builtin and then its argument prototype would still apply.  */
2011#ifdef __cplusplus
2012extern "C"
2013#endif
2014char $2 ();
2015/* The GNU C library defines this for functions which it implements
2016    to always fail with ENOSYS.  Some functions are actually named
2017    something starting with __ and the normal name is an alias.  */
2018#if defined __stub_$2 || defined __stub___$2
2019choke me
2020#endif
2021
2022int
2023main ()
2024{
2025return $2 ();
2026  ;
2027  return 0;
2028}
2029_ACEOF
2030if ac_fn_c_try_link "$LINENO"; then :
2031  eval "$3=yes"
2032else
2033  eval "$3=no"
2034fi
2035rm -f core conftest.err conftest.$ac_objext \
2036    conftest$ac_exeext conftest.$ac_ext
2037fi
2038eval ac_res=\$$3
2039	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040$as_echo "$ac_res" >&6; }
2041  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043} # ac_fn_c_check_func
2044
2045# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2046# -------------------------------------------------------
2047# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2048# the include files in INCLUDES and setting the cache variable VAR
2049# accordingly.
2050ac_fn_c_check_header_mongrel ()
2051{
2052  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053  # Added by Edison 20130918
2054  if test "$shlibpath_tmp" != ""; then
2055     eval "export LD_LIBRARY_PATH=$shlibpath_tmp;"
2056  fi
2057
2058  if eval \${$3+:} false; then :
2059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060$as_echo_n "checking for $2... " >&6; }
2061if eval \${$3+:} false; then :
2062  $as_echo_n "(cached) " >&6
2063fi
2064eval ac_res=\$$3
2065	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066$as_echo "$ac_res" >&6; }
2067else
2068  # Is the header compilable?
2069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2070$as_echo_n "checking $2 usability... " >&6; }
2071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h.  */
2073$4
2074#include <$2>
2075_ACEOF
2076if ac_fn_c_try_compile "$LINENO"; then :
2077  ac_header_compiler=yes
2078else
2079  ac_header_compiler=no
2080fi
2081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2083$as_echo "$ac_header_compiler" >&6; }
2084
2085# Is the header present?
2086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2087$as_echo_n "checking $2 presence... " >&6; }
2088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089/* end confdefs.h.  */
2090#include <$2>
2091_ACEOF
2092if ac_fn_c_try_cpp "$LINENO"; then :
2093  ac_header_preproc=yes
2094else
2095  ac_header_preproc=no
2096fi
2097rm -f conftest.err conftest.i conftest.$ac_ext
2098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2099$as_echo "$ac_header_preproc" >&6; }
2100
2101# So?  What about this header?
2102case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2103  yes:no: )
2104    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2105$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2106    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2107$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2108    ;;
2109  no:yes:* )
2110    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2111$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2112    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2113$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2114    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2115$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2116    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2117$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2118    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2120    ;;
2121esac
2122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123$as_echo_n "checking for $2... " >&6; }
2124if eval \${$3+:} false; then :
2125  $as_echo_n "(cached) " >&6
2126else
2127  eval "$3=\$ac_header_compiler"
2128fi
2129eval ac_res=\$$3
2130	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131$as_echo "$ac_res" >&6; }
2132fi
2133  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134
2135} # ac_fn_c_check_header_mongrel
2136
2137# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2138# -------------------------------------------
2139# Tests whether TYPE exists after having included INCLUDES, setting cache
2140# variable VAR accordingly.
2141ac_fn_c_check_type ()
2142{
2143  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2145$as_echo_n "checking for $2... " >&6; }
2146if eval \${$3+:} false; then :
2147  $as_echo_n "(cached) " >&6
2148else
2149  eval "$3=no"
2150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151/* end confdefs.h.  */
2152$4
2153int
2154main ()
2155{
2156if (sizeof ($2))
2157	 return 0;
2158  ;
2159  return 0;
2160}
2161_ACEOF
2162if ac_fn_c_try_compile "$LINENO"; then :
2163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164/* end confdefs.h.  */
2165$4
2166int
2167main ()
2168{
2169if (sizeof (($2)))
2170	    return 0;
2171  ;
2172  return 0;
2173}
2174_ACEOF
2175if ac_fn_c_try_compile "$LINENO"; then :
2176
2177else
2178  eval "$3=yes"
2179fi
2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181fi
2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183fi
2184eval ac_res=\$$3
2185	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186$as_echo "$ac_res" >&6; }
2187  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188
2189} # ac_fn_c_check_type
2190
2191# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2192# ---------------------------------------------
2193# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2194# accordingly.
2195ac_fn_c_check_decl ()
2196{
2197  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198  as_decl_name=`echo $2|sed 's/ *(.*//'`
2199  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2201$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2202if eval \${$3+:} false; then :
2203  $as_echo_n "(cached) " >&6
2204else
2205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206/* end confdefs.h.  */
2207$4
2208int
2209main ()
2210{
2211#ifndef $as_decl_name
2212#ifdef __cplusplus
2213  (void) $as_decl_use;
2214#else
2215  (void) $as_decl_name;
2216#endif
2217#endif
2218
2219  ;
2220  return 0;
2221}
2222_ACEOF
2223if ac_fn_c_try_compile "$LINENO"; then :
2224  eval "$3=yes"
2225else
2226  eval "$3=no"
2227fi
2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229fi
2230eval ac_res=\$$3
2231	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232$as_echo "$ac_res" >&6; }
2233  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2234
2235} # ac_fn_c_check_decl
2236
2237# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2238# ----------------------------------------------------
2239# Tries to find if the field MEMBER exists in type AGGR, after including
2240# INCLUDES, setting cache variable VAR accordingly.
2241ac_fn_c_check_member ()
2242{
2243  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2245$as_echo_n "checking for $2.$3... " >&6; }
2246if eval \${$4+:} false; then :
2247  $as_echo_n "(cached) " >&6
2248else
2249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250/* end confdefs.h.  */
2251$5
2252int
2253main ()
2254{
2255static $2 ac_aggr;
2256if (ac_aggr.$3)
2257return 0;
2258  ;
2259  return 0;
2260}
2261_ACEOF
2262if ac_fn_c_try_compile "$LINENO"; then :
2263  eval "$4=yes"
2264else
2265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h.  */
2267$5
2268int
2269main ()
2270{
2271static $2 ac_aggr;
2272if (sizeof ac_aggr.$3)
2273return 0;
2274  ;
2275  return 0;
2276}
2277_ACEOF
2278if ac_fn_c_try_compile "$LINENO"; then :
2279  eval "$4=yes"
2280else
2281  eval "$4=no"
2282fi
2283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284fi
2285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286fi
2287eval ac_res=\$$4
2288	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289$as_echo "$ac_res" >&6; }
2290  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291
2292} # ac_fn_c_check_member
2293cat >config.log <<_ACEOF
2294This file contains any messages produced by compilers while
2295running configure, to aid debugging if configure makes a mistake.
2296
2297It was created by $as_me, which was
2298generated by GNU Autoconf 2.69.  Invocation command line was
2299
2300  $ $0 $@
2301
2302_ACEOF
2303exec 5>>config.log
2304{
2305cat <<_ASUNAME
2306## --------- ##
2307## Platform. ##
2308## --------- ##
2309
2310hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2311uname -m = `(uname -m) 2>/dev/null || echo unknown`
2312uname -r = `(uname -r) 2>/dev/null || echo unknown`
2313uname -s = `(uname -s) 2>/dev/null || echo unknown`
2314uname -v = `(uname -v) 2>/dev/null || echo unknown`
2315
2316/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2317/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2318
2319/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2320/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2321/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2322/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2323/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2324/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2325/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2326
2327_ASUNAME
2328
2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330for as_dir in $PATH
2331do
2332  IFS=$as_save_IFS
2333  test -z "$as_dir" && as_dir=.
2334    $as_echo "PATH: $as_dir"
2335  done
2336IFS=$as_save_IFS
2337
2338} >&5
2339
2340cat >&5 <<_ACEOF
2341
2342
2343## ----------- ##
2344## Core tests. ##
2345## ----------- ##
2346
2347_ACEOF
2348
2349
2350# Keep a trace of the command line.
2351# Strip out --no-create and --no-recursion so they do not pile up.
2352# Strip out --silent because we don't want to record it for future runs.
2353# Also quote any args containing shell meta-characters.
2354# Make two passes to allow for proper duplicate-argument suppression.
2355ac_configure_args=
2356ac_configure_args0=
2357ac_configure_args1=
2358ac_must_keep_next=false
2359for ac_pass in 1 2
2360do
2361  for ac_arg
2362  do
2363    case $ac_arg in
2364    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2365    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2366    | -silent | --silent | --silen | --sile | --sil)
2367      continue ;;
2368    *\'*)
2369      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2370    esac
2371    case $ac_pass in
2372    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2373    2)
2374      as_fn_append ac_configure_args1 " '$ac_arg'"
2375      if test $ac_must_keep_next = true; then
2376	ac_must_keep_next=false # Got value, back to normal.
2377      else
2378	case $ac_arg in
2379	  *=* | --config-cache | -C | -disable-* | --disable-* \
2380	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2381	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2382	  | -with-* | --with-* | -without-* | --without-* | --x)
2383	    case "$ac_configure_args0 " in
2384	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2385	    esac
2386	    ;;
2387	  -* ) ac_must_keep_next=true ;;
2388	esac
2389      fi
2390      as_fn_append ac_configure_args " '$ac_arg'"
2391      ;;
2392    esac
2393  done
2394done
2395{ ac_configure_args0=; unset ac_configure_args0;}
2396{ ac_configure_args1=; unset ac_configure_args1;}
2397
2398# When interrupted or exit'd, cleanup temporary files, and complete
2399# config.log.  We remove comments because anyway the quotes in there
2400# would cause problems or look ugly.
2401# WARNING: Use '\'' to represent an apostrophe within the trap.
2402# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2403trap 'exit_status=$?
2404  # Save into config.log some information that might help in debugging.
2405  {
2406    echo
2407
2408    $as_echo "## ---------------- ##
2409## Cache variables. ##
2410## ---------------- ##"
2411    echo
2412    # The following way of writing the cache mishandles newlines in values,
2413(
2414  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2415    eval ac_val=\$$ac_var
2416    case $ac_val in #(
2417    *${as_nl}*)
2418      case $ac_var in #(
2419      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2420$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2421      esac
2422      case $ac_var in #(
2423      _ | IFS | as_nl) ;; #(
2424      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2425      *) { eval $ac_var=; unset $ac_var;} ;;
2426      esac ;;
2427    esac
2428  done
2429  (set) 2>&1 |
2430    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2431    *${as_nl}ac_space=\ *)
2432      sed -n \
2433	"s/'\''/'\''\\\\'\'''\''/g;
2434	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2435      ;; #(
2436    *)
2437      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2438      ;;
2439    esac |
2440    sort
2441)
2442    echo
2443
2444    $as_echo "## ----------------- ##
2445## Output variables. ##
2446## ----------------- ##"
2447    echo
2448    for ac_var in $ac_subst_vars
2449    do
2450      eval ac_val=\$$ac_var
2451      case $ac_val in
2452      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2453      esac
2454      $as_echo "$ac_var='\''$ac_val'\''"
2455    done | sort
2456    echo
2457
2458    if test -n "$ac_subst_files"; then
2459      $as_echo "## ------------------- ##
2460## File substitutions. ##
2461## ------------------- ##"
2462      echo
2463      for ac_var in $ac_subst_files
2464      do
2465	eval ac_val=\$$ac_var
2466	case $ac_val in
2467	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2468	esac
2469	$as_echo "$ac_var='\''$ac_val'\''"
2470      done | sort
2471      echo
2472    fi
2473
2474    if test -s confdefs.h; then
2475      $as_echo "## ----------- ##
2476## confdefs.h. ##
2477## ----------- ##"
2478      echo
2479      cat confdefs.h
2480      echo
2481    fi
2482    test "$ac_signal" != 0 &&
2483      $as_echo "$as_me: caught signal $ac_signal"
2484    $as_echo "$as_me: exit $exit_status"
2485  } >&5
2486  rm -f core *.core core.conftest.* &&
2487    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2488    exit $exit_status
2489' 0
2490for ac_signal in 1 2 13 15; do
2491  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2492done
2493ac_signal=0
2494
2495# confdefs.h avoids OS command line length limits that DEFS can exceed.
2496rm -f -r conftest* confdefs.h
2497
2498$as_echo "/* confdefs.h */" > confdefs.h
2499
2500# Predefined preprocessor variables.
2501
2502cat >>confdefs.h <<_ACEOF
2503#define PACKAGE_NAME "$PACKAGE_NAME"
2504_ACEOF
2505
2506cat >>confdefs.h <<_ACEOF
2507#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2508_ACEOF
2509
2510cat >>confdefs.h <<_ACEOF
2511#define PACKAGE_VERSION "$PACKAGE_VERSION"
2512_ACEOF
2513
2514cat >>confdefs.h <<_ACEOF
2515#define PACKAGE_STRING "$PACKAGE_STRING"
2516_ACEOF
2517
2518cat >>confdefs.h <<_ACEOF
2519#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2520_ACEOF
2521
2522cat >>confdefs.h <<_ACEOF
2523#define PACKAGE_URL "$PACKAGE_URL"
2524_ACEOF
2525
2526
2527# Let the site file select an alternate cache file if it wants to.
2528# Prefer an explicitly selected file to automatically selected ones.
2529ac_site_file1=NONE
2530ac_site_file2=NONE
2531if test -n "$CONFIG_SITE"; then
2532  # We do not want a PATH search for config.site.
2533  case $CONFIG_SITE in #((
2534    -*)  ac_site_file1=./$CONFIG_SITE;;
2535    */*) ac_site_file1=$CONFIG_SITE;;
2536    *)   ac_site_file1=./$CONFIG_SITE;;
2537  esac
2538elif test "x$prefix" != xNONE; then
2539  ac_site_file1=$prefix/share/config.site
2540  ac_site_file2=$prefix/etc/config.site
2541else
2542  ac_site_file1=$ac_default_prefix/share/config.site
2543  ac_site_file2=$ac_default_prefix/etc/config.site
2544fi
2545for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2546do
2547  test "x$ac_site_file" = xNONE && continue
2548  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2549    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2550$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2551    sed 's/^/| /' "$ac_site_file" >&5
2552    . "$ac_site_file" \
2553      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555as_fn_error $? "failed to load site script $ac_site_file
2556See \`config.log' for more details" "$LINENO" 5; }
2557  fi
2558done
2559
2560if test -r "$cache_file"; then
2561  # Some versions of bash will fail to source /dev/null (special files
2562  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2563  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2564    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2565$as_echo "$as_me: loading cache $cache_file" >&6;}
2566    case $cache_file in
2567      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2568      *)                      . "./$cache_file";;
2569    esac
2570  fi
2571else
2572  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2573$as_echo "$as_me: creating cache $cache_file" >&6;}
2574  >$cache_file
2575fi
2576
2577# Check that the precious variables saved in the cache have kept the same
2578# value.
2579ac_cache_corrupted=false
2580for ac_var in $ac_precious_vars; do
2581  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2582  eval ac_new_set=\$ac_env_${ac_var}_set
2583  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2584  eval ac_new_val=\$ac_env_${ac_var}_value
2585  case $ac_old_set,$ac_new_set in
2586    set,)
2587      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2588$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2589      ac_cache_corrupted=: ;;
2590    ,set)
2591      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2592$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2593      ac_cache_corrupted=: ;;
2594    ,);;
2595    *)
2596      if test "x$ac_old_val" != "x$ac_new_val"; then
2597	# differences in whitespace do not lead to failure.
2598	ac_old_val_w=`echo x $ac_old_val`
2599	ac_new_val_w=`echo x $ac_new_val`
2600	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2601	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2602$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2603	  ac_cache_corrupted=:
2604	else
2605	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2606$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2607	  eval $ac_var=\$ac_old_val
2608	fi
2609	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2610$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2611	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2612$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2613      fi;;
2614  esac
2615  # Pass precious variables to config.status.
2616  if test "$ac_new_set" = set; then
2617    case $ac_new_val in
2618    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2619    *) ac_arg=$ac_var=$ac_new_val ;;
2620    esac
2621    case " $ac_configure_args " in
2622      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2623      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2624    esac
2625  fi
2626done
2627if $ac_cache_corrupted; then
2628  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2630  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2631$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2632  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2633fi
2634## -------------------- ##
2635## Main body of script. ##
2636## -------------------- ##
2637
2638ac_ext=c
2639ac_cpp='$CPP $CPPFLAGS'
2640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643
2644
2645
2646NETATALK_VERSION=`cat $srcdir/VERSION`
2647
2648
2649ac_aux_dir=
2650for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2651  if test -f "$ac_dir/install-sh"; then
2652    ac_aux_dir=$ac_dir
2653    ac_install_sh="$ac_aux_dir/install-sh -c"
2654    break
2655  elif test -f "$ac_dir/install.sh"; then
2656    ac_aux_dir=$ac_dir
2657    ac_install_sh="$ac_aux_dir/install.sh -c"
2658    break
2659  elif test -f "$ac_dir/shtool"; then
2660    ac_aux_dir=$ac_dir
2661    ac_install_sh="$ac_aux_dir/shtool install -c"
2662    break
2663  fi
2664done
2665if test -z "$ac_aux_dir"; then
2666  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2667fi
2668
2669# These three variables are undocumented and unsupported,
2670# and are intended to be withdrawn in a future Autoconf release.
2671# They can cause serious problems if a builder's source tree is in a directory
2672# whose full name contains unusual characters.
2673ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2674ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2675ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2676
2677
2678# Make sure we can run config.sub.
2679$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2680  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2681
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2683$as_echo_n "checking build system type... " >&6; }
2684if ${ac_cv_build+:} false; then :
2685  $as_echo_n "(cached) " >&6
2686else
2687  ac_build_alias=$build_alias
2688test "x$ac_build_alias" = x &&
2689  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2690test "x$ac_build_alias" = x &&
2691  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2692ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2693  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2694
2695fi
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2697$as_echo "$ac_cv_build" >&6; }
2698case $ac_cv_build in
2699*-*-*) ;;
2700*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2701esac
2702build=$ac_cv_build
2703ac_save_IFS=$IFS; IFS='-'
2704set x $ac_cv_build
2705shift
2706build_cpu=$1
2707build_vendor=$2
2708shift; shift
2709# Remember, the first character of IFS is used to create $*,
2710# except with old shells:
2711build_os=$*
2712IFS=$ac_save_IFS
2713case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2714
2715
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2717$as_echo_n "checking host system type... " >&6; }
2718if ${ac_cv_host+:} false; then :
2719  $as_echo_n "(cached) " >&6
2720else
2721  if test "x$host_alias" = x; then
2722  ac_cv_host=$ac_cv_build
2723else
2724  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2725    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2726fi
2727
2728fi
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2730$as_echo "$ac_cv_host" >&6; }
2731case $ac_cv_host in
2732*-*-*) ;;
2733*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2734esac
2735host=$ac_cv_host
2736ac_save_IFS=$IFS; IFS='-'
2737set x $ac_cv_host
2738shift
2739host_cpu=$1
2740host_vendor=$2
2741shift; shift
2742# Remember, the first character of IFS is used to create $*,
2743# except with old shells:
2744host_os=$*
2745IFS=$ac_save_IFS
2746case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2747
2748
2749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2750$as_echo_n "checking target system type... " >&6; }
2751if ${ac_cv_target+:} false; then :
2752  $as_echo_n "(cached) " >&6
2753else
2754  if test "x$target_alias" = x; then
2755  ac_cv_target=$ac_cv_host
2756else
2757  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2758    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2759fi
2760
2761fi
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2763$as_echo "$ac_cv_target" >&6; }
2764case $ac_cv_target in
2765*-*-*) ;;
2766*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2767esac
2768target=$ac_cv_target
2769ac_save_IFS=$IFS; IFS='-'
2770set x $ac_cv_target
2771shift
2772target_cpu=$1
2773target_vendor=$2
2774shift; shift
2775# Remember, the first character of IFS is used to create $*,
2776# except with old shells:
2777target_os=$*
2778IFS=$ac_save_IFS
2779case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2780
2781
2782# The aliases save the names the user supplied, while $host etc.
2783# will get canonicalized.
2784test -n "$target_alias" &&
2785  test "$program_prefix$program_suffix$program_transform_name" = \
2786    NONENONEs,x,x, &&
2787#marked by Edison 20130918
2788#  program_prefix=${target_alias}-
2789
2790am__api_version='1.12'
2791
2792# Find a good install program.  We prefer a C program (faster),
2793# so one script is as good as another.  But avoid the broken or
2794# incompatible versions:
2795# SysV /etc/install, /usr/sbin/install
2796# SunOS /usr/etc/install
2797# IRIX /sbin/install
2798# AIX /bin/install
2799# AmigaOS /C/install, which installs bootblocks on floppy discs
2800# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2801# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2802# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2803# OS/2's system install, which has a completely different semantic
2804# ./install, which can be erroneously created by make from ./install.sh.
2805# Reject install programs that cannot install multiple files.
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2807$as_echo_n "checking for a BSD-compatible install... " >&6; }
2808if test -z "$INSTALL"; then
2809if ${ac_cv_path_install+:} false; then :
2810  $as_echo_n "(cached) " >&6
2811else
2812  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813for as_dir in $PATH
2814do
2815  IFS=$as_save_IFS
2816  test -z "$as_dir" && as_dir=.
2817    # Account for people who put trailing slashes in PATH elements.
2818case $as_dir/ in #((
2819  ./ | .// | /[cC]/* | \
2820  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2821  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2822  /usr/ucb/* ) ;;
2823  *)
2824    # OSF1 and SCO ODT 3.0 have their own names for install.
2825    # Don't use installbsd from OSF since it installs stuff as root
2826    # by default.
2827    for ac_prog in ginstall scoinst install; do
2828      for ac_exec_ext in '' $ac_executable_extensions; do
2829	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2830	  if test $ac_prog = install &&
2831	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2832	    # AIX install.  It has an incompatible calling convention.
2833	    :
2834	  elif test $ac_prog = install &&
2835	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2836	    # program-specific install script used by HP pwplus--don't use.
2837	    :
2838	  else
2839	    rm -rf conftest.one conftest.two conftest.dir
2840	    echo one > conftest.one
2841	    echo two > conftest.two
2842	    mkdir conftest.dir
2843	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2844	      test -s conftest.one && test -s conftest.two &&
2845	      test -s conftest.dir/conftest.one &&
2846	      test -s conftest.dir/conftest.two
2847	    then
2848	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2849	      break 3
2850	    fi
2851	  fi
2852	fi
2853      done
2854    done
2855    ;;
2856esac
2857
2858  done
2859IFS=$as_save_IFS
2860
2861rm -rf conftest.one conftest.two conftest.dir
2862
2863fi
2864  if test "${ac_cv_path_install+set}" = set; then
2865    INSTALL=$ac_cv_path_install
2866  else
2867    # As a last resort, use the slow shell script.  Don't cache a
2868    # value for INSTALL within a source directory, because that will
2869    # break other packages using the cache if that directory is
2870    # removed, or if the value is a relative name.
2871    INSTALL=$ac_install_sh
2872  fi
2873fi
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2875$as_echo "$INSTALL" >&6; }
2876
2877# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2878# It thinks the first close brace ends the variable substitution.
2879test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2880
2881test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2882
2883test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2884
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2886$as_echo_n "checking whether build environment is sane... " >&6; }
2887# Reject unsafe characters in $srcdir or the absolute working directory
2888# name.  Accept space and tab only in the latter.
2889am_lf='
2890'
2891case `pwd` in
2892  *[\\\"\#\$\&\'\`$am_lf]*)
2893    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2894esac
2895case $srcdir in
2896  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2897    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2898esac
2899
2900# Do 'set' in a subshell so we don't clobber the current shell's
2901# arguments.  Must try -L first in case configure is actually a
2902# symlink; some systems play weird games with the mod time of symlinks
2903# (eg FreeBSD returns the mod time of the symlink's containing
2904# directory).
2905if (
2906   am_has_slept=no
2907   for am_try in 1 2; do
2908     echo "timestamp, slept: $am_has_slept" > conftest.file
2909     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2910     if test "$*" = "X"; then
2911	# -L didn't work.
2912	set X `ls -t "$srcdir/configure" conftest.file`
2913     fi
2914     if test "$*" != "X $srcdir/configure conftest.file" \
2915	&& test "$*" != "X conftest.file $srcdir/configure"; then
2916
2917	# If neither matched, then we have a broken ls.  This can happen
2918	# if, for instance, CONFIG_SHELL is bash and it inherits a
2919	# broken ls alias from the environment.  This has actually
2920	# happened.  Such a system could not be considered "sane".
2921	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2922  alias in your environment" "$LINENO" 5
2923     fi
2924     if test "$2" = conftest.file || test $am_try -eq 2; then
2925       break
2926     fi
2927     # Just in case.
2928     sleep 1
2929     am_has_slept=yes
2930   done
2931   test "$2" = conftest.file
2932   )
2933then
2934   # Ok.
2935   :
2936else
2937   as_fn_error $? "newly created file is older than distributed files!
2938Check your system clock" "$LINENO" 5
2939fi
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2941$as_echo "yes" >&6; }
2942# If we didn't sleep, we still need to ensure time stamps of config.status and
2943# generated files are strictly newer.
2944am_sleep_pid=
2945if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2946  ( sleep 1 ) &
2947  am_sleep_pid=$!
2948fi
2949
2950rm -f conftest.file
2951
2952test "$program_prefix" != NONE &&
2953  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2954# Use a double $ so make ignores it.
2955test "$program_suffix" != NONE &&
2956  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2957# Double any \ or $.
2958# By default was `s,x,x', remove it if useless.
2959ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2960program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2961
2962# expand $ac_aux_dir to an absolute path
2963am_aux_dir=`cd $ac_aux_dir && pwd`
2964
2965if test x"${MISSING+set}" != xset; then
2966  case $am_aux_dir in
2967  *\ * | *\	*)
2968    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2969  *)
2970    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2971  esac
2972fi
2973# Use eval to expand $SHELL
2974if eval "$MISSING --run true"; then
2975  am_missing_run="$MISSING --run "
2976else
2977  am_missing_run=
2978  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2979$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2980fi
2981
2982if test x"${install_sh}" != xset; then
2983  case $am_aux_dir in
2984  *\ * | *\	*)
2985    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2986  *)
2987    install_sh="\${SHELL} $am_aux_dir/install-sh"
2988  esac
2989fi
2990
2991# Installed binaries are usually stripped using 'strip' when the user
2992# run "make install-strip".  However 'strip' might not be the right
2993# tool to use in cross-compilation environments, therefore Automake
2994# will honor the 'STRIP' environment variable to overrule this program.
2995if test "$cross_compiling" != no; then
2996  if test -n "$ac_tool_prefix"; then
2997  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2998set dummy ${ac_tool_prefix}strip; ac_word=$2
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000$as_echo_n "checking for $ac_word... " >&6; }
3001if ${ac_cv_prog_STRIP+:} false; then :
3002  $as_echo_n "(cached) " >&6
3003else
3004  if test -n "$STRIP"; then
3005  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3006else
3007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008for as_dir in $PATH
3009do
3010  IFS=$as_save_IFS
3011  test -z "$as_dir" && as_dir=.
3012    for ac_exec_ext in '' $ac_executable_extensions; do
3013  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3014    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016    break 2
3017  fi
3018done
3019  done
3020IFS=$as_save_IFS
3021
3022fi
3023fi
3024STRIP=$ac_cv_prog_STRIP
3025if test -n "$STRIP"; then
3026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3027$as_echo "$STRIP" >&6; }
3028else
3029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030$as_echo "no" >&6; }
3031fi
3032
3033
3034fi
3035if test -z "$ac_cv_prog_STRIP"; then
3036  ac_ct_STRIP=$STRIP
3037  # Extract the first word of "strip", so it can be a program name with args.
3038set dummy strip; ac_word=$2
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040$as_echo_n "checking for $ac_word... " >&6; }
3041if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3042  $as_echo_n "(cached) " >&6
3043else
3044  if test -n "$ac_ct_STRIP"; then
3045  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3046else
3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050  IFS=$as_save_IFS
3051  test -z "$as_dir" && as_dir=.
3052    for ac_exec_ext in '' $ac_executable_extensions; do
3053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054    ac_cv_prog_ac_ct_STRIP="strip"
3055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056    break 2
3057  fi
3058done
3059  done
3060IFS=$as_save_IFS
3061
3062fi
3063fi
3064ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3065if test -n "$ac_ct_STRIP"; then
3066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3067$as_echo "$ac_ct_STRIP" >&6; }
3068else
3069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070$as_echo "no" >&6; }
3071fi
3072
3073  if test "x$ac_ct_STRIP" = x; then
3074    STRIP=":"
3075  else
3076    case $cross_compiling:$ac_tool_warned in
3077yes:)
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3080ac_tool_warned=yes ;;
3081esac
3082    STRIP=$ac_ct_STRIP
3083  fi
3084else
3085  STRIP="$ac_cv_prog_STRIP"
3086fi
3087
3088fi
3089INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3090
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3092$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3093if test -z "$MKDIR_P"; then
3094  if ${ac_cv_path_mkdir+:} false; then :
3095  $as_echo_n "(cached) " >&6
3096else
3097  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3099do
3100  IFS=$as_save_IFS
3101  test -z "$as_dir" && as_dir=.
3102    for ac_prog in mkdir gmkdir; do
3103	 for ac_exec_ext in '' $ac_executable_extensions; do
3104	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3105	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3106	     'mkdir (GNU coreutils) '* | \
3107	     'mkdir (coreutils) '* | \
3108	     'mkdir (fileutils) '4.1*)
3109	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3110	       break 3;;
3111	   esac
3112	 done
3113       done
3114  done
3115IFS=$as_save_IFS
3116
3117fi
3118
3119  test -d ./--version && rmdir ./--version
3120  if test "${ac_cv_path_mkdir+set}" = set; then
3121    MKDIR_P="$ac_cv_path_mkdir -p"
3122  else
3123    # As a last resort, use the slow shell script.  Don't cache a
3124    # value for MKDIR_P within a source directory, because that will
3125    # break other packages using the cache if that directory is
3126    # removed, or if the value is a relative name.
3127    MKDIR_P="$ac_install_sh -d"
3128  fi
3129fi
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3131$as_echo "$MKDIR_P" >&6; }
3132
3133for ac_prog in gawk mawk nawk awk
3134do
3135  # Extract the first word of "$ac_prog", so it can be a program name with args.
3136set dummy $ac_prog; ac_word=$2
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138$as_echo_n "checking for $ac_word... " >&6; }
3139if ${ac_cv_prog_AWK+:} false; then :
3140  $as_echo_n "(cached) " >&6
3141else
3142  if test -n "$AWK"; then
3143  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3144else
3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146for as_dir in $PATH
3147do
3148  IFS=$as_save_IFS
3149  test -z "$as_dir" && as_dir=.
3150    for ac_exec_ext in '' $ac_executable_extensions; do
3151  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152    ac_cv_prog_AWK="$ac_prog"
3153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154    break 2
3155  fi
3156done
3157  done
3158IFS=$as_save_IFS
3159
3160fi
3161fi
3162AWK=$ac_cv_prog_AWK
3163if test -n "$AWK"; then
3164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3165$as_echo "$AWK" >&6; }
3166else
3167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168$as_echo "no" >&6; }
3169fi
3170
3171
3172  test -n "$AWK" && break
3173done
3174
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3176$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3177set x ${MAKE-make}
3178ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3179if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3180  $as_echo_n "(cached) " >&6
3181else
3182  cat >conftest.make <<\_ACEOF
3183SHELL = /bin/sh
3184all:
3185	@echo '@@@%%%=$(MAKE)=@@@%%%'
3186_ACEOF
3187# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3188case `${MAKE-make} -f conftest.make 2>/dev/null` in
3189  *@@@%%%=?*=@@@%%%*)
3190    eval ac_cv_prog_make_${ac_make}_set=yes;;
3191  *)
3192    eval ac_cv_prog_make_${ac_make}_set=no;;
3193esac
3194rm -f conftest.make
3195fi
3196if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3198$as_echo "yes" >&6; }
3199  SET_MAKE=
3200else
3201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202$as_echo "no" >&6; }
3203  SET_MAKE="MAKE=${MAKE-make}"
3204fi
3205
3206rm -rf .tst 2>/dev/null
3207mkdir .tst 2>/dev/null
3208if test -d .tst; then
3209  am__leading_dot=.
3210else
3211  am__leading_dot=_
3212fi
3213rmdir .tst 2>/dev/null
3214
3215if test "`cd $srcdir && pwd`" != "`pwd`"; then
3216  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3217  # is not polluted with repeated "-I."
3218  am__isrc=' -I$(srcdir)'
3219  # test to see if srcdir already configured
3220  if test -f $srcdir/config.status; then
3221    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3222  fi
3223fi
3224
3225# test whether we have cygpath
3226if test -z "$CYGPATH_W"; then
3227  if (cygpath --version) >/dev/null 2>/dev/null; then
3228    CYGPATH_W='cygpath -w'
3229  else
3230    CYGPATH_W=echo
3231  fi
3232fi
3233
3234
3235# Define the identity of the package.
3236
3237 PACKAGE=netatalk
3238 VERSION=${NETATALK_VERSION}
3239
3240
3241cat >>confdefs.h <<_ACEOF
3242#define PACKAGE "$PACKAGE"
3243_ACEOF
3244
3245
3246cat >>confdefs.h <<_ACEOF
3247#define VERSION "$VERSION"
3248_ACEOF
3249
3250# Some tools Automake needs.
3251
3252ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3253
3254
3255AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3256
3257
3258AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3259
3260
3261AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3262
3263
3264MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3265
3266# For better backward compatibility.  To be removed once Automake 1.9.x
3267# dies out for good.  For more background, see:
3268# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3269# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3270mkdir_p='$(MKDIR_P)'
3271
3272# We need awk for the "check" target.  The system "awk" is bad on
3273# some platforms.
3274# Always define AMTAR for backward compatibility.  Yes, it's still used
3275# in the wild :-(  We should find a proper way to deprecate it ...
3276AMTAR='$${TAR-tar}'
3277
3278am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3279
3280
3281
3282
3283
3284ac_config_headers="$ac_config_headers config.h"
3285
3286
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3288$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3289    # Check whether --enable-maintainer-mode was given.
3290if test "${enable_maintainer_mode+set}" = set; then :
3291  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3292else
3293  USE_MAINTAINER_MODE=yes
3294fi
3295
3296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3297$as_echo "$USE_MAINTAINER_MODE" >&6; }
3298   if test $USE_MAINTAINER_MODE = yes; then
3299  MAINTAINER_MODE_TRUE=
3300  MAINTAINER_MODE_FALSE='#'
3301else
3302  MAINTAINER_MODE_TRUE='#'
3303  MAINTAINER_MODE_FALSE=
3304fi
3305
3306  MAINT=$MAINTAINER_MODE_TRUE
3307
3308
3309
3310for ac_prog in gawk mawk nawk awk
3311do
3312  # Extract the first word of "$ac_prog", so it can be a program name with args.
3313set dummy $ac_prog; ac_word=$2
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315$as_echo_n "checking for $ac_word... " >&6; }
3316if ${ac_cv_prog_AWK+:} false; then :
3317  $as_echo_n "(cached) " >&6
3318else
3319  if test -n "$AWK"; then
3320  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3321else
3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH
3324do
3325  IFS=$as_save_IFS
3326  test -z "$as_dir" && as_dir=.
3327    for ac_exec_ext in '' $ac_executable_extensions; do
3328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329    ac_cv_prog_AWK="$ac_prog"
3330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331    break 2
3332  fi
3333done
3334  done
3335IFS=$as_save_IFS
3336
3337fi
3338fi
3339AWK=$ac_cv_prog_AWK
3340if test -n "$AWK"; then
3341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3342$as_echo "$AWK" >&6; }
3343else
3344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345$as_echo "no" >&6; }
3346fi
3347
3348
3349  test -n "$AWK" && break
3350done
3351
3352ac_ext=c
3353ac_cpp='$CPP $CPPFLAGS'
3354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357if test -n "$ac_tool_prefix"; then
3358  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3359set dummy ${ac_tool_prefix}gcc; ac_word=$2
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361$as_echo_n "checking for $ac_word... " >&6; }
3362if ${ac_cv_prog_CC+:} false; then :
3363  $as_echo_n "(cached) " >&6
3364else
3365  if test -n "$CC"; then
3366  ac_cv_prog_CC="$CC" # Let the user override the test.
3367else
3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369for as_dir in $PATH
3370do
3371  IFS=$as_save_IFS
3372  test -z "$as_dir" && as_dir=.
3373    for ac_exec_ext in '' $ac_executable_extensions; do
3374  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377    break 2
3378  fi
3379done
3380  done
3381IFS=$as_save_IFS
3382
3383fi
3384fi
3385CC=$ac_cv_prog_CC
3386if test -n "$CC"; then
3387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3388$as_echo "$CC" >&6; }
3389else
3390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391$as_echo "no" >&6; }
3392fi
3393
3394
3395fi
3396if test -z "$ac_cv_prog_CC"; then
3397  ac_ct_CC=$CC
3398  # Extract the first word of "gcc", so it can be a program name with args.
3399set dummy gcc; ac_word=$2
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401$as_echo_n "checking for $ac_word... " >&6; }
3402if ${ac_cv_prog_ac_ct_CC+:} false; then :
3403  $as_echo_n "(cached) " >&6
3404else
3405  if test -n "$ac_ct_CC"; then
3406  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3407else
3408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409for as_dir in $PATH
3410do
3411  IFS=$as_save_IFS
3412  test -z "$as_dir" && as_dir=.
3413    for ac_exec_ext in '' $ac_executable_extensions; do
3414  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415    ac_cv_prog_ac_ct_CC="gcc"
3416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417    break 2
3418  fi
3419done
3420  done
3421IFS=$as_save_IFS
3422
3423fi
3424fi
3425ac_ct_CC=$ac_cv_prog_ac_ct_CC
3426if test -n "$ac_ct_CC"; then
3427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3428$as_echo "$ac_ct_CC" >&6; }
3429else
3430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431$as_echo "no" >&6; }
3432fi
3433
3434  if test "x$ac_ct_CC" = x; then
3435    CC=""
3436  else
3437    case $cross_compiling:$ac_tool_warned in
3438yes:)
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3441ac_tool_warned=yes ;;
3442esac
3443    CC=$ac_ct_CC
3444  fi
3445else
3446  CC="$ac_cv_prog_CC"
3447fi
3448
3449if test -z "$CC"; then
3450          if test -n "$ac_tool_prefix"; then
3451    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3452set dummy ${ac_tool_prefix}cc; ac_word=$2
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454$as_echo_n "checking for $ac_word... " >&6; }
3455if ${ac_cv_prog_CC+:} false; then :
3456  $as_echo_n "(cached) " >&6
3457else
3458  if test -n "$CC"; then
3459  ac_cv_prog_CC="$CC" # Let the user override the test.
3460else
3461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462for as_dir in $PATH
3463do
3464  IFS=$as_save_IFS
3465  test -z "$as_dir" && as_dir=.
3466    for ac_exec_ext in '' $ac_executable_extensions; do
3467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468    ac_cv_prog_CC="${ac_tool_prefix}cc"
3469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470    break 2
3471  fi
3472done
3473  done
3474IFS=$as_save_IFS
3475
3476fi
3477fi
3478CC=$ac_cv_prog_CC
3479if test -n "$CC"; then
3480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481$as_echo "$CC" >&6; }
3482else
3483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484$as_echo "no" >&6; }
3485fi
3486
3487
3488  fi
3489fi
3490if test -z "$CC"; then
3491  # Extract the first word of "cc", so it can be a program name with args.
3492set dummy cc; ac_word=$2
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494$as_echo_n "checking for $ac_word... " >&6; }
3495if ${ac_cv_prog_CC+:} false; then :
3496  $as_echo_n "(cached) " >&6
3497else
3498  if test -n "$CC"; then
3499  ac_cv_prog_CC="$CC" # Let the user override the test.
3500else
3501  ac_prog_rejected=no
3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503for as_dir in $PATH
3504do
3505  IFS=$as_save_IFS
3506  test -z "$as_dir" && as_dir=.
3507    for ac_exec_ext in '' $ac_executable_extensions; do
3508  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3509    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3510       ac_prog_rejected=yes
3511       continue
3512     fi
3513    ac_cv_prog_CC="cc"
3514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515    break 2
3516  fi
3517done
3518  done
3519IFS=$as_save_IFS
3520
3521if test $ac_prog_rejected = yes; then
3522  # We found a bogon in the path, so make sure we never use it.
3523  set dummy $ac_cv_prog_CC
3524  shift
3525  if test $# != 0; then
3526    # We chose a different compiler from the bogus one.
3527    # However, it has the same basename, so the bogon will be chosen
3528    # first if we set CC to just the basename; use the full file name.
3529    shift
3530    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3531  fi
3532fi
3533fi
3534fi
3535CC=$ac_cv_prog_CC
3536if test -n "$CC"; then
3537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538$as_echo "$CC" >&6; }
3539else
3540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541$as_echo "no" >&6; }
3542fi
3543
3544
3545fi
3546if test -z "$CC"; then
3547  if test -n "$ac_tool_prefix"; then
3548  for ac_prog in cl.exe
3549  do
3550    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3551set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553$as_echo_n "checking for $ac_word... " >&6; }
3554if ${ac_cv_prog_CC+:} false; then :
3555  $as_echo_n "(cached) " >&6
3556else
3557  if test -n "$CC"; then
3558  ac_cv_prog_CC="$CC" # Let the user override the test.
3559else
3560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561for as_dir in $PATH
3562do
3563  IFS=$as_save_IFS
3564  test -z "$as_dir" && as_dir=.
3565    for ac_exec_ext in '' $ac_executable_extensions; do
3566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569    break 2
3570  fi
3571done
3572  done
3573IFS=$as_save_IFS
3574
3575fi
3576fi
3577CC=$ac_cv_prog_CC
3578if test -n "$CC"; then
3579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580$as_echo "$CC" >&6; }
3581else
3582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583$as_echo "no" >&6; }
3584fi
3585
3586
3587    test -n "$CC" && break
3588  done
3589fi
3590if test -z "$CC"; then
3591  ac_ct_CC=$CC
3592  for ac_prog in cl.exe
3593do
3594  # Extract the first word of "$ac_prog", so it can be a program name with args.
3595set dummy $ac_prog; ac_word=$2
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597$as_echo_n "checking for $ac_word... " >&6; }
3598if ${ac_cv_prog_ac_ct_CC+:} false; then :
3599  $as_echo_n "(cached) " >&6
3600else
3601  if test -n "$ac_ct_CC"; then
3602  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3603else
3604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605for as_dir in $PATH
3606do
3607  IFS=$as_save_IFS
3608  test -z "$as_dir" && as_dir=.
3609    for ac_exec_ext in '' $ac_executable_extensions; do
3610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3611    ac_cv_prog_ac_ct_CC="$ac_prog"
3612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613    break 2
3614  fi
3615done
3616  done
3617IFS=$as_save_IFS
3618
3619fi
3620fi
3621ac_ct_CC=$ac_cv_prog_ac_ct_CC
3622if test -n "$ac_ct_CC"; then
3623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3624$as_echo "$ac_ct_CC" >&6; }
3625else
3626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627$as_echo "no" >&6; }
3628fi
3629
3630
3631  test -n "$ac_ct_CC" && break
3632done
3633
3634  if test "x$ac_ct_CC" = x; then
3635    CC=""
3636  else
3637    case $cross_compiling:$ac_tool_warned in
3638yes:)
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3641ac_tool_warned=yes ;;
3642esac
3643    CC=$ac_ct_CC
3644  fi
3645fi
3646
3647fi
3648
3649
3650test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3652as_fn_error $? "no acceptable C compiler found in \$PATH
3653See \`config.log' for more details" "$LINENO" 5; }
3654
3655# Provide some information about the compiler.
3656$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3657set X $ac_compile
3658ac_compiler=$2
3659for ac_option in --version -v -V -qversion; do
3660  { { ac_try="$ac_compiler $ac_option >&5"
3661case "(($ac_try" in
3662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663  *) ac_try_echo=$ac_try;;
3664esac
3665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666$as_echo "$ac_try_echo"; } >&5
3667  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3668  ac_status=$?
3669  if test -s conftest.err; then
3670    sed '10a\
3671... rest of stderr output deleted ...
3672         10q' conftest.err >conftest.er1
3673    cat conftest.er1 >&5
3674  fi
3675  rm -f conftest.er1 conftest.err
3676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677  test $ac_status = 0; }
3678done
3679
3680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681/* end confdefs.h.  */
3682
3683int
3684main ()
3685{
3686
3687  ;
3688  return 0;
3689}
3690_ACEOF
3691ac_clean_files_save=$ac_clean_files
3692ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3693# Try to create an executable without -o first, disregard a.out.
3694# It will help us diagnose broken compilers, and finding out an intuition
3695# of exeext.
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3697$as_echo_n "checking whether the C compiler works... " >&6; }
3698ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3699
3700# The possible output files:
3701ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3702
3703ac_rmfiles=
3704for ac_file in $ac_files
3705do
3706  case $ac_file in
3707    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3708    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3709  esac
3710done
3711rm -f $ac_rmfiles
3712
3713if { { ac_try="$ac_link_default"
3714case "(($ac_try" in
3715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716  *) ac_try_echo=$ac_try;;
3717esac
3718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3719$as_echo "$ac_try_echo"; } >&5
3720  (eval "$ac_link_default") 2>&5
3721  ac_status=$?
3722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3723  test $ac_status = 0; }; then :
3724  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3725# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3726# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3727# so that the user can short-circuit this test for compilers unknown to
3728# Autoconf.
3729for ac_file in $ac_files ''
3730do
3731  test -f "$ac_file" || continue
3732  case $ac_file in
3733    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3734	;;
3735    [ab].out )
3736	# We found the default executable, but exeext='' is most
3737	# certainly right.
3738	break;;
3739    *.* )
3740	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3741	then :; else
3742	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3743	fi
3744	# We set ac_cv_exeext here because the later test for it is not
3745	# safe: cross compilers may not add the suffix if given an `-o'
3746	# argument, so we may need to know it at that point already.
3747	# Even if this section looks crufty: it has the advantage of
3748	# actually working.
3749	break;;
3750    * )
3751	break;;
3752  esac
3753done
3754test "$ac_cv_exeext" = no && ac_cv_exeext=
3755
3756else
3757  ac_file=''
3758fi
3759if test -z "$ac_file"; then :
3760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761$as_echo "no" >&6; }
3762$as_echo "$as_me: failed program was:" >&5
3763sed 's/^/| /' conftest.$ac_ext >&5
3764
3765{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767as_fn_error 77 "C compiler cannot create executables
3768See \`config.log' for more details" "$LINENO" 5; }
3769else
3770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3771$as_echo "yes" >&6; }
3772fi
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3774$as_echo_n "checking for C compiler default output file name... " >&6; }
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3776$as_echo "$ac_file" >&6; }
3777ac_exeext=$ac_cv_exeext
3778
3779rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3780ac_clean_files=$ac_clean_files_save
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3782$as_echo_n "checking for suffix of executables... " >&6; }
3783if { { ac_try="$ac_link"
3784case "(($ac_try" in
3785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786  *) ac_try_echo=$ac_try;;
3787esac
3788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789$as_echo "$ac_try_echo"; } >&5
3790  (eval "$ac_link") 2>&5
3791  ac_status=$?
3792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793  test $ac_status = 0; }; then :
3794  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3795# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3796# work properly (i.e., refer to `conftest.exe'), while it won't with
3797# `rm'.
3798for ac_file in conftest.exe conftest conftest.*; do
3799  test -f "$ac_file" || continue
3800  case $ac_file in
3801    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3802    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3803	  break;;
3804    * ) break;;
3805  esac
3806done
3807else
3808  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3810as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3811See \`config.log' for more details" "$LINENO" 5; }
3812fi
3813rm -f conftest conftest$ac_cv_exeext
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3815$as_echo "$ac_cv_exeext" >&6; }
3816
3817rm -f conftest.$ac_ext
3818EXEEXT=$ac_cv_exeext
3819ac_exeext=$EXEEXT
3820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821/* end confdefs.h.  */
3822#include <stdio.h>
3823int
3824main ()
3825{
3826FILE *f = fopen ("conftest.out", "w");
3827 return ferror (f) || fclose (f) != 0;
3828
3829  ;
3830  return 0;
3831}
3832_ACEOF
3833ac_clean_files="$ac_clean_files conftest.out"
3834# Check that the compiler produces executables we can run.  If not, either
3835# the compiler is broken, or we cross compile.
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3837$as_echo_n "checking whether we are cross compiling... " >&6; }
3838if test "$cross_compiling" != yes; then
3839  { { ac_try="$ac_link"
3840case "(($ac_try" in
3841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842  *) ac_try_echo=$ac_try;;
3843esac
3844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845$as_echo "$ac_try_echo"; } >&5
3846  (eval "$ac_link") 2>&5
3847  ac_status=$?
3848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849  test $ac_status = 0; }
3850  if { ac_try='./conftest$ac_cv_exeext'
3851  { { case "(($ac_try" in
3852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853  *) ac_try_echo=$ac_try;;
3854esac
3855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856$as_echo "$ac_try_echo"; } >&5
3857  (eval "$ac_try") 2>&5
3858  ac_status=$?
3859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860  test $ac_status = 0; }; }; then
3861    cross_compiling=no
3862  else
3863    if test "$cross_compiling" = maybe; then
3864	cross_compiling=yes
3865    else
3866	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868as_fn_error $? "cannot run C compiled programs.
3869If you meant to cross compile, use \`--host'.
3870See \`config.log' for more details" "$LINENO" 5; }
3871    fi
3872  fi
3873fi
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3875$as_echo "$cross_compiling" >&6; }
3876
3877rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3878ac_clean_files=$ac_clean_files_save
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3880$as_echo_n "checking for suffix of object files... " >&6; }
3881if ${ac_cv_objext+:} false; then :
3882  $as_echo_n "(cached) " >&6
3883else
3884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885/* end confdefs.h.  */
3886
3887int
3888main ()
3889{
3890
3891  ;
3892  return 0;
3893}
3894_ACEOF
3895rm -f conftest.o conftest.obj
3896if { { ac_try="$ac_compile"
3897case "(($ac_try" in
3898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899  *) ac_try_echo=$ac_try;;
3900esac
3901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3902$as_echo "$ac_try_echo"; } >&5
3903  (eval "$ac_compile") 2>&5
3904  ac_status=$?
3905  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3906  test $ac_status = 0; }; then :
3907  for ac_file in conftest.o conftest.obj conftest.*; do
3908  test -f "$ac_file" || continue;
3909  case $ac_file in
3910    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3911    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3912       break;;
3913  esac
3914done
3915else
3916  $as_echo "$as_me: failed program was:" >&5
3917sed 's/^/| /' conftest.$ac_ext >&5
3918
3919{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921as_fn_error $? "cannot compute suffix of object files: cannot compile
3922See \`config.log' for more details" "$LINENO" 5; }
3923fi
3924rm -f conftest.$ac_cv_objext conftest.$ac_ext
3925fi
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3927$as_echo "$ac_cv_objext" >&6; }
3928OBJEXT=$ac_cv_objext
3929ac_objext=$OBJEXT
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3931$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3932if ${ac_cv_c_compiler_gnu+:} false; then :
3933  $as_echo_n "(cached) " >&6
3934else
3935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936/* end confdefs.h.  */
3937
3938int
3939main ()
3940{
3941#ifndef __GNUC__
3942       choke me
3943#endif
3944
3945  ;
3946  return 0;
3947}
3948_ACEOF
3949if ac_fn_c_try_compile "$LINENO"; then :
3950  ac_compiler_gnu=yes
3951else
3952  ac_compiler_gnu=no
3953fi
3954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955ac_cv_c_compiler_gnu=$ac_compiler_gnu
3956
3957fi
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3959$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3960if test $ac_compiler_gnu = yes; then
3961  GCC=yes
3962else
3963  GCC=
3964fi
3965ac_test_CFLAGS=${CFLAGS+set}
3966ac_save_CFLAGS=$CFLAGS
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3968$as_echo_n "checking whether $CC accepts -g... " >&6; }
3969if ${ac_cv_prog_cc_g+:} false; then :
3970  $as_echo_n "(cached) " >&6
3971else
3972  ac_save_c_werror_flag=$ac_c_werror_flag
3973   ac_c_werror_flag=yes
3974   ac_cv_prog_cc_g=no
3975   CFLAGS="-g"
3976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977/* end confdefs.h.  */
3978
3979int
3980main ()
3981{
3982
3983  ;
3984  return 0;
3985}
3986_ACEOF
3987if ac_fn_c_try_compile "$LINENO"; then :
3988  ac_cv_prog_cc_g=yes
3989else
3990  CFLAGS=""
3991      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992/* end confdefs.h.  */
3993
3994int
3995main ()
3996{
3997
3998  ;
3999  return 0;
4000}
4001_ACEOF
4002if ac_fn_c_try_compile "$LINENO"; then :
4003
4004else
4005  ac_c_werror_flag=$ac_save_c_werror_flag
4006	 CFLAGS="-g"
4007	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008/* end confdefs.h.  */
4009
4010int
4011main ()
4012{
4013
4014  ;
4015  return 0;
4016}
4017_ACEOF
4018if ac_fn_c_try_compile "$LINENO"; then :
4019  ac_cv_prog_cc_g=yes
4020fi
4021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022fi
4023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024fi
4025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026   ac_c_werror_flag=$ac_save_c_werror_flag
4027fi
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4029$as_echo "$ac_cv_prog_cc_g" >&6; }
4030if test "$ac_test_CFLAGS" = set; then
4031  CFLAGS=$ac_save_CFLAGS
4032elif test $ac_cv_prog_cc_g = yes; then
4033  if test "$GCC" = yes; then
4034    CFLAGS="-g -O2"
4035  else
4036    CFLAGS="-g"
4037  fi
4038else
4039  if test "$GCC" = yes; then
4040    CFLAGS="-O2"
4041  else
4042    CFLAGS=
4043  fi
4044fi
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4046$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4047if ${ac_cv_prog_cc_c89+:} false; then :
4048  $as_echo_n "(cached) " >&6
4049else
4050  ac_cv_prog_cc_c89=no
4051ac_save_CC=$CC
4052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053/* end confdefs.h.  */
4054#include <stdarg.h>
4055#include <stdio.h>
4056struct stat;
4057/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4058struct buf { int x; };
4059FILE * (*rcsopen) (struct buf *, struct stat *, int);
4060static char *e (p, i)
4061     char **p;
4062     int i;
4063{
4064  return p[i];
4065}
4066static char *f (char * (*g) (char **, int), char **p, ...)
4067{
4068  char *s;
4069  va_list v;
4070  va_start (v,p);
4071  s = g (p, va_arg (v,int));
4072  va_end (v);
4073  return s;
4074}
4075
4076/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4077   function prototypes and stuff, but not '\xHH' hex character constants.
4078   These don't provoke an error unfortunately, instead are silently treated
4079   as 'x'.  The following induces an error, until -std is added to get
4080   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4081   array size at least.  It's necessary to write '\x00'==0 to get something
4082   that's true only with -std.  */
4083int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4084
4085/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4086   inside strings and character constants.  */
4087#define FOO(x) 'x'
4088int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4089
4090int test (int i, double x);
4091struct s1 {int (*f) (int a);};
4092struct s2 {int (*f) (double a);};
4093int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4094int argc;
4095char **argv;
4096int
4097main ()
4098{
4099return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4100  ;
4101  return 0;
4102}
4103_ACEOF
4104for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4105	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4106do
4107  CC="$ac_save_CC $ac_arg"
4108  if ac_fn_c_try_compile "$LINENO"; then :
4109  ac_cv_prog_cc_c89=$ac_arg
4110fi
4111rm -f core conftest.err conftest.$ac_objext
4112  test "x$ac_cv_prog_cc_c89" != "xno" && break
4113done
4114rm -f conftest.$ac_ext
4115CC=$ac_save_CC
4116
4117fi
4118# AC_CACHE_VAL
4119case "x$ac_cv_prog_cc_c89" in
4120  x)
4121    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4122$as_echo "none needed" >&6; } ;;
4123  xno)
4124    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4125$as_echo "unsupported" >&6; } ;;
4126  *)
4127    CC="$CC $ac_cv_prog_cc_c89"
4128    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4129$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4130esac
4131if test "x$ac_cv_prog_cc_c89" != xno; then :
4132
4133fi
4134
4135ac_ext=c
4136ac_cpp='$CPP $CPPFLAGS'
4137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140DEPDIR="${am__leading_dot}deps"
4141
4142ac_config_commands="$ac_config_commands depfiles"
4143
4144
4145am_make=${MAKE-make}
4146cat > confinc << 'END'
4147am__doit:
4148	@echo this is the am__doit target
4149.PHONY: am__doit
4150END
4151# If we don't find an include directive, just comment out the code.
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4153$as_echo_n "checking for style of include used by $am_make... " >&6; }
4154am__include="#"
4155am__quote=
4156_am_result=none
4157# First try GNU make style include.
4158echo "include confinc" > confmf
4159# Ignore all kinds of additional output from 'make'.
4160case `$am_make -s -f confmf 2> /dev/null` in #(
4161*the\ am__doit\ target*)
4162  am__include=include
4163  am__quote=
4164  _am_result=GNU
4165  ;;
4166esac
4167# Now try BSD make style include.
4168if test "$am__include" = "#"; then
4169   echo '.include "confinc"' > confmf
4170   case `$am_make -s -f confmf 2> /dev/null` in #(
4171   *the\ am__doit\ target*)
4172     am__include=.include
4173     am__quote="\""
4174     _am_result=BSD
4175     ;;
4176   esac
4177fi
4178
4179
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4181$as_echo "$_am_result" >&6; }
4182rm -f confinc confmf
4183
4184# Check whether --enable-dependency-tracking was given.
4185if test "${enable_dependency_tracking+set}" = set; then :
4186  enableval=$enable_dependency_tracking;
4187fi
4188
4189if test "x$enable_dependency_tracking" != xno; then
4190  am_depcomp="$ac_aux_dir/depcomp"
4191  AMDEPBACKSLASH='\'
4192  am__nodep='_no'
4193fi
4194 if test "x$enable_dependency_tracking" != xno; then
4195  AMDEP_TRUE=
4196  AMDEP_FALSE='#'
4197else
4198  AMDEP_TRUE='#'
4199  AMDEP_FALSE=
4200fi
4201
4202# Added by Edison - 20130923
4203# Check whether --with-ld-library-path was given.
4204if test "${with_ld_library_path+set}" = set; then :
4205  shlibpath_tmp=$with_ld_library_path
4206else
4207  shlibpath_tmp=""
4208fi
4209
4210depcc="$CC"   am_compiler_list=
4211
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4213$as_echo_n "checking dependency style of $depcc... " >&6; }
4214if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4215  $as_echo_n "(cached) " >&6
4216else
4217  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4218  # We make a subdir and do the tests there.  Otherwise we can end up
4219  # making bogus files that we don't know about and never remove.  For
4220  # instance it was reported that on HP-UX the gcc test will end up
4221  # making a dummy file named 'D' -- because '-MD' means "put the output
4222  # in D".
4223  rm -rf conftest.dir
4224  mkdir conftest.dir
4225  # Copy depcomp to subdir because otherwise we won't find it if we're
4226  # using a relative directory.
4227  cp "$am_depcomp" conftest.dir
4228  cd conftest.dir
4229  # We will build objects and dependencies in a subdirectory because
4230  # it helps to detect inapplicable dependency modes.  For instance
4231  # both Tru64's cc and ICC support -MD to output dependencies as a
4232  # side effect of compilation, but ICC will put the dependencies in
4233  # the current directory while Tru64 will put them in the object
4234  # directory.
4235  mkdir sub
4236
4237  am_cv_CC_dependencies_compiler_type=none
4238  if test "$am_compiler_list" = ""; then
4239     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4240  fi
4241  am__universal=false
4242  case " $depcc " in #(
4243     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4244     esac
4245
4246  for depmode in $am_compiler_list; do
4247    # Setup a source with many dependencies, because some compilers
4248    # like to wrap large dependency lists on column 80 (with \), and
4249    # we should not choose a depcomp mode which is confused by this.
4250    #
4251    # We need to recreate these files for each test, as the compiler may
4252    # overwrite some of them when testing with obscure command lines.
4253    # This happens at least with the AIX C compiler.
4254    : > sub/conftest.c
4255    for i in 1 2 3 4 5 6; do
4256      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4257      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4258      # Solaris 10 /bin/sh.
4259      echo '/* dummy */' > sub/conftst$i.h
4260    done
4261    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4262
4263    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4264    # mode.  It turns out that the SunPro C++ compiler does not properly
4265    # handle '-M -o', and we need to detect this.  Also, some Intel
4266    # versions had trouble with output in subdirs.
4267    am__obj=sub/conftest.${OBJEXT-o}
4268    am__minus_obj="-o $am__obj"
4269    case $depmode in
4270    gcc)
4271      # This depmode causes a compiler race in universal mode.
4272      test "$am__universal" = false || continue
4273      ;;
4274    nosideeffect)
4275      # After this tag, mechanisms are not by side-effect, so they'll
4276      # only be used when explicitly requested.
4277      if test "x$enable_dependency_tracking" = xyes; then
4278	continue
4279      else
4280	break
4281      fi
4282      ;;
4283    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4284      # This compiler won't grok '-c -o', but also, the minuso test has
4285      # not run yet.  These depmodes are late enough in the game, and
4286      # so weak that their functioning should not be impacted.
4287      am__obj=conftest.${OBJEXT-o}
4288      am__minus_obj=
4289      ;;
4290    none) break ;;
4291    esac
4292    if depmode=$depmode \
4293       source=sub/conftest.c object=$am__obj \
4294       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4295       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4296         >/dev/null 2>conftest.err &&
4297       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4298       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4299       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4300       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4301      # icc doesn't choke on unknown options, it will just issue warnings
4302      # or remarks (even with -Werror).  So we grep stderr for any message
4303      # that says an option was ignored or not supported.
4304      # When given -MP, icc 7.0 and 7.1 complain thusly:
4305      #   icc: Command line warning: ignoring option '-M'; no argument required
4306      # The diagnosis changed in icc 8.0:
4307      #   icc: Command line remark: option '-MP' not supported
4308      if (grep 'ignoring option' conftest.err ||
4309          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4310        am_cv_CC_dependencies_compiler_type=$depmode
4311        break
4312      fi
4313    fi
4314  done
4315
4316  cd ..
4317  rm -rf conftest.dir
4318else
4319  am_cv_CC_dependencies_compiler_type=none
4320fi
4321
4322fi
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4324$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4325CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4326
4327 if
4328  test "x$enable_dependency_tracking" != xno \
4329  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4330  am__fastdepCC_TRUE=
4331  am__fastdepCC_FALSE='#'
4332else
4333  am__fastdepCC_TRUE='#'
4334  am__fastdepCC_FALSE=
4335fi
4336
4337
4338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4339$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4340if ${ac_cv_prog_cc_c99+:} false; then :
4341  $as_echo_n "(cached) " >&6
4342else
4343  ac_cv_prog_cc_c99=no
4344ac_save_CC=$CC
4345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346/* end confdefs.h.  */
4347#include <stdarg.h>
4348#include <stdbool.h>
4349#include <stdlib.h>
4350#include <wchar.h>
4351#include <stdio.h>
4352
4353// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4354#define debug(...) fprintf (stderr, __VA_ARGS__)
4355#define showlist(...) puts (#__VA_ARGS__)
4356#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4357static void
4358test_varargs_macros (void)
4359{
4360  int x = 1234;
4361  int y = 5678;
4362  debug ("Flag");
4363  debug ("X = %d\n", x);
4364  showlist (The first, second, and third items.);
4365  report (x>y, "x is %d but y is %d", x, y);
4366}
4367
4368// Check long long types.
4369#define BIG64 18446744073709551615ull
4370#define BIG32 4294967295ul
4371#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4372#if !BIG_OK
4373  your preprocessor is broken;
4374#endif
4375#if BIG_OK
4376#else
4377  your preprocessor is broken;
4378#endif
4379static long long int bignum = -9223372036854775807LL;
4380static unsigned long long int ubignum = BIG64;
4381
4382struct incomplete_array
4383{
4384  int datasize;
4385  double data[];
4386};
4387
4388struct named_init {
4389  int number;
4390  const wchar_t *name;
4391  double average;
4392};
4393
4394typedef const char *ccp;
4395
4396static inline int
4397test_restrict (ccp restrict text)
4398{
4399  // See if C++-style comments work.
4400  // Iterate through items via the restricted pointer.
4401  // Also check for declarations in for loops.
4402  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4403    continue;
4404  return 0;
4405}
4406
4407// Check varargs and va_copy.
4408static void
4409test_varargs (const char *format, ...)
4410{
4411  va_list args;
4412  va_start (args, format);
4413  va_list args_copy;
4414  va_copy (args_copy, args);
4415
4416  const char *str;
4417  int number;
4418  float fnumber;
4419
4420  while (*format)
4421    {
4422      switch (*format++)
4423	{
4424	case 's': // string
4425	  str = va_arg (args_copy, const char *);
4426	  break;
4427	case 'd': // int
4428	  number = va_arg (args_copy, int);
4429	  break;
4430	case 'f': // float
4431	  fnumber = va_arg (args_copy, double);
4432	  break;
4433	default:
4434	  break;
4435	}
4436    }
4437  va_end (args_copy);
4438  va_end (args);
4439}
4440
4441int
4442main ()
4443{
4444
4445  // Check bool.
4446  _Bool success = false;
4447
4448  // Check restrict.
4449  if (test_restrict ("String literal") == 0)
4450    success = true;
4451  char *restrict newvar = "Another string";
4452
4453  // Check varargs.
4454  test_varargs ("s, d' f .", "string", 65, 34.234);
4455  test_varargs_macros ();
4456
4457  // Check flexible array members.
4458  struct incomplete_array *ia =
4459    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4460  ia->datasize = 10;
4461  for (int i = 0; i < ia->datasize; ++i)
4462    ia->data[i] = i * 1.234;
4463
4464  // Check named initializers.
4465  struct named_init ni = {
4466    .number = 34,
4467    .name = L"Test wide string",
4468    .average = 543.34343,
4469  };
4470
4471  ni.number = 58;
4472
4473  int dynamic_array[ni.number];
4474  dynamic_array[ni.number - 1] = 543;
4475
4476  // work around unused variable warnings
4477  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4478	  || dynamic_array[ni.number - 1] != 543);
4479
4480  ;
4481  return 0;
4482}
4483_ACEOF
4484for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4485do
4486  CC="$ac_save_CC $ac_arg"
4487  if ac_fn_c_try_compile "$LINENO"; then :
4488  ac_cv_prog_cc_c99=$ac_arg
4489fi
4490rm -f core conftest.err conftest.$ac_objext
4491  test "x$ac_cv_prog_cc_c99" != "xno" && break
4492done
4493rm -f conftest.$ac_ext
4494CC=$ac_save_CC
4495
4496fi
4497# AC_CACHE_VAL
4498case "x$ac_cv_prog_cc_c99" in
4499  x)
4500    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4501$as_echo "none needed" >&6; } ;;
4502  xno)
4503    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4504$as_echo "unsupported" >&6; } ;;
4505  *)
4506    CC="$CC $ac_cv_prog_cc_c99"
4507    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4508$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4509esac
4510if test "x$ac_cv_prog_cc_c99" != xno; then :
4511
4512fi
4513
4514
4515
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4517$as_echo_n "checking whether ln -s works... " >&6; }
4518LN_S=$as_ln_s
4519if test "$LN_S" = "ln -s"; then
4520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4521$as_echo "yes" >&6; }
4522else
4523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4524$as_echo "no, using $LN_S" >&6; }
4525fi
4526
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4528$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4529set x ${MAKE-make}
4530ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4531if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4532  $as_echo_n "(cached) " >&6
4533else
4534  cat >conftest.make <<\_ACEOF
4535SHELL = /bin/sh
4536all:
4537	@echo '@@@%%%=$(MAKE)=@@@%%%'
4538_ACEOF
4539# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4540case `${MAKE-make} -f conftest.make 2>/dev/null` in
4541  *@@@%%%=?*=@@@%%%*)
4542    eval ac_cv_prog_make_${ac_make}_set=yes;;
4543  *)
4544    eval ac_cv_prog_make_${ac_make}_set=no;;
4545esac
4546rm -f conftest.make
4547fi
4548if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4550$as_echo "yes" >&6; }
4551  SET_MAKE=
4552else
4553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554$as_echo "no" >&6; }
4555  SET_MAKE="MAKE=${MAKE-make}"
4556fi
4557
4558enable_dlopen=yes
4559
4560
4561
4562case `pwd` in
4563  *\ * | *\	*)
4564    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4565$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4566esac
4567
4568
4569
4570macro_version='2.4'
4571macro_revision='1.3293'
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585ltmain="$ac_aux_dir/ltmain.sh"
4586
4587# Backslashify metacharacters that are still active within
4588# double-quoted strings.
4589sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4590
4591# Same as above, but do not quote variable references.
4592double_quote_subst='s/\(["`\\]\)/\\\1/g'
4593
4594# Sed substitution to delay expansion of an escaped shell variable in a
4595# double_quote_subst'ed string.
4596delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4597
4598# Sed substitution to delay expansion of an escaped single quote.
4599delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4600
4601# Sed substitution to avoid accidental globbing in evaled expressions
4602no_glob_subst='s/\*/\\\*/g'
4603
4604ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4605ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4606ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4607
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4609$as_echo_n "checking how to print strings... " >&6; }
4610# Test print first, because it will be a builtin if present.
4611if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4612   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4613  ECHO='print -r --'
4614elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4615  ECHO='printf %s\n'
4616else
4617  # Use this function as a fallback that always works.
4618  func_fallback_echo ()
4619  {
4620    eval 'cat <<_LTECHO_EOF
4621$1
4622_LTECHO_EOF'
4623  }
4624  ECHO='func_fallback_echo'
4625fi
4626
4627# func_echo_all arg...
4628# Invoke $ECHO with all args, space-separated.
4629func_echo_all ()
4630{
4631    $ECHO ""
4632}
4633
4634case "$ECHO" in
4635  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4636$as_echo "printf" >&6; } ;;
4637  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4638$as_echo "print -r" >&6; } ;;
4639  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4640$as_echo "cat" >&6; } ;;
4641esac
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4657$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4658if ${ac_cv_path_SED+:} false; then :
4659  $as_echo_n "(cached) " >&6
4660else
4661            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4662     for ac_i in 1 2 3 4 5 6 7; do
4663       ac_script="$ac_script$as_nl$ac_script"
4664     done
4665     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4666     { ac_script=; unset ac_script;}
4667     if test -z "$SED"; then
4668  ac_path_SED_found=false
4669  # Loop through the user's path and test for each of PROGNAME-LIST
4670  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673  IFS=$as_save_IFS
4674  test -z "$as_dir" && as_dir=.
4675    for ac_prog in sed gsed; do
4676    for ac_exec_ext in '' $ac_executable_extensions; do
4677      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4678      as_fn_executable_p "$ac_path_SED" || continue
4679# Check for GNU ac_path_SED and select it if it is found.
4680  # Check for GNU $ac_path_SED
4681case `"$ac_path_SED" --version 2>&1` in
4682*GNU*)
4683  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4684*)
4685  ac_count=0
4686  $as_echo_n 0123456789 >"conftest.in"
4687  while :
4688  do
4689    cat "conftest.in" "conftest.in" >"conftest.tmp"
4690    mv "conftest.tmp" "conftest.in"
4691    cp "conftest.in" "conftest.nl"
4692    $as_echo '' >> "conftest.nl"
4693    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4694    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4695    as_fn_arith $ac_count + 1 && ac_count=$as_val
4696    if test $ac_count -gt ${ac_path_SED_max-0}; then
4697      # Best one so far, save it but keep looking for a better one
4698      ac_cv_path_SED="$ac_path_SED"
4699      ac_path_SED_max=$ac_count
4700    fi
4701    # 10*(2^10) chars as input seems more than enough
4702    test $ac_count -gt 10 && break
4703  done
4704  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4705esac
4706
4707      $ac_path_SED_found && break 3
4708    done
4709  done
4710  done
4711IFS=$as_save_IFS
4712  if test -z "$ac_cv_path_SED"; then
4713    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4714  fi
4715else
4716  ac_cv_path_SED=$SED
4717fi
4718
4719fi
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4721$as_echo "$ac_cv_path_SED" >&6; }
4722 SED="$ac_cv_path_SED"
4723  rm -f conftest.sed
4724
4725test -z "$SED" && SED=sed
4726Xsed="$SED -e 1s/^X//"
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740test x$GREP = x && # Extract the first word of "grep$EXEEXT", so it can be a program name with args.
4741set dummy grep$EXEEXT; ac_word=$2
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743$as_echo_n "checking for $ac_word... " >&6; }
4744if ${ac_cv_path_GREP+:} false; then :
4745  $as_echo_n "(cached) " >&6
4746else
4747  case $GREP in
4748  [\\/]* | ?:[\\/]*)
4749  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4750  ;;
4751  *)
4752  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755  IFS=$as_save_IFS
4756  test -z "$as_dir" && as_dir=.
4757    for ac_exec_ext in '' $ac_executable_extensions; do
4758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761    break 2
4762  fi
4763done
4764  done
4765IFS=$as_save_IFS
4766
4767  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep$EXEEXT"
4768  ;;
4769esac
4770fi
4771GREP=$ac_cv_path_GREP
4772if test -n "$GREP"; then
4773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
4774$as_echo "$GREP" >&6; }
4775else
4776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777$as_echo "no" >&6; }
4778fi
4779
4780
4781test x$GREP = x && as_fn_error $? "no acceptable grep found in \$PATH" "$LINENO" 5
4782
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4784$as_echo_n "checking for egrep... " >&6; }
4785if ${ac_cv_path_EGREP+:} false; then :
4786  $as_echo_n "(cached) " >&6
4787else
4788  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4789   then ac_cv_path_EGREP="$GREP -E"
4790   else
4791     if test -z "$EGREP"; then
4792  ac_path_EGREP_found=false
4793  # Loop through the user's path and test for each of PROGNAME-LIST
4794  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4796do
4797  IFS=$as_save_IFS
4798  test -z "$as_dir" && as_dir=.
4799    for ac_prog in egrep; do
4800    for ac_exec_ext in '' $ac_executable_extensions; do
4801      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4802      as_fn_executable_p "$ac_path_EGREP" || continue
4803# Check for GNU ac_path_EGREP and select it if it is found.
4804  # Check for GNU $ac_path_EGREP
4805case `"$ac_path_EGREP" --version 2>&1` in
4806*GNU*)
4807  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4808*)
4809  ac_count=0
4810  $as_echo_n 0123456789 >"conftest.in"
4811  while :
4812  do
4813    cat "conftest.in" "conftest.in" >"conftest.tmp"
4814    mv "conftest.tmp" "conftest.in"
4815    cp "conftest.in" "conftest.nl"
4816    $as_echo 'EGREP' >> "conftest.nl"
4817    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4818    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4819    as_fn_arith $ac_count + 1 && ac_count=$as_val
4820    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4821      # Best one so far, save it but keep looking for a better one
4822      ac_cv_path_EGREP="$ac_path_EGREP"
4823      ac_path_EGREP_max=$ac_count
4824    fi
4825    # 10*(2^10) chars as input seems more than enough
4826    test $ac_count -gt 10 && break
4827  done
4828  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4829esac
4830
4831      $ac_path_EGREP_found && break 3
4832    done
4833  done
4834  done
4835IFS=$as_save_IFS
4836  if test -z "$ac_cv_path_EGREP"; then
4837    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4838  fi
4839else
4840  ac_cv_path_EGREP=$EGREP
4841fi
4842
4843   fi
4844fi
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4846$as_echo "$ac_cv_path_EGREP" >&6; }
4847 EGREP="$ac_cv_path_EGREP"
4848
4849
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4851$as_echo_n "checking for fgrep... " >&6; }
4852if ${ac_cv_path_FGREP+:} false; then :
4853  $as_echo_n "(cached) " >&6
4854else
4855  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4856   then ac_cv_path_FGREP="$GREP -F"
4857   else
4858     if test -z "$FGREP"; then
4859  ac_path_FGREP_found=false
4860  # Loop through the user's path and test for each of PROGNAME-LIST
4861  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4863do
4864  IFS=$as_save_IFS
4865  test -z "$as_dir" && as_dir=.
4866    for ac_prog in fgrep; do
4867    for ac_exec_ext in '' $ac_executable_extensions; do
4868      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4869      as_fn_executable_p "$ac_path_FGREP" || continue
4870# Check for GNU ac_path_FGREP and select it if it is found.
4871  # Check for GNU $ac_path_FGREP
4872case `"$ac_path_FGREP" --version 2>&1` in
4873*GNU*)
4874  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4875*)
4876  ac_count=0
4877  $as_echo_n 0123456789 >"conftest.in"
4878  while :
4879  do
4880    cat "conftest.in" "conftest.in" >"conftest.tmp"
4881    mv "conftest.tmp" "conftest.in"
4882    cp "conftest.in" "conftest.nl"
4883    $as_echo 'FGREP' >> "conftest.nl"
4884    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4885    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4886    as_fn_arith $ac_count + 1 && ac_count=$as_val
4887    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4888      # Best one so far, save it but keep looking for a better one
4889      ac_cv_path_FGREP="$ac_path_FGREP"
4890      ac_path_FGREP_max=$ac_count
4891    fi
4892    # 10*(2^10) chars as input seems more than enough
4893    test $ac_count -gt 10 && break
4894  done
4895  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4896esac
4897
4898      $ac_path_FGREP_found && break 3
4899    done
4900  done
4901  done
4902IFS=$as_save_IFS
4903  if test -z "$ac_cv_path_FGREP"; then
4904    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4905  fi
4906else
4907  ac_cv_path_FGREP=$FGREP
4908fi
4909
4910   fi
4911fi
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4913$as_echo "$ac_cv_path_FGREP" >&6; }
4914 FGREP="$ac_cv_path_FGREP"
4915
4916
4917test -z "$GREP" && GREP=grep
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937# Check whether --with-gnu-ld was given.
4938if test "${with_gnu_ld+set}" = set; then :
4939  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4940else
4941  with_gnu_ld=no
4942fi
4943
4944ac_prog=ld
4945if test "$GCC" = yes; then
4946  # Check if gcc -print-prog-name=ld gives a path.
4947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4948$as_echo_n "checking for ld used by $CC... " >&6; }
4949  case $host in
4950  *-*-mingw*)
4951    # gcc leaves a trailing carriage return which upsets mingw
4952    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4953  *)
4954    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4955  esac
4956  case $ac_prog in
4957    # Accept absolute paths.
4958    [\\/]* | ?:[\\/]*)
4959      re_direlt='/[^/][^/]*/\.\./'
4960      # Canonicalize the pathname of ld
4961      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4962      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4963	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4964      done
4965      test -z "$LD" && LD="$ac_prog"
4966      ;;
4967  "")
4968    # If it fails, then pretend we aren't using GCC.
4969    ac_prog=ld
4970    ;;
4971  *)
4972    # If it is relative, then search for the first ld in PATH.
4973    with_gnu_ld=unknown
4974    ;;
4975  esac
4976elif test "$with_gnu_ld" = yes; then
4977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4978$as_echo_n "checking for GNU ld... " >&6; }
4979else
4980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4981$as_echo_n "checking for non-GNU ld... " >&6; }
4982fi
4983if ${lt_cv_path_LD+:} false; then :
4984  $as_echo_n "(cached) " >&6
4985else
4986  if test -z "$LD"; then
4987  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4988  for ac_dir in $PATH; do
4989    IFS="$lt_save_ifs"
4990    test -z "$ac_dir" && ac_dir=.
4991    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4992      lt_cv_path_LD="$ac_dir/$ac_prog"
4993      # Check to see if the program is GNU ld.  I'd rather use --version,
4994      # but apparently some variants of GNU ld only accept -v.
4995      # Break only if it was the GNU/non-GNU ld that we prefer.
4996      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4997      *GNU* | *'with BFD'*)
4998	test "$with_gnu_ld" != no && break
4999	;;
5000      *)
5001	test "$with_gnu_ld" != yes && break
5002	;;
5003      esac
5004    fi
5005  done
5006  IFS="$lt_save_ifs"
5007else
5008  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5009fi
5010fi
5011
5012LD="$lt_cv_path_LD"
5013if test -n "$LD"; then
5014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5015$as_echo "$LD" >&6; }
5016else
5017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018$as_echo "no" >&6; }
5019fi
5020test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5022$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5023if ${lt_cv_prog_gnu_ld+:} false; then :
5024  $as_echo_n "(cached) " >&6
5025else
5026  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5027case `$LD -v 2>&1 </dev/null` in
5028*GNU* | *'with BFD'*)
5029  lt_cv_prog_gnu_ld=yes
5030  ;;
5031*)
5032  lt_cv_prog_gnu_ld=no
5033  ;;
5034esac
5035fi
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5037$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5038with_gnu_ld=$lt_cv_prog_gnu_ld
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5049$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5050if ${lt_cv_path_NM+:} false; then :
5051  $as_echo_n "(cached) " >&6
5052else
5053  if test -n "$NM"; then
5054  # Let the user override the test.
5055  lt_cv_path_NM="$NM"
5056else
5057  lt_nm_to_check="${ac_tool_prefix}nm"
5058  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5059    lt_nm_to_check="$lt_nm_to_check nm"
5060  fi
5061  for lt_tmp_nm in $lt_nm_to_check; do
5062    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5063    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5064      IFS="$lt_save_ifs"
5065      test -z "$ac_dir" && ac_dir=.
5066      tmp_nm="$ac_dir/$lt_tmp_nm"
5067      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5068	# Check to see if the nm accepts a BSD-compat flag.
5069	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5070	#   nm: unknown option "B" ignored
5071	# Tru64's nm complains that /dev/null is an invalid object file
5072	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5073	*/dev/null* | *'Invalid file or object type'*)
5074	  lt_cv_path_NM="$tmp_nm -B"
5075	  break
5076	  ;;
5077	*)
5078	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5079	  */dev/null*)
5080	    lt_cv_path_NM="$tmp_nm -p"
5081	    break
5082	    ;;
5083	  *)
5084	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5085	    continue # so that we can try to find one that supports BSD flags
5086	    ;;
5087	  esac
5088	  ;;
5089	esac
5090      fi
5091    done
5092    IFS="$lt_save_ifs"
5093  done
5094  : ${lt_cv_path_NM=no}
5095fi
5096fi
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5098$as_echo "$lt_cv_path_NM" >&6; }
5099if test "$lt_cv_path_NM" != "no"; then
5100  NM="$lt_cv_path_NM"
5101else
5102  # Didn't find any BSD compatible name lister, look for dumpbin.
5103  if test -n "$DUMPBIN"; then :
5104    # Let the user override the test.
5105  else
5106    if test -n "$ac_tool_prefix"; then
5107  for ac_prog in dumpbin "link -dump"
5108  do
5109    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5110set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112$as_echo_n "checking for $ac_word... " >&6; }
5113if ${ac_cv_prog_DUMPBIN+:} false; then :
5114  $as_echo_n "(cached) " >&6
5115else
5116  if test -n "$DUMPBIN"; then
5117  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5118else
5119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120for as_dir in $PATH
5121do
5122  IFS=$as_save_IFS
5123  test -z "$as_dir" && as_dir=.
5124    for ac_exec_ext in '' $ac_executable_extensions; do
5125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128    break 2
5129  fi
5130done
5131  done
5132IFS=$as_save_IFS
5133
5134fi
5135fi
5136DUMPBIN=$ac_cv_prog_DUMPBIN
5137if test -n "$DUMPBIN"; then
5138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5139$as_echo "$DUMPBIN" >&6; }
5140else
5141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142$as_echo "no" >&6; }
5143fi
5144
5145
5146    test -n "$DUMPBIN" && break
5147  done
5148fi
5149if test -z "$DUMPBIN"; then
5150  ac_ct_DUMPBIN=$DUMPBIN
5151  for ac_prog in dumpbin "link -dump"
5152do
5153  # Extract the first word of "$ac_prog", so it can be a program name with args.
5154set dummy $ac_prog; ac_word=$2
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156$as_echo_n "checking for $ac_word... " >&6; }
5157if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5158  $as_echo_n "(cached) " >&6
5159else
5160  if test -n "$ac_ct_DUMPBIN"; then
5161  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5162else
5163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166  IFS=$as_save_IFS
5167  test -z "$as_dir" && as_dir=.
5168    for ac_exec_ext in '' $ac_executable_extensions; do
5169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172    break 2
5173  fi
5174done
5175  done
5176IFS=$as_save_IFS
5177
5178fi
5179fi
5180ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5181if test -n "$ac_ct_DUMPBIN"; then
5182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5183$as_echo "$ac_ct_DUMPBIN" >&6; }
5184else
5185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186$as_echo "no" >&6; }
5187fi
5188
5189
5190  test -n "$ac_ct_DUMPBIN" && break
5191done
5192
5193  if test "x$ac_ct_DUMPBIN" = x; then
5194    DUMPBIN=":"
5195  else
5196    case $cross_compiling:$ac_tool_warned in
5197yes:)
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5200ac_tool_warned=yes ;;
5201esac
5202    DUMPBIN=$ac_ct_DUMPBIN
5203  fi
5204fi
5205
5206    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5207    *COFF*)
5208      DUMPBIN="$DUMPBIN -symbols"
5209      ;;
5210    *)
5211      DUMPBIN=:
5212      ;;
5213    esac
5214  fi
5215
5216  if test "$DUMPBIN" != ":"; then
5217    NM="$DUMPBIN"
5218  fi
5219fi
5220test -z "$NM" && NM=nm
5221
5222
5223
5224
5225
5226
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5228$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5229if ${lt_cv_nm_interface+:} false; then :
5230  $as_echo_n "(cached) " >&6
5231else
5232  lt_cv_nm_interface="BSD nm"
5233  echo "int some_variable = 0;" > conftest.$ac_ext
5234  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5235  (eval "$ac_compile" 2>conftest.err)
5236  cat conftest.err >&5
5237  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5238  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5239  cat conftest.err >&5
5240  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5241  cat conftest.out >&5
5242  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5243    lt_cv_nm_interface="MS dumpbin"
5244  fi
5245  rm -f conftest*
5246fi
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5248$as_echo "$lt_cv_nm_interface" >&6; }
5249
5250# find the maximum length of command line arguments
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5252$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5253if ${lt_cv_sys_max_cmd_len+:} false; then :
5254  $as_echo_n "(cached) " >&6
5255else
5256    i=0
5257  teststring="ABCD"
5258
5259  case $build_os in
5260  msdosdjgpp*)
5261    # On DJGPP, this test can blow up pretty badly due to problems in libc
5262    # (any single argument exceeding 2000 bytes causes a buffer overrun
5263    # during glob expansion).  Even if it were fixed, the result of this
5264    # check would be larger than it should be.
5265    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5266    ;;
5267
5268  gnu*)
5269    # Under GNU Hurd, this test is not required because there is
5270    # no limit to the length of command line arguments.
5271    # Libtool will interpret -1 as no limit whatsoever
5272    lt_cv_sys_max_cmd_len=-1;
5273    ;;
5274
5275  cygwin* | mingw* | cegcc*)
5276    # On Win9x/ME, this test blows up -- it succeeds, but takes
5277    # about 5 minutes as the teststring grows exponentially.
5278    # Worse, since 9x/ME are not pre-emptively multitasking,
5279    # you end up with a "frozen" computer, even though with patience
5280    # the test eventually succeeds (with a max line length of 256k).
5281    # Instead, let's just punt: use the minimum linelength reported by
5282    # all of the supported platforms: 8192 (on NT/2K/XP).
5283    lt_cv_sys_max_cmd_len=8192;
5284    ;;
5285
5286  mint*)
5287    # On MiNT this can take a long time and run out of memory.
5288    lt_cv_sys_max_cmd_len=8192;
5289    ;;
5290
5291  amigaos*)
5292    # On AmigaOS with pdksh, this test takes hours, literally.
5293    # So we just punt and use a minimum line length of 8192.
5294    lt_cv_sys_max_cmd_len=8192;
5295    ;;
5296
5297  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5298    # This has been around since 386BSD, at least.  Likely further.
5299    if test -x /sbin/sysctl; then
5300      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5301    elif test -x /usr/sbin/sysctl; then
5302      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5303    else
5304      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5305    fi
5306    # And add a safety zone
5307    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5308    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5309    ;;
5310
5311  interix*)
5312    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5313    lt_cv_sys_max_cmd_len=196608
5314    ;;
5315
5316  osf*)
5317    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5318    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5319    # nice to cause kernel panics so lets avoid the loop below.
5320    # First set a reasonable default.
5321    lt_cv_sys_max_cmd_len=16384
5322    #
5323    if test -x /sbin/sysconfig; then
5324      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5325        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5326      esac
5327    fi
5328    ;;
5329  sco3.2v5*)
5330    lt_cv_sys_max_cmd_len=102400
5331    ;;
5332  sysv5* | sco5v6* | sysv4.2uw2*)
5333    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5334    if test -n "$kargmax"; then
5335      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5336    else
5337      lt_cv_sys_max_cmd_len=32768
5338    fi
5339    ;;
5340  *)
5341    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5342    if test -n "$lt_cv_sys_max_cmd_len"; then
5343      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5344      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5345    else
5346      # Make teststring a little bigger before we do anything with it.
5347      # a 1K string should be a reasonable start.
5348      for i in 1 2 3 4 5 6 7 8 ; do
5349        teststring=$teststring$teststring
5350      done
5351      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5352      # If test is not a shell built-in, we'll probably end up computing a
5353      # maximum length that is only half of the actual maximum length, but
5354      # we can't tell.
5355      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5356	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5357	      test $i != 17 # 1/2 MB should be enough
5358      do
5359        i=`expr $i + 1`
5360        teststring=$teststring$teststring
5361      done
5362      # Only check the string length outside the loop.
5363      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5364      teststring=
5365      # Add a significant safety factor because C++ compilers can tack on
5366      # massive amounts of additional arguments before passing them to the
5367      # linker.  It appears as though 1/2 is a usable value.
5368      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5369    fi
5370    ;;
5371  esac
5372
5373fi
5374
5375if test -n $lt_cv_sys_max_cmd_len ; then
5376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5377$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5378else
5379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5380$as_echo "none" >&6; }
5381fi
5382max_cmd_len=$lt_cv_sys_max_cmd_len
5383
5384
5385
5386
5387
5388
5389: ${CP="cp -f"}
5390: ${MV="mv -f"}
5391: ${RM="rm -f"}
5392
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5394$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5395# Try some XSI features
5396xsi_shell=no
5397( _lt_dummy="a/b/c"
5398  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5399      = c,a/b,b/c, \
5400    && eval 'test $(( 1 + 1 )) -eq 2 \
5401    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5402  && xsi_shell=yes
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5404$as_echo "$xsi_shell" >&6; }
5405
5406
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5408$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5409lt_shell_append=no
5410( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5411    >/dev/null 2>&1 \
5412  && lt_shell_append=yes
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5414$as_echo "$lt_shell_append" >&6; }
5415
5416
5417if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5418  lt_unset=unset
5419else
5420  lt_unset=false
5421fi
5422
5423
5424
5425
5426
5427# test EBCDIC or ASCII
5428case `echo X|tr X '\101'` in
5429 A) # ASCII based system
5430    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5431  lt_SP2NL='tr \040 \012'
5432  lt_NL2SP='tr \015\012 \040\040'
5433  ;;
5434 *) # EBCDIC based system
5435  lt_SP2NL='tr \100 \n'
5436  lt_NL2SP='tr \r\n \100\100'
5437  ;;
5438esac
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5449$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5450if ${lt_cv_to_host_file_cmd+:} false; then :
5451  $as_echo_n "(cached) " >&6
5452else
5453  case $host in
5454  *-*-mingw* )
5455    case $build in
5456      *-*-mingw* ) # actually msys
5457        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5458        ;;
5459      *-*-cygwin* )
5460        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5461        ;;
5462      * ) # otherwise, assume *nix
5463        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5464        ;;
5465    esac
5466    ;;
5467  *-*-cygwin* )
5468    case $build in
5469      *-*-mingw* ) # actually msys
5470        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5471        ;;
5472      *-*-cygwin* )
5473        lt_cv_to_host_file_cmd=func_convert_file_noop
5474        ;;
5475      * ) # otherwise, assume *nix
5476        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5477        ;;
5478    esac
5479    ;;
5480  * ) # unhandled hosts (and "normal" native builds)
5481    lt_cv_to_host_file_cmd=func_convert_file_noop
5482    ;;
5483esac
5484
5485fi
5486
5487to_host_file_cmd=$lt_cv_to_host_file_cmd
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5489$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5490
5491
5492
5493
5494
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5496$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5497if ${lt_cv_to_tool_file_cmd+:} false; then :
5498  $as_echo_n "(cached) " >&6
5499else
5500  #assume ordinary cross tools, or native build.
5501lt_cv_to_tool_file_cmd=func_convert_file_noop
5502case $host in
5503  *-*-mingw* )
5504    case $build in
5505      *-*-mingw* ) # actually msys
5506        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5507        ;;
5508    esac
5509    ;;
5510esac
5511
5512fi
5513
5514to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5516$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5517
5518
5519
5520
5521
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5523$as_echo_n "checking for $LD option to reload object files... " >&6; }
5524if ${lt_cv_ld_reload_flag+:} false; then :
5525  $as_echo_n "(cached) " >&6
5526else
5527  lt_cv_ld_reload_flag='-r'
5528fi
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5530$as_echo "$lt_cv_ld_reload_flag" >&6; }
5531reload_flag=$lt_cv_ld_reload_flag
5532case $reload_flag in
5533"" | " "*) ;;
5534*) reload_flag=" $reload_flag" ;;
5535esac
5536reload_cmds='$LD$reload_flag -o $output$reload_objs'
5537case $host_os in
5538  cygwin* | mingw* | pw32* | cegcc*)
5539    if test "$GCC" != yes; then
5540      reload_cmds=false
5541    fi
5542    ;;
5543  darwin*)
5544    if test "$GCC" = yes; then
5545      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5546    else
5547      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5548    fi
5549    ;;
5550esac
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560if test -n "$ac_tool_prefix"; then
5561  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5562set dummy ${ac_tool_prefix}objdump; ac_word=$2
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564$as_echo_n "checking for $ac_word... " >&6; }
5565if ${ac_cv_prog_OBJDUMP+:} false; then :
5566  $as_echo_n "(cached) " >&6
5567else
5568  if test -n "$OBJDUMP"; then
5569  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5570else
5571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572for as_dir in $PATH
5573do
5574  IFS=$as_save_IFS
5575  test -z "$as_dir" && as_dir=.
5576    for ac_exec_ext in '' $ac_executable_extensions; do
5577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580    break 2
5581  fi
5582done
5583  done
5584IFS=$as_save_IFS
5585
5586fi
5587fi
5588OBJDUMP=$ac_cv_prog_OBJDUMP
5589if test -n "$OBJDUMP"; then
5590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5591$as_echo "$OBJDUMP" >&6; }
5592else
5593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594$as_echo "no" >&6; }
5595fi
5596
5597
5598fi
5599if test -z "$ac_cv_prog_OBJDUMP"; then
5600  ac_ct_OBJDUMP=$OBJDUMP
5601  # Extract the first word of "objdump", so it can be a program name with args.
5602set dummy objdump; ac_word=$2
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604$as_echo_n "checking for $ac_word... " >&6; }
5605if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5606  $as_echo_n "(cached) " >&6
5607else
5608  if test -n "$ac_ct_OBJDUMP"; then
5609  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5610else
5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
5613do
5614  IFS=$as_save_IFS
5615  test -z "$as_dir" && as_dir=.
5616    for ac_exec_ext in '' $ac_executable_extensions; do
5617  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620    break 2
5621  fi
5622done
5623  done
5624IFS=$as_save_IFS
5625
5626fi
5627fi
5628ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5629if test -n "$ac_ct_OBJDUMP"; then
5630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5631$as_echo "$ac_ct_OBJDUMP" >&6; }
5632else
5633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634$as_echo "no" >&6; }
5635fi
5636
5637  if test "x$ac_ct_OBJDUMP" = x; then
5638    OBJDUMP="false"
5639  else
5640    case $cross_compiling:$ac_tool_warned in
5641yes:)
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644ac_tool_warned=yes ;;
5645esac
5646    OBJDUMP=$ac_ct_OBJDUMP
5647  fi
5648else
5649  OBJDUMP="$ac_cv_prog_OBJDUMP"
5650fi
5651
5652test -z "$OBJDUMP" && OBJDUMP=objdump
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5663$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5664if ${lt_cv_deplibs_check_method+:} false; then :
5665  $as_echo_n "(cached) " >&6
5666else
5667  lt_cv_file_magic_cmd='$MAGIC_CMD'
5668lt_cv_file_magic_test_file=
5669lt_cv_deplibs_check_method='unknown'
5670# Need to set the preceding variable on all platforms that support
5671# interlibrary dependencies.
5672# 'none' -- dependencies not supported.
5673# `unknown' -- same as none, but documents that we really don't know.
5674# 'pass_all' -- all dependencies passed with no checks.
5675# 'test_compile' -- check by making test program.
5676# 'file_magic [[regex]]' -- check by looking for files in library path
5677# which responds to the $file_magic_cmd with a given extended regex.
5678# If you have `file' or equivalent on your system and you're not sure
5679# whether `pass_all' will *always* work, you probably want this one.
5680
5681case $host_os in
5682aix[4-9]*)
5683  lt_cv_deplibs_check_method=pass_all
5684  ;;
5685
5686beos*)
5687  lt_cv_deplibs_check_method=pass_all
5688  ;;
5689
5690bsdi[45]*)
5691  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5692  lt_cv_file_magic_cmd='/usr/bin/file -L'
5693  lt_cv_file_magic_test_file=/shlib/libc.so
5694  ;;
5695
5696cygwin*)
5697  # func_win32_libid is a shell function defined in ltmain.sh
5698  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5699  lt_cv_file_magic_cmd='func_win32_libid'
5700  ;;
5701
5702mingw* | pw32*)
5703  # Base MSYS/MinGW do not provide the 'file' command needed by
5704  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5705  # unless we find 'file', for example because we are cross-compiling.
5706  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5707  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5708    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5709    lt_cv_file_magic_cmd='func_win32_libid'
5710  else
5711    # Keep this pattern in sync with the one in func_win32_libid.
5712    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5713    lt_cv_file_magic_cmd='$OBJDUMP -f'
5714  fi
5715  ;;
5716
5717cegcc*)
5718  # use the weaker test based on 'objdump'. See mingw*.
5719  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5720  lt_cv_file_magic_cmd='$OBJDUMP -f'
5721  ;;
5722
5723darwin* | rhapsody*)
5724  lt_cv_deplibs_check_method=pass_all
5725  ;;
5726
5727freebsd* | dragonfly*)
5728  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5729    case $host_cpu in
5730    i*86 )
5731      # Not sure whether the presence of OpenBSD here was a mistake.
5732      # Let's accept both of them until this is cleared up.
5733      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5734      lt_cv_file_magic_cmd=/usr/bin/file
5735      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5736      ;;
5737    esac
5738  else
5739    lt_cv_deplibs_check_method=pass_all
5740  fi
5741  ;;
5742
5743gnu*)
5744  lt_cv_deplibs_check_method=pass_all
5745  ;;
5746
5747haiku*)
5748  lt_cv_deplibs_check_method=pass_all
5749  ;;
5750
5751hpux10.20* | hpux11*)
5752  lt_cv_file_magic_cmd=/usr/bin/file
5753  case $host_cpu in
5754  ia64*)
5755    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5756    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5757    ;;
5758  hppa*64*)
5759    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]'
5760    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5761    ;;
5762  *)
5763    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5764    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5765    ;;
5766  esac
5767  ;;
5768
5769interix[3-9]*)
5770  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5771  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5772  ;;
5773
5774irix5* | irix6* | nonstopux*)
5775  case $LD in
5776  *-32|*"-32 ") libmagic=32-bit;;
5777  *-n32|*"-n32 ") libmagic=N32;;
5778  *-64|*"-64 ") libmagic=64-bit;;
5779  *) libmagic=never-match;;
5780  esac
5781  lt_cv_deplibs_check_method=pass_all
5782  ;;
5783
5784# This must be Linux ELF.
5785linux* | k*bsd*-gnu | kopensolaris*-gnu)
5786  lt_cv_deplibs_check_method=pass_all
5787  ;;
5788
5789netbsd*)
5790  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5791    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5792  else
5793    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5794  fi
5795  ;;
5796
5797newos6*)
5798  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5799  lt_cv_file_magic_cmd=/usr/bin/file
5800  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5801  ;;
5802
5803*nto* | *qnx*)
5804  lt_cv_deplibs_check_method=pass_all
5805  ;;
5806
5807openbsd*)
5808  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5809    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5810  else
5811    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5812  fi
5813  ;;
5814
5815osf3* | osf4* | osf5*)
5816  lt_cv_deplibs_check_method=pass_all
5817  ;;
5818
5819rdos*)
5820  lt_cv_deplibs_check_method=pass_all
5821  ;;
5822
5823solaris*)
5824  lt_cv_deplibs_check_method=pass_all
5825  ;;
5826
5827sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5828  lt_cv_deplibs_check_method=pass_all
5829  ;;
5830
5831sysv4 | sysv4.3*)
5832  case $host_vendor in
5833  motorola)
5834    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]'
5835    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5836    ;;
5837  ncr)
5838    lt_cv_deplibs_check_method=pass_all
5839    ;;
5840  sequent)
5841    lt_cv_file_magic_cmd='/bin/file'
5842    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5843    ;;
5844  sni)
5845    lt_cv_file_magic_cmd='/bin/file'
5846    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5847    lt_cv_file_magic_test_file=/lib/libc.so
5848    ;;
5849  siemens)
5850    lt_cv_deplibs_check_method=pass_all
5851    ;;
5852  pc)
5853    lt_cv_deplibs_check_method=pass_all
5854    ;;
5855  esac
5856  ;;
5857
5858tpf*)
5859  lt_cv_deplibs_check_method=pass_all
5860  ;;
5861esac
5862
5863fi
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5865$as_echo "$lt_cv_deplibs_check_method" >&6; }
5866
5867file_magic_glob=
5868want_nocaseglob=no
5869if test "$build" = "$host"; then
5870  case $host_os in
5871  mingw* | pw32*)
5872    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5873      want_nocaseglob=yes
5874    else
5875      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5876    fi
5877    ;;
5878  esac
5879fi
5880
5881file_magic_cmd=$lt_cv_file_magic_cmd
5882deplibs_check_method=$lt_cv_deplibs_check_method
5883test -z "$deplibs_check_method" && deplibs_check_method=unknown
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906if test -n "$ac_tool_prefix"; then
5907  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5908set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910$as_echo_n "checking for $ac_word... " >&6; }
5911if ${ac_cv_prog_DLLTOOL+:} false; then :
5912  $as_echo_n "(cached) " >&6
5913else
5914  if test -n "$DLLTOOL"; then
5915  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5916else
5917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918for as_dir in $PATH
5919do
5920  IFS=$as_save_IFS
5921  test -z "$as_dir" && as_dir=.
5922    for ac_exec_ext in '' $ac_executable_extensions; do
5923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5924    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926    break 2
5927  fi
5928done
5929  done
5930IFS=$as_save_IFS
5931
5932fi
5933fi
5934DLLTOOL=$ac_cv_prog_DLLTOOL
5935if test -n "$DLLTOOL"; then
5936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5937$as_echo "$DLLTOOL" >&6; }
5938else
5939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940$as_echo "no" >&6; }
5941fi
5942
5943
5944fi
5945if test -z "$ac_cv_prog_DLLTOOL"; then
5946  ac_ct_DLLTOOL=$DLLTOOL
5947  # Extract the first word of "dlltool", so it can be a program name with args.
5948set dummy dlltool; ac_word=$2
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950$as_echo_n "checking for $ac_word... " >&6; }
5951if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5952  $as_echo_n "(cached) " >&6
5953else
5954  if test -n "$ac_ct_DLLTOOL"; then
5955  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5956else
5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958for as_dir in $PATH
5959do
5960  IFS=$as_save_IFS
5961  test -z "$as_dir" && as_dir=.
5962    for ac_exec_ext in '' $ac_executable_extensions; do
5963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5964    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5966    break 2
5967  fi
5968done
5969  done
5970IFS=$as_save_IFS
5971
5972fi
5973fi
5974ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5975if test -n "$ac_ct_DLLTOOL"; then
5976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5977$as_echo "$ac_ct_DLLTOOL" >&6; }
5978else
5979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980$as_echo "no" >&6; }
5981fi
5982
5983  if test "x$ac_ct_DLLTOOL" = x; then
5984    DLLTOOL="false"
5985  else
5986    case $cross_compiling:$ac_tool_warned in
5987yes:)
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990ac_tool_warned=yes ;;
5991esac
5992    DLLTOOL=$ac_ct_DLLTOOL
5993  fi
5994else
5995  DLLTOOL="$ac_cv_prog_DLLTOOL"
5996fi
5997
5998test -z "$DLLTOOL" && DLLTOOL=dlltool
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6010$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6011if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6012  $as_echo_n "(cached) " >&6
6013else
6014  lt_cv_sharedlib_from_linklib_cmd='unknown'
6015
6016case $host_os in
6017cygwin* | mingw* | pw32* | cegcc*)
6018  # two different shell functions defined in ltmain.sh
6019  # decide which to use based on capabilities of $DLLTOOL
6020  case `$DLLTOOL --help 2>&1` in
6021  *--identify-strict*)
6022    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6023    ;;
6024  *)
6025    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6026    ;;
6027  esac
6028  ;;
6029*)
6030  # fallback: assume linklib IS sharedlib
6031  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6032  ;;
6033esac
6034
6035fi
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6037$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6038sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6039test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6040
6041
6042
6043
6044
6045
6046
6047
6048if test -n "$ac_tool_prefix"; then
6049  for ac_prog in ar
6050  do
6051    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6052set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054$as_echo_n "checking for $ac_word... " >&6; }
6055if ${ac_cv_prog_AR+:} false; then :
6056  $as_echo_n "(cached) " >&6
6057else
6058  if test -n "$AR"; then
6059  ac_cv_prog_AR="$AR" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064  IFS=$as_save_IFS
6065  test -z "$as_dir" && as_dir=.
6066    for ac_exec_ext in '' $ac_executable_extensions; do
6067  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070    break 2
6071  fi
6072done
6073  done
6074IFS=$as_save_IFS
6075
6076fi
6077fi
6078AR=$ac_cv_prog_AR
6079if test -n "$AR"; then
6080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6081$as_echo "$AR" >&6; }
6082else
6083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084$as_echo "no" >&6; }
6085fi
6086
6087
6088    test -n "$AR" && break
6089  done
6090fi
6091if test -z "$AR"; then
6092  ac_ct_AR=$AR
6093  for ac_prog in ar
6094do
6095  # Extract the first word of "$ac_prog", so it can be a program name with args.
6096set dummy $ac_prog; ac_word=$2
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098$as_echo_n "checking for $ac_word... " >&6; }
6099if ${ac_cv_prog_ac_ct_AR+:} false; then :
6100  $as_echo_n "(cached) " >&6
6101else
6102  if test -n "$ac_ct_AR"; then
6103  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6104else
6105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106for as_dir in $PATH
6107do
6108  IFS=$as_save_IFS
6109  test -z "$as_dir" && as_dir=.
6110    for ac_exec_ext in '' $ac_executable_extensions; do
6111  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6112    ac_cv_prog_ac_ct_AR="$ac_prog"
6113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114    break 2
6115  fi
6116done
6117  done
6118IFS=$as_save_IFS
6119
6120fi
6121fi
6122ac_ct_AR=$ac_cv_prog_ac_ct_AR
6123if test -n "$ac_ct_AR"; then
6124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6125$as_echo "$ac_ct_AR" >&6; }
6126else
6127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128$as_echo "no" >&6; }
6129fi
6130
6131
6132  test -n "$ac_ct_AR" && break
6133done
6134
6135  if test "x$ac_ct_AR" = x; then
6136    AR="false"
6137  else
6138    case $cross_compiling:$ac_tool_warned in
6139yes:)
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6142ac_tool_warned=yes ;;
6143esac
6144    AR=$ac_ct_AR
6145  fi
6146fi
6147
6148: ${AR=ar}
6149: ${AR_FLAGS=cru}
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6162$as_echo_n "checking for archiver @FILE support... " >&6; }
6163if ${lt_cv_ar_at_file+:} false; then :
6164  $as_echo_n "(cached) " >&6
6165else
6166  lt_cv_ar_at_file=no
6167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168/* end confdefs.h.  */
6169
6170int
6171main ()
6172{
6173
6174  ;
6175  return 0;
6176}
6177_ACEOF
6178if ac_fn_c_try_compile "$LINENO"; then :
6179  echo conftest.$ac_objext > conftest.lst
6180      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6181      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6182  (eval $lt_ar_try) 2>&5
6183  ac_status=$?
6184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6185  test $ac_status = 0; }
6186      if test "$ac_status" -eq 0; then
6187	# Ensure the archiver fails upon bogus file names.
6188	rm -f conftest.$ac_objext libconftest.a
6189	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6190  (eval $lt_ar_try) 2>&5
6191  ac_status=$?
6192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6193  test $ac_status = 0; }
6194	if test "$ac_status" -ne 0; then
6195          lt_cv_ar_at_file=@
6196        fi
6197      fi
6198      rm -f conftest.* libconftest.a
6199
6200fi
6201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202
6203fi
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6205$as_echo "$lt_cv_ar_at_file" >&6; }
6206
6207if test "x$lt_cv_ar_at_file" = xno; then
6208  archiver_list_spec=
6209else
6210  archiver_list_spec=$lt_cv_ar_at_file
6211fi
6212
6213
6214
6215
6216
6217
6218
6219if test -n "$ac_tool_prefix"; then
6220  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6221set dummy ${ac_tool_prefix}strip; ac_word=$2
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6223$as_echo_n "checking for $ac_word... " >&6; }
6224if ${ac_cv_prog_STRIP+:} false; then :
6225  $as_echo_n "(cached) " >&6
6226else
6227  if test -n "$STRIP"; then
6228  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6229else
6230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231for as_dir in $PATH
6232do
6233  IFS=$as_save_IFS
6234  test -z "$as_dir" && as_dir=.
6235    for ac_exec_ext in '' $ac_executable_extensions; do
6236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6237    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6239    break 2
6240  fi
6241done
6242  done
6243IFS=$as_save_IFS
6244
6245fi
6246fi
6247STRIP=$ac_cv_prog_STRIP
6248if test -n "$STRIP"; then
6249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6250$as_echo "$STRIP" >&6; }
6251else
6252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253$as_echo "no" >&6; }
6254fi
6255
6256
6257fi
6258if test -z "$ac_cv_prog_STRIP"; then
6259  ac_ct_STRIP=$STRIP
6260  # Extract the first word of "strip", so it can be a program name with args.
6261set dummy strip; ac_word=$2
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263$as_echo_n "checking for $ac_word... " >&6; }
6264if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6265  $as_echo_n "(cached) " >&6
6266else
6267  if test -n "$ac_ct_STRIP"; then
6268  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6269else
6270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271for as_dir in $PATH
6272do
6273  IFS=$as_save_IFS
6274  test -z "$as_dir" && as_dir=.
6275    for ac_exec_ext in '' $ac_executable_extensions; do
6276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277    ac_cv_prog_ac_ct_STRIP="strip"
6278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279    break 2
6280  fi
6281done
6282  done
6283IFS=$as_save_IFS
6284
6285fi
6286fi
6287ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6288if test -n "$ac_ct_STRIP"; then
6289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6290$as_echo "$ac_ct_STRIP" >&6; }
6291else
6292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293$as_echo "no" >&6; }
6294fi
6295
6296  if test "x$ac_ct_STRIP" = x; then
6297    STRIP=":"
6298  else
6299    case $cross_compiling:$ac_tool_warned in
6300yes:)
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6303ac_tool_warned=yes ;;
6304esac
6305    STRIP=$ac_ct_STRIP
6306  fi
6307else
6308  STRIP="$ac_cv_prog_STRIP"
6309fi
6310
6311test -z "$STRIP" && STRIP=:
6312
6313
6314
6315
6316
6317
6318if test -n "$ac_tool_prefix"; then
6319  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6320set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322$as_echo_n "checking for $ac_word... " >&6; }
6323if ${ac_cv_prog_RANLIB+:} false; then :
6324  $as_echo_n "(cached) " >&6
6325else
6326  if test -n "$RANLIB"; then
6327  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6328else
6329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330for as_dir in $PATH
6331do
6332  IFS=$as_save_IFS
6333  test -z "$as_dir" && as_dir=.
6334    for ac_exec_ext in '' $ac_executable_extensions; do
6335  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6337    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338    break 2
6339  fi
6340done
6341  done
6342IFS=$as_save_IFS
6343
6344fi
6345fi
6346RANLIB=$ac_cv_prog_RANLIB
6347if test -n "$RANLIB"; then
6348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6349$as_echo "$RANLIB" >&6; }
6350else
6351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352$as_echo "no" >&6; }
6353fi
6354
6355
6356fi
6357if test -z "$ac_cv_prog_RANLIB"; then
6358  ac_ct_RANLIB=$RANLIB
6359  # Extract the first word of "ranlib", so it can be a program name with args.
6360set dummy ranlib; ac_word=$2
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362$as_echo_n "checking for $ac_word... " >&6; }
6363if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6364  $as_echo_n "(cached) " >&6
6365else
6366  if test -n "$ac_ct_RANLIB"; then
6367  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6368else
6369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370for as_dir in $PATH
6371do
6372  IFS=$as_save_IFS
6373  test -z "$as_dir" && as_dir=.
6374    for ac_exec_ext in '' $ac_executable_extensions; do
6375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6376    ac_cv_prog_ac_ct_RANLIB="ranlib"
6377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378    break 2
6379  fi
6380done
6381  done
6382IFS=$as_save_IFS
6383
6384fi
6385fi
6386ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6387if test -n "$ac_ct_RANLIB"; then
6388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6389$as_echo "$ac_ct_RANLIB" >&6; }
6390else
6391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392$as_echo "no" >&6; }
6393fi
6394
6395  if test "x$ac_ct_RANLIB" = x; then
6396    RANLIB=":"
6397  else
6398    case $cross_compiling:$ac_tool_warned in
6399yes:)
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6402ac_tool_warned=yes ;;
6403esac
6404    RANLIB=$ac_ct_RANLIB
6405  fi
6406else
6407  RANLIB="$ac_cv_prog_RANLIB"
6408fi
6409
6410test -z "$RANLIB" && RANLIB=:
6411
6412
6413
6414
6415
6416
6417# Determine commands to create old-style static archives.
6418old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6419old_postinstall_cmds='chmod 644 $oldlib'
6420old_postuninstall_cmds=
6421
6422if test -n "$RANLIB"; then
6423  case $host_os in
6424  openbsd*)
6425    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6426    ;;
6427  *)
6428    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6429    ;;
6430  esac
6431  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6432fi
6433
6434case $host_os in
6435  darwin*)
6436    lock_old_archive_extraction=yes ;;
6437  *)
6438    lock_old_archive_extraction=no ;;
6439esac
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479# If no C compiler was specified, use CC.
6480LTCC=${LTCC-"$CC"}
6481
6482# If no C compiler flags were specified, use CFLAGS.
6483LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6484
6485# Allow CC to be a program name with arguments.
6486compiler=$CC
6487
6488
6489# Check for command to grab the raw symbol name followed by C symbol from nm.
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6491$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6492if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6493  $as_echo_n "(cached) " >&6
6494else
6495
6496# These are sane defaults that work on at least a few old systems.
6497# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6498
6499# Character class describing NM global symbol codes.
6500symcode='[BCDEGRST]'
6501
6502# Regexp to match symbols that can be accessed directly from C.
6503sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6504
6505# Define system-specific variables.
6506case $host_os in
6507aix*)
6508  symcode='[BCDT]'
6509  ;;
6510cygwin* | mingw* | pw32* | cegcc*)
6511  symcode='[ABCDGISTW]'
6512  ;;
6513hpux*)
6514  if test "$host_cpu" = ia64; then
6515    symcode='[ABCDEGRST]'
6516  fi
6517  ;;
6518irix* | nonstopux*)
6519  symcode='[BCDEGRST]'
6520  ;;
6521osf*)
6522  symcode='[BCDEGQRST]'
6523  ;;
6524solaris*)
6525  symcode='[BDRT]'
6526  ;;
6527sco3.2v5*)
6528  symcode='[DT]'
6529  ;;
6530sysv4.2uw2*)
6531  symcode='[DT]'
6532  ;;
6533sysv5* | sco5v6* | unixware* | OpenUNIX*)
6534  symcode='[ABDT]'
6535  ;;
6536sysv4)
6537  symcode='[DFNSTU]'
6538  ;;
6539esac
6540
6541# If we're using GNU nm, then use its standard symbol codes.
6542case `$NM -V 2>&1` in
6543*GNU* | *'with BFD'*)
6544  symcode='[ABCDGIRSTW]' ;;
6545esac
6546
6547# Transform an extracted symbol line into a proper C declaration.
6548# Some systems (esp. on ia64) link data and code symbols differently,
6549# so use this general approach.
6550lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6551
6552# Transform an extracted symbol line into symbol name and symbol address
6553lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6554lt_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'"
6555
6556# Handle CRLF in mingw tool chain
6557opt_cr=
6558case $build_os in
6559mingw*)
6560  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6561  ;;
6562esac
6563
6564# Try without a prefix underscore, then with it.
6565for ac_symprfx in "" "_"; do
6566
6567  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6568  symxfrm="\\1 $ac_symprfx\\2 \\2"
6569
6570  # Write the raw and C identifiers.
6571  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6572    # Fake it for dumpbin and say T for any non-static function
6573    # and D for any global variable.
6574    # Also find C++ and __fastcall symbols from MSVC++,
6575    # which start with @ or ?.
6576    lt_cv_sys_global_symbol_pipe="$AWK '"\
6577"     {last_section=section; section=\$ 3};"\
6578"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6579"     \$ 0!~/External *\|/{next};"\
6580"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6581"     {if(hide[section]) next};"\
6582"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6583"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6584"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6585"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6586"     ' prfx=^$ac_symprfx"
6587  else
6588    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6589  fi
6590  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6591
6592  # Check to see that the pipe works correctly.
6593  pipe_works=no
6594
6595  rm -f conftest*
6596  cat > conftest.$ac_ext <<_LT_EOF
6597#ifdef __cplusplus
6598extern "C" {
6599#endif
6600char nm_test_var;
6601void nm_test_func(void);
6602void nm_test_func(void){}
6603#ifdef __cplusplus
6604}
6605#endif
6606int main(){nm_test_var='a';nm_test_func();return(0);}
6607_LT_EOF
6608
6609  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6610  (eval $ac_compile) 2>&5
6611  ac_status=$?
6612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6613  test $ac_status = 0; }; then
6614    # Now try to grab the symbols.
6615    nlist=conftest.nm
6616    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6617  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6618  ac_status=$?
6619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6620  test $ac_status = 0; } && test -s "$nlist"; then
6621      # Try sorting and uniquifying the output.
6622      if sort "$nlist" | uniq > "$nlist"T; then
6623	mv -f "$nlist"T "$nlist"
6624      else
6625	rm -f "$nlist"T
6626      fi
6627
6628      # Make sure that we snagged all the symbols we need.
6629      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6630	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6631	  cat <<_LT_EOF > conftest.$ac_ext
6632/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6633#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6634/* DATA imports from DLLs on WIN32 con't be const, because runtime
6635   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6636# define LT_DLSYM_CONST
6637#elif defined(__osf__)
6638/* This system does not cope well with relocations in const data.  */
6639# define LT_DLSYM_CONST
6640#else
6641# define LT_DLSYM_CONST const
6642#endif
6643
6644#ifdef __cplusplus
6645extern "C" {
6646#endif
6647
6648_LT_EOF
6649	  # Now generate the symbol file.
6650	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6651
6652	  cat <<_LT_EOF >> conftest.$ac_ext
6653
6654/* The mapping between symbol names and symbols.  */
6655LT_DLSYM_CONST struct {
6656  const char *name;
6657  void       *address;
6658}
6659lt__PROGRAM__LTX_preloaded_symbols[] =
6660{
6661  { "@PROGRAM@", (void *) 0 },
6662_LT_EOF
6663	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6664	  cat <<\_LT_EOF >> conftest.$ac_ext
6665  {0, (void *) 0}
6666};
6667
6668/* This works around a problem in FreeBSD linker */
6669#ifdef FREEBSD_WORKAROUND
6670static const void *lt_preloaded_setup() {
6671  return lt__PROGRAM__LTX_preloaded_symbols;
6672}
6673#endif
6674
6675#ifdef __cplusplus
6676}
6677#endif
6678_LT_EOF
6679	  # Now try linking the two files.
6680	  mv conftest.$ac_objext conftstm.$ac_objext
6681	  lt_globsym_save_LIBS=$LIBS
6682	  lt_globsym_save_CFLAGS=$CFLAGS
6683	  LIBS="conftstm.$ac_objext"
6684	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6685	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6686  (eval $ac_link) 2>&5
6687  ac_status=$?
6688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6689  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6690	    pipe_works=yes
6691	  fi
6692	  LIBS=$lt_globsym_save_LIBS
6693	  CFLAGS=$lt_globsym_save_CFLAGS
6694	else
6695	  echo "cannot find nm_test_func in $nlist" >&5
6696	fi
6697      else
6698	echo "cannot find nm_test_var in $nlist" >&5
6699      fi
6700    else
6701      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6702    fi
6703  else
6704    echo "$progname: failed program was:" >&5
6705    cat conftest.$ac_ext >&5
6706  fi
6707  rm -rf conftest* conftst*
6708
6709  # Do not use the global_symbol_pipe unless it works.
6710  if test "$pipe_works" = yes; then
6711    break
6712  else
6713    lt_cv_sys_global_symbol_pipe=
6714  fi
6715done
6716
6717fi
6718
6719if test -z "$lt_cv_sys_global_symbol_pipe"; then
6720  lt_cv_sys_global_symbol_to_cdecl=
6721fi
6722if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6724$as_echo "failed" >&6; }
6725else
6726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6727$as_echo "ok" >&6; }
6728fi
6729
6730# Response file support.
6731if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6732  nm_file_list_spec='@'
6733elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6734  nm_file_list_spec='@'
6735fi
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6764$as_echo_n "checking for sysroot... " >&6; }
6765
6766# Check whether --with-sysroot was given.
6767if test "${with_sysroot+set}" = set; then :
6768  withval=$with_sysroot;
6769else
6770  with_sysroot=no
6771fi
6772
6773
6774lt_sysroot=
6775case ${with_sysroot} in #(
6776 yes)
6777   if test "$GCC" = yes; then
6778     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6779   fi
6780   ;; #(
6781 /*)
6782   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6783   ;; #(
6784 no|'')
6785   ;; #(
6786 *)
6787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6788$as_echo "${with_sysroot}" >&6; }
6789   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6790   ;;
6791esac
6792
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6794$as_echo "${lt_sysroot:-no}" >&6; }
6795
6796
6797
6798
6799
6800# Check whether --enable-libtool-lock was given.
6801if test "${enable_libtool_lock+set}" = set; then :
6802  enableval=$enable_libtool_lock;
6803fi
6804
6805test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6806
6807# Some flags need to be propagated to the compiler or linker for good
6808# libtool support.
6809case $host in
6810ia64-*-hpux*)
6811  # Find out which ABI we are using.
6812  echo 'int i;' > conftest.$ac_ext
6813  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6814  (eval $ac_compile) 2>&5
6815  ac_status=$?
6816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6817  test $ac_status = 0; }; then
6818    case `/usr/bin/file conftest.$ac_objext` in
6819      *ELF-32*)
6820	HPUX_IA64_MODE="32"
6821	;;
6822      *ELF-64*)
6823	HPUX_IA64_MODE="64"
6824	;;
6825    esac
6826  fi
6827  rm -rf conftest*
6828  ;;
6829*-*-irix6*)
6830  # Find out which ABI we are using.
6831  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6832  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6833  (eval $ac_compile) 2>&5
6834  ac_status=$?
6835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6836  test $ac_status = 0; }; then
6837    if test "$lt_cv_prog_gnu_ld" = yes; then
6838      case `/usr/bin/file conftest.$ac_objext` in
6839	*32-bit*)
6840	  LD="${LD-ld} -melf32bsmip"
6841	  ;;
6842	*N32*)
6843	  LD="${LD-ld} -melf32bmipn32"
6844	  ;;
6845	*64-bit*)
6846	  LD="${LD-ld} -melf64bmip"
6847	;;
6848      esac
6849    else
6850      case `/usr/bin/file conftest.$ac_objext` in
6851	*32-bit*)
6852	  LD="${LD-ld} -32"
6853	  ;;
6854	*N32*)
6855	  LD="${LD-ld} -n32"
6856	  ;;
6857	*64-bit*)
6858	  LD="${LD-ld} -64"
6859	  ;;
6860      esac
6861    fi
6862  fi
6863  rm -rf conftest*
6864  ;;
6865
6866x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6867s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6868  # Find out which ABI we are using.
6869  echo 'int i;' > conftest.$ac_ext
6870  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6871  (eval $ac_compile) 2>&5
6872  ac_status=$?
6873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6874  test $ac_status = 0; }; then
6875    case `/usr/bin/file conftest.o` in
6876      *32-bit*)
6877	case $host in
6878	  x86_64-*kfreebsd*-gnu)
6879	    LD="${LD-ld} -m elf_i386_fbsd"
6880	    ;;
6881	  x86_64-*linux*)
6882	    LD="${LD-ld} -m elf_i386"
6883	    ;;
6884	  ppc64-*linux*|powerpc64-*linux*)
6885	    LD="${LD-ld} -m elf32ppclinux"
6886	    ;;
6887	  s390x-*linux*)
6888	    LD="${LD-ld} -m elf_s390"
6889	    ;;
6890	  sparc64-*linux*)
6891	    LD="${LD-ld} -m elf32_sparc"
6892	    ;;
6893	esac
6894	;;
6895      *64-bit*)
6896	case $host in
6897	  x86_64-*kfreebsd*-gnu)
6898	    LD="${LD-ld} -m elf_x86_64_fbsd"
6899	    ;;
6900	  x86_64-*linux*)
6901	    LD="${LD-ld} -m elf_x86_64"
6902	    ;;
6903	  ppc*-*linux*|powerpc*-*linux*)
6904	    LD="${LD-ld} -m elf64ppc"
6905	    ;;
6906	  s390*-*linux*|s390*-*tpf*)
6907	    LD="${LD-ld} -m elf64_s390"
6908	    ;;
6909	  sparc*-*linux*)
6910	    LD="${LD-ld} -m elf64_sparc"
6911	    ;;
6912	esac
6913	;;
6914    esac
6915  fi
6916  rm -rf conftest*
6917  ;;
6918
6919*-*-sco3.2v5*)
6920  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6921  SAVE_CFLAGS="$CFLAGS"
6922  CFLAGS="$CFLAGS -belf"
6923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6924$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6925if ${lt_cv_cc_needs_belf+:} false; then :
6926  $as_echo_n "(cached) " >&6
6927else
6928  ac_ext=c
6929ac_cpp='$CPP $CPPFLAGS'
6930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6932ac_compiler_gnu=$ac_cv_c_compiler_gnu
6933
6934     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935/* end confdefs.h.  */
6936
6937int
6938main ()
6939{
6940
6941  ;
6942  return 0;
6943}
6944_ACEOF
6945if ac_fn_c_try_link "$LINENO"; then :
6946  lt_cv_cc_needs_belf=yes
6947else
6948  lt_cv_cc_needs_belf=no
6949fi
6950rm -f core conftest.err conftest.$ac_objext \
6951    conftest$ac_exeext conftest.$ac_ext
6952     ac_ext=c
6953ac_cpp='$CPP $CPPFLAGS'
6954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6956ac_compiler_gnu=$ac_cv_c_compiler_gnu
6957
6958fi
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6960$as_echo "$lt_cv_cc_needs_belf" >&6; }
6961  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6962    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6963    CFLAGS="$SAVE_CFLAGS"
6964  fi
6965  ;;
6966sparc*-*solaris*)
6967  # Find out which ABI we are using.
6968  echo 'int i;' > conftest.$ac_ext
6969  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6970  (eval $ac_compile) 2>&5
6971  ac_status=$?
6972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6973  test $ac_status = 0; }; then
6974    case `/usr/bin/file conftest.o` in
6975    *64-bit*)
6976      case $lt_cv_prog_gnu_ld in
6977      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6978      *)
6979	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6980	  LD="${LD-ld} -64"
6981	fi
6982	;;
6983      esac
6984      ;;
6985    esac
6986  fi
6987  rm -rf conftest*
6988  ;;
6989esac
6990
6991need_locks="$enable_libtool_lock"
6992
6993if test -n "$ac_tool_prefix"; then
6994  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6995set dummy ${ac_tool_prefix}mt; ac_word=$2
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997$as_echo_n "checking for $ac_word... " >&6; }
6998if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6999  $as_echo_n "(cached) " >&6
7000else
7001  if test -n "$MANIFEST_TOOL"; then
7002  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7003else
7004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005for as_dir in $PATH
7006do
7007  IFS=$as_save_IFS
7008  test -z "$as_dir" && as_dir=.
7009    for ac_exec_ext in '' $ac_executable_extensions; do
7010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7011    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013    break 2
7014  fi
7015done
7016  done
7017IFS=$as_save_IFS
7018
7019fi
7020fi
7021MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7022if test -n "$MANIFEST_TOOL"; then
7023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7024$as_echo "$MANIFEST_TOOL" >&6; }
7025else
7026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027$as_echo "no" >&6; }
7028fi
7029
7030
7031fi
7032if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7033  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7034  # Extract the first word of "mt", so it can be a program name with args.
7035set dummy mt; ac_word=$2
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037$as_echo_n "checking for $ac_word... " >&6; }
7038if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7039  $as_echo_n "(cached) " >&6
7040else
7041  if test -n "$ac_ct_MANIFEST_TOOL"; then
7042  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7043else
7044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045for as_dir in $PATH
7046do
7047  IFS=$as_save_IFS
7048  test -z "$as_dir" && as_dir=.
7049    for ac_exec_ext in '' $ac_executable_extensions; do
7050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7051    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053    break 2
7054  fi
7055done
7056  done
7057IFS=$as_save_IFS
7058
7059fi
7060fi
7061ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7062if test -n "$ac_ct_MANIFEST_TOOL"; then
7063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7064$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7065else
7066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067$as_echo "no" >&6; }
7068fi
7069
7070  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7071    MANIFEST_TOOL=":"
7072  else
7073    case $cross_compiling:$ac_tool_warned in
7074yes:)
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077ac_tool_warned=yes ;;
7078esac
7079    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7080  fi
7081else
7082  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7083fi
7084
7085test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7087$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7088if ${lt_cv_path_mainfest_tool+:} false; then :
7089  $as_echo_n "(cached) " >&6
7090else
7091  lt_cv_path_mainfest_tool=no
7092  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7093  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7094  cat conftest.err >&5
7095  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7096    lt_cv_path_mainfest_tool=yes
7097  fi
7098  rm -f conftest*
7099fi
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7101$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7102if test "x$lt_cv_path_mainfest_tool" != xyes; then
7103  MANIFEST_TOOL=:
7104fi
7105
7106
7107
7108
7109
7110
7111  case $host_os in
7112    rhapsody* | darwin*)
7113    if test -n "$ac_tool_prefix"; then
7114  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7115set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117$as_echo_n "checking for $ac_word... " >&6; }
7118if ${ac_cv_prog_DSYMUTIL+:} false; then :
7119  $as_echo_n "(cached) " >&6
7120else
7121  if test -n "$DSYMUTIL"; then
7122  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7123else
7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125for as_dir in $PATH
7126do
7127  IFS=$as_save_IFS
7128  test -z "$as_dir" && as_dir=.
7129    for ac_exec_ext in '' $ac_executable_extensions; do
7130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133    break 2
7134  fi
7135done
7136  done
7137IFS=$as_save_IFS
7138
7139fi
7140fi
7141DSYMUTIL=$ac_cv_prog_DSYMUTIL
7142if test -n "$DSYMUTIL"; then
7143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7144$as_echo "$DSYMUTIL" >&6; }
7145else
7146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147$as_echo "no" >&6; }
7148fi
7149
7150
7151fi
7152if test -z "$ac_cv_prog_DSYMUTIL"; then
7153  ac_ct_DSYMUTIL=$DSYMUTIL
7154  # Extract the first word of "dsymutil", so it can be a program name with args.
7155set dummy dsymutil; ac_word=$2
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157$as_echo_n "checking for $ac_word... " >&6; }
7158if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7159  $as_echo_n "(cached) " >&6
7160else
7161  if test -n "$ac_ct_DSYMUTIL"; then
7162  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7163else
7164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165for as_dir in $PATH
7166do
7167  IFS=$as_save_IFS
7168  test -z "$as_dir" && as_dir=.
7169    for ac_exec_ext in '' $ac_executable_extensions; do
7170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173    break 2
7174  fi
7175done
7176  done
7177IFS=$as_save_IFS
7178
7179fi
7180fi
7181ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7182if test -n "$ac_ct_DSYMUTIL"; then
7183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7184$as_echo "$ac_ct_DSYMUTIL" >&6; }
7185else
7186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187$as_echo "no" >&6; }
7188fi
7189
7190  if test "x$ac_ct_DSYMUTIL" = x; then
7191    DSYMUTIL=":"
7192  else
7193    case $cross_compiling:$ac_tool_warned in
7194yes:)
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7197ac_tool_warned=yes ;;
7198esac
7199    DSYMUTIL=$ac_ct_DSYMUTIL
7200  fi
7201else
7202  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7203fi
7204
7205    if test -n "$ac_tool_prefix"; then
7206  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7207set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209$as_echo_n "checking for $ac_word... " >&6; }
7210if ${ac_cv_prog_NMEDIT+:} false; then :
7211  $as_echo_n "(cached) " >&6
7212else
7213  if test -n "$NMEDIT"; then
7214  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7215else
7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219  IFS=$as_save_IFS
7220  test -z "$as_dir" && as_dir=.
7221    for ac_exec_ext in '' $ac_executable_extensions; do
7222  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225    break 2
7226  fi
7227done
7228  done
7229IFS=$as_save_IFS
7230
7231fi
7232fi
7233NMEDIT=$ac_cv_prog_NMEDIT
7234if test -n "$NMEDIT"; then
7235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7236$as_echo "$NMEDIT" >&6; }
7237else
7238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239$as_echo "no" >&6; }
7240fi
7241
7242
7243fi
7244if test -z "$ac_cv_prog_NMEDIT"; then
7245  ac_ct_NMEDIT=$NMEDIT
7246  # Extract the first word of "nmedit", so it can be a program name with args.
7247set dummy nmedit; ac_word=$2
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249$as_echo_n "checking for $ac_word... " >&6; }
7250if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7251  $as_echo_n "(cached) " >&6
7252else
7253  if test -n "$ac_ct_NMEDIT"; then
7254  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7255else
7256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259  IFS=$as_save_IFS
7260  test -z "$as_dir" && as_dir=.
7261    for ac_exec_ext in '' $ac_executable_extensions; do
7262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265    break 2
7266  fi
7267done
7268  done
7269IFS=$as_save_IFS
7270
7271fi
7272fi
7273ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7274if test -n "$ac_ct_NMEDIT"; then
7275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7276$as_echo "$ac_ct_NMEDIT" >&6; }
7277else
7278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279$as_echo "no" >&6; }
7280fi
7281
7282  if test "x$ac_ct_NMEDIT" = x; then
7283    NMEDIT=":"
7284  else
7285    case $cross_compiling:$ac_tool_warned in
7286yes:)
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289ac_tool_warned=yes ;;
7290esac
7291    NMEDIT=$ac_ct_NMEDIT
7292  fi
7293else
7294  NMEDIT="$ac_cv_prog_NMEDIT"
7295fi
7296
7297    if test -n "$ac_tool_prefix"; then
7298  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7299set dummy ${ac_tool_prefix}lipo; ac_word=$2
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301$as_echo_n "checking for $ac_word... " >&6; }
7302if ${ac_cv_prog_LIPO+:} false; then :
7303  $as_echo_n "(cached) " >&6
7304else
7305  if test -n "$LIPO"; then
7306  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7307else
7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311  IFS=$as_save_IFS
7312  test -z "$as_dir" && as_dir=.
7313    for ac_exec_ext in '' $ac_executable_extensions; do
7314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317    break 2
7318  fi
7319done
7320  done
7321IFS=$as_save_IFS
7322
7323fi
7324fi
7325LIPO=$ac_cv_prog_LIPO
7326if test -n "$LIPO"; then
7327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7328$as_echo "$LIPO" >&6; }
7329else
7330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331$as_echo "no" >&6; }
7332fi
7333
7334
7335fi
7336if test -z "$ac_cv_prog_LIPO"; then
7337  ac_ct_LIPO=$LIPO
7338  # Extract the first word of "lipo", so it can be a program name with args.
7339set dummy lipo; ac_word=$2
7340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341$as_echo_n "checking for $ac_word... " >&6; }
7342if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7343  $as_echo_n "(cached) " >&6
7344else
7345  if test -n "$ac_ct_LIPO"; then
7346  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7347else
7348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349for as_dir in $PATH
7350do
7351  IFS=$as_save_IFS
7352  test -z "$as_dir" && as_dir=.
7353    for ac_exec_ext in '' $ac_executable_extensions; do
7354  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7355    ac_cv_prog_ac_ct_LIPO="lipo"
7356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357    break 2
7358  fi
7359done
7360  done
7361IFS=$as_save_IFS
7362
7363fi
7364fi
7365ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7366if test -n "$ac_ct_LIPO"; then
7367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7368$as_echo "$ac_ct_LIPO" >&6; }
7369else
7370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371$as_echo "no" >&6; }
7372fi
7373
7374  if test "x$ac_ct_LIPO" = x; then
7375    LIPO=":"
7376  else
7377    case $cross_compiling:$ac_tool_warned in
7378yes:)
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7381ac_tool_warned=yes ;;
7382esac
7383    LIPO=$ac_ct_LIPO
7384  fi
7385else
7386  LIPO="$ac_cv_prog_LIPO"
7387fi
7388
7389    if test -n "$ac_tool_prefix"; then
7390  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7391set dummy ${ac_tool_prefix}otool; ac_word=$2
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393$as_echo_n "checking for $ac_word... " >&6; }
7394if ${ac_cv_prog_OTOOL+:} false; then :
7395  $as_echo_n "(cached) " >&6
7396else
7397  if test -n "$OTOOL"; then
7398  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7399else
7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403  IFS=$as_save_IFS
7404  test -z "$as_dir" && as_dir=.
7405    for ac_exec_ext in '' $ac_executable_extensions; do
7406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409    break 2
7410  fi
7411done
7412  done
7413IFS=$as_save_IFS
7414
7415fi
7416fi
7417OTOOL=$ac_cv_prog_OTOOL
7418if test -n "$OTOOL"; then
7419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7420$as_echo "$OTOOL" >&6; }
7421else
7422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423$as_echo "no" >&6; }
7424fi
7425
7426
7427fi
7428if test -z "$ac_cv_prog_OTOOL"; then
7429  ac_ct_OTOOL=$OTOOL
7430  # Extract the first word of "otool", so it can be a program name with args.
7431set dummy otool; ac_word=$2
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433$as_echo_n "checking for $ac_word... " >&6; }
7434if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7435  $as_echo_n "(cached) " >&6
7436else
7437  if test -n "$ac_ct_OTOOL"; then
7438  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7439else
7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH
7442do
7443  IFS=$as_save_IFS
7444  test -z "$as_dir" && as_dir=.
7445    for ac_exec_ext in '' $ac_executable_extensions; do
7446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447    ac_cv_prog_ac_ct_OTOOL="otool"
7448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449    break 2
7450  fi
7451done
7452  done
7453IFS=$as_save_IFS
7454
7455fi
7456fi
7457ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7458if test -n "$ac_ct_OTOOL"; then
7459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7460$as_echo "$ac_ct_OTOOL" >&6; }
7461else
7462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463$as_echo "no" >&6; }
7464fi
7465
7466  if test "x$ac_ct_OTOOL" = x; then
7467    OTOOL=":"
7468  else
7469    case $cross_compiling:$ac_tool_warned in
7470yes:)
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7473ac_tool_warned=yes ;;
7474esac
7475    OTOOL=$ac_ct_OTOOL
7476  fi
7477else
7478  OTOOL="$ac_cv_prog_OTOOL"
7479fi
7480
7481    if test -n "$ac_tool_prefix"; then
7482  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7483set dummy ${ac_tool_prefix}otool64; ac_word=$2
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485$as_echo_n "checking for $ac_word... " >&6; }
7486if ${ac_cv_prog_OTOOL64+:} false; then :
7487  $as_echo_n "(cached) " >&6
7488else
7489  if test -n "$OTOOL64"; then
7490  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7491else
7492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493for as_dir in $PATH
7494do
7495  IFS=$as_save_IFS
7496  test -z "$as_dir" && as_dir=.
7497    for ac_exec_ext in '' $ac_executable_extensions; do
7498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501    break 2
7502  fi
7503done
7504  done
7505IFS=$as_save_IFS
7506
7507fi
7508fi
7509OTOOL64=$ac_cv_prog_OTOOL64
7510if test -n "$OTOOL64"; then
7511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7512$as_echo "$OTOOL64" >&6; }
7513else
7514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515$as_echo "no" >&6; }
7516fi
7517
7518
7519fi
7520if test -z "$ac_cv_prog_OTOOL64"; then
7521  ac_ct_OTOOL64=$OTOOL64
7522  # Extract the first word of "otool64", so it can be a program name with args.
7523set dummy otool64; ac_word=$2
7524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525$as_echo_n "checking for $ac_word... " >&6; }
7526if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7527  $as_echo_n "(cached) " >&6
7528else
7529  if test -n "$ac_ct_OTOOL64"; then
7530  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7531else
7532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535  IFS=$as_save_IFS
7536  test -z "$as_dir" && as_dir=.
7537    for ac_exec_ext in '' $ac_executable_extensions; do
7538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539    ac_cv_prog_ac_ct_OTOOL64="otool64"
7540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541    break 2
7542  fi
7543done
7544  done
7545IFS=$as_save_IFS
7546
7547fi
7548fi
7549ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7550if test -n "$ac_ct_OTOOL64"; then
7551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7552$as_echo "$ac_ct_OTOOL64" >&6; }
7553else
7554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555$as_echo "no" >&6; }
7556fi
7557
7558  if test "x$ac_ct_OTOOL64" = x; then
7559    OTOOL64=":"
7560  else
7561    case $cross_compiling:$ac_tool_warned in
7562yes:)
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7565ac_tool_warned=yes ;;
7566esac
7567    OTOOL64=$ac_ct_OTOOL64
7568  fi
7569else
7570  OTOOL64="$ac_cv_prog_OTOOL64"
7571fi
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7600$as_echo_n "checking for -single_module linker flag... " >&6; }
7601if ${lt_cv_apple_cc_single_mod+:} false; then :
7602  $as_echo_n "(cached) " >&6
7603else
7604  lt_cv_apple_cc_single_mod=no
7605      if test -z "${LT_MULTI_MODULE}"; then
7606	# By default we will add the -single_module flag. You can override
7607	# by either setting the environment variable LT_MULTI_MODULE
7608	# non-empty at configure time, or by adding -multi_module to the
7609	# link flags.
7610	rm -rf libconftest.dylib*
7611	echo "int foo(void){return 1;}" > conftest.c
7612	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7613-dynamiclib -Wl,-single_module conftest.c" >&5
7614	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7615	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7616        _lt_result=$?
7617	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7618	  lt_cv_apple_cc_single_mod=yes
7619	else
7620	  cat conftest.err >&5
7621	fi
7622	rm -rf libconftest.dylib*
7623	rm -f conftest.*
7624      fi
7625fi
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7627$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7628    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7629$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7630if ${lt_cv_ld_exported_symbols_list+:} false; then :
7631  $as_echo_n "(cached) " >&6
7632else
7633  lt_cv_ld_exported_symbols_list=no
7634      save_LDFLAGS=$LDFLAGS
7635      echo "_main" > conftest.sym
7636      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7637      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638/* end confdefs.h.  */
7639
7640int
7641main ()
7642{
7643
7644  ;
7645  return 0;
7646}
7647_ACEOF
7648if ac_fn_c_try_link "$LINENO"; then :
7649  lt_cv_ld_exported_symbols_list=yes
7650else
7651  lt_cv_ld_exported_symbols_list=no
7652fi
7653rm -f core conftest.err conftest.$ac_objext \
7654    conftest$ac_exeext conftest.$ac_ext
7655	LDFLAGS="$save_LDFLAGS"
7656
7657fi
7658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7659$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7660    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7661$as_echo_n "checking for -force_load linker flag... " >&6; }
7662if ${lt_cv_ld_force_load+:} false; then :
7663  $as_echo_n "(cached) " >&6
7664else
7665  lt_cv_ld_force_load=no
7666      cat > conftest.c << _LT_EOF
7667int forced_loaded() { return 2;}
7668_LT_EOF
7669      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7670      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7671      echo "$AR cru libconftest.a conftest.o" >&5
7672      $AR cru libconftest.a conftest.o 2>&5
7673      echo "$RANLIB libconftest.a" >&5
7674      $RANLIB libconftest.a 2>&5
7675      cat > conftest.c << _LT_EOF
7676int main() { return 0;}
7677_LT_EOF
7678      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7679      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7680      _lt_result=$?
7681      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7682	lt_cv_ld_force_load=yes
7683      else
7684	cat conftest.err >&5
7685      fi
7686        rm -f conftest.err libconftest.a conftest conftest.c
7687        rm -rf conftest.dSYM
7688
7689fi
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7691$as_echo "$lt_cv_ld_force_load" >&6; }
7692    case $host_os in
7693    rhapsody* | darwin1.[012])
7694      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7695    darwin1.*)
7696      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7697    darwin*) # darwin 5.x on
7698      # if running on 10.5 or later, the deployment target defaults
7699      # to the OS version, if on x86, and 10.4, the deployment
7700      # target defaults to 10.4. Don't you love it?
7701      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7702	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7703	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7704	10.[012]*)
7705	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7706	10.*)
7707	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7708      esac
7709    ;;
7710  esac
7711    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7712      _lt_dar_single_mod='$single_module'
7713    fi
7714    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7715      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7716    else
7717      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7718    fi
7719    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7720      _lt_dsymutil='~$DSYMUTIL $lib || :'
7721    else
7722      _lt_dsymutil=
7723    fi
7724    ;;
7725  esac
7726
7727ac_ext=c
7728ac_cpp='$CPP $CPPFLAGS'
7729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7731ac_compiler_gnu=$ac_cv_c_compiler_gnu
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7733$as_echo_n "checking how to run the C preprocessor... " >&6; }
7734# On Suns, sometimes $CPP names a directory.
7735if test -n "$CPP" && test -d "$CPP"; then
7736  CPP=
7737fi
7738if test -z "$CPP"; then
7739  if ${ac_cv_prog_CPP+:} false; then :
7740  $as_echo_n "(cached) " >&6
7741else
7742      # Double quotes because CPP needs to be expanded
7743    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7744    do
7745      ac_preproc_ok=false
7746for ac_c_preproc_warn_flag in '' yes
7747do
7748  # Use a header file that comes with gcc, so configuring glibc
7749  # with a fresh cross-compiler works.
7750  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7751  # <limits.h> exists even on freestanding compilers.
7752  # On the NeXT, cc -E runs the code through the compiler's parser,
7753  # not just through cpp. "Syntax error" is here to catch this case.
7754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755/* end confdefs.h.  */
7756#ifdef __STDC__
7757# include <limits.h>
7758#else
7759# include <assert.h>
7760#endif
7761		     Syntax error
7762_ACEOF
7763if ac_fn_c_try_cpp "$LINENO"; then :
7764
7765else
7766  # Broken: fails on valid input.
7767continue
7768fi
7769rm -f conftest.err conftest.i conftest.$ac_ext
7770
7771  # OK, works on sane cases.  Now check whether nonexistent headers
7772  # can be detected and how.
7773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774/* end confdefs.h.  */
7775#include <ac_nonexistent.h>
7776_ACEOF
7777if ac_fn_c_try_cpp "$LINENO"; then :
7778  # Broken: success on invalid input.
7779continue
7780else
7781  # Passes both tests.
7782ac_preproc_ok=:
7783break
7784fi
7785rm -f conftest.err conftest.i conftest.$ac_ext
7786
7787done
7788# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7789rm -f conftest.i conftest.err conftest.$ac_ext
7790if $ac_preproc_ok; then :
7791  break
7792fi
7793
7794    done
7795    ac_cv_prog_CPP=$CPP
7796
7797fi
7798  CPP=$ac_cv_prog_CPP
7799else
7800  ac_cv_prog_CPP=$CPP
7801fi
7802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7803$as_echo "$CPP" >&6; }
7804ac_preproc_ok=false
7805for ac_c_preproc_warn_flag in '' yes
7806do
7807  # Use a header file that comes with gcc, so configuring glibc
7808  # with a fresh cross-compiler works.
7809  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7810  # <limits.h> exists even on freestanding compilers.
7811  # On the NeXT, cc -E runs the code through the compiler's parser,
7812  # not just through cpp. "Syntax error" is here to catch this case.
7813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814/* end confdefs.h.  */
7815#ifdef __STDC__
7816# include <limits.h>
7817#else
7818# include <assert.h>
7819#endif
7820		     Syntax error
7821_ACEOF
7822if ac_fn_c_try_cpp "$LINENO"; then :
7823
7824else
7825  # Broken: fails on valid input.
7826continue
7827fi
7828rm -f conftest.err conftest.i conftest.$ac_ext
7829
7830  # OK, works on sane cases.  Now check whether nonexistent headers
7831  # can be detected and how.
7832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833/* end confdefs.h.  */
7834#include <ac_nonexistent.h>
7835_ACEOF
7836if ac_fn_c_try_cpp "$LINENO"; then :
7837  # Broken: success on invalid input.
7838continue
7839else
7840  # Passes both tests.
7841ac_preproc_ok=:
7842break
7843fi
7844rm -f conftest.err conftest.i conftest.$ac_ext
7845
7846done
7847# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7848rm -f conftest.i conftest.err conftest.$ac_ext
7849if $ac_preproc_ok; then :
7850
7851else
7852  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7854as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7855See \`config.log' for more details" "$LINENO" 5; }
7856fi
7857
7858ac_ext=c
7859ac_cpp='$CPP $CPPFLAGS'
7860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7862ac_compiler_gnu=$ac_cv_c_compiler_gnu
7863
7864
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7866$as_echo_n "checking for ANSI C header files... " >&6; }
7867if ${ac_cv_header_stdc+:} false; then :
7868  $as_echo_n "(cached) " >&6
7869else
7870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h.  */
7872#include <stdlib.h>
7873#include <stdarg.h>
7874#include <string.h>
7875#include <float.h>
7876
7877int
7878main ()
7879{
7880
7881  ;
7882  return 0;
7883}
7884_ACEOF
7885if ac_fn_c_try_compile "$LINENO"; then :
7886  ac_cv_header_stdc=yes
7887else
7888  ac_cv_header_stdc=no
7889fi
7890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891
7892if test $ac_cv_header_stdc = yes; then
7893  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895/* end confdefs.h.  */
7896#include <string.h>
7897
7898_ACEOF
7899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7900  $EGREP "memchr" >/dev/null 2>&1; then :
7901
7902else
7903  ac_cv_header_stdc=no
7904fi
7905rm -f conftest*
7906
7907fi
7908
7909if test $ac_cv_header_stdc = yes; then
7910  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912/* end confdefs.h.  */
7913#include <stdlib.h>
7914
7915_ACEOF
7916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7917  $EGREP "free" >/dev/null 2>&1; then :
7918
7919else
7920  ac_cv_header_stdc=no
7921fi
7922rm -f conftest*
7923
7924fi
7925
7926if test $ac_cv_header_stdc = yes; then
7927  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7928  if test "$cross_compiling" = yes; then :
7929  :
7930else
7931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932/* end confdefs.h.  */
7933#include <ctype.h>
7934#include <stdlib.h>
7935#if ((' ' & 0x0FF) == 0x020)
7936# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7937# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7938#else
7939# define ISLOWER(c) \
7940		   (('a' <= (c) && (c) <= 'i') \
7941		     || ('j' <= (c) && (c) <= 'r') \
7942		     || ('s' <= (c) && (c) <= 'z'))
7943# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7944#endif
7945
7946#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7947int
7948main ()
7949{
7950  int i;
7951  for (i = 0; i < 256; i++)
7952    if (XOR (islower (i), ISLOWER (i))
7953	|| toupper (i) != TOUPPER (i))
7954      return 2;
7955  return 0;
7956}
7957_ACEOF
7958if ac_fn_c_try_run "$LINENO"; then :
7959
7960else
7961  ac_cv_header_stdc=no
7962fi
7963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7964  conftest.$ac_objext conftest.beam conftest.$ac_ext
7965fi
7966
7967fi
7968fi
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7970$as_echo "$ac_cv_header_stdc" >&6; }
7971if test $ac_cv_header_stdc = yes; then
7972
7973$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7974
7975fi
7976
7977# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7978for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7979		  inttypes.h stdint.h unistd.h
7980do :
7981  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7982ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7983"
7984if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7985  cat >>confdefs.h <<_ACEOF
7986#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7987_ACEOF
7988
7989fi
7990
7991done
7992
7993
7994for ac_header in dlfcn.h
7995do :
7996  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7997"
7998if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7999  cat >>confdefs.h <<_ACEOF
8000#define HAVE_DLFCN_H 1
8001_ACEOF
8002
8003fi
8004
8005done
8006
8007
8008
8009
8010
8011# Set options
8012
8013
8014
8015
8016  enable_win32_dll=no
8017
8018
8019            # Check whether --enable-shared was given.
8020if test "${enable_shared+set}" = set; then :
8021  enableval=$enable_shared; p=${PACKAGE-default}
8022    case $enableval in
8023    yes) enable_shared=yes ;;
8024    no) enable_shared=no ;;
8025    *)
8026      enable_shared=no
8027      # Look at the argument we got.  We use all the common list separators.
8028      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8029      for pkg in $enableval; do
8030	IFS="$lt_save_ifs"
8031	if test "X$pkg" = "X$p"; then
8032	  enable_shared=yes
8033	fi
8034      done
8035      IFS="$lt_save_ifs"
8036      ;;
8037    esac
8038else
8039  enable_shared=yes
8040fi
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050  # Check whether --enable-static was given.
8051if test "${enable_static+set}" = set; then :
8052  enableval=$enable_static; p=${PACKAGE-default}
8053    case $enableval in
8054    yes) enable_static=yes ;;
8055    no) enable_static=no ;;
8056    *)
8057     enable_static=no
8058      # Look at the argument we got.  We use all the common list separators.
8059      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8060      for pkg in $enableval; do
8061	IFS="$lt_save_ifs"
8062	if test "X$pkg" = "X$p"; then
8063	  enable_static=yes
8064	fi
8065      done
8066      IFS="$lt_save_ifs"
8067      ;;
8068    esac
8069else
8070  enable_static=yes
8071fi
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082# Check whether --with-pic was given.
8083if test "${with_pic+set}" = set; then :
8084  withval=$with_pic; pic_mode="$withval"
8085else
8086  pic_mode=default
8087fi
8088
8089
8090test -z "$pic_mode" && pic_mode=default
8091
8092
8093
8094
8095
8096
8097
8098  # Check whether --enable-fast-install was given.
8099if test "${enable_fast_install+set}" = set; then :
8100  enableval=$enable_fast_install; p=${PACKAGE-default}
8101    case $enableval in
8102    yes) enable_fast_install=yes ;;
8103    no) enable_fast_install=no ;;
8104    *)
8105      enable_fast_install=no
8106      # Look at the argument we got.  We use all the common list separators.
8107      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8108      for pkg in $enableval; do
8109	IFS="$lt_save_ifs"
8110	if test "X$pkg" = "X$p"; then
8111	  enable_fast_install=yes
8112	fi
8113      done
8114      IFS="$lt_save_ifs"
8115      ;;
8116    esac
8117else
8118  enable_fast_install=yes
8119fi
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131# This can be used to rebuild libtool when needed
8132LIBTOOL_DEPS="$ltmain"
8133
8134# Always use our own libtool.
8135LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162test -z "$LN_S" && LN_S="ln -s"
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177if test -n "${ZSH_VERSION+set}" ; then
8178   setopt NO_GLOB_SUBST
8179fi
8180
8181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8182$as_echo_n "checking for objdir... " >&6; }
8183if ${lt_cv_objdir+:} false; then :
8184  $as_echo_n "(cached) " >&6
8185else
8186  rm -f .libs 2>/dev/null
8187mkdir .libs 2>/dev/null
8188if test -d .libs; then
8189  lt_cv_objdir=.libs
8190else
8191  # MS-DOS does not allow filenames that begin with a dot.
8192  lt_cv_objdir=_libs
8193fi
8194rmdir .libs 2>/dev/null
8195fi
8196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8197$as_echo "$lt_cv_objdir" >&6; }
8198objdir=$lt_cv_objdir
8199
8200
8201
8202
8203
8204cat >>confdefs.h <<_ACEOF
8205#define LT_OBJDIR "$lt_cv_objdir/"
8206_ACEOF
8207
8208
8209
8210
8211case $host_os in
8212aix3*)
8213  # AIX sometimes has problems with the GCC collect2 program.  For some
8214  # reason, if we set the COLLECT_NAMES environment variable, the problems
8215  # vanish in a puff of smoke.
8216  if test "X${COLLECT_NAMES+set}" != Xset; then
8217    COLLECT_NAMES=
8218    export COLLECT_NAMES
8219  fi
8220  ;;
8221esac
8222
8223# Global variables:
8224ofile=libtool
8225can_build_shared=yes
8226
8227# All known linkers require a `.a' archive for static linking (except MSVC,
8228# which needs '.lib').
8229libext=a
8230
8231with_gnu_ld="$lt_cv_prog_gnu_ld"
8232
8233old_CC="$CC"
8234old_CFLAGS="$CFLAGS"
8235
8236# Set sane defaults for various variables
8237test -z "$CC" && CC=cc
8238test -z "$LTCC" && LTCC=$CC
8239test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8240test -z "$LD" && LD=ld
8241test -z "$ac_objext" && ac_objext=o
8242
8243for cc_temp in $compiler""; do
8244  case $cc_temp in
8245    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8246    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8247    \-*) ;;
8248    *) break;;
8249  esac
8250done
8251cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8252
8253
8254# Only perform the check for file, if the check method requires it
8255test -z "$MAGIC_CMD" && MAGIC_CMD=file
8256case $deplibs_check_method in
8257file_magic*)
8258  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8260$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8261if ${lt_cv_path_MAGIC_CMD+:} false; then :
8262  $as_echo_n "(cached) " >&6
8263else
8264  case $MAGIC_CMD in
8265[\\/*] |  ?:[\\/]*)
8266  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8267  ;;
8268*)
8269  lt_save_MAGIC_CMD="$MAGIC_CMD"
8270  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8271  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8272  for ac_dir in $ac_dummy; do
8273    IFS="$lt_save_ifs"
8274    test -z "$ac_dir" && ac_dir=.
8275    if test -f $ac_dir/${ac_tool_prefix}file; then
8276      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8277      if test -n "$file_magic_test_file"; then
8278	case $deplibs_check_method in
8279	"file_magic "*)
8280	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8281	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8282	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8283	    $EGREP "$file_magic_regex" > /dev/null; then
8284	    :
8285	  else
8286	    cat <<_LT_EOF 1>&2
8287
8288*** Warning: the command libtool uses to detect shared libraries,
8289*** $file_magic_cmd, produces output that libtool cannot recognize.
8290*** The result is that libtool may fail to recognize shared libraries
8291*** as such.  This will affect the creation of libtool libraries that
8292*** depend on shared libraries, but programs linked with such libtool
8293*** libraries will work regardless of this problem.  Nevertheless, you
8294*** may want to report the problem to your system manager and/or to
8295*** bug-libtool@gnu.org
8296
8297_LT_EOF
8298	  fi ;;
8299	esac
8300      fi
8301      break
8302    fi
8303  done
8304  IFS="$lt_save_ifs"
8305  MAGIC_CMD="$lt_save_MAGIC_CMD"
8306  ;;
8307esac
8308fi
8309
8310MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8311if test -n "$MAGIC_CMD"; then
8312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8313$as_echo "$MAGIC_CMD" >&6; }
8314else
8315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316$as_echo "no" >&6; }
8317fi
8318
8319
8320
8321
8322
8323if test -z "$lt_cv_path_MAGIC_CMD"; then
8324  if test -n "$ac_tool_prefix"; then
8325    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8326$as_echo_n "checking for file... " >&6; }
8327if ${lt_cv_path_MAGIC_CMD+:} false; then :
8328  $as_echo_n "(cached) " >&6
8329else
8330  case $MAGIC_CMD in
8331[\\/*] |  ?:[\\/]*)
8332  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8333  ;;
8334*)
8335  lt_save_MAGIC_CMD="$MAGIC_CMD"
8336  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8337  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8338  for ac_dir in $ac_dummy; do
8339    IFS="$lt_save_ifs"
8340    test -z "$ac_dir" && ac_dir=.
8341    if test -f $ac_dir/file; then
8342      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8343      if test -n "$file_magic_test_file"; then
8344	case $deplibs_check_method in
8345	"file_magic "*)
8346	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8347	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8348	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8349	    $EGREP "$file_magic_regex" > /dev/null; then
8350	    :
8351	  else
8352	    cat <<_LT_EOF 1>&2
8353
8354*** Warning: the command libtool uses to detect shared libraries,
8355*** $file_magic_cmd, produces output that libtool cannot recognize.
8356*** The result is that libtool may fail to recognize shared libraries
8357*** as such.  This will affect the creation of libtool libraries that
8358*** depend on shared libraries, but programs linked with such libtool
8359*** libraries will work regardless of this problem.  Nevertheless, you
8360*** may want to report the problem to your system manager and/or to
8361*** bug-libtool@gnu.org
8362
8363_LT_EOF
8364	  fi ;;
8365	esac
8366      fi
8367      break
8368    fi
8369  done
8370  IFS="$lt_save_ifs"
8371  MAGIC_CMD="$lt_save_MAGIC_CMD"
8372  ;;
8373esac
8374fi
8375
8376MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8377if test -n "$MAGIC_CMD"; then
8378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8379$as_echo "$MAGIC_CMD" >&6; }
8380else
8381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382$as_echo "no" >&6; }
8383fi
8384
8385
8386  else
8387    MAGIC_CMD=:
8388  fi
8389fi
8390
8391  fi
8392  ;;
8393esac
8394
8395# Use C for the default configuration in the libtool script
8396
8397lt_save_CC="$CC"
8398ac_ext=c
8399ac_cpp='$CPP $CPPFLAGS'
8400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8402ac_compiler_gnu=$ac_cv_c_compiler_gnu
8403
8404
8405# Source file extension for C test sources.
8406ac_ext=c
8407
8408# Object file extension for compiled C test sources.
8409objext=o
8410objext=$objext
8411
8412# Code to be used in simple compile tests
8413lt_simple_compile_test_code="int some_variable = 0;"
8414
8415# Code to be used in simple link tests
8416lt_simple_link_test_code='int main(){return(0);}'
8417
8418
8419
8420
8421
8422
8423
8424# If no C compiler was specified, use CC.
8425LTCC=${LTCC-"$CC"}
8426
8427# If no C compiler flags were specified, use CFLAGS.
8428LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8429
8430# Allow CC to be a program name with arguments.
8431compiler=$CC
8432
8433# Save the default compiler, since it gets overwritten when the other
8434# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8435compiler_DEFAULT=$CC
8436
8437# save warnings/boilerplate of simple test code
8438ac_outfile=conftest.$ac_objext
8439echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8440eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8441_lt_compiler_boilerplate=`cat conftest.err`
8442$RM conftest*
8443
8444ac_outfile=conftest.$ac_objext
8445echo "$lt_simple_link_test_code" >conftest.$ac_ext
8446eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8447_lt_linker_boilerplate=`cat conftest.err`
8448$RM -r conftest*
8449
8450
8451## CAVEAT EMPTOR:
8452## There is no encapsulation within the following macros, do not change
8453## the running order or otherwise move them around unless you know exactly
8454## what you are doing...
8455if test -n "$compiler"; then
8456
8457lt_prog_compiler_no_builtin_flag=
8458
8459if test "$GCC" = yes; then
8460  case $cc_basename in
8461  nvcc*)
8462    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8463  *)
8464    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8465  esac
8466
8467  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8468$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8469if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8470  $as_echo_n "(cached) " >&6
8471else
8472  lt_cv_prog_compiler_rtti_exceptions=no
8473   ac_outfile=conftest.$ac_objext
8474   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8475   lt_compiler_flag="-fno-rtti -fno-exceptions"
8476   # Insert the option either (1) after the last *FLAGS variable, or
8477   # (2) before a word containing "conftest.", or (3) at the end.
8478   # Note that $ac_compile itself does not contain backslashes and begins
8479   # with a dollar sign (not a hyphen), so the echo should work correctly.
8480   # The option is referenced via a variable to avoid confusing sed.
8481   lt_compile=`echo "$ac_compile" | $SED \
8482   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8483   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8484   -e 's:$: $lt_compiler_flag:'`
8485   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8486   (eval "$lt_compile" 2>conftest.err)
8487   ac_status=$?
8488   cat conftest.err >&5
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   if (exit $ac_status) && test -s "$ac_outfile"; then
8491     # The compiler can only warn and ignore the option if not recognized
8492     # So say no if there are warnings other than the usual output.
8493     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8494     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8495     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8496       lt_cv_prog_compiler_rtti_exceptions=yes
8497     fi
8498   fi
8499   $RM conftest*
8500
8501fi
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8503$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8504
8505if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8506    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8507else
8508    :
8509fi
8510
8511fi
8512
8513
8514
8515
8516
8517
8518  lt_prog_compiler_wl=
8519lt_prog_compiler_pic=
8520lt_prog_compiler_static=
8521
8522
8523  if test "$GCC" = yes; then
8524    lt_prog_compiler_wl='-Wl,'
8525    lt_prog_compiler_static='-static'
8526
8527    case $host_os in
8528      aix*)
8529      # All AIX code is PIC.
8530      if test "$host_cpu" = ia64; then
8531	# AIX 5 now supports IA64 processor
8532	lt_prog_compiler_static='-Bstatic'
8533      fi
8534      ;;
8535
8536    amigaos*)
8537      case $host_cpu in
8538      powerpc)
8539            # see comment about AmigaOS4 .so support
8540            lt_prog_compiler_pic='-fPIC'
8541        ;;
8542      m68k)
8543            # FIXME: we need at least 68020 code to build shared libraries, but
8544            # adding the `-m68020' flag to GCC prevents building anything better,
8545            # like `-m68040'.
8546            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8547        ;;
8548      esac
8549      ;;
8550
8551    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8552      # PIC is the default for these OSes.
8553      ;;
8554
8555    mingw* | cygwin* | pw32* | os2* | cegcc*)
8556      # This hack is so that the source file can tell whether it is being
8557      # built for inclusion in a dll (and should export symbols for example).
8558      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8559      # (--disable-auto-import) libraries
8560      lt_prog_compiler_pic='-DDLL_EXPORT'
8561      ;;
8562
8563    darwin* | rhapsody*)
8564      # PIC is the default on this platform
8565      # Common symbols not allowed in MH_DYLIB files
8566      lt_prog_compiler_pic='-fno-common'
8567      ;;
8568
8569    haiku*)
8570      # PIC is the default for Haiku.
8571      # The "-static" flag exists, but is broken.
8572      lt_prog_compiler_static=
8573      ;;
8574
8575    hpux*)
8576      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8577      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8578      # sets the default TLS model and affects inlining.
8579      case $host_cpu in
8580      hppa*64*)
8581	# +Z the default
8582	;;
8583      *)
8584	lt_prog_compiler_pic='-fPIC'
8585	;;
8586      esac
8587      ;;
8588
8589    interix[3-9]*)
8590      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8591      # Instead, we relocate shared libraries at runtime.
8592      ;;
8593
8594    msdosdjgpp*)
8595      # Just because we use GCC doesn't mean we suddenly get shared libraries
8596      # on systems that don't support them.
8597      lt_prog_compiler_can_build_shared=no
8598      enable_shared=no
8599      ;;
8600
8601    *nto* | *qnx*)
8602      # QNX uses GNU C++, but need to define -shared option too, otherwise
8603      # it will coredump.
8604      lt_prog_compiler_pic='-fPIC -shared'
8605      ;;
8606
8607    sysv4*MP*)
8608      if test -d /usr/nec; then
8609	lt_prog_compiler_pic=-Kconform_pic
8610      fi
8611      ;;
8612
8613    *)
8614      lt_prog_compiler_pic='-fPIC'
8615      ;;
8616    esac
8617
8618    case $cc_basename in
8619    nvcc*) # Cuda Compiler Driver 2.2
8620      lt_prog_compiler_wl='-Xlinker '
8621      lt_prog_compiler_pic='-Xcompiler -fPIC'
8622      ;;
8623    esac
8624  else
8625    # PORTME Check for flag to pass linker flags through the system compiler.
8626    case $host_os in
8627    aix*)
8628      lt_prog_compiler_wl='-Wl,'
8629      if test "$host_cpu" = ia64; then
8630	# AIX 5 now supports IA64 processor
8631	lt_prog_compiler_static='-Bstatic'
8632      else
8633	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8634      fi
8635      ;;
8636
8637    mingw* | cygwin* | pw32* | os2* | cegcc*)
8638      # This hack is so that the source file can tell whether it is being
8639      # built for inclusion in a dll (and should export symbols for example).
8640      lt_prog_compiler_pic='-DDLL_EXPORT'
8641      ;;
8642
8643    hpux9* | hpux10* | hpux11*)
8644      lt_prog_compiler_wl='-Wl,'
8645      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8646      # not for PA HP-UX.
8647      case $host_cpu in
8648      hppa*64*|ia64*)
8649	# +Z the default
8650	;;
8651      *)
8652	lt_prog_compiler_pic='+Z'
8653	;;
8654      esac
8655      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8656      lt_prog_compiler_static='${wl}-a ${wl}archive'
8657      ;;
8658
8659    irix5* | irix6* | nonstopux*)
8660      lt_prog_compiler_wl='-Wl,'
8661      # PIC (with -KPIC) is the default.
8662      lt_prog_compiler_static='-non_shared'
8663      ;;
8664
8665    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8666      case $cc_basename in
8667      # old Intel for x86_64 which still supported -KPIC.
8668      ecc*)
8669	lt_prog_compiler_wl='-Wl,'
8670	lt_prog_compiler_pic='-KPIC'
8671	lt_prog_compiler_static='-static'
8672        ;;
8673      # icc used to be incompatible with GCC.
8674      # ICC 10 doesn't accept -KPIC any more.
8675      icc* | ifort*)
8676	lt_prog_compiler_wl='-Wl,'
8677	lt_prog_compiler_pic='-fPIC'
8678	lt_prog_compiler_static='-static'
8679        ;;
8680      # Lahey Fortran 8.1.
8681      lf95*)
8682	lt_prog_compiler_wl='-Wl,'
8683	lt_prog_compiler_pic='--shared'
8684	lt_prog_compiler_static='--static'
8685	;;
8686      nagfor*)
8687	# NAG Fortran compiler
8688	lt_prog_compiler_wl='-Wl,-Wl,,'
8689	lt_prog_compiler_pic='-PIC'
8690	lt_prog_compiler_static='-Bstatic'
8691	;;
8692      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8693        # Portland Group compilers (*not* the Pentium gcc compiler,
8694	# which looks to be a dead project)
8695	lt_prog_compiler_wl='-Wl,'
8696	lt_prog_compiler_pic='-fpic'
8697	lt_prog_compiler_static='-Bstatic'
8698        ;;
8699      ccc*)
8700        lt_prog_compiler_wl='-Wl,'
8701        # All Alpha code is PIC.
8702        lt_prog_compiler_static='-non_shared'
8703        ;;
8704      xl* | bgxl* | bgf* | mpixl*)
8705	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8706	lt_prog_compiler_wl='-Wl,'
8707	lt_prog_compiler_pic='-qpic'
8708	lt_prog_compiler_static='-qstaticlink'
8709	;;
8710      *)
8711	case `$CC -V 2>&1 | sed 5q` in
8712	*Sun\ F* | *Sun*Fortran*)
8713	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8714	  lt_prog_compiler_pic='-KPIC'
8715	  lt_prog_compiler_static='-Bstatic'
8716	  lt_prog_compiler_wl=''
8717	  ;;
8718	*Sun\ C*)
8719	  # Sun C 5.9
8720	  lt_prog_compiler_pic='-KPIC'
8721	  lt_prog_compiler_static='-Bstatic'
8722	  lt_prog_compiler_wl='-Wl,'
8723	  ;;
8724	esac
8725	;;
8726      esac
8727      ;;
8728
8729    newsos6)
8730      lt_prog_compiler_pic='-KPIC'
8731      lt_prog_compiler_static='-Bstatic'
8732      ;;
8733
8734    *nto* | *qnx*)
8735      # QNX uses GNU C++, but need to define -shared option too, otherwise
8736      # it will coredump.
8737      lt_prog_compiler_pic='-fPIC -shared'
8738      ;;
8739
8740    osf3* | osf4* | osf5*)
8741      lt_prog_compiler_wl='-Wl,'
8742      # All OSF/1 code is PIC.
8743      lt_prog_compiler_static='-non_shared'
8744      ;;
8745
8746    rdos*)
8747      lt_prog_compiler_static='-non_shared'
8748      ;;
8749
8750    solaris*)
8751      lt_prog_compiler_pic='-KPIC'
8752      lt_prog_compiler_static='-Bstatic'
8753      case $cc_basename in
8754      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8755	lt_prog_compiler_wl='-Qoption ld ';;
8756      *)
8757	lt_prog_compiler_wl='-Wl,';;
8758      esac
8759      ;;
8760
8761    sunos4*)
8762      lt_prog_compiler_wl='-Qoption ld '
8763      lt_prog_compiler_pic='-PIC'
8764      lt_prog_compiler_static='-Bstatic'
8765      ;;
8766
8767    sysv4 | sysv4.2uw2* | sysv4.3*)
8768      lt_prog_compiler_wl='-Wl,'
8769      lt_prog_compiler_pic='-KPIC'
8770      lt_prog_compiler_static='-Bstatic'
8771      ;;
8772
8773    sysv4*MP*)
8774      if test -d /usr/nec ;then
8775	lt_prog_compiler_pic='-Kconform_pic'
8776	lt_prog_compiler_static='-Bstatic'
8777      fi
8778      ;;
8779
8780    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8781      lt_prog_compiler_wl='-Wl,'
8782      lt_prog_compiler_pic='-KPIC'
8783      lt_prog_compiler_static='-Bstatic'
8784      ;;
8785
8786    unicos*)
8787      lt_prog_compiler_wl='-Wl,'
8788      lt_prog_compiler_can_build_shared=no
8789      ;;
8790
8791    uts4*)
8792      lt_prog_compiler_pic='-pic'
8793      lt_prog_compiler_static='-Bstatic'
8794      ;;
8795
8796    *)
8797      lt_prog_compiler_can_build_shared=no
8798      ;;
8799    esac
8800  fi
8801
8802case $host_os in
8803  # For platforms which do not support PIC, -DPIC is meaningless:
8804  *djgpp*)
8805    lt_prog_compiler_pic=
8806    ;;
8807  *)
8808    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8809    ;;
8810esac
8811
8812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8813$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8814if ${lt_cv_prog_compiler_pic+:} false; then :
8815  $as_echo_n "(cached) " >&6
8816else
8817  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8818fi
8819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8820$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8821lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8822
8823#
8824# Check to make sure the PIC flag actually works.
8825#
8826if test -n "$lt_prog_compiler_pic"; then
8827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8828$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8829if ${lt_cv_prog_compiler_pic_works+:} false; then :
8830  $as_echo_n "(cached) " >&6
8831else
8832  lt_cv_prog_compiler_pic_works=no
8833   ac_outfile=conftest.$ac_objext
8834   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8835   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8836   # Insert the option either (1) after the last *FLAGS variable, or
8837   # (2) before a word containing "conftest.", or (3) at the end.
8838   # Note that $ac_compile itself does not contain backslashes and begins
8839   # with a dollar sign (not a hyphen), so the echo should work correctly.
8840   # The option is referenced via a variable to avoid confusing sed.
8841   lt_compile=`echo "$ac_compile" | $SED \
8842   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8843   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8844   -e 's:$: $lt_compiler_flag:'`
8845   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8846   (eval "$lt_compile" 2>conftest.err)
8847   ac_status=$?
8848   cat conftest.err >&5
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   if (exit $ac_status) && test -s "$ac_outfile"; then
8851     # The compiler can only warn and ignore the option if not recognized
8852     # So say no if there are warnings other than the usual output.
8853     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8854     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8855     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8856       lt_cv_prog_compiler_pic_works=yes
8857     fi
8858   fi
8859   $RM conftest*
8860
8861fi
8862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8863$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8864
8865if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8866    case $lt_prog_compiler_pic in
8867     "" | " "*) ;;
8868     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8869     esac
8870else
8871    lt_prog_compiler_pic=
8872     lt_prog_compiler_can_build_shared=no
8873fi
8874
8875fi
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887#
8888# Check to make sure the static flag actually works.
8889#
8890wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8892$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8893if ${lt_cv_prog_compiler_static_works+:} false; then :
8894  $as_echo_n "(cached) " >&6
8895else
8896  lt_cv_prog_compiler_static_works=no
8897   save_LDFLAGS="$LDFLAGS"
8898   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8899   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8900   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8901     # The linker can only warn and ignore the option if not recognized
8902     # So say no if there are warnings
8903     if test -s conftest.err; then
8904       # Append any errors to the config.log.
8905       cat conftest.err 1>&5
8906       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8907       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8908       if diff conftest.exp conftest.er2 >/dev/null; then
8909         lt_cv_prog_compiler_static_works=yes
8910       fi
8911     else
8912       lt_cv_prog_compiler_static_works=yes
8913     fi
8914   fi
8915   $RM -r conftest*
8916   LDFLAGS="$save_LDFLAGS"
8917
8918fi
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8920$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8921
8922if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8923    :
8924else
8925    lt_prog_compiler_static=
8926fi
8927
8928
8929
8930
8931
8932
8933
8934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8935$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8936if ${lt_cv_prog_compiler_c_o+:} false; then :
8937  $as_echo_n "(cached) " >&6
8938else
8939  lt_cv_prog_compiler_c_o=no
8940   $RM -r conftest 2>/dev/null
8941   mkdir conftest
8942   cd conftest
8943   mkdir out
8944   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8945
8946   lt_compiler_flag="-o out/conftest2.$ac_objext"
8947   # Insert the option either (1) after the last *FLAGS variable, or
8948   # (2) before a word containing "conftest.", or (3) at the end.
8949   # Note that $ac_compile itself does not contain backslashes and begins
8950   # with a dollar sign (not a hyphen), so the echo should work correctly.
8951   lt_compile=`echo "$ac_compile" | $SED \
8952   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8953   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8954   -e 's:$: $lt_compiler_flag:'`
8955   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8956   (eval "$lt_compile" 2>out/conftest.err)
8957   ac_status=$?
8958   cat out/conftest.err >&5
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8961   then
8962     # The compiler can only warn and ignore the option if not recognized
8963     # So say no if there are warnings
8964     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8965     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8966     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8967       lt_cv_prog_compiler_c_o=yes
8968     fi
8969   fi
8970   chmod u+w . 2>&5
8971   $RM conftest*
8972   # SGI C++ compiler will create directory out/ii_files/ for
8973   # template instantiation
8974   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8975   $RM out/* && rmdir out
8976   cd ..
8977   $RM -r conftest
8978   $RM conftest*
8979
8980fi
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8982$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8983
8984
8985
8986
8987
8988
8989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8990$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8991if ${lt_cv_prog_compiler_c_o+:} false; then :
8992  $as_echo_n "(cached) " >&6
8993else
8994  lt_cv_prog_compiler_c_o=no
8995   $RM -r conftest 2>/dev/null
8996   mkdir conftest
8997   cd conftest
8998   mkdir out
8999   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9000
9001   lt_compiler_flag="-o out/conftest2.$ac_objext"
9002   # Insert the option either (1) after the last *FLAGS variable, or
9003   # (2) before a word containing "conftest.", or (3) at the end.
9004   # Note that $ac_compile itself does not contain backslashes and begins
9005   # with a dollar sign (not a hyphen), so the echo should work correctly.
9006   lt_compile=`echo "$ac_compile" | $SED \
9007   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9008   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9009   -e 's:$: $lt_compiler_flag:'`
9010   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9011   (eval "$lt_compile" 2>out/conftest.err)
9012   ac_status=$?
9013   cat out/conftest.err >&5
9014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9016   then
9017     # The compiler can only warn and ignore the option if not recognized
9018     # So say no if there are warnings
9019     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9020     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9021     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9022       lt_cv_prog_compiler_c_o=yes
9023     fi
9024   fi
9025   chmod u+w . 2>&5
9026   $RM conftest*
9027   # SGI C++ compiler will create directory out/ii_files/ for
9028   # template instantiation
9029   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9030   $RM out/* && rmdir out
9031   cd ..
9032   $RM -r conftest
9033   $RM conftest*
9034
9035fi
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9037$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9038
9039
9040
9041
9042hard_links="nottested"
9043if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9044  # do not overwrite the value of need_locks provided by the user
9045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9046$as_echo_n "checking if we can lock with hard links... " >&6; }
9047  hard_links=yes
9048  $RM conftest*
9049  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9050  touch conftest.a
9051  ln conftest.a conftest.b 2>&5 || hard_links=no
9052  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9054$as_echo "$hard_links" >&6; }
9055  if test "$hard_links" = no; then
9056    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9057$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9058    need_locks=warn
9059  fi
9060else
9061  need_locks=no
9062fi
9063
9064
9065
9066
9067
9068
9069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9070$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9071
9072  runpath_var=
9073  allow_undefined_flag=
9074  always_export_symbols=no
9075  archive_cmds=
9076  archive_expsym_cmds=
9077  compiler_needs_object=no
9078  enable_shared_with_static_runtimes=no
9079  export_dynamic_flag_spec=
9080  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9081  hardcode_automatic=no
9082  hardcode_direct=no
9083  hardcode_direct_absolute=no
9084  hardcode_libdir_flag_spec=
9085  hardcode_libdir_flag_spec_ld=
9086  hardcode_libdir_separator=
9087  hardcode_minus_L=no
9088  hardcode_shlibpath_var=unsupported
9089  inherit_rpath=no
9090  link_all_deplibs=unknown
9091  module_cmds=
9092  module_expsym_cmds=
9093  old_archive_from_new_cmds=
9094  old_archive_from_expsyms_cmds=
9095  thread_safe_flag_spec=
9096  whole_archive_flag_spec=
9097  # include_expsyms should be a list of space-separated symbols to be *always*
9098  # included in the symbol list
9099  include_expsyms=
9100  # exclude_expsyms can be an extended regexp of symbols to exclude
9101  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9102  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9103  # as well as any symbol that contains `d'.
9104  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9105  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9106  # platforms (ab)use it in PIC code, but their linkers get confused if
9107  # the symbol is explicitly referenced.  Since portable code cannot
9108  # rely on this symbol name, it's probably fine to never include it in
9109  # preloaded symbol tables.
9110  # Exclude shared library initialization/finalization symbols.
9111  extract_expsyms_cmds=
9112
9113  case $host_os in
9114  cygwin* | mingw* | pw32* | cegcc*)
9115    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9116    # When not using gcc, we currently assume that we are using
9117    # Microsoft Visual C++.
9118    if test "$GCC" != yes; then
9119      with_gnu_ld=no
9120    fi
9121    ;;
9122  interix*)
9123    # we just hope/assume this is gcc and not c89 (= MSVC++)
9124    with_gnu_ld=yes
9125    ;;
9126  openbsd*)
9127    with_gnu_ld=no
9128    ;;
9129  esac
9130
9131  ld_shlibs=yes
9132
9133  # On some targets, GNU ld is compatible enough with the native linker
9134  # that we're better off using the native interface for both.
9135  lt_use_gnu_ld_interface=no
9136  if test "$with_gnu_ld" = yes; then
9137    case $host_os in
9138      aix*)
9139	# The AIX port of GNU ld has always aspired to compatibility
9140	# with the native linker.  However, as the warning in the GNU ld
9141	# block says, versions before 2.19.5* couldn't really create working
9142	# shared libraries, regardless of the interface used.
9143	case `$LD -v 2>&1` in
9144	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9145	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9146	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9147	  *)
9148	    lt_use_gnu_ld_interface=yes
9149	    ;;
9150	esac
9151	;;
9152      *)
9153	lt_use_gnu_ld_interface=yes
9154	;;
9155    esac
9156  fi
9157
9158  if test "$lt_use_gnu_ld_interface" = yes; then
9159    # If archive_cmds runs LD, not CC, wlarc should be empty
9160    wlarc='${wl}'
9161
9162    # Set some defaults for GNU ld with shared library support. These
9163    # are reset later if shared libraries are not supported. Putting them
9164    # here allows them to be overridden if necessary.
9165    runpath_var=LD_RUN_PATH
9166    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9167    export_dynamic_flag_spec='${wl}--export-dynamic'
9168    # ancient GNU ld didn't support --whole-archive et. al.
9169    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9170      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9171    else
9172      whole_archive_flag_spec=
9173    fi
9174    supports_anon_versioning=no
9175    case `$LD -v 2>&1` in
9176      *GNU\ gold*) supports_anon_versioning=yes ;;
9177      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9178      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9179      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9180      *\ 2.11.*) ;; # other 2.11 versions
9181      *) supports_anon_versioning=yes ;;
9182    esac
9183
9184    # See if GNU ld supports shared libraries.
9185    case $host_os in
9186    aix[3-9]*)
9187      # On AIX/PPC, the GNU linker is very broken
9188      if test "$host_cpu" != ia64; then
9189	ld_shlibs=no
9190	cat <<_LT_EOF 1>&2
9191
9192*** Warning: the GNU linker, at least up to release 2.19, is reported
9193*** to be unable to reliably create shared libraries on AIX.
9194*** Therefore, libtool is disabling shared libraries support.  If you
9195*** really care for shared libraries, you may want to install binutils
9196*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9197*** You will then need to restart the configuration process.
9198
9199_LT_EOF
9200      fi
9201      ;;
9202
9203    amigaos*)
9204      case $host_cpu in
9205      powerpc)
9206            # see comment about AmigaOS4 .so support
9207            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9208            archive_expsym_cmds=''
9209        ;;
9210      m68k)
9211            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)'
9212            hardcode_libdir_flag_spec='-L$libdir'
9213            hardcode_minus_L=yes
9214        ;;
9215      esac
9216      ;;
9217
9218    beos*)
9219      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9220	allow_undefined_flag=unsupported
9221	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9222	# support --undefined.  This deserves some investigation.  FIXME
9223	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9224      else
9225	ld_shlibs=no
9226      fi
9227      ;;
9228
9229    cygwin* | mingw* | pw32* | cegcc*)
9230      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9231      # as there is no search path for DLLs.
9232      hardcode_libdir_flag_spec='-L$libdir'
9233      export_dynamic_flag_spec='${wl}--export-all-symbols'
9234      allow_undefined_flag=unsupported
9235      always_export_symbols=no
9236      enable_shared_with_static_runtimes=yes
9237      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'
9238      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9239
9240      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9241        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9242	# If the export-symbols file already is a .def file (1st line
9243	# is EXPORTS), use it as is; otherwise, prepend...
9244	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9245	  cp $export_symbols $output_objdir/$soname.def;
9246	else
9247	  echo EXPORTS > $output_objdir/$soname.def;
9248	  cat $export_symbols >> $output_objdir/$soname.def;
9249	fi~
9250	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9251      else
9252	ld_shlibs=no
9253      fi
9254      ;;
9255
9256    haiku*)
9257      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258      link_all_deplibs=yes
9259      ;;
9260
9261    interix[3-9]*)
9262      hardcode_direct=no
9263      hardcode_shlibpath_var=no
9264      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9265      export_dynamic_flag_spec='${wl}-E'
9266      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9267      # Instead, shared libraries are loaded at an image base (0x10000000 by
9268      # default) and relocated if they conflict, which is a slow very memory
9269      # consuming and fragmenting process.  To avoid this, we pick a random,
9270      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9271      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9272      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9273      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'
9274      ;;
9275
9276    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9277      tmp_diet=no
9278      if test "$host_os" = linux-dietlibc; then
9279	case $cc_basename in
9280	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9281	esac
9282      fi
9283      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9284	 && test "$tmp_diet" = no
9285      then
9286	tmp_addflag=' $pic_flag'
9287	tmp_sharedflag='-shared'
9288	case $cc_basename,$host_cpu in
9289        pgcc*)				# Portland Group C compiler
9290	  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'
9291	  tmp_addflag=' $pic_flag'
9292	  ;;
9293	pgf77* | pgf90* | pgf95* | pgfortran*)
9294					# Portland Group f77 and f90 compilers
9295	  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'
9296	  tmp_addflag=' $pic_flag -Mnomain' ;;
9297	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9298	  tmp_addflag=' -i_dynamic' ;;
9299	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9300	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9301	ifc* | ifort*)			# Intel Fortran compiler
9302	  tmp_addflag=' -nofor_main' ;;
9303	lf95*)				# Lahey Fortran 8.1
9304	  whole_archive_flag_spec=
9305	  tmp_sharedflag='--shared' ;;
9306	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9307	  tmp_sharedflag='-qmkshrobj'
9308	  tmp_addflag= ;;
9309	nvcc*)	# Cuda Compiler Driver 2.2
9310	  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'
9311	  compiler_needs_object=yes
9312	  ;;
9313	esac
9314	case `$CC -V 2>&1 | sed 5q` in
9315	*Sun\ C*)			# Sun C 5.9
9316	  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'
9317	  compiler_needs_object=yes
9318	  tmp_sharedflag='-G' ;;
9319	*Sun\ F*)			# Sun Fortran 8.3
9320	  tmp_sharedflag='-G' ;;
9321	esac
9322	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9323
9324        if test "x$supports_anon_versioning" = xyes; then
9325          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9326	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9327	    echo "local: *; };" >> $output_objdir/$libname.ver~
9328	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9329        fi
9330
9331	case $cc_basename in
9332	xlf* | bgf* | bgxlf* | mpixlf*)
9333	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9334	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9335	  hardcode_libdir_flag_spec=
9336	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9337	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9338	  if test "x$supports_anon_versioning" = xyes; then
9339	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9340	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9341	      echo "local: *; };" >> $output_objdir/$libname.ver~
9342	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9343	  fi
9344	  ;;
9345	esac
9346      else
9347        ld_shlibs=no
9348      fi
9349      ;;
9350
9351    netbsd*)
9352      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9353	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9354	wlarc=
9355      else
9356	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9357	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9358      fi
9359      ;;
9360
9361    solaris*)
9362      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9363	ld_shlibs=no
9364	cat <<_LT_EOF 1>&2
9365
9366*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9367*** create shared libraries on Solaris systems.  Therefore, libtool
9368*** is disabling shared libraries support.  We urge you to upgrade GNU
9369*** binutils to release 2.9.1 or newer.  Another option is to modify
9370*** your PATH or compiler configuration so that the native linker is
9371*** used, and then restart.
9372
9373_LT_EOF
9374      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9375	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9376	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9377      else
9378	ld_shlibs=no
9379      fi
9380      ;;
9381
9382    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9383      case `$LD -v 2>&1` in
9384        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9385	ld_shlibs=no
9386	cat <<_LT_EOF 1>&2
9387
9388*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9389*** reliably create shared libraries on SCO systems.  Therefore, libtool
9390*** is disabling shared libraries support.  We urge you to upgrade GNU
9391*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9392*** your PATH or compiler configuration so that the native linker is
9393*** used, and then restart.
9394
9395_LT_EOF
9396	;;
9397	*)
9398	  # For security reasons, it is highly recommended that you always
9399	  # use absolute paths for naming shared libraries, and exclude the
9400	  # DT_RUNPATH tag from executables and libraries.  But doing so
9401	  # requires that you compile everything twice, which is a pain.
9402	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9403	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9404	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9406	  else
9407	    ld_shlibs=no
9408	  fi
9409	;;
9410      esac
9411      ;;
9412
9413    sunos4*)
9414      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9415      wlarc=
9416      hardcode_direct=yes
9417      hardcode_shlibpath_var=no
9418      ;;
9419
9420    *)
9421      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9422	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9423	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9424      else
9425	ld_shlibs=no
9426      fi
9427      ;;
9428    esac
9429
9430    if test "$ld_shlibs" = no; then
9431      runpath_var=
9432      hardcode_libdir_flag_spec=
9433      export_dynamic_flag_spec=
9434      whole_archive_flag_spec=
9435    fi
9436  else
9437    # PORTME fill in a description of your system's linker (not GNU ld)
9438    case $host_os in
9439    aix3*)
9440      allow_undefined_flag=unsupported
9441      always_export_symbols=yes
9442      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'
9443      # Note: this linker hardcodes the directories in LIBPATH if there
9444      # are no directories specified by -L.
9445      hardcode_minus_L=yes
9446      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9447	# Neither direct hardcoding nor static linking is supported with a
9448	# broken collect2.
9449	hardcode_direct=unsupported
9450      fi
9451      ;;
9452
9453    aix[4-9]*)
9454      if test "$host_cpu" = ia64; then
9455	# On IA64, the linker does run time linking by default, so we don't
9456	# have to do anything special.
9457	aix_use_runtimelinking=no
9458	exp_sym_flag='-Bexport'
9459	no_entry_flag=""
9460      else
9461	# If we're using GNU nm, then we don't want the "-C" option.
9462	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9463	# Also, AIX nm treats weak defined symbols like other global
9464	# defined symbols, whereas GNU nm marks them as "W".
9465	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9466	  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'
9467	else
9468	  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'
9469	fi
9470	aix_use_runtimelinking=no
9471
9472	# Test if we are trying to use run time linking or normal
9473	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9474	# need to do runtime linking.
9475	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9476	  for ld_flag in $LDFLAGS; do
9477	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9478	    aix_use_runtimelinking=yes
9479	    break
9480	  fi
9481	  done
9482	  ;;
9483	esac
9484
9485	exp_sym_flag='-bexport'
9486	no_entry_flag='-bnoentry'
9487      fi
9488
9489      # When large executables or shared objects are built, AIX ld can
9490      # have problems creating the table of contents.  If linking a library
9491      # or program results in "error TOC overflow" add -mminimal-toc to
9492      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9493      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9494
9495      archive_cmds=''
9496      hardcode_direct=yes
9497      hardcode_direct_absolute=yes
9498      hardcode_libdir_separator=':'
9499      link_all_deplibs=yes
9500      file_list_spec='${wl}-f,'
9501
9502      if test "$GCC" = yes; then
9503	case $host_os in aix4.[012]|aix4.[012].*)
9504	# We only want to do this on AIX 4.2 and lower, the check
9505	# below for broken collect2 doesn't work under 4.3+
9506	  collect2name=`${CC} -print-prog-name=collect2`
9507	  if test -f "$collect2name" &&
9508	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9509	  then
9510	  # We have reworked collect2
9511	  :
9512	  else
9513	  # We have old collect2
9514	  hardcode_direct=unsupported
9515	  # It fails to find uninstalled libraries when the uninstalled
9516	  # path is not listed in the libpath.  Setting hardcode_minus_L
9517	  # to unsupported forces relinking
9518	  hardcode_minus_L=yes
9519	  hardcode_libdir_flag_spec='-L$libdir'
9520	  hardcode_libdir_separator=
9521	  fi
9522	  ;;
9523	esac
9524	shared_flag='-shared'
9525	if test "$aix_use_runtimelinking" = yes; then
9526	  shared_flag="$shared_flag "'${wl}-G'
9527	fi
9528      else
9529	# not using gcc
9530	if test "$host_cpu" = ia64; then
9531	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9532	# chokes on -Wl,-G. The following line is correct:
9533	  shared_flag='-G'
9534	else
9535	  if test "$aix_use_runtimelinking" = yes; then
9536	    shared_flag='${wl}-G'
9537	  else
9538	    shared_flag='${wl}-bM:SRE'
9539	  fi
9540	fi
9541      fi
9542
9543      export_dynamic_flag_spec='${wl}-bexpall'
9544      # It seems that -bexpall does not export symbols beginning with
9545      # underscore (_), so it is better to generate a list of symbols to export.
9546      always_export_symbols=yes
9547      if test "$aix_use_runtimelinking" = yes; then
9548	# Warning - without using the other runtime loading flags (-brtl),
9549	# -berok will link without error, but may produce a broken library.
9550	allow_undefined_flag='-berok'
9551        # Determine the default libpath from the value encoded in an
9552        # empty executable.
9553        if test "${lt_cv_aix_libpath+set}" = set; then
9554  aix_libpath=$lt_cv_aix_libpath
9555else
9556  if ${lt_cv_aix_libpath_+:} false; then :
9557  $as_echo_n "(cached) " >&6
9558else
9559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560/* end confdefs.h.  */
9561
9562int
9563main ()
9564{
9565
9566  ;
9567  return 0;
9568}
9569_ACEOF
9570if ac_fn_c_try_link "$LINENO"; then :
9571
9572  lt_aix_libpath_sed='
9573      /Import File Strings/,/^$/ {
9574	  /^0/ {
9575	      s/^0  *\([^ ]*\) *$/\1/
9576	      p
9577	  }
9578      }'
9579  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9580  # Check for a 64-bit object if we didn't find anything.
9581  if test -z "$lt_cv_aix_libpath_"; then
9582    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9583  fi
9584fi
9585rm -f core conftest.err conftest.$ac_objext \
9586    conftest$ac_exeext conftest.$ac_ext
9587  if test -z "$lt_cv_aix_libpath_"; then
9588    lt_cv_aix_libpath_="/usr/lib:/lib"
9589  fi
9590
9591fi
9592
9593  aix_libpath=$lt_cv_aix_libpath_
9594fi
9595
9596        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9597        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"
9598      else
9599	if test "$host_cpu" = ia64; then
9600	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9601	  allow_undefined_flag="-z nodefs"
9602	  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"
9603	else
9604	 # Determine the default libpath from the value encoded in an
9605	 # empty executable.
9606	 if test "${lt_cv_aix_libpath+set}" = set; then
9607  aix_libpath=$lt_cv_aix_libpath
9608else
9609  if ${lt_cv_aix_libpath_+:} false; then :
9610  $as_echo_n "(cached) " >&6
9611else
9612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613/* end confdefs.h.  */
9614
9615int
9616main ()
9617{
9618
9619  ;
9620  return 0;
9621}
9622_ACEOF
9623if ac_fn_c_try_link "$LINENO"; then :
9624
9625  lt_aix_libpath_sed='
9626      /Import File Strings/,/^$/ {
9627	  /^0/ {
9628	      s/^0  *\([^ ]*\) *$/\1/
9629	      p
9630	  }
9631      }'
9632  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9633  # Check for a 64-bit object if we didn't find anything.
9634  if test -z "$lt_cv_aix_libpath_"; then
9635    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9636  fi
9637fi
9638rm -f core conftest.err conftest.$ac_objext \
9639    conftest$ac_exeext conftest.$ac_ext
9640  if test -z "$lt_cv_aix_libpath_"; then
9641    lt_cv_aix_libpath_="/usr/lib:/lib"
9642  fi
9643
9644fi
9645
9646  aix_libpath=$lt_cv_aix_libpath_
9647fi
9648
9649	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9650	  # Warning - without using the other run time loading flags,
9651	  # -berok will link without error, but may produce a broken library.
9652	  no_undefined_flag=' ${wl}-bernotok'
9653	  allow_undefined_flag=' ${wl}-berok'
9654	  if test "$with_gnu_ld" = yes; then
9655	    # We only use this code for GNU lds that support --whole-archive.
9656	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9657	  else
9658	    # Exported symbols can be pulled into shared objects from archives
9659	    whole_archive_flag_spec='$convenience'
9660	  fi
9661	  archive_cmds_need_lc=yes
9662	  # This is similar to how AIX traditionally builds its shared libraries.
9663	  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'
9664	fi
9665      fi
9666      ;;
9667
9668    amigaos*)
9669      case $host_cpu in
9670      powerpc)
9671            # see comment about AmigaOS4 .so support
9672            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9673            archive_expsym_cmds=''
9674        ;;
9675      m68k)
9676            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)'
9677            hardcode_libdir_flag_spec='-L$libdir'
9678            hardcode_minus_L=yes
9679        ;;
9680      esac
9681      ;;
9682
9683    bsdi[45]*)
9684      export_dynamic_flag_spec=-rdynamic
9685      ;;
9686
9687    cygwin* | mingw* | pw32* | cegcc*)
9688      # When not using gcc, we currently assume that we are using
9689      # Microsoft Visual C++.
9690      # hardcode_libdir_flag_spec is actually meaningless, as there is
9691      # no search path for DLLs.
9692      case $cc_basename in
9693      cl*)
9694	# Native MSVC
9695	hardcode_libdir_flag_spec=' '
9696	allow_undefined_flag=unsupported
9697	always_export_symbols=yes
9698	file_list_spec='@'
9699	# Tell ltmain to make .lib files, not .a files.
9700	libext=lib
9701	# Tell ltmain to make .dll files, not .so files.
9702	shrext_cmds=".dll"
9703	# FIXME: Setting linknames here is a bad hack.
9704	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9705	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9706	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9707	  else
9708	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9709	  fi~
9710	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9711	  linknames='
9712	# The linker will not automatically build a static lib if we build a DLL.
9713	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9714	enable_shared_with_static_runtimes=yes
9715	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9716	# Don't use ranlib
9717	old_postinstall_cmds='chmod 644 $oldlib'
9718	postlink_cmds='lt_outputfile="@OUTPUT@"~
9719	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9720	  case $lt_outputfile in
9721	    *.exe|*.EXE) ;;
9722	    *)
9723	      lt_outputfile="$lt_outputfile.exe"
9724	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9725	      ;;
9726	  esac~
9727	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9728	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9729	    $RM "$lt_outputfile.manifest";
9730	  fi'
9731	;;
9732      *)
9733	# Assume MSVC wrapper
9734	hardcode_libdir_flag_spec=' '
9735	allow_undefined_flag=unsupported
9736	# Tell ltmain to make .lib files, not .a files.
9737	libext=lib
9738	# Tell ltmain to make .dll files, not .so files.
9739	shrext_cmds=".dll"
9740	# FIXME: Setting linknames here is a bad hack.
9741	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9742	# The linker will automatically build a .lib file if we build a DLL.
9743	old_archive_from_new_cmds='true'
9744	# FIXME: Should let the user specify the lib program.
9745	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9746	enable_shared_with_static_runtimes=yes
9747	;;
9748      esac
9749      ;;
9750
9751    darwin* | rhapsody*)
9752
9753
9754  archive_cmds_need_lc=no
9755  hardcode_direct=no
9756  hardcode_automatic=yes
9757  hardcode_shlibpath_var=unsupported
9758  if test "$lt_cv_ld_force_load" = "yes"; then
9759    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\"`'
9760  else
9761    whole_archive_flag_spec=''
9762  fi
9763  link_all_deplibs=yes
9764  allow_undefined_flag="$_lt_dar_allow_undefined"
9765  case $cc_basename in
9766     ifort*) _lt_dar_can_shared=yes ;;
9767     *) _lt_dar_can_shared=$GCC ;;
9768  esac
9769  if test "$_lt_dar_can_shared" = "yes"; then
9770    output_verbose_link_cmd=func_echo_all
9771    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9772    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9773    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}"
9774    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}"
9775
9776  else
9777  ld_shlibs=no
9778  fi
9779
9780      ;;
9781
9782    dgux*)
9783      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9784      hardcode_libdir_flag_spec='-L$libdir'
9785      hardcode_shlibpath_var=no
9786      ;;
9787
9788    freebsd1*)
9789      ld_shlibs=no
9790      ;;
9791
9792    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9793    # support.  Future versions do this automatically, but an explicit c++rt0.o
9794    # does not break anything, and helps significantly (at the cost of a little
9795    # extra space).
9796    freebsd2.2*)
9797      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9798      hardcode_libdir_flag_spec='-R$libdir'
9799      hardcode_direct=yes
9800      hardcode_shlibpath_var=no
9801      ;;
9802
9803    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9804    freebsd2*)
9805      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9806      hardcode_direct=yes
9807      hardcode_minus_L=yes
9808      hardcode_shlibpath_var=no
9809      ;;
9810
9811    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9812    freebsd* | dragonfly*)
9813      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9814      hardcode_libdir_flag_spec='-R$libdir'
9815      hardcode_direct=yes
9816      hardcode_shlibpath_var=no
9817      ;;
9818
9819    hpux9*)
9820      if test "$GCC" = yes; then
9821	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'
9822      else
9823	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'
9824      fi
9825      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9826      hardcode_libdir_separator=:
9827      hardcode_direct=yes
9828
9829      # hardcode_minus_L: Not really in the search PATH,
9830      # but as the default location of the library.
9831      hardcode_minus_L=yes
9832      export_dynamic_flag_spec='${wl}-E'
9833      ;;
9834
9835    hpux10*)
9836      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9837	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9838      else
9839	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9840      fi
9841      if test "$with_gnu_ld" = no; then
9842	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9843	hardcode_libdir_flag_spec_ld='+b $libdir'
9844	hardcode_libdir_separator=:
9845	hardcode_direct=yes
9846	hardcode_direct_absolute=yes
9847	export_dynamic_flag_spec='${wl}-E'
9848	# hardcode_minus_L: Not really in the search PATH,
9849	# but as the default location of the library.
9850	hardcode_minus_L=yes
9851      fi
9852      ;;
9853
9854    hpux11*)
9855      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9856	case $host_cpu in
9857	hppa*64*)
9858	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9859	  ;;
9860	ia64*)
9861	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9862	  ;;
9863	*)
9864	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9865	  ;;
9866	esac
9867      else
9868	case $host_cpu in
9869	hppa*64*)
9870	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9871	  ;;
9872	ia64*)
9873	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9874	  ;;
9875	*)
9876
9877	  # Older versions of the 11.00 compiler do not understand -b yet
9878	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9879	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9880$as_echo_n "checking if $CC understands -b... " >&6; }
9881if ${lt_cv_prog_compiler__b+:} false; then :
9882  $as_echo_n "(cached) " >&6
9883else
9884  lt_cv_prog_compiler__b=no
9885   save_LDFLAGS="$LDFLAGS"
9886   LDFLAGS="$LDFLAGS -b"
9887   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9888   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9889     # The linker can only warn and ignore the option if not recognized
9890     # So say no if there are warnings
9891     if test -s conftest.err; then
9892       # Append any errors to the config.log.
9893       cat conftest.err 1>&5
9894       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9895       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9896       if diff conftest.exp conftest.er2 >/dev/null; then
9897         lt_cv_prog_compiler__b=yes
9898       fi
9899     else
9900       lt_cv_prog_compiler__b=yes
9901     fi
9902   fi
9903   $RM -r conftest*
9904   LDFLAGS="$save_LDFLAGS"
9905
9906fi
9907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9908$as_echo "$lt_cv_prog_compiler__b" >&6; }
9909
9910if test x"$lt_cv_prog_compiler__b" = xyes; then
9911    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9912else
9913    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9914fi
9915
9916	  ;;
9917	esac
9918      fi
9919      if test "$with_gnu_ld" = no; then
9920	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9921	hardcode_libdir_separator=:
9922
9923	case $host_cpu in
9924	hppa*64*|ia64*)
9925	  hardcode_direct=no
9926	  hardcode_shlibpath_var=no
9927	  ;;
9928	*)
9929	  hardcode_direct=yes
9930	  hardcode_direct_absolute=yes
9931	  export_dynamic_flag_spec='${wl}-E'
9932
9933	  # hardcode_minus_L: Not really in the search PATH,
9934	  # but as the default location of the library.
9935	  hardcode_minus_L=yes
9936	  ;;
9937	esac
9938      fi
9939      ;;
9940
9941    irix5* | irix6* | nonstopux*)
9942      if test "$GCC" = yes; then
9943	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'
9944	# Try to use the -exported_symbol ld option, if it does not
9945	# work, assume that -exports_file does not work either and
9946	# implicitly export all symbols.
9947	# This should be the same for all languages, so no per-tag cache variable.
9948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9949$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9950if ${lt_cv_irix_exported_symbol+:} false; then :
9951  $as_echo_n "(cached) " >&6
9952else
9953  save_LDFLAGS="$LDFLAGS"
9954	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9955	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956/* end confdefs.h.  */
9957int foo (void) { return 0; }
9958_ACEOF
9959if ac_fn_c_try_link "$LINENO"; then :
9960  lt_cv_irix_exported_symbol=yes
9961else
9962  lt_cv_irix_exported_symbol=no
9963fi
9964rm -f core conftest.err conftest.$ac_objext \
9965    conftest$ac_exeext conftest.$ac_ext
9966           LDFLAGS="$save_LDFLAGS"
9967fi
9968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9969$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9970	if test "$lt_cv_irix_exported_symbol" = yes; then
9971          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'
9972	fi
9973      else
9974	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'
9975	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'
9976      fi
9977      archive_cmds_need_lc='no'
9978      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9979      hardcode_libdir_separator=:
9980      inherit_rpath=yes
9981      link_all_deplibs=yes
9982      ;;
9983
9984    netbsd*)
9985      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9986	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9987      else
9988	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9989      fi
9990      hardcode_libdir_flag_spec='-R$libdir'
9991      hardcode_direct=yes
9992      hardcode_shlibpath_var=no
9993      ;;
9994
9995    newsos6)
9996      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9997      hardcode_direct=yes
9998      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9999      hardcode_libdir_separator=:
10000      hardcode_shlibpath_var=no
10001      ;;
10002
10003    *nto* | *qnx*)
10004      ;;
10005
10006    openbsd*)
10007      if test -f /usr/libexec/ld.so; then
10008	hardcode_direct=yes
10009	hardcode_shlibpath_var=no
10010	hardcode_direct_absolute=yes
10011	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10012	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10013	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10014	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10015	  export_dynamic_flag_spec='${wl}-E'
10016	else
10017	  case $host_os in
10018	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10019	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10020	     hardcode_libdir_flag_spec='-R$libdir'
10021	     ;;
10022	   *)
10023	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10024	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10025	     ;;
10026	  esac
10027	fi
10028      else
10029	ld_shlibs=no
10030      fi
10031      ;;
10032
10033    os2*)
10034      hardcode_libdir_flag_spec='-L$libdir'
10035      hardcode_minus_L=yes
10036      allow_undefined_flag=unsupported
10037      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'
10038      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10039      ;;
10040
10041    osf3*)
10042      if test "$GCC" = yes; then
10043	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10044	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'
10045      else
10046	allow_undefined_flag=' -expect_unresolved \*'
10047	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'
10048      fi
10049      archive_cmds_need_lc='no'
10050      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10051      hardcode_libdir_separator=:
10052      ;;
10053
10054    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10055      if test "$GCC" = yes; then
10056	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10057	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'
10058	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10059      else
10060	allow_undefined_flag=' -expect_unresolved \*'
10061	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'
10062	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~
10063	$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'
10064
10065	# Both c and cxx compiler support -rpath directly
10066	hardcode_libdir_flag_spec='-rpath $libdir'
10067      fi
10068      archive_cmds_need_lc='no'
10069      hardcode_libdir_separator=:
10070      ;;
10071
10072    solaris*)
10073      no_undefined_flag=' -z defs'
10074      if test "$GCC" = yes; then
10075	wlarc='${wl}'
10076	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10077	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10078	  $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'
10079      else
10080	case `$CC -V 2>&1` in
10081	*"Compilers 5.0"*)
10082	  wlarc=''
10083	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10084	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10085	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10086	  ;;
10087	*)
10088	  wlarc='${wl}'
10089	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10090	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10091	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10092	  ;;
10093	esac
10094      fi
10095      hardcode_libdir_flag_spec='-R$libdir'
10096      hardcode_shlibpath_var=no
10097      case $host_os in
10098      solaris2.[0-5] | solaris2.[0-5].*) ;;
10099      *)
10100	# The compiler driver will combine and reorder linker options,
10101	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10102	# but is careful enough not to reorder.
10103	# Supported since Solaris 2.6 (maybe 2.5.1?)
10104	if test "$GCC" = yes; then
10105	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10106	else
10107	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10108	fi
10109	;;
10110      esac
10111      link_all_deplibs=yes
10112      ;;
10113
10114    sunos4*)
10115      if test "x$host_vendor" = xsequent; then
10116	# Use $CC to link under sequent, because it throws in some extra .o
10117	# files that make .init and .fini sections work.
10118	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10119      else
10120	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10121      fi
10122      hardcode_libdir_flag_spec='-L$libdir'
10123      hardcode_direct=yes
10124      hardcode_minus_L=yes
10125      hardcode_shlibpath_var=no
10126      ;;
10127
10128    sysv4)
10129      case $host_vendor in
10130	sni)
10131	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10132	  hardcode_direct=yes # is this really true???
10133	;;
10134	siemens)
10135	  ## LD is ld it makes a PLAMLIB
10136	  ## CC just makes a GrossModule.
10137	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10138	  reload_cmds='$CC -r -o $output$reload_objs'
10139	  hardcode_direct=no
10140        ;;
10141	motorola)
10142	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10143	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10144	;;
10145      esac
10146      runpath_var='LD_RUN_PATH'
10147      hardcode_shlibpath_var=no
10148      ;;
10149
10150    sysv4.3*)
10151      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10152      hardcode_shlibpath_var=no
10153      export_dynamic_flag_spec='-Bexport'
10154      ;;
10155
10156    sysv4*MP*)
10157      if test -d /usr/nec; then
10158	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10159	hardcode_shlibpath_var=no
10160	runpath_var=LD_RUN_PATH
10161	hardcode_runpath_var=yes
10162	ld_shlibs=yes
10163      fi
10164      ;;
10165
10166    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10167      no_undefined_flag='${wl}-z,text'
10168      archive_cmds_need_lc=no
10169      hardcode_shlibpath_var=no
10170      runpath_var='LD_RUN_PATH'
10171
10172      if test "$GCC" = yes; then
10173	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10174	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10175      else
10176	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10177	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178      fi
10179      ;;
10180
10181    sysv5* | sco3.2v5* | sco5v6*)
10182      # Note: We can NOT use -z defs as we might desire, because we do not
10183      # link with -lc, and that would cause any symbols used from libc to
10184      # always be unresolved, which means just about no library would
10185      # ever link correctly.  If we're not using GNU ld we use -z text
10186      # though, which does catch some bad symbols but isn't as heavy-handed
10187      # as -z defs.
10188      no_undefined_flag='${wl}-z,text'
10189      allow_undefined_flag='${wl}-z,nodefs'
10190      archive_cmds_need_lc=no
10191      hardcode_shlibpath_var=no
10192      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10193      hardcode_libdir_separator=':'
10194      link_all_deplibs=yes
10195      export_dynamic_flag_spec='${wl}-Bexport'
10196      runpath_var='LD_RUN_PATH'
10197
10198      if test "$GCC" = yes; then
10199	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10200	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10201      else
10202	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10203	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10204      fi
10205      ;;
10206
10207    uts4*)
10208      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10209      hardcode_libdir_flag_spec='-L$libdir'
10210      hardcode_shlibpath_var=no
10211      ;;
10212
10213    *)
10214      ld_shlibs=no
10215      ;;
10216    esac
10217
10218    if test x$host_vendor = xsni; then
10219      case $host in
10220      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10221	export_dynamic_flag_spec='${wl}-Blargedynsym'
10222	;;
10223      esac
10224    fi
10225  fi
10226
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10228$as_echo "$ld_shlibs" >&6; }
10229test "$ld_shlibs" = no && can_build_shared=no
10230
10231with_gnu_ld=$with_gnu_ld
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247#
10248# Do we need to explicitly link libc?
10249#
10250case "x$archive_cmds_need_lc" in
10251x|xyes)
10252  # Assume -lc should be added
10253  archive_cmds_need_lc=yes
10254
10255  if test "$enable_shared" = yes && test "$GCC" = yes; then
10256    case $archive_cmds in
10257    *'~'*)
10258      # FIXME: we may have to deal with multi-command sequences.
10259      ;;
10260    '$CC '*)
10261      # Test whether the compiler implicitly links with -lc since on some
10262      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10263      # to ld, don't add -lc before -lgcc.
10264      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10265$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10266if ${lt_cv_archive_cmds_need_lc+:} false; then :
10267  $as_echo_n "(cached) " >&6
10268else
10269  $RM conftest*
10270	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10271
10272	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10273  (eval $ac_compile) 2>&5
10274  ac_status=$?
10275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10276  test $ac_status = 0; } 2>conftest.err; then
10277	  soname=conftest
10278	  lib=conftest
10279	  libobjs=conftest.$ac_objext
10280	  deplibs=
10281	  wl=$lt_prog_compiler_wl
10282	  pic_flag=$lt_prog_compiler_pic
10283	  compiler_flags=-v
10284	  linker_flags=-v
10285	  verstring=
10286	  output_objdir=.
10287	  libname=conftest
10288	  lt_save_allow_undefined_flag=$allow_undefined_flag
10289	  allow_undefined_flag=
10290	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10291  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10292  ac_status=$?
10293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10294  test $ac_status = 0; }
10295	  then
10296	    lt_cv_archive_cmds_need_lc=no
10297	  else
10298	    lt_cv_archive_cmds_need_lc=yes
10299	  fi
10300	  allow_undefined_flag=$lt_save_allow_undefined_flag
10301	else
10302	  cat conftest.err 1>&5
10303	fi
10304	$RM conftest*
10305
10306fi
10307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10308$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10309      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10310      ;;
10311    esac
10312  fi
10313  ;;
10314esac
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10473$as_echo_n "checking dynamic linker characteristics... " >&6; }
10474
10475if test "$GCC" = yes; then
10476  case $host_os in
10477    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10478    *) lt_awk_arg="/^libraries:/" ;;
10479  esac
10480  case $host_os in
10481    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10482    *) lt_sed_strip_eq="s,=/,/,g" ;;
10483  esac
10484  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10485  case $lt_search_path_spec in
10486  *\;*)
10487    # if the path contains ";" then we assume it to be the separator
10488    # otherwise default to the standard path separator (i.e. ":") - it is
10489    # assumed that no part of a normal pathname contains ";" but that should
10490    # okay in the real world where ";" in dirpaths is itself problematic.
10491    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10492    ;;
10493  *)
10494    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10495    ;;
10496  esac
10497  # Ok, now we have the path, separated by spaces, we can step through it
10498  # and add multilib dir if necessary.
10499  lt_tmp_lt_search_path_spec=
10500  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10501  for lt_sys_path in $lt_search_path_spec; do
10502    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10503      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10504    else
10505      test -d "$lt_sys_path" && \
10506	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10507    fi
10508  done
10509  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10510BEGIN {RS=" "; FS="/|\n";} {
10511  lt_foo="";
10512  lt_count=0;
10513  for (lt_i = NF; lt_i > 0; lt_i--) {
10514    if ($lt_i != "" && $lt_i != ".") {
10515      if ($lt_i == "..") {
10516        lt_count++;
10517      } else {
10518        if (lt_count == 0) {
10519          lt_foo="/" $lt_i lt_foo;
10520        } else {
10521          lt_count--;
10522        }
10523      }
10524    }
10525  }
10526  if (lt_foo != "") { lt_freq[lt_foo]++; }
10527  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10528}'`
10529  # AWK program above erroneously prepends '/' to C:/dos/paths
10530  # for these hosts.
10531  case $host_os in
10532    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10533      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10534  esac
10535  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10536else
10537  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10538fi
10539library_names_spec=
10540libname_spec='lib$name'
10541soname_spec=
10542shrext_cmds=".so"
10543postinstall_cmds=
10544postuninstall_cmds=
10545finish_cmds=
10546finish_eval=
10547shlibpath_var=
10548shlibpath_overrides_runpath=unknown
10549version_type=none
10550dynamic_linker="$host_os ld.so"
10551sys_lib_dlsearch_path_spec="/lib /usr/lib"
10552need_lib_prefix=unknown
10553hardcode_into_libs=no
10554
10555# when you set need_version to no, make sure it does not cause -set_version
10556# flags to be left without arguments
10557need_version=unknown
10558
10559case $host_os in
10560aix3*)
10561  version_type=linux
10562  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10563  shlibpath_var=LIBPATH
10564
10565  # AIX 3 has no versioning support, so we append a major version to the name.
10566  soname_spec='${libname}${release}${shared_ext}$major'
10567  ;;
10568
10569aix[4-9]*)
10570  version_type=linux
10571  need_lib_prefix=no
10572  need_version=no
10573  hardcode_into_libs=yes
10574  if test "$host_cpu" = ia64; then
10575    # AIX 5 supports IA64
10576    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10577    shlibpath_var=LD_LIBRARY_PATH
10578  else
10579    # With GCC up to 2.95.x, collect2 would create an import file
10580    # for dependence libraries.  The import file would start with
10581    # the line `#! .'.  This would cause the generated library to
10582    # depend on `.', always an invalid library.  This was fixed in
10583    # development snapshots of GCC prior to 3.0.
10584    case $host_os in
10585      aix4 | aix4.[01] | aix4.[01].*)
10586      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10587	   echo ' yes '
10588	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10589	:
10590      else
10591	can_build_shared=no
10592      fi
10593      ;;
10594    esac
10595    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10596    # soname into executable. Probably we can add versioning support to
10597    # collect2, so additional links can be useful in future.
10598    if test "$aix_use_runtimelinking" = yes; then
10599      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10600      # instead of lib<name>.a to let people know that these are not
10601      # typical AIX shared libraries.
10602      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603    else
10604      # We preserve .a as extension for shared libraries through AIX4.2
10605      # and later when we are not doing run time linking.
10606      library_names_spec='${libname}${release}.a $libname.a'
10607      soname_spec='${libname}${release}${shared_ext}$major'
10608    fi
10609    shlibpath_var=LIBPATH
10610  fi
10611  ;;
10612
10613amigaos*)
10614  case $host_cpu in
10615  powerpc)
10616    # Since July 2007 AmigaOS4 officially supports .so libraries.
10617    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10618    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10619    ;;
10620  m68k)
10621    library_names_spec='$libname.ixlibrary $libname.a'
10622    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10623    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'
10624    ;;
10625  esac
10626  ;;
10627
10628beos*)
10629  library_names_spec='${libname}${shared_ext}'
10630  dynamic_linker="$host_os ld.so"
10631  shlibpath_var=LIBRARY_PATH
10632  ;;
10633
10634bsdi[45]*)
10635  version_type=linux
10636  need_version=no
10637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638  soname_spec='${libname}${release}${shared_ext}$major'
10639  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10640  shlibpath_var=LD_LIBRARY_PATH
10641  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10642  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10643  # the default ld.so.conf also contains /usr/contrib/lib and
10644  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10645  # libtool to hard-code these into programs
10646  ;;
10647
10648cygwin* | mingw* | pw32* | cegcc*)
10649  version_type=windows
10650  shrext_cmds=".dll"
10651  need_version=no
10652  need_lib_prefix=no
10653
10654  case $GCC,$cc_basename in
10655  yes,*)
10656    # gcc
10657    library_names_spec='$libname.dll.a'
10658    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10659    postinstall_cmds='base_file=`basename \${file}`~
10660      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10661      dldir=$destdir/`dirname \$dlpath`~
10662      test -d \$dldir || mkdir -p \$dldir~
10663      $install_prog $dir/$dlname \$dldir/$dlname~
10664      chmod a+x \$dldir/$dlname~
10665      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10666        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10667      fi'
10668    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10669      dlpath=$dir/\$dldll~
10670       $RM \$dlpath'
10671    shlibpath_overrides_runpath=yes
10672
10673    case $host_os in
10674    cygwin*)
10675      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10676      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10677
10678      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10679      ;;
10680    mingw* | cegcc*)
10681      # MinGW DLLs use traditional 'lib' prefix
10682      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10683      ;;
10684    pw32*)
10685      # pw32 DLLs use 'pw' prefix rather than 'lib'
10686      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10687      ;;
10688    esac
10689    dynamic_linker='Win32 ld.exe'
10690    ;;
10691
10692  *,cl*)
10693    # Native MSVC
10694    libname_spec='$name'
10695    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10696    library_names_spec='${libname}.dll.lib'
10697
10698    case $build_os in
10699    mingw*)
10700      sys_lib_search_path_spec=
10701      lt_save_ifs=$IFS
10702      IFS=';'
10703      for lt_path in $LIB
10704      do
10705        IFS=$lt_save_ifs
10706        # Let DOS variable expansion print the short 8.3 style file name.
10707        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10708        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10709      done
10710      IFS=$lt_save_ifs
10711      # Convert to MSYS style.
10712      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10713      ;;
10714    cygwin*)
10715      # Convert to unix form, then to dos form, then back to unix form
10716      # but this time dos style (no spaces!) so that the unix form looks
10717      # like /cygdrive/c/PROGRA~1:/cygdr...
10718      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10719      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10720      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10721      ;;
10722    *)
10723      sys_lib_search_path_spec="$LIB"
10724      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10725        # It is most probably a Windows format PATH.
10726        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10727      else
10728        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10729      fi
10730      # FIXME: find the short name or the path components, as spaces are
10731      # common. (e.g. "Program Files" -> "PROGRA~1")
10732      ;;
10733    esac
10734
10735    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10736    postinstall_cmds='base_file=`basename \${file}`~
10737      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10738      dldir=$destdir/`dirname \$dlpath`~
10739      test -d \$dldir || mkdir -p \$dldir~
10740      $install_prog $dir/$dlname \$dldir/$dlname'
10741    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10742      dlpath=$dir/\$dldll~
10743       $RM \$dlpath'
10744    shlibpath_overrides_runpath=yes
10745    dynamic_linker='Win32 link.exe'
10746    ;;
10747
10748  *)
10749    # Assume MSVC wrapper
10750    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10751    dynamic_linker='Win32 ld.exe'
10752    ;;
10753  esac
10754  # FIXME: first we should search . and the directory the executable is in
10755  shlibpath_var=PATH
10756  ;;
10757
10758darwin* | rhapsody*)
10759  dynamic_linker="$host_os dyld"
10760  version_type=darwin
10761  need_lib_prefix=no
10762  need_version=no
10763  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10764  soname_spec='${libname}${release}${major}$shared_ext'
10765  shlibpath_overrides_runpath=yes
10766  shlibpath_var=DYLD_LIBRARY_PATH
10767  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10768
10769  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10770  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10771  ;;
10772
10773dgux*)
10774  version_type=linux
10775  need_lib_prefix=no
10776  need_version=no
10777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10778  soname_spec='${libname}${release}${shared_ext}$major'
10779  shlibpath_var=LD_LIBRARY_PATH
10780  ;;
10781
10782freebsd1*)
10783  dynamic_linker=no
10784  ;;
10785
10786freebsd* | dragonfly*)
10787  # DragonFly does not have aout.  When/if they implement a new
10788  # versioning mechanism, adjust this.
10789  if test -x /usr/bin/objformat; then
10790    objformat=`/usr/bin/objformat`
10791  else
10792    case $host_os in
10793    freebsd[123]*) objformat=aout ;;
10794    *) objformat=elf ;;
10795    esac
10796  fi
10797  version_type=freebsd-$objformat
10798  case $version_type in
10799    freebsd-elf*)
10800      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10801      need_version=no
10802      need_lib_prefix=no
10803      ;;
10804    freebsd-*)
10805      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10806      need_version=yes
10807      ;;
10808  esac
10809  shlibpath_var=LD_LIBRARY_PATH
10810  case $host_os in
10811  freebsd2*)
10812    shlibpath_overrides_runpath=yes
10813    ;;
10814  freebsd3.[01]* | freebsdelf3.[01]*)
10815    shlibpath_overrides_runpath=yes
10816    hardcode_into_libs=yes
10817    ;;
10818  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10819  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10820    shlibpath_overrides_runpath=no
10821    hardcode_into_libs=yes
10822    ;;
10823  *) # from 4.6 on, and DragonFly
10824    shlibpath_overrides_runpath=yes
10825    hardcode_into_libs=yes
10826    ;;
10827  esac
10828  ;;
10829
10830gnu*)
10831  version_type=linux
10832  need_lib_prefix=no
10833  need_version=no
10834  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10835  soname_spec='${libname}${release}${shared_ext}$major'
10836  shlibpath_var=LD_LIBRARY_PATH
10837  hardcode_into_libs=yes
10838  ;;
10839
10840haiku*)
10841  version_type=linux
10842  need_lib_prefix=no
10843  need_version=no
10844  dynamic_linker="$host_os runtime_loader"
10845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10846  soname_spec='${libname}${release}${shared_ext}$major'
10847  shlibpath_var=LIBRARY_PATH
10848  shlibpath_overrides_runpath=yes
10849  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10850  hardcode_into_libs=yes
10851  ;;
10852
10853hpux9* | hpux10* | hpux11*)
10854  # Give a soname corresponding to the major version so that dld.sl refuses to
10855  # link against other versions.
10856  version_type=sunos
10857  need_lib_prefix=no
10858  need_version=no
10859  case $host_cpu in
10860  ia64*)
10861    shrext_cmds='.so'
10862    hardcode_into_libs=yes
10863    dynamic_linker="$host_os dld.so"
10864    shlibpath_var=LD_LIBRARY_PATH
10865    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10866    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10867    soname_spec='${libname}${release}${shared_ext}$major'
10868    if test "X$HPUX_IA64_MODE" = X32; then
10869      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10870    else
10871      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10872    fi
10873    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10874    ;;
10875  hppa*64*)
10876    shrext_cmds='.sl'
10877    hardcode_into_libs=yes
10878    dynamic_linker="$host_os dld.sl"
10879    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10880    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10881    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10882    soname_spec='${libname}${release}${shared_ext}$major'
10883    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10884    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10885    ;;
10886  *)
10887    shrext_cmds='.sl'
10888    dynamic_linker="$host_os dld.sl"
10889    shlibpath_var=SHLIB_PATH
10890    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10891    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892    soname_spec='${libname}${release}${shared_ext}$major'
10893    ;;
10894  esac
10895  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10896  postinstall_cmds='chmod 555 $lib'
10897  # or fails outright, so override atomically:
10898  install_override_mode=555
10899  ;;
10900
10901interix[3-9]*)
10902  version_type=linux
10903  need_lib_prefix=no
10904  need_version=no
10905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10906  soname_spec='${libname}${release}${shared_ext}$major'
10907  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10908  shlibpath_var=LD_LIBRARY_PATH
10909  shlibpath_overrides_runpath=no
10910  hardcode_into_libs=yes
10911  ;;
10912
10913irix5* | irix6* | nonstopux*)
10914  case $host_os in
10915    nonstopux*) version_type=nonstopux ;;
10916    *)
10917	if test "$lt_cv_prog_gnu_ld" = yes; then
10918		version_type=linux
10919	else
10920		version_type=irix
10921	fi ;;
10922  esac
10923  need_lib_prefix=no
10924  need_version=no
10925  soname_spec='${libname}${release}${shared_ext}$major'
10926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10927  case $host_os in
10928  irix5* | nonstopux*)
10929    libsuff= shlibsuff=
10930    ;;
10931  *)
10932    case $LD in # libtool.m4 will add one of these switches to LD
10933    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10934      libsuff= shlibsuff= libmagic=32-bit;;
10935    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10936      libsuff=32 shlibsuff=N32 libmagic=N32;;
10937    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10938      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10939    *) libsuff= shlibsuff= libmagic=never-match;;
10940    esac
10941    ;;
10942  esac
10943  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10944  shlibpath_overrides_runpath=no
10945  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10946  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10947  hardcode_into_libs=yes
10948  ;;
10949
10950# No shared lib support for Linux oldld, aout, or coff.
10951linux*oldld* | linux*aout* | linux*coff*)
10952  dynamic_linker=no
10953  ;;
10954
10955# This must be Linux ELF.
10956linux* | k*bsd*-gnu | kopensolaris*-gnu)
10957  version_type=linux
10958  need_lib_prefix=no
10959  need_version=no
10960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961  soname_spec='${libname}${release}${shared_ext}$major'
10962  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10963  shlibpath_var=LD_LIBRARY_PATH
10964  shlibpath_overrides_runpath=no
10965
10966  # Some binutils ld are patched to set DT_RUNPATH
10967  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10968  $as_echo_n "(cached) " >&6
10969else
10970  lt_cv_shlibpath_overrides_runpath=no
10971    save_LDFLAGS=$LDFLAGS
10972    save_libdir=$libdir
10973    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10974	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10975    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976/* end confdefs.h.  */
10977
10978int
10979main ()
10980{
10981
10982  ;
10983  return 0;
10984}
10985_ACEOF
10986if ac_fn_c_try_link "$LINENO"; then :
10987  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10988  lt_cv_shlibpath_overrides_runpath=yes
10989fi
10990fi
10991rm -f core conftest.err conftest.$ac_objext \
10992    conftest$ac_exeext conftest.$ac_ext
10993    LDFLAGS=$save_LDFLAGS
10994    libdir=$save_libdir
10995
10996fi
10997
10998  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10999
11000  # This implies no fast_install, which is unacceptable.
11001  # Some rework will be needed to allow for fast_install
11002  # before this can be enabled.
11003  hardcode_into_libs=yes
11004
11005  # Append ld.so.conf contents to the search path
11006  if test -f /etc/ld.so.conf; then
11007    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' ' '`
11008    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11009  fi
11010
11011  # We used to test for /lib/ld.so.1 and disable shared libraries on
11012  # powerpc, because MkLinux only supported shared libraries with the
11013  # GNU dynamic linker.  Since this was broken with cross compilers,
11014  # most powerpc-linux boxes support dynamic linking these days and
11015  # people can always --disable-shared, the test was removed, and we
11016  # assume the GNU/Linux dynamic linker is in use.
11017  dynamic_linker='GNU/Linux ld.so'
11018  ;;
11019
11020netbsd*)
11021  version_type=sunos
11022  need_lib_prefix=no
11023  need_version=no
11024  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11025    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11026    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11027    dynamic_linker='NetBSD (a.out) ld.so'
11028  else
11029    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11030    soname_spec='${libname}${release}${shared_ext}$major'
11031    dynamic_linker='NetBSD ld.elf_so'
11032  fi
11033  shlibpath_var=LD_LIBRARY_PATH
11034  shlibpath_overrides_runpath=yes
11035  hardcode_into_libs=yes
11036  ;;
11037
11038newsos6)
11039  version_type=linux
11040  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11041  shlibpath_var=LD_LIBRARY_PATH
11042  shlibpath_overrides_runpath=yes
11043  ;;
11044
11045*nto* | *qnx*)
11046  version_type=qnx
11047  need_lib_prefix=no
11048  need_version=no
11049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11050  soname_spec='${libname}${release}${shared_ext}$major'
11051  shlibpath_var=LD_LIBRARY_PATH
11052  shlibpath_overrides_runpath=no
11053  hardcode_into_libs=yes
11054  dynamic_linker='ldqnx.so'
11055  ;;
11056
11057openbsd*)
11058  version_type=sunos
11059  sys_lib_dlsearch_path_spec="/usr/lib"
11060  need_lib_prefix=no
11061  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11062  case $host_os in
11063    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11064    *)				need_version=no  ;;
11065  esac
11066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11067  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11068  shlibpath_var=LD_LIBRARY_PATH
11069  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11070    case $host_os in
11071      openbsd2.[89] | openbsd2.[89].*)
11072	shlibpath_overrides_runpath=no
11073	;;
11074      *)
11075	shlibpath_overrides_runpath=yes
11076	;;
11077      esac
11078  else
11079    shlibpath_overrides_runpath=yes
11080  fi
11081  ;;
11082
11083os2*)
11084  libname_spec='$name'
11085  shrext_cmds=".dll"
11086  need_lib_prefix=no
11087  library_names_spec='$libname${shared_ext} $libname.a'
11088  dynamic_linker='OS/2 ld.exe'
11089  shlibpath_var=LIBPATH
11090  ;;
11091
11092osf3* | osf4* | osf5*)
11093  version_type=osf
11094  need_lib_prefix=no
11095  need_version=no
11096  soname_spec='${libname}${release}${shared_ext}$major'
11097  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098  shlibpath_var=LD_LIBRARY_PATH
11099  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11100  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11101  ;;
11102
11103rdos*)
11104  dynamic_linker=no
11105  ;;
11106
11107solaris*)
11108  version_type=linux
11109  need_lib_prefix=no
11110  need_version=no
11111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112  soname_spec='${libname}${release}${shared_ext}$major'
11113  shlibpath_var=LD_LIBRARY_PATH
11114  shlibpath_overrides_runpath=yes
11115  hardcode_into_libs=yes
11116  # ldd complains unless libraries are executable
11117  postinstall_cmds='chmod +x $lib'
11118  ;;
11119
11120sunos4*)
11121  version_type=sunos
11122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11123  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11124  shlibpath_var=LD_LIBRARY_PATH
11125  shlibpath_overrides_runpath=yes
11126  if test "$with_gnu_ld" = yes; then
11127    need_lib_prefix=no
11128  fi
11129  need_version=yes
11130  ;;
11131
11132sysv4 | sysv4.3*)
11133  version_type=linux
11134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11135  soname_spec='${libname}${release}${shared_ext}$major'
11136  shlibpath_var=LD_LIBRARY_PATH
11137  case $host_vendor in
11138    sni)
11139      shlibpath_overrides_runpath=no
11140      need_lib_prefix=no
11141      runpath_var=LD_RUN_PATH
11142      ;;
11143    siemens)
11144      need_lib_prefix=no
11145      ;;
11146    motorola)
11147      need_lib_prefix=no
11148      need_version=no
11149      shlibpath_overrides_runpath=no
11150      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11151      ;;
11152  esac
11153  ;;
11154
11155sysv4*MP*)
11156  if test -d /usr/nec ;then
11157    version_type=linux
11158    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11159    soname_spec='$libname${shared_ext}.$major'
11160    shlibpath_var=LD_LIBRARY_PATH
11161  fi
11162  ;;
11163
11164sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11165  version_type=freebsd-elf
11166  need_lib_prefix=no
11167  need_version=no
11168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11169  soname_spec='${libname}${release}${shared_ext}$major'
11170  shlibpath_var=LD_LIBRARY_PATH
11171  shlibpath_overrides_runpath=yes
11172  hardcode_into_libs=yes
11173  if test "$with_gnu_ld" = yes; then
11174    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11175  else
11176    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11177    case $host_os in
11178      sco3.2v5*)
11179        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11180	;;
11181    esac
11182  fi
11183  sys_lib_dlsearch_path_spec='/usr/lib'
11184  ;;
11185
11186tpf*)
11187  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11188  version_type=linux
11189  need_lib_prefix=no
11190  need_version=no
11191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192  shlibpath_var=LD_LIBRARY_PATH
11193  shlibpath_overrides_runpath=no
11194  hardcode_into_libs=yes
11195  ;;
11196
11197uts4*)
11198  version_type=linux
11199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200  soname_spec='${libname}${release}${shared_ext}$major'
11201  shlibpath_var=LD_LIBRARY_PATH
11202  ;;
11203
11204*)
11205  dynamic_linker=no
11206  ;;
11207esac
11208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11209$as_echo "$dynamic_linker" >&6; }
11210test "$dynamic_linker" = no && can_build_shared=no
11211
11212variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11213if test "$GCC" = yes; then
11214  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11215fi
11216
11217if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11218  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11219fi
11220if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11221  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11222fi
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
11315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11316$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11317hardcode_action=
11318if test -n "$hardcode_libdir_flag_spec" ||
11319   test -n "$runpath_var" ||
11320   test "X$hardcode_automatic" = "Xyes" ; then
11321
11322  # We can hardcode non-existent directories.
11323  if test "$hardcode_direct" != no &&
11324     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11325     # have to relink, otherwise we might link with an installed library
11326     # when we should be linking with a yet-to-be-installed one
11327     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11328     test "$hardcode_minus_L" != no; then
11329    # Linking always hardcodes the temporary library directory.
11330    hardcode_action=relink
11331  else
11332    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11333    hardcode_action=immediate
11334  fi
11335else
11336  # We cannot hardcode anything, or else we can only hardcode existing
11337  # directories.
11338  hardcode_action=unsupported
11339fi
11340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11341$as_echo "$hardcode_action" >&6; }
11342
11343if test "$hardcode_action" = relink ||
11344   test "$inherit_rpath" = yes; then
11345  # Fast installation is not supported
11346  enable_fast_install=no
11347elif test "$shlibpath_overrides_runpath" = yes ||
11348     test "$enable_shared" = no; then
11349  # Fast installation is not necessary
11350  enable_fast_install=needless
11351fi
11352
11353
11354
11355
11356
11357
11358  if test "x$enable_dlopen" != xyes; then
11359  enable_dlopen=unknown
11360  enable_dlopen_self=unknown
11361  enable_dlopen_self_static=unknown
11362else
11363  lt_cv_dlopen=no
11364  lt_cv_dlopen_libs=
11365
11366  case $host_os in
11367  beos*)
11368    lt_cv_dlopen="load_add_on"
11369    lt_cv_dlopen_libs=
11370    lt_cv_dlopen_self=yes
11371    ;;
11372
11373  mingw* | pw32* | cegcc*)
11374    lt_cv_dlopen="LoadLibrary"
11375    lt_cv_dlopen_libs=
11376    ;;
11377
11378  cygwin*)
11379    lt_cv_dlopen="dlopen"
11380    lt_cv_dlopen_libs=
11381    ;;
11382
11383  darwin*)
11384  # if libdl is installed we need to link against it
11385    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11386$as_echo_n "checking for dlopen in -ldl... " >&6; }
11387if ${ac_cv_lib_dl_dlopen+:} false; then :
11388  $as_echo_n "(cached) " >&6
11389else
11390  ac_check_lib_save_LIBS=$LIBS
11391LIBS="-ldl  $LIBS"
11392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393/* end confdefs.h.  */
11394
11395/* Override any GCC internal prototype to avoid an error.
11396   Use char because int might match the return type of a GCC
11397   builtin and then its argument prototype would still apply.  */
11398#ifdef __cplusplus
11399extern "C"
11400#endif
11401char dlopen ();
11402int
11403main ()
11404{
11405return dlopen ();
11406  ;
11407  return 0;
11408}
11409_ACEOF
11410if ac_fn_c_try_link "$LINENO"; then :
11411  ac_cv_lib_dl_dlopen=yes
11412else
11413  ac_cv_lib_dl_dlopen=no
11414fi
11415rm -f core conftest.err conftest.$ac_objext \
11416    conftest$ac_exeext conftest.$ac_ext
11417LIBS=$ac_check_lib_save_LIBS
11418fi
11419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11420$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11421if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11422  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11423else
11424
11425    lt_cv_dlopen="dyld"
11426    lt_cv_dlopen_libs=
11427    lt_cv_dlopen_self=yes
11428
11429fi
11430
11431    ;;
11432
11433  *)
11434    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11435if test "x$ac_cv_func_shl_load" = xyes; then :
11436  lt_cv_dlopen="shl_load"
11437else
11438  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11439$as_echo_n "checking for shl_load in -ldld... " >&6; }
11440if ${ac_cv_lib_dld_shl_load+:} false; then :
11441  $as_echo_n "(cached) " >&6
11442else
11443  ac_check_lib_save_LIBS=$LIBS
11444LIBS="-ldld  $LIBS"
11445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446/* end confdefs.h.  */
11447
11448/* Override any GCC internal prototype to avoid an error.
11449   Use char because int might match the return type of a GCC
11450   builtin and then its argument prototype would still apply.  */
11451#ifdef __cplusplus
11452extern "C"
11453#endif
11454char shl_load ();
11455int
11456main ()
11457{
11458return shl_load ();
11459  ;
11460  return 0;
11461}
11462_ACEOF
11463if ac_fn_c_try_link "$LINENO"; then :
11464  ac_cv_lib_dld_shl_load=yes
11465else
11466  ac_cv_lib_dld_shl_load=no
11467fi
11468rm -f core conftest.err conftest.$ac_objext \
11469    conftest$ac_exeext conftest.$ac_ext
11470LIBS=$ac_check_lib_save_LIBS
11471fi
11472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11473$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11474if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11475  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11476else
11477  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11478if test "x$ac_cv_func_dlopen" = xyes; then :
11479  lt_cv_dlopen="dlopen"
11480else
11481  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11482$as_echo_n "checking for dlopen in -ldl... " >&6; }
11483if ${ac_cv_lib_dl_dlopen+:} false; then :
11484  $as_echo_n "(cached) " >&6
11485else
11486  ac_check_lib_save_LIBS=$LIBS
11487LIBS="-ldl  $LIBS"
11488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489/* end confdefs.h.  */
11490
11491/* Override any GCC internal prototype to avoid an error.
11492   Use char because int might match the return type of a GCC
11493   builtin and then its argument prototype would still apply.  */
11494#ifdef __cplusplus
11495extern "C"
11496#endif
11497char dlopen ();
11498int
11499main ()
11500{
11501return dlopen ();
11502  ;
11503  return 0;
11504}
11505_ACEOF
11506if ac_fn_c_try_link "$LINENO"; then :
11507  ac_cv_lib_dl_dlopen=yes
11508else
11509  ac_cv_lib_dl_dlopen=no
11510fi
11511rm -f core conftest.err conftest.$ac_objext \
11512    conftest$ac_exeext conftest.$ac_ext
11513LIBS=$ac_check_lib_save_LIBS
11514fi
11515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11516$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11517if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11518  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11519else
11520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11521$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11522if ${ac_cv_lib_svld_dlopen+:} false; then :
11523  $as_echo_n "(cached) " >&6
11524else
11525  ac_check_lib_save_LIBS=$LIBS
11526LIBS="-lsvld  $LIBS"
11527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528/* end confdefs.h.  */
11529
11530/* Override any GCC internal prototype to avoid an error.
11531   Use char because int might match the return type of a GCC
11532   builtin and then its argument prototype would still apply.  */
11533#ifdef __cplusplus
11534extern "C"
11535#endif
11536char dlopen ();
11537int
11538main ()
11539{
11540return dlopen ();
11541  ;
11542  return 0;
11543}
11544_ACEOF
11545if ac_fn_c_try_link "$LINENO"; then :
11546  ac_cv_lib_svld_dlopen=yes
11547else
11548  ac_cv_lib_svld_dlopen=no
11549fi
11550rm -f core conftest.err conftest.$ac_objext \
11551    conftest$ac_exeext conftest.$ac_ext
11552LIBS=$ac_check_lib_save_LIBS
11553fi
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11555$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11556if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11557  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11558else
11559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11560$as_echo_n "checking for dld_link in -ldld... " >&6; }
11561if ${ac_cv_lib_dld_dld_link+:} false; then :
11562  $as_echo_n "(cached) " >&6
11563else
11564  ac_check_lib_save_LIBS=$LIBS
11565LIBS="-ldld  $LIBS"
11566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567/* end confdefs.h.  */
11568
11569/* Override any GCC internal prototype to avoid an error.
11570   Use char because int might match the return type of a GCC
11571   builtin and then its argument prototype would still apply.  */
11572#ifdef __cplusplus
11573extern "C"
11574#endif
11575char dld_link ();
11576int
11577main ()
11578{
11579return dld_link ();
11580  ;
11581  return 0;
11582}
11583_ACEOF
11584if ac_fn_c_try_link "$LINENO"; then :
11585  ac_cv_lib_dld_dld_link=yes
11586else
11587  ac_cv_lib_dld_dld_link=no
11588fi
11589rm -f core conftest.err conftest.$ac_objext \
11590    conftest$ac_exeext conftest.$ac_ext
11591LIBS=$ac_check_lib_save_LIBS
11592fi
11593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11594$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11595if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11596  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11597fi
11598
11599
11600fi
11601
11602
11603fi
11604
11605
11606fi
11607
11608
11609fi
11610
11611
11612fi
11613
11614    ;;
11615  esac
11616
11617  if test "x$lt_cv_dlopen" != xno; then
11618    enable_dlopen=yes
11619  else
11620    enable_dlopen=no
11621  fi
11622
11623  case $lt_cv_dlopen in
11624  dlopen)
11625    save_CPPFLAGS="$CPPFLAGS"
11626    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11627
11628    save_LDFLAGS="$LDFLAGS"
11629    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11630
11631    save_LIBS="$LIBS"
11632    LIBS="$lt_cv_dlopen_libs $LIBS"
11633
11634    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11635$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11636if ${lt_cv_dlopen_self+:} false; then :
11637  $as_echo_n "(cached) " >&6
11638else
11639  	  if test "$cross_compiling" = yes; then :
11640  lt_cv_dlopen_self=cross
11641else
11642  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11643  lt_status=$lt_dlunknown
11644  cat > conftest.$ac_ext <<_LT_EOF
11645#line $LINENO "configure"
11646#include "confdefs.h"
11647
11648#if HAVE_DLFCN_H
11649#include <dlfcn.h>
11650#endif
11651
11652#include <stdio.h>
11653
11654#ifdef RTLD_GLOBAL
11655#  define LT_DLGLOBAL		RTLD_GLOBAL
11656#else
11657#  ifdef DL_GLOBAL
11658#    define LT_DLGLOBAL		DL_GLOBAL
11659#  else
11660#    define LT_DLGLOBAL		0
11661#  endif
11662#endif
11663
11664/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11665   find out it does not work in some platform. */
11666#ifndef LT_DLLAZY_OR_NOW
11667#  ifdef RTLD_LAZY
11668#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11669#  else
11670#    ifdef DL_LAZY
11671#      define LT_DLLAZY_OR_NOW		DL_LAZY
11672#    else
11673#      ifdef RTLD_NOW
11674#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11675#      else
11676#        ifdef DL_NOW
11677#          define LT_DLLAZY_OR_NOW	DL_NOW
11678#        else
11679#          define LT_DLLAZY_OR_NOW	0
11680#        endif
11681#      endif
11682#    endif
11683#  endif
11684#endif
11685
11686/* When -fvisbility=hidden is used, assume the code has been annotated
11687   correspondingly for the symbols needed.  */
11688#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11689int fnord () __attribute__((visibility("default")));
11690#endif
11691
11692int fnord () { return 42; }
11693int main ()
11694{
11695  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11696  int status = $lt_dlunknown;
11697
11698  if (self)
11699    {
11700      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11701      else
11702        {
11703	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11704          else puts (dlerror ());
11705	}
11706      /* dlclose (self); */
11707    }
11708  else
11709    puts (dlerror ());
11710
11711  return status;
11712}
11713_LT_EOF
11714  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11715  (eval $ac_link) 2>&5
11716  ac_status=$?
11717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11718  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11719    (./conftest; exit; ) >&5 2>/dev/null
11720    lt_status=$?
11721    case x$lt_status in
11722      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11723      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11724      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11725    esac
11726  else :
11727    # compilation failed
11728    lt_cv_dlopen_self=no
11729  fi
11730fi
11731rm -fr conftest*
11732
11733
11734fi
11735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11736$as_echo "$lt_cv_dlopen_self" >&6; }
11737
11738    if test "x$lt_cv_dlopen_self" = xyes; then
11739      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11740      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11741$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11742if ${lt_cv_dlopen_self_static+:} false; then :
11743  $as_echo_n "(cached) " >&6
11744else
11745  	  if test "$cross_compiling" = yes; then :
11746  lt_cv_dlopen_self_static=cross
11747else
11748  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11749  lt_status=$lt_dlunknown
11750  cat > conftest.$ac_ext <<_LT_EOF
11751#line $LINENO "configure"
11752#include "confdefs.h"
11753
11754#if HAVE_DLFCN_H
11755#include <dlfcn.h>
11756#endif
11757
11758#include <stdio.h>
11759
11760#ifdef RTLD_GLOBAL
11761#  define LT_DLGLOBAL		RTLD_GLOBAL
11762#else
11763#  ifdef DL_GLOBAL
11764#    define LT_DLGLOBAL		DL_GLOBAL
11765#  else
11766#    define LT_DLGLOBAL		0
11767#  endif
11768#endif
11769
11770/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11771   find out it does not work in some platform. */
11772#ifndef LT_DLLAZY_OR_NOW
11773#  ifdef RTLD_LAZY
11774#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11775#  else
11776#    ifdef DL_LAZY
11777#      define LT_DLLAZY_OR_NOW		DL_LAZY
11778#    else
11779#      ifdef RTLD_NOW
11780#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11781#      else
11782#        ifdef DL_NOW
11783#          define LT_DLLAZY_OR_NOW	DL_NOW
11784#        else
11785#          define LT_DLLAZY_OR_NOW	0
11786#        endif
11787#      endif
11788#    endif
11789#  endif
11790#endif
11791
11792/* When -fvisbility=hidden is used, assume the code has been annotated
11793   correspondingly for the symbols needed.  */
11794#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11795int fnord () __attribute__((visibility("default")));
11796#endif
11797
11798int fnord () { return 42; }
11799int main ()
11800{
11801  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11802  int status = $lt_dlunknown;
11803
11804  if (self)
11805    {
11806      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11807      else
11808        {
11809	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11810          else puts (dlerror ());
11811	}
11812      /* dlclose (self); */
11813    }
11814  else
11815    puts (dlerror ());
11816
11817  return status;
11818}
11819_LT_EOF
11820  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11821  (eval $ac_link) 2>&5
11822  ac_status=$?
11823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11824  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11825    (./conftest; exit; ) >&5 2>/dev/null
11826    lt_status=$?
11827    case x$lt_status in
11828      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11829      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11830      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11831    esac
11832  else :
11833    # compilation failed
11834    lt_cv_dlopen_self_static=no
11835  fi
11836fi
11837rm -fr conftest*
11838
11839
11840fi
11841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11842$as_echo "$lt_cv_dlopen_self_static" >&6; }
11843    fi
11844
11845    CPPFLAGS="$save_CPPFLAGS"
11846    LDFLAGS="$save_LDFLAGS"
11847    LIBS="$save_LIBS"
11848    ;;
11849  esac
11850
11851  case $lt_cv_dlopen_self in
11852  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11853  *) enable_dlopen_self=unknown ;;
11854  esac
11855
11856  case $lt_cv_dlopen_self_static in
11857  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11858  *) enable_dlopen_self_static=unknown ;;
11859  esac
11860fi
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878striplib=
11879old_striplib=
11880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11881$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11882if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11883  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11884  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11886$as_echo "yes" >&6; }
11887else
11888# FIXME - insert some real tests, host_os isn't really good enough
11889  case $host_os in
11890  darwin*)
11891    if test -n "$STRIP" ; then
11892      striplib="$STRIP -x"
11893      old_striplib="$STRIP -S"
11894      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11895$as_echo "yes" >&6; }
11896    else
11897      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898$as_echo "no" >&6; }
11899    fi
11900    ;;
11901  *)
11902    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903$as_echo "no" >&6; }
11904    ;;
11905  esac
11906fi
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919  # Report which library types will actually be built
11920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11921$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11923$as_echo "$can_build_shared" >&6; }
11924
11925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11926$as_echo_n "checking whether to build shared libraries... " >&6; }
11927  test "$can_build_shared" = "no" && enable_shared=no
11928
11929  # On AIX, shared libraries and static libraries use the same namespace, and
11930  # are all built from PIC.
11931  case $host_os in
11932  aix3*)
11933    test "$enable_shared" = yes && enable_static=no
11934    if test -n "$RANLIB"; then
11935      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11936      postinstall_cmds='$RANLIB $lib'
11937    fi
11938    ;;
11939
11940  aix[4-9]*)
11941    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11942      test "$enable_shared" = yes && enable_static=no
11943    fi
11944    ;;
11945  esac
11946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11947$as_echo "$enable_shared" >&6; }
11948
11949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11950$as_echo_n "checking whether to build static libraries... " >&6; }
11951  # Make sure either enable_shared or enable_static is yes.
11952  test "$enable_shared" = yes || enable_static=yes
11953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11954$as_echo "$enable_static" >&6; }
11955
11956
11957
11958
11959fi
11960ac_ext=c
11961ac_cpp='$CPP $CPPFLAGS'
11962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11964ac_compiler_gnu=$ac_cv_c_compiler_gnu
11965
11966CC="$lt_save_CC"
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980        ac_config_commands="$ac_config_commands libtool"
11981
11982
11983
11984
11985# Only expand once:
11986
11987
11988
11989		test "x$PERL" = x && # Extract the first word of "perl$EXEEXT", so it can be a program name with args.
11990set dummy perl$EXEEXT; ac_word=$2
11991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992$as_echo_n "checking for $ac_word... " >&6; }
11993if ${ac_cv_path_PERL+:} false; then :
11994  $as_echo_n "(cached) " >&6
11995else
11996  case $PERL in
11997  [\\/]* | ?:[\\/]*)
11998  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11999  ;;
12000  *)
12001  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002for as_dir in $PATH
12003do
12004  IFS=$as_save_IFS
12005  test -z "$as_dir" && as_dir=.
12006    for ac_exec_ext in '' $ac_executable_extensions; do
12007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12008    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12010    break 2
12011  fi
12012done
12013  done
12014IFS=$as_save_IFS
12015
12016  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl$EXEEXT"
12017  ;;
12018esac
12019fi
12020PERL=$ac_cv_path_PERL
12021if test -n "$PERL"; then
12022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12023$as_echo "$PERL" >&6; }
12024else
12025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026$as_echo "no" >&6; }
12027fi
12028
12029
12030	test "x$PERL" = x && as_fn_error $? "no acceptable Perl found in \$PATH" "$LINENO" 5
12031
12032
12033test x$GREP = x && # Extract the first word of "grep$EXEEXT", so it can be a program name with args.
12034set dummy grep$EXEEXT; ac_word=$2
12035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12036$as_echo_n "checking for $ac_word... " >&6; }
12037if ${ac_cv_path_GREP+:} false; then :
12038  $as_echo_n "(cached) " >&6
12039else
12040  case $GREP in
12041  [\\/]* | ?:[\\/]*)
12042  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
12043  ;;
12044  *)
12045  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046for as_dir in $PATH
12047do
12048  IFS=$as_save_IFS
12049  test -z "$as_dir" && as_dir=.
12050    for ac_exec_ext in '' $ac_executable_extensions; do
12051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12052    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
12053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12054    break 2
12055  fi
12056done
12057  done
12058IFS=$as_save_IFS
12059
12060  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep$EXEEXT"
12061  ;;
12062esac
12063fi
12064GREP=$ac_cv_path_GREP
12065if test -n "$GREP"; then
12066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
12067$as_echo "$GREP" >&6; }
12068else
12069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070$as_echo "no" >&6; }
12071fi
12072
12073
12074test x$GREP = x && as_fn_error $? "no acceptable grep found in \$PATH" "$LINENO" 5
12075
12076
12077test x$PS = x && # Extract the first word of "ps$EXEEXT", so it can be a program name with args.
12078set dummy ps$EXEEXT; ac_word=$2
12079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080$as_echo_n "checking for $ac_word... " >&6; }
12081if ${ac_cv_path_PS+:} false; then :
12082  $as_echo_n "(cached) " >&6
12083else
12084  case $PS in
12085  [\\/]* | ?:[\\/]*)
12086  ac_cv_path_PS="$PS" # Let the user override the test with a path.
12087  ;;
12088  *)
12089  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12090for as_dir in $PATH
12091do
12092  IFS=$as_save_IFS
12093  test -z "$as_dir" && as_dir=.
12094    for ac_exec_ext in '' $ac_executable_extensions; do
12095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12096    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
12097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12098    break 2
12099  fi
12100done
12101  done
12102IFS=$as_save_IFS
12103
12104  test -z "$ac_cv_path_PS" && ac_cv_path_PS="ps$EXEEXT"
12105  ;;
12106esac
12107fi
12108PS=$ac_cv_path_PS
12109if test -n "$PS"; then
12110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
12111$as_echo "$PS" >&6; }
12112else
12113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114$as_echo "no" >&6; }
12115fi
12116
12117
12118test x$PS = x && as_fn_error $? "no acceptable ps found in \$PATH" "$LINENO" 5
12119
12120if test "x$CC" != xcc; then
12121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12122$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12123else
12124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12125$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12126fi
12127set dummy $CC; ac_cc=`$as_echo "$2" |
12128		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12129if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12130  $as_echo_n "(cached) " >&6
12131else
12132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133/* end confdefs.h.  */
12134
12135int
12136main ()
12137{
12138
12139  ;
12140  return 0;
12141}
12142_ACEOF
12143# Make sure it works both with $CC and with simple cc.
12144# We do the test twice because some compilers refuse to overwrite an
12145# existing .o file with -o, though they will create one.
12146ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12147rm -f conftest2.*
12148if { { case "(($ac_try" in
12149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150  *) ac_try_echo=$ac_try;;
12151esac
12152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12153$as_echo "$ac_try_echo"; } >&5
12154  (eval "$ac_try") 2>&5
12155  ac_status=$?
12156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12157  test $ac_status = 0; } &&
12158   test -f conftest2.$ac_objext && { { case "(($ac_try" in
12159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160  *) ac_try_echo=$ac_try;;
12161esac
12162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12163$as_echo "$ac_try_echo"; } >&5
12164  (eval "$ac_try") 2>&5
12165  ac_status=$?
12166  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12167  test $ac_status = 0; };
12168then
12169  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12170  if test "x$CC" != xcc; then
12171    # Test first that cc exists at all.
12172    if { ac_try='cc -c conftest.$ac_ext >&5'
12173  { { case "(($ac_try" in
12174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175  *) ac_try_echo=$ac_try;;
12176esac
12177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12178$as_echo "$ac_try_echo"; } >&5
12179  (eval "$ac_try") 2>&5
12180  ac_status=$?
12181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12182  test $ac_status = 0; }; }; then
12183      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12184      rm -f conftest2.*
12185      if { { case "(($ac_try" in
12186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187  *) ac_try_echo=$ac_try;;
12188esac
12189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12190$as_echo "$ac_try_echo"; } >&5
12191  (eval "$ac_try") 2>&5
12192  ac_status=$?
12193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12194  test $ac_status = 0; } &&
12195	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197  *) ac_try_echo=$ac_try;;
12198esac
12199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12200$as_echo "$ac_try_echo"; } >&5
12201  (eval "$ac_try") 2>&5
12202  ac_status=$?
12203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12204  test $ac_status = 0; };
12205      then
12206	# cc works too.
12207	:
12208      else
12209	# cc exists but doesn't like -o.
12210	eval ac_cv_prog_cc_${ac_cc}_c_o=no
12211      fi
12212    fi
12213  fi
12214else
12215  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12216fi
12217rm -f core conftest*
12218
12219fi
12220if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12222$as_echo "yes" >&6; }
12223else
12224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225$as_echo "no" >&6; }
12226
12227$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12228
12229fi
12230
12231# FIXME: we rely on the cache variable name because
12232# there is no other way.
12233set dummy $CC
12234am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12235eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12236if test "$am_t" != yes; then
12237   # Losing compiler, so override with the script.
12238   # FIXME: It is wrong to rewrite CC.
12239   # But if we don't then we get into trouble of one sort or another.
12240   # A longer-term fix would be to have automake use am__CC in this case,
12241   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12242   CC="$am_aux_dir/compile $CC"
12243fi
12244
12245
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12247$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12248if ${ac_cv_c_bigendian+:} false; then :
12249  $as_echo_n "(cached) " >&6
12250else
12251  ac_cv_c_bigendian=unknown
12252    # See if we're dealing with a universal compiler.
12253    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254/* end confdefs.h.  */
12255#ifndef __APPLE_CC__
12256	       not a universal capable compiler
12257	     #endif
12258	     typedef int dummy;
12259
12260_ACEOF
12261if ac_fn_c_try_compile "$LINENO"; then :
12262
12263	# Check for potential -arch flags.  It is not universal unless
12264	# there are at least two -arch flags with different values.
12265	ac_arch=
12266	ac_prev=
12267	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12268	 if test -n "$ac_prev"; then
12269	   case $ac_word in
12270	     i?86 | x86_64 | ppc | ppc64)
12271	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12272		 ac_arch=$ac_word
12273	       else
12274		 ac_cv_c_bigendian=universal
12275		 break
12276	       fi
12277	       ;;
12278	   esac
12279	   ac_prev=
12280	 elif test "x$ac_word" = "x-arch"; then
12281	   ac_prev=arch
12282	 fi
12283       done
12284fi
12285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12286    if test $ac_cv_c_bigendian = unknown; then
12287      # See if sys/param.h defines the BYTE_ORDER macro.
12288      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289/* end confdefs.h.  */
12290#include <sys/types.h>
12291	     #include <sys/param.h>
12292
12293int
12294main ()
12295{
12296#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12297		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12298		     && LITTLE_ENDIAN)
12299	      bogus endian macros
12300	     #endif
12301
12302  ;
12303  return 0;
12304}
12305_ACEOF
12306if ac_fn_c_try_compile "$LINENO"; then :
12307  # It does; now see whether it defined to BIG_ENDIAN or not.
12308	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309/* end confdefs.h.  */
12310#include <sys/types.h>
12311		#include <sys/param.h>
12312
12313int
12314main ()
12315{
12316#if BYTE_ORDER != BIG_ENDIAN
12317		 not big endian
12318		#endif
12319
12320  ;
12321  return 0;
12322}
12323_ACEOF
12324if ac_fn_c_try_compile "$LINENO"; then :
12325  ac_cv_c_bigendian=yes
12326else
12327  ac_cv_c_bigendian=no
12328fi
12329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12330fi
12331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332    fi
12333    if test $ac_cv_c_bigendian = unknown; then
12334      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12335      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336/* end confdefs.h.  */
12337#include <limits.h>
12338
12339int
12340main ()
12341{
12342#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12343	      bogus endian macros
12344	     #endif
12345
12346  ;
12347  return 0;
12348}
12349_ACEOF
12350if ac_fn_c_try_compile "$LINENO"; then :
12351  # It does; now see whether it defined to _BIG_ENDIAN or not.
12352	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353/* end confdefs.h.  */
12354#include <limits.h>
12355
12356int
12357main ()
12358{
12359#ifndef _BIG_ENDIAN
12360		 not big endian
12361		#endif
12362
12363  ;
12364  return 0;
12365}
12366_ACEOF
12367if ac_fn_c_try_compile "$LINENO"; then :
12368  ac_cv_c_bigendian=yes
12369else
12370  ac_cv_c_bigendian=no
12371fi
12372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373fi
12374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12375    fi
12376    if test $ac_cv_c_bigendian = unknown; then
12377      # Compile a test program.
12378      if test "$cross_compiling" = yes; then :
12379  # Try to guess by grepping values from an object file.
12380	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381/* end confdefs.h.  */
12382short int ascii_mm[] =
12383		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12384		short int ascii_ii[] =
12385		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12386		int use_ascii (int i) {
12387		  return ascii_mm[i] + ascii_ii[i];
12388		}
12389		short int ebcdic_ii[] =
12390		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12391		short int ebcdic_mm[] =
12392		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12393		int use_ebcdic (int i) {
12394		  return ebcdic_mm[i] + ebcdic_ii[i];
12395		}
12396		extern int foo;
12397
12398int
12399main ()
12400{
12401return use_ascii (foo) == use_ebcdic (foo);
12402  ;
12403  return 0;
12404}
12405_ACEOF
12406if ac_fn_c_try_compile "$LINENO"; then :
12407  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12408	      ac_cv_c_bigendian=yes
12409	    fi
12410	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12411	      if test "$ac_cv_c_bigendian" = unknown; then
12412		ac_cv_c_bigendian=no
12413	      else
12414		# finding both strings is unlikely to happen, but who knows?
12415		ac_cv_c_bigendian=unknown
12416	      fi
12417	    fi
12418fi
12419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12420else
12421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422/* end confdefs.h.  */
12423$ac_includes_default
12424int
12425main ()
12426{
12427
12428	     /* Are we little or big endian?  From Harbison&Steele.  */
12429	     union
12430	     {
12431	       long int l;
12432	       char c[sizeof (long int)];
12433	     } u;
12434	     u.l = 1;
12435	     return u.c[sizeof (long int) - 1] == 1;
12436
12437  ;
12438  return 0;
12439}
12440_ACEOF
12441if ac_fn_c_try_run "$LINENO"; then :
12442  ac_cv_c_bigendian=no
12443else
12444  ac_cv_c_bigendian=yes
12445fi
12446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12447  conftest.$ac_objext conftest.beam conftest.$ac_ext
12448fi
12449
12450    fi
12451fi
12452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12453$as_echo "$ac_cv_c_bigendian" >&6; }
12454 case $ac_cv_c_bigendian in #(
12455   yes)
12456     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12457;; #(
12458   no)
12459      ;; #(
12460   universal)
12461
12462$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12463
12464     ;; #(
12465   *)
12466     as_fn_error $? "unknown endianness
12467 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12468 esac
12469
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12471$as_echo_n "checking for inline... " >&6; }
12472if ${ac_cv_c_inline+:} false; then :
12473  $as_echo_n "(cached) " >&6
12474else
12475  ac_cv_c_inline=no
12476for ac_kw in inline __inline__ __inline; do
12477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478/* end confdefs.h.  */
12479#ifndef __cplusplus
12480typedef int foo_t;
12481static $ac_kw foo_t static_foo () {return 0; }
12482$ac_kw foo_t foo () {return 0; }
12483#endif
12484
12485_ACEOF
12486if ac_fn_c_try_compile "$LINENO"; then :
12487  ac_cv_c_inline=$ac_kw
12488fi
12489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490  test "$ac_cv_c_inline" != no && break
12491done
12492
12493fi
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12495$as_echo "$ac_cv_c_inline" >&6; }
12496
12497case $ac_cv_c_inline in
12498  inline | yes) ;;
12499  *)
12500    case $ac_cv_c_inline in
12501      no) ac_val=;;
12502      *) ac_val=$ac_cv_c_inline;;
12503    esac
12504    cat >>confdefs.h <<_ACEOF
12505#ifndef __cplusplus
12506#define inline $ac_val
12507#endif
12508_ACEOF
12509    ;;
12510esac
12511
12512
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can add '__attribute__((unused))' to CFLAGS" >&5
12514$as_echo_n "checking to see if we can add '__attribute__((unused))' to CFLAGS... " >&6; }
12515if test x$GCC != x ; then
12516  CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
12517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12518$as_echo "yes" >&6; }
12519else
12520  CFLAGS="-D_U_=\"\" $CFLAGS"
12521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522$as_echo "no" >&6; }
12523fi
12524
12525for ac_header in mntent.h unistd.h termios.h ufs/quota.h
12526do :
12527  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12528ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12529if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12530  cat >>confdefs.h <<_ACEOF
12531#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12532_ACEOF
12533
12534fi
12535
12536done
12537
12538for ac_header in netdb.h sgtty.h statfs.h dlfcn.h langinfo.h locale.h
12539do :
12540  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12541ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12542if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12543  cat >>confdefs.h <<_ACEOF
12544#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12545_ACEOF
12546
12547fi
12548
12549done
12550
12551for ac_header in sys/param.h sys/fcntl.h sys/termios.h
12552do :
12553  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12554ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12555if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12556  cat >>confdefs.h <<_ACEOF
12557#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12558_ACEOF
12559
12560fi
12561
12562done
12563
12564for ac_header in sys/mnttab.h sys/statvfs.h sys/stat.h sys/vfs.h
12565do :
12566  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12567ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12568if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12569  cat >>confdefs.h <<_ACEOF
12570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12571_ACEOF
12572
12573fi
12574
12575done
12576
12577for ac_header in sys/mount.h
12578do :
12579  ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#ifdef HAVE_SYS_PARAM_H
12580#include <sys/param.h>
12581#endif
12582
12583"
12584if test "x$ac_cv_header_sys_mount_h" = xyes; then :
12585  cat >>confdefs.h <<_ACEOF
12586#define HAVE_SYS_MOUNT_H 1
12587_ACEOF
12588
12589fi
12590
12591done
12592
12593ac_fn_c_check_type "$LINENO" "fshare_t" "ac_cv_type_fshare_t" "#include <fcntl.h>
12594"
12595if test "x$ac_cv_type_fshare_t" = xyes; then :
12596
12597cat >>confdefs.h <<_ACEOF
12598#define HAVE_FSHARE_T 1
12599_ACEOF
12600
12601
12602fi
12603
12604
12605# Check whether --enable-largefile was given.
12606if test "${enable_largefile+set}" = set; then :
12607  enableval=$enable_largefile;
12608fi
12609
12610if test "$enable_largefile" != no; then
12611            wx_largefile=no
12612
12613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12614$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12615if ${ac_cv_sys_file_offset_bits+:} false; then :
12616  $as_echo_n "(cached) " >&6
12617else
12618
12619          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620/* end confdefs.h.  */
12621#define _FILE_OFFSET_BITS 64
12622                          #include <sys/types.h>
12623int
12624main ()
12625{
12626typedef struct {
12627    unsigned int field: sizeof(off_t) == 8;
12628} wxlf;
12629
12630  ;
12631  return 0;
12632}
12633_ACEOF
12634if ac_fn_c_try_compile "$LINENO"; then :
12635  ac_cv_sys_file_offset_bits=64
12636else
12637  ac_cv_sys_file_offset_bits=no
12638fi
12639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640
12641
12642fi
12643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12644$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12645
12646    if test "$ac_cv_sys_file_offset_bits" != no; then
12647        wx_largefile=yes
12648
12649cat >>confdefs.h <<_ACEOF
12650#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12651_ACEOF
12652
12653    fi
12654
12655    if test "x$wx_largefile" != "xyes"; then
12656
12657    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12658$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12659if ${ac_cv_sys_large_files+:} false; then :
12660  $as_echo_n "(cached) " >&6
12661else
12662
12663          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664/* end confdefs.h.  */
12665#define _LARGE_FILES 1
12666                          #include <sys/types.h>
12667int
12668main ()
12669{
12670typedef struct {
12671    unsigned int field: sizeof(off_t) == 8;
12672} wxlf;
12673
12674  ;
12675  return 0;
12676}
12677_ACEOF
12678if ac_fn_c_try_compile "$LINENO"; then :
12679  ac_cv_sys_large_files=1
12680else
12681  ac_cv_sys_large_files=no
12682fi
12683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12684
12685
12686fi
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12688$as_echo "$ac_cv_sys_large_files" >&6; }
12689
12690    if test "$ac_cv_sys_large_files" != no; then
12691        wx_largefile=yes
12692
12693cat >>confdefs.h <<_ACEOF
12694#define _LARGE_FILES $ac_cv_sys_large_files
12695_ACEOF
12696
12697    fi
12698
12699    fi
12700
12701
12702    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit off_t" >&5
12703$as_echo_n "checking for 64 bit off_t... " >&6; }
12704if ${netatalk_cv_SIZEOF_OFF_T+:} false; then :
12705  $as_echo_n "(cached) " >&6
12706else
12707
12708    if test "$cross_compiling" = yes; then :
12709  netatalk_cv_SIZEOF_OFF_T=cross
12710else
12711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712/* end confdefs.h.  */
12713#include <stdio.h>
12714#include <stdlib.h>
12715#include <sys/stat.h>
12716main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
12717_ACEOF
12718if ac_fn_c_try_run "$LINENO"; then :
12719  netatalk_cv_SIZEOF_OFF_T=yes
12720else
12721  netatalk_cv_SIZEOF_OFF_T=no
12722fi
12723rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12724  conftest.$ac_objext conftest.beam conftest.$ac_ext
12725fi
12726
12727fi
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_SIZEOF_OFF_T" >&5
12729$as_echo "$netatalk_cv_SIZEOF_OFF_T" >&6; }
12730
12731    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if large file support is available" >&5
12732$as_echo_n "checking if large file support is available... " >&6; }
12733    if test "x$netatalk_cv_SIZEOF_OFF_T" != "xno"; then
12734
12735$as_echo "#define HAVE_LARGEFILE_SUPPORT /**/" >>confdefs.h
12736
12737	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12738$as_echo "yes" >&6; }
12739        :
12740    else
12741        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742$as_echo "no" >&6; }
12743        as_fn_error $? "AFP 3.x support requires Large File Support." "$LINENO" 5
12744    fi
12745fi
12746
12747
12748
12749LT_DLLOADERS=
12750
12751
12752ac_ext=c
12753ac_cpp='$CPP $CPPFLAGS'
12754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12756ac_compiler_gnu=$ac_cv_c_compiler_gnu
12757
12758
12759LIBADD_DLOPEN=
12760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12761$as_echo_n "checking for library containing dlopen... " >&6; }
12762if ${ac_cv_search_dlopen+:} false; then :
12763  $as_echo_n "(cached) " >&6
12764else
12765  ac_func_search_save_LIBS=$LIBS
12766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12767/* end confdefs.h.  */
12768
12769/* Override any GCC internal prototype to avoid an error.
12770   Use char because int might match the return type of a GCC
12771   builtin and then its argument prototype would still apply.  */
12772#ifdef __cplusplus
12773extern "C"
12774#endif
12775char dlopen ();
12776int
12777main ()
12778{
12779return dlopen ();
12780  ;
12781  return 0;
12782}
12783_ACEOF
12784for ac_lib in '' dl; do
12785  if test -z "$ac_lib"; then
12786    ac_res="none required"
12787  else
12788    ac_res=-l$ac_lib
12789    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12790  fi
12791  if ac_fn_c_try_link "$LINENO"; then :
12792  ac_cv_search_dlopen=$ac_res
12793fi
12794rm -f core conftest.err conftest.$ac_objext \
12795    conftest$ac_exeext
12796  if ${ac_cv_search_dlopen+:} false; then :
12797  break
12798fi
12799done
12800if ${ac_cv_search_dlopen+:} false; then :
12801
12802else
12803  ac_cv_search_dlopen=no
12804fi
12805rm conftest.$ac_ext
12806LIBS=$ac_func_search_save_LIBS
12807fi
12808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12809$as_echo "$ac_cv_search_dlopen" >&6; }
12810ac_res=$ac_cv_search_dlopen
12811if test "$ac_res" != no; then :
12812  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12813
12814$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12815
12816	if test "$ac_cv_search_dlopen" != "none required" ; then
12817	  LIBADD_DLOPEN="-ldl"
12818	fi
12819	libltdl_cv_lib_dl_dlopen="yes"
12820	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12821else
12822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823/* end confdefs.h.  */
12824#if HAVE_DLFCN_H
12825#  include <dlfcn.h>
12826#endif
12827
12828int
12829main ()
12830{
12831dlopen(0, 0);
12832  ;
12833  return 0;
12834}
12835_ACEOF
12836if ac_fn_c_try_link "$LINENO"; then :
12837
12838$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12839
12840	    libltdl_cv_func_dlopen="yes"
12841	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12842else
12843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12844$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12845if ${ac_cv_lib_svld_dlopen+:} false; then :
12846  $as_echo_n "(cached) " >&6
12847else
12848  ac_check_lib_save_LIBS=$LIBS
12849LIBS="-lsvld  $LIBS"
12850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851/* end confdefs.h.  */
12852
12853/* Override any GCC internal prototype to avoid an error.
12854   Use char because int might match the return type of a GCC
12855   builtin and then its argument prototype would still apply.  */
12856#ifdef __cplusplus
12857extern "C"
12858#endif
12859char dlopen ();
12860int
12861main ()
12862{
12863return dlopen ();
12864  ;
12865  return 0;
12866}
12867_ACEOF
12868if ac_fn_c_try_link "$LINENO"; then :
12869  ac_cv_lib_svld_dlopen=yes
12870else
12871  ac_cv_lib_svld_dlopen=no
12872fi
12873rm -f core conftest.err conftest.$ac_objext \
12874    conftest$ac_exeext conftest.$ac_ext
12875LIBS=$ac_check_lib_save_LIBS
12876fi
12877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12878$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12879if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12880
12881$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12882
12883	        LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12884		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12885fi
12886
12887fi
12888rm -f core conftest.err conftest.$ac_objext \
12889    conftest$ac_exeext conftest.$ac_ext
12890fi
12891
12892if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12893then
12894  lt_save_LIBS="$LIBS"
12895  LIBS="$LIBS $LIBADD_DLOPEN"
12896  for ac_func in dlerror
12897do :
12898  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12899if test "x$ac_cv_func_dlerror" = xyes; then :
12900  cat >>confdefs.h <<_ACEOF
12901#define HAVE_DLERROR 1
12902_ACEOF
12903
12904fi
12905done
12906
12907  LIBS="$lt_save_LIBS"
12908fi
12909
12910
12911LIBADD_SHL_LOAD=
12912ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12913if test "x$ac_cv_func_shl_load" = xyes; then :
12914
12915$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12916
12917	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12918else
12919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12920$as_echo_n "checking for shl_load in -ldld... " >&6; }
12921if ${ac_cv_lib_dld_shl_load+:} false; then :
12922  $as_echo_n "(cached) " >&6
12923else
12924  ac_check_lib_save_LIBS=$LIBS
12925LIBS="-ldld  $LIBS"
12926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927/* end confdefs.h.  */
12928
12929/* Override any GCC internal prototype to avoid an error.
12930   Use char because int might match the return type of a GCC
12931   builtin and then its argument prototype would still apply.  */
12932#ifdef __cplusplus
12933extern "C"
12934#endif
12935char shl_load ();
12936int
12937main ()
12938{
12939return shl_load ();
12940  ;
12941  return 0;
12942}
12943_ACEOF
12944if ac_fn_c_try_link "$LINENO"; then :
12945  ac_cv_lib_dld_shl_load=yes
12946else
12947  ac_cv_lib_dld_shl_load=no
12948fi
12949rm -f core conftest.err conftest.$ac_objext \
12950    conftest$ac_exeext conftest.$ac_ext
12951LIBS=$ac_check_lib_save_LIBS
12952fi
12953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12954$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12955if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12956
12957$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12958
12959	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12960	    LIBADD_SHL_LOAD="-ldld"
12961fi
12962
12963fi
12964
12965
12966
12967case $host_os in
12968darwin[1567].*)
12969# We only want this for pre-Mac OS X 10.4.
12970  ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12971if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12972
12973$as_echo "#define HAVE_DYLD 1" >>confdefs.h
12974
12975	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12976fi
12977
12978  ;;
12979beos*)
12980  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12981  ;;
12982cygwin* | mingw* | os2* | pw32*)
12983  ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12984"
12985if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12986  ac_have_decl=1
12987else
12988  ac_have_decl=0
12989fi
12990
12991cat >>confdefs.h <<_ACEOF
12992#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12993_ACEOF
12994
12995  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12996  ;;
12997esac
12998
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13000$as_echo_n "checking for dld_link in -ldld... " >&6; }
13001if ${ac_cv_lib_dld_dld_link+:} false; then :
13002  $as_echo_n "(cached) " >&6
13003else
13004  ac_check_lib_save_LIBS=$LIBS
13005LIBS="-ldld  $LIBS"
13006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007/* end confdefs.h.  */
13008
13009/* Override any GCC internal prototype to avoid an error.
13010   Use char because int might match the return type of a GCC
13011   builtin and then its argument prototype would still apply.  */
13012#ifdef __cplusplus
13013extern "C"
13014#endif
13015char dld_link ();
13016int
13017main ()
13018{
13019return dld_link ();
13020  ;
13021  return 0;
13022}
13023_ACEOF
13024if ac_fn_c_try_link "$LINENO"; then :
13025  ac_cv_lib_dld_dld_link=yes
13026else
13027  ac_cv_lib_dld_dld_link=no
13028fi
13029rm -f core conftest.err conftest.$ac_objext \
13030    conftest$ac_exeext conftest.$ac_ext
13031LIBS=$ac_check_lib_save_LIBS
13032fi
13033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13034$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13035if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13036
13037$as_echo "#define HAVE_DLD 1" >>confdefs.h
13038
13039		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
13040fi
13041
13042
13043
13044
13045LT_DLPREOPEN=
13046if test -n "$LT_DLLOADERS"
13047then
13048  for lt_loader in $LT_DLLOADERS; do
13049    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
13050  done
13051
13052$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
13053
13054fi
13055
13056
13057LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
13058
13059
13060ac_ext=c
13061ac_cpp='$CPP $CPPFLAGS'
13062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13064ac_compiler_gnu=$ac_cv_c_compiler_gnu
13065
13066
13067for ac_func in dlopen dlsym dlclose
13068do :
13069  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13070ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13071if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13072  cat >>confdefs.h <<_ACEOF
13073#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13074_ACEOF
13075
13076fi
13077done
13078
13079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
13080$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
13081if ${lt_cv_sys_symbol_underscore+:} false; then :
13082  $as_echo_n "(cached) " >&6
13083else
13084  lt_cv_sys_symbol_underscore=no
13085  cat > conftest.$ac_ext <<_LT_EOF
13086void nm_test_func(){}
13087int main(){nm_test_func;return 0;}
13088_LT_EOF
13089  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13090  (eval $ac_compile) 2>&5
13091  ac_status=$?
13092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13093  test $ac_status = 0; }; then
13094    # Now try to grab the symbols.
13095    ac_nlist=conftest.nm
13096    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
13097  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
13098  ac_status=$?
13099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13100  test $ac_status = 0; } && test -s "$ac_nlist"; then
13101      # See whether the symbols have a leading underscore.
13102      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
13103        lt_cv_sys_symbol_underscore=yes
13104      else
13105        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
13106	  :
13107        else
13108	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
13109        fi
13110      fi
13111    else
13112      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
13113    fi
13114  else
13115    echo "configure: failed program was:" >&5
13116    cat conftest.c >&5
13117  fi
13118  rm -rf conftest*
13119
13120fi
13121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
13122$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
13123  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
13124
13125
13126if test x"$lt_cv_sys_symbol_underscore" = xyes; then
13127  if test x"$libltdl_cv_func_dlopen" = xyes ||
13128     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
13129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
13130$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
13131if ${libltdl_cv_need_uscore+:} false; then :
13132  $as_echo_n "(cached) " >&6
13133else
13134  libltdl_cv_need_uscore=unknown
13135          save_LIBS="$LIBS"
13136          LIBS="$LIBS $LIBADD_DLOPEN"
13137	  if test "$cross_compiling" = yes; then :
13138  libltdl_cv_need_uscore=cross
13139else
13140  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13141  lt_status=$lt_dlunknown
13142  cat > conftest.$ac_ext <<_LT_EOF
13143#line $LINENO "configure"
13144#include "confdefs.h"
13145
13146#if HAVE_DLFCN_H
13147#include <dlfcn.h>
13148#endif
13149
13150#include <stdio.h>
13151
13152#ifdef RTLD_GLOBAL
13153#  define LT_DLGLOBAL		RTLD_GLOBAL
13154#else
13155#  ifdef DL_GLOBAL
13156#    define LT_DLGLOBAL		DL_GLOBAL
13157#  else
13158#    define LT_DLGLOBAL		0
13159#  endif
13160#endif
13161
13162/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13163   find out it does not work in some platform. */
13164#ifndef LT_DLLAZY_OR_NOW
13165#  ifdef RTLD_LAZY
13166#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13167#  else
13168#    ifdef DL_LAZY
13169#      define LT_DLLAZY_OR_NOW		DL_LAZY
13170#    else
13171#      ifdef RTLD_NOW
13172#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13173#      else
13174#        ifdef DL_NOW
13175#          define LT_DLLAZY_OR_NOW	DL_NOW
13176#        else
13177#          define LT_DLLAZY_OR_NOW	0
13178#        endif
13179#      endif
13180#    endif
13181#  endif
13182#endif
13183
13184/* When -fvisbility=hidden is used, assume the code has been annotated
13185   correspondingly for the symbols needed.  */
13186#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13187int fnord () __attribute__((visibility("default")));
13188#endif
13189
13190int fnord () { return 42; }
13191int main ()
13192{
13193  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13194  int status = $lt_dlunknown;
13195
13196  if (self)
13197    {
13198      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13199      else
13200        {
13201	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13202          else puts (dlerror ());
13203	}
13204      /* dlclose (self); */
13205    }
13206  else
13207    puts (dlerror ());
13208
13209  return status;
13210}
13211_LT_EOF
13212  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13213  (eval $ac_link) 2>&5
13214  ac_status=$?
13215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13216  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13217    (./conftest; exit; ) >&5 2>/dev/null
13218    lt_status=$?
13219    case x$lt_status in
13220      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
13221      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
13222      x$lt_dlunknown|x*)  ;;
13223    esac
13224  else :
13225    # compilation failed
13226
13227  fi
13228fi
13229rm -fr conftest*
13230
13231	  LIBS="$save_LIBS"
13232
13233fi
13234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
13235$as_echo "$libltdl_cv_need_uscore" >&6; }
13236  fi
13237fi
13238
13239if test x"$libltdl_cv_need_uscore" = xyes; then
13240
13241$as_echo "#define NEED_USCORE 1" >>confdefs.h
13242
13243fi
13244
13245if test x"$libltdl_cv_need_uscore" = xyes; then
13246
13247$as_echo "#define DLSYM_PREPEND_UNDERSCORE 1" >>confdefs.h
13248
13249fi
13250
13251ac_neta_haveatfuncs=yes
13252for ac_func in openat renameat fstatat unlinkat
13253do :
13254  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13255ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13256if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13257  cat >>confdefs.h <<_ACEOF
13258#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13259_ACEOF
13260
13261else
13262  ac_neta_haveatfuncs=no
13263fi
13264done
13265
13266if test x"$ac_neta_haveatfuncs" = x"yes" ; then
13267
13268$as_echo "#define _ATFILE_SOURCE 1" >>confdefs.h
13269
13270
13271$as_echo "#define HAVE_ATFUNCS 1" >>confdefs.h
13272
13273fi
13274ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
13275"
13276if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
13277
13278cat >>confdefs.h <<_ACEOF
13279#define HAVE_STRUCT_TM_TM_GMTOFF 1
13280_ACEOF
13281
13282
13283fi
13284
13285
13286for ac_func in backtrace_symbols dirfd getusershell pread pwrite pselect
13287do :
13288  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13289ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13290if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13291  cat >>confdefs.h <<_ACEOF
13292#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13293_ACEOF
13294
13295fi
13296done
13297
13298for ac_func in setlinebuf strlcat strlcpy strnlen mempcpy
13299do :
13300  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13301ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13302if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13303  cat >>confdefs.h <<_ACEOF
13304#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13305_ACEOF
13306
13307fi
13308done
13309
13310for ac_func in mmap utime getpagesize
13311do :
13312  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13313ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13314if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13315  cat >>confdefs.h <<_ACEOF
13316#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13317_ACEOF
13318
13319fi
13320done
13321
13322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13323$as_echo_n "checking for library containing gethostbyname... " >&6; }
13324if ${ac_cv_search_gethostbyname+:} false; then :
13325  $as_echo_n "(cached) " >&6
13326else
13327  ac_func_search_save_LIBS=$LIBS
13328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329/* end confdefs.h.  */
13330
13331/* Override any GCC internal prototype to avoid an error.
13332   Use char because int might match the return type of a GCC
13333   builtin and then its argument prototype would still apply.  */
13334#ifdef __cplusplus
13335extern "C"
13336#endif
13337char gethostbyname ();
13338int
13339main ()
13340{
13341return gethostbyname ();
13342  ;
13343  return 0;
13344}
13345_ACEOF
13346for ac_lib in '' nsl; do
13347  if test -z "$ac_lib"; then
13348    ac_res="none required"
13349  else
13350    ac_res=-l$ac_lib
13351    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13352  fi
13353  if ac_fn_c_try_link "$LINENO"; then :
13354  ac_cv_search_gethostbyname=$ac_res
13355fi
13356rm -f core conftest.err conftest.$ac_objext \
13357    conftest$ac_exeext
13358  if ${ac_cv_search_gethostbyname+:} false; then :
13359  break
13360fi
13361done
13362if ${ac_cv_search_gethostbyname+:} false; then :
13363
13364else
13365  ac_cv_search_gethostbyname=no
13366fi
13367rm conftest.$ac_ext
13368LIBS=$ac_func_search_save_LIBS
13369fi
13370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13371$as_echo "$ac_cv_search_gethostbyname" >&6; }
13372ac_res=$ac_cv_search_gethostbyname
13373if test "$ac_res" != no; then :
13374  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13375
13376fi
13377
13378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13379$as_echo_n "checking for library containing connect... " >&6; }
13380if ${ac_cv_search_connect+:} false; then :
13381  $as_echo_n "(cached) " >&6
13382else
13383  ac_func_search_save_LIBS=$LIBS
13384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13385/* end confdefs.h.  */
13386
13387/* Override any GCC internal prototype to avoid an error.
13388   Use char because int might match the return type of a GCC
13389   builtin and then its argument prototype would still apply.  */
13390#ifdef __cplusplus
13391extern "C"
13392#endif
13393char connect ();
13394int
13395main ()
13396{
13397return connect ();
13398  ;
13399  return 0;
13400}
13401_ACEOF
13402for ac_lib in '' socket; do
13403  if test -z "$ac_lib"; then
13404    ac_res="none required"
13405  else
13406    ac_res=-l$ac_lib
13407    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13408  fi
13409  if ac_fn_c_try_link "$LINENO"; then :
13410  ac_cv_search_connect=$ac_res
13411fi
13412rm -f core conftest.err conftest.$ac_objext \
13413    conftest$ac_exeext
13414  if ${ac_cv_search_connect+:} false; then :
13415  break
13416fi
13417done
13418if ${ac_cv_search_connect+:} false; then :
13419
13420else
13421  ac_cv_search_connect=no
13422fi
13423rm conftest.$ac_ext
13424LIBS=$ac_func_search_save_LIBS
13425fi
13426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13427$as_echo "$ac_cv_search_connect" >&6; }
13428ac_res=$ac_cv_search_connect
13429if test "$ac_res" != no; then :
13430  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13431
13432fi
13433
13434for ac_func in getifaddrs
13435do :
13436  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
13437if test "x$ac_cv_func_getifaddrs" = xyes; then :
13438  cat >>confdefs.h <<_ACEOF
13439#define HAVE_GETIFADDRS 1
13440_ACEOF
13441
13442fi
13443done
13444
13445
13446
13447ac_ext=c
13448ac_cpp='$CPP $CPPFLAGS'
13449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13451ac_compiler_gnu=$ac_cv_c_compiler_gnu
13452
13453ax_pthread_ok=no
13454
13455# We used to check for pthread.h first, but this fails if pthread.h
13456# requires special compiler flags (e.g. on True64 or Sequent).
13457# It gets checked for in the link test anyway.
13458
13459# First of all, check if the user has set any of the PTHREAD_LIBS,
13460# etcetera environment variables, and if threads linking works using
13461# them:
13462if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13463        save_CFLAGS="$CFLAGS"
13464        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13465        save_LIBS="$LIBS"
13466        LIBS="$PTHREAD_LIBS $LIBS"
13467        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13468$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
13469        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470/* end confdefs.h.  */
13471
13472/* Override any GCC internal prototype to avoid an error.
13473   Use char because int might match the return type of a GCC
13474   builtin and then its argument prototype would still apply.  */
13475#ifdef __cplusplus
13476extern "C"
13477#endif
13478char pthread_join ();
13479int
13480main ()
13481{
13482return pthread_join ();
13483  ;
13484  return 0;
13485}
13486_ACEOF
13487if ac_fn_c_try_link "$LINENO"; then :
13488  ax_pthread_ok=yes
13489fi
13490rm -f core conftest.err conftest.$ac_objext \
13491    conftest$ac_exeext conftest.$ac_ext
13492        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13493$as_echo "$ax_pthread_ok" >&6; }
13494        if test x"$ax_pthread_ok" = xno; then
13495                PTHREAD_LIBS=""
13496                PTHREAD_CFLAGS=""
13497        fi
13498        LIBS="$save_LIBS"
13499        CFLAGS="$save_CFLAGS"
13500fi
13501
13502# We must check for the threads library under a number of different
13503# names; the ordering is very important because some systems
13504# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13505# libraries is broken (non-POSIX).
13506
13507# Create a list of thread flags to try.  Items starting with a "-" are
13508# C compiler flags, and other items are library names, except for "none"
13509# which indicates that we try without any flags at all, and "pthread-config"
13510# which is a program returning the flags for the Pth emulation library.
13511
13512ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13513
13514# The ordering *is* (sometimes) important.  Some notes on the
13515# individual items follow:
13516
13517# pthreads: AIX (must check this before -lpthread)
13518# none: in case threads are in libc; should be tried before -Kthread and
13519#       other compiler flags to prevent continual compiler warnings
13520# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13521# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13522# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13523# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13524# -pthreads: Solaris/gcc
13525# -mthreads: Mingw32/gcc, Lynx/gcc
13526# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13527#      doesn't hurt to check since this sometimes defines pthreads too;
13528#      also defines -D_REENTRANT)
13529#      ... -mt is also the pthreads flag for HP/aCC
13530# pthread: Linux, etcetera
13531# --thread-safe: KAI C++
13532# pthread-config: use pthread-config program (for GNU Pth library)
13533
13534case ${host_os} in
13535        solaris*)
13536
13537        # On Solaris (at least, for some versions), libc contains stubbed
13538        # (non-functional) versions of the pthreads routines, so link-based
13539        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
13540        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
13541        # a function called by this macro, so we could check for that, but
13542        # who knows whether they'll stub that too in a future libc.)  So,
13543        # we'll just look for -pthreads and -lpthread first:
13544
13545        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
13546        ;;
13547
13548        darwin*)
13549        ax_pthread_flags="-pthread $ax_pthread_flags"
13550        ;;
13551esac
13552
13553if test x"$ax_pthread_ok" = xno; then
13554for flag in $ax_pthread_flags; do
13555
13556        case $flag in
13557                none)
13558                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13559$as_echo_n "checking whether pthreads work without any flags... " >&6; }
13560                ;;
13561
13562                -*)
13563                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
13564$as_echo_n "checking whether pthreads work with $flag... " >&6; }
13565                PTHREAD_CFLAGS="$flag"
13566                ;;
13567
13568                pthread-config)
13569                # Extract the first word of "pthread-config", so it can be a program name with args.
13570set dummy pthread-config; ac_word=$2
13571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13572$as_echo_n "checking for $ac_word... " >&6; }
13573if ${ac_cv_prog_ax_pthread_config+:} false; then :
13574  $as_echo_n "(cached) " >&6
13575else
13576  if test -n "$ax_pthread_config"; then
13577  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
13578else
13579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13580for as_dir in $PATH
13581do
13582  IFS=$as_save_IFS
13583  test -z "$as_dir" && as_dir=.
13584    for ac_exec_ext in '' $ac_executable_extensions; do
13585  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13586    ac_cv_prog_ax_pthread_config="yes"
13587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13588    break 2
13589  fi
13590done
13591  done
13592IFS=$as_save_IFS
13593
13594  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
13595fi
13596fi
13597ax_pthread_config=$ac_cv_prog_ax_pthread_config
13598if test -n "$ax_pthread_config"; then
13599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
13600$as_echo "$ax_pthread_config" >&6; }
13601else
13602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13603$as_echo "no" >&6; }
13604fi
13605
13606
13607                if test x"$ax_pthread_config" = xno; then continue; fi
13608                PTHREAD_CFLAGS="`pthread-config --cflags`"
13609                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13610                ;;
13611
13612                *)
13613                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
13614$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
13615                PTHREAD_LIBS="-l$flag"
13616                ;;
13617        esac
13618
13619        save_LIBS="$LIBS"
13620        save_CFLAGS="$CFLAGS"
13621        LIBS="$PTHREAD_LIBS $LIBS"
13622        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13623
13624        # Check for various functions.  We must include pthread.h,
13625        # since some functions may be macros.  (On the Sequent, we
13626        # need a special flag -Kthread to make this header compile.)
13627        # We check for pthread_join because it is in -lpthread on IRIX
13628        # while pthread_create is in libc.  We check for pthread_attr_init
13629        # due to DEC craziness with -lpthreads.  We check for
13630        # pthread_cleanup_push because it is one of the few pthread
13631        # functions on Solaris that doesn't have a non-functional libc stub.
13632        # We try pthread_create on general principles.
13633        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634/* end confdefs.h.  */
13635#include <pthread.h>
13636                        static void routine(void *a) { a = 0; }
13637                        static void *start_routine(void *a) { return a; }
13638int
13639main ()
13640{
13641pthread_t th; pthread_attr_t attr;
13642                        pthread_create(&th, 0, start_routine, 0);
13643                        pthread_join(th, 0);
13644                        pthread_attr_init(&attr);
13645                        pthread_cleanup_push(routine, 0);
13646                        pthread_cleanup_pop(0) /* ; */
13647  ;
13648  return 0;
13649}
13650_ACEOF
13651if ac_fn_c_try_link "$LINENO"; then :
13652  ax_pthread_ok=yes
13653fi
13654rm -f core conftest.err conftest.$ac_objext \
13655    conftest$ac_exeext conftest.$ac_ext
13656
13657        LIBS="$save_LIBS"
13658        CFLAGS="$save_CFLAGS"
13659
13660        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13661$as_echo "$ax_pthread_ok" >&6; }
13662        if test "x$ax_pthread_ok" = xyes; then
13663                break;
13664        fi
13665
13666        PTHREAD_LIBS=""
13667        PTHREAD_CFLAGS=""
13668done
13669fi
13670
13671# Various other checks:
13672if test "x$ax_pthread_ok" = xyes; then
13673        save_LIBS="$LIBS"
13674        LIBS="$PTHREAD_LIBS $LIBS"
13675        save_CFLAGS="$CFLAGS"
13676        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13677
13678        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
13679        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
13680$as_echo_n "checking for joinable pthread attribute... " >&6; }
13681        attr_name=unknown
13682        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
13683            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684/* end confdefs.h.  */
13685#include <pthread.h>
13686int
13687main ()
13688{
13689int attr = $attr; return attr /* ; */
13690  ;
13691  return 0;
13692}
13693_ACEOF
13694if ac_fn_c_try_link "$LINENO"; then :
13695  attr_name=$attr; break
13696fi
13697rm -f core conftest.err conftest.$ac_objext \
13698    conftest$ac_exeext conftest.$ac_ext
13699        done
13700        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
13701$as_echo "$attr_name" >&6; }
13702        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
13703
13704cat >>confdefs.h <<_ACEOF
13705#define PTHREAD_CREATE_JOINABLE $attr_name
13706_ACEOF
13707
13708        fi
13709
13710        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
13711$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
13712        flag=no
13713        case ${host_os} in
13714            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
13715            osf* | hpux*) flag="-D_REENTRANT";;
13716            solaris*)
13717            if test "$GCC" = "yes"; then
13718                flag="-D_REENTRANT"
13719            else
13720                flag="-mt -D_REENTRANT"
13721            fi
13722            ;;
13723        esac
13724        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
13725$as_echo "${flag}" >&6; }
13726        if test "x$flag" != xno; then
13727            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13728        fi
13729
13730        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
13731$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
13732if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
13733  $as_echo_n "(cached) " >&6
13734else
13735
13736                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737/* end confdefs.h.  */
13738
13739                    #include <pthread.h>
13740int
13741main ()
13742{
13743int i = PTHREAD_PRIO_INHERIT;
13744  ;
13745  return 0;
13746}
13747_ACEOF
13748if ac_fn_c_try_link "$LINENO"; then :
13749  ax_cv_PTHREAD_PRIO_INHERIT=yes
13750else
13751  ax_cv_PTHREAD_PRIO_INHERIT=no
13752fi
13753rm -f core conftest.err conftest.$ac_objext \
13754    conftest$ac_exeext conftest.$ac_ext
13755
13756fi
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
13758$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
13759        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
13760
13761$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
13762
13763fi
13764
13765        LIBS="$save_LIBS"
13766        CFLAGS="$save_CFLAGS"
13767
13768        # More AIX lossage: must compile with xlc_r or cc_r
13769        if test x"$GCC" != xyes; then
13770          for ac_prog in xlc_r cc_r
13771do
13772  # Extract the first word of "$ac_prog", so it can be a program name with args.
13773set dummy $ac_prog; ac_word=$2
13774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13775$as_echo_n "checking for $ac_word... " >&6; }
13776if ${ac_cv_prog_PTHREAD_CC+:} false; then :
13777  $as_echo_n "(cached) " >&6
13778else
13779  if test -n "$PTHREAD_CC"; then
13780  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13781else
13782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13783for as_dir in $PATH
13784do
13785  IFS=$as_save_IFS
13786  test -z "$as_dir" && as_dir=.
13787    for ac_exec_ext in '' $ac_executable_extensions; do
13788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13789    ac_cv_prog_PTHREAD_CC="$ac_prog"
13790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13791    break 2
13792  fi
13793done
13794  done
13795IFS=$as_save_IFS
13796
13797fi
13798fi
13799PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13800if test -n "$PTHREAD_CC"; then
13801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
13802$as_echo "$PTHREAD_CC" >&6; }
13803else
13804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13805$as_echo "no" >&6; }
13806fi
13807
13808
13809  test -n "$PTHREAD_CC" && break
13810done
13811test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
13812
13813        else
13814          PTHREAD_CC=$CC
13815        fi
13816else
13817        PTHREAD_CC="$CC"
13818fi
13819
13820
13821
13822
13823
13824# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13825if test x"$ax_pthread_ok" = xyes; then
13826
13827$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
13828
13829        :
13830else
13831        ax_pthread_ok=no
13832        as_fn_error $? "missing pthread_sigmask" "$LINENO" 5
13833fi
13834ac_ext=c
13835ac_cpp='$CPP $CPPFLAGS'
13836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13838ac_compiler_gnu=$ac_cv_c_compiler_gnu
13839
13840
13841
13842
13843$as_echo "#define OPEN_NOFOLLOW_ERRNO ELOOP" >>confdefs.h
13844
13845
13846
13847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for 64bit libraries" >&5
13848$as_echo_n "checking whether to check for 64bit libraries... " >&6; }
13849# Test if the compiler is in 64bit mode
13850echo 'int i;' > conftest.$ac_ext
13851atalk_cv_cc_64bit_output=no
13852if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13853  (eval $ac_compile) 2>&5
13854  ac_status=$?
13855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13856  test $ac_status = 0; }; then
13857    case `/usr/bin/file conftest.$ac_objext` in
13858    *"ELF 64"*)
13859      atalk_cv_cc_64bit_output=yes
13860      ;;
13861    esac
13862fi
13863rm -rf conftest*
13864
13865case $host_cpu:$atalk_cv_cc_64bit_output in
13866powerpc64:yes | s390x:yes | sparc*:yes | x86_64:yes | i386:yes)
13867    case $target_os in
13868    solaris2*)
13869        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13870$as_echo "yes" >&6; }
13871        atalk_libname="lib/64"
13872        ;;
13873    *bsd* | dragonfly*)
13874        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13875$as_echo "no" >&6; }
13876        atalk_libname="lib"
13877        ;;
13878    *)
13879        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13880$as_echo "yes" >&6; }
13881        atalk_libname="lib64"
13882        ;;
13883    esac
13884    ;;
13885*:*)
13886    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887$as_echo "no" >&6; }
13888#    atalk_libname="lib"	#Modified as ".libs" by Edison in 20130923
13889    atalk_libname=".libs"
13890    ;;
13891esac
13892
13893
13894
13895case "$host_os" in
13896	*aix*)				this_os=aix ;;
13897	*freebsd*) 			this_os=freebsd ;;
13898	*hpux11*)			this_os=hpux11 ;;
13899	*irix*)				this_os=irix ;;
13900	*linux*)   			this_os=linux ;;
13901	*osx*)				this_os=macosx ;;
13902	*darwin*)			this_os=macosx ;;
13903	*netbsd*) 			this_os=netbsd ;;
13904	*openbsd*) 			this_os=openbsd ;;
13905	*osf*) 				this_os=tru64 ;;
13906	*solaris*) 			this_os=solaris ;;
13907esac
13908
13909case "$host_cpu" in
13910	i386|i486|i586|i686|k7)		this_cpu=x86 ;;
13911	alpha)						this_cpu=alpha ;;
13912	mips)						this_cpu=mips ;;
13913	powerpc|ppc)				this_cpu=ppc ;;
13914esac
13915
13916case "$this_os" in
13917	linux)
13918$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
13919
13920        ;;
13921     kfreebsd-gnu)
13922$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
13923
13924        ;;
13925esac
13926
13927
13928if test x"$this_os" = "xfreebsd"; then
13929	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  * FreeBSD specific configuration" >&5
13930$as_echo " * FreeBSD specific configuration" >&6; }
13931
13932$as_echo "#define BSD4_4 1" >>confdefs.h
13933
13934
13935$as_echo "#define FREEBSD 1" >>confdefs.h
13936
13937
13938$as_echo "#define OPEN_NOFOLLOW_ERRNO EMLINK" >>confdefs.h
13939
13940fi
13941
13942if test x"$this_os" = "xkfreebsd-gnu"; then
13943	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  * GNU/kFreeBSD specific configuration" >&5
13944$as_echo " * GNU/kFreeBSD specific configuration" >&6; }
13945
13946$as_echo "#define BSD4_4 1" >>confdefs.h
13947
13948
13949$as_echo "#define FREEBSD 1" >>confdefs.h
13950
13951
13952$as_echo "#define OPEN_NOFOLLOW_ERRNO EMLINK" >>confdefs.h
13953
13954fi
13955
13956if test x"$this_os" = "xlinux"; then
13957	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  * Linux specific configuration" >&5
13958$as_echo " * Linux specific configuration" >&6; }
13959
13960$as_echo "#define LINUX 1" >>confdefs.h
13961
13962	    for ac_header in linux/dqblk_xfs.h
13963do :
13964  ac_fn_c_check_header_mongrel "$LINENO" "linux/dqblk_xfs.h" "ac_cv_header_linux_dqblk_xfs_h" "$ac_includes_default"
13965if test "x$ac_cv_header_linux_dqblk_xfs_h" = xyes; then :
13966  cat >>confdefs.h <<_ACEOF
13967#define HAVE_LINUX_DQBLK_XFS_H 1
13968_ACEOF
13969
13970else
13971  for ac_header in linux/xqm.h linux/xfs_fs.h
13972do :
13973  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13974ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13975if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13976  cat >>confdefs.h <<_ACEOF
13977#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13978_ACEOF
13979
13980fi
13981
13982done
13983
13984        	for ac_header in xfs/libxfs.h xfs/xqm.h xfs/xfs_fs.h
13985do :
13986  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13987ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13988if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13989  cat >>confdefs.h <<_ACEOF
13990#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13991_ACEOF
13992
13993fi
13994
13995done
13996
13997
13998fi
13999
14000done
14001
14002
14003
14004
14005$as_echo "#define HAVE_BROKEN_DBTOB 1" >>confdefs.h
14006
14007
14008	need_dash_r=no
14009fi
14010
14011if test x"$this_os" = "xnetbsd"; then
14012	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  * NetBSD specific configuration" >&5
14013$as_echo " * NetBSD specific configuration" >&6; }
14014
14015$as_echo "#define BSD4_4 1" >>confdefs.h
14016
14017
14018$as_echo "#define NETBSD 1" >>confdefs.h
14019
14020
14021$as_echo "#define OPEN_NOFOLLOW_ERRNO EFTYPE" >>confdefs.h
14022
14023
14024	CFLAGS="-I\$(top_srcdir)/sys/netbsd $CFLAGS"
14025	need_dash_r=yes
14026
14027
14028$as_echo "#define UAM_DHX 1" >>confdefs.h
14029
14030fi
14031
14032if test x"$this_os" = "xopenbsd"; then
14033	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  * OpenBSD specific configuration" >&5
14034$as_echo " * OpenBSD specific configuration" >&6; }
14035
14036$as_echo "#define BSD4_4 1" >>confdefs.h
14037
14038
14039$as_echo "#define UAM_DHX 1" >>confdefs.h
14040
14041fi
14042
14043if test x"$this_os" = "xsolaris"; then
14044	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  * Solaris specific configuration" >&5
14045$as_echo " * Solaris specific configuration" >&6; }
14046
14047$as_echo "#define __svr4__ 1" >>confdefs.h
14048
14049
14050$as_echo "#define _ISOC9X_SOURCE 1" >>confdefs.h
14051
14052
14053$as_echo "#define NO_STRUCT_TM_GMTOFF 1" >>confdefs.h
14054
14055
14056$as_echo "#define SOLARIS 1" >>confdefs.h
14057
14058
14059$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
14060
14061
14062$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
14063
14064	need_dash_r=yes
14065	init_style=solaris
14066fi
14067
14068# Extract the first word of "ldconfig", so it can be a program name with args.
14069set dummy ldconfig; ac_word=$2
14070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14071$as_echo_n "checking for $ac_word... " >&6; }
14072if ${ac_cv_path_NETA_LDCONFIG+:} false; then :
14073  $as_echo_n "(cached) " >&6
14074else
14075  case $NETA_LDCONFIG in
14076  [\\/]* | ?:[\\/]*)
14077  ac_cv_path_NETA_LDCONFIG="$NETA_LDCONFIG" # Let the user override the test with a path.
14078  ;;
14079  *)
14080  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14081for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/usr/bin
14082do
14083  IFS=$as_save_IFS
14084  test -z "$as_dir" && as_dir=.
14085    for ac_exec_ext in '' $ac_executable_extensions; do
14086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14087    ac_cv_path_NETA_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
14088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14089    break 2
14090  fi
14091done
14092  done
14093IFS=$as_save_IFS
14094
14095  ;;
14096esac
14097fi
14098NETA_LDCONFIG=$ac_cv_path_NETA_LDCONFIG
14099if test -n "$NETA_LDCONFIG"; then
14100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETA_LDCONFIG" >&5
14101$as_echo "$NETA_LDCONFIG" >&6; }
14102else
14103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14104$as_echo "no" >&6; }
14105fi
14106
14107
14108echo NETA_LDCONFIG = $NETA_LDCONFIG
14109 if test x"$this_os" = x"linux" -a x"$NETA_LDCONFIG" != x""; then
14110  RUN_LDCONFIG_TRUE=
14111  RUN_LDCONFIG_FALSE='#'
14112else
14113  RUN_LDCONFIG_TRUE='#'
14114  RUN_LDCONFIG_FALSE=
14115fi
14116
14117
14118
14119
14120    netatalk_cv_admin_group=yes
14121    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for administrative group support" >&5
14122$as_echo_n "checking for administrative group support... " >&6; }
14123    # Check whether --enable-admin-group was given.
14124if test "${enable_admin_group+set}" = set; then :
14125  enableval=$enable_admin_group;
14126            if test x"$enableval" = x"no"; then
14127
14128$as_echo "#define ADMIN_GRP 0" >>confdefs.h
14129
14130		         netatalk_cv_admin_group=no
14131		         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14132$as_echo "no" >&6; }
14133	        else
14134
14135$as_echo "#define ADMIN_GRP 1" >>confdefs.h
14136
14137		         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14138$as_echo "yes" >&6; }
14139            fi
14140else
14141
14142
14143$as_echo "#define ADMIN_GRP 1" >>confdefs.h
14144
14145		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14146$as_echo "yes" >&6; }
14147
14148fi
14149
14150
14151
14152
14153	AFS_LIBS=
14154	AFS_CFLAGS=
14155
14156	netatalk_cv_afs=no
14157	# Check whether --enable-afs was given.
14158if test "${enable_afs+set}" = set; then :
14159  enableval=$enable_afs;
14160			if test "x$enableval" = "xyes"; then
14161				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in -lafsauthent" >&5
14162$as_echo_n "checking for pioctl in -lafsauthent... " >&6; }
14163if ${ac_cv_lib_afsauthent_pioctl+:} false; then :
14164  $as_echo_n "(cached) " >&6
14165else
14166  ac_check_lib_save_LIBS=$LIBS
14167LIBS="-lafsauthent  $LIBS"
14168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14169/* end confdefs.h.  */
14170
14171/* Override any GCC internal prototype to avoid an error.
14172   Use char because int might match the return type of a GCC
14173   builtin and then its argument prototype would still apply.  */
14174#ifdef __cplusplus
14175extern "C"
14176#endif
14177char pioctl ();
14178int
14179main ()
14180{
14181return pioctl ();
14182  ;
14183  return 0;
14184}
14185_ACEOF
14186if ac_fn_c_try_link "$LINENO"; then :
14187  ac_cv_lib_afsauthent_pioctl=yes
14188else
14189  ac_cv_lib_afsauthent_pioctl=no
14190fi
14191rm -f core conftest.err conftest.$ac_objext \
14192    conftest$ac_exeext conftest.$ac_ext
14193LIBS=$ac_check_lib_save_LIBS
14194fi
14195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_afsauthent_pioctl" >&5
14196$as_echo "$ac_cv_lib_afsauthent_pioctl" >&6; }
14197if test "x$ac_cv_lib_afsauthent_pioctl" = xyes; then :
14198  netatalk_cv_afs=yes
14199else
14200  as_fn_error $? "AFS installation not found" "$LINENO" 5
14201
14202fi
14203
14204				AFS_LIBS=-lresolv -lafsrpc -lafsauthent
14205
14206$as_echo "#define AFS 1" >>confdefs.h
14207
14208			fi
14209
14210
14211fi
14212
14213
14214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable AFS support" >&5
14215$as_echo_n "checking whether to enable AFS support... " >&6; }
14216	if test x"$netatalk_cv_afs" = x"yes"; then
14217		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14218$as_echo "yes" >&6; }
14219	else
14220		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221$as_echo "no" >&6; }
14222	fi
14223
14224
14225
14226
14227
14228
14229	PKGCONFDIR="${sysconfdir}"
14230
14231
14232# Check whether --with-pkgconfdir was given.
14233if test "${with_pkgconfdir+set}" = set; then :
14234  withval=$with_pkgconfdir;
14235			if test "x$withval" != "x"; then
14236				PKGCONFDIR="$withval"
14237			fi
14238
14239
14240fi
14241
14242
14243
14244	SERVERTEXT="${localstatedir}/netatalk/msg"
14245
14246
14247# Check whether --with-message-dir was given.
14248if test "${with_message_dir+set}" = set; then :
14249  withval=$with_message_dir;
14250			if test x"$withval" = x"no";  then
14251				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: message-dir is mandatory and cannot be disabled, using default" >&5
14252$as_echo "$as_me: WARNING: message-dir is mandatory and cannot be disabled, using default" >&2;}
14253			elif test "x$withval" != "x" && test x"$withval" != x"yes"; then
14254				SERVERTEXT="$withval"
14255			fi
14256
14257
14258fi
14259
14260
14261
14262
14263
14264
14265
14266netatalk_cv_with_cracklib=no
14267
14268# Check whether --with-cracklib was given.
14269if test "${with_cracklib+set}" = set; then :
14270  withval=$with_cracklib;
14271	if test "x$withval" != "xno" ; then
14272		cracklib="$withval"
14273		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrack" >&5
14274$as_echo_n "checking for main in -lcrack... " >&6; }
14275if ${ac_cv_lib_crack_main+:} false; then :
14276  $as_echo_n "(cached) " >&6
14277else
14278  ac_check_lib_save_LIBS=$LIBS
14279LIBS="-lcrack  $LIBS"
14280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281/* end confdefs.h.  */
14282
14283
14284int
14285main ()
14286{
14287return main ();
14288  ;
14289  return 0;
14290}
14291_ACEOF
14292if ac_fn_c_try_link "$LINENO"; then :
14293  ac_cv_lib_crack_main=yes
14294else
14295  ac_cv_lib_crack_main=no
14296fi
14297rm -f core conftest.err conftest.$ac_objext \
14298    conftest$ac_exeext conftest.$ac_ext
14299LIBS=$ac_check_lib_save_LIBS
14300fi
14301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crack_main" >&5
14302$as_echo "$ac_cv_lib_crack_main" >&6; }
14303if test "x$ac_cv_lib_crack_main" = xyes; then :
14304
14305
14306$as_echo "#define USE_CRACKLIB 1" >>confdefs.h
14307
14308			LIBS="$LIBS -lcrack"
14309			if test "$cracklib" = "yes"; then
14310				cracklib="/usr/$atalk_libname/cracklib_dict"
14311			fi
14312
14313cat >>confdefs.h <<_ACEOF
14314#define _PATH_CRACKLIB "$cracklib"
14315_ACEOF
14316
14317			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: setting cracklib dictionary to $cracklib" >&5
14318$as_echo "setting cracklib dictionary to $cracklib" >&6; }
14319			netatalk_cv_with_cracklib=yes
14320
14321else
14322
14323			as_fn_error $? "cracklib not found!" "$LINENO" 5
14324
14325
14326fi
14327
14328	fi
14329
14330
14331fi
14332
14333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cracklib support" >&5
14334$as_echo_n "checking for cracklib support... " >&6; }
14335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_with_cracklib" >&5
14336$as_echo "$netatalk_cv_with_cracklib" >&6; }
14337
14338
14339
14340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose debug code" >&5
14341$as_echo_n "checking whether to enable verbose debug code... " >&6; }
14342# Check whether --enable-debug was given.
14343if test "${enable_debug+set}" = set; then :
14344  enableval=$enable_debug;
14345	if test "$enableval" != "no"; then
14346		if test "$enableval" = "yes"; then
14347
14348$as_echo "#define DEBUG 1" >>confdefs.h
14349
14350		else
14351
14352cat >>confdefs.h <<_ACEOF
14353#define DEBUG $enableval
14354_ACEOF
14355
14356		fi
14357		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14358$as_echo "yes" >&6; }
14359	else
14360		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14361$as_echo "no" >&6; }
14362
14363$as_echo "#define NDEBUG 1" >>confdefs.h
14364
14365	fi
14366
14367else
14368
14369		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370$as_echo "no" >&6; }
14371
14372$as_echo "#define NDEBUG 1" >>confdefs.h
14373
14374
14375
14376fi
14377
14378
14379
14380
14381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging with debuggers" >&5
14382$as_echo_n "checking whether to enable debugging with debuggers... " >&6; }
14383# Check whether --enable-debugging was given.
14384if test "${enable_debugging+set}" = set; then :
14385  enableval=$enable_debugging;
14386	if test "$enableval" != "no"; then
14387		if test "$enableval" = "yes"; then
14388
14389$as_echo "#define DEBUGGING 1" >>confdefs.h
14390
14391		else
14392
14393cat >>confdefs.h <<_ACEOF
14394#define DEBUGGING $enableval
14395_ACEOF
14396
14397		fi
14398		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14399$as_echo "yes" >&6; }
14400	else
14401		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14402$as_echo "no" >&6; }
14403	fi
14404
14405else
14406
14407		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14408$as_echo "no" >&6; }
14409
14410
14411fi
14412
14413
14414
14415
14416
14417
14418	saved_CPPFLAGS="$CPPFLAGS"
14419        savedcflags="$CFLAGS"
14420        savedldflags="$LDFLAGS"
14421	ICONV_CFLAGS=""
14422	ICONV_LIBS=""
14423
14424
14425# Check whether --with-libiconv was given.
14426if test "${with_libiconv+set}" = set; then :
14427  withval=$with_libiconv;  case "$withval" in
14428	  no)
14429	    ;;
14430	  yes)
14431	    ;;
14432	  *)
14433	    ICONV_CFLAGS="-I$withval/include"
14434	    ICONV_LIBS="-L$withval/$atalk_libname"
14435	    ;;
14436	  esac
14437else
14438  withval="no"
14439
14440fi
14441
14442
14443	CFLAGS="$ICONV_CFLAGS $CFLAGS"
14444        LDFLAGS="$LDFLAGS $ICONV_LIBS -liconv"
14445
14446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv" >&5
14447$as_echo_n "checking for libiconv... " >&6; }
14448if ${netatalk_cv_iconv+:} false; then :
14449  $as_echo_n "(cached) " >&6
14450else
14451
14452          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453/* end confdefs.h.  */
14454
14455#include <stdlib.h>
14456#include <iconv.h>
14457
14458int
14459main ()
14460{
14461
14462	iconv_t cd = iconv_open("","");
14463        iconv(cd,NULL,NULL,NULL,NULL);
14464        iconv_close(cd);
14465
14466  ;
14467  return 0;
14468}
14469_ACEOF
14470if ac_fn_c_try_link "$LINENO"; then :
14471  netatalk_cv_iconv=yes
14472else
14473  netatalk_cv_iconv=no
14474fi
14475rm -f core conftest.err conftest.$ac_objext \
14476    conftest$ac_exeext conftest.$ac_ext
14477fi
14478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_iconv" >&5
14479$as_echo "$netatalk_cv_iconv" >&6; }
14480
14481	if test x"$netatalk_cv_iconv" = x"yes"; then
14482	    ICONV_LIBS="$ICONV_LIBS -liconv"
14483        else
14484	    CFLAGS="$savedcflags"
14485	    LDFLAGS="$savedldflags"
14486	    ICONV_LIBS=""
14487	    ICONV_CFLAGS=""
14488	    if test x"$withval" != x"no"; then
14489	        as_fn_error $? "libiconv not found" "$LINENO" 5
14490	    fi
14491	fi
14492
14493
14494
14495  ac_new_flags=""
14496  for i in $ICONV_CFLAGS; do
14497    case $i in
14498    -I/usr/include|-I/usr/include/) ;;
14499    *) ac_new_flags="$ac_new_flags $i" ;;
14500    esac
14501  done
14502  ICONV_CFLAGS=$ac_new_flags
14503
14504
14505  ac_new_flags=""
14506  for i in $ICONV_LIBS; do
14507    case $i in
14508    -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
14509    *) ac_new_flags="$ac_new_flags $i" ;;
14510    esac
14511  done
14512  ICONV_LIBS=$ac_new_flags
14513
14514
14515
14516
14517
14518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14519$as_echo_n "checking for working iconv... " >&6; }
14520if ${netatalk_cv_HAVE_USABLE_ICONV+:} false; then :
14521  $as_echo_n "(cached) " >&6
14522else
14523
14524		if test "$cross_compiling" = yes; then :
14525  netatalk_cv_HAVE_USABLE_ICONV=cross
14526else
14527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528/* end confdefs.h.  */
14529\
14530#include <iconv.h>
14531main() {
14532       iconv_t cd = iconv_open("ASCII", "UTF-8");
14533       if (cd == 0 || cd == (iconv_t)-1) return -1;
14534       return 0;
14535}
14536
14537_ACEOF
14538if ac_fn_c_try_run "$LINENO"; then :
14539  netatalk_cv_HAVE_USABLE_ICONV=yes
14540else
14541  netatalk_cv_HAVE_USABLE_ICONV=no
14542fi
14543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14544  conftest.$ac_objext conftest.beam conftest.$ac_ext
14545fi
14546
14547fi
14548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_HAVE_USABLE_ICONV" >&5
14549$as_echo "$netatalk_cv_HAVE_USABLE_ICONV" >&6; }
14550
14551	if test x"$netatalk_cv_HAVE_USABLE_ICONV" = x"yes"; then
14552
14553$as_echo "#define HAVE_USABLE_ICONV 1" >>confdefs.h
14554
14555	fi
14556
14557  	if test x"$netatalk_cv_HAVE_USABLE_ICONV" = x"yes"; then
14558    		if ${am_cv_proto_iconv+:} false; then :
14559  $as_echo_n "(cached) " >&6
14560else
14561
14562      		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563/* end confdefs.h.  */
14564\
14565#include <stdlib.h>
14566#include <iconv.h>
14567extern
14568#ifdef __cplusplus
14569"C"
14570#endif
14571#if defined(__STDC__) || defined(__cplusplus)
14572size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14573#else
14574size_t iconv();
14575#endif
14576
14577int
14578main ()
14579{
14580
14581  ;
14582  return 0;
14583}
14584_ACEOF
14585if ac_fn_c_try_compile "$LINENO"; then :
14586  am_cv_proto_iconv_arg1=""
14587else
14588  am_cv_proto_iconv_arg1="const"
14589fi
14590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14591	      	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);"
14592fi
14593
14594
14595cat >>confdefs.h <<_ACEOF
14596#define ICONV_CONST $am_cv_proto_iconv_arg1
14597_ACEOF
14598
14599  	fi
14600
14601	if test x"$netatalk_cv_HAVE_USABLE_ICONV" = x"yes"; then
14602	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv supports UCS-2-INTERNAL" >&5
14603$as_echo_n "checking whether iconv supports UCS-2-INTERNAL... " >&6; }
14604if ${netatalk_cv_HAVE_UCS2INTERNAL+:} false; then :
14605  $as_echo_n "(cached) " >&6
14606else
14607
14608		if test "$cross_compiling" = yes; then :
14609  netatalk_cv_HAVEUCS2INTERNAL=cross
14610else
14611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612/* end confdefs.h.  */
14613\
14614#include <iconv.h>
14615int main() {
14616       iconv_t cd = iconv_open("ASCII", "UCS-2-INTERNAL");
14617       if (cd == 0 || cd == (iconv_t)-1) return -1;
14618       return 0;
14619}
14620
14621_ACEOF
14622if ac_fn_c_try_run "$LINENO"; then :
14623  netatalk_cv_HAVE_UCS2INTERNAL=yes
14624else
14625  netatalk_cv_HAVE_UCS2INTERNAL=no
14626fi
14627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14628  conftest.$ac_objext conftest.beam conftest.$ac_ext
14629fi
14630
14631fi
14632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_HAVE_UCS2INTERNAL" >&5
14633$as_echo "$netatalk_cv_HAVE_UCS2INTERNAL" >&6; }
14634
14635	if test x"$netatalk_cv_HAVE_UCS2INTERNAL" = x"yes"; then
14636
14637$as_echo "#define HAVE_UCS2INTERNAL 1" >>confdefs.h
14638
14639	fi
14640	fi
14641
14642        CFLAGS="$savedcflags"
14643        LDFLAGS="$savedldflags"
14644	CPPFLAGS="$saved_CPPFLAGS"
14645
14646
14647
14648
14649        bdb_required=no
14650    compiled_backends=""
14651
14652        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to use Database Daemon CNID backend" >&5
14653$as_echo_n "checking whether or not to use Database Daemon CNID backend... " >&6; }
14654
14655# Check whether --with-cnid-dbd-backend was given.
14656if test "${with_cnid_dbd_backend+set}" = set; then :
14657  withval=$with_cnid_dbd_backend;    if test x"$withval" = x"no"; then
14658            use_dbd_backend=no
14659            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14660$as_echo "no" >&6; }
14661        else
14662            use_dbd_backend=yes
14663            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14664$as_echo "yes" >&6; }
14665        fi
14666
14667else
14668
14669        use_dbd_backend=yes
14670        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14671$as_echo "yes" >&6; }
14672
14673fi
14674
14675
14676    if test $use_dbd_backend = yes; then
14677        compiled_backends="$compiled_backends dbd"
14678
14679$as_echo "#define CNID_BACKEND_DBD 1" >>confdefs.h
14680
14681        if test x"$DEFAULT_CNID_SCHEME" = x; then
14682            DEFAULT_CNID_SCHEME=dbd
14683        fi
14684        bdb_required=yes
14685    fi
14686     if test x"$use_dbd_backend" = x"yes"; then
14687  BUILD_DBD_DAEMON_TRUE=
14688  BUILD_DBD_DAEMON_FALSE='#'
14689else
14690  BUILD_DBD_DAEMON_TRUE='#'
14691  BUILD_DBD_DAEMON_FALSE=
14692fi
14693
14694
14695        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to use BDB Concurrent Data Store" >&5
14696$as_echo_n "checking whether or not to use BDB Concurrent Data Store... " >&6; }
14697
14698# Check whether --with-cnid-cdb-backend was given.
14699if test "${with_cnid_cdb_backend+set}" = set; then :
14700  withval=$with_cnid_cdb_backend;
14701	    if test x"$withval" = x"no"; then
14702	        use_cdb_backend=no
14703        else
14704            use_cdb_backend=yes
14705        fi
14706
14707else
14708
14709        use_cdb_backend=no
14710
14711fi
14712
14713
14714
14715    if test $use_cdb_backend = yes; then
14716        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14717$as_echo "yes" >&6; }
14718
14719$as_echo "#define CNID_BACKEND_CDB 1" >>confdefs.h
14720
14721        if test x"$DEFAULT_CNID_SCHEME" = x; then
14722            DEFAULT_CNID_SCHEME=cdb
14723        fi
14724        bdb_required=yes
14725        compiled_backends="$compiled_backends cdb"
14726    else
14727        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14728$as_echo "no" >&6; }
14729    fi
14730     if test x"$use_cdb_backend" = x"yes"; then
14731  USE_CDB_BACKEND_TRUE=
14732  USE_CDB_BACKEND_FALSE='#'
14733else
14734  USE_CDB_BACKEND_TRUE='#'
14735  USE_CDB_BACKEND_FALSE=
14736fi
14737
14738
14739        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to use LAST DID scheme" >&5
14740$as_echo_n "checking whether or not to use LAST DID scheme... " >&6; }
14741
14742# Check whether --with-cnid-last-backend was given.
14743if test "${with_cnid_last_backend+set}" = set; then :
14744  withval=$with_cnid_last_backend;
14745        if test x"$withval" = x"no"; then
14746            use_last_backend=no
14747        else
14748            use_last_backend=yes
14749        fi
14750
14751else
14752
14753        use_last_backend=yes
14754
14755fi
14756
14757
14758    if test $use_last_backend = yes; then
14759        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14760$as_echo "yes" >&6; }
14761
14762$as_echo "#define CNID_BACKEND_LAST 1" >>confdefs.h
14763
14764        if test x"$DEFAULT_CNID_SCHEME" = x; then
14765            DEFAULT_CNID_SCHEME=last
14766        fi
14767        compiled_backends="$compiled_backends last"
14768    else
14769        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14770$as_echo "no" >&6; }
14771    fi
14772     if test x"$use_last_backend" = x"yes"; then
14773  USE_LAST_BACKEND_TRUE=
14774  USE_LAST_BACKEND_FALSE='#'
14775else
14776  USE_LAST_BACKEND_TRUE='#'
14777  USE_LAST_BACKEND_FALSE=
14778fi
14779
14780
14781        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to use TDB DID scheme" >&5
14782$as_echo_n "checking whether or not to use TDB DID scheme... " >&6; }
14783
14784# Check whether --with-cnid-tdb-backend was given.
14785if test "${with_cnid_tdb_backend+set}" = set; then :
14786  withval=$with_cnid_tdb_backend;
14787        if test x"$withval" = x"no"; then
14788            use_tdb_backend=no
14789        else
14790            use_tdb_backend=yes
14791        fi
14792
14793else
14794
14795        use_tdb_backend=yes
14796
14797fi
14798
14799
14800    if test $use_tdb_backend = yes; then
14801        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14802$as_echo "yes" >&6; }
14803
14804$as_echo "#define CNID_BACKEND_TDB 1" >>confdefs.h
14805
14806        if test x"$DEFAULT_CNID_SCHEME" = x; then
14807            DEFAULT_CNID_SCHEME=tdb
14808        fi
14809        compiled_backends="$compiled_backends tdb"
14810    else
14811        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14812$as_echo "no" >&6; }
14813    fi
14814     if test x"$use_tdb_backend" = x"yes"; then
14815  USE_TDB_BACKEND_TRUE=
14816  USE_TDB_BACKEND_FALSE='#'
14817else
14818  USE_TDB_BACKEND_TRUE='#'
14819  USE_TDB_BACKEND_FALSE=
14820fi
14821
14822
14823        { $as_echo "$as_me:${as_lineno-$LINENO}: checking default DID scheme" >&5
14824$as_echo_n "checking default DID scheme... " >&6; }
14825
14826# Check whether --with-cnid-default-backend was given.
14827if test "${with_cnid_default_backend+set}" = set; then :
14828  withval=$with_cnid_default_backend;
14829        if test x"$withval" = x; then
14830            { $as_echo "$as_me:${as_lineno-$LINENO}: result: ignored" >&5
14831$as_echo "ignored" >&6; }
14832        else
14833            DEFAULT_CNID_SCHEME=$withval
14834            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_CNID_SCHEME" >&5
14835$as_echo "$DEFAULT_CNID_SCHEME" >&6; }
14836        fi
14837
14838else
14839
14840        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_CNID_SCHEME" >&5
14841$as_echo "$DEFAULT_CNID_SCHEME" >&6; }
14842
14843fi
14844
14845
14846    if test x"$DEFAULT_CNID_SCHEME" = x; then
14847        as_fn_error $? "No DID schemes compiled in " "$LINENO" 5
14848    fi
14849
14850    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether default CNID scheme has been activated" >&5
14851$as_echo_n "checking whether default CNID scheme has been activated... " >&6; }
14852    found_scheme=no
14853    for scheme in $compiled_backends ; do
14854        if test x"$scheme" = x"$DEFAULT_CNID_SCHEME"; then
14855            found_scheme=yes
14856        fi
14857    done
14858    if test x"$found_scheme" = x"no"; then
14859        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14860$as_echo "no" >&6; }
14861        as_fn_error $? "Specified default CNID scheme $DEFAULT_CNID_SCHEME was not selected for compilation" "$LINENO" 5
14862    else
14863        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14864$as_echo "yes" >&6; }
14865    fi
14866
14867
14868cat >>confdefs.h <<_ACEOF
14869#define DEFAULT_CNID_SCHEME "$DEFAULT_CNID_SCHEME"
14870_ACEOF
14871
14872
14873
14874
14875    if test "x$bdb_required" = "xyes"; then
14876	bdb_required=yes
14877    else
14878	bdb_required=no
14879    fi
14880
14881
14882
14883	# Check whether --enable-quota was given.
14884if test "${enable_quota+set}" = set; then :
14885  enableval=$enable_quota;
14886fi
14887
14888
14889	if test x$enable_quota != xno; then
14890	QUOTA_LIBS=""
14891	netatalk_cv_quotasupport="yes"
14892	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrpcsvc" >&5
14893$as_echo_n "checking for main in -lrpcsvc... " >&6; }
14894if ${ac_cv_lib_rpcsvc_main+:} false; then :
14895  $as_echo_n "(cached) " >&6
14896else
14897  ac_check_lib_save_LIBS=$LIBS
14898LIBS="-lrpcsvc  $LIBS"
14899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900/* end confdefs.h.  */
14901
14902
14903int
14904main ()
14905{
14906return main ();
14907  ;
14908  return 0;
14909}
14910_ACEOF
14911if ac_fn_c_try_link "$LINENO"; then :
14912  ac_cv_lib_rpcsvc_main=yes
14913else
14914  ac_cv_lib_rpcsvc_main=no
14915fi
14916rm -f core conftest.err conftest.$ac_objext \
14917    conftest$ac_exeext conftest.$ac_ext
14918LIBS=$ac_check_lib_save_LIBS
14919fi
14920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsvc_main" >&5
14921$as_echo "$ac_cv_lib_rpcsvc_main" >&6; }
14922if test "x$ac_cv_lib_rpcsvc_main" = xyes; then :
14923  QUOTA_LIBS="-lrpcsvc"
14924fi
14925
14926	for ac_header in rpc/rpc.h rpc/pmap_prot.h rpcsvc/rquota.h
14927do :
14928  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14929ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14930if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14931  cat >>confdefs.h <<_ACEOF
14932#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14933_ACEOF
14934
14935else
14936
14937		QUOTA_LIBS=""
14938		netatalk_cv_quotasupport="no"
14939
14940$as_echo "#define NO_QUOTA_SUPPORT 1" >>confdefs.h
14941
14942
14943fi
14944
14945done
14946
14947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getfsquota in -lquota" >&5
14948$as_echo_n "checking for getfsquota in -lquota... " >&6; }
14949if ${ac_cv_lib_quota_getfsquota+:} false; then :
14950  $as_echo_n "(cached) " >&6
14951else
14952  ac_check_lib_save_LIBS=$LIBS
14953LIBS="-lquota -lprop -lrpcsvc $LIBS"
14954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955/* end confdefs.h.  */
14956
14957/* Override any GCC internal prototype to avoid an error.
14958   Use char because int might match the return type of a GCC
14959   builtin and then its argument prototype would still apply.  */
14960#ifdef __cplusplus
14961extern "C"
14962#endif
14963char getfsquota ();
14964int
14965main ()
14966{
14967return getfsquota ();
14968  ;
14969  return 0;
14970}
14971_ACEOF
14972if ac_fn_c_try_link "$LINENO"; then :
14973  ac_cv_lib_quota_getfsquota=yes
14974else
14975  ac_cv_lib_quota_getfsquota=no
14976fi
14977rm -f core conftest.err conftest.$ac_objext \
14978    conftest$ac_exeext conftest.$ac_ext
14979LIBS=$ac_check_lib_save_LIBS
14980fi
14981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quota_getfsquota" >&5
14982$as_echo "$ac_cv_lib_quota_getfsquota" >&6; }
14983if test "x$ac_cv_lib_quota_getfsquota" = xyes; then :
14984  QUOTA_LIBS="-lquota -lprop -lrpcsvc"
14985
14986$as_echo "#define HAVE_LIBQUOTA 1" >>confdefs.h
14987
14988fi
14989
14990	else
14991		netatalk_cv_quotasupport="no"
14992
14993$as_echo "#define NO_QUOTA_SUPPORT 1" >>confdefs.h
14994
14995	fi
14996
14997
14998
14999
15000
15001
15002if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15003	if test -n "$ac_tool_prefix"; then
15004  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15005set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15007$as_echo_n "checking for $ac_word... " >&6; }
15008if ${ac_cv_path_PKG_CONFIG+:} false; then :
15009  $as_echo_n "(cached) " >&6
15010else
15011  case $PKG_CONFIG in
15012  [\\/]* | ?:[\\/]*)
15013  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15014  ;;
15015  *)
15016  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15017for as_dir in $PATH
15018do
15019  IFS=$as_save_IFS
15020  test -z "$as_dir" && as_dir=.
15021    for ac_exec_ext in '' $ac_executable_extensions; do
15022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15023    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15025    break 2
15026  fi
15027done
15028  done
15029IFS=$as_save_IFS
15030
15031  ;;
15032esac
15033fi
15034PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15035if test -n "$PKG_CONFIG"; then
15036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15037$as_echo "$PKG_CONFIG" >&6; }
15038else
15039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15040$as_echo "no" >&6; }
15041fi
15042
15043
15044fi
15045if test -z "$ac_cv_path_PKG_CONFIG"; then
15046  ac_pt_PKG_CONFIG=$PKG_CONFIG
15047  # Extract the first word of "pkg-config", so it can be a program name with args.
15048set dummy pkg-config; ac_word=$2
15049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15050$as_echo_n "checking for $ac_word... " >&6; }
15051if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15052  $as_echo_n "(cached) " >&6
15053else
15054  case $ac_pt_PKG_CONFIG in
15055  [\\/]* | ?:[\\/]*)
15056  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15057  ;;
15058  *)
15059  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15060for as_dir in $PATH
15061do
15062  IFS=$as_save_IFS
15063  test -z "$as_dir" && as_dir=.
15064    for ac_exec_ext in '' $ac_executable_extensions; do
15065  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15066    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15068    break 2
15069  fi
15070done
15071  done
15072IFS=$as_save_IFS
15073
15074  ;;
15075esac
15076fi
15077ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15078if test -n "$ac_pt_PKG_CONFIG"; then
15079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15080$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15081else
15082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15083$as_echo "no" >&6; }
15084fi
15085
15086  if test "x$ac_pt_PKG_CONFIG" = x; then
15087    PKG_CONFIG=""
15088  else
15089    case $cross_compiling:$ac_tool_warned in
15090yes:)
15091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15093ac_tool_warned=yes ;;
15094esac
15095    PKG_CONFIG=$ac_pt_PKG_CONFIG
15096  fi
15097else
15098  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15099fi
15100
15101fi
15102if test -n "$PKG_CONFIG"; then
15103	_pkg_min_version=0.9.0
15104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15105$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15106	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15107		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15108$as_echo "yes" >&6; }
15109	else
15110		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15111$as_echo "no" >&6; }
15112		PKG_CONFIG=""
15113	fi
15114
15115fi
15116
15117	ZEROCONF_LIBS=""
15118	ZEROCONF_CFLAGS=""
15119	found_zeroconf=no
15120	zeroconf_dir=""
15121
15122	# Check whether --enable-zeroconf was given.
15123if test "${enable_zeroconf+set}" = set; then :
15124  enableval=$enable_zeroconf; zeroconf=$enableval
15125else
15126  zeroconf=try
15127
15128fi
15129
15130
15131        [ -n "$atalk_libname" ] || as_fn_error $? "internal error, atalk_libname undefined" "$LINENO" 5
15132
15133	if test "x$zeroconf" != "xno"; then
15134		savedcppflags="$CPPFLAGS"
15135		savedldflags="$LDFLAGS"
15136
15137		if test "x$zeroconf" = "xyes" -o "x$zeroconf" = "xtry"; then
15138			zeroconf_dir="/usr"
15139		else
15140			zeroconf_dir="$zeroconf"
15141		fi
15142
15143        # mDNS support using mDNSResponder
15144        ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
15145if test "x$ac_cv_header_dns_sd_h" = xyes; then :
15146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNSServiceRegister in -ldns_sd" >&5
15147$as_echo_n "checking for DNSServiceRegister in -ldns_sd... " >&6; }
15148if ${ac_cv_lib_dns_sd_DNSServiceRegister+:} false; then :
15149  $as_echo_n "(cached) " >&6
15150else
15151  ac_check_lib_save_LIBS=$LIBS
15152LIBS="-ldns_sd  $LIBS"
15153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154/* end confdefs.h.  */
15155
15156/* Override any GCC internal prototype to avoid an error.
15157   Use char because int might match the return type of a GCC
15158   builtin and then its argument prototype would still apply.  */
15159#ifdef __cplusplus
15160extern "C"
15161#endif
15162char DNSServiceRegister ();
15163int
15164main ()
15165{
15166return DNSServiceRegister ();
15167  ;
15168  return 0;
15169}
15170_ACEOF
15171if ac_fn_c_try_link "$LINENO"; then :
15172  ac_cv_lib_dns_sd_DNSServiceRegister=yes
15173else
15174  ac_cv_lib_dns_sd_DNSServiceRegister=no
15175fi
15176rm -f core conftest.err conftest.$ac_objext \
15177    conftest$ac_exeext conftest.$ac_ext
15178LIBS=$ac_check_lib_save_LIBS
15179fi
15180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5
15181$as_echo "$ac_cv_lib_dns_sd_DNSServiceRegister" >&6; }
15182if test "x$ac_cv_lib_dns_sd_DNSServiceRegister" = xyes; then :
15183
15184$as_echo "#define USE_ZEROCONF 1" >>confdefs.h
15185
15186fi
15187
15188
15189fi
15190
15191
15192
15193        if test "$ac_cv_lib_dns_sd_DNSServiceRegister" = yes; then
15194            ZEROCONF_LIBS="-ldns_sd"
15195
15196$as_echo "#define HAVE_MDNS 1" >>confdefs.h
15197
15198            found_zeroconf=yes
15199        fi
15200
15201        # mDNS support using Avahi
15202        if test x"$found_zeroconf" != x"yes" ; then
15203            ac_fn_c_check_header_mongrel "$LINENO" "avahi-client/client.h" "ac_cv_header_avahi_client_client_h" "$ac_includes_default"
15204if test "x$ac_cv_header_avahi_client_client_h" = xyes; then :
15205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
15206$as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
15207if ${ac_cv_lib_avahi_client_avahi_client_new+:} false; then :
15208  $as_echo_n "(cached) " >&6
15209else
15210  ac_check_lib_save_LIBS=$LIBS
15211LIBS="-lavahi-client  $LIBS"
15212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213/* end confdefs.h.  */
15214
15215/* Override any GCC internal prototype to avoid an error.
15216   Use char because int might match the return type of a GCC
15217   builtin and then its argument prototype would still apply.  */
15218#ifdef __cplusplus
15219extern "C"
15220#endif
15221char avahi_client_new ();
15222int
15223main ()
15224{
15225return avahi_client_new ();
15226  ;
15227  return 0;
15228}
15229_ACEOF
15230if ac_fn_c_try_link "$LINENO"; then :
15231  ac_cv_lib_avahi_client_avahi_client_new=yes
15232else
15233  ac_cv_lib_avahi_client_avahi_client_new=no
15234fi
15235rm -f core conftest.err conftest.$ac_objext \
15236    conftest$ac_exeext conftest.$ac_ext
15237LIBS=$ac_check_lib_save_LIBS
15238fi
15239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
15240$as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
15241if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes; then :
15242
15243$as_echo "#define USE_ZEROCONF 1" >>confdefs.h
15244
15245fi
15246
15247
15248fi
15249
15250
15251
15252            case "$ac_cv_lib_avahi_client_avahi_client_new" in
15253            yes)
15254
15255pkg_failed=no
15256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVAHI" >&5
15257$as_echo_n "checking for AVAHI... " >&6; }
15258
15259if test -n "$AVAHI_CFLAGS"; then
15260    pkg_cv_AVAHI_CFLAGS="$AVAHI_CFLAGS"
15261 elif test -n "$PKG_CONFIG"; then
15262    if test -n "$PKG_CONFIG" && \
15263    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6 \""; } >&5
15264  ($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6 ") 2>&5
15265  ac_status=$?
15266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15267  test $ac_status = 0; }; then
15268  pkg_cv_AVAHI_CFLAGS=`$PKG_CONFIG --cflags " avahi-client >= 0.6 " 2>/dev/null`
15269else
15270  pkg_failed=yes
15271fi
15272 else
15273    pkg_failed=untried
15274fi
15275if test -n "$AVAHI_LIBS"; then
15276    pkg_cv_AVAHI_LIBS="$AVAHI_LIBS"
15277 elif test -n "$PKG_CONFIG"; then
15278    if test -n "$PKG_CONFIG" && \
15279    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6 \""; } >&5
15280  ($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6 ") 2>&5
15281  ac_status=$?
15282  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15283  test $ac_status = 0; }; then
15284  pkg_cv_AVAHI_LIBS=`$PKG_CONFIG --libs " avahi-client >= 0.6 " 2>/dev/null`
15285else
15286  pkg_failed=yes
15287fi
15288 else
15289    pkg_failed=untried
15290fi
15291
15292
15293
15294if test $pkg_failed = yes; then
15295
15296if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15297        _pkg_short_errors_supported=yes
15298else
15299        _pkg_short_errors_supported=no
15300fi
15301        if test $_pkg_short_errors_supported = yes; then
15302	        AVAHI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " avahi-client >= 0.6 " 2>&1`
15303        else
15304	        AVAHI_PKG_ERRORS=`$PKG_CONFIG --print-errors " avahi-client >= 0.6 " 2>&1`
15305        fi
15306	# Put the nasty error message in config.log where it belongs
15307	echo "$AVAHI_PKG_ERRORS" >&5
15308
15309	as_fn_error $? "Package requirements ( avahi-client >= 0.6 ) were not met:
15310
15311$AVAHI_PKG_ERRORS
15312
15313Consider adjusting the PKG_CONFIG_PATH environment variable if you
15314installed software in a non-standard prefix.
15315
15316Alternatively, you may set the environment variables AVAHI_CFLAGS
15317and AVAHI_LIBS to avoid the need to call pkg-config.
15318See the pkg-config man page for more details.
15319" "$LINENO" 5
15320elif test $pkg_failed = untried; then
15321	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15323as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15324is in your PATH or set the PKG_CONFIG environment variable to the full
15325path to pkg-config.
15326
15327Alternatively, you may set the environment variables AVAHI_CFLAGS
15328and AVAHI_LIBS to avoid the need to call pkg-config.
15329See the pkg-config man page for more details.
15330
15331To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15332See \`config.log' for more details" "$LINENO" 5; }
15333else
15334	AVAHI_CFLAGS=$pkg_cv_AVAHI_CFLAGS
15335	AVAHI_LIBS=$pkg_cv_AVAHI_LIBS
15336        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15337$as_echo "yes" >&6; }
15338	:
15339fi
15340
15341pkg_failed=no
15342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVAHI_TPOLL" >&5
15343$as_echo_n "checking for AVAHI_TPOLL... " >&6; }
15344
15345if test -n "$AVAHI_TPOLL_CFLAGS"; then
15346    pkg_cv_AVAHI_TPOLL_CFLAGS="$AVAHI_TPOLL_CFLAGS"
15347 elif test -n "$PKG_CONFIG"; then
15348    if test -n "$PKG_CONFIG" && \
15349    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6.4 \""; } >&5
15350  ($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6.4 ") 2>&5
15351  ac_status=$?
15352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15353  test $ac_status = 0; }; then
15354  pkg_cv_AVAHI_TPOLL_CFLAGS=`$PKG_CONFIG --cflags " avahi-client >= 0.6.4 " 2>/dev/null`
15355else
15356  pkg_failed=yes
15357fi
15358 else
15359    pkg_failed=untried
15360fi
15361if test -n "$AVAHI_TPOLL_LIBS"; then
15362    pkg_cv_AVAHI_TPOLL_LIBS="$AVAHI_TPOLL_LIBS"
15363 elif test -n "$PKG_CONFIG"; then
15364    if test -n "$PKG_CONFIG" && \
15365    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6.4 \""; } >&5
15366  ($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6.4 ") 2>&5
15367  ac_status=$?
15368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15369  test $ac_status = 0; }; then
15370  pkg_cv_AVAHI_TPOLL_LIBS=`$PKG_CONFIG --libs " avahi-client >= 0.6.4 " 2>/dev/null`
15371else
15372  pkg_failed=yes
15373fi
15374 else
15375    pkg_failed=untried
15376fi
15377
15378
15379
15380if test $pkg_failed = yes; then
15381
15382if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15383        _pkg_short_errors_supported=yes
15384else
15385        _pkg_short_errors_supported=no
15386fi
15387        if test $_pkg_short_errors_supported = yes; then
15388	        AVAHI_TPOLL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " avahi-client >= 0.6.4 " 2>&1`
15389        else
15390	        AVAHI_TPOLL_PKG_ERRORS=`$PKG_CONFIG --print-errors " avahi-client >= 0.6.4 " 2>&1`
15391        fi
15392	# Put the nasty error message in config.log where it belongs
15393	echo "$AVAHI_TPOLL_PKG_ERRORS" >&5
15394
15395	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15396$as_echo "no" >&6; }
15397                { $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
15398$as_echo "$as_me: WARNING: This Avahi implementation is not supporting threaded poll objects. Maybe this is not what you want." >&2;}
15399elif test $pkg_failed = untried; then
15400	{ $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
15401$as_echo "$as_me: WARNING: This Avahi implementation is not supporting threaded poll objects. Maybe this is not what you want." >&2;}
15402else
15403	AVAHI_TPOLL_CFLAGS=$pkg_cv_AVAHI_TPOLL_CFLAGS
15404	AVAHI_TPOLL_LIBS=$pkg_cv_AVAHI_TPOLL_LIBS
15405        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15406$as_echo "yes" >&6; }
15407
15408$as_echo "#define HAVE_AVAHI_THREADED_POLL 1" >>confdefs.h
15409
15410fi
15411                ZEROCONF_LIBS="$AVAHI_LIBS"
15412                ZEROCONF_CFLAGS="$AVAHI_CFLAGS"
15413
15414$as_echo "#define HAVE_AVAHI 1" >>confdefs.h
15415
15416                found_zeroconf=yes
15417                ;;
15418            esac
15419	    	CPPFLAGS="$savedcppflags"
15420		    LDFLAGS="$savedldflags"
15421    	fi
15422	fi
15423
15424	netatalk_cv_zeroconf=no
15425	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Zerconf support" >&5
15426$as_echo_n "checking whether to enable Zerconf support... " >&6; }
15427	if test "x$found_zeroconf" = "xyes"; then
15428		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15429$as_echo "yes" >&6; }
15430
15431$as_echo "#define USE_ZEROCONF 1" >>confdefs.h
15432
15433		netatalk_cv_zeroconf=yes
15434	else
15435		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15436$as_echo "no" >&6; }
15437		if test "x$zeroconf" != "xno" -a "x$zeroconf" != "xtry"; then
15438			as_fn_error $? "Zeroconf installation not found" "$LINENO" 5
15439		fi
15440	fi
15441
15442
15443  ac_new_flags=""
15444  for i in $ZEROCONF_LIBS; do
15445    case $i in
15446    -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
15447    *) ac_new_flags="$ac_new_flags $i" ;;
15448    esac
15449  done
15450  ZEROCONF_LIBS=$ac_new_flags
15451
15452
15453  ac_new_flags=""
15454  for i in $ZEROCONF_CFLAGS; do
15455    case $i in
15456    -I/usr/include|-I/usr/include/) ;;
15457    *) ac_new_flags="$ac_new_flags $i" ;;
15458    esac
15459  done
15460  ZEROCONF_CFLAGS=$ac_new_flags
15461
15462
15463
15464
15465
15466
15467	check=maybe
15468	# Check whether --enable-tcp-wrappers was given.
15469if test "${enable_tcp_wrappers+set}" = set; then :
15470  enableval=$enable_tcp_wrappers;
15471			if test "x$enableval" = "xno"; then
15472				wrapcheck=no
15473			else
15474				wrapcheck=yes
15475			fi
15476
15477
15478fi
15479
15480
15481	enable=no
15482	netatalk_cv_tcpwrap=no
15483	if test "x$wrapcheck" != "xno"; then
15484		saved_LIBS=$LIBS
15485		W_LIBS="-lwrap"
15486		LIBS="$LIBS $W_LIBS"
15487		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488/* end confdefs.h.  */
15489 int allow_severity = 0; int deny_severity = 0;
15490
15491int
15492main ()
15493{
15494hosts_access();
15495
15496  ;
15497  return 0;
15498}
15499_ACEOF
15500if ac_fn_c_try_link "$LINENO"; then :
15501  netatalk_cv_tcpwrap=yes
15502else
15503
15504				LIBS=$saved_LIBS
15505				W_LIBS="-lwrap -lnsl"
15506				LIBS="$LIBS $W_LIBS"
15507				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508/* end confdefs.h.  */
15509 int allow_severity = 0; int deny_severity = 0;
15510
15511int
15512main ()
15513{
15514hosts_access();
15515
15516  ;
15517  return 0;
15518}
15519_ACEOF
15520if ac_fn_c_try_link "$LINENO"; then :
15521  netatalk_cv_tcpwrap=yes
15522else
15523  netatalk_cv_tcpwrap=no
15524fi
15525rm -f core conftest.err conftest.$ac_objext \
15526    conftest$ac_exeext conftest.$ac_ext
15527
15528
15529fi
15530rm -f core conftest.err conftest.$ac_objext \
15531    conftest$ac_exeext conftest.$ac_ext
15532
15533		LIBS=$saved_LIBS
15534	fi
15535
15536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TCP wrappers" >&5
15537$as_echo_n "checking whether to enable the TCP wrappers... " >&6; }
15538	if test "x$netatalk_cv_tcpwrap" = "xyes"; then
15539
15540$as_echo "#define TCPWRAP 1" >>confdefs.h
15541
15542		WRAP_LIBS=$W_LIBS
15543		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15544$as_echo "yes" >&6; }
15545	else
15546		if test "x$wrapcheck" = "xyes"; then
15547			as_fn_error $? "libwrap not found" "$LINENO" 5
15548		else
15549			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15550$as_echo "no" >&6; }
15551		fi
15552	fi
15553
15554
15555
15556
15557
15558    netatalk_cv_use_pam=no
15559
15560# Check whether --with-pam was given.
15561if test "${with_pam+set}" = set; then :
15562  withval=$with_pam;
15563			require_pam="yes"
15564			if test "x$withval" = "xno"; then
15565				PAMDIR="NONE"
15566				require_pam="never"
15567			elif test "x$withval" = "xyes"; then
15568				PAMDIR="NONE"
15569			else
15570				PAMDIR="$withval"
15571			fi
15572
15573else
15574  PAMDIR="NONE";require_pam="no"
15575
15576fi
15577
15578
15579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM installation directory" >&5
15580$as_echo_n "checking for PAM installation directory... " >&6; }
15581	if test "$host_os" != "solaris"; then
15582		if test "x$PAMDIR" = "xNONE" -a "x$require_pam" != "xnever"; then
15583		  		  pam_paths="/ /usr/ /usr/local/"
15584		  for path in $pam_paths; do
15585			if test -d "${path}etc/pam.d"; then
15586				PAMDIR="$path"
15587				break
15588			fi
15589		  done
15590		fi
15591
15592		if test "x$PAMDIR" != "xNONE"; then
15593			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (path: ${PAMDIR}etc/pam.d)" >&5
15594$as_echo "yes (path: ${PAMDIR}etc/pam.d)" >&6; }
15595		else
15596			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15597$as_echo "no" >&6; }
15598		fi
15599	else
15600		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: /etc/pam.conf (solaris)" >&5
15601$as_echo "/etc/pam.conf (solaris)" >&6; }
15602	fi
15603
15604	pam_found="no"
15605	if test "x$require_pam" != "xnever"; then
15606
15607		savedCFLAGS="$CFLAGS"
15608		savedLDFLAGS="$LDFLAGS"
15609		savedLIBS="$LIBS"
15610
15611		if test "x$PAMDIR" != "xNONE" -a "x$PAMDIR" != "x/"; then
15612			PAM_CFLAGS="-I${PAMDIR}include"
15613			PAM_LDFLAGS="-L${PAMDIR}lib"
15614			LDFLAGS="$LDFLAGS $PAM_LDFLAGS"
15615			CFLAGS="$CFLAGS $PAM_CFLAGS"
15616		fi
15617
15618		for ac_header in security/pam_appl.h pam/pam_appl.h
15619do :
15620  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15621ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15622if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15623  cat >>confdefs.h <<_ACEOF
15624#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15625_ACEOF
15626
15627fi
15628
15629done
15630
15631
15632		if test x"$ac_cv_header_security_pam_appl_h" = x"no" -a x"$ac_cv_header_pam_pam_appl_h" = x"no"; then
15633			pam_found=no
15634		else
15635			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
15636$as_echo_n "checking for pam_set_item in -lpam... " >&6; }
15637if ${ac_cv_lib_pam_pam_set_item+:} false; then :
15638  $as_echo_n "(cached) " >&6
15639else
15640  ac_check_lib_save_LIBS=$LIBS
15641LIBS="-lpam  $LIBS"
15642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643/* end confdefs.h.  */
15644
15645/* Override any GCC internal prototype to avoid an error.
15646   Use char because int might match the return type of a GCC
15647   builtin and then its argument prototype would still apply.  */
15648#ifdef __cplusplus
15649extern "C"
15650#endif
15651char pam_set_item ();
15652int
15653main ()
15654{
15655return pam_set_item ();
15656  ;
15657  return 0;
15658}
15659_ACEOF
15660if ac_fn_c_try_link "$LINENO"; then :
15661  ac_cv_lib_pam_pam_set_item=yes
15662else
15663  ac_cv_lib_pam_pam_set_item=no
15664fi
15665rm -f core conftest.err conftest.$ac_objext \
15666    conftest$ac_exeext conftest.$ac_ext
15667LIBS=$ac_check_lib_save_LIBS
15668fi
15669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
15670$as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
15671if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
15672
15673				PAM_LIBS="$PAM_LDFLAGS -lpam"
15674				pam_found="yes"
15675
15676fi
15677
15678		fi
15679		CFLAGS="$savedCFLAGS"
15680		LDFLAGS="$savedLDFLAGS"
15681		LIBS="$savedLIBS"
15682	fi
15683
15684	netatalk_cv_install_pam=yes
15685	if test x"$pam_found" = "xyes" -a "x$PAMDIR" = "xNONE"; then
15686		{ $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
15687$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;}
15688		netatalk_cv_install_pam=no
15689    else
15690                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for includable common PAM config" >&5
15691$as_echo_n "checking for includable common PAM config... " >&6; }
15692        pampath="${PAMDIR}etc/pam.d"
15693                if test -f "$pampath/common-auth" ; then
15694           PAM_DIRECTIVE=include
15695           PAM_AUTH=common-auth
15696           PAM_ACCOUNT=common-account
15697           PAM_PASSWORD=common-password
15698           PAM_SESSION=common-session
15699                elif test -f "$pampath/system-auth" ; then
15700           PAM_DIRECTIVE=include
15701           PAM_AUTH=system-auth
15702           PAM_ACCOUNT=system-auth
15703           PAM_PASSWORD=system-auth
15704           PAM_SESSION=system-auth
15705                elif test -f "$pampath/system" ; then
15706           PAM_DIRECTIVE=include
15707           PAM_AUTH=system
15708           PAM_ACCOUNT=system
15709           PAM_PASSWORD=system
15710           PAM_SESSION=system
15711                elif test -f "$pampath/other" ; then
15712           PAM_DIRECTIVE=include
15713           PAM_AUTH=${PAMDIR}etc/pam.d/other
15714           PAM_ACCOUNT=${PAMDIR}etc/pam.d/other
15715           PAM_PASSWORD=${PAMDIR}etc/pam.d/other
15716           PAM_SESSION=${PAMDIR}etc/pam.d/other
15717                else
15718           PAM_DIRECTIVE=required
15719           PAM_AUTH=pam_unix.so
15720           PAM_ACCOUNT=pam_unix.so
15721           PAM_PASSWORD="pam_unix.so use_authtok"
15722           PAM_SESSION=pam_unix.so
15723        fi
15724
15725        if test "x$PAM_DIRECTIVE" != "xrequired" ; then
15726            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($PAM_DIRECTIVE $PAM_AUTH)" >&5
15727$as_echo "yes ($PAM_DIRECTIVE $PAM_AUTH)" >&6; }
15728        else
15729            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (using defaut pam_unix.so)" >&5
15730$as_echo "no (using defaut pam_unix.so)" >&6; }
15731        fi
15732	fi
15733
15734	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PAM support" >&5
15735$as_echo_n "checking whether to enable PAM support... " >&6; }
15736	if test "x$pam_found" = "xno"; then
15737		netatalk_cv_install_pam=no
15738		if test "x$require_pam" = "xyes"; then
15739			as_fn_error $? "PAM support missing" "$LINENO" 5
15740		else
15741			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15742$as_echo "no" >&6; }
15743		fi
15744		:
15745	else
15746		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15747$as_echo "yes" >&6; }
15748		:
15749        use_pam_so=yes
15750	    compile_pam=yes
15751	    netatalk_cv_use_pam=yes
15752
15753$as_echo "#define USE_PAM 1" >>confdefs.h
15754
15755	fi
15756
15757
15758# Check whether --with-pam-confdir was given.
15759if test "${with_pam_confdir+set}" = set; then :
15760  withval=$with_pam_confdir; ac_cv_pamdir=$withval
15761else
15762  ac_cv_pamdir='${sysconfdir}/pam.d'
15763
15764fi
15765
15766
15767    PAMDIR="$ac_cv_pamdir"
15768
15769
15770  ac_new_flags=""
15771  for i in $PAM_LIBS; do
15772    case $i in
15773    -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
15774    *) ac_new_flags="$ac_new_flags $i" ;;
15775    esac
15776  done
15777  PAM_LIBS=$ac_new_flags
15778
15779
15780  ac_new_flags=""
15781  for i in $PAM_CFLAGS; do
15782    case $i in
15783    -I/usr/include|-I/usr/include/) ;;
15784    *) ac_new_flags="$ac_new_flags $i" ;;
15785    esac
15786  done
15787  PAM_CFLAGS=$ac_new_flags
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800netatalk_cv_use_shadowpw=no
15801
15802# Check whether --with-shadow was given.
15803if test "${with_shadow+set}" = set; then :
15804  withval=$with_shadow; netatalk_cv_use_shadowpw="$withval"
15805else
15806  netatalk_cv_use_shadowpw=auto
15807
15808fi
15809
15810
15811if test "x$netatalk_cv_use_shadowpw" != "xno"; then
15812    ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
15813if test "x$ac_cv_header_shadow_h" = xyes; then :
15814
15815fi
15816
15817
15818    if test x"$ac_cv_header_shadow_h" = x"yes"; then
15819	netatalk_cv_use_shadowpw=yes
15820
15821$as_echo "#define SHADOWPW 1" >>confdefs.h
15822
15823    else
15824      if test "x$shadowpw" = "xyes"; then
15825        as_fn_error $? "shadow support not available" "$LINENO" 5
15826      else
15827       	netatalk_cv_use_shadowpw=no
15828      fi
15829    fi
15830fi
15831
15832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shadow support should be enabled" >&5
15833$as_echo_n "checking whether shadow support should be enabled... " >&6; }
15834if test "x$netatalk_cv_use_shadowpw" = "xyes"; then
15835	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15836$as_echo "yes" >&6; }
15837else
15838	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15839$as_echo "no" >&6; }
15840fi
15841
15842
15843
15844netatalk_cv_use_shellcheck=yes
15845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether checking for a valid shell should be enabled" >&5
15846$as_echo_n "checking whether checking for a valid shell should be enabled... " >&6; }
15847# Check whether --enable-shell-check was given.
15848if test "${enable_shell_check+set}" = set; then :
15849  enableval=$enable_shell_check;
15850	if test "$enableval" = "no"; then
15851
15852$as_echo "#define DISABLE_SHELLCHECK 1" >>confdefs.h
15853
15854		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15855$as_echo "no" >&6; }
15856		netatalk_cv_use_shellcheck=no
15857	else
15858		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15859$as_echo "yes" >&6; }
15860	fi
15861
15862else
15863
15864		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15865$as_echo "yes" >&6; }
15866
15867
15868fi
15869
15870
15871
15872
15873
15874# Check whether --with-init-style was given.
15875if test "${with_init_style+set}" = set; then :
15876  withval=$with_init_style; init_style="$withval"
15877else
15878  init_style=none
15879
15880fi
15881
15882    case "$init_style" in
15883    "redhat")
15884	    as_fn_error $? "--with-init-style=redhat is obsoleted. Use redhat-sysv or redhat-systemd." "$LINENO" 5
15885        ;;
15886    "redhat-sysv")
15887	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling redhat-style sysv initscript support" >&5
15888$as_echo "enabling redhat-style sysv initscript support" >&6; }
15889	    ac_cv_init_dir="/etc/rc.d/init.d"
15890	    ;;
15891    "redhat-systemd")
15892	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling redhat-style systemd support" >&5
15893$as_echo "enabling redhat-style systemd support" >&6; }
15894	    ac_cv_init_dir="/usr/lib/systemd/system"
15895	    ;;
15896    "suse")
15897	    as_fn_error $? "--with-init-style=suse is obsoleted. Use suse-sysv or suse-systemd." "$LINENO" 5
15898        ;;
15899    "suse-sysv")
15900	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling suse-style sysv initscript support" >&5
15901$as_echo "enabling suse-style sysv initscript support" >&6; }
15902	    ac_cv_init_dir="/etc/init.d"
15903	    ;;
15904    "suse-systemd")
15905	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling suse-style systemd support (>=openSUSE12.1)" >&5
15906$as_echo "enabling suse-style systemd support (>=openSUSE12.1)" >&6; }
15907	    ac_cv_init_dir="/usr/lib/systemd/system"
15908	    ;;
15909    "gentoo")
15910	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling gentoo-style initscript support" >&5
15911$as_echo "enabling gentoo-style initscript support" >&6; }
15912	    ac_cv_init_dir="/etc/init.d"
15913        ;;
15914    "netbsd")
15915	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling netbsd-style initscript support" >&5
15916$as_echo "enabling netbsd-style initscript support" >&6; }
15917	    ac_cv_init_dir="/etc/rc.d"
15918        ;;
15919    "debian")
15920	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling debian-style initscript support" >&5
15921$as_echo "enabling debian-style initscript support" >&6; }
15922	    ac_cv_init_dir="/etc/init.d"
15923        ;;
15924    "solaris")
15925	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling solaris-style SMF support" >&5
15926$as_echo "enabling solaris-style SMF support" >&6; }
15927	    ac_cv_init_dir="/lib/svc/manifest/network/"
15928        ;;
15929    "systemd")
15930	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling general systemd support" >&5
15931$as_echo "enabling general systemd support" >&6; }
15932	    ac_cv_init_dir="/usr/lib/systemd/system"
15933        ;;
15934    "none")
15935	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling init-style support" >&5
15936$as_echo "disabling init-style support" >&6; }
15937	    ac_cv_init_dir="none"
15938        ;;
15939    *)
15940	    as_fn_error $? "illegal init-style" "$LINENO" 5
15941        ;;
15942    esac
15943     if test x$init_style = xnetbsd; then
15944  USE_NETBSD_TRUE=
15945  USE_NETBSD_FALSE='#'
15946else
15947  USE_NETBSD_TRUE='#'
15948  USE_NETBSD_FALSE=
15949fi
15950
15951     if test x$init_style = xredhat-sysv; then
15952  USE_REDHAT_SYSV_TRUE=
15953  USE_REDHAT_SYSV_FALSE='#'
15954else
15955  USE_REDHAT_SYSV_TRUE='#'
15956  USE_REDHAT_SYSV_FALSE=
15957fi
15958
15959     if test x$init_style = xsuse-sysv; then
15960  USE_SUSE_SYSV_TRUE=
15961  USE_SUSE_SYSV_FALSE='#'
15962else
15963  USE_SUSE_SYSV_TRUE='#'
15964  USE_SUSE_SYSV_FALSE=
15965fi
15966
15967     if test x$init_style = xsolaris; then
15968  USE_SOLARIS_TRUE=
15969  USE_SOLARIS_FALSE='#'
15970else
15971  USE_SOLARIS_TRUE='#'
15972  USE_SOLARIS_FALSE=
15973fi
15974
15975     if test x$init_style = xgentoo; then
15976  USE_GENTOO_TRUE=
15977  USE_GENTOO_FALSE='#'
15978else
15979  USE_GENTOO_TRUE='#'
15980  USE_GENTOO_FALSE=
15981fi
15982
15983     if test x$init_style = xdebian; then
15984  USE_DEBIAN_TRUE=
15985  USE_DEBIAN_FALSE='#'
15986else
15987  USE_DEBIAN_TRUE='#'
15988  USE_DEBIAN_FALSE=
15989fi
15990
15991     if test x$init_style = xsystemd || test x$init_style = xredhat-systemd || test x$init_style = xsuse-systemd; then
15992  USE_SYSTEMD_TRUE=
15993  USE_SYSTEMD_FALSE='#'
15994else
15995  USE_SYSTEMD_TRUE='#'
15996  USE_SYSTEMD_FALSE=
15997fi
15998
15999     if test x$init_style = xnone; then
16000  USE_UNDEF_TRUE=
16001  USE_UNDEF_FALSE='#'
16002else
16003  USE_UNDEF_TRUE='#'
16004  USE_UNDEF_FALSE=
16005fi
16006
16007
16008
16009# Check whether --with-init-dir was given.
16010if test "${with_init_dir+set}" = set; then :
16011  withval=$with_init_dir; ac_cv_init_dir="$withval"
16012else
16013  ac_cv_init_dir="$ac_cv_init_dir"
16014
16015fi
16016
16017    INIT_DIR="$ac_cv_init_dir"
16018    INIT_DIR="$ac_cv_init_dir"
16019
16020
16021
16022
16023# Check whether --with-uams-path was given.
16024if test "${with_uams_path+set}" = set; then :
16025  withval=$with_uams_path; uams_path="$withval/"
16026else
16027  uams_path="$libdir/netatalk/"
16028fi
16029
16030
16031
16032# Check whether --with-libgcrypt-dir was given.
16033if test "${with_libgcrypt_dir+set}" = set; then :
16034  withval=$with_libgcrypt_dir; libgcrypt_config_prefix="$withval"
16035else
16036  libgcrypt_config_prefix=""
16037fi
16038
16039  if test x$libgcrypt_config_prefix != x ; then
16040     if test x${LIBGCRYPT_CONFIG+set} != xset ; then
16041#        LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
16042#Change libgcrypt-config path by Edison in 20130923
16043        LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/src/libgcrypt-config
16044     fi
16045  fi
16046
16047  ok=no
16048
16049if test x$libgcrypt_config_prefix != xno ; then
16050
16051  # Extract the first word of "libgcrypt-config", so it can be a program name with args.
16052set dummy libgcrypt-config; ac_word=$2
16053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16054$as_echo_n "checking for $ac_word... " >&6; }
16055if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
16056  $as_echo_n "(cached) " >&6
16057else
16058  case $LIBGCRYPT_CONFIG in
16059  [\\/]* | ?:[\\/]*)
16060  ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
16061  ;;
16062  *)
16063  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16064for as_dir in $PATH
16065do
16066  IFS=$as_save_IFS
16067  test -z "$as_dir" && as_dir=.
16068    for ac_exec_ext in '' $ac_executable_extensions; do
16069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16070    ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16072    break 2
16073  fi
16074done
16075  done
16076IFS=$as_save_IFS
16077
16078  test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
16079  ;;
16080esac
16081fi
16082LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
16083if test -n "$LIBGCRYPT_CONFIG"; then
16084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
16085$as_echo "$LIBGCRYPT_CONFIG" >&6; }
16086else
16087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16088$as_echo "no" >&6; }
16089fi
16090
16091
16092  tmp=1:1.2.3
16093  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
16094     req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
16095     min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
16096  else
16097     req_libgcrypt_api=0
16098     min_libgcrypt_version="$tmp"
16099  fi
16100
16101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
16102$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
16103  if test "$LIBGCRYPT_CONFIG" != "no" ; then
16104    req_major=`echo $min_libgcrypt_version | \
16105               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
16106    req_minor=`echo $min_libgcrypt_version | \
16107               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
16108    req_micro=`echo $min_libgcrypt_version | \
16109               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
16110    libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
16111    major=`echo $libgcrypt_config_version | \
16112               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
16113    minor=`echo $libgcrypt_config_version | \
16114               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
16115    micro=`echo $libgcrypt_config_version | \
16116               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
16117    if test "$major" -gt "$req_major"; then
16118        ok=yes
16119    else
16120        if test "$major" -eq "$req_major"; then
16121            if test "$minor" -gt "$req_minor"; then
16122               ok=yes
16123            else
16124               if test "$minor" -eq "$req_minor"; then
16125                   if test "$micro" -ge "$req_micro"; then
16126                     ok=yes
16127                   fi
16128               fi
16129            fi
16130	   fi
16131	fi
16132  fi
16133  if test $ok = yes; then
16134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
16135$as_echo "yes ($libgcrypt_config_version)" >&6; }
16136  else
16137    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16138$as_echo "no" >&6; }
16139  fi
16140fi
16141
16142  if test $ok = yes; then
16143     # If we have a recent libgcrypt, we should also check that the
16144     # API is compatible
16145     if test "$req_libgcrypt_api" -gt 0 ; then
16146        tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
16147        if test "$tmp" -gt 0 ; then
16148           { $as_echo "$as_me:${as_lineno-$LINENO}: checking libgcrypt API version" >&5
16149$as_echo_n "checking libgcrypt API version... " >&6; }
16150           if test "$req_libgcrypt_api" -eq "$tmp" ; then
16151             { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
16152$as_echo "okay" >&6; }
16153           else
16154             ok=no
16155             { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
16156$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
16157           fi
16158        fi
16159     fi
16160  fi
16161  if test $ok = yes; then
16162     # Opensolaris 11/08 provided libgcrypt doesn't have CAST5,
16163     # so we better check the general case
16164      { $as_echo "$as_me:${as_lineno-$LINENO}: checking libgcrypt hast CAST5 API" >&5
16165$as_echo_n "checking libgcrypt hast CAST5 API... " >&6; }
16166      cast=`$LIBGCRYPT_CONFIG --algorithms 2>/dev/null | grep cast5 | sed 's/\(.*\)\(cast5\)\(.*\)/\2/'`
16167      if test x$cast = xcast5 ; then
16168        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16169$as_echo "yes" >&6; }
16170      else
16171        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16172$as_echo "no" >&6; }
16173        echo "***          Detected libgcryt without CAST5              ***"
16174        echo "*** Please install/build another one and point to it with ***"
16175        echo "***         --with-libgcrypt-dir=<path-to-lib>            ***"
16176        ok=no
16177      fi
16178  fi
16179
16180  if test $ok = yes; then
16181    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
16182    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
16183    neta_cv_compile_dhx2=yes
16184    neta_cv_have_libgcrypt=yes
16185	{ $as_echo "$as_me:${as_lineno-$LINENO}: Enabling DHX2 UAM" >&5
16186$as_echo "$as_me: Enabling DHX2 UAM" >&6;}
16187
16188$as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
16189
16190
16191$as_echo "#define UAM_DHX2 1" >>confdefs.h
16192
16193    :
16194  else
16195    LIBGCRYPT_CFLAGS=""
16196    LIBGCRYPT_LIBS=""
16197    :
16198  fi
16199
16200
16201
16202
16203
16204
16205# Check whether --with-ssl-dir was given.
16206if test "${with_ssl_dir+set}" = set; then :
16207  withval=$with_ssl_dir;
16208			if test "x$withval" = "xno"; then
16209				tryssl=no
16210			elif test "x$withval" = "xyes"; then
16211				tryssl=yes
16212				tryssldir=
16213			else
16214								tryssl=yes
16215				tryssldir="$withval"
16216			fi
16217
16218else
16219  tryssl=yes
16220
16221fi
16222
16223
16224	SSL_CFLAGS=""
16225	SSL_LIBS=""
16226	saved_LIBS=$LIBS
16227	saved_CFLAGS=$CFLAGS
16228	neta_cv_have_openssl=no
16229
16230		[ -n "$atalk_libname" ] || as_fn_error $? "internal error, atalk_libname undefined" "$LINENO" 5
16231
16232	if test "$tryssl" = "yes"; then
16233		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16234$as_echo_n "checking for SSL... " >&6; }
16235#		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
16236#Change for don't check ssl by Edison in 20130923
16237		for ssldir in "" $tryssldir ; do
16238			if test -f "$ssldir/include/openssl/cast.h" ; then
16239				SSL_CFLAGS="$SSL_CFLAGS -I$ssldir/include -I$ssldir/include/openssl"
16240				SSL_LIBS="$SSL_LIBS -L$ssldir/$atalk_libname -L$ssldir -lcrypto"
16241				if test "x$need_dash_r" = "xyes"; then
16242					SSL_LIBS="$SSL_LIBS -R$ssldir/$atalk_libname -R$ssldir"
16243				fi
16244				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir (enabling RANDNUM and DHX support)" >&5
16245$as_echo "$ssldir (enabling RANDNUM and DHX support)" >&6; }
16246				CFLAGS="$CFLAGS $SSL_CFLAGS"
16247				LIBS="$LIBS $SSL_LIBS"
16248
16249								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
16250$as_echo_n "checking for main in -lcrypto... " >&6; }
16251if ${ac_cv_lib_crypto_main+:} false; then :
16252  $as_echo_n "(cached) " >&6
16253else
16254  ac_check_lib_save_LIBS=$LIBS
16255LIBS="-lcrypto  $LIBS"
16256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257/* end confdefs.h.  */
16258
16259
16260int
16261main ()
16262{
16263return main ();
16264  ;
16265  return 0;
16266}
16267_ACEOF
16268if ac_fn_c_try_link "$LINENO"; then :
16269  ac_cv_lib_crypto_main=yes
16270else
16271  ac_cv_lib_crypto_main=no
16272fi
16273rm -f core conftest.err conftest.$ac_objext \
16274    conftest$ac_exeext conftest.$ac_ext
16275LIBS=$ac_check_lib_save_LIBS
16276fi
16277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
16278$as_echo "$ac_cv_lib_crypto_main" >&6; }
16279if test "x$ac_cv_lib_crypto_main" = xyes; then :
16280  cat >>confdefs.h <<_ACEOF
16281#define HAVE_LIBCRYPTO 1
16282_ACEOF
16283
16284  LIBS="-lcrypto $LIBS"
16285
16286fi
16287
16288								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldes" >&5
16289$as_echo_n "checking for main in -ldes... " >&6; }
16290if ${ac_cv_lib_des_main+:} false; then :
16291  $as_echo_n "(cached) " >&6
16292else
16293  ac_check_lib_save_LIBS=$LIBS
16294LIBS="-ldes  $LIBS"
16295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296/* end confdefs.h.  */
16297
16298
16299int
16300main ()
16301{
16302return main ();
16303  ;
16304  return 0;
16305}
16306_ACEOF
16307if ac_fn_c_try_link "$LINENO"; then :
16308  ac_cv_lib_des_main=yes
16309else
16310  ac_cv_lib_des_main=no
16311fi
16312rm -f core conftest.err conftest.$ac_objext \
16313    conftest$ac_exeext conftest.$ac_ext
16314LIBS=$ac_check_lib_save_LIBS
16315fi
16316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_main" >&5
16317$as_echo "$ac_cv_lib_des_main" >&6; }
16318if test "x$ac_cv_lib_des_main" = xyes; then :
16319  cat >>confdefs.h <<_ACEOF
16320#define HAVE_LIBDES 1
16321_ACEOF
16322
16323  LIBS="-ldes $LIBS"
16324
16325fi
16326
16327
16328
16329$as_echo "#define OPENSSL_DHX 1" >>confdefs.h
16330
16331
16332$as_echo "#define UAM_DHX 1" >>confdefs.h
16333
16334				neta_cv_have_openssl=yes
16335				neta_cv_compile_dhx=yes
16336				CFLAGS=$saved_CFLAGS
16337				LIBS=$saved_LIBS
16338				break
16339			fi
16340		done
16341		if test "x$neta_cv_have_openssl" = "xno"; then
16342			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16343$as_echo "no" >&6; }
16344		fi
16345	fi
16346
16347  ac_new_flags=""
16348  for i in $SSL_CFLAGS; do
16349    case $i in
16350    -I/usr/include|-I/usr/include/) ;;
16351    *) ac_new_flags="$ac_new_flags $i" ;;
16352    esac
16353  done
16354  SSL_CFLAGS=$ac_new_flags
16355
16356
16357  ac_new_flags=""
16358  for i in $SSL_LIBS; do
16359    case $i in
16360    -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
16361    *) ac_new_flags="$ac_new_flags $i" ;;
16362    esac
16363  done
16364  SSL_LIBS=$ac_new_flags
16365
16366
16367
16368	LIBS=$saved_LIBS
16369
16370
16371
16372if test "x$bdb_required" = "xyes"; then
16373    trybdbdir=""
16374    dobdbsearch=yes
16375    bdb_search_dirs="/usr/local /usr"
16376    search_subdirs="/ /db5 /db5.1 /db51 /db5.0 /db50 /db4.8 /db48 /db4.7 /db47 /db4.6 /db46 /db4"
16377
16378    bdbfound=no
16379    savedcflags="$CFLAGS"
16380    savedldflags="$LDFLAGS"
16381    savedcppflags="$CPPFLAGS"
16382    savedlibs="$LIBS"
16383    saved_shlibpath_var=$shlibpath_var
16384
16385        DB_MAJOR_REQ=4
16386    DB_MINOR_REQ=6
16387    DB_PATCH_REQ=0
16388
16389        [ -n "$atalk_libname" ] || as_fn_error $? "internal error, atalk_libname undefined" "$LINENO" 5
16390    saved_atalk_libname=$atalk_libname
16391
16392
16393cat >>confdefs.h <<_ACEOF
16394#define DB_MAJOR_REQ ${DB_MAJOR_REQ}
16395_ACEOF
16396
16397
16398cat >>confdefs.h <<_ACEOF
16399#define DB_MINOR_REQ ${DB_MINOR_REQ}
16400_ACEOF
16401
16402
16403cat >>confdefs.h <<_ACEOF
16404#define DB_PATCH_REQ ${DB_PATCH_REQ}
16405_ACEOF
16406
16407
16408
16409# Check whether --with-bdb was given.
16410if test "${with_bdb+set}" = set; then :
16411  withval=$with_bdb; if test "x$withval" = "xno"; then
16412            dobdbsearch=no
16413        elif test "x$withval" = "xyes"; then
16414            dobdbsearch=yes
16415        else
16416            bdb_search_dirs="$withval"
16417        fi
16418
16419fi
16420
16421
16422    if test "x$dobdbsearch" = "xyes"; then
16423        for bdbdir in $bdb_search_dirs; do
16424            if test $bdbfound = "yes"; then
16425                break;
16426            fi
16427            for subdir in ${search_subdirs}; do
16428#                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB headers in ${bdbdir}/include${subdir}" >&5	#Edison modify
16429#$as_echo_n "checking for Berkeley DB headers in ${bdbdir}/include${subdir}... " >&6; }
16430#                                if test -f "${bdbdir}/include${subdir}/db.h" ; then
16431#Change checking path by Edison in 20130923
16432                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB headers in ${bdbdir}${subdir}" >&5
16433$as_echo_n "checking for Berkeley DB headers in ${bdbdir}${subdir}... " >&6; }
16434                                if test -f "${bdbdir}${subdir}/db.h" ; then
16435                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16436$as_echo "yes" >&6; }
16437
16438
16439#        { $as_echo "$as_me:${as_lineno-$LINENO}: checking ${bdbdir}/include${subdir}/db.h version >= ${DB_MAJOR_REQ}.${DB_MINOR_REQ}.${DB_PATCH_REQ}" >&5
16440#$as_echo_n "checking ${bdbdir}/include${subdir}/db.h version >= ${DB_MAJOR_REQ}.${DB_MINOR_REQ}.${DB_PATCH_REQ}... " >&6; }
16441#Change checking path by Edison in 20130923
16442        { $as_echo "$as_me:${as_lineno-$LINENO}: checking ${bdbdir}${subdir}/db.h version >= ${DB_MAJOR_REQ}.${DB_MINOR_REQ}.${DB_PATCH_REQ}" >&5
16443$as_echo_n "checking ${bdbdir}${subdir}/db.h version >= ${DB_MAJOR_REQ}.${DB_MINOR_REQ}.${DB_PATCH_REQ}... " >&6; }
16444
16445#    atalk_cv_bdb_MAJOR=`grep DB_VERSION_MAJOR "${bdbdir}/include${subdir}/db.h" | cut -f 3`
16446#    atalk_cv_bdb_MINOR=`grep DB_VERSION_MINOR "${bdbdir}/include${subdir}/db.h" | cut -f 3`
16447#Change checking path by Edison in 20130923
16448    atalk_cv_bdb_MAJOR=`grep DB_VERSION_MAJOR "${bdbdir}${subdir}/db.h" | cut -f 3`
16449    atalk_cv_bdb_MINOR=`grep DB_VERSION_MINOR "${bdbdir}${subdir}/db.h" | cut -f 3`
16450
16451    if test $atalk_cv_bdb_MAJOR -gt $DB_MAJOR_REQ ; then
16452        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16453$as_echo "yes" >&6; }
16454        atalk_cv_bdbheader=yes
16455    elif test $DB_MAJOR_REQ -gt $atalk_cv_bdb_MAJOR ; then
16456        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16457$as_echo "no" >&6; }
16458        atalk_cv_bdbheader=no
16459    elif test $DB_MINOR_REQ -gt $atalk_cv_bdb_MINOR ; then
16460        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16461$as_echo "no" >&6; }
16462        atalk_cv_bdbheader=no
16463    else
16464        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16465$as_echo "yes" >&6; }
16466        atalk_cv_bdbheader=yes
16467    fi
16468
16469
16470                    if test ${atalk_cv_bdbheader} != "no"; then
16471                        bdblibdir="${bdbdir}/${atalk_libname}"
16472                        bdbbindir="${bdbdir}/bin"
16473
16474                        CPPFLAGS="-I${bdbdir}/include${subdir} $CPPFLAGS"
16475                        LDFLAGS="-L$bdblibdir $LDFLAGS"
16476
16477                                                                                                                                                                        eval export $shlibpath_var=$bdblibdir
16478
16479    atalk_cv_bdb_version=no
16480    maj=$atalk_cv_bdb_MAJOR
16481    min=$atalk_cv_bdb_MINOR
16482    atalk_cv_bdb_try_libs="db$maj$min db$maj.$min db-$maj$min db-$maj.$min db$maj-$maj.$min db"
16483
16484    for lib in $atalk_cv_bdb_try_libs ; do
16485        LIBS="-l$lib $savedlibs"
16486        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Berkeley DB library (-l$lib)" >&5
16487$as_echo_n "checking Berkeley DB library (-l$lib)... " >&6; }
16488        if test "$cross_compiling" = yes; then :
16489
16490            bdblibs=`ls $bdblibdir/lib$lib.* 2>/dev/null`
16491            for bdblib in $bdblibs ; do
16492                echo "Testing for lib file $bdblib" >&5
16493                if test -f "$bdblib" ; then
16494                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (cross-compiling)" >&5
16495$as_echo "yes (cross-compiling)" >&6; }
16496                    atalk_cv_bdb_version="yes"
16497                    atalk_cv_lib_db="-l$lib"
16498                    break
16499                fi
16500            done
16501            if test "x$atalk_cv_bdb_version" = "xyes" ; then
16502                break
16503            fi
16504            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cross-compiling)" >&5
16505$as_echo "no (cross-compiling)" >&6; }
16506
16507else
16508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16509/* end confdefs.h.  */
16510
16511            #include <stdio.h>
16512            #include <db.h>
16513            int main(void) {
16514                int major, minor, patch;
16515                char *version_str;
16516                version_str = db_version(&major, &minor, &patch);
16517                if ((major*100 + minor*10 + patch) < (DB_MAJOR_REQ*100 + DB_MINOR_REQ*10 + DB_PATCH_REQ)) {
16518                    printf("linking wrong library version (%d.%d.%d), ",major, minor, patch);
16519                    return (2);
16520                }
16521                if ( major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR || patch != DB_VERSION_PATCH) {
16522                    printf("header/library version mismatch (%d.%d.%d/%d.%d.%d), ",
16523                        DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH, major, minor, patch);
16524                    return (3);
16525                }
16526                printf("%d.%d.%d ... ",major, minor, patch);
16527                return (0);
16528            }
16529
16530_ACEOF
16531if ac_fn_c_try_run "$LINENO"; then :
16532
16533            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16534$as_echo "yes" >&6; }
16535            atalk_cv_bdb_version="yes"
16536            atalk_cv_lib_db="-l$lib"
16537            break
16538
16539else
16540
16541            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16542$as_echo "no" >&6; }
16543
16544fi
16545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16546  conftest.$ac_objext conftest.beam conftest.$ac_ext
16547fi
16548
16549    done
16550    LIBS="$savedlibs"
16551
16552                        eval export $shlibpath_var=$saved_shlibpath_var
16553
16554                        if test x"${atalk_cv_bdb_version}" = x"yes"; then
16555                            BDB_CFLAGS="-I${bdbdir}/include${subdir}"
16556                            BDB_LIBS="-L${bdblibdir} ${atalk_cv_lib_db}"
16557                            if test x"$need_dash_r" = x"yes"; then
16558                                BDB_LIBS="$BDB_LIBS -R${bdblibdir}"
16559                            fi
16560                            BDB_BIN="$bdbbindir"
16561                            BDB_PATH="$bdbdir"
16562                            bdbfound=yes
16563                            break;
16564                        fi
16565
16566                                                                                                if test x"$atalk_libname" != x"lib" ; then
16567                           bdblibdir="${bdbdir}/lib"
16568                           bdbbindir="${bdbdir}/bin"
16569
16570                           CPPFLAGS="-I${bdbdir}/include${subdir} $CPPFLAGS"
16571                           LDFLAGS="-L$bdblibdir $LDFLAGS"
16572
16573                           eval export $shlibpath_var=$bdblibdir
16574
16575    atalk_cv_bdb_version=no
16576    maj=$atalk_cv_bdb_MAJOR
16577    min=$atalk_cv_bdb_MINOR
16578    atalk_cv_bdb_try_libs="db$maj$min db$maj.$min db-$maj$min db-$maj.$min db$maj-$maj.$min db"
16579
16580    for lib in $atalk_cv_bdb_try_libs ; do
16581        LIBS="-l$lib $savedlibs"
16582        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Berkeley DB library (-l$lib)" >&5
16583$as_echo_n "checking Berkeley DB library (-l$lib)... " >&6; }
16584        if test "$cross_compiling" = yes; then :
16585
16586            bdblibs=`ls $bdblibdir/lib$lib.* 2>/dev/null`
16587            for bdblib in $bdblibs ; do
16588                echo "Testing for lib file $bdblib" >&5
16589                if test -f "$bdblib" ; then
16590                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (cross-compiling)" >&5
16591$as_echo "yes (cross-compiling)" >&6; }
16592                    atalk_cv_bdb_version="yes"
16593                    atalk_cv_lib_db="-l$lib"
16594                    break
16595                fi
16596            done
16597            if test "x$atalk_cv_bdb_version" = "xyes" ; then
16598                break
16599            fi
16600            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cross-compiling)" >&5
16601$as_echo "no (cross-compiling)" >&6; }
16602
16603else
16604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16605/* end confdefs.h.  */
16606
16607            #include <stdio.h>
16608            #include <db.h>
16609            int main(void) {
16610                int major, minor, patch;
16611                char *version_str;
16612                version_str = db_version(&major, &minor, &patch);
16613                if ((major*100 + minor*10 + patch) < (DB_MAJOR_REQ*100 + DB_MINOR_REQ*10 + DB_PATCH_REQ)) {
16614                    printf("linking wrong library version (%d.%d.%d), ",major, minor, patch);
16615                    return (2);
16616                }
16617                if ( major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR || patch != DB_VERSION_PATCH) {
16618                    printf("header/library version mismatch (%d.%d.%d/%d.%d.%d), ",
16619                        DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH, major, minor, patch);
16620                    return (3);
16621                }
16622                printf("%d.%d.%d ... ",major, minor, patch);
16623                return (0);
16624            }
16625
16626_ACEOF
16627if ac_fn_c_try_run "$LINENO"; then :
16628
16629            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16630$as_echo "yes" >&6; }
16631            atalk_cv_bdb_version="yes"
16632            atalk_cv_lib_db="-l$lib"
16633            break
16634
16635else
16636
16637            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16638$as_echo "no" >&6; }
16639
16640fi
16641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16642  conftest.$ac_objext conftest.beam conftest.$ac_ext
16643fi
16644
16645    done
16646    LIBS="$savedlibs"
16647
16648                           eval export $shlibpath_var=$saved_shlibpath_var
16649
16650                           if test x"${atalk_cv_bdb_version}" = x"yes"; then
16651                              BDB_CFLAGS="-I${bdbdir}/include${subdir}"
16652                              BDB_LIBS="-L${bdblibdir} ${atalk_cv_lib_db}"
16653                              if test x"$need_dash_r" = x"yes"; then
16654                                 BDB_LIBS="$BDB_LIBS -R${bdblibdir}"
16655                              fi
16656                              BDB_BIN="$bdbbindir"
16657                              BDB_PATH="$bdbdir"
16658                              bdbfound=yes
16659                              break;
16660                           fi
16661                        fi
16662                    fi
16663                    CFLAGS="$savedcflags"
16664                    LDFLAGS="$savedldflags"
16665                    CPPFLAGS="$savedcppflags"
16666                    LIBS="$savedlibs"
16667                else
16668                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16669$as_echo "no" >&6; }
16670                fi
16671            done
16672        done
16673    fi
16674
16675    CFLAGS="$savedcflags"
16676    LDFLAGS="$savedldflags"
16677    CPPFLAGS="$savedcppflags"
16678    LIBS="$savedlibs"
16679    atalk_libname=$saved_atalk_libname
16680
16681    if test "x$bdbfound" = "xyes"; then
16682        :
16683    else
16684        :
16685		as_fn_error $? "Berkeley DB library required but not found!" "$LINENO" 5
16686    fi
16687
16688
16689  ac_new_flags=""
16690  for i in $BDB_CFLAGS; do
16691    case $i in
16692    -I/usr/include|-I/usr/include/) ;;
16693    *) ac_new_flags="$ac_new_flags $i" ;;
16694    esac
16695  done
16696  BDB_CFLAGS=$ac_new_flags
16697
16698
16699  ac_new_flags=""
16700  for i in $BDB_LIBS; do
16701    case $i in
16702    -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
16703    *) ac_new_flags="$ac_new_flags $i" ;;
16704    esac
16705  done
16706  BDB_LIBS=$ac_new_flags
16707
16708
16709
16710
16711
16712fi
16713
16714
16715
16716
16717	saveLIBS=$LIBS
16718	LIBS=""
16719	CRYPT_LIBS=""
16720
16721	for ac_header in crypt.h
16722do :
16723  ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
16724if test "x$ac_cv_header_crypt_h" = xyes; then :
16725  cat >>confdefs.h <<_ACEOF
16726#define HAVE_CRYPT_H 1
16727_ACEOF
16728
16729fi
16730
16731done
16732
16733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
16734$as_echo_n "checking for main in -lcrypt... " >&6; }
16735if ${ac_cv_lib_crypt_main+:} false; then :
16736  $as_echo_n "(cached) " >&6
16737else
16738  ac_check_lib_save_LIBS=$LIBS
16739LIBS="-lcrypt  $LIBS"
16740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741/* end confdefs.h.  */
16742
16743
16744int
16745main ()
16746{
16747return main ();
16748  ;
16749  return 0;
16750}
16751_ACEOF
16752if ac_fn_c_try_link "$LINENO"; then :
16753  ac_cv_lib_crypt_main=yes
16754else
16755  ac_cv_lib_crypt_main=no
16756fi
16757rm -f core conftest.err conftest.$ac_objext \
16758    conftest$ac_exeext conftest.$ac_ext
16759LIBS=$ac_check_lib_save_LIBS
16760fi
16761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
16762$as_echo "$ac_cv_lib_crypt_main" >&6; }
16763if test "x$ac_cv_lib_crypt_main" = xyes; then :
16764  cat >>confdefs.h <<_ACEOF
16765#define HAVE_LIBCRYPT 1
16766_ACEOF
16767
16768  LIBS="-lcrypt $LIBS"
16769
16770fi
16771
16772
16773	CRYPT_LIBS=$LIBS
16774	LIBS=$saveLIBS
16775
16776
16777
16778
16779
16780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the PGP UAM should be build" >&5
16781$as_echo_n "checking whether the PGP UAM should be build... " >&6; }
16782# Check whether --enable-pgp-uam was given.
16783if test "${enable_pgp_uam+set}" = set; then :
16784  enableval=$enable_pgp_uam;
16785	if test "$enableval" = "yes"; then
16786		if test "x$neta_cv_have_openssl" = "xyes"; then
16787
16788$as_echo "#define UAM_PGP 1" >>confdefs.h
16789
16790			compile_pgp=yes
16791			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16792$as_echo "yes" >&6; }
16793		else
16794			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16795$as_echo "no" >&6; }
16796		fi
16797	fi
16798
16799else
16800
16801		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16802$as_echo "no" >&6; }
16803
16804
16805fi
16806
16807
16808
16809
16810netatalk_cv_build_krb5_uam=no
16811# Check whether --enable-krbV-uam was given.
16812if test "${enable_krbV_uam+set}" = set; then :
16813  enableval=$enable_krbV_uam;
16814		if test x"$enableval" = x"yes"; then
16815
16816    FOUND_GSSAPI=no
16817    GSSAPI_LIBS=""
16818    GSSAPI_CFLAGS=""
16819    GSSAPI_LDFLAGS=""
16820    save_CFLAGS="$CFLAGS"
16821    save_LDFLAGS="$LDFLAGS"
16822    save_LIBS="$LIBS"
16823
16824
16825# Check whether --with-gssapi was given.
16826if test "${with_gssapi+set}" = set; then :
16827  withval=$with_gssapi; compilegssapi=$withval
16828else
16829  compilegssapi=auto
16830
16831fi
16832
16833
16834    if test x"$compilegssapi" != x"no" ; then
16835        if test "x$compilegssapi" != "xyes" -a "x$compilegssapi" != "xauto" ; then
16836            export CFLAGS="-I$withval/include"
16837            export LDFLAGS="-L$withval/${atalk_libname}"
16838            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI support in $compilegssapi" >&5
16839$as_echo "$as_me: checking for GSSAPI support in $compilegssapi" >&6;}
16840        fi
16841
16842        if test x"$compilegssapi" = x"yes" -o x"$compilegssapi" = x"auto" ; then
16843            # check for krb5-config from recent MIT and Heimdal kerberos 5
16844            # Extract the first word of "krb5-config", so it can be a program name with args.
16845set dummy krb5-config; ac_word=$2
16846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16847$as_echo_n "checking for $ac_word... " >&6; }
16848if ${ac_cv_path_KRB5_CONFIG+:} false; then :
16849  $as_echo_n "(cached) " >&6
16850else
16851  case $KRB5_CONFIG in
16852  [\\/]* | ?:[\\/]*)
16853  ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
16854  ;;
16855  *)
16856  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16857for as_dir in $PATH
16858do
16859  IFS=$as_save_IFS
16860  test -z "$as_dir" && as_dir=.
16861    for ac_exec_ext in '' $ac_executable_extensions; do
16862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16863    ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16865    break 2
16866  fi
16867done
16868  done
16869IFS=$as_save_IFS
16870
16871  ;;
16872esac
16873fi
16874KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
16875if test -n "$KRB5_CONFIG"; then
16876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
16877$as_echo "$KRB5_CONFIG" >&6; }
16878else
16879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16880$as_echo "no" >&6; }
16881fi
16882
16883
16884            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working krb5-config that takes --libs gssapi" >&5
16885$as_echo_n "checking for working krb5-config that takes --libs gssapi... " >&6; }
16886
16887            if test -x "$KRB5_CONFIG" ; then
16888                TEMP="`$KRB5_CONFIG --libs gssapi`"
16889                if test $? -eq 0 ; then
16890                    GSSAPI_CFLAGS="`$KRB5_CONFIG --cflags | sed s/@INCLUDE_des@//`"
16891                    GSSAPI_LIBS="$TEMP"
16892                    FOUND_GSSAPI=yes
16893                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16894$as_echo "yes" >&6; }
16895                else
16896                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Fallback to previous krb5 detection strategy" >&5
16897$as_echo "no. Fallback to previous krb5 detection strategy" >&6; }
16898                fi
16899            else
16900                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Fallback to previous krb5 detection strategy" >&5
16901$as_echo "no. Fallback to previous krb5 detection strategy" >&6; }
16902            fi
16903        fi
16904    fi
16905
16906    if test x"$compilegssapi" != x"no" -a x"$FOUND_GSSAPI" = x"no" ; then
16907        # check for gssapi headers
16908        gss_headers_found=no
16909        for ac_header in gssapi.h gssapi/gssapi_generic.h gssapi/gssapi.h gssapi/gssapi_krb5.h
16910do :
16911  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16912ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16913if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16914  cat >>confdefs.h <<_ACEOF
16915#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16916_ACEOF
16917 gss_headers_found=yes
16918fi
16919
16920done
16921
16922        if test x"$gss_headers_found" = x"no" ; then
16923            as_fn_error $? "GSSAPI installation not found, headers missing" "$LINENO" 5
16924        fi
16925        # check for libs
16926        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_display_status" >&5
16927$as_echo_n "checking for library containing gss_display_status... " >&6; }
16928if ${ac_cv_search_gss_display_status+:} false; then :
16929  $as_echo_n "(cached) " >&6
16930else
16931  ac_func_search_save_LIBS=$LIBS
16932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16933/* end confdefs.h.  */
16934
16935/* Override any GCC internal prototype to avoid an error.
16936   Use char because int might match the return type of a GCC
16937   builtin and then its argument prototype would still apply.  */
16938#ifdef __cplusplus
16939extern "C"
16940#endif
16941char gss_display_status ();
16942int
16943main ()
16944{
16945return gss_display_status ();
16946  ;
16947  return 0;
16948}
16949_ACEOF
16950for ac_lib in '' gss gssapi gssapi_krb5; do
16951  if test -z "$ac_lib"; then
16952    ac_res="none required"
16953  else
16954    ac_res=-l$ac_lib
16955    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16956  fi
16957  if ac_fn_c_try_link "$LINENO"; then :
16958  ac_cv_search_gss_display_status=$ac_res
16959fi
16960rm -f core conftest.err conftest.$ac_objext \
16961    conftest$ac_exeext
16962  if ${ac_cv_search_gss_display_status+:} false; then :
16963  break
16964fi
16965done
16966if ${ac_cv_search_gss_display_status+:} false; then :
16967
16968else
16969  ac_cv_search_gss_display_status=no
16970fi
16971rm conftest.$ac_ext
16972LIBS=$ac_func_search_save_LIBS
16973fi
16974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_display_status" >&5
16975$as_echo "$ac_cv_search_gss_display_status" >&6; }
16976ac_res=$ac_cv_search_gss_display_status
16977if test "$ac_res" != no; then :
16978  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16979
16980fi
16981
16982        if test x"$ac_cv_search_gss_display_status" = x"no" ; then
16983            as_fn_error $? "GSSAPI installation not found, library missing" "$LINENO" 5
16984        fi
16985        GSSAPI_CFLAGS="$CFLAGS"
16986        GSSAPI_LIBS="$LIBS"
16987        FOUND_GSSAPI=yes
16988    fi
16989
16990    if test x"$FOUND_GSSAPI" = x"yes" ; then
16991        # check for functions
16992        export CFLAGS="$GSSAPI_CFLAGS"
16993        export LIBS="$GSSAPI_LIBS"
16994        ac_fn_c_check_func "$LINENO" "gss_acquire_cred" "ac_cv_func_gss_acquire_cred"
16995if test "x$ac_cv_func_gss_acquire_cred" = xyes; then :
16996
16997else
16998  as_fn_error $? "GSSAPI: required function gss_acquire_cred missing" "$LINENO" 5
16999fi
17000
17001
17002        # Heimdal/MIT compatibility fix
17003        if test "$ac_cv_header_gssapi_h" = "yes" ; then
17004            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005/* end confdefs.h.  */
17006#include <gssapi.h>
17007
17008_ACEOF
17009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17010  $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
17011
17012$as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
17013
17014
17015fi
17016rm -f conftest*
17017
17018        else
17019            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020/* end confdefs.h.  */
17021#include <gssapi/gssapi.h>
17022
17023_ACEOF
17024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17025  $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
17026
17027$as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
17028
17029
17030fi
17031rm -f conftest*
17032
17033        fi
17034
17035
17036$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
17037
17038        if test x"$ac_cv_func_gss_acquire_cred" = x"yes" ; then
17039
17040				netatalk_cv_build_krb5_uam=yes
17041
17042        else
17043
17044				as_fn_error $? "need GSSAPI to build Kerberos V UAM" "$LINENO" 5
17045
17046        fi
17047    fi
17048
17049
17050
17051
17052
17053    export LIBS="$save_LIBS"
17054    export CFLAGS="$save_CFLAGS"
17055    export LDFLAGS="$save_LDFLAGS"
17056
17057		fi
17058
17059
17060
17061fi
17062
17063
17064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Kerberos V UAM should be build" >&5
17065$as_echo_n "checking whether Kerberos V UAM should be build... " >&6; }
17066if test x"$netatalk_cv_build_krb5_uam" = x"yes"; then
17067	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17068$as_echo "yes" >&6; }
17069else
17070	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17071$as_echo "no" >&6; }
17072fi
17073 if test x"$netatalk_cv_build_krb5_uam" = x"yes"; then
17074  USE_GSSAPI_TRUE=
17075  USE_GSSAPI_FALSE='#'
17076else
17077  USE_GSSAPI_TRUE='#'
17078  USE_GSSAPI_FALSE=
17079fi
17080
17081
17082
17083
17084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos 5 (necessary for GetSrvrInfo:DirectoryNames support)" >&5
17085$as_echo_n "checking for Kerberos 5 (necessary for GetSrvrInfo:DirectoryNames support)... " >&6; }
17086
17087# Check whether --with-kerberos was given.
17088if test "${with_kerberos+set}" = set; then :
17089  withval=$with_kerberos;
17090else
17091  with_kerberos=auto
17092fi
17093
17094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_kerberos" >&5
17095$as_echo "$with_kerberos" >&6; }
17096
17097if test x"$with_kerberos" != x"no"; then
17098   have_krb5_header="no"
17099   for ac_header in krb5/krb5.h krb5.h
17100do :
17101  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17102ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17103if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17104  cat >>confdefs.h <<_ACEOF
17105#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17106_ACEOF
17107 have_krb5_header="yes"; break
17108fi
17109
17110done
17111
17112   if test x"$have_krb5_header" = x"no" && test x"$with_kerberos" != x"auto"; then
17113      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17115as_fn_error $? "--with-kerberos was given, but no headers found
17116See \`config.log' for more details" "$LINENO" 5; }
17117   fi
17118
17119   # Extract the first word of "krb5-config", so it can be a program name with args.
17120set dummy krb5-config; ac_word=$2
17121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17122$as_echo_n "checking for $ac_word... " >&6; }
17123if ${ac_cv_path_KRB5_CONFIG+:} false; then :
17124  $as_echo_n "(cached) " >&6
17125else
17126  case $KRB5_CONFIG in
17127  [\\/]* | ?:[\\/]*)
17128  ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
17129  ;;
17130  *)
17131  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17132for as_dir in $PATH
17133do
17134  IFS=$as_save_IFS
17135  test -z "$as_dir" && as_dir=.
17136    for ac_exec_ext in '' $ac_executable_extensions; do
17137  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17138    ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17140    break 2
17141  fi
17142done
17143  done
17144IFS=$as_save_IFS
17145
17146  ;;
17147esac
17148fi
17149KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
17150if test -n "$KRB5_CONFIG"; then
17151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
17152$as_echo "$KRB5_CONFIG" >&6; }
17153else
17154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17155$as_echo "no" >&6; }
17156fi
17157
17158
17159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5-config" >&5
17160$as_echo_n "checking for krb5-config... " >&6; }
17161   if test -x "$KRB5_CONFIG"; then
17162      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
17163$as_echo "$KRB5_CONFIG" >&6; }
17164      KRB5_CFLAGS="`$KRB5_CONFIG --cflags krb5`"
17165      KRB5_LIBS="`$KRB5_CONFIG --libs krb5`"
17166
17167
17168      with_kerberos="yes"
17169   else
17170      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17171$as_echo "not found" >&6; }
17172      if test x"$with_kerberos" != x"auto"; then
17173         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17175as_fn_error $? "--with-kerberos was given, but krb5-config could not be found
17176See \`config.log' for more details" "$LINENO" 5; }
17177      fi
17178   fi
17179fi
17180
17181if test x"$with_kerberos" = x"yes"; then
17182
17183$as_echo "#define HAVE_KERBEROS 1" >>confdefs.h
17184
17185fi
17186
17187save_CFLAGS="$CFLAGS"
17188save_LIBS="$LIBS"
17189CFLAGS="$KRB5_CFLAGS"
17190LIBS="$KRB5_LIBS"
17191for ac_func in krb5_free_unparsed_name krb5_free_error_message krb5_free_keytab_entry_contents krb5_kt_free_entry
17192do :
17193  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17194ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17195if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17196  cat >>confdefs.h <<_ACEOF
17197#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17198_ACEOF
17199
17200fi
17201done
17202
17203CFLAGS="$save_CFLAGS"
17204LIBS="$save_LIBS"
17205
17206
17207
17208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether configuration files should be overwritten" >&5
17209$as_echo_n "checking whether configuration files should be overwritten... " >&6; }
17210# Check whether --enable-overwrite was given.
17211if test "${enable_overwrite+set}" = set; then :
17212  enableval=$enable_overwrite; OVERWRITE_CONFIG="${enable_overwrite}"
17213else
17214  OVERWRITE_CONFIG="no"
17215
17216fi
17217
17218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OVERWRITE_CONFIG" >&5
17219$as_echo "$OVERWRITE_CONFIG" >&6; }
17220
17221
17222
17223
17224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP (necessary for client-side ACL visibility)" >&5
17225$as_echo_n "checking for LDAP (necessary for client-side ACL visibility)... " >&6; }
17226
17227# Check whether --with-ldap was given.
17228if test "${with_ldap+set}" = set; then :
17229  withval=$with_ldap; netatalk_cv_ldap=$withval
17230else
17231  netatalk_cv_ldap=auto
17232
17233fi
17234
17235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_ldap" >&5
17236$as_echo "$netatalk_cv_ldap" >&6; }
17237
17238save_CFLAGS="$CFLAGS"
17239save_LDFLAGS="$LDFLAGS"
17240save_LIBS="$LIBS"
17241CFLAGS=""
17242LDFLAGS=""
17243LIBS=""
17244LDAP_CFLAGS=""
17245LDAP_LDFLAGS=""
17246LDAP_LIBS=""
17247
17248if test x"$netatalk_cv_ldap" != x"no" ; then
17249   if test x"$netatalk_cv_ldap" != x"yes" -a x"$netatalk_cv_ldap" != x"auto"; then
17250       CFLAGS="-I$netatalk_cv_ldap/include"
17251       LDFLAGS="-L$netatalk_cv_ldap/lib"
17252   fi
17253   	ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
17254if test "x$ac_cv_header_ldap_h" = xyes; then :
17255  netatalk_cv_ldap=yes
17256else
17257   if test x"$netatalk_cv_ldap" = x"yes" ; then
17258            as_fn_error $? "Missing LDAP headers" "$LINENO" 5
17259        fi
17260		netatalk_cv_ldap=no
17261
17262fi
17263
17264
17265	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -lldap" >&5
17266$as_echo_n "checking for ldap_init in -lldap... " >&6; }
17267if ${ac_cv_lib_ldap_ldap_init+:} false; then :
17268  $as_echo_n "(cached) " >&6
17269else
17270  ac_check_lib_save_LIBS=$LIBS
17271LIBS="-lldap  $LIBS"
17272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273/* end confdefs.h.  */
17274
17275/* Override any GCC internal prototype to avoid an error.
17276   Use char because int might match the return type of a GCC
17277   builtin and then its argument prototype would still apply.  */
17278#ifdef __cplusplus
17279extern "C"
17280#endif
17281char ldap_init ();
17282int
17283main ()
17284{
17285return ldap_init ();
17286  ;
17287  return 0;
17288}
17289_ACEOF
17290if ac_fn_c_try_link "$LINENO"; then :
17291  ac_cv_lib_ldap_ldap_init=yes
17292else
17293  ac_cv_lib_ldap_ldap_init=no
17294fi
17295rm -f core conftest.err conftest.$ac_objext \
17296    conftest$ac_exeext conftest.$ac_ext
17297LIBS=$ac_check_lib_save_LIBS
17298fi
17299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_init" >&5
17300$as_echo "$ac_cv_lib_ldap_ldap_init" >&6; }
17301if test "x$ac_cv_lib_ldap_ldap_init" = xyes; then :
17302  netatalk_cv_ldap=yes
17303else
17304   if test x"$netatalk_cv_ldap" = x"yes" ; then
17305            as_fn_error $? "Missing LDAP library" "$LINENO" 5
17306        fi
17307		netatalk_cv_ldap=no
17308
17309fi
17310
17311fi
17312
17313if test x"$netatalk_cv_ldap" = x"yes"; then
17314    LDAP_CFLAGS="$CFLAGS"
17315    LDAP_LDFLAGS="$LDFLAGS"
17316    LDAP_LIBS="-lldap"
17317
17318$as_echo "#define HAVE_LDAP 1" >>confdefs.h
17319
17320fi
17321
17322
17323
17324
17325CFLAGS="$save_CFLAGS"
17326LDFLAGS="$save_LDFLAGS"
17327LIBS="$save_LIBS"
17328
17329
17330
17331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ACLs" >&5
17332$as_echo_n "checking whether to support ACLs... " >&6; }
17333
17334# Check whether --with-acls was given.
17335if test "${with_acls+set}" = set; then :
17336  withval=$with_acls;  case "$withval" in
17337      yes|no)
17338          with_acl_support="$withval"
17339		  ;;
17340      *)
17341          with_acl_support=auto
17342          ;;
17343      esac
17344else
17345  with_acl_support=auto
17346fi
17347
17348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_acl_support" >&5
17349$as_echo "$with_acl_support" >&6; }
17350
17351if test x"$with_acl_support" = x"no"; then
17352	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ACL support" >&5
17353$as_echo "Disabling ACL support" >&6; }
17354
17355$as_echo "#define HAVE_NO_ACLS 1" >>confdefs.h
17356
17357else
17358    with_acl_support=yes
17359fi
17360
17361if test x"$with_acl_support" = x"yes" ; then
17362	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ACL support is available:" >&5
17363$as_echo "$as_me: checking whether ACL support is available:" >&6;}
17364	case "$host_os" in
17365	*sysv5*)
17366		{ $as_echo "$as_me:${as_lineno-$LINENO}: Using UnixWare ACLs" >&5
17367$as_echo "$as_me: Using UnixWare ACLs" >&6;}
17368
17369$as_echo "#define HAVE_UNIXWARE_ACLS 1" >>confdefs.h
17370
17371		;;
17372	*solaris*)
17373		{ $as_echo "$as_me:${as_lineno-$LINENO}: Using solaris ACLs" >&5
17374$as_echo "$as_me: Using solaris ACLs" >&6;}
17375
17376$as_echo "#define HAVE_SOLARIS_ACLS 1" >>confdefs.h
17377
17378		ACL_LIBS="$ACL_LIBS -lsec"
17379		;;
17380	*hpux*)
17381		{ $as_echo "$as_me:${as_lineno-$LINENO}: Using HPUX ACLs" >&5
17382$as_echo "$as_me: Using HPUX ACLs" >&6;}
17383
17384$as_echo "#define HAVE_HPUX_ACLS 1" >>confdefs.h
17385
17386		;;
17387	*irix*)
17388		{ $as_echo "$as_me:${as_lineno-$LINENO}: Using IRIX ACLs" >&5
17389$as_echo "$as_me: Using IRIX ACLs" >&6;}
17390
17391$as_echo "#define HAVE_IRIX_ACLS 1" >>confdefs.h
17392
17393		;;
17394	*aix*)
17395		{ $as_echo "$as_me:${as_lineno-$LINENO}: Using AIX ACLs" >&5
17396$as_echo "$as_me: Using AIX ACLs" >&6;}
17397
17398$as_echo "#define HAVE_AIX_ACLS 1" >>confdefs.h
17399
17400		;;
17401	*osf*)
17402		{ $as_echo "$as_me:${as_lineno-$LINENO}: Using Tru64 ACLs" >&5
17403$as_echo "$as_me: Using Tru64 ACLs" >&6;}
17404
17405$as_echo "#define HAVE_TRU64_ACLS 1" >>confdefs.h
17406
17407		ACL_LIBS="$ACL_LIBS -lpacl"
17408		;;
17409	*darwin*)
17410		{ $as_echo "$as_me:${as_lineno-$LINENO}: ACLs on Darwin currently not supported" >&5
17411$as_echo "$as_me: ACLs on Darwin currently not supported" >&6;}
17412
17413$as_echo "#define HAVE_NO_ACLS 1" >>confdefs.h
17414
17415		;;
17416	*)
17417		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
17418$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
17419if ${ac_cv_lib_acl_acl_get_file+:} false; then :
17420  $as_echo_n "(cached) " >&6
17421else
17422  ac_check_lib_save_LIBS=$LIBS
17423LIBS="-lacl  $LIBS"
17424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425/* end confdefs.h.  */
17426
17427/* Override any GCC internal prototype to avoid an error.
17428   Use char because int might match the return type of a GCC
17429   builtin and then its argument prototype would still apply.  */
17430#ifdef __cplusplus
17431extern "C"
17432#endif
17433char acl_get_file ();
17434int
17435main ()
17436{
17437return acl_get_file ();
17438  ;
17439  return 0;
17440}
17441_ACEOF
17442if ac_fn_c_try_link "$LINENO"; then :
17443  ac_cv_lib_acl_acl_get_file=yes
17444else
17445  ac_cv_lib_acl_acl_get_file=no
17446fi
17447rm -f core conftest.err conftest.$ac_objext \
17448    conftest$ac_exeext conftest.$ac_ext
17449LIBS=$ac_check_lib_save_LIBS
17450fi
17451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
17452$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
17453if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
17454  ACL_LIBS="$ACL_LIBS -lacl"
17455fi
17456
17457		case "$host_os" in
17458		*linux*)
17459			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5
17460$as_echo_n "checking for getxattr in -lattr... " >&6; }
17461if ${ac_cv_lib_attr_getxattr+:} false; then :
17462  $as_echo_n "(cached) " >&6
17463else
17464  ac_check_lib_save_LIBS=$LIBS
17465LIBS="-lattr  $LIBS"
17466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17467/* end confdefs.h.  */
17468
17469/* Override any GCC internal prototype to avoid an error.
17470   Use char because int might match the return type of a GCC
17471   builtin and then its argument prototype would still apply.  */
17472#ifdef __cplusplus
17473extern "C"
17474#endif
17475char getxattr ();
17476int
17477main ()
17478{
17479return getxattr ();
17480  ;
17481  return 0;
17482}
17483_ACEOF
17484if ac_fn_c_try_link "$LINENO"; then :
17485  ac_cv_lib_attr_getxattr=yes
17486else
17487  ac_cv_lib_attr_getxattr=no
17488fi
17489rm -f core conftest.err conftest.$ac_objext \
17490    conftest$ac_exeext conftest.$ac_ext
17491LIBS=$ac_check_lib_save_LIBS
17492fi
17493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5
17494$as_echo "$ac_cv_lib_attr_getxattr" >&6; }
17495if test "x$ac_cv_lib_attr_getxattr" = xyes; then :
17496  ACL_LIBS="$ACL_LIBS -lattr"
17497fi
17498
17499			;;
17500		esac
17501		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
17502$as_echo_n "checking for POSIX ACL support... " >&6; }
17503if ${netatalk_cv_HAVE_POSIX_ACLS+:} false; then :
17504  $as_echo_n "(cached) " >&6
17505else
17506
17507			acl_LIBS=$LIBS
17508			LIBS="$LIBS $ACL_LIBS"
17509			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510/* end confdefs.h.  */
17511
17512				#include <sys/types.h>
17513				#include <sys/acl.h>
17514
17515int
17516main ()
17517{
17518
17519				acl_t acl;
17520				int entry_id;
17521				acl_entry_t *entry_p;
17522				return acl_get_entry(acl, entry_id, entry_p);
17523
17524  ;
17525  return 0;
17526}
17527_ACEOF
17528if ac_fn_c_try_link "$LINENO"; then :
17529  netatalk_cv_HAVE_POSIX_ACLS=yes
17530else
17531  netatalk_cv_HAVE_POSIX_ACLS=no
17532                with_acl_support=no
17533fi
17534rm -f core conftest.err conftest.$ac_objext \
17535    conftest$ac_exeext conftest.$ac_ext
17536			LIBS=$acl_LIBS
17537
17538fi
17539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_HAVE_POSIX_ACLS" >&5
17540$as_echo "$netatalk_cv_HAVE_POSIX_ACLS" >&6; }
17541		if test x"$netatalk_cv_HAVE_POSIX_ACLS" = x"yes"; then
17542			{ $as_echo "$as_me:${as_lineno-$LINENO}: Using POSIX ACLs" >&5
17543$as_echo "$as_me: Using POSIX ACLs" >&6;}
17544
17545$as_echo "#define HAVE_POSIX_ACLS 1" >>confdefs.h
17546
17547			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_perm_np" >&5
17548$as_echo_n "checking for acl_get_perm_np... " >&6; }
17549if ${netatalk_cv_HAVE_ACL_GET_PERM_NP+:} false; then :
17550  $as_echo_n "(cached) " >&6
17551else
17552
17553				acl_LIBS=$LIBS
17554				LIBS="$LIBS $ACL_LIBS"
17555				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556/* end confdefs.h.  */
17557
17558					#include <sys/types.h>
17559					#include <sys/acl.h>
17560
17561int
17562main ()
17563{
17564
17565					acl_permset_t permset_d;
17566					acl_perm_t perm;
17567					return acl_get_perm_np(permset_d, perm);
17568
17569  ;
17570  return 0;
17571}
17572_ACEOF
17573if ac_fn_c_try_link "$LINENO"; then :
17574  netatalk_cv_HAVE_ACL_GET_PERM_NP=yes
17575else
17576  netatalk_cv_HAVE_ACL_GET_PERM_NP=no
17577fi
17578rm -f core conftest.err conftest.$ac_objext \
17579    conftest$ac_exeext conftest.$ac_ext
17580				LIBS=$acl_LIBS
17581
17582fi
17583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_HAVE_ACL_GET_PERM_NP" >&5
17584$as_echo "$netatalk_cv_HAVE_ACL_GET_PERM_NP" >&6; }
17585			if test x"$netatalk_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
17586
17587$as_echo "#define HAVE_ACL_GET_PERM_NP 1" >>confdefs.h
17588
17589			fi
17590
17591
17592                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_from_mode" >&5
17593$as_echo_n "checking for acl_from_mode... " >&6; }
17594if ${netatalk_cv_HAVE_ACL_FROM_MODE+:} false; then :
17595  $as_echo_n "(cached) " >&6
17596else
17597
17598                               acl_LIBS=$LIBS
17599                               LIBS="$LIBS $ACL_LIBS"
17600                for ac_func in acl_from_mode
17601do :
17602  ac_fn_c_check_func "$LINENO" "acl_from_mode" "ac_cv_func_acl_from_mode"
17603if test "x$ac_cv_func_acl_from_mode" = xyes; then :
17604  cat >>confdefs.h <<_ACEOF
17605#define HAVE_ACL_FROM_MODE 1
17606_ACEOF
17607 netatalk_cv_HAVE_ACL_FROM_MODE=yes
17608else
17609  netatalk_cv_HAVE_ACL_FROM_MODE=no
17610fi
17611done
17612
17613                               LIBS=$acl_LIBS
17614
17615fi
17616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $netatalk_cv_HAVE_ACL_FROM_MODE" >&5
17617$as_echo "$netatalk_cv_HAVE_ACL_FROM_MODE" >&6; }
17618                       if test x"netatalk_cv_HAVE_ACL_FROM_MODE" = x"yes"; then
17619
17620$as_echo "#define HAVE_ACL_FROM_MODE 1" >>confdefs.h
17621
17622                       fi
17623
17624		else
17625			{ $as_echo "$as_me:${as_lineno-$LINENO}: ACL support is not avaliable" >&5
17626$as_echo "$as_me: ACL support is not avaliable" >&6;}
17627
17628$as_echo "#define HAVE_NO_ACLS 1" >>confdefs.h
17629
17630		fi
17631		;;
17632    esac
17633fi
17634
17635if test x"$with_acl_support" = x"yes" ; then
17636   for ac_header in acl/libacl.h
17637do :
17638  ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
17639if test "x$ac_cv_header_acl_libacl_h" = xyes; then :
17640  cat >>confdefs.h <<_ACEOF
17641#define HAVE_ACL_LIBACL_H 1
17642_ACEOF
17643
17644fi
17645
17646done
17647
17648
17649$as_echo "#define HAVE_ACLS 1" >>confdefs.h
17650
17651
17652fi
17653
17654
17655
17656neta_cv_eas="ad"
17657neta_cv_eas_sys_found=no
17658neta_cv_eas_sys_not_found=no
17659
17660for ac_header in sys/attributes.h attr/xattr.h sys/xattr.h sys/extattr.h sys/uio.h sys/ea.h
17661do :
17662  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17663ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17664if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17665  cat >>confdefs.h <<_ACEOF
17666#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17667_ACEOF
17668
17669fi
17670
17671done
17672
17673
17674case "$this_os" in
17675
17676  *osf*)
17677	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getproplist" >&5
17678$as_echo_n "checking for library containing getproplist... " >&6; }
17679if ${ac_cv_search_getproplist+:} false; then :
17680  $as_echo_n "(cached) " >&6
17681else
17682  ac_func_search_save_LIBS=$LIBS
17683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17684/* end confdefs.h.  */
17685
17686/* Override any GCC internal prototype to avoid an error.
17687   Use char because int might match the return type of a GCC
17688   builtin and then its argument prototype would still apply.  */
17689#ifdef __cplusplus
17690extern "C"
17691#endif
17692char getproplist ();
17693int
17694main ()
17695{
17696return getproplist ();
17697  ;
17698  return 0;
17699}
17700_ACEOF
17701for ac_lib in '' proplist; do
17702  if test -z "$ac_lib"; then
17703    ac_res="none required"
17704  else
17705    ac_res=-l$ac_lib
17706    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17707  fi
17708  if ac_fn_c_try_link "$LINENO"; then :
17709  ac_cv_search_getproplist=$ac_res
17710fi
17711rm -f core conftest.err conftest.$ac_objext \
17712    conftest$ac_exeext
17713  if ${ac_cv_search_getproplist+:} false; then :
17714  break
17715fi
17716done
17717if ${ac_cv_search_getproplist+:} false; then :
17718
17719else
17720  ac_cv_search_getproplist=no
17721fi
17722rm conftest.$ac_ext
17723LIBS=$ac_func_search_save_LIBS
17724fi
17725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getproplist" >&5
17726$as_echo "$ac_cv_search_getproplist" >&6; }
17727ac_res=$ac_cv_search_getproplist
17728if test "$ac_res" != no; then :
17729  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17730
17731fi
17732
17733	for ac_func in getproplist fgetproplist setproplist fsetproplist
17734do :
17735  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17736ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17737if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17738  cat >>confdefs.h <<_ACEOF
17739#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17740_ACEOF
17741 neta_cv_eas_sys_found=yes
17742else
17743  neta_cv_eas_sys_not_found=yes
17744fi
17745done
17746
17747	for ac_func in delproplist fdelproplist add_proplist_entry get_proplist_entry
17748do :
17749  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17750ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17751if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17752  cat >>confdefs.h <<_ACEOF
17753#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17754_ACEOF
17755
17756else
17757  neta_cv_eas_sys_not_found=yes
17758fi
17759done
17760
17761	for ac_func in sizeof_proplist_entry
17762do :
17763  ac_fn_c_check_func "$LINENO" "sizeof_proplist_entry" "ac_cv_func_sizeof_proplist_entry"
17764if test "x$ac_cv_func_sizeof_proplist_entry" = xyes; then :
17765  cat >>confdefs.h <<_ACEOF
17766#define HAVE_SIZEOF_PROPLIST_ENTRY 1
17767_ACEOF
17768
17769else
17770  neta_cv_eas_sys_not_found=yes
17771fi
17772done
17773
17774  ;;
17775
17776  *solaris*)
17777	for ac_func in attropen
17778do :
17779  ac_fn_c_check_func "$LINENO" "attropen" "ac_cv_func_attropen"
17780if test "x$ac_cv_func_attropen" = xyes; then :
17781  cat >>confdefs.h <<_ACEOF
17782#define HAVE_ATTROPEN 1
17783_ACEOF
17784 neta_cv_eas_sys_found=yes;
17785$as_echo "#define HAVE_EAFD 1" >>confdefs.h
17786
17787else
17788  neta_cv_eas_sys_not_found=yes
17789fi
17790done
17791
17792  ;;
17793
17794  'freebsd')
17795    for ac_func in extattr_delete_fd extattr_delete_file extattr_delete_link
17796do :
17797  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17798ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17799if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17800  cat >>confdefs.h <<_ACEOF
17801#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17802_ACEOF
17803 neta_cv_eas_sys_found=yes
17804else
17805  neta_cv_eas_sys_not_found=yes
17806fi
17807done
17808
17809    for ac_func in extattr_get_fd extattr_get_file extattr_get_link
17810do :
17811  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17812ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17813if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17814  cat >>confdefs.h <<_ACEOF
17815#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17816_ACEOF
17817
17818else
17819  neta_cv_eas_sys_not_found=yes
17820fi
17821done
17822
17823    for ac_func in extattr_list_fd extattr_list_file extattr_list_link
17824do :
17825  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17826ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17827if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17828  cat >>confdefs.h <<_ACEOF
17829#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17830_ACEOF
17831
17832else
17833  neta_cv_eas_sys_not_found=yes
17834fi
17835done
17836
17837    for ac_func in extattr_set_fd extattr_set_file extattr_set_link
17838do :
17839  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17840ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17841if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17842  cat >>confdefs.h <<_ACEOF
17843#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17844_ACEOF
17845
17846else
17847  neta_cv_eas_sys_not_found=yes
17848fi
17849done
17850
17851  ;;
17852
17853  *freebsd4* | *dragonfly* )
17854
17855$as_echo "#define BROKEN_EXTATTR 1" >>confdefs.h
17856
17857  ;;
17858
17859  *)
17860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getxattr" >&5
17861$as_echo_n "checking for library containing getxattr... " >&6; }
17862if ${ac_cv_search_getxattr+:} false; then :
17863  $as_echo_n "(cached) " >&6
17864else
17865  ac_func_search_save_LIBS=$LIBS
17866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17867/* end confdefs.h.  */
17868
17869/* Override any GCC internal prototype to avoid an error.
17870   Use char because int might match the return type of a GCC
17871   builtin and then its argument prototype would still apply.  */
17872#ifdef __cplusplus
17873extern "C"
17874#endif
17875char getxattr ();
17876int
17877main ()
17878{
17879return getxattr ();
17880  ;
17881  return 0;
17882}
17883_ACEOF
17884for ac_lib in '' attr; do
17885  if test -z "$ac_lib"; then
17886    ac_res="none required"
17887  else
17888    ac_res=-l$ac_lib
17889    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17890  fi
17891  if ac_fn_c_try_link "$LINENO"; then :
17892  ac_cv_search_getxattr=$ac_res
17893fi
17894rm -f core conftest.err conftest.$ac_objext \
17895    conftest$ac_exeext
17896  if ${ac_cv_search_getxattr+:} false; then :
17897  break
17898fi
17899done
17900if ${ac_cv_search_getxattr+:} false; then :
17901
17902else
17903  ac_cv_search_getxattr=no
17904fi
17905rm conftest.$ac_ext
17906LIBS=$ac_func_search_save_LIBS
17907fi
17908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getxattr" >&5
17909$as_echo "$ac_cv_search_getxattr" >&6; }
17910ac_res=$ac_cv_search_getxattr
17911if test "$ac_res" != no; then :
17912  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17913
17914fi
17915
17916
17917    if test "x$neta_cv_eas_sys_found" != "xyes" ; then
17918       for ac_func in getxattr lgetxattr fgetxattr listxattr llistxattr
17919do :
17920  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17921ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17922if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17923  cat >>confdefs.h <<_ACEOF
17924#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17925_ACEOF
17926 neta_cv_eas_sys_found=yes
17927else
17928  neta_cv_eas_sys_not_found=yes
17929fi
17930done
17931
17932	   for ac_func in flistxattr removexattr lremovexattr fremovexattr
17933do :
17934  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17935ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17936if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17937  cat >>confdefs.h <<_ACEOF
17938#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17939_ACEOF
17940
17941else
17942  neta_cv_eas_sys_not_found=yes
17943fi
17944done
17945
17946	   for ac_func in setxattr lsetxattr fsetxattr
17947do :
17948  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17949ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17950if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17951  cat >>confdefs.h <<_ACEOF
17952#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17953_ACEOF
17954
17955else
17956  neta_cv_eas_sys_not_found=yes
17957fi
17958done
17959
17960    fi
17961
17962    if test "x$neta_cv_eas_sys_found" != "xyes" ; then
17963	   for ac_func in getea fgetea lgetea listea flistea llistea
17964do :
17965  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17966ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17967if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17968  cat >>confdefs.h <<_ACEOF
17969#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17970_ACEOF
17971 neta_cv_eas_sys_found=yes
17972else
17973  neta_cv_eas_sys_not_found=yes
17974fi
17975done
17976
17977	   for ac_func in removeea fremoveea lremoveea setea fsetea lsetea
17978do :
17979  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17980ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17981if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17982  cat >>confdefs.h <<_ACEOF
17983#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17984_ACEOF
17985
17986else
17987  neta_cv_eas_sys_not_found=yes
17988fi
17989done
17990
17991    fi
17992
17993    if test "x$neta_cv_eas_sys_found" != "xyes" ; then
17994	   for ac_func in attr_get attr_list attr_set attr_remove
17995do :
17996  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17997ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17998if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17999  cat >>confdefs.h <<_ACEOF
18000#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18001_ACEOF
18002
18003else
18004  neta_cv_eas_sys_not_found=yes
18005fi
18006done
18007
18008       for ac_func in attr_getf attr_listf attr_setf attr_removef
18009do :
18010  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18011ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18012if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18013  cat >>confdefs.h <<_ACEOF
18014#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18015_ACEOF
18016
18017else
18018  neta_cv_eas_sys_not_found=yes
18019fi
18020done
18021
18022    fi
18023  ;;
18024esac
18025
18026# Do xattr functions take additional options like on Darwin?
18027if test x"$ac_cv_func_getxattr" = x"yes" ; then
18028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr interface takes additional options" >&5
18029$as_echo_n "checking whether xattr interface takes additional options... " >&6; }
18030if ${smb_attr_cv_xattr_add_opt+:} false; then :
18031  $as_echo_n "(cached) " >&6
18032else
18033
18034		old_LIBS=$LIBS
18035		LIBS="$LIBS $ACL_LIBS"
18036		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18037/* end confdefs.h.  */
18038
18039			#include <sys/types.h>
18040			#if HAVE_ATTR_XATTR_H
18041			#include <attr/xattr.h>
18042			#elif HAVE_SYS_XATTR_H
18043			#include <sys/xattr.h>
18044			#endif
18045
18046int
18047main ()
18048{
18049
18050			getxattr(0, 0, 0, 0, 0, 0);
18051
18052  ;
18053  return 0;
18054}
18055_ACEOF
18056if ac_fn_c_try_compile "$LINENO"; then :
18057  smb_attr_cv_xattr_add_opt=yes
18058else
18059  smb_attr_cv_xattr_add_opt=no;LIBS=$old_LIBS
18060fi
18061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18062
18063fi
18064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $smb_attr_cv_xattr_add_opt" >&5
18065$as_echo "$smb_attr_cv_xattr_add_opt" >&6; }
18066	if test x"$smb_attr_cv_xattr_add_opt" = x"yes"; then
18067
18068$as_echo "#define XATTR_ADD_OPT 1" >>confdefs.h
18069
18070	fi
18071fi
18072
18073if test "x$neta_cv_eas_sys_found" = "xyes" ; then
18074   if test "x$neta_cv_eas_sys_not_found" != "xyes" ; then
18075      neta_cv_eas="$neta_cv_eas | sys"
18076   fi
18077fi
18078
18079cat >>confdefs.h <<_ACEOF
18080#define EA_MODULES "$neta_cv_eas"
18081_ACEOF
18082
18083
18084
18085
18086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the realpath function allows a NULL argument" >&5
18087$as_echo_n "checking if the realpath function allows a NULL argument... " >&6; }
18088if ${neta_cv_REALPATH_TAKES_NULL+:} false; then :
18089  $as_echo_n "(cached) " >&6
18090else
18091
18092        if test "$cross_compiling" = yes; then :
18093  neta_cv_REALPATH_TAKES_NULL=cross
18094
18095else
18096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18097/* end confdefs.h.  */
18098
18099            #include <stdio.h>
18100            #include <limits.h>
18101            #include <signal.h>
18102
18103            void exit_on_core(int ignored) {
18104                 exit(1);
18105            }
18106
18107            main() {
18108                char *newpath;
18109                signal(SIGSEGV, exit_on_core);
18110                newpath = realpath("/tmp", NULL);
18111                exit((newpath != NULL) ? 0 : 1);
18112            }
18113_ACEOF
18114if ac_fn_c_try_run "$LINENO"; then :
18115  neta_cv_REALPATH_TAKES_NULL=yes
18116else
18117  neta_cv_REALPATH_TAKES_NULL=no
18118fi
18119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18120  conftest.$ac_objext conftest.beam conftest.$ac_ext
18121fi
18122
18123
18124
18125fi
18126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $neta_cv_REALPATH_TAKES_NULL" >&5
18127$as_echo "$neta_cv_REALPATH_TAKES_NULL" >&6; }
18128
18129if test x"$neta_cv_REALPATH_TAKES_NULL" = x"yes"; then
18130
18131$as_echo "#define REALPATH_TAKES_NULL 1" >>confdefs.h
18132
18133fi
18134
18135
18136
18137netatalk_cv_search_sendfile=yes
18138# Check whether --enable-sendfile was given.
18139if test "${enable_sendfile+set}" = set; then :
18140  enableval=$enable_sendfile; if test x"$enableval" = x"no"; then
18141            netatalk_cv_search_sendfile=no
18142        fi
18143
18144fi
18145
18146
18147if test x"$netatalk_cv_search_sendfile" = x"yes"; then
18148   case "$host_os" in
18149   *linux*)
18150
18151$as_echo "#define SENDFILE_FLAVOR_LINUX 1" >>confdefs.h
18152
18153        ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
18154if test "x$ac_cv_func_sendfile" = xyes; then :
18155  netatalk_cv_HAVE_SENDFILE=yes
18156fi
18157
18158        ;;
18159
18160    *solaris*)
18161
18162$as_echo "#define SENDFILE_FLAVOR_SOLARIS 1" >>confdefs.h
18163
18164        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
18165$as_echo_n "checking for library containing sendfile... " >&6; }
18166if ${ac_cv_search_sendfile+:} false; then :
18167  $as_echo_n "(cached) " >&6
18168else
18169  ac_func_search_save_LIBS=$LIBS
18170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18171/* end confdefs.h.  */
18172
18173/* Override any GCC internal prototype to avoid an error.
18174   Use char because int might match the return type of a GCC
18175   builtin and then its argument prototype would still apply.  */
18176#ifdef __cplusplus
18177extern "C"
18178#endif
18179char sendfile ();
18180int
18181main ()
18182{
18183return sendfile ();
18184  ;
18185  return 0;
18186}
18187_ACEOF
18188for ac_lib in '' sendfile; do
18189  if test -z "$ac_lib"; then
18190    ac_res="none required"
18191  else
18192    ac_res=-l$ac_lib
18193    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18194  fi
18195  if ac_fn_c_try_link "$LINENO"; then :
18196  ac_cv_search_sendfile=$ac_res
18197fi
18198rm -f core conftest.err conftest.$ac_objext \
18199    conftest$ac_exeext
18200  if ${ac_cv_search_sendfile+:} false; then :
18201  break
18202fi
18203done
18204if ${ac_cv_search_sendfile+:} false; then :
18205
18206else
18207  ac_cv_search_sendfile=no
18208fi
18209rm conftest.$ac_ext
18210LIBS=$ac_func_search_save_LIBS
18211fi
18212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
18213$as_echo "$ac_cv_search_sendfile" >&6; }
18214ac_res=$ac_cv_search_sendfile
18215if test "$ac_res" != no; then :
18216  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18217
18218fi
18219
18220        ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
18221if test "x$ac_cv_func_sendfile" = xyes; then :
18222  netatalk_cv_HAVE_SENDFILE=yes
18223fi
18224
18225        for ac_func in sendfilev
18226do :
18227  ac_fn_c_check_func "$LINENO" "sendfilev" "ac_cv_func_sendfilev"
18228if test "x$ac_cv_func_sendfilev" = xyes; then :
18229  cat >>confdefs.h <<_ACEOF
18230#define HAVE_SENDFILEV 1
18231_ACEOF
18232
18233fi
18234done
18235
18236        ;;
18237
18238    *freebsd*)
18239
18240$as_echo "#define SENDFILE_FLAVOR_BSD 1" >>confdefs.h
18241
18242        ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
18243if test "x$ac_cv_func_sendfile" = xyes; then :
18244  netatalk_cv_HAVE_SENDFILE=yes
18245fi
18246
18247        ;;
18248
18249    *)
18250        ;;
18251
18252    esac
18253
18254    if test x"$netatalk_cv_HAVE_SENDFILE" = x"yes"; then
18255
18256$as_echo "#define WITH_SENDFILE 1" >>confdefs.h
18257
18258    fi
18259fi
18260
18261
18262
18263
18264
18265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use bundled libevent" >&5
18266$as_echo_n "checking whether to use bundled libevent... " >&6; }
18267
18268# Check whether --with-libevent was given.
18269if test "${with_libevent+set}" = set; then :
18270  withval=$with_libevent; use_bundled_libevent=$withval
18271else
18272  use_bundled_libevent=yes
18273
18274fi
18275
18276
18277# Check whether --with-libevent-header was given.
18278if test "${with_libevent_header+set}" = set; then :
18279  withval=$with_libevent_header; use_bundled_libevent=no; LIBEVENT_CFLAGS=-I$withval
18280
18281fi
18282
18283
18284# Check whether --with-libevent-lib was given.
18285if test "${with_libevent_lib+set}" = set; then :
18286  withval=$with_libevent_lib; use_bundled_libevent=no; LIBEVENT_LDFLAGS=-L$withval
18287
18288fi
18289
18290    if test x"$LIBEVENT_CFLAGS" = x"-Iyes" -o x"$LIBEVENT_LDFLAGS" = x"-Lyes" ; then
18291        as_fn_error $? "--with-libevent requires a path" "$LINENO" 5
18292    fi
18293    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_bundled_libevent" >&5
18294$as_echo "$use_bundled_libevent" >&6; }
18295    if test x"$use_bundled_libevent" = x"yes" ; then
18296        subdirs="$subdirs libevent"
18297
18298    fi
18299
18300
18301     if test x"$use_bundled_libevent" = x"yes"; then
18302  USE_BUILTIN_LIBEVENT_TRUE=
18303  USE_BUILTIN_LIBEVENT_FALSE='#'
18304else
18305  USE_BUILTIN_LIBEVENT_TRUE='#'
18306  USE_BUILTIN_LIBEVENT_FALSE=
18307fi
18308
18309
18310
18311
18312    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable developer build" >&5
18313$as_echo_n "checking whether to enable developer build... " >&6; }
18314    # Check whether --enable-developer was given.
18315if test "${enable_developer+set}" = set; then :
18316  enableval=$enable_developer; enable_dev=$enableval
18317else
18318  enable_dev=no
18319
18320fi
18321
18322    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dev" >&5
18323$as_echo "$enable_dev" >&6; }
18324     if test x"$enable_dev" = x"yes"; then
18325  DEVELOPER_TRUE=
18326  DEVELOPER_FALSE='#'
18327else
18328  DEVELOPER_TRUE='#'
18329  DEVELOPER_FALSE=
18330fi
18331
18332
18333
18334
18335
18336# Check whether --with-dtrace was given.
18337if test "${with_dtrace+set}" = set; then :
18338  withval=$with_dtrace; WDTRACE=$withval
18339else
18340  WDTRACE=auto
18341
18342fi
18343
18344  if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then
18345    # Extract the first word of "dtrace", so it can be a program name with args.
18346set dummy dtrace; ac_word=$2
18347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18348$as_echo_n "checking for $ac_word... " >&6; }
18349if ${ac_cv_prog_atalk_cv_have_dtrace+:} false; then :
18350  $as_echo_n "(cached) " >&6
18351else
18352  if test -n "$atalk_cv_have_dtrace"; then
18353  ac_cv_prog_atalk_cv_have_dtrace="$atalk_cv_have_dtrace" # Let the user override the test.
18354else
18355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18356for as_dir in $PATH
18357do
18358  IFS=$as_save_IFS
18359  test -z "$as_dir" && as_dir=.
18360    for ac_exec_ext in '' $ac_executable_extensions; do
18361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18362    ac_cv_prog_atalk_cv_have_dtrace="yes"
18363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18364    break 2
18365  fi
18366done
18367  done
18368IFS=$as_save_IFS
18369
18370  test -z "$ac_cv_prog_atalk_cv_have_dtrace" && ac_cv_prog_atalk_cv_have_dtrace="no"
18371fi
18372fi
18373atalk_cv_have_dtrace=$ac_cv_prog_atalk_cv_have_dtrace
18374if test -n "$atalk_cv_have_dtrace"; then
18375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $atalk_cv_have_dtrace" >&5
18376$as_echo "$atalk_cv_have_dtrace" >&6; }
18377else
18378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18379$as_echo "no" >&6; }
18380fi
18381
18382
18383    if test "x$atalk_cv_have_dtrace" = "xno" ; then
18384      if test "x$WDTRACE" = "xyes" ; then
18385        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18387as_fn_error $? "dtrace requested but not found
18388See \`config.log' for more details" "$LINENO" 5; }
18389      fi
18390      WDTRACE="no"
18391    else
18392      WDTRACE="yes"
18393    fi
18394  fi
18395
18396  if test x"$WDTRACE" = x"yes" ; then
18397
18398$as_echo "#define WITH_DTRACE 1" >>confdefs.h
18399
18400    DTRACE_LIBS=""
18401    if test x"$this_os" = x"freebsd" ; then
18402      DTRACE_LIBS="-lelf"
18403    fi
18404
18405  fi
18406   if test "x$WDTRACE" = "xyes"; then
18407  WITH_DTRACE_TRUE=
18408  WITH_DTRACE_FALSE='#'
18409else
18410  WITH_DTRACE_TRUE='#'
18411  WITH_DTRACE_FALSE=
18412fi
18413
18414
18415
18416
18417    atalk_cv_with_dbus=no
18418
18419pkg_failed=no
18420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
18421$as_echo_n "checking for DBUS... " >&6; }
18422
18423if test -n "$DBUS_CFLAGS"; then
18424    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
18425 elif test -n "$PKG_CONFIG"; then
18426    if test -n "$PKG_CONFIG" && \
18427    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.1\""; } >&5
18428  ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.1") 2>&5
18429  ac_status=$?
18430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18431  test $ac_status = 0; }; then
18432  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.1" 2>/dev/null`
18433else
18434  pkg_failed=yes
18435fi
18436 else
18437    pkg_failed=untried
18438fi
18439if test -n "$DBUS_LIBS"; then
18440    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
18441 elif test -n "$PKG_CONFIG"; then
18442    if test -n "$PKG_CONFIG" && \
18443    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.1\""; } >&5
18444  ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.1") 2>&5
18445  ac_status=$?
18446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18447  test $ac_status = 0; }; then
18448  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.1" 2>/dev/null`
18449else
18450  pkg_failed=yes
18451fi
18452 else
18453    pkg_failed=untried
18454fi
18455
18456
18457
18458if test $pkg_failed = yes; then
18459
18460if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18461        _pkg_short_errors_supported=yes
18462else
18463        _pkg_short_errors_supported=no
18464fi
18465        if test $_pkg_short_errors_supported = yes; then
18466	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1 >= 1.1" 2>&1`
18467        else
18468	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1 >= 1.1" 2>&1`
18469        fi
18470	# Put the nasty error message in config.log where it belongs
18471	echo "$DBUS_PKG_ERRORS" >&5
18472
18473	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18474$as_echo "no" >&6; }
18475                have_dbus=no
18476elif test $pkg_failed = untried; then
18477	have_dbus=no
18478else
18479	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
18480	DBUS_LIBS=$pkg_cv_DBUS_LIBS
18481        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18482$as_echo "yes" >&6; }
18483	have_dbus=yes
18484fi
18485
18486pkg_failed=no
18487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS_GLIB" >&5
18488$as_echo_n "checking for DBUS_GLIB... " >&6; }
18489
18490if test -n "$DBUS_GLIB_CFLAGS"; then
18491    pkg_cv_DBUS_GLIB_CFLAGS="$DBUS_GLIB_CFLAGS"
18492 elif test -n "$PKG_CONFIG"; then
18493    if test -n "$PKG_CONFIG" && \
18494    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1\""; } >&5
18495  ($PKG_CONFIG --exists --print-errors "dbus-glib-1") 2>&5
18496  ac_status=$?
18497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18498  test $ac_status = 0; }; then
18499  pkg_cv_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1" 2>/dev/null`
18500else
18501  pkg_failed=yes
18502fi
18503 else
18504    pkg_failed=untried
18505fi
18506if test -n "$DBUS_GLIB_LIBS"; then
18507    pkg_cv_DBUS_GLIB_LIBS="$DBUS_GLIB_LIBS"
18508 elif test -n "$PKG_CONFIG"; then
18509    if test -n "$PKG_CONFIG" && \
18510    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1\""; } >&5
18511  ($PKG_CONFIG --exists --print-errors "dbus-glib-1") 2>&5
18512  ac_status=$?
18513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18514  test $ac_status = 0; }; then
18515  pkg_cv_DBUS_GLIB_LIBS=`$PKG_CONFIG --libs "dbus-glib-1" 2>/dev/null`
18516else
18517  pkg_failed=yes
18518fi
18519 else
18520    pkg_failed=untried
18521fi
18522
18523
18524
18525if test $pkg_failed = yes; then
18526
18527if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18528        _pkg_short_errors_supported=yes
18529else
18530        _pkg_short_errors_supported=no
18531fi
18532        if test $_pkg_short_errors_supported = yes; then
18533	        DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-glib-1" 2>&1`
18534        else
18535	        DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-glib-1" 2>&1`
18536        fi
18537	# Put the nasty error message in config.log where it belongs
18538	echo "$DBUS_GLIB_PKG_ERRORS" >&5
18539
18540	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18541$as_echo "no" >&6; }
18542                have_dbus_glib=no
18543elif test $pkg_failed = untried; then
18544	have_dbus_glib=no
18545else
18546	DBUS_GLIB_CFLAGS=$pkg_cv_DBUS_GLIB_CFLAGS
18547	DBUS_GLIB_LIBS=$pkg_cv_DBUS_GLIB_LIBS
18548        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18549$as_echo "yes" >&6; }
18550	have_dbus_glib=yes
18551fi
18552
18553pkg_failed=no
18554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS_GTHREAD" >&5
18555$as_echo_n "checking for DBUS_GTHREAD... " >&6; }
18556
18557if test -n "$DBUS_GTHREAD_CFLAGS"; then
18558    pkg_cv_DBUS_GTHREAD_CFLAGS="$DBUS_GTHREAD_CFLAGS"
18559 elif test -n "$PKG_CONFIG"; then
18560    if test -n "$PKG_CONFIG" && \
18561    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
18562  ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
18563  ac_status=$?
18564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18565  test $ac_status = 0; }; then
18566  pkg_cv_DBUS_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
18567else
18568  pkg_failed=yes
18569fi
18570 else
18571    pkg_failed=untried
18572fi
18573if test -n "$DBUS_GTHREAD_LIBS"; then
18574    pkg_cv_DBUS_GTHREAD_LIBS="$DBUS_GTHREAD_LIBS"
18575 elif test -n "$PKG_CONFIG"; then
18576    if test -n "$PKG_CONFIG" && \
18577    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
18578  ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
18579  ac_status=$?
18580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18581  test $ac_status = 0; }; then
18582  pkg_cv_DBUS_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
18583else
18584  pkg_failed=yes
18585fi
18586 else
18587    pkg_failed=untried
18588fi
18589
18590
18591
18592if test $pkg_failed = yes; then
18593
18594if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18595        _pkg_short_errors_supported=yes
18596else
18597        _pkg_short_errors_supported=no
18598fi
18599        if test $_pkg_short_errors_supported = yes; then
18600	        DBUS_GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gthread-2.0" 2>&1`
18601        else
18602	        DBUS_GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors "gthread-2.0" 2>&1`
18603        fi
18604	# Put the nasty error message in config.log where it belongs
18605	echo "$DBUS_GTHREAD_PKG_ERRORS" >&5
18606
18607	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18608$as_echo "no" >&6; }
18609                have_dbus_gthread=no
18610elif test $pkg_failed = untried; then
18611	have_dbus_gthread=no
18612else
18613	DBUS_GTHREAD_CFLAGS=$pkg_cv_DBUS_GTHREAD_CFLAGS
18614	DBUS_GTHREAD_LIBS=$pkg_cv_DBUS_GTHREAD_LIBS
18615        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18616$as_echo "yes" >&6; }
18617	have_dbus_gthread=yes
18618fi
18619
18620
18621
18622
18623
18624
18625    if test x$have_dbus_glib = xyes -a x$have_dbus = xyes -a x$have_dbus_gthread = xyes ; then
18626        saved_CFLAGS=$CFLAGS
18627        saved_LIBS=$LIBS
18628        CFLAGS="$CFLAGS $DBUS_GLIB_CFLAGS"
18629        LIBS="$LIBS $DBUS_GLIB_LIBS"
18630        ac_fn_c_check_func "$LINENO" "dbus_g_bus_get_private" "ac_cv_func_dbus_g_bus_get_private"
18631if test "x$ac_cv_func_dbus_g_bus_get_private" = xyes; then :
18632  atalk_cv_with_dbus=yes
18633else
18634  atalk_cv_with_dbus=no
18635fi
18636
18637        CFLAGS="$saved_CFLAGS"
18638        LIBS="$saved_LIBS"
18639    fi
18640     if test x$atalk_cv_with_dbus = xyes; then
18641  HAVE_DBUS_GLIB_TRUE=
18642  HAVE_DBUS_GLIB_FALSE='#'
18643else
18644  HAVE_DBUS_GLIB_TRUE='#'
18645  HAVE_DBUS_GLIB_FALSE=
18646fi
18647
18648
18649
18650# Check whether --with-dbus-sysconf-dir was given.
18651if test "${with_dbus_sysconf_dir+set}" = set; then :
18652  withval=$with_dbus_sysconf_dir; ac_cv_dbus_sysdir=$withval
18653else
18654  ac_cv_dbus_sysdir='${sysconfdir}/dbus-1/system.d'
18655
18656fi
18657
18658
18659    if test x$atalk_cv_with_dbus = xyes ; then
18660
18661$as_echo "#define HAVE_DBUS_GLIB 1" >>confdefs.h
18662
18663        DBUS_SYS_DIR="$ac_cv_dbus_sysdir"
18664
18665    fi
18666
18667
18668
18669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Filesystem Hierarchy Standard (FHS) compatibility" >&5
18670$as_echo_n "checking whether to use Filesystem Hierarchy Standard (FHS) compatibility... " >&6; }
18671# Check whether --enable-fhs was given.
18672if test "${enable_fhs+set}" = set; then :
18673  enableval=$enable_fhs;
18674	if test "$enableval" = "yes"; then
18675		bindir="/bin"
18676		sbindir="/sbin"
18677		sysconfdir="/etc"
18678		libdir="/lib"
18679		localstatedir="/var"
18680		mandir="/usr/share/man"
18681		uams_path="${libdir}/netatalk"
18682		PKGCONFDIR="${sysconfdir}"
18683		SERVERTEXT="${localstatedir}/netatalk/msg"
18684		use_pam_so=yes
18685
18686$as_echo "#define FHS_COMPATIBILITY 1" >>confdefs.h
18687
18688		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18689$as_echo "yes" >&6; }
18690        atalk_cv_fhs_compat=yes
18691	else
18692		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18693$as_echo "no" >&6; }
18694        atalk_cv_fhs_compat=no
18695	fi
18696
18697else
18698
18699		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18700$as_echo "no" >&6; }
18701        atalk_cv_fhs_compat=no
18702
18703fi
18704
18705
18706
18707    { $as_echo "$as_me:${as_lineno-$LINENO}: checking netatalk lockfile path" >&5
18708$as_echo_n "checking netatalk lockfile path... " >&6; }
18709
18710# Check whether --with-lockfile was given.
18711if test "${with_lockfile+set}" = set; then :
18712  withval=$with_lockfile; ac_cv_netatalk_lock=$withval
18713else
18714  ac_cv_netatalk_lock=""
18715
18716fi
18717
18718    if test -z "$ac_cv_netatalk_lock" ; then
18719        ac_cv_netatalk_lock=/var/spool/locks/netatalk
18720        if test x"$atalk_cv_fhs_compat" = x"yes" ; then
18721            ac_cv_netatalk_lock=/var/run/netatalk.pid
18722        else
18723            case "$host_os" in
18724            *freebsd*)
18725                ac_cv_netatalk_lock=/var/spool/lock/netatalk
18726                ;;
18727            *netbsd*|*openbsd*)
18728                ac_cv_netatalk_lock=/var/run/netatalk.pid
18729                ;;
18730            *linux*)
18731                ac_cv_netatalk_lock=/var/lock/netatalk
18732                ;;
18733            esac
18734        fi
18735    fi
18736
18737cat >>confdefs.h <<_ACEOF
18738#define PATH_NETATALK_LOCK "$ac_cv_netatalk_lock"
18739_ACEOF
18740
18741    PATH_NETATALK_LOCK="$ac_cv_netatalk_lock"
18742
18743    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netatalk_lock" >&5
18744$as_echo "$ac_cv_netatalk_lock" >&6; }
18745
18746
18747
18748  # It's just rude to go over the net to build
18749  XSLTPROC_FLAGS=--nonet
18750  DOCBOOK_ROOT=
18751  XSLTPROC_WORKS=no
18752
18753
18754# Check whether --with-docbook was given.
18755if test "${with_docbook+set}" = set; then :
18756  withval=$with_docbook; DOCBOOK_ROOT=$withval
18757
18758fi
18759
18760
18761  if test -n "$DOCBOOK_ROOT" ; then
18762    # Extract the first word of "xsltproc", so it can be a program name with args.
18763set dummy xsltproc; ac_word=$2
18764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18765$as_echo_n "checking for $ac_word... " >&6; }
18766if ${ac_cv_prog_XSLTPROC+:} false; then :
18767  $as_echo_n "(cached) " >&6
18768else
18769  if test -n "$XSLTPROC"; then
18770  ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
18771else
18772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18773for as_dir in $PATH
18774do
18775  IFS=$as_save_IFS
18776  test -z "$as_dir" && as_dir=.
18777    for ac_exec_ext in '' $ac_executable_extensions; do
18778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18779    ac_cv_prog_XSLTPROC="xsltproc"
18780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18781    break 2
18782  fi
18783done
18784  done
18785IFS=$as_save_IFS
18786
18787fi
18788fi
18789XSLTPROC=$ac_cv_prog_XSLTPROC
18790if test -n "$XSLTPROC"; then
18791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18792$as_echo "$XSLTPROC" >&6; }
18793else
18794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18795$as_echo "no" >&6; }
18796fi
18797
18798
18799    if test -n "$XSLTPROC"; then
18800      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xsltproc works" >&5
18801$as_echo_n "checking whether xsltproc works... " >&6; }
18802      DB_FILE="$DOCBOOK_ROOT/html/docbook.xsl"
18803      $XSLTPROC $XSLTPROC_FLAGS $DB_FILE >/dev/null 2>&1 << END
18804<?xml version="1.0" encoding='ISO-8859-1'?>
18805<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
18806<book id="test">
18807</book>
18808END
18809      if test "$?" = 0; then
18810        XSLTPROC_WORKS=yes
18811      fi
18812      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC_WORKS" >&5
18813$as_echo "$XSLTPROC_WORKS" >&6; }
18814    fi
18815  fi
18816
18817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Docbook documentation" >&5
18818$as_echo_n "checking whether to build Docbook documentation... " >&6; }
18819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC_WORKS" >&5
18820$as_echo "$XSLTPROC_WORKS" >&6; }
18821
18822   if test x"$XSLTPROC_WORKS" = x"yes"; then
18823  HAVE_XSLTPROC_TRUE=
18824  HAVE_XSLTPROC_FALSE='#'
18825else
18826  HAVE_XSLTPROC_TRUE='#'
18827  HAVE_XSLTPROC_FALSE=
18828fi
18829
18830
18831
18832
18833
18834
18835CPPFLAGS="-I\$(top_srcdir)/include -I\$(top_builddir)/include $CPPFLAGS"
18836UAMS_PATH="${uams_path}"
18837
18838
18839
18840
18841
18842 if test x$solaris_module = xyes; then
18843  SOLARIS_MODULE_TRUE=
18844  SOLARIS_MODULE_FALSE='#'
18845else
18846  SOLARIS_MODULE_TRUE='#'
18847  SOLARIS_MODULE_FALSE=
18848fi
18849
18850 if test x$neta_cv_have_libgcrypt = xyes; then
18851  HAVE_LIBGCRYPT_TRUE=
18852  HAVE_LIBGCRYPT_FALSE='#'
18853else
18854  HAVE_LIBGCRYPT_TRUE='#'
18855  HAVE_LIBGCRYPT_FALSE=
18856fi
18857
18858 if test x$neta_cv_have_openssl = xyes; then
18859  HAVE_OPENSSL_TRUE=
18860  HAVE_OPENSSL_FALSE='#'
18861else
18862  HAVE_OPENSSL_TRUE='#'
18863  HAVE_OPENSSL_FALSE=
18864fi
18865
18866 if test x"$with_acl_support" = x"yes"; then
18867  HAVE_ACLS_TRUE=
18868  HAVE_ACLS_FALSE='#'
18869else
18870  HAVE_ACLS_TRUE='#'
18871  HAVE_ACLS_FALSE=
18872fi
18873
18874 if test x"$netatalk_cv_ldap" = x"yes"; then
18875  HAVE_LDAP_TRUE=
18876  HAVE_LDAP_FALSE='#'
18877else
18878  HAVE_LDAP_TRUE='#'
18879  HAVE_LDAP_FALSE=
18880fi
18881
18882 if test x$neta_cv_compile_dhx = xyes; then
18883  USE_DHX_TRUE=
18884  USE_DHX_FALSE='#'
18885else
18886  USE_DHX_TRUE='#'
18887  USE_DHX_FALSE=
18888fi
18889
18890 if test x$neta_cv_compile_dhx2 = xyes; then
18891  USE_DHX2_TRUE=
18892  USE_DHX2_FALSE='#'
18893else
18894  USE_DHX2_TRUE='#'
18895  USE_DHX2_FALSE=
18896fi
18897
18898 if test x$neta_cv_have_openssl = xyes; then
18899  USE_RANDNUM_TRUE=
18900  USE_RANDNUM_FALSE='#'
18901else
18902  USE_RANDNUM_TRUE='#'
18903  USE_RANDNUM_FALSE=
18904fi
18905
18906 if test x$use_pam_so = xyes; then
18907  USE_PAM_SO_TRUE=
18908  USE_PAM_SO_FALSE='#'
18909else
18910  USE_PAM_SO_TRUE='#'
18911  USE_PAM_SO_FALSE=
18912fi
18913
18914 if test x$netatalk_cv_install_pam = xyes; then
18915  USE_PAM_TRUE=
18916  USE_PAM_FALSE='#'
18917else
18918  USE_PAM_TRUE='#'
18919  USE_PAM_FALSE=
18920fi
18921
18922 if test x$compile_pam = xyes; then
18923  BUILD_PAM_TRUE=
18924  BUILD_PAM_FALSE='#'
18925else
18926  BUILD_PAM_TRUE='#'
18927  BUILD_PAM_FALSE=
18928fi
18929
18930 if test x$compile_pgp = xyes; then
18931  USE_PGP_TRUE=
18932  USE_PGP_FALSE='#'
18933else
18934  USE_PGP_TRUE='#'
18935  USE_PGP_FALSE=
18936fi
18937
18938 if test x$neta_cv_have_libgcrypt != xyes && test x$neta_cv_have_openssl != xyes; then
18939  DEFAULT_HOOK_TRUE=
18940  DEFAULT_HOOK_FALSE='#'
18941else
18942  DEFAULT_HOOK_TRUE='#'
18943  DEFAULT_HOOK_FALSE=
18944fi
18945
18946 if test x$bdb_required = xyes; then
18947  USE_BDB_TRUE=
18948  USE_BDB_FALSE='#'
18949else
18950  USE_BDB_TRUE='#'
18951  USE_BDB_FALSE=
18952fi
18953
18954 if test x"$ac_neta_haveatfuncs" = x"yes"; then
18955  HAVE_ATFUNCS_TRUE=
18956  HAVE_ATFUNCS_FALSE='#'
18957else
18958  HAVE_ATFUNCS_TRUE='#'
18959  HAVE_ATFUNCS_FALSE=
18960fi
18961
18962 if test x$shadowpw = xyes; then
18963  USE_SHADOWPW_TRUE=
18964  USE_SHADOWPW_FALSE='#'
18965else
18966  USE_SHADOWPW_TRUE='#'
18967  USE_SHADOWPW_FALSE=
18968fi
18969
18970
18971# Check whether --enable-silent-rules was given.
18972if test "${enable_silent_rules+set}" = set; then :
18973  enableval=$enable_silent_rules;
18974fi
18975
18976case $enable_silent_rules in # (((
18977  yes) AM_DEFAULT_VERBOSITY=0;;
18978   no) AM_DEFAULT_VERBOSITY=1;;
18979    *) AM_DEFAULT_VERBOSITY=0;;
18980esac
18981am_make=${MAKE-make}
18982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18983$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18984if ${am_cv_make_support_nested_variables+:} false; then :
18985  $as_echo_n "(cached) " >&6
18986else
18987  if $as_echo 'TRUE=$(BAR$(V))
18988BAR0=false
18989BAR1=true
18990V=1
18991am__doit:
18992	@$(TRUE)
18993.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18994  am_cv_make_support_nested_variables=yes
18995else
18996  am_cv_make_support_nested_variables=no
18997fi
18998fi
18999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19000$as_echo "$am_cv_make_support_nested_variables" >&6; }
19001if test $am_cv_make_support_nested_variables = yes; then
19002    AM_V='$(V)'
19003  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19004else
19005  AM_V=$AM_DEFAULT_VERBOSITY
19006  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19007fi
19008AM_BACKSLASH='\'
19009
19010
19011ac_config_files="$ac_config_files Makefile bin/Makefile bin/ad/Makefile bin/afppasswd/Makefile bin/cnid/Makefile bin/cnid/cnid2_create bin/megatron/Makefile bin/misc/Makefile bin/uniconv/Makefile config/Makefile config/pam/Makefile contrib/Makefile contrib/macusers/Makefile contrib/macusers/macusers contrib/shell_utils/Makefile contrib/shell_utils/apple_dump contrib/shell_utils/asip-status.pl distrib/Makefile distrib/config/Makefile distrib/config/netatalk-config distrib/initscripts/Makefile distrib/m4/Makefile doc/Makefile doc/html.xsl doc/man.xsl doc/manual/Makefile doc/manual/manual.xml doc/manpages/Makefile doc/manpages/man1/Makefile doc/manpages/man5/Makefile doc/manpages/man8/Makefile etc/Makefile etc/afpd/Makefile etc/cnid_dbd/Makefile etc/netatalk/Makefile etc/uams/Makefile include/Makefile include/atalk/Makefile libatalk/Makefile libatalk/acl/Makefile libatalk/adouble/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/iniparser/Makefile libatalk/tdb/Makefile libatalk/unicode/Makefile libatalk/unicode/charsets/Makefile libatalk/util/Makefile libatalk/vfs/Makefile macros/Makefile man/Makefile man/man1/Makefile man/man1/ad.1 man/man1/afpldaptest.1 man/man1/afppasswd.1 man/man1/afpstats.1 man/man1/apple_dump.1 man/man1/asip-status.pl.1 man/man1/dbd.1 man/man1/macusers.1 man/man1/netatalk-config.1 man/man1/uniconv.1 man/man5/Makefile man/man5/afp.conf.5 man/man5/afp_signature.conf.5 man/man5/afp_voluuid.conf.5 man/man5/extmap.conf.5 man/man8/Makefile man/man8/afpd.8 man/man8/cnid_dbd.8 man/man8/cnid_metad.8 man/man8/netatalk.8 test/Makefile test/afpd/Makefile"
19012
19013ac_config_commands="$ac_config_commands default"
19014
19015cat >confcache <<\_ACEOF
19016# This file is a shell script that caches the results of configure
19017# tests run on this system so they can be shared between configure
19018# scripts and configure runs, see configure's option --config-cache.
19019# It is not useful on other systems.  If it contains results you don't
19020# want to keep, you may remove or edit it.
19021#
19022# config.status only pays attention to the cache file if you give it
19023# the --recheck option to rerun configure.
19024#
19025# `ac_cv_env_foo' variables (set or unset) will be overridden when
19026# loading this file, other *unset* `ac_cv_foo' will be assigned the
19027# following values.
19028
19029_ACEOF
19030
19031# The following way of writing the cache mishandles newlines in values,
19032# but we know of no workaround that is simple, portable, and efficient.
19033# So, we kill variables containing newlines.
19034# Ultrix sh set writes to stderr and can't be redirected directly,
19035# and sets the high bit in the cache file unless we assign to the vars.
19036(
19037  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19038    eval ac_val=\$$ac_var
19039    case $ac_val in #(
19040    *${as_nl}*)
19041      case $ac_var in #(
19042      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19043$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19044      esac
19045      case $ac_var in #(
19046      _ | IFS | as_nl) ;; #(
19047      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19048      *) { eval $ac_var=; unset $ac_var;} ;;
19049      esac ;;
19050    esac
19051  done
19052
19053  (set) 2>&1 |
19054    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19055    *${as_nl}ac_space=\ *)
19056      # `set' does not quote correctly, so add quotes: double-quote
19057      # substitution turns \\\\ into \\, and sed turns \\ into \.
19058      sed -n \
19059	"s/'/'\\\\''/g;
19060	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19061      ;; #(
19062    *)
19063      # `set' quotes correctly as required by POSIX, so do not add quotes.
19064      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19065      ;;
19066    esac |
19067    sort
19068) |
19069  sed '
19070     /^ac_cv_env_/b end
19071     t clear
19072     :clear
19073     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19074     t end
19075     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19076     :end' >>confcache
19077if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19078  if test -w "$cache_file"; then
19079    if test "x$cache_file" != "x/dev/null"; then
19080      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19081$as_echo "$as_me: updating cache $cache_file" >&6;}
19082      if test ! -f "$cache_file" || test -h "$cache_file"; then
19083	cat confcache >"$cache_file"
19084      else
19085        case $cache_file in #(
19086        */* | ?:*)
19087	  mv -f confcache "$cache_file"$$ &&
19088	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19089        *)
19090	  mv -f confcache "$cache_file" ;;
19091	esac
19092      fi
19093    fi
19094  else
19095    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19096$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19097  fi
19098fi
19099rm -f confcache
19100
19101test "x$prefix" = xNONE && prefix=$ac_default_prefix
19102# Let make expand exec_prefix.
19103test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19104
19105DEFS=-DHAVE_CONFIG_H
19106
19107ac_libobjs=
19108ac_ltlibobjs=
19109U=
19110for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19111  # 1. Remove the extension, and $U if already installed.
19112  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19113  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19114  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19115  #    will be set to the directory where LIBOBJS objects are built.
19116  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19117  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19118done
19119LIBOBJS=$ac_libobjs
19120
19121LTLIBOBJS=$ac_ltlibobjs
19122
19123
19124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19125$as_echo_n "checking that generated files are newer than configure... " >&6; }
19126   if test -n "$am_sleep_pid"; then
19127     # Hide warnings about reused PIDs.
19128     wait $am_sleep_pid 2>/dev/null
19129   fi
19130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19131$as_echo "done" >&6; }
19132 if test -n "$EXEEXT"; then
19133  am__EXEEXT_TRUE=
19134  am__EXEEXT_FALSE='#'
19135else
19136  am__EXEEXT_TRUE='#'
19137  am__EXEEXT_FALSE=
19138fi
19139
19140if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19141  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19142Usually this means the macro was only invoked conditionally." "$LINENO" 5
19143fi
19144if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19145  as_fn_error $? "conditional \"AMDEP\" was never defined.
19146Usually this means the macro was only invoked conditionally." "$LINENO" 5
19147fi
19148if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19149  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19150Usually this means the macro was only invoked conditionally." "$LINENO" 5
19151fi
19152
19153if test -z "${RUN_LDCONFIG_TRUE}" && test -z "${RUN_LDCONFIG_FALSE}"; then
19154  as_fn_error $? "conditional \"RUN_LDCONFIG\" was never defined.
19155Usually this means the macro was only invoked conditionally." "$LINENO" 5
19156fi
19157if test -z "${BUILD_DBD_DAEMON_TRUE}" && test -z "${BUILD_DBD_DAEMON_FALSE}"; then
19158  as_fn_error $? "conditional \"BUILD_DBD_DAEMON\" was never defined.
19159Usually this means the macro was only invoked conditionally." "$LINENO" 5
19160fi
19161if test -z "${USE_CDB_BACKEND_TRUE}" && test -z "${USE_CDB_BACKEND_FALSE}"; then
19162  as_fn_error $? "conditional \"USE_CDB_BACKEND\" was never defined.
19163Usually this means the macro was only invoked conditionally." "$LINENO" 5
19164fi
19165if test -z "${USE_LAST_BACKEND_TRUE}" && test -z "${USE_LAST_BACKEND_FALSE}"; then
19166  as_fn_error $? "conditional \"USE_LAST_BACKEND\" was never defined.
19167Usually this means the macro was only invoked conditionally." "$LINENO" 5
19168fi
19169if test -z "${USE_TDB_BACKEND_TRUE}" && test -z "${USE_TDB_BACKEND_FALSE}"; then
19170  as_fn_error $? "conditional \"USE_TDB_BACKEND\" was never defined.
19171Usually this means the macro was only invoked conditionally." "$LINENO" 5
19172fi
19173if test -z "${USE_NETBSD_TRUE}" && test -z "${USE_NETBSD_FALSE}"; then
19174  as_fn_error $? "conditional \"USE_NETBSD\" was never defined.
19175Usually this means the macro was only invoked conditionally." "$LINENO" 5
19176fi
19177if test -z "${USE_REDHAT_SYSV_TRUE}" && test -z "${USE_REDHAT_SYSV_FALSE}"; then
19178  as_fn_error $? "conditional \"USE_REDHAT_SYSV\" was never defined.
19179Usually this means the macro was only invoked conditionally." "$LINENO" 5
19180fi
19181if test -z "${USE_SUSE_SYSV_TRUE}" && test -z "${USE_SUSE_SYSV_FALSE}"; then
19182  as_fn_error $? "conditional \"USE_SUSE_SYSV\" was never defined.
19183Usually this means the macro was only invoked conditionally." "$LINENO" 5
19184fi
19185if test -z "${USE_SOLARIS_TRUE}" && test -z "${USE_SOLARIS_FALSE}"; then
19186  as_fn_error $? "conditional \"USE_SOLARIS\" was never defined.
19187Usually this means the macro was only invoked conditionally." "$LINENO" 5
19188fi
19189if test -z "${USE_GENTOO_TRUE}" && test -z "${USE_GENTOO_FALSE}"; then
19190  as_fn_error $? "conditional \"USE_GENTOO\" was never defined.
19191Usually this means the macro was only invoked conditionally." "$LINENO" 5
19192fi
19193if test -z "${USE_DEBIAN_TRUE}" && test -z "${USE_DEBIAN_FALSE}"; then
19194  as_fn_error $? "conditional \"USE_DEBIAN\" was never defined.
19195Usually this means the macro was only invoked conditionally." "$LINENO" 5
19196fi
19197if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
19198  as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
19199Usually this means the macro was only invoked conditionally." "$LINENO" 5
19200fi
19201if test -z "${USE_UNDEF_TRUE}" && test -z "${USE_UNDEF_FALSE}"; then
19202  as_fn_error $? "conditional \"USE_UNDEF\" was never defined.
19203Usually this means the macro was only invoked conditionally." "$LINENO" 5
19204fi
19205if test -z "${USE_GSSAPI_TRUE}" && test -z "${USE_GSSAPI_FALSE}"; then
19206  as_fn_error $? "conditional \"USE_GSSAPI\" was never defined.
19207Usually this means the macro was only invoked conditionally." "$LINENO" 5
19208fi
19209if test -z "${USE_BUILTIN_LIBEVENT_TRUE}" && test -z "${USE_BUILTIN_LIBEVENT_FALSE}"; then
19210  as_fn_error $? "conditional \"USE_BUILTIN_LIBEVENT\" was never defined.
19211Usually this means the macro was only invoked conditionally." "$LINENO" 5
19212fi
19213if test -z "${DEVELOPER_TRUE}" && test -z "${DEVELOPER_FALSE}"; then
19214  as_fn_error $? "conditional \"DEVELOPER\" was never defined.
19215Usually this means the macro was only invoked conditionally." "$LINENO" 5
19216fi
19217if test -z "${WITH_DTRACE_TRUE}" && test -z "${WITH_DTRACE_FALSE}"; then
19218  as_fn_error $? "conditional \"WITH_DTRACE\" was never defined.
19219Usually this means the macro was only invoked conditionally." "$LINENO" 5
19220fi
19221if test -z "${HAVE_DBUS_GLIB_TRUE}" && test -z "${HAVE_DBUS_GLIB_FALSE}"; then
19222  as_fn_error $? "conditional \"HAVE_DBUS_GLIB\" was never defined.
19223Usually this means the macro was only invoked conditionally." "$LINENO" 5
19224fi
19225if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
19226  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
19227Usually this means the macro was only invoked conditionally." "$LINENO" 5
19228fi
19229if test -z "${SOLARIS_MODULE_TRUE}" && test -z "${SOLARIS_MODULE_FALSE}"; then
19230  as_fn_error $? "conditional \"SOLARIS_MODULE\" was never defined.
19231Usually this means the macro was only invoked conditionally." "$LINENO" 5
19232fi
19233if test -z "${HAVE_LIBGCRYPT_TRUE}" && test -z "${HAVE_LIBGCRYPT_FALSE}"; then
19234  as_fn_error $? "conditional \"HAVE_LIBGCRYPT\" was never defined.
19235Usually this means the macro was only invoked conditionally." "$LINENO" 5
19236fi
19237if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
19238  as_fn_error $? "conditional \"HAVE_OPENSSL\" was never defined.
19239Usually this means the macro was only invoked conditionally." "$LINENO" 5
19240fi
19241if test -z "${HAVE_ACLS_TRUE}" && test -z "${HAVE_ACLS_FALSE}"; then
19242  as_fn_error $? "conditional \"HAVE_ACLS\" was never defined.
19243Usually this means the macro was only invoked conditionally." "$LINENO" 5
19244fi
19245if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
19246  as_fn_error $? "conditional \"HAVE_LDAP\" was never defined.
19247Usually this means the macro was only invoked conditionally." "$LINENO" 5
19248fi
19249if test -z "${USE_DHX_TRUE}" && test -z "${USE_DHX_FALSE}"; then
19250  as_fn_error $? "conditional \"USE_DHX\" was never defined.
19251Usually this means the macro was only invoked conditionally." "$LINENO" 5
19252fi
19253if test -z "${USE_DHX2_TRUE}" && test -z "${USE_DHX2_FALSE}"; then
19254  as_fn_error $? "conditional \"USE_DHX2\" was never defined.
19255Usually this means the macro was only invoked conditionally." "$LINENO" 5
19256fi
19257if test -z "${USE_RANDNUM_TRUE}" && test -z "${USE_RANDNUM_FALSE}"; then
19258  as_fn_error $? "conditional \"USE_RANDNUM\" was never defined.
19259Usually this means the macro was only invoked conditionally." "$LINENO" 5
19260fi
19261if test -z "${USE_PAM_SO_TRUE}" && test -z "${USE_PAM_SO_FALSE}"; then
19262  as_fn_error $? "conditional \"USE_PAM_SO\" was never defined.
19263Usually this means the macro was only invoked conditionally." "$LINENO" 5
19264fi
19265if test -z "${USE_PAM_TRUE}" && test -z "${USE_PAM_FALSE}"; then
19266  as_fn_error $? "conditional \"USE_PAM\" was never defined.
19267Usually this means the macro was only invoked conditionally." "$LINENO" 5
19268fi
19269if test -z "${BUILD_PAM_TRUE}" && test -z "${BUILD_PAM_FALSE}"; then
19270  as_fn_error $? "conditional \"BUILD_PAM\" was never defined.
19271Usually this means the macro was only invoked conditionally." "$LINENO" 5
19272fi
19273if test -z "${USE_PGP_TRUE}" && test -z "${USE_PGP_FALSE}"; then
19274  as_fn_error $? "conditional \"USE_PGP\" was never defined.
19275Usually this means the macro was only invoked conditionally." "$LINENO" 5
19276fi
19277if test -z "${DEFAULT_HOOK_TRUE}" && test -z "${DEFAULT_HOOK_FALSE}"; then
19278  as_fn_error $? "conditional \"DEFAULT_HOOK\" was never defined.
19279Usually this means the macro was only invoked conditionally." "$LINENO" 5
19280fi
19281if test -z "${USE_BDB_TRUE}" && test -z "${USE_BDB_FALSE}"; then
19282  as_fn_error $? "conditional \"USE_BDB\" was never defined.
19283Usually this means the macro was only invoked conditionally." "$LINENO" 5
19284fi
19285if test -z "${HAVE_ATFUNCS_TRUE}" && test -z "${HAVE_ATFUNCS_FALSE}"; then
19286  as_fn_error $? "conditional \"HAVE_ATFUNCS\" was never defined.
19287Usually this means the macro was only invoked conditionally." "$LINENO" 5
19288fi
19289if test -z "${USE_SHADOWPW_TRUE}" && test -z "${USE_SHADOWPW_FALSE}"; then
19290  as_fn_error $? "conditional \"USE_SHADOWPW\" was never defined.
19291Usually this means the macro was only invoked conditionally." "$LINENO" 5
19292fi
19293
19294: "${CONFIG_STATUS=./config.status}"
19295ac_write_fail=0
19296ac_clean_files_save=$ac_clean_files
19297ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19298{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19299$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19300as_write_fail=0
19301cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19302#! $SHELL
19303# Generated by $as_me.
19304# Run this file to recreate the current configuration.
19305# Compiler output produced by configure, useful for debugging
19306# configure, is in config.log if it exists.
19307
19308debug=false
19309ac_cs_recheck=false
19310ac_cs_silent=false
19311
19312SHELL=\${CONFIG_SHELL-$SHELL}
19313export SHELL
19314_ASEOF
19315cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19316## -------------------- ##
19317## M4sh Initialization. ##
19318## -------------------- ##
19319
19320# Be more Bourne compatible
19321DUALCASE=1; export DUALCASE # for MKS sh
19322if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19323  emulate sh
19324  NULLCMD=:
19325  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19326  # is contrary to our usage.  Disable this feature.
19327  alias -g '${1+"$@"}'='"$@"'
19328  setopt NO_GLOB_SUBST
19329else
19330  case `(set -o) 2>/dev/null` in #(
19331  *posix*) :
19332    set -o posix ;; #(
19333  *) :
19334     ;;
19335esac
19336fi
19337
19338
19339as_nl='
19340'
19341export as_nl
19342# Printing a long string crashes Solaris 7 /usr/bin/printf.
19343as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19344as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19345as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19346# Prefer a ksh shell builtin over an external printf program on Solaris,
19347# but without wasting forks for bash or zsh.
19348if test -z "$BASH_VERSION$ZSH_VERSION" \
19349    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19350  as_echo='print -r --'
19351  as_echo_n='print -rn --'
19352elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19353  as_echo='printf %s\n'
19354  as_echo_n='printf %s'
19355else
19356  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19357    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19358    as_echo_n='/usr/ucb/echo -n'
19359  else
19360    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19361    as_echo_n_body='eval
19362      arg=$1;
19363      case $arg in #(
19364      *"$as_nl"*)
19365	expr "X$arg" : "X\\(.*\\)$as_nl";
19366	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19367      esac;
19368      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19369    '
19370    export as_echo_n_body
19371    as_echo_n='sh -c $as_echo_n_body as_echo'
19372  fi
19373  export as_echo_body
19374  as_echo='sh -c $as_echo_body as_echo'
19375fi
19376
19377# The user is always right.
19378if test "${PATH_SEPARATOR+set}" != set; then
19379  PATH_SEPARATOR=:
19380  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19381    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19382      PATH_SEPARATOR=';'
19383  }
19384fi
19385
19386
19387# IFS
19388# We need space, tab and new line, in precisely that order.  Quoting is
19389# there to prevent editors from complaining about space-tab.
19390# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19391# splitting by setting IFS to empty value.)
19392IFS=" ""	$as_nl"
19393
19394# Find who we are.  Look in the path if we contain no directory separator.
19395as_myself=
19396case $0 in #((
19397  *[\\/]* ) as_myself=$0 ;;
19398  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19399for as_dir in $PATH
19400do
19401  IFS=$as_save_IFS
19402  test -z "$as_dir" && as_dir=.
19403    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19404  done
19405IFS=$as_save_IFS
19406
19407     ;;
19408esac
19409# We did not find ourselves, most probably we were run as `sh COMMAND'
19410# in which case we are not to be found in the path.
19411if test "x$as_myself" = x; then
19412  as_myself=$0
19413fi
19414if test ! -f "$as_myself"; then
19415  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19416  exit 1
19417fi
19418
19419# Unset variables that we do not need and which cause bugs (e.g. in
19420# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19421# suppresses any "Segmentation fault" message there.  '((' could
19422# trigger a bug in pdksh 5.2.14.
19423for as_var in BASH_ENV ENV MAIL MAILPATH
19424do eval test x\${$as_var+set} = xset \
19425  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19426done
19427PS1='$ '
19428PS2='> '
19429PS4='+ '
19430
19431# NLS nuisances.
19432LC_ALL=C
19433export LC_ALL
19434LANGUAGE=C
19435export LANGUAGE
19436
19437# CDPATH.
19438(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19439
19440
19441# as_fn_error STATUS ERROR [LINENO LOG_FD]
19442# ----------------------------------------
19443# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19444# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19445# script with STATUS, using 1 if that was 0.
19446as_fn_error ()
19447{
19448  as_status=$1; test $as_status -eq 0 && as_status=1
19449  if test "$4"; then
19450    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19451    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19452  fi
19453  $as_echo "$as_me: error: $2" >&2
19454  as_fn_exit $as_status
19455} # as_fn_error
19456
19457
19458# as_fn_set_status STATUS
19459# -----------------------
19460# Set $? to STATUS, without forking.
19461as_fn_set_status ()
19462{
19463  return $1
19464} # as_fn_set_status
19465
19466# as_fn_exit STATUS
19467# -----------------
19468# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19469as_fn_exit ()
19470{
19471  set +e
19472  as_fn_set_status $1
19473  exit $1
19474} # as_fn_exit
19475
19476# as_fn_unset VAR
19477# ---------------
19478# Portably unset VAR.
19479as_fn_unset ()
19480{
19481  { eval $1=; unset $1;}
19482}
19483as_unset=as_fn_unset
19484# as_fn_append VAR VALUE
19485# ----------------------
19486# Append the text in VALUE to the end of the definition contained in VAR. Take
19487# advantage of any shell optimizations that allow amortized linear growth over
19488# repeated appends, instead of the typical quadratic growth present in naive
19489# implementations.
19490if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19491  eval 'as_fn_append ()
19492  {
19493    eval $1+=\$2
19494  }'
19495else
19496  as_fn_append ()
19497  {
19498    eval $1=\$$1\$2
19499  }
19500fi # as_fn_append
19501
19502# as_fn_arith ARG...
19503# ------------------
19504# Perform arithmetic evaluation on the ARGs, and store the result in the
19505# global $as_val. Take advantage of shells that can avoid forks. The arguments
19506# must be portable across $(()) and expr.
19507if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19508  eval 'as_fn_arith ()
19509  {
19510    as_val=$(( $* ))
19511  }'
19512else
19513  as_fn_arith ()
19514  {
19515    as_val=`expr "$@" || test $? -eq 1`
19516  }
19517fi # as_fn_arith
19518
19519
19520if expr a : '\(a\)' >/dev/null 2>&1 &&
19521   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19522  as_expr=expr
19523else
19524  as_expr=false
19525fi
19526
19527if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19528  as_basename=basename
19529else
19530  as_basename=false
19531fi
19532
19533if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19534  as_dirname=dirname
19535else
19536  as_dirname=false
19537fi
19538
19539as_me=`$as_basename -- "$0" ||
19540$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19541	 X"$0" : 'X\(//\)$' \| \
19542	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19543$as_echo X/"$0" |
19544    sed '/^.*\/\([^/][^/]*\)\/*$/{
19545	    s//\1/
19546	    q
19547	  }
19548	  /^X\/\(\/\/\)$/{
19549	    s//\1/
19550	    q
19551	  }
19552	  /^X\/\(\/\).*/{
19553	    s//\1/
19554	    q
19555	  }
19556	  s/.*/./; q'`
19557
19558# Avoid depending upon Character Ranges.
19559as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19560as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19561as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19562as_cr_digits='0123456789'
19563as_cr_alnum=$as_cr_Letters$as_cr_digits
19564
19565ECHO_C= ECHO_N= ECHO_T=
19566case `echo -n x` in #(((((
19567-n*)
19568  case `echo 'xy\c'` in
19569  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19570  xy)  ECHO_C='\c';;
19571  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19572       ECHO_T='	';;
19573  esac;;
19574*)
19575  ECHO_N='-n';;
19576esac
19577
19578rm -f conf$$ conf$$.exe conf$$.file
19579if test -d conf$$.dir; then
19580  rm -f conf$$.dir/conf$$.file
19581else
19582  rm -f conf$$.dir
19583  mkdir conf$$.dir 2>/dev/null
19584fi
19585if (echo >conf$$.file) 2>/dev/null; then
19586  if ln -s conf$$.file conf$$ 2>/dev/null; then
19587    as_ln_s='ln -s'
19588    # ... but there are two gotchas:
19589    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19590    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19591    # In both cases, we have to default to `cp -pR'.
19592    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19593      as_ln_s='cp -pR'
19594  elif ln conf$$.file conf$$ 2>/dev/null; then
19595    as_ln_s=ln
19596  else
19597    as_ln_s='cp -pR'
19598  fi
19599else
19600  as_ln_s='cp -pR'
19601fi
19602rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19603rmdir conf$$.dir 2>/dev/null
19604
19605
19606# as_fn_mkdir_p
19607# -------------
19608# Create "$as_dir" as a directory, including parents if necessary.
19609as_fn_mkdir_p ()
19610{
19611
19612  case $as_dir in #(
19613  -*) as_dir=./$as_dir;;
19614  esac
19615  test -d "$as_dir" || eval $as_mkdir_p || {
19616    as_dirs=
19617    while :; do
19618      case $as_dir in #(
19619      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19620      *) as_qdir=$as_dir;;
19621      esac
19622      as_dirs="'$as_qdir' $as_dirs"
19623      as_dir=`$as_dirname -- "$as_dir" ||
19624$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19625	 X"$as_dir" : 'X\(//\)[^/]' \| \
19626	 X"$as_dir" : 'X\(//\)$' \| \
19627	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19628$as_echo X"$as_dir" |
19629    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19630	    s//\1/
19631	    q
19632	  }
19633	  /^X\(\/\/\)[^/].*/{
19634	    s//\1/
19635	    q
19636	  }
19637	  /^X\(\/\/\)$/{
19638	    s//\1/
19639	    q
19640	  }
19641	  /^X\(\/\).*/{
19642	    s//\1/
19643	    q
19644	  }
19645	  s/.*/./; q'`
19646      test -d "$as_dir" && break
19647    done
19648    test -z "$as_dirs" || eval "mkdir $as_dirs"
19649  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19650
19651
19652} # as_fn_mkdir_p
19653if mkdir -p . 2>/dev/null; then
19654  as_mkdir_p='mkdir -p "$as_dir"'
19655else
19656  test -d ./-p && rmdir ./-p
19657  as_mkdir_p=false
19658fi
19659
19660
19661# as_fn_executable_p FILE
19662# -----------------------
19663# Test if FILE is an executable regular file.
19664as_fn_executable_p ()
19665{
19666  test -f "$1" && test -x "$1"
19667} # as_fn_executable_p
19668as_test_x='test -x'
19669as_executable_p=as_fn_executable_p
19670
19671# Sed expression to map a string onto a valid CPP name.
19672as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19673
19674# Sed expression to map a string onto a valid variable name.
19675as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19676
19677
19678exec 6>&1
19679## ----------------------------------- ##
19680## Main body of $CONFIG_STATUS script. ##
19681## ----------------------------------- ##
19682_ASEOF
19683test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19684
19685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19686# Save the log message, to keep $0 and so on meaningful, and to
19687# report actual input values of CONFIG_FILES etc. instead of their
19688# values after options handling.
19689ac_log="
19690This file was extended by $as_me, which was
19691generated by GNU Autoconf 2.69.  Invocation command line was
19692
19693  CONFIG_FILES    = $CONFIG_FILES
19694  CONFIG_HEADERS  = $CONFIG_HEADERS
19695  CONFIG_LINKS    = $CONFIG_LINKS
19696  CONFIG_COMMANDS = $CONFIG_COMMANDS
19697  $ $0 $@
19698
19699on `(hostname || uname -n) 2>/dev/null | sed 1q`
19700"
19701
19702_ACEOF
19703
19704case $ac_config_files in *"
19705"*) set x $ac_config_files; shift; ac_config_files=$*;;
19706esac
19707
19708case $ac_config_headers in *"
19709"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19710esac
19711
19712
19713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19714# Files that config.status was made for.
19715config_files="$ac_config_files"
19716config_headers="$ac_config_headers"
19717config_commands="$ac_config_commands"
19718
19719_ACEOF
19720
19721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19722ac_cs_usage="\
19723\`$as_me' instantiates files and other configuration actions
19724from templates according to the current configuration.  Unless the files
19725and actions are specified as TAGs, all are instantiated by default.
19726
19727Usage: $0 [OPTION]... [TAG]...
19728
19729  -h, --help       print this help, then exit
19730  -V, --version    print version number and configuration settings, then exit
19731      --config     print configuration, then exit
19732  -q, --quiet, --silent
19733                   do not print progress messages
19734  -d, --debug      don't remove temporary files
19735      --recheck    update $as_me by reconfiguring in the same conditions
19736      --file=FILE[:TEMPLATE]
19737                   instantiate the configuration file FILE
19738      --header=FILE[:TEMPLATE]
19739                   instantiate the configuration header FILE
19740
19741Configuration files:
19742$config_files
19743
19744Configuration headers:
19745$config_headers
19746
19747Configuration commands:
19748$config_commands
19749
19750Report bugs to the package provider."
19751
19752_ACEOF
19753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19754ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19755ac_cs_version="\\
19756config.status
19757configured by $0, generated by GNU Autoconf 2.69,
19758  with options \\"\$ac_cs_config\\"
19759
19760Copyright (C) 2012 Free Software Foundation, Inc.
19761This config.status script is free software; the Free Software Foundation
19762gives unlimited permission to copy, distribute and modify it."
19763
19764ac_pwd='$ac_pwd'
19765srcdir='$srcdir'
19766INSTALL='$INSTALL'
19767MKDIR_P='$MKDIR_P'
19768AWK='$AWK'
19769test -n "\$AWK" || AWK=awk
19770_ACEOF
19771
19772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19773# The default lists apply if the user does not specify any file.
19774ac_need_defaults=:
19775while test $# != 0
19776do
19777  case $1 in
19778  --*=?*)
19779    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19780    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19781    ac_shift=:
19782    ;;
19783  --*=)
19784    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19785    ac_optarg=
19786    ac_shift=:
19787    ;;
19788  *)
19789    ac_option=$1
19790    ac_optarg=$2
19791    ac_shift=shift
19792    ;;
19793  esac
19794
19795  case $ac_option in
19796  # Handling of the options.
19797  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19798    ac_cs_recheck=: ;;
19799  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19800    $as_echo "$ac_cs_version"; exit ;;
19801  --config | --confi | --conf | --con | --co | --c )
19802    $as_echo "$ac_cs_config"; exit ;;
19803  --debug | --debu | --deb | --de | --d | -d )
19804    debug=: ;;
19805  --file | --fil | --fi | --f )
19806    $ac_shift
19807    case $ac_optarg in
19808    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19809    '') as_fn_error $? "missing file argument" ;;
19810    esac
19811    as_fn_append CONFIG_FILES " '$ac_optarg'"
19812    ac_need_defaults=false;;
19813  --header | --heade | --head | --hea )
19814    $ac_shift
19815    case $ac_optarg in
19816    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19817    esac
19818    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19819    ac_need_defaults=false;;
19820  --he | --h)
19821    # Conflict between --help and --header
19822    as_fn_error $? "ambiguous option: \`$1'
19823Try \`$0 --help' for more information.";;
19824  --help | --hel | -h )
19825    $as_echo "$ac_cs_usage"; exit ;;
19826  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19827  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19828    ac_cs_silent=: ;;
19829
19830  # This is an error.
19831  -*) as_fn_error $? "unrecognized option: \`$1'
19832Try \`$0 --help' for more information." ;;
19833
19834  *) as_fn_append ac_config_targets " $1"
19835     ac_need_defaults=false ;;
19836
19837  esac
19838  shift
19839done
19840
19841ac_configure_extra_args=
19842
19843if $ac_cs_silent; then
19844  exec 6>/dev/null
19845  ac_configure_extra_args="$ac_configure_extra_args --silent"
19846fi
19847
19848_ACEOF
19849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19850if \$ac_cs_recheck; then
19851  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19852  shift
19853  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19854  CONFIG_SHELL='$SHELL'
19855  export CONFIG_SHELL
19856  exec "\$@"
19857fi
19858
19859_ACEOF
19860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19861exec 5>>config.log
19862{
19863  echo
19864  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19865## Running $as_me. ##
19866_ASBOX
19867  $as_echo "$ac_log"
19868} >&5
19869
19870_ACEOF
19871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19872#
19873# INIT-COMMANDS
19874#
19875AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19876
19877
19878# The HP-UX ksh and POSIX shell print the target directory to stdout
19879# if CDPATH is set.
19880(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19881
19882sed_quote_subst='$sed_quote_subst'
19883double_quote_subst='$double_quote_subst'
19884delay_variable_subst='$delay_variable_subst'
19885macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19886macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19887enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19888enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19889pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19890enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19891SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19892ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19893host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19894host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19895host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19896build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19897build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19898build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19899SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19900Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19901GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19902EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19903FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19904LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19905NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19906LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19907max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19908ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19909exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19910lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19911lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19912lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19913lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19914lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19915reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19916reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19917OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19918deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19919file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19920file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19921want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19922DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19923sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19924AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19925AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19926archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19927STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19928RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19929old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19930old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19931old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19932lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19933CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19934CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19935compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19936GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19937lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19938lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19939lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19940lt_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"`'
19941nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19942lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19943objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19944MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19945lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19946lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19947lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19948lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19949lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19950need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19951MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19952DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19953NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19954LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19955OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19956OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19957libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19958shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19959extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19960archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19961enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19962export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19963whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19964compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19965old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19966old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19967archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19968archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19969module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19970module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19971with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19972allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19973no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19974hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19975hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19976hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19977hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19978hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19979hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19980hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19981hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19982inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19983link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19984always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19985export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19986exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19987include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19988prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19989postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19990file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19991variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19992need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19993need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19994version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19995runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19996shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19997shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19998libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19999library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20000soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20001install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20002postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20003postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20004finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20005finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20006hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20007sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20008sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20009hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20010enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20011enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20012enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20013old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20014striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20015
20016LTCC='$LTCC'
20017LTCFLAGS='$LTCFLAGS'
20018compiler='$compiler_DEFAULT'
20019
20020# A function that is used when there is no print builtin or printf.
20021func_fallback_echo ()
20022{
20023  eval 'cat <<_LTECHO_EOF
20024\$1
20025_LTECHO_EOF'
20026}
20027
20028# Quote evaled strings.
20029for var in SHELL \
20030ECHO \
20031SED \
20032GREP \
20033EGREP \
20034FGREP \
20035LD \
20036NM \
20037LN_S \
20038lt_SP2NL \
20039lt_NL2SP \
20040reload_flag \
20041OBJDUMP \
20042deplibs_check_method \
20043file_magic_cmd \
20044file_magic_glob \
20045want_nocaseglob \
20046DLLTOOL \
20047sharedlib_from_linklib_cmd \
20048AR \
20049AR_FLAGS \
20050archiver_list_spec \
20051STRIP \
20052RANLIB \
20053CC \
20054CFLAGS \
20055compiler \
20056lt_cv_sys_global_symbol_pipe \
20057lt_cv_sys_global_symbol_to_cdecl \
20058lt_cv_sys_global_symbol_to_c_name_address \
20059lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20060nm_file_list_spec \
20061lt_prog_compiler_no_builtin_flag \
20062lt_prog_compiler_pic \
20063lt_prog_compiler_wl \
20064lt_prog_compiler_static \
20065lt_cv_prog_compiler_c_o \
20066need_locks \
20067MANIFEST_TOOL \
20068DSYMUTIL \
20069NMEDIT \
20070LIPO \
20071OTOOL \
20072OTOOL64 \
20073shrext_cmds \
20074export_dynamic_flag_spec \
20075whole_archive_flag_spec \
20076compiler_needs_object \
20077with_gnu_ld \
20078allow_undefined_flag \
20079no_undefined_flag \
20080hardcode_libdir_flag_spec \
20081hardcode_libdir_flag_spec_ld \
20082hardcode_libdir_separator \
20083exclude_expsyms \
20084include_expsyms \
20085file_list_spec \
20086variables_saved_for_relink \
20087libname_spec \
20088library_names_spec \
20089soname_spec \
20090install_override_mode \
20091finish_eval \
20092old_striplib \
20093striplib; do
20094    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20095    *[\\\\\\\`\\"\\\$]*)
20096      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20097      ;;
20098    *)
20099      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20100      ;;
20101    esac
20102done
20103
20104# Double-quote double-evaled strings.
20105for var in reload_cmds \
20106old_postinstall_cmds \
20107old_postuninstall_cmds \
20108old_archive_cmds \
20109extract_expsyms_cmds \
20110old_archive_from_new_cmds \
20111old_archive_from_expsyms_cmds \
20112archive_cmds \
20113archive_expsym_cmds \
20114module_cmds \
20115module_expsym_cmds \
20116export_symbols_cmds \
20117prelink_cmds \
20118postlink_cmds \
20119postinstall_cmds \
20120postuninstall_cmds \
20121finish_cmds \
20122sys_lib_search_path_spec \
20123sys_lib_dlsearch_path_spec; do
20124    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20125    *[\\\\\\\`\\"\\\$]*)
20126      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20127      ;;
20128    *)
20129      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20130      ;;
20131    esac
20132done
20133
20134ac_aux_dir='$ac_aux_dir'
20135xsi_shell='$xsi_shell'
20136lt_shell_append='$lt_shell_append'
20137
20138# See if we are running on zsh, and set the options which allow our
20139# commands through without removal of \ escapes INIT.
20140if test -n "\${ZSH_VERSION+set}" ; then
20141   setopt NO_GLOB_SUBST
20142fi
20143
20144
20145    PACKAGE='$PACKAGE'
20146    VERSION='$VERSION'
20147    TIMESTAMP='$TIMESTAMP'
20148    RM='$RM'
20149    ofile='$ofile'
20150
20151
20152
20153
20154_ACEOF
20155
20156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20157
20158# Handling of arguments.
20159for ac_config_target in $ac_config_targets
20160do
20161  case $ac_config_target in
20162    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20163    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20164    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20165    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20166    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
20167    "bin/ad/Makefile") CONFIG_FILES="$CONFIG_FILES bin/ad/Makefile" ;;
20168    "bin/afppasswd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/afppasswd/Makefile" ;;
20169    "bin/cnid/Makefile") CONFIG_FILES="$CONFIG_FILES bin/cnid/Makefile" ;;
20170    "bin/cnid/cnid2_create") CONFIG_FILES="$CONFIG_FILES bin/cnid/cnid2_create" ;;
20171    "bin/megatron/Makefile") CONFIG_FILES="$CONFIG_FILES bin/megatron/Makefile" ;;
20172    "bin/misc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/misc/Makefile" ;;
20173    "bin/uniconv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/uniconv/Makefile" ;;
20174    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
20175    "config/pam/Makefile") CONFIG_FILES="$CONFIG_FILES config/pam/Makefile" ;;
20176    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
20177    "contrib/macusers/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/macusers/Makefile" ;;
20178    "contrib/macusers/macusers") CONFIG_FILES="$CONFIG_FILES contrib/macusers/macusers" ;;
20179    "contrib/shell_utils/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/Makefile" ;;
20180    "contrib/shell_utils/apple_dump") CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/apple_dump" ;;
20181    "contrib/shell_utils/asip-status.pl") CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/asip-status.pl" ;;
20182    "distrib/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
20183    "distrib/config/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/config/Makefile" ;;
20184    "distrib/config/netatalk-config") CONFIG_FILES="$CONFIG_FILES distrib/config/netatalk-config" ;;
20185    "distrib/initscripts/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/initscripts/Makefile" ;;
20186    "distrib/m4/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/m4/Makefile" ;;
20187    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20188    "doc/html.xsl") CONFIG_FILES="$CONFIG_FILES doc/html.xsl" ;;
20189    "doc/man.xsl") CONFIG_FILES="$CONFIG_FILES doc/man.xsl" ;;
20190    "doc/manual/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manual/Makefile" ;;
20191    "doc/manual/manual.xml") CONFIG_FILES="$CONFIG_FILES doc/manual/manual.xml" ;;
20192    "doc/manpages/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manpages/Makefile" ;;
20193    "doc/manpages/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manpages/man1/Makefile" ;;
20194    "doc/manpages/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manpages/man5/Makefile" ;;
20195    "doc/manpages/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manpages/man8/Makefile" ;;
20196    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
20197    "etc/afpd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/afpd/Makefile" ;;
20198    "etc/cnid_dbd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/cnid_dbd/Makefile" ;;
20199    "etc/netatalk/Makefile") CONFIG_FILES="$CONFIG_FILES etc/netatalk/Makefile" ;;
20200    "etc/uams/Makefile") CONFIG_FILES="$CONFIG_FILES etc/uams/Makefile" ;;
20201    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20202    "include/atalk/Makefile") CONFIG_FILES="$CONFIG_FILES include/atalk/Makefile" ;;
20203    "libatalk/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/Makefile" ;;
20204    "libatalk/acl/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/acl/Makefile" ;;
20205    "libatalk/adouble/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/adouble/Makefile" ;;
20206    "libatalk/bstring/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/bstring/Makefile" ;;
20207    "libatalk/cnid/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/cnid/Makefile" ;;
20208    "libatalk/cnid/cdb/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/cnid/cdb/Makefile" ;;
20209    "libatalk/cnid/last/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/cnid/last/Makefile" ;;
20210    "libatalk/cnid/dbd/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/cnid/dbd/Makefile" ;;
20211    "libatalk/cnid/tdb/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/cnid/tdb/Makefile" ;;
20212    "libatalk/compat/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/compat/Makefile" ;;
20213    "libatalk/dsi/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/dsi/Makefile" ;;
20214    "libatalk/iniparser/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/iniparser/Makefile" ;;
20215    "libatalk/tdb/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/tdb/Makefile" ;;
20216    "libatalk/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/unicode/Makefile" ;;
20217    "libatalk/unicode/charsets/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/unicode/charsets/Makefile" ;;
20218    "libatalk/util/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/util/Makefile" ;;
20219    "libatalk/vfs/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/vfs/Makefile" ;;
20220    "macros/Makefile") CONFIG_FILES="$CONFIG_FILES macros/Makefile" ;;
20221    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20222    "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
20223    "man/man1/ad.1") CONFIG_FILES="$CONFIG_FILES man/man1/ad.1" ;;
20224    "man/man1/afpldaptest.1") CONFIG_FILES="$CONFIG_FILES man/man1/afpldaptest.1" ;;
20225    "man/man1/afppasswd.1") CONFIG_FILES="$CONFIG_FILES man/man1/afppasswd.1" ;;
20226    "man/man1/afpstats.1") CONFIG_FILES="$CONFIG_FILES man/man1/afpstats.1" ;;
20227    "man/man1/apple_dump.1") CONFIG_FILES="$CONFIG_FILES man/man1/apple_dump.1" ;;
20228    "man/man1/asip-status.pl.1") CONFIG_FILES="$CONFIG_FILES man/man1/asip-status.pl.1" ;;
20229    "man/man1/dbd.1") CONFIG_FILES="$CONFIG_FILES man/man1/dbd.1" ;;
20230    "man/man1/macusers.1") CONFIG_FILES="$CONFIG_FILES man/man1/macusers.1" ;;
20231    "man/man1/netatalk-config.1") CONFIG_FILES="$CONFIG_FILES man/man1/netatalk-config.1" ;;
20232    "man/man1/uniconv.1") CONFIG_FILES="$CONFIG_FILES man/man1/uniconv.1" ;;
20233    "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
20234    "man/man5/afp.conf.5") CONFIG_FILES="$CONFIG_FILES man/man5/afp.conf.5" ;;
20235    "man/man5/afp_signature.conf.5") CONFIG_FILES="$CONFIG_FILES man/man5/afp_signature.conf.5" ;;
20236    "man/man5/afp_voluuid.conf.5") CONFIG_FILES="$CONFIG_FILES man/man5/afp_voluuid.conf.5" ;;
20237    "man/man5/extmap.conf.5") CONFIG_FILES="$CONFIG_FILES man/man5/extmap.conf.5" ;;
20238    "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
20239    "man/man8/afpd.8") CONFIG_FILES="$CONFIG_FILES man/man8/afpd.8" ;;
20240    "man/man8/cnid_dbd.8") CONFIG_FILES="$CONFIG_FILES man/man8/cnid_dbd.8" ;;
20241    "man/man8/cnid_metad.8") CONFIG_FILES="$CONFIG_FILES man/man8/cnid_metad.8" ;;
20242    "man/man8/netatalk.8") CONFIG_FILES="$CONFIG_FILES man/man8/netatalk.8" ;;
20243    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20244    "test/afpd/Makefile") CONFIG_FILES="$CONFIG_FILES test/afpd/Makefile" ;;
20245    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20246
20247  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20248  esac
20249done
20250
20251
20252# If the user did not use the arguments to specify the items to instantiate,
20253# then the envvar interface is used.  Set only those that are not.
20254# We use the long form for the default assignment because of an extremely
20255# bizarre bug on SunOS 4.1.3.
20256if $ac_need_defaults; then
20257  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20258  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20259  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20260fi
20261
20262# Have a temporary directory for convenience.  Make it in the build tree
20263# simply because there is no reason against having it here, and in addition,
20264# creating and moving files from /tmp can sometimes cause problems.
20265# Hook for its removal unless debugging.
20266# Note that there is a small window in which the directory will not be cleaned:
20267# after its creation but before its name has been assigned to `$tmp'.
20268$debug ||
20269{
20270  tmp= ac_tmp=
20271  trap 'exit_status=$?
20272  : "${ac_tmp:=$tmp}"
20273  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20274' 0
20275  trap 'as_fn_exit 1' 1 2 13 15
20276}
20277# Create a (secure) tmp directory for tmp files.
20278
20279{
20280  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20281  test -d "$tmp"
20282}  ||
20283{
20284  tmp=./conf$$-$RANDOM
20285  (umask 077 && mkdir "$tmp")
20286} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20287ac_tmp=$tmp
20288
20289# Set up the scripts for CONFIG_FILES section.
20290# No need to generate them if there are no CONFIG_FILES.
20291# This happens for instance with `./config.status config.h'.
20292if test -n "$CONFIG_FILES"; then
20293
20294
20295ac_cr=`echo X | tr X '\015'`
20296# On cygwin, bash can eat \r inside `` if the user requested igncr.
20297# But we know of no other shell where ac_cr would be empty at this
20298# point, so we can use a bashism as a fallback.
20299if test "x$ac_cr" = x; then
20300  eval ac_cr=\$\'\\r\'
20301fi
20302ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20303if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20304  ac_cs_awk_cr='\\r'
20305else
20306  ac_cs_awk_cr=$ac_cr
20307fi
20308
20309echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20310_ACEOF
20311
20312
20313{
20314  echo "cat >conf$$subs.awk <<_ACEOF" &&
20315  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20316  echo "_ACEOF"
20317} >conf$$subs.sh ||
20318  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20319ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20320ac_delim='%!_!# '
20321for ac_last_try in false false false false false :; do
20322  . ./conf$$subs.sh ||
20323    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20324
20325  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20326  if test $ac_delim_n = $ac_delim_num; then
20327    break
20328  elif $ac_last_try; then
20329    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20330  else
20331    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20332  fi
20333done
20334rm -f conf$$subs.sh
20335
20336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20337cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20338_ACEOF
20339sed -n '
20340h
20341s/^/S["/; s/!.*/"]=/
20342p
20343g
20344s/^[^!]*!//
20345:repl
20346t repl
20347s/'"$ac_delim"'$//
20348t delim
20349:nl
20350h
20351s/\(.\{148\}\)..*/\1/
20352t more1
20353s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20354p
20355n
20356b repl
20357:more1
20358s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20359p
20360g
20361s/.\{148\}//
20362t nl
20363:delim
20364h
20365s/\(.\{148\}\)..*/\1/
20366t more2
20367s/["\\]/\\&/g; s/^/"/; s/$/"/
20368p
20369b
20370:more2
20371s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20372p
20373g
20374s/.\{148\}//
20375t delim
20376' <conf$$subs.awk | sed '
20377/^[^""]/{
20378  N
20379  s/\n//
20380}
20381' >>$CONFIG_STATUS || ac_write_fail=1
20382rm -f conf$$subs.awk
20383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20384_ACAWK
20385cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20386  for (key in S) S_is_set[key] = 1
20387  FS = ""
20388
20389}
20390{
20391  line = $ 0
20392  nfields = split(line, field, "@")
20393  substed = 0
20394  len = length(field[1])
20395  for (i = 2; i < nfields; i++) {
20396    key = field[i]
20397    keylen = length(key)
20398    if (S_is_set[key]) {
20399      value = S[key]
20400      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20401      len += length(value) + length(field[++i])
20402      substed = 1
20403    } else
20404      len += 1 + keylen
20405  }
20406
20407  print line
20408}
20409
20410_ACAWK
20411_ACEOF
20412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20413if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20414  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20415else
20416  cat
20417fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20418  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20419_ACEOF
20420
20421# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20422# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20423# trailing colons and then remove the whole line if VPATH becomes empty
20424# (actually we leave an empty line to preserve line numbers).
20425if test "x$srcdir" = x.; then
20426  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20427h
20428s///
20429s/^/:/
20430s/[	 ]*$/:/
20431s/:\$(srcdir):/:/g
20432s/:\${srcdir}:/:/g
20433s/:@srcdir@:/:/g
20434s/^:*//
20435s/:*$//
20436x
20437s/\(=[	 ]*\).*/\1/
20438G
20439s/\n//
20440s/^[^=]*=[	 ]*$//
20441}'
20442fi
20443
20444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20445fi # test -n "$CONFIG_FILES"
20446
20447# Set up the scripts for CONFIG_HEADERS section.
20448# No need to generate them if there are no CONFIG_HEADERS.
20449# This happens for instance with `./config.status Makefile'.
20450if test -n "$CONFIG_HEADERS"; then
20451cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20452BEGIN {
20453_ACEOF
20454
20455# Transform confdefs.h into an awk script `defines.awk', embedded as
20456# here-document in config.status, that substitutes the proper values into
20457# config.h.in to produce config.h.
20458
20459# Create a delimiter string that does not exist in confdefs.h, to ease
20460# handling of long lines.
20461ac_delim='%!_!# '
20462for ac_last_try in false false :; do
20463  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20464  if test -z "$ac_tt"; then
20465    break
20466  elif $ac_last_try; then
20467    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20468  else
20469    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20470  fi
20471done
20472
20473# For the awk script, D is an array of macro values keyed by name,
20474# likewise P contains macro parameters if any.  Preserve backslash
20475# newline sequences.
20476
20477ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20478sed -n '
20479s/.\{148\}/&'"$ac_delim"'/g
20480t rset
20481:rset
20482s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20483t def
20484d
20485:def
20486s/\\$//
20487t bsnl
20488s/["\\]/\\&/g
20489s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20490D["\1"]=" \3"/p
20491s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20492d
20493:bsnl
20494s/["\\]/\\&/g
20495s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20496D["\1"]=" \3\\\\\\n"\\/p
20497t cont
20498s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20499t cont
20500d
20501:cont
20502n
20503s/.\{148\}/&'"$ac_delim"'/g
20504t clear
20505:clear
20506s/\\$//
20507t bsnlc
20508s/["\\]/\\&/g; s/^/"/; s/$/"/p
20509d
20510:bsnlc
20511s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20512b cont
20513' <confdefs.h | sed '
20514s/'"$ac_delim"'/"\\\
20515"/g' >>$CONFIG_STATUS || ac_write_fail=1
20516
20517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20518  for (key in D) D_is_set[key] = 1
20519  FS = ""
20520}
20521/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20522  line = \$ 0
20523  split(line, arg, " ")
20524  if (arg[1] == "#") {
20525    defundef = arg[2]
20526    mac1 = arg[3]
20527  } else {
20528    defundef = substr(arg[1], 2)
20529    mac1 = arg[2]
20530  }
20531  split(mac1, mac2, "(") #)
20532  macro = mac2[1]
20533  prefix = substr(line, 1, index(line, defundef) - 1)
20534  if (D_is_set[macro]) {
20535    # Preserve the white space surrounding the "#".
20536    print prefix "define", macro P[macro] D[macro]
20537    next
20538  } else {
20539    # Replace #undef with comments.  This is necessary, for example,
20540    # in the case of _POSIX_SOURCE, which is predefined and required
20541    # on some systems where configure will not decide to define it.
20542    if (defundef == "undef") {
20543      print "/*", prefix defundef, macro, "*/"
20544      next
20545    }
20546  }
20547}
20548{ print }
20549_ACAWK
20550_ACEOF
20551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20552  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20553fi # test -n "$CONFIG_HEADERS"
20554
20555
20556eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20557shift
20558for ac_tag
20559do
20560  case $ac_tag in
20561  :[FHLC]) ac_mode=$ac_tag; continue;;
20562  esac
20563  case $ac_mode$ac_tag in
20564  :[FHL]*:*);;
20565  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20566  :[FH]-) ac_tag=-:-;;
20567  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20568  esac
20569  ac_save_IFS=$IFS
20570  IFS=:
20571  set x $ac_tag
20572  IFS=$ac_save_IFS
20573  shift
20574  ac_file=$1
20575  shift
20576
20577  case $ac_mode in
20578  :L) ac_source=$1;;
20579  :[FH])
20580    ac_file_inputs=
20581    for ac_f
20582    do
20583      case $ac_f in
20584      -) ac_f="$ac_tmp/stdin";;
20585      *) # Look for the file first in the build tree, then in the source tree
20586	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20587	 # because $ac_f cannot contain `:'.
20588	 test -f "$ac_f" ||
20589	   case $ac_f in
20590	   [\\/$]*) false;;
20591	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20592	   esac ||
20593	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20594      esac
20595      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20596      as_fn_append ac_file_inputs " '$ac_f'"
20597    done
20598
20599    # Let's still pretend it is `configure' which instantiates (i.e., don't
20600    # use $as_me), people would be surprised to read:
20601    #    /* config.h.  Generated by config.status.  */
20602    configure_input='Generated from '`
20603	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20604	`' by configure.'
20605    if test x"$ac_file" != x-; then
20606      configure_input="$ac_file.  $configure_input"
20607      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20608$as_echo "$as_me: creating $ac_file" >&6;}
20609    fi
20610    # Neutralize special characters interpreted by sed in replacement strings.
20611    case $configure_input in #(
20612    *\&* | *\|* | *\\* )
20613       ac_sed_conf_input=`$as_echo "$configure_input" |
20614       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20615    *) ac_sed_conf_input=$configure_input;;
20616    esac
20617
20618    case $ac_tag in
20619    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20620      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20621    esac
20622    ;;
20623  esac
20624
20625  ac_dir=`$as_dirname -- "$ac_file" ||
20626$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20627	 X"$ac_file" : 'X\(//\)[^/]' \| \
20628	 X"$ac_file" : 'X\(//\)$' \| \
20629	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20630$as_echo X"$ac_file" |
20631    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20632	    s//\1/
20633	    q
20634	  }
20635	  /^X\(\/\/\)[^/].*/{
20636	    s//\1/
20637	    q
20638	  }
20639	  /^X\(\/\/\)$/{
20640	    s//\1/
20641	    q
20642	  }
20643	  /^X\(\/\).*/{
20644	    s//\1/
20645	    q
20646	  }
20647	  s/.*/./; q'`
20648  as_dir="$ac_dir"; as_fn_mkdir_p
20649  ac_builddir=.
20650
20651case "$ac_dir" in
20652.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20653*)
20654  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20655  # A ".." for each directory in $ac_dir_suffix.
20656  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20657  case $ac_top_builddir_sub in
20658  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20659  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20660  esac ;;
20661esac
20662ac_abs_top_builddir=$ac_pwd
20663ac_abs_builddir=$ac_pwd$ac_dir_suffix
20664# for backward compatibility:
20665ac_top_builddir=$ac_top_build_prefix
20666
20667case $srcdir in
20668  .)  # We are building in place.
20669    ac_srcdir=.
20670    ac_top_srcdir=$ac_top_builddir_sub
20671    ac_abs_top_srcdir=$ac_pwd ;;
20672  [\\/]* | ?:[\\/]* )  # Absolute name.
20673    ac_srcdir=$srcdir$ac_dir_suffix;
20674    ac_top_srcdir=$srcdir
20675    ac_abs_top_srcdir=$srcdir ;;
20676  *) # Relative name.
20677    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20678    ac_top_srcdir=$ac_top_build_prefix$srcdir
20679    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20680esac
20681ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20682
20683
20684  case $ac_mode in
20685  :F)
20686  #
20687  # CONFIG_FILE
20688  #
20689
20690  case $INSTALL in
20691  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20692  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20693  esac
20694  ac_MKDIR_P=$MKDIR_P
20695  case $MKDIR_P in
20696  [\\/$]* | ?:[\\/]* ) ;;
20697  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20698  esac
20699_ACEOF
20700
20701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20702# If the template does not know about datarootdir, expand it.
20703# FIXME: This hack should be removed a few years after 2.60.
20704ac_datarootdir_hack=; ac_datarootdir_seen=
20705ac_sed_dataroot='
20706/datarootdir/ {
20707  p
20708  q
20709}
20710/@datadir@/p
20711/@docdir@/p
20712/@infodir@/p
20713/@localedir@/p
20714/@mandir@/p'
20715case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20716*datarootdir*) ac_datarootdir_seen=yes;;
20717*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20718  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20719$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20720_ACEOF
20721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20722  ac_datarootdir_hack='
20723  s&@datadir@&$datadir&g
20724  s&@docdir@&$docdir&g
20725  s&@infodir@&$infodir&g
20726  s&@localedir@&$localedir&g
20727  s&@mandir@&$mandir&g
20728  s&\\\${datarootdir}&$datarootdir&g' ;;
20729esac
20730_ACEOF
20731
20732# Neutralize VPATH when `$srcdir' = `.'.
20733# Shell code in configure.ac might set extrasub.
20734# FIXME: do we really want to maintain this feature?
20735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20736ac_sed_extra="$ac_vpsub
20737$extrasub
20738_ACEOF
20739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20740:t
20741/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20742s|@configure_input@|$ac_sed_conf_input|;t t
20743s&@top_builddir@&$ac_top_builddir_sub&;t t
20744s&@top_build_prefix@&$ac_top_build_prefix&;t t
20745s&@srcdir@&$ac_srcdir&;t t
20746s&@abs_srcdir@&$ac_abs_srcdir&;t t
20747s&@top_srcdir@&$ac_top_srcdir&;t t
20748s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20749s&@builddir@&$ac_builddir&;t t
20750s&@abs_builddir@&$ac_abs_builddir&;t t
20751s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20752s&@INSTALL@&$ac_INSTALL&;t t
20753s&@MKDIR_P@&$ac_MKDIR_P&;t t
20754$ac_datarootdir_hack
20755"
20756eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20757  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20758
20759test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20760  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20761  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20762      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20763  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20764which seems to be undefined.  Please make sure it is defined" >&5
20765$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20766which seems to be undefined.  Please make sure it is defined" >&2;}
20767
20768  rm -f "$ac_tmp/stdin"
20769  case $ac_file in
20770  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20771  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20772  esac \
20773  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20774 ;;
20775  :H)
20776  #
20777  # CONFIG_HEADER
20778  #
20779  if test x"$ac_file" != x-; then
20780    {
20781      $as_echo "/* $configure_input  */" \
20782      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20783    } >"$ac_tmp/config.h" \
20784      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20785    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20786      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20787$as_echo "$as_me: $ac_file is unchanged" >&6;}
20788    else
20789      rm -f "$ac_file"
20790      mv "$ac_tmp/config.h" "$ac_file" \
20791	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20792    fi
20793  else
20794    $as_echo "/* $configure_input  */" \
20795      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20796      || as_fn_error $? "could not create -" "$LINENO" 5
20797  fi
20798# Compute "$ac_file"'s index in $config_headers.
20799_am_arg="$ac_file"
20800_am_stamp_count=1
20801for _am_header in $config_headers :; do
20802  case $_am_header in
20803    $_am_arg | $_am_arg:* )
20804      break ;;
20805    * )
20806      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20807  esac
20808done
20809echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20810$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20811	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20812	 X"$_am_arg" : 'X\(//\)$' \| \
20813	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20814$as_echo X"$_am_arg" |
20815    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20816	    s//\1/
20817	    q
20818	  }
20819	  /^X\(\/\/\)[^/].*/{
20820	    s//\1/
20821	    q
20822	  }
20823	  /^X\(\/\/\)$/{
20824	    s//\1/
20825	    q
20826	  }
20827	  /^X\(\/\).*/{
20828	    s//\1/
20829	    q
20830	  }
20831	  s/.*/./; q'`/stamp-h$_am_stamp_count
20832 ;;
20833
20834  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20835$as_echo "$as_me: executing $ac_file commands" >&6;}
20836 ;;
20837  esac
20838
20839
20840  case $ac_file$ac_mode in
20841    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20842  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20843  # are listed without --file.  Let's play safe and only enable the eval
20844  # if we detect the quoting.
20845  case $CONFIG_FILES in
20846  *\'*) eval set x "$CONFIG_FILES" ;;
20847  *)   set x $CONFIG_FILES ;;
20848  esac
20849  shift
20850  for mf
20851  do
20852    # Strip MF so we end up with the name of the file.
20853    mf=`echo "$mf" | sed -e 's/:.*$//'`
20854    # Check whether this is an Automake generated Makefile or not.
20855    # We used to match only the files named 'Makefile.in', but
20856    # some people rename them; so instead we look at the file content.
20857    # Grep'ing the first line is not enough: some people post-process
20858    # each Makefile.in and add a new line on top of each file to say so.
20859    # Grep'ing the whole file is not good either: AIX grep has a line
20860    # limit of 2048, but all sed's we know have understand at least 4000.
20861    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20862      dirpart=`$as_dirname -- "$mf" ||
20863$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20864	 X"$mf" : 'X\(//\)[^/]' \| \
20865	 X"$mf" : 'X\(//\)$' \| \
20866	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20867$as_echo X"$mf" |
20868    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20869	    s//\1/
20870	    q
20871	  }
20872	  /^X\(\/\/\)[^/].*/{
20873	    s//\1/
20874	    q
20875	  }
20876	  /^X\(\/\/\)$/{
20877	    s//\1/
20878	    q
20879	  }
20880	  /^X\(\/\).*/{
20881	    s//\1/
20882	    q
20883	  }
20884	  s/.*/./; q'`
20885    else
20886      continue
20887    fi
20888    # Extract the definition of DEPDIR, am__include, and am__quote
20889    # from the Makefile without running 'make'.
20890    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20891    test -z "$DEPDIR" && continue
20892    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20893    test -z "am__include" && continue
20894    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20895    # Find all dependency output files, they are included files with
20896    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20897    # simplest approach to changing $(DEPDIR) to its actual value in the
20898    # expansion.
20899    for file in `sed -n "
20900      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20901	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20902      # Make sure the directory exists.
20903      test -f "$dirpart/$file" && continue
20904      fdir=`$as_dirname -- "$file" ||
20905$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20906	 X"$file" : 'X\(//\)[^/]' \| \
20907	 X"$file" : 'X\(//\)$' \| \
20908	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20909$as_echo X"$file" |
20910    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20911	    s//\1/
20912	    q
20913	  }
20914	  /^X\(\/\/\)[^/].*/{
20915	    s//\1/
20916	    q
20917	  }
20918	  /^X\(\/\/\)$/{
20919	    s//\1/
20920	    q
20921	  }
20922	  /^X\(\/\).*/{
20923	    s//\1/
20924	    q
20925	  }
20926	  s/.*/./; q'`
20927      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20928      # echo "creating $dirpart/$file"
20929      echo '# dummy' > "$dirpart/$file"
20930    done
20931  done
20932}
20933 ;;
20934    "libtool":C)
20935
20936    # See if we are running on zsh, and set the options which allow our
20937    # commands through without removal of \ escapes.
20938    if test -n "${ZSH_VERSION+set}" ; then
20939      setopt NO_GLOB_SUBST
20940    fi
20941
20942    cfgfile="${ofile}T"
20943    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20944    $RM "$cfgfile"
20945
20946    cat <<_LT_EOF >> "$cfgfile"
20947#! $SHELL
20948
20949# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20950# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20951# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20952# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20953#
20954#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20955#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20956#                 Inc.
20957#   Written by Gordon Matzigkeit, 1996
20958#
20959#   This file is part of GNU Libtool.
20960#
20961# GNU Libtool is free software; you can redistribute it and/or
20962# modify it under the terms of the GNU General Public License as
20963# published by the Free Software Foundation; either version 2 of
20964# the License, or (at your option) any later version.
20965#
20966# As a special exception to the GNU General Public License,
20967# if you distribute this file as part of a program or library that
20968# is built using GNU Libtool, you may include this file under the
20969# same distribution terms that you use for the rest of that program.
20970#
20971# GNU Libtool is distributed in the hope that it will be useful,
20972# but WITHOUT ANY WARRANTY; without even the implied warranty of
20973# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20974# GNU General Public License for more details.
20975#
20976# You should have received a copy of the GNU General Public License
20977# along with GNU Libtool; see the file COPYING.  If not, a copy
20978# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20979# obtained by writing to the Free Software Foundation, Inc.,
20980# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20981
20982
20983# The names of the tagged configurations supported by this script.
20984available_tags=""
20985
20986# ### BEGIN LIBTOOL CONFIG
20987
20988# Which release of libtool.m4 was used?
20989macro_version=$macro_version
20990macro_revision=$macro_revision
20991
20992# Whether or not to build shared libraries.
20993build_libtool_libs=$enable_shared
20994
20995# Whether or not to build static libraries.
20996build_old_libs=$enable_static
20997
20998# What type of objects to build.
20999pic_mode=$pic_mode
21000
21001# Whether or not to optimize for fast installation.
21002fast_install=$enable_fast_install
21003
21004# Shell to use when invoking shell scripts.
21005SHELL=$lt_SHELL
21006
21007# An echo program that protects backslashes.
21008ECHO=$lt_ECHO
21009
21010# The host system.
21011host_alias=$host_alias
21012host=$host
21013host_os=$host_os
21014
21015# The build system.
21016build_alias=$build_alias
21017build=$build
21018build_os=$build_os
21019
21020# A sed program that does not truncate output.
21021SED=$lt_SED
21022
21023# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21024Xsed="\$SED -e 1s/^X//"
21025
21026# A grep program that handles long lines.
21027GREP=$lt_GREP
21028
21029# An ERE matcher.
21030EGREP=$lt_EGREP
21031
21032# A literal string matcher.
21033FGREP=$lt_FGREP
21034
21035# A BSD- or MS-compatible name lister.
21036NM=$lt_NM
21037
21038# Whether we need soft or hard links.
21039LN_S=$lt_LN_S
21040
21041# What is the maximum length of a command?
21042max_cmd_len=$max_cmd_len
21043
21044# Object file suffix (normally "o").
21045objext=$ac_objext
21046
21047# Executable file suffix (normally "").
21048exeext=$exeext
21049
21050# whether the shell understands "unset".
21051lt_unset=$lt_unset
21052
21053# turn spaces into newlines.
21054SP2NL=$lt_lt_SP2NL
21055
21056# turn newlines into spaces.
21057NL2SP=$lt_lt_NL2SP
21058
21059# convert \$build file names to \$host format.
21060to_host_file_cmd=$lt_cv_to_host_file_cmd
21061
21062# convert \$build files to toolchain format.
21063to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21064
21065# An object symbol dumper.
21066OBJDUMP=$lt_OBJDUMP
21067
21068# Method to check whether dependent libraries are shared objects.
21069deplibs_check_method=$lt_deplibs_check_method
21070
21071# Command to use when deplibs_check_method = "file_magic".
21072file_magic_cmd=$lt_file_magic_cmd
21073
21074# How to find potential files when deplibs_check_method = "file_magic".
21075file_magic_glob=$lt_file_magic_glob
21076
21077# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21078want_nocaseglob=$lt_want_nocaseglob
21079
21080# DLL creation program.
21081DLLTOOL=$lt_DLLTOOL
21082
21083# Command to associate shared and link libraries.
21084sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21085
21086# The archiver.
21087AR=$lt_AR
21088
21089# Flags to create an archive.
21090AR_FLAGS=$lt_AR_FLAGS
21091
21092# How to feed a file listing to the archiver.
21093archiver_list_spec=$lt_archiver_list_spec
21094
21095# A symbol stripping program.
21096STRIP=$lt_STRIP
21097
21098# Commands used to install an old-style archive.
21099RANLIB=$lt_RANLIB
21100old_postinstall_cmds=$lt_old_postinstall_cmds
21101old_postuninstall_cmds=$lt_old_postuninstall_cmds
21102
21103# Whether to use a lock for old archive extraction.
21104lock_old_archive_extraction=$lock_old_archive_extraction
21105
21106# A C compiler.
21107LTCC=$lt_CC
21108
21109# LTCC compiler flags.
21110LTCFLAGS=$lt_CFLAGS
21111
21112# Take the output of nm and produce a listing of raw symbols and C names.
21113global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21114
21115# Transform the output of nm in a proper C declaration.
21116global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21117
21118# Transform the output of nm in a C name address pair.
21119global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21120
21121# Transform the output of nm in a C name address pair when lib prefix is needed.
21122global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21123
21124# Specify filename containing input files for \$NM.
21125nm_file_list_spec=$lt_nm_file_list_spec
21126
21127# The root where to search for dependent libraries,and in which our libraries should be installed.
21128lt_sysroot=$lt_sysroot
21129
21130# The name of the directory that contains temporary libtool files.
21131objdir=$objdir
21132
21133# Used to examine libraries when file_magic_cmd begins with "file".
21134MAGIC_CMD=$MAGIC_CMD
21135
21136# Must we lock files when doing compilation?
21137need_locks=$lt_need_locks
21138
21139# Manifest tool.
21140MANIFEST_TOOL=$lt_MANIFEST_TOOL
21141
21142# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21143DSYMUTIL=$lt_DSYMUTIL
21144
21145# Tool to change global to local symbols on Mac OS X.
21146NMEDIT=$lt_NMEDIT
21147
21148# Tool to manipulate fat objects and archives on Mac OS X.
21149LIPO=$lt_LIPO
21150
21151# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21152OTOOL=$lt_OTOOL
21153
21154# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21155OTOOL64=$lt_OTOOL64
21156
21157# Old archive suffix (normally "a").
21158libext=$libext
21159
21160# Shared library suffix (normally ".so").
21161shrext_cmds=$lt_shrext_cmds
21162
21163# The commands to extract the exported symbol list from a shared archive.
21164extract_expsyms_cmds=$lt_extract_expsyms_cmds
21165
21166# Variables whose values should be saved in libtool wrapper scripts and
21167# restored at link time.
21168variables_saved_for_relink=$lt_variables_saved_for_relink
21169
21170# Do we need the "lib" prefix for modules?
21171need_lib_prefix=$need_lib_prefix
21172
21173# Do we need a version for libraries?
21174need_version=$need_version
21175
21176# Library versioning type.
21177version_type=$version_type
21178
21179# Shared library runtime path variable.
21180runpath_var=$runpath_var
21181
21182# Shared library path variable.
21183shlibpath_var=$shlibpath_var
21184
21185# Is shlibpath searched before the hard-coded library search path?
21186shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21187
21188# Format of library name prefix.
21189libname_spec=$lt_libname_spec
21190
21191# List of archive names.  First name is the real one, the rest are links.
21192# The last name is the one that the linker finds with -lNAME
21193library_names_spec=$lt_library_names_spec
21194
21195# The coded name of the library, if different from the real name.
21196soname_spec=$lt_soname_spec
21197
21198# Permission mode override for installation of shared libraries.
21199install_override_mode=$lt_install_override_mode
21200
21201# Command to use after installation of a shared archive.
21202postinstall_cmds=$lt_postinstall_cmds
21203
21204# Command to use after uninstallation of a shared archive.
21205postuninstall_cmds=$lt_postuninstall_cmds
21206
21207# Commands used to finish a libtool library installation in a directory.
21208finish_cmds=$lt_finish_cmds
21209
21210# As "finish_cmds", except a single script fragment to be evaled but
21211# not shown.
21212finish_eval=$lt_finish_eval
21213
21214# Whether we should hardcode library paths into libraries.
21215hardcode_into_libs=$hardcode_into_libs
21216
21217# Compile-time system search path for libraries.
21218sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21219
21220# Run-time system search path for libraries.
21221sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21222
21223# Whether dlopen is supported.
21224dlopen_support=$enable_dlopen
21225
21226# Whether dlopen of programs is supported.
21227dlopen_self=$enable_dlopen_self
21228
21229# Whether dlopen of statically linked programs is supported.
21230dlopen_self_static=$enable_dlopen_self_static
21231
21232# Commands to strip libraries.
21233old_striplib=$lt_old_striplib
21234striplib=$lt_striplib
21235
21236
21237# The linker used to build libraries.
21238LD=$lt_LD
21239
21240# How to create reloadable object files.
21241reload_flag=$lt_reload_flag
21242reload_cmds=$lt_reload_cmds
21243
21244# Commands used to build an old-style archive.
21245old_archive_cmds=$lt_old_archive_cmds
21246
21247# A language specific compiler.
21248CC=$lt_compiler
21249
21250# Is the compiler the GNU compiler?
21251with_gcc=$GCC
21252
21253# Compiler flag to turn off builtin functions.
21254no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21255
21256# Additional compiler flags for building library objects.
21257pic_flag=$lt_lt_prog_compiler_pic
21258
21259# How to pass a linker flag through the compiler.
21260wl=$lt_lt_prog_compiler_wl
21261
21262# Compiler flag to prevent dynamic linking.
21263link_static_flag=$lt_lt_prog_compiler_static
21264
21265# Does compiler simultaneously support -c and -o options?
21266compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21267
21268# Whether or not to add -lc for building shared libraries.
21269build_libtool_need_lc=$archive_cmds_need_lc
21270
21271# Whether or not to disallow shared libs when runtime libs are static.
21272allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21273
21274# Compiler flag to allow reflexive dlopens.
21275export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21276
21277# Compiler flag to generate shared objects directly from archives.
21278whole_archive_flag_spec=$lt_whole_archive_flag_spec
21279
21280# Whether the compiler copes with passing no objects directly.
21281compiler_needs_object=$lt_compiler_needs_object
21282
21283# Create an old-style archive from a shared archive.
21284old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21285
21286# Create a temporary old-style archive to link instead of a shared archive.
21287old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21288
21289# Commands used to build a shared archive.
21290archive_cmds=$lt_archive_cmds
21291archive_expsym_cmds=$lt_archive_expsym_cmds
21292
21293# Commands used to build a loadable module if different from building
21294# a shared archive.
21295module_cmds=$lt_module_cmds
21296module_expsym_cmds=$lt_module_expsym_cmds
21297
21298# Whether we are building with GNU ld or not.
21299with_gnu_ld=$lt_with_gnu_ld
21300
21301# Flag that allows shared libraries with undefined symbols to be built.
21302allow_undefined_flag=$lt_allow_undefined_flag
21303
21304# Flag that enforces no undefined symbols.
21305no_undefined_flag=$lt_no_undefined_flag
21306
21307# Flag to hardcode \$libdir into a binary during linking.
21308# This must work even if \$libdir does not exist
21309hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21310
21311# If ld is used when linking, flag to hardcode \$libdir into a binary
21312# during linking.  This must work even if \$libdir does not exist.
21313hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21314
21315# Whether we need a single "-rpath" flag with a separated argument.
21316hardcode_libdir_separator=$lt_hardcode_libdir_separator
21317
21318# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21319# DIR into the resulting binary.
21320hardcode_direct=$hardcode_direct
21321
21322# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21323# DIR into the resulting binary and the resulting library dependency is
21324# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21325# library is relocated.
21326hardcode_direct_absolute=$hardcode_direct_absolute
21327
21328# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21329# into the resulting binary.
21330hardcode_minus_L=$hardcode_minus_L
21331
21332# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21333# into the resulting binary.
21334hardcode_shlibpath_var=$hardcode_shlibpath_var
21335
21336# Set to "yes" if building a shared library automatically hardcodes DIR
21337# into the library and all subsequent libraries and executables linked
21338# against it.
21339hardcode_automatic=$hardcode_automatic
21340
21341# Set to yes if linker adds runtime paths of dependent libraries
21342# to runtime path list.
21343inherit_rpath=$inherit_rpath
21344
21345# Whether libtool must link a program against all its dependency libraries.
21346link_all_deplibs=$link_all_deplibs
21347
21348# Set to "yes" if exported symbols are required.
21349always_export_symbols=$always_export_symbols
21350
21351# The commands to list exported symbols.
21352export_symbols_cmds=$lt_export_symbols_cmds
21353
21354# Symbols that should not be listed in the preloaded symbols.
21355exclude_expsyms=$lt_exclude_expsyms
21356
21357# Symbols that must always be exported.
21358include_expsyms=$lt_include_expsyms
21359
21360# Commands necessary for linking programs (against libraries) with templates.
21361prelink_cmds=$lt_prelink_cmds
21362
21363# Commands necessary for finishing linking programs.
21364postlink_cmds=$lt_postlink_cmds
21365
21366# Specify filename containing input files.
21367file_list_spec=$lt_file_list_spec
21368
21369# How to hardcode a shared library path into an executable.
21370hardcode_action=$hardcode_action
21371
21372# ### END LIBTOOL CONFIG
21373
21374_LT_EOF
21375
21376  case $host_os in
21377  aix3*)
21378    cat <<\_LT_EOF >> "$cfgfile"
21379# AIX sometimes has problems with the GCC collect2 program.  For some
21380# reason, if we set the COLLECT_NAMES environment variable, the problems
21381# vanish in a puff of smoke.
21382if test "X${COLLECT_NAMES+set}" != Xset; then
21383  COLLECT_NAMES=
21384  export COLLECT_NAMES
21385fi
21386_LT_EOF
21387    ;;
21388  esac
21389
21390
21391ltmain="$ac_aux_dir/ltmain.sh"
21392
21393
21394  # We use sed instead of cat because bash on DJGPP gets confused if
21395  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21396  # text mode, it properly converts lines to CR/LF.  This bash problem
21397  # is reportedly fixed, but why not run on old versions too?
21398  sed '$q' "$ltmain" >> "$cfgfile" \
21399     || (rm -f "$cfgfile"; exit 1)
21400
21401  if test x"$xsi_shell" = xyes; then
21402  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21403func_dirname ()\
21404{\
21405\    case ${1} in\
21406\      */*) func_dirname_result="${1%/*}${2}" ;;\
21407\      *  ) func_dirname_result="${3}" ;;\
21408\    esac\
21409} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21410  && mv -f "$cfgfile.tmp" "$cfgfile" \
21411    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21412test 0 -eq $? || _lt_function_replace_fail=:
21413
21414
21415  sed -e '/^func_basename ()$/,/^} # func_basename /c\
21416func_basename ()\
21417{\
21418\    func_basename_result="${1##*/}"\
21419} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21420  && mv -f "$cfgfile.tmp" "$cfgfile" \
21421    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21422test 0 -eq $? || _lt_function_replace_fail=:
21423
21424
21425  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21426func_dirname_and_basename ()\
21427{\
21428\    case ${1} in\
21429\      */*) func_dirname_result="${1%/*}${2}" ;;\
21430\      *  ) func_dirname_result="${3}" ;;\
21431\    esac\
21432\    func_basename_result="${1##*/}"\
21433} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21434  && mv -f "$cfgfile.tmp" "$cfgfile" \
21435    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21436test 0 -eq $? || _lt_function_replace_fail=:
21437
21438
21439  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21440func_stripname ()\
21441{\
21442\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21443\    # positional parameters, so assign one to ordinary parameter first.\
21444\    func_stripname_result=${3}\
21445\    func_stripname_result=${func_stripname_result#"${1}"}\
21446\    func_stripname_result=${func_stripname_result%"${2}"}\
21447} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21448  && mv -f "$cfgfile.tmp" "$cfgfile" \
21449    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21450test 0 -eq $? || _lt_function_replace_fail=:
21451
21452
21453  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21454func_split_long_opt ()\
21455{\
21456\    func_split_long_opt_name=${1%%=*}\
21457\    func_split_long_opt_arg=${1#*=}\
21458} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21459  && mv -f "$cfgfile.tmp" "$cfgfile" \
21460    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21461test 0 -eq $? || _lt_function_replace_fail=:
21462
21463
21464  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21465func_split_short_opt ()\
21466{\
21467\    func_split_short_opt_arg=${1#??}\
21468\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21469} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21470  && mv -f "$cfgfile.tmp" "$cfgfile" \
21471    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21472test 0 -eq $? || _lt_function_replace_fail=:
21473
21474
21475  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21476func_lo2o ()\
21477{\
21478\    case ${1} in\
21479\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21480\      *)    func_lo2o_result=${1} ;;\
21481\    esac\
21482} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21483  && mv -f "$cfgfile.tmp" "$cfgfile" \
21484    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21485test 0 -eq $? || _lt_function_replace_fail=:
21486
21487
21488  sed -e '/^func_xform ()$/,/^} # func_xform /c\
21489func_xform ()\
21490{\
21491    func_xform_result=${1%.*}.lo\
21492} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21493  && mv -f "$cfgfile.tmp" "$cfgfile" \
21494    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21495test 0 -eq $? || _lt_function_replace_fail=:
21496
21497
21498  sed -e '/^func_arith ()$/,/^} # func_arith /c\
21499func_arith ()\
21500{\
21501    func_arith_result=$(( $* ))\
21502} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21503  && mv -f "$cfgfile.tmp" "$cfgfile" \
21504    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21505test 0 -eq $? || _lt_function_replace_fail=:
21506
21507
21508  sed -e '/^func_len ()$/,/^} # func_len /c\
21509func_len ()\
21510{\
21511    func_len_result=${#1}\
21512} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21513  && mv -f "$cfgfile.tmp" "$cfgfile" \
21514    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21515test 0 -eq $? || _lt_function_replace_fail=:
21516
21517fi
21518
21519if test x"$lt_shell_append" = xyes; then
21520  sed -e '/^func_append ()$/,/^} # func_append /c\
21521func_append ()\
21522{\
21523    eval "${1}+=\\${2}"\
21524} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21525  && mv -f "$cfgfile.tmp" "$cfgfile" \
21526    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21527test 0 -eq $? || _lt_function_replace_fail=:
21528
21529
21530  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21531func_append_quoted ()\
21532{\
21533\    func_quote_for_eval "${2}"\
21534\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21535} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21536  && mv -f "$cfgfile.tmp" "$cfgfile" \
21537    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21538test 0 -eq $? || _lt_function_replace_fail=:
21539
21540
21541  # Save a `func_append' function call where possible by direct use of '+='
21542  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21543    && mv -f "$cfgfile.tmp" "$cfgfile" \
21544      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21545  test 0 -eq $? || _lt_function_replace_fail=:
21546else
21547  # Save a `func_append' function call even when '+=' is not available
21548  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21549    && mv -f "$cfgfile.tmp" "$cfgfile" \
21550      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21551  test 0 -eq $? || _lt_function_replace_fail=:
21552fi
21553
21554if test x"$_lt_function_replace_fail" = x":"; then
21555  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21556$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21557fi
21558
21559
21560   mv -f "$cfgfile" "$ofile" ||
21561    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21562  chmod +x "$ofile"
21563
21564 ;;
21565    "default":C) chmod a+x distrib/config/netatalk-config contrib/shell_utils/apple_*
21566 ;;
21567
21568  esac
21569done # for ac_tag
21570
21571
21572as_fn_exit 0
21573_ACEOF
21574ac_clean_files=$ac_clean_files_save
21575
21576test $ac_write_fail = 0 ||
21577  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21578
21579
21580# configure is writing to config.log, and then calls config.status.
21581# config.status does its own redirection, appending to config.log.
21582# Unfortunately, on DOS this fails, as config.log is still kept open
21583# by configure, so config.status won't be able to write to it; its
21584# output is simply discarded.  So we exec the FD to /dev/null,
21585# effectively closing config.log, so it can be properly (re)opened and
21586# appended to by config.status.  When coming back to configure, we
21587# need to make the FD available again.
21588if test "$no_create" != yes; then
21589  ac_cs_success=:
21590  ac_config_status_args=
21591  test "$silent" = yes &&
21592    ac_config_status_args="$ac_config_status_args --quiet"
21593  exec 5>/dev/null
21594  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21595  exec 5>>config.log
21596  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21597  # would make configure fail if this is the last instruction.
21598  $ac_cs_success || as_fn_exit 1
21599fi
21600
21601#
21602# CONFIG_SUBDIRS section.
21603#
21604if test "$no_recursion" != yes; then
21605
21606  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21607  # so they do not pile up.
21608  ac_sub_configure_args=
21609  ac_prev=
21610  eval "set x $ac_configure_args"
21611  shift
21612  for ac_arg
21613  do
21614    if test -n "$ac_prev"; then
21615      ac_prev=
21616      continue
21617    fi
21618    case $ac_arg in
21619    -cache-file | --cache-file | --cache-fil | --cache-fi \
21620    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21621      ac_prev=cache_file ;;
21622    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21623    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21624    | --c=*)
21625      ;;
21626    --config-cache | -C)
21627      ;;
21628    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21629      ac_prev=srcdir ;;
21630    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21631      ;;
21632    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21633      ac_prev=prefix ;;
21634    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21635      ;;
21636    --disable-option-checking)
21637      ;;
21638    *)
21639      case $ac_arg in
21640      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21641      esac
21642      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
21643    esac
21644  done
21645
21646  # Always prepend --prefix to ensure using the same prefix
21647  # in subdir configurations.
21648  ac_arg="--prefix=$prefix"
21649  case $ac_arg in
21650  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21651  esac
21652  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21653
21654  # Pass --silent
21655  if test "$silent" = yes; then
21656    ac_sub_configure_args="--silent $ac_sub_configure_args"
21657  fi
21658
21659  # Always prepend --disable-option-checking to silence warnings, since
21660  # different subdirs can have different --enable and --with options.
21661  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21662
21663  ac_popdir=`pwd`
21664  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21665
21666    # Do not complain, so a configure script can configure whichever
21667    # parts of a large source tree are present.
21668    test -d "$srcdir/$ac_dir" || continue
21669
21670    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21671    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21672    $as_echo "$ac_msg" >&6
21673    as_dir="$ac_dir"; as_fn_mkdir_p
21674    ac_builddir=.
21675
21676case "$ac_dir" in
21677.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21678*)
21679  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21680  # A ".." for each directory in $ac_dir_suffix.
21681  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21682  case $ac_top_builddir_sub in
21683  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21684  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21685  esac ;;
21686esac
21687ac_abs_top_builddir=$ac_pwd
21688ac_abs_builddir=$ac_pwd$ac_dir_suffix
21689# for backward compatibility:
21690ac_top_builddir=$ac_top_build_prefix
21691
21692case $srcdir in
21693  .)  # We are building in place.
21694    ac_srcdir=.
21695    ac_top_srcdir=$ac_top_builddir_sub
21696    ac_abs_top_srcdir=$ac_pwd ;;
21697  [\\/]* | ?:[\\/]* )  # Absolute name.
21698    ac_srcdir=$srcdir$ac_dir_suffix;
21699    ac_top_srcdir=$srcdir
21700    ac_abs_top_srcdir=$srcdir ;;
21701  *) # Relative name.
21702    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21703    ac_top_srcdir=$ac_top_build_prefix$srcdir
21704    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21705esac
21706ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21707
21708
21709    cd "$ac_dir"
21710
21711    # Check for guested configure; otherwise get Cygnus style configure.
21712    if test -f "$ac_srcdir/configure.gnu"; then
21713      ac_sub_configure=$ac_srcdir/configure.gnu
21714    elif test -f "$ac_srcdir/configure"; then
21715      ac_sub_configure=$ac_srcdir/configure
21716    elif test -f "$ac_srcdir/configure.in"; then
21717      # This should be Cygnus configure.
21718      ac_sub_configure=$ac_aux_dir/configure
21719    else
21720      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21721$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21722      ac_sub_configure=
21723    fi
21724
21725    # The recursion is here.
21726    if test -n "$ac_sub_configure"; then
21727      # Make the cache file name correct relative to the subdirectory.
21728      case $cache_file in
21729      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21730      *) # Relative name.
21731	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21732      esac
21733
21734      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21735$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21736      # The eval makes quoting arguments work.
21737      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21738	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21739	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21740    fi
21741
21742    cd "$ac_popdir"
21743  done
21744fi
21745if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21746  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21747$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21748fi
21749
21750
21751
21752
21753	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Compilation summary:" >&5
21754$as_echo "Compilation summary:" >&6; }
21755	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     CPPFLAGS       = $CPPFLAGS" >&5
21756$as_echo "    CPPFLAGS       = $CPPFLAGS" >&6; }
21757	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     CFLAGS         = $CFLAGS" >&5
21758$as_echo "    CFLAGS         = $CFLAGS" >&6; }
21759	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     LIBS           = $LIBS" >&5
21760$as_echo "    LIBS           = $LIBS" >&6; }
21761	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     PTHREADS:" >&5
21762$as_echo "    PTHREADS:" >&6; }
21763	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $PTHREAD_LIBS" >&5
21764$as_echo "        LIBS   = $PTHREAD_LIBS" >&6; }
21765	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $PTHREAD_CFLAGS" >&5
21766$as_echo "        CFLAGS = $PTHREAD_CFLAGS" >&6; }
21767	if test x"$neta_cv_have_openssl" = x"yes"; then
21768		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     SSL:" >&5
21769$as_echo "    SSL:" >&6; }
21770		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $SSL_LIBS" >&5
21771$as_echo "        LIBS   = $SSL_LIBS" >&6; }
21772		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $SSL_CFLAGS" >&5
21773$as_echo "        CFLAGS = $SSL_CFLAGS" >&6; }
21774	fi
21775        if test x"$neta_cv_have_libgcrypt" = x"yes"; then
21776                { $as_echo "$as_me:${as_lineno-$LINENO}: result:     LIBGCRYPT:" >&5
21777$as_echo "    LIBGCRYPT:" >&6; }
21778                { $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $LIBGCRYPT_LIBS" >&5
21779$as_echo "        LIBS   = $LIBGCRYPT_LIBS" >&6; }
21780                { $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $LIBGCRYPT_CFLAGS" >&5
21781$as_echo "        CFLAGS = $LIBGCRYPT_CFLAGS" >&6; }
21782        fi
21783	if test x"$netatalk_cv_use_pam" = x"yes"; then
21784		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     PAM:" >&5
21785$as_echo "    PAM:" >&6; }
21786		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $PAM_LIBS" >&5
21787$as_echo "        LIBS   = $PAM_LIBS" >&6; }
21788		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $PAM_CFLAGS" >&5
21789$as_echo "        CFLAGS = $PAM_CFLAGS" >&6; }
21790	fi
21791	if test x"$netatalk_cv_use_pam" = x"yes"; then
21792		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     WRAP:" >&5
21793$as_echo "    WRAP:" >&6; }
21794		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $WRAP_LIBS" >&5
21795$as_echo "        LIBS   = $WRAP_LIBS" >&6; }
21796		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $WRAP_CFLAGS" >&5
21797$as_echo "        CFLAGS = $WRAP_CFLAGS" >&6; }
21798	fi
21799	if test x"$bdb_required" = x"yes"; then
21800		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     BDB:" >&5
21801$as_echo "    BDB:" >&6; }
21802		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $BDB_LIBS" >&5
21803$as_echo "        LIBS   = $BDB_LIBS" >&6; }
21804		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $BDB_CFLAGS" >&5
21805$as_echo "        CFLAGS = $BDB_CFLAGS" >&6; }
21806	fi
21807	if test x"$netatalk_cv_build_krb5_uam" = x"yes"; then
21808		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     GSSAPI:" >&5
21809$as_echo "    GSSAPI:" >&6; }
21810		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $GSSAPI_LIBS" >&5
21811$as_echo "        LIBS   = $GSSAPI_LIBS" >&6; }
21812		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $GSSAPI_CFLAGS" >&5
21813$as_echo "        CFLAGS = $GSSAPI_CFLAGS" >&6; }
21814	fi
21815	if test x"$netatalk_cv_use_cups" = x"yes"; then
21816		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     CUPS:" >&5
21817$as_echo "    CUPS:" >&6; }
21818		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $CUPS_LIBS" >&5
21819$as_echo "        LIBS   = $CUPS_LIBS" >&6; }
21820		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $CUPS_CFLAGS" >&5
21821$as_echo "        CFLAGS = $CUPS_CFLAGS" >&6; }
21822	fi
21823	if test x"$netatalk_cv_zeroconf" = x"yes"; then
21824		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     ZEROCONF:" >&5
21825$as_echo "    ZEROCONF:" >&6; }
21826		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $ZEROCONF_LIBS" >&5
21827$as_echo "        LIBS   = $ZEROCONF_LIBS" >&6; }
21828		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $ZEROCONF_CFLAGS" >&5
21829$as_echo "        CFLAGS = $ZEROCONF_CFLAGS" >&6; }
21830	fi
21831	if test x"$netatalk_cv_ldap" = x"yes"; then
21832		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     LDAP:" >&5
21833$as_echo "    LDAP:" >&6; }
21834		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $LDAP_LDFLAGS $LDAP_LIBS" >&5
21835$as_echo "        LIBS   = $LDAP_LDFLAGS $LDAP_LIBS" >&6; }
21836		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $LDAP_CFLAGS" >&5
21837$as_echo "        CFLAGS = $LDAP_CFLAGS" >&6; }
21838	fi
21839    { $as_echo "$as_me:${as_lineno-$LINENO}: result:     LIBEVENT:" >&5
21840$as_echo "    LIBEVENT:" >&6; }
21841    if test x"$use_bundled_libevent" = x"yes"; then
21842		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         bundled" >&5
21843$as_echo "        bundled" >&6; }
21844    else
21845		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         LIBS   = $LIBEVENT_CFLAGS" >&5
21846$as_echo "        LIBS   = $LIBEVENT_CFLAGS" >&6; }
21847		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:         CFLAGS = $LIBEVENT_LDFLAGS" >&5
21848$as_echo "        CFLAGS = $LIBEVENT_LDFLAGS" >&6; }
21849    fi
21850
21851
21852
21853	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Configure summary:" >&5
21854$as_echo "Configure summary:" >&6; }
21855	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     INIT STYLE:" >&5
21856$as_echo "    INIT STYLE:" >&6; }
21857	if test "x$init_style" != "x"; then
21858		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          $init_style" >&5
21859$as_echo "         $init_style" >&6; }
21860	else
21861		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          none" >&5
21862$as_echo "         none" >&6; }
21863	fi
21864	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     AFP:" >&5
21865$as_echo "    AFP:" >&6; }
21866	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          Extended Attributes: $neta_cv_eas" >&5
21867$as_echo "         Extended Attributes: $neta_cv_eas" >&6; }
21868	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          ACL support: $with_acl_support" >&5
21869$as_echo "         ACL support: $with_acl_support" >&6; }
21870	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     CNID:" >&5
21871$as_echo "    CNID:" >&6; }
21872	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          backends: $compiled_backends" >&5
21873$as_echo "         backends: $compiled_backends" >&6; }
21874	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     UAMS:" >&5
21875$as_echo "    UAMS:" >&6; }
21876	uams_using_options=""
21877	if test x"$netatalk_cv_use_pam" != x"no"; then
21878        	uams_using_options="PAM"
21879	fi
21880	if test "x$netatalk_cv_use_shadowpw" = "xyes"; then
21881        	uams_using_options="$uams_using_options SHADOW"
21882	fi
21883	if test "x$neta_cv_compile_dhx" = "xyes"; then
21884		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          DHX     ($uams_using_options)" >&5
21885$as_echo "         DHX     ($uams_using_options)" >&6; }
21886	fi
21887        if test "x$neta_cv_compile_dhx2" = "xyes"; then
21888                { $as_echo "$as_me:${as_lineno-$LINENO}: result:          DHX2    ($uams_using_options)" >&5
21889$as_echo "         DHX2    ($uams_using_options)" >&6; }
21890        fi
21891	if test "x$neta_cv_have_openssl" = "xyes"; then
21892		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          RANDNUM (afppasswd)" >&5
21893$as_echo "         RANDNUM (afppasswd)" >&6; }
21894	fi
21895	if test x"$netatalk_cv_build_krb5_uam" = x"yes"; then
21896		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          Kerberos V" >&5
21897$as_echo "         Kerberos V" >&6; }
21898	fi
21899	if test x"$compile_pgp" = x"yes"; then
21900		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          PGP" >&5
21901$as_echo "         PGP" >&6; }
21902	fi
21903	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          clrtxt  ($uams_using_options)" >&5
21904$as_echo "         clrtxt  ($uams_using_options)" >&6; }
21905	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          guest" >&5
21906$as_echo "         guest" >&6; }
21907	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     Options:" >&5
21908$as_echo "    Options:" >&6; }
21909	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          Zeroconf support:        $netatalk_cv_zeroconf" >&5
21910$as_echo "         Zeroconf support:        $netatalk_cv_zeroconf" >&6; }
21911	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          tcp wrapper support:     $netatalk_cv_tcpwrap" >&5
21912$as_echo "         tcp wrapper support:     $netatalk_cv_tcpwrap" >&6; }
21913	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          quota support:           $netatalk_cv_quotasupport" >&5
21914$as_echo "         quota support:           $netatalk_cv_quotasupport" >&6; }
21915	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          admin group support:     $netatalk_cv_admin_group" >&5
21916$as_echo "         admin group support:     $netatalk_cv_admin_group" >&6; }
21917	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          valid shell check:       $netatalk_cv_use_shellcheck" >&5
21918$as_echo "         valid shell check:       $netatalk_cv_use_shellcheck" >&6; }
21919	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          cracklib support:        $netatalk_cv_with_cracklib" >&5
21920$as_echo "         cracklib support:        $netatalk_cv_with_cracklib" >&6; }
21921	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          ACL support:             $with_acl_support" >&5
21922$as_echo "         ACL support:             $with_acl_support" >&6; }
21923	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          Kerberos support:        $with_kerberos" >&5
21924$as_echo "         Kerberos support:        $with_kerberos" >&6; }
21925	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          LDAP support:            $netatalk_cv_ldap" >&5
21926$as_echo "         LDAP support:            $netatalk_cv_ldap" >&6; }
21927	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          dbus support:            $atalk_cv_with_dbus" >&5
21928$as_echo "         dbus support:            $atalk_cv_with_dbus" >&6; }
21929	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          dtrace probes:           $WDTRACE" >&5
21930$as_echo "         dtrace probes:           $WDTRACE" >&6; }
21931	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     Paths:" >&5
21932$as_echo "    Paths:" >&6; }
21933	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          Netatalk lockfile:       $ac_cv_netatalk_lock" >&5
21934$as_echo "         Netatalk lockfile:       $ac_cv_netatalk_lock" >&6; }
21935	if test "x$init_style" != x"none"; then
21936		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          init directory:          $ac_cv_init_dir" >&5
21937$as_echo "         init directory:          $ac_cv_init_dir" >&6; }
21938	fi
21939	if test x"$atalk_cv_with_dbus" = x"yes"; then
21940		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          dbus system directory:   $ac_cv_dbus_sysdir" >&5
21941$as_echo "         dbus system directory:   $ac_cv_dbus_sysdir" >&6; }
21942	fi
21943	if test x"$use_pam_so" = x"yes"; then
21944	   if test x"$netatalk_cv_install_pam" = x"yes"; then
21945		{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          pam config directory:    $ac_cv_pamdir" >&5
21946$as_echo "         pam config directory:    $ac_cv_pamdir" >&6; }
21947	   else
21948		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
21949$as_echo "" >&6; }
21950		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  PAM support was configured for your system, but the netatalk PAM configuration file" >&5
21951$as_echo "$as_me: WARNING:  PAM support was configured for your system, but the netatalk PAM configuration file" >&2;}
21952		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  cannot be installed. Please install the config/netatalk.pamd file manually." >&5
21953$as_echo "$as_me: WARNING:  cannot be installed. Please install the config/netatalk.pamd file manually." >&2;}
21954		{ $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
21955$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;}
21956		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  You can also re-run configure and specify --without-pam to disable PAM support." >&5
21957$as_echo "$as_me: WARNING:  You can also re-run configure and specify --without-pam to disable PAM support." >&2;}
21958	   fi
21959	fi
21960	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     Documentation:" >&5
21961$as_echo "    Documentation:" >&6; }
21962	{ $as_echo "$as_me:${as_lineno-$LINENO}: result:          Docbook:                 $XSLTPROC_WORKS" >&5
21963$as_echo "         Docbook:                 $XSLTPROC_WORKS" >&6; }
21964
21965