1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534	case $1 in
535        -*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$ECHO in
557X*--fallback-echo)
558  # Remove one level of quotation (which was required for Make).
559  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560  ;;
561esac
562
563echo=${ECHO-echo}
564if test "X$1" = X--no-reexec; then
565  # Discard the --no-reexec flag, and continue.
566  shift
567elif test "X$1" = X--fallback-echo; then
568  # Avoid inline document here, it may be left over
569  :
570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571  # Yippee, $echo works!
572  :
573else
574  # Restart under the correct shell.
575  exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579  # used as fallback echo
580  shift
581  cat <<EOF
582$*
583EOF
584  exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591if test -z "$ECHO"; then
592if test "X${echo_test_string+set}" != Xset; then
593# find a string as large as possible, as long as the shell can cope with it
594  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597       echo_test_string=`eval $cmd` &&
598       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599    then
600      break
601    fi
602  done
603fi
604
605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607   test "X$echo_testing_string" = "X$echo_test_string"; then
608  :
609else
610  # The Solaris, AIX, and Digital Unix default echo programs unquote
611  # backslashes.  This makes it impossible to quote backslashes using
612  #   echo "$something" | sed 's/\\/\\\\/g'
613  #
614  # So, first we look for a working echo in the user's PATH.
615
616  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617  for dir in $PATH /usr/ucb; do
618    IFS="$lt_save_ifs"
619    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622       test "X$echo_testing_string" = "X$echo_test_string"; then
623      echo="$dir/echo"
624      break
625    fi
626  done
627  IFS="$lt_save_ifs"
628
629  if test "X$echo" = Xecho; then
630    # We didn't find a better echo, so look for alternatives.
631    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633       test "X$echo_testing_string" = "X$echo_test_string"; then
634      # This shell has a builtin print -r that does the trick.
635      echo='print -r'
636    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637	 test "X$CONFIG_SHELL" != X/bin/ksh; then
638      # If we have ksh, try running configure again with it.
639      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640      export ORIGINAL_CONFIG_SHELL
641      CONFIG_SHELL=/bin/ksh
642      export CONFIG_SHELL
643      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644    else
645      # Try using printf.
646      echo='printf %s\n'
647      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649	 test "X$echo_testing_string" = "X$echo_test_string"; then
650	# Cool, printf works
651	:
652      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653	   test "X$echo_testing_string" = 'X\t' &&
654	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655	   test "X$echo_testing_string" = "X$echo_test_string"; then
656	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657	export CONFIG_SHELL
658	SHELL="$CONFIG_SHELL"
659	export SHELL
660	echo="$CONFIG_SHELL $0 --fallback-echo"
661      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662	   test "X$echo_testing_string" = 'X\t' &&
663	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664	   test "X$echo_testing_string" = "X$echo_test_string"; then
665	echo="$CONFIG_SHELL $0 --fallback-echo"
666      else
667	# maybe with a smaller string...
668	prev=:
669
670	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672	  then
673	    break
674	  fi
675	  prev="$cmd"
676	done
677
678	if test "$prev" != 'sed 50q "$0"'; then
679	  echo_test_string=`eval $prev`
680	  export echo_test_string
681	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682	else
683	  # Oops.  We lost completely, so just stick with echo.
684	  echo=echo
685	fi
686      fi
687    fi
688  fi
689fi
690fi
691
692# Copy echo and quote the copy suitably for passing to libtool from
693# the Makefile, instead of quoting the original, which is used later.
694ECHO=$echo
695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697fi
698
699
700
701
702tagnames=${tagnames+${tagnames},}CXX
703
704tagnames=${tagnames+${tagnames},}F77
705
706exec 7<&0 </dev/null 6>&1
707
708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713#
714# Initializations.
715#
716ac_default_prefix=/usr/local
717ac_clean_files=
718ac_config_libobj_dir=.
719LIBOBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732
733ac_unique_file="etc/afpd/main.c"
734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
737#ifdef HAVE_SYS_TYPES_H
738# include <sys/types.h>
739#endif
740#ifdef HAVE_SYS_STAT_H
741# include <sys/stat.h>
742#endif
743#ifdef STDC_HEADERS
744# include <stdlib.h>
745# include <stddef.h>
746#else
747# ifdef HAVE_STDLIB_H
748#  include <stdlib.h>
749# endif
750#endif
751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753#  include <memory.h>
754# endif
755# include <string.h>
756#endif
757#ifdef HAVE_STRINGS_H
758# include <strings.h>
759#endif
760#ifdef HAVE_INTTYPES_H
761# include <inttypes.h>
762#endif
763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
767# include <unistd.h>
768#endif"
769
770ac_header_list=
771ac_subst_vars='GREP
772PERL
773PS
774SHELL
775PATH_SEPARATOR
776PACKAGE_NAME
777PACKAGE_TARNAME
778PACKAGE_VERSION
779PACKAGE_STRING
780PACKAGE_BUGREPORT
781exec_prefix
782prefix
783program_transform_name
784bindir
785sbindir
786libexecdir
787datarootdir
788datadir
789sysconfdir
790sharedstatedir
791localstatedir
792includedir
793oldincludedir
794docdir
795infodir
796htmldir
797dvidir
798pdfdir
799psdir
800libdir
801localedir
802mandir
803DEFS
804ECHO_C
805ECHO_N
806ECHO_T
807LIBS
808build_alias
809host_alias
810target_alias
811NETATALK_VERSION
812build
813build_cpu
814build_vendor
815build_os
816host
817host_cpu
818host_vendor
819host_os
820target
821target_cpu
822target_vendor
823target_os
824INSTALL_PROGRAM
825INSTALL_SCRIPT
826INSTALL_DATA
827am__isrc
828CYGPATH_W
829PACKAGE
830VERSION
831ACLOCAL
832AUTOCONF
833AUTOMAKE
834AUTOHEADER
835MAKEINFO
836install_sh
837STRIP
838INSTALL_STRIP_PROGRAM
839mkdir_p
840AWK
841SET_MAKE
842am__leading_dot
843AMTAR
844am__tar
845am__untar
846MAINTAINER_MODE_TRUE
847MAINTAINER_MODE_FALSE
848MAINT
849CC
850CFLAGS
851LDFLAGS
852CPPFLAGS
853ac_ct_CC
854EXEEXT
855OBJEXT
856DEPDIR
857am__include
858am__quote
859AMDEP_TRUE
860AMDEP_FALSE
861AMDEPBACKSLASH
862CCDEPMODE
863am__fastdepCC_TRUE
864am__fastdepCC_FALSE
865LN_S
866SED
867EGREP
868ECHO
869AR
870RANLIB
871DSYMUTIL
872NMEDIT
873CPP
874CXX
875CXXFLAGS
876ac_ct_CXX
877CXXDEPMODE
878am__fastdepCXX_TRUE
879am__fastdepCXX_FALSE
880CXXCPP
881F77
882FFLAGS
883ac_ct_F77
884LIBTOOL
885LIBADD_DL
886LIBOBJS
887PTHREAD_LIBS
888AFS_LIBS
889AFS_CFLAGS
890PKGCONFDIR
891SERVERTEXT
892ICONV_CFLAGS
893ICONV_LIBS
894BUILD_DBD_DAEMON_TRUE
895BUILD_DBD_DAEMON_FALSE
896USE_CDB_BACKEND_TRUE
897USE_CDB_BACKEND_FALSE
898USE_LAST_BACKEND_TRUE
899USE_LAST_BACKEND_FALSE
900USE_TDB_BACKEND_TRUE
901USE_TDB_BACKEND_FALSE
902DEFAULT_CNID_SCHEME
903compiled_backends
904QUOTA_LIBS
905SLP_LIBS
906SLP_CFLAGS
907PKG_CONFIG
908AVAHI_CFLAGS
909AVAHI_LIBS
910AVAHI_TPOLL_CFLAGS
911AVAHI_TPOLL_LIBS
912ZEROCONF_LIBS
913ZEROCONF_CFLAGS
914PAMDIR
915PAM_CFLAGS
916PAM_LIBS
917PAM_DIRECTIVE
918PAM_AUTH
919PAM_ACCOUNT
920PAM_PASSWORD
921PAM_SESSION
922WRAP_LIBS
923CUPS_CONFIG
924CUPS_CFLAGS
925CUPS_LDFLAGS
926CUPS_LIBS
927USE_SPOOLDIR_TRUE
928USE_SPOOLDIR_FALSE
929SPOOLDIR
930UAMS_PATH
931COMPILE_KERNEL_GCC
932COMPILE_64BIT_KMODULE
933KCFLAGS
934KLDFLAGS
935LIBGCRYPT_CONFIG
936LIBGCRYPT_CFLAGS
937LIBGCRYPT_LIBS
938SSL_CFLAGS
939SSL_LIBS
940BDB_CFLAGS
941BDB_LIBS
942BDB_BIN
943BDB_PATH
944CRYPT_LIBS
945KRB5_CONFIG
946GSSAPI_LIBS
947GSSAPI_CFLAGS
948USE_GSSAPI_TRUE
949USE_GSSAPI_FALSE
950ACL_LIBS
951WEBMIN_PATH
952WEBMIN_VERSION
953WEBMIN_USER
954WEBMIN_PASS
955WEBMIN_PORT
956OVERWRITE_CONFIG
957SOLARIS_MODULE_TRUE
958SOLARIS_MODULE_FALSE
959COMPILE_TIMELORD_TRUE
960COMPILE_TIMELORD_FALSE
961COMPILE_A2BOOT_TRUE
962COMPILE_A2BOOT_FALSE
963HAVE_LIBGCRYPT_TRUE
964HAVE_LIBGCRYPT_FALSE
965HAVE_OPENSSL_TRUE
966HAVE_OPENSSL_FALSE
967HAVE_ACLS_TRUE
968HAVE_ACLS_FALSE
969HAVE_LDAP_TRUE
970HAVE_LDAP_FALSE
971USE_DHX_TRUE
972USE_DHX_FALSE
973USE_DHX2_TRUE
974USE_DHX2_FALSE
975USE_RANDNUM_TRUE
976USE_RANDNUM_FALSE
977USE_KERBEROS_TRUE
978USE_KERBEROS_FALSE
979USE_PAM_SO_TRUE
980USE_PAM_SO_FALSE
981USE_PAM_TRUE
982USE_PAM_FALSE
983BUILD_PAM_TRUE
984BUILD_PAM_FALSE
985USE_PGP_TRUE
986USE_PGP_FALSE
987DEFAULT_HOOK_TRUE
988DEFAULT_HOOK_FALSE
989USE_COBALT_TRUE
990USE_COBALT_FALSE
991USE_NETBSD_TRUE
992USE_NETBSD_FALSE
993USE_REDHAT_TRUE
994USE_REDHAT_FALSE
995USE_SUSE_TRUE
996USE_SUSE_FALSE
997USE_SHADOWPW_TRUE
998USE_SHADOWPW_FALSE
999USE_TRU64_TRUE
1000USE_TRU64_FALSE
1001USE_SOLARIS_TRUE
1002USE_SOLARIS_FALSE
1003USE_GENTOO_TRUE
1004USE_GENTOO_FALSE
1005USE_DEBIAN_TRUE
1006USE_DEBIAN_FALSE
1007USE_UNDEF_TRUE
1008USE_UNDEF_FALSE
1009USE_BDB_TRUE
1010USE_BDB_FALSE
1011USE_APPLETALK_TRUE
1012USE_APPLETALK_FALSE
1013HAVE_ATFUNCS_TRUE
1014HAVE_ATFUNCS_FALSE
1015LTLIBOBJS'
1016ac_subst_files=''
1017      ac_precious_vars='build_alias
1018host_alias
1019target_alias
1020CC
1021CFLAGS
1022LDFLAGS
1023LIBS
1024CPPFLAGS
1025CPP
1026CXX
1027CXXFLAGS
1028CCC
1029CXXCPP
1030F77
1031FFLAGS
1032PKG_CONFIG
1033AVAHI_CFLAGS
1034AVAHI_LIBS
1035AVAHI_TPOLL_CFLAGS
1036AVAHI_TPOLL_LIBS'
1037
1038
1039# Initialize some variables set by options.
1040ac_init_help=
1041ac_init_version=false
1042# The variables have the same names as the options, with
1043# dashes changed to underlines.
1044cache_file=/dev/null
1045exec_prefix=NONE
1046no_create=
1047no_recursion=
1048prefix=NONE
1049program_prefix=NONE
1050program_suffix=NONE
1051program_transform_name=s,x,x,
1052silent=
1053site=
1054srcdir=
1055verbose=
1056x_includes=NONE
1057x_libraries=NONE
1058
1059# Installation directory options.
1060# These are left unexpanded so users can "make install exec_prefix=/foo"
1061# and all the variables that are supposed to be based on exec_prefix
1062# by default will actually change.
1063# Use braces instead of parens because sh, perl, etc. also accept them.
1064# (The list follows the same order as the GNU Coding Standards.)
1065bindir='${exec_prefix}/bin'
1066sbindir='${exec_prefix}/sbin'
1067libexecdir='${exec_prefix}/libexec'
1068datarootdir='${prefix}/share'
1069datadir='${datarootdir}'
1070sysconfdir='${prefix}/etc'
1071sharedstatedir='${prefix}/com'
1072localstatedir='${prefix}/var'
1073includedir='${prefix}/include'
1074oldincludedir='/usr/include'
1075docdir='${datarootdir}/doc/${PACKAGE}'
1076infodir='${datarootdir}/info'
1077htmldir='${docdir}'
1078dvidir='${docdir}'
1079pdfdir='${docdir}'
1080psdir='${docdir}'
1081libdir='${exec_prefix}/lib'
1082localedir='${datarootdir}/locale'
1083mandir='${datarootdir}/man'
1084
1085ac_prev=
1086ac_dashdash=
1087for ac_option
1088do
1089  # If the previous option needs an argument, assign it.
1090  if test -n "$ac_prev"; then
1091    eval $ac_prev=\$ac_option
1092    ac_prev=
1093    continue
1094  fi
1095
1096  case $ac_option in
1097  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1098  *)	ac_optarg=yes ;;
1099  esac
1100
1101  # Accept the important Cygnus configure options, so we can diagnose typos.
1102
1103  case $ac_dashdash$ac_option in
1104  --)
1105    ac_dashdash=yes ;;
1106
1107  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1108    ac_prev=bindir ;;
1109  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1110    bindir=$ac_optarg ;;
1111
1112  -build | --build | --buil | --bui | --bu)
1113    ac_prev=build_alias ;;
1114  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1115    build_alias=$ac_optarg ;;
1116
1117  -cache-file | --cache-file | --cache-fil | --cache-fi \
1118  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1119    ac_prev=cache_file ;;
1120  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1121  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1122    cache_file=$ac_optarg ;;
1123
1124  --config-cache | -C)
1125    cache_file=config.cache ;;
1126
1127  -datadir | --datadir | --datadi | --datad)
1128    ac_prev=datadir ;;
1129  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1130    datadir=$ac_optarg ;;
1131
1132  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1133  | --dataroo | --dataro | --datar)
1134    ac_prev=datarootdir ;;
1135  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1136  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1137    datarootdir=$ac_optarg ;;
1138
1139  -disable-* | --disable-*)
1140    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1141    # Reject names that are not valid shell variable names.
1142    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1143      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1144   { (exit 1); exit 1; }; }
1145    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1146    eval enable_$ac_feature=no ;;
1147
1148  -docdir | --docdir | --docdi | --doc | --do)
1149    ac_prev=docdir ;;
1150  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1151    docdir=$ac_optarg ;;
1152
1153  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1154    ac_prev=dvidir ;;
1155  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1156    dvidir=$ac_optarg ;;
1157
1158  -enable-* | --enable-*)
1159    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1160    # Reject names that are not valid shell variable names.
1161    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1163   { (exit 1); exit 1; }; }
1164    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1165    eval enable_$ac_feature=\$ac_optarg ;;
1166
1167  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1168  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1169  | --exec | --exe | --ex)
1170    ac_prev=exec_prefix ;;
1171  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1172  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1173  | --exec=* | --exe=* | --ex=*)
1174    exec_prefix=$ac_optarg ;;
1175
1176  -gas | --gas | --ga | --g)
1177    # Obsolete; use --with-gas.
1178    with_gas=yes ;;
1179
1180  -help | --help | --hel | --he | -h)
1181    ac_init_help=long ;;
1182  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1183    ac_init_help=recursive ;;
1184  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1185    ac_init_help=short ;;
1186
1187  -host | --host | --hos | --ho)
1188    ac_prev=host_alias ;;
1189  -host=* | --host=* | --hos=* | --ho=*)
1190    host_alias=$ac_optarg ;;
1191
1192  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1193    ac_prev=htmldir ;;
1194  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1195  | --ht=*)
1196    htmldir=$ac_optarg ;;
1197
1198  -includedir | --includedir | --includedi | --included | --include \
1199  | --includ | --inclu | --incl | --inc)
1200    ac_prev=includedir ;;
1201  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1202  | --includ=* | --inclu=* | --incl=* | --inc=*)
1203    includedir=$ac_optarg ;;
1204
1205  -infodir | --infodir | --infodi | --infod | --info | --inf)
1206    ac_prev=infodir ;;
1207  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1208    infodir=$ac_optarg ;;
1209
1210  -libdir | --libdir | --libdi | --libd)
1211    ac_prev=libdir ;;
1212  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1213    libdir=$ac_optarg ;;
1214
1215  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1216  | --libexe | --libex | --libe)
1217    ac_prev=libexecdir ;;
1218  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1219  | --libexe=* | --libex=* | --libe=*)
1220    libexecdir=$ac_optarg ;;
1221
1222  -localedir | --localedir | --localedi | --localed | --locale)
1223    ac_prev=localedir ;;
1224  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1225    localedir=$ac_optarg ;;
1226
1227  -localstatedir | --localstatedir | --localstatedi | --localstated \
1228  | --localstate | --localstat | --localsta | --localst | --locals)
1229    ac_prev=localstatedir ;;
1230  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1231  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1232    localstatedir=$ac_optarg ;;
1233
1234  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1235    ac_prev=mandir ;;
1236  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1237    mandir=$ac_optarg ;;
1238
1239  -nfp | --nfp | --nf)
1240    # Obsolete; use --without-fp.
1241    with_fp=no ;;
1242
1243  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1244  | --no-cr | --no-c | -n)
1245    no_create=yes ;;
1246
1247  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1248  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1249    no_recursion=yes ;;
1250
1251  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1252  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1253  | --oldin | --oldi | --old | --ol | --o)
1254    ac_prev=oldincludedir ;;
1255  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1256  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1257  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1258    oldincludedir=$ac_optarg ;;
1259
1260  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1261    ac_prev=prefix ;;
1262  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1263    prefix=$ac_optarg ;;
1264
1265  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1266  | --program-pre | --program-pr | --program-p)
1267    ac_prev=program_prefix ;;
1268  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1269  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1270    program_prefix=$ac_optarg ;;
1271
1272  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1273  | --program-suf | --program-su | --program-s)
1274    ac_prev=program_suffix ;;
1275  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1276  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1277    program_suffix=$ac_optarg ;;
1278
1279  -program-transform-name | --program-transform-name \
1280  | --program-transform-nam | --program-transform-na \
1281  | --program-transform-n | --program-transform- \
1282  | --program-transform | --program-transfor \
1283  | --program-transfo | --program-transf \
1284  | --program-trans | --program-tran \
1285  | --progr-tra | --program-tr | --program-t)
1286    ac_prev=program_transform_name ;;
1287  -program-transform-name=* | --program-transform-name=* \
1288  | --program-transform-nam=* | --program-transform-na=* \
1289  | --program-transform-n=* | --program-transform-=* \
1290  | --program-transform=* | --program-transfor=* \
1291  | --program-transfo=* | --program-transf=* \
1292  | --program-trans=* | --program-tran=* \
1293  | --progr-tra=* | --program-tr=* | --program-t=*)
1294    program_transform_name=$ac_optarg ;;
1295
1296  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1297    ac_prev=pdfdir ;;
1298  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1299    pdfdir=$ac_optarg ;;
1300
1301  -psdir | --psdir | --psdi | --psd | --ps)
1302    ac_prev=psdir ;;
1303  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1304    psdir=$ac_optarg ;;
1305
1306  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1307  | -silent | --silent | --silen | --sile | --sil)
1308    silent=yes ;;
1309
1310  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1311    ac_prev=sbindir ;;
1312  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1313  | --sbi=* | --sb=*)
1314    sbindir=$ac_optarg ;;
1315
1316  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1317  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1318  | --sharedst | --shareds | --shared | --share | --shar \
1319  | --sha | --sh)
1320    ac_prev=sharedstatedir ;;
1321  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1322  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1323  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1324  | --sha=* | --sh=*)
1325    sharedstatedir=$ac_optarg ;;
1326
1327  -site | --site | --sit)
1328    ac_prev=site ;;
1329  -site=* | --site=* | --sit=*)
1330    site=$ac_optarg ;;
1331
1332  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1333    ac_prev=srcdir ;;
1334  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1335    srcdir=$ac_optarg ;;
1336
1337  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1338  | --syscon | --sysco | --sysc | --sys | --sy)
1339    ac_prev=sysconfdir ;;
1340  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1341  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1342    sysconfdir=$ac_optarg ;;
1343
1344  -target | --target | --targe | --targ | --tar | --ta | --t)
1345    ac_prev=target_alias ;;
1346  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1347    target_alias=$ac_optarg ;;
1348
1349  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1350    verbose=yes ;;
1351
1352  -version | --version | --versio | --versi | --vers | -V)
1353    ac_init_version=: ;;
1354
1355  -with-* | --with-*)
1356    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1357    # Reject names that are not valid shell variable names.
1358    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1359      { echo "$as_me: error: invalid package name: $ac_package" >&2
1360   { (exit 1); exit 1; }; }
1361    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1362    eval with_$ac_package=\$ac_optarg ;;
1363
1364  -without-* | --without-*)
1365    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1366    # Reject names that are not valid shell variable names.
1367    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1368      { echo "$as_me: error: invalid package name: $ac_package" >&2
1369   { (exit 1); exit 1; }; }
1370    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1371    eval with_$ac_package=no ;;
1372
1373  --x)
1374    # Obsolete; use --with-x.
1375    with_x=yes ;;
1376
1377  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1378  | --x-incl | --x-inc | --x-in | --x-i)
1379    ac_prev=x_includes ;;
1380  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1381  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1382    x_includes=$ac_optarg ;;
1383
1384  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1385  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1386    ac_prev=x_libraries ;;
1387  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1388  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1389    x_libraries=$ac_optarg ;;
1390
1391  -*) { echo "$as_me: error: unrecognized option: $ac_option
1392Try \`$0 --help' for more information." >&2
1393   { (exit 1); exit 1; }; }
1394    ;;
1395
1396  *=*)
1397    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1398    # Reject names that are not valid shell variable names.
1399    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1400      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1401   { (exit 1); exit 1; }; }
1402    eval $ac_envvar=\$ac_optarg
1403    export $ac_envvar ;;
1404
1405  *)
1406    # FIXME: should be removed in autoconf 3.0.
1407    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1408    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1409      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1410    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1411    ;;
1412
1413  esac
1414done
1415
1416if test -n "$ac_prev"; then
1417  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1418  { echo "$as_me: error: missing argument to $ac_option" >&2
1419   { (exit 1); exit 1; }; }
1420fi
1421
1422# Be sure to have absolute directory names.
1423for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1424		datadir sysconfdir sharedstatedir localstatedir includedir \
1425		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1426		libdir localedir mandir
1427do
1428  eval ac_val=\$$ac_var
1429  case $ac_val in
1430    [\\/$]* | ?:[\\/]* )  continue;;
1431    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1432  esac
1433  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1434   { (exit 1); exit 1; }; }
1435done
1436
1437# There might be people who depend on the old broken behavior: `$host'
1438# used to hold the argument of --host etc.
1439# FIXME: To remove some day.
1440build=$build_alias
1441host=$host_alias
1442target=$target_alias
1443
1444# FIXME: To remove some day.
1445if test "x$host_alias" != x; then
1446  if test "x$build_alias" = x; then
1447    cross_compiling=maybe
1448    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1449    If a cross compiler is detected then cross compile mode will be used." >&2
1450  elif test "x$build_alias" != "x$host_alias"; then
1451    cross_compiling=yes
1452  fi
1453fi
1454
1455ac_tool_prefix=
1456test -n "$host_alias" && ac_tool_prefix=$host_alias-
1457
1458test "$silent" = yes && exec 6>/dev/null
1459
1460
1461ac_pwd=`pwd` && test -n "$ac_pwd" &&
1462ac_ls_di=`ls -di .` &&
1463ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1464  { echo "$as_me: error: Working directory cannot be determined" >&2
1465   { (exit 1); exit 1; }; }
1466test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1467  { echo "$as_me: error: pwd does not report name of working directory" >&2
1468   { (exit 1); exit 1; }; }
1469
1470
1471# Find the source files, if location was not specified.
1472if test -z "$srcdir"; then
1473  ac_srcdir_defaulted=yes
1474  # Try the directory containing this script, then the parent directory.
1475  ac_confdir=`$as_dirname -- "$0" ||
1476$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1477	 X"$0" : 'X\(//\)[^/]' \| \
1478	 X"$0" : 'X\(//\)$' \| \
1479	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1480echo X"$0" |
1481    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1482	    s//\1/
1483	    q
1484	  }
1485	  /^X\(\/\/\)[^/].*/{
1486	    s//\1/
1487	    q
1488	  }
1489	  /^X\(\/\/\)$/{
1490	    s//\1/
1491	    q
1492	  }
1493	  /^X\(\/\).*/{
1494	    s//\1/
1495	    q
1496	  }
1497	  s/.*/./; q'`
1498  srcdir=$ac_confdir
1499  if test ! -r "$srcdir/$ac_unique_file"; then
1500    srcdir=..
1501  fi
1502else
1503  ac_srcdir_defaulted=no
1504fi
1505if test ! -r "$srcdir/$ac_unique_file"; then
1506  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1507  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1508   { (exit 1); exit 1; }; }
1509fi
1510ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1511ac_abs_confdir=`(
1512	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1513   { (exit 1); exit 1; }; }
1514	pwd)`
1515# When building in place, set srcdir=.
1516if test "$ac_abs_confdir" = "$ac_pwd"; then
1517  srcdir=.
1518fi
1519# Remove unnecessary trailing slashes from srcdir.
1520# Double slashes in file names in object file debugging info
1521# mess up M-x gdb in Emacs.
1522case $srcdir in
1523*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1524esac
1525for ac_var in $ac_precious_vars; do
1526  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1527  eval ac_env_${ac_var}_value=\$${ac_var}
1528  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1529  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1530done
1531
1532#
1533# Report the --help message.
1534#
1535if test "$ac_init_help" = "long"; then
1536  # Omit some internal or obsolete options to make the list less imposing.
1537  # This message is too long to be a string in the A/UX 3.1 sh.
1538  cat <<_ACEOF
1539\`configure' configures this package to adapt to many kinds of systems.
1540
1541Usage: $0 [OPTION]... [VAR=VALUE]...
1542
1543To assign environment variables (e.g., CC, CFLAGS...), specify them as
1544VAR=VALUE.  See below for descriptions of some of the useful variables.
1545
1546Defaults for the options are specified in brackets.
1547
1548Configuration:
1549  -h, --help              display this help and exit
1550      --help=short        display options specific to this package
1551      --help=recursive    display the short help of all the included packages
1552  -V, --version           display version information and exit
1553  -q, --quiet, --silent   do not print \`checking...' messages
1554      --cache-file=FILE   cache test results in FILE [disabled]
1555  -C, --config-cache      alias for \`--cache-file=config.cache'
1556  -n, --no-create         do not create output files
1557      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1558
1559Installation directories:
1560  --prefix=PREFIX         install architecture-independent files in PREFIX
1561			  [$ac_default_prefix]
1562  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1563			  [PREFIX]
1564
1565By default, \`make install' will install all the files in
1566\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1567an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1568for instance \`--prefix=\$HOME'.
1569
1570For better control, use the options below.
1571
1572Fine tuning of the installation directories:
1573  --bindir=DIR           user executables [EPREFIX/bin]
1574  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1575  --libexecdir=DIR       program executables [EPREFIX/libexec]
1576  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1577  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1578  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1579  --libdir=DIR           object code libraries [EPREFIX/lib]
1580  --includedir=DIR       C header files [PREFIX/include]
1581  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1582  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1583  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1584  --infodir=DIR          info documentation [DATAROOTDIR/info]
1585  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1586  --mandir=DIR           man documentation [DATAROOTDIR/man]
1587  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1588  --htmldir=DIR          html documentation [DOCDIR]
1589  --dvidir=DIR           dvi documentation [DOCDIR]
1590  --pdfdir=DIR           pdf documentation [DOCDIR]
1591  --psdir=DIR            ps documentation [DOCDIR]
1592_ACEOF
1593
1594  cat <<\_ACEOF
1595
1596Program names:
1597  --program-prefix=PREFIX            prepend PREFIX to installed program names
1598  --program-suffix=SUFFIX            append SUFFIX to installed program names
1599  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1600
1601System types:
1602  --build=BUILD     configure for building on BUILD [guessed]
1603  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1604  --target=TARGET   configure for building compilers for TARGET [HOST]
1605_ACEOF
1606fi
1607
1608if test -n "$ac_init_help"; then
1609
1610  cat <<\_ACEOF
1611
1612Optional Features:
1613  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1614  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1615  --enable-maintainer-mode  enable make rules and dependencies not useful
1616			  (and sometimes confusing) to the casual installer
1617  --disable-dependency-tracking  speeds up one-time build
1618  --enable-dependency-tracking   do not reject slow dependency extractors
1619  --enable-shared[=PKGS]  build shared libraries [default=yes]
1620  --enable-static[=PKGS]  build static libraries [default=yes]
1621  --enable-fast-install[=PKGS]
1622                          optimize for fast installation [default=yes]
1623  --disable-libtool-lock  avoid locking (might break parallel builds)
1624  --disable-admin-group   disable admin group
1625  --enable-afs            enable AFS support
1626  --enable-ddp            enable DDP (AppleTalk)
1627  --enable-debug1         enable debug code
1628  --enable-debug          enable verbose debug code
1629  --enable-debugging      disable SIGALRM timers and DSI tickles (eg for debugging with gdb/dbx/...)
1630  --disable-largefile     omit support for large files
1631  --enable-dropkludge     enable the experimental dropbox fix (INSECURE!)
1632  --enable-force-uidgid   allow forcing of uid/gid per volume (BROKEN)
1633  --enable-quota           Turn on quota support (default=auto)
1634  --enable-srvloc[=DIR]   enable Server Location Protocol (SLP) support
1635  --enable-zeroconf[=DIR]   enable Zeroconf support [auto]
1636  --disable-shell-check   disable checking for a valid shell
1637  --disable-tcp-wrappers  disable TCP wrappers support
1638  --disable-locking       disable system locking
1639  --enable-redhat         use redhat-style sysv configuration
1640  --enable-suse           use suse-style sysv configuration
1641  --enable-gentoo         use gentoo-style sysv configuration
1642  --enable-cobalt         use cobalt-style sysv configuration
1643  --enable-netbsd         use NetBSD-style rc.d configuration
1644  --enable-debian         use debian-style sysv configuration
1645  --enable-timelord       enable compilation of timelord server
1646  --enable-a2boot         enable compilation of Apple2 boot server
1647  --enable-cups           Turn on CUPS support (default=auto)
1648  --enable-fhs            use Filesystem Hierarchy Standard (FHS) compatibility
1649  --disable-sendfile       disable linux sendfile syscall
1650  --enable-pgp-uam        enable build of PGP UAM module
1651  --enable-krb4-uam       enable build of Kerberos v4 UAM module
1652  --enable-krbV-uam       enable build of Kerberos V UAM module
1653  --enable-overwrite      overwrite configuration files during installation
1654
1655Optional Packages:
1656  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1657  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1658  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1659  --with-pic              try to use only PIC/non-PIC objects [default=use
1660                          both]
1661  --with-tags[=TAGS]      include additional configurations [automatic]
1662  --with-pkgconfdir=DIR   package specific configuration in DIR
1663                          [SYSCONF/netatalk]
1664  --with-message-dir=PATH path to server message files [PKGCONF/msg]
1665  --with-cracklib=DICT    enable/set location of cracklib dictionary
1666  --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include [default=auto]
1667  --with-cnid-dbd-backend       build CNID with Database Daemon Data Store [yes]
1668  --with-cnid-cdb-backend	build CNID with Concurrent BDB Data Store  [no]
1669  --with-cnid-last-backend	build LAST CNID scheme                     [yes]
1670  --with-cnid-tdb-backend	build TDB CNID scheme                      [yes]
1671  --with-cnid-default-backend=val	set default DID scheme [dbd]
1672  --with-pam[=PATH]       specify path to PAM installation [auto]
1673  --with-shadow           enable shadow password support [auto]
1674  --with-uams-path=PATH   path to UAMs [PKGCONF/uams]
1675  --with-spooldir=PATH     path for spooldir used for CUPS support (LOCALSTATEDIR/spool/netatalk)
1676  --with-libgcrypt-dir=PATH
1677                          path where LIBGCRYPT is installed (optional). Must
1678                          contain lib and include dirs.
1679  --with-ssl-dir=PATH     specify path to OpenSSL installation (must contain
1680                          lib and include dirs)
1681  --with-bdb=PATH         specify path to Berkeley DB installation[auto]
1682  --with-gssapi[=PATH]    path to GSSAPI for Kerberos V UAM [auto]
1683  --with-ldap             LDAP support (default=auto)
1684  --with-acls             Include ACL support (default=auto)
1685  --with-webmin=PATH      path where webmin is installed [$PKGCONFDIR/webmin]
1686  --with-webminuser=NAME      name for the webmin admin user
1687  --with-webminversion=VERSION   Webmin version to fetch from sf.net [1.490]
1688  --with-webminpass=PASSWORD  password for the webmin admin user
1689  --with-webminport=PORT  TCP port for webmin
1690
1691Some influential environment variables:
1692  CC          C compiler command
1693  CFLAGS      C compiler flags
1694  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1695              nonstandard directory <lib dir>
1696  LIBS        libraries to pass to the linker, e.g. -l<library>
1697  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1698              you have headers in a nonstandard directory <include dir>
1699  CPP         C preprocessor
1700  CXX         C++ compiler command
1701  CXXFLAGS    C++ compiler flags
1702  CXXCPP      C++ preprocessor
1703  F77         Fortran 77 compiler command
1704  FFLAGS      Fortran 77 compiler flags
1705  PKG_CONFIG  path to pkg-config utility
1706  AVAHI_CFLAGS
1707              C compiler flags for AVAHI, overriding pkg-config
1708  AVAHI_LIBS  linker flags for AVAHI, overriding pkg-config
1709  AVAHI_TPOLL_CFLAGS
1710              C compiler flags for AVAHI_TPOLL, overriding pkg-config
1711  AVAHI_TPOLL_LIBS
1712              linker flags for AVAHI_TPOLL, overriding pkg-config
1713
1714Use these variables to override the choices made by `configure' or to help
1715it to find libraries and programs with nonstandard names/locations.
1716
1717_ACEOF
1718ac_status=$?
1719fi
1720
1721if test "$ac_init_help" = "recursive"; then
1722  # If there are subdirs, report their specific --help.
1723  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1724    test -d "$ac_dir" || continue
1725    ac_builddir=.
1726
1727case "$ac_dir" in
1728.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729*)
1730  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1731  # A ".." for each directory in $ac_dir_suffix.
1732  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1733  case $ac_top_builddir_sub in
1734  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1736  esac ;;
1737esac
1738ac_abs_top_builddir=$ac_pwd
1739ac_abs_builddir=$ac_pwd$ac_dir_suffix
1740# for backward compatibility:
1741ac_top_builddir=$ac_top_build_prefix
1742
1743case $srcdir in
1744  .)  # We are building in place.
1745    ac_srcdir=.
1746    ac_top_srcdir=$ac_top_builddir_sub
1747    ac_abs_top_srcdir=$ac_pwd ;;
1748  [\\/]* | ?:[\\/]* )  # Absolute name.
1749    ac_srcdir=$srcdir$ac_dir_suffix;
1750    ac_top_srcdir=$srcdir
1751    ac_abs_top_srcdir=$srcdir ;;
1752  *) # Relative name.
1753    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1754    ac_top_srcdir=$ac_top_build_prefix$srcdir
1755    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1756esac
1757ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1758
1759    cd "$ac_dir" || { ac_status=$?; continue; }
1760    # Check for guested configure.
1761    if test -f "$ac_srcdir/configure.gnu"; then
1762      echo &&
1763      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1764    elif test -f "$ac_srcdir/configure"; then
1765      echo &&
1766      $SHELL "$ac_srcdir/configure" --help=recursive
1767    else
1768      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1769    fi || ac_status=$?
1770    cd "$ac_pwd" || { ac_status=$?; break; }
1771  done
1772fi
1773
1774test -n "$ac_init_help" && exit $ac_status
1775if $ac_init_version; then
1776  cat <<\_ACEOF
1777configure
1778generated by GNU Autoconf 2.61
1779
1780Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17812002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1782This configure script is free software; the Free Software Foundation
1783gives unlimited permission to copy, distribute and modify it.
1784_ACEOF
1785  exit
1786fi
1787cat >config.log <<_ACEOF
1788This file contains any messages produced by compilers while
1789running configure, to aid debugging if configure makes a mistake.
1790
1791It was created by $as_me, which was
1792generated by GNU Autoconf 2.61.  Invocation command line was
1793
1794  $ $0 $@
1795
1796_ACEOF
1797exec 5>>config.log
1798{
1799cat <<_ASUNAME
1800## --------- ##
1801## Platform. ##
1802## --------- ##
1803
1804hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1805uname -m = `(uname -m) 2>/dev/null || echo unknown`
1806uname -r = `(uname -r) 2>/dev/null || echo unknown`
1807uname -s = `(uname -s) 2>/dev/null || echo unknown`
1808uname -v = `(uname -v) 2>/dev/null || echo unknown`
1809
1810/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1811/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1812
1813/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1814/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1815/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1816/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1817/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1818/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1819/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1820
1821_ASUNAME
1822
1823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824for as_dir in $PATH
1825do
1826  IFS=$as_save_IFS
1827  test -z "$as_dir" && as_dir=.
1828  echo "PATH: $as_dir"
1829done
1830IFS=$as_save_IFS
1831
1832} >&5
1833
1834cat >&5 <<_ACEOF
1835
1836
1837## ----------- ##
1838## Core tests. ##
1839## ----------- ##
1840
1841_ACEOF
1842
1843
1844# Keep a trace of the command line.
1845# Strip out --no-create and --no-recursion so they do not pile up.
1846# Strip out --silent because we don't want to record it for future runs.
1847# Also quote any args containing shell meta-characters.
1848# Make two passes to allow for proper duplicate-argument suppression.
1849ac_configure_args=
1850ac_configure_args0=
1851ac_configure_args1=
1852ac_must_keep_next=false
1853for ac_pass in 1 2
1854do
1855  for ac_arg
1856  do
1857    case $ac_arg in
1858    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1859    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1860    | -silent | --silent | --silen | --sile | --sil)
1861      continue ;;
1862    *\'*)
1863      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1864    esac
1865    case $ac_pass in
1866    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1867    2)
1868      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1869      if test $ac_must_keep_next = true; then
1870	ac_must_keep_next=false # Got value, back to normal.
1871      else
1872	case $ac_arg in
1873	  *=* | --config-cache | -C | -disable-* | --disable-* \
1874	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1875	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1876	  | -with-* | --with-* | -without-* | --without-* | --x)
1877	    case "$ac_configure_args0 " in
1878	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1879	    esac
1880	    ;;
1881	  -* ) ac_must_keep_next=true ;;
1882	esac
1883      fi
1884      ac_configure_args="$ac_configure_args '$ac_arg'"
1885      ;;
1886    esac
1887  done
1888done
1889$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1890$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1891
1892# When interrupted or exit'd, cleanup temporary files, and complete
1893# config.log.  We remove comments because anyway the quotes in there
1894# would cause problems or look ugly.
1895# WARNING: Use '\'' to represent an apostrophe within the trap.
1896# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1897trap 'exit_status=$?
1898  # Save into config.log some information that might help in debugging.
1899  {
1900    echo
1901
1902    cat <<\_ASBOX
1903## ---------------- ##
1904## Cache variables. ##
1905## ---------------- ##
1906_ASBOX
1907    echo
1908    # The following way of writing the cache mishandles newlines in values,
1909(
1910  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1911    eval ac_val=\$$ac_var
1912    case $ac_val in #(
1913    *${as_nl}*)
1914      case $ac_var in #(
1915      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1916echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1917      esac
1918      case $ac_var in #(
1919      _ | IFS | as_nl) ;; #(
1920      *) $as_unset $ac_var ;;
1921      esac ;;
1922    esac
1923  done
1924  (set) 2>&1 |
1925    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1926    *${as_nl}ac_space=\ *)
1927      sed -n \
1928	"s/'\''/'\''\\\\'\'''\''/g;
1929	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1930      ;; #(
1931    *)
1932      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1933      ;;
1934    esac |
1935    sort
1936)
1937    echo
1938
1939    cat <<\_ASBOX
1940## ----------------- ##
1941## Output variables. ##
1942## ----------------- ##
1943_ASBOX
1944    echo
1945    for ac_var in $ac_subst_vars
1946    do
1947      eval ac_val=\$$ac_var
1948      case $ac_val in
1949      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1950      esac
1951      echo "$ac_var='\''$ac_val'\''"
1952    done | sort
1953    echo
1954
1955    if test -n "$ac_subst_files"; then
1956      cat <<\_ASBOX
1957## ------------------- ##
1958## File substitutions. ##
1959## ------------------- ##
1960_ASBOX
1961      echo
1962      for ac_var in $ac_subst_files
1963      do
1964	eval ac_val=\$$ac_var
1965	case $ac_val in
1966	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1967	esac
1968	echo "$ac_var='\''$ac_val'\''"
1969      done | sort
1970      echo
1971    fi
1972
1973    if test -s confdefs.h; then
1974      cat <<\_ASBOX
1975## ----------- ##
1976## confdefs.h. ##
1977## ----------- ##
1978_ASBOX
1979      echo
1980      cat confdefs.h
1981      echo
1982    fi
1983    test "$ac_signal" != 0 &&
1984      echo "$as_me: caught signal $ac_signal"
1985    echo "$as_me: exit $exit_status"
1986  } >&5
1987  rm -f core *.core core.conftest.* &&
1988    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1989    exit $exit_status
1990' 0
1991for ac_signal in 1 2 13 15; do
1992  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1993done
1994ac_signal=0
1995
1996# confdefs.h avoids OS command line length limits that DEFS can exceed.
1997rm -f -r conftest* confdefs.h
1998
1999# Predefined preprocessor variables.
2000
2001cat >>confdefs.h <<_ACEOF
2002#define PACKAGE_NAME "$PACKAGE_NAME"
2003_ACEOF
2004
2005
2006cat >>confdefs.h <<_ACEOF
2007#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2008_ACEOF
2009
2010
2011cat >>confdefs.h <<_ACEOF
2012#define PACKAGE_VERSION "$PACKAGE_VERSION"
2013_ACEOF
2014
2015
2016cat >>confdefs.h <<_ACEOF
2017#define PACKAGE_STRING "$PACKAGE_STRING"
2018_ACEOF
2019
2020
2021cat >>confdefs.h <<_ACEOF
2022#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2023_ACEOF
2024
2025
2026# Let the site file select an alternate cache file if it wants to.
2027# Prefer explicitly selected file to automatically selected ones.
2028if test -n "$CONFIG_SITE"; then
2029  set x "$CONFIG_SITE"
2030elif test "x$prefix" != xNONE; then
2031  set x "$prefix/share/config.site" "$prefix/etc/config.site"
2032else
2033  set x "$ac_default_prefix/share/config.site" \
2034	"$ac_default_prefix/etc/config.site"
2035fi
2036shift
2037for ac_site_file
2038do
2039  if test -r "$ac_site_file"; then
2040    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2041echo "$as_me: loading site script $ac_site_file" >&6;}
2042    sed 's/^/| /' "$ac_site_file" >&5
2043    . "$ac_site_file"
2044  fi
2045done
2046
2047if test -r "$cache_file"; then
2048  # Some versions of bash will fail to source /dev/null (special
2049  # files actually), so we avoid doing that.
2050  if test -f "$cache_file"; then
2051    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2052echo "$as_me: loading cache $cache_file" >&6;}
2053    case $cache_file in
2054      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2055      *)                      . "./$cache_file";;
2056    esac
2057  fi
2058else
2059  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2060echo "$as_me: creating cache $cache_file" >&6;}
2061  >$cache_file
2062fi
2063
2064ac_header_list="$ac_header_list utime.h"
2065# Check that the precious variables saved in the cache have kept the same
2066# value.
2067ac_cache_corrupted=false
2068for ac_var in $ac_precious_vars; do
2069  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2070  eval ac_new_set=\$ac_env_${ac_var}_set
2071  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2072  eval ac_new_val=\$ac_env_${ac_var}_value
2073  case $ac_old_set,$ac_new_set in
2074    set,)
2075      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2076echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2077      ac_cache_corrupted=: ;;
2078    ,set)
2079      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2080echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2081      ac_cache_corrupted=: ;;
2082    ,);;
2083    *)
2084      if test "x$ac_old_val" != "x$ac_new_val"; then
2085	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2086echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2087	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2088echo "$as_me:   former value:  $ac_old_val" >&2;}
2089	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2090echo "$as_me:   current value: $ac_new_val" >&2;}
2091	ac_cache_corrupted=:
2092      fi;;
2093  esac
2094  # Pass precious variables to config.status.
2095  if test "$ac_new_set" = set; then
2096    case $ac_new_val in
2097    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2098    *) ac_arg=$ac_var=$ac_new_val ;;
2099    esac
2100    case " $ac_configure_args " in
2101      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2102      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2103    esac
2104  fi
2105done
2106if $ac_cache_corrupted; then
2107  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2108echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2109  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2110echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2111   { (exit 1); exit 1; }; }
2112fi
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130ac_ext=c
2131ac_cpp='$CPP $CPPFLAGS'
2132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2134ac_compiler_gnu=$ac_cv_c_compiler_gnu
2135
2136
2137
2138NETATALK_VERSION=`cat $srcdir/VERSION`
2139
2140
2141ac_aux_dir=
2142for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2143  if test -f "$ac_dir/install-sh"; then
2144    ac_aux_dir=$ac_dir
2145    ac_install_sh="$ac_aux_dir/install-sh -c"
2146    break
2147  elif test -f "$ac_dir/install.sh"; then
2148    ac_aux_dir=$ac_dir
2149    ac_install_sh="$ac_aux_dir/install.sh -c"
2150    break
2151  elif test -f "$ac_dir/shtool"; then
2152    ac_aux_dir=$ac_dir
2153    ac_install_sh="$ac_aux_dir/shtool install -c"
2154    break
2155  fi
2156done
2157if test -z "$ac_aux_dir"; then
2158  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2159echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2160   { (exit 1); exit 1; }; }
2161fi
2162
2163# These three variables are undocumented and unsupported,
2164# and are intended to be withdrawn in a future Autoconf release.
2165# They can cause serious problems if a builder's source tree is in a directory
2166# whose full name contains unusual characters.
2167ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2168ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2169ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2170
2171
2172# Make sure we can run config.sub.
2173$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2174  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2175echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2176   { (exit 1); exit 1; }; }
2177
2178{ echo "$as_me:$LINENO: checking build system type" >&5
2179echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2180if test "${ac_cv_build+set}" = set; then
2181  echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
2183  ac_build_alias=$build_alias
2184test "x$ac_build_alias" = x &&
2185  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2186test "x$ac_build_alias" = x &&
2187  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2188echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2189   { (exit 1); exit 1; }; }
2190ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2191  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2192echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2193   { (exit 1); exit 1; }; }
2194
2195fi
2196{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2197echo "${ECHO_T}$ac_cv_build" >&6; }
2198case $ac_cv_build in
2199*-*-*) ;;
2200*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2201echo "$as_me: error: invalid value of canonical build" >&2;}
2202   { (exit 1); exit 1; }; };;
2203esac
2204build=$ac_cv_build
2205ac_save_IFS=$IFS; IFS='-'
2206set x $ac_cv_build
2207shift
2208build_cpu=$1
2209build_vendor=$2
2210shift; shift
2211# Remember, the first character of IFS is used to create $*,
2212# except with old shells:
2213build_os=$*
2214IFS=$ac_save_IFS
2215case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2216
2217
2218{ echo "$as_me:$LINENO: checking host system type" >&5
2219echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2220if test "${ac_cv_host+set}" = set; then
2221  echo $ECHO_N "(cached) $ECHO_C" >&6
2222else
2223  if test "x$host_alias" = x; then
2224  ac_cv_host=$ac_cv_build
2225else
2226  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2227    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2228echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2229   { (exit 1); exit 1; }; }
2230fi
2231
2232fi
2233{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2234echo "${ECHO_T}$ac_cv_host" >&6; }
2235case $ac_cv_host in
2236*-*-*) ;;
2237*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2238echo "$as_me: error: invalid value of canonical host" >&2;}
2239   { (exit 1); exit 1; }; };;
2240esac
2241host=$ac_cv_host
2242ac_save_IFS=$IFS; IFS='-'
2243set x $ac_cv_host
2244shift
2245host_cpu=$1
2246host_vendor=$2
2247shift; shift
2248# Remember, the first character of IFS is used to create $*,
2249# except with old shells:
2250host_os=$*
2251IFS=$ac_save_IFS
2252case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2253
2254
2255{ echo "$as_me:$LINENO: checking target system type" >&5
2256echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2257if test "${ac_cv_target+set}" = set; then
2258  echo $ECHO_N "(cached) $ECHO_C" >&6
2259else
2260  if test "x$target_alias" = x; then
2261  ac_cv_target=$ac_cv_host
2262else
2263  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2264    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2265echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2266   { (exit 1); exit 1; }; }
2267fi
2268
2269fi
2270{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2271echo "${ECHO_T}$ac_cv_target" >&6; }
2272case $ac_cv_target in
2273*-*-*) ;;
2274*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2275echo "$as_me: error: invalid value of canonical target" >&2;}
2276   { (exit 1); exit 1; }; };;
2277esac
2278target=$ac_cv_target
2279ac_save_IFS=$IFS; IFS='-'
2280set x $ac_cv_target
2281shift
2282target_cpu=$1
2283target_vendor=$2
2284shift; shift
2285# Remember, the first character of IFS is used to create $*,
2286# except with old shells:
2287target_os=$*
2288IFS=$ac_save_IFS
2289case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2290
2291
2292# The aliases save the names the user supplied, while $host etc.
2293# will get canonicalized.
2294test -n "$target_alias" &&
2295  test "$program_prefix$program_suffix$program_transform_name" = \
2296    NONENONEs,x,x, &&
2297  program_prefix=${target_alias}-
2298am__api_version='1.10'
2299
2300# Find a good install program.  We prefer a C program (faster),
2301# so one script is as good as another.  But avoid the broken or
2302# incompatible versions:
2303# SysV /etc/install, /usr/sbin/install
2304# SunOS /usr/etc/install
2305# IRIX /sbin/install
2306# AIX /bin/install
2307# AmigaOS /C/install, which installs bootblocks on floppy discs
2308# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2309# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2310# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2311# OS/2's system install, which has a completely different semantic
2312# ./install, which can be erroneously created by make from ./install.sh.
2313{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2314echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2315if test -z "$INSTALL"; then
2316if test "${ac_cv_path_install+set}" = set; then
2317  echo $ECHO_N "(cached) $ECHO_C" >&6
2318else
2319  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320for as_dir in $PATH
2321do
2322  IFS=$as_save_IFS
2323  test -z "$as_dir" && as_dir=.
2324  # Account for people who put trailing slashes in PATH elements.
2325case $as_dir/ in
2326  ./ | .// | /cC/* | \
2327  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2328  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2329  /usr/ucb/* ) ;;
2330  *)
2331    # OSF1 and SCO ODT 3.0 have their own names for install.
2332    # Don't use installbsd from OSF since it installs stuff as root
2333    # by default.
2334    for ac_prog in ginstall scoinst install; do
2335      for ac_exec_ext in '' $ac_executable_extensions; do
2336	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2337	  if test $ac_prog = install &&
2338	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2339	    # AIX install.  It has an incompatible calling convention.
2340	    :
2341	  elif test $ac_prog = install &&
2342	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2343	    # program-specific install script used by HP pwplus--don't use.
2344	    :
2345	  else
2346	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2347	    break 3
2348	  fi
2349	fi
2350      done
2351    done
2352    ;;
2353esac
2354done
2355IFS=$as_save_IFS
2356
2357
2358fi
2359  if test "${ac_cv_path_install+set}" = set; then
2360    INSTALL=$ac_cv_path_install
2361  else
2362    # As a last resort, use the slow shell script.  Don't cache a
2363    # value for INSTALL within a source directory, because that will
2364    # break other packages using the cache if that directory is
2365    # removed, or if the value is a relative name.
2366    INSTALL=$ac_install_sh
2367  fi
2368fi
2369{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2370echo "${ECHO_T}$INSTALL" >&6; }
2371
2372# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2373# It thinks the first close brace ends the variable substitution.
2374test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2375
2376test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2377
2378test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2379
2380{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2381echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2382# Just in case
2383sleep 1
2384echo timestamp > conftest.file
2385# Do `set' in a subshell so we don't clobber the current shell's
2386# arguments.  Must try -L first in case configure is actually a
2387# symlink; some systems play weird games with the mod time of symlinks
2388# (eg FreeBSD returns the mod time of the symlink's containing
2389# directory).
2390if (
2391   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2392   if test "$*" = "X"; then
2393      # -L didn't work.
2394      set X `ls -t $srcdir/configure conftest.file`
2395   fi
2396   rm -f conftest.file
2397   if test "$*" != "X $srcdir/configure conftest.file" \
2398      && test "$*" != "X conftest.file $srcdir/configure"; then
2399
2400      # If neither matched, then we have a broken ls.  This can happen
2401      # if, for instance, CONFIG_SHELL is bash and it inherits a
2402      # broken ls alias from the environment.  This has actually
2403      # happened.  Such a system could not be considered "sane".
2404      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2405alias in your environment" >&5
2406echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2407alias in your environment" >&2;}
2408   { (exit 1); exit 1; }; }
2409   fi
2410
2411   test "$2" = conftest.file
2412   )
2413then
2414   # Ok.
2415   :
2416else
2417   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2418Check your system clock" >&5
2419echo "$as_me: error: newly created file is older than distributed files!
2420Check your system clock" >&2;}
2421   { (exit 1); exit 1; }; }
2422fi
2423{ echo "$as_me:$LINENO: result: yes" >&5
2424echo "${ECHO_T}yes" >&6; }
2425test "$program_prefix" != NONE &&
2426  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2427# Use a double $ so make ignores it.
2428test "$program_suffix" != NONE &&
2429  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2430# Double any \ or $.  echo might interpret backslashes.
2431# By default was `s,x,x', remove it if useless.
2432cat <<\_ACEOF >conftest.sed
2433s/[\\$]/&&/g;s/;s,x,x,$//
2434_ACEOF
2435program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2436rm -f conftest.sed
2437
2438# expand $ac_aux_dir to an absolute path
2439am_aux_dir=`cd $ac_aux_dir && pwd`
2440
2441test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2442# Use eval to expand $SHELL
2443if eval "$MISSING --run true"; then
2444  am_missing_run="$MISSING --run "
2445else
2446  am_missing_run=
2447  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2448echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2449fi
2450
2451{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2452echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2453if test -z "$MKDIR_P"; then
2454  if test "${ac_cv_path_mkdir+set}" = set; then
2455  echo $ECHO_N "(cached) $ECHO_C" >&6
2456else
2457  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2459do
2460  IFS=$as_save_IFS
2461  test -z "$as_dir" && as_dir=.
2462  for ac_prog in mkdir gmkdir; do
2463	 for ac_exec_ext in '' $ac_executable_extensions; do
2464	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2465	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2466	     'mkdir (GNU coreutils) '* | \
2467	     'mkdir (coreutils) '* | \
2468	     'mkdir (fileutils) '4.1*)
2469	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2470	       break 3;;
2471	   esac
2472	 done
2473       done
2474done
2475IFS=$as_save_IFS
2476
2477fi
2478
2479  if test "${ac_cv_path_mkdir+set}" = set; then
2480    MKDIR_P="$ac_cv_path_mkdir -p"
2481  else
2482    # As a last resort, use the slow shell script.  Don't cache a
2483    # value for MKDIR_P within a source directory, because that will
2484    # break other packages using the cache if that directory is
2485    # removed, or if the value is a relative name.
2486    test -d ./--version && rmdir ./--version
2487    MKDIR_P="$ac_install_sh -d"
2488  fi
2489fi
2490{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2491echo "${ECHO_T}$MKDIR_P" >&6; }
2492
2493mkdir_p="$MKDIR_P"
2494case $mkdir_p in
2495  [\\/$]* | ?:[\\/]*) ;;
2496  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2497esac
2498
2499for ac_prog in gawk mawk nawk awk
2500do
2501  # Extract the first word of "$ac_prog", so it can be a program name with args.
2502set dummy $ac_prog; ac_word=$2
2503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2505if test "${ac_cv_prog_AWK+set}" = set; then
2506  echo $ECHO_N "(cached) $ECHO_C" >&6
2507else
2508  if test -n "$AWK"; then
2509  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2510else
2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514  IFS=$as_save_IFS
2515  test -z "$as_dir" && as_dir=.
2516  for ac_exec_ext in '' $ac_executable_extensions; do
2517  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518    ac_cv_prog_AWK="$ac_prog"
2519    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520    break 2
2521  fi
2522done
2523done
2524IFS=$as_save_IFS
2525
2526fi
2527fi
2528AWK=$ac_cv_prog_AWK
2529if test -n "$AWK"; then
2530  { echo "$as_me:$LINENO: result: $AWK" >&5
2531echo "${ECHO_T}$AWK" >&6; }
2532else
2533  { echo "$as_me:$LINENO: result: no" >&5
2534echo "${ECHO_T}no" >&6; }
2535fi
2536
2537
2538  test -n "$AWK" && break
2539done
2540
2541{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2542echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2543set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2544if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2545  echo $ECHO_N "(cached) $ECHO_C" >&6
2546else
2547  cat >conftest.make <<\_ACEOF
2548SHELL = /bin/sh
2549all:
2550	@echo '@@@%%%=$(MAKE)=@@@%%%'
2551_ACEOF
2552# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2553case `${MAKE-make} -f conftest.make 2>/dev/null` in
2554  *@@@%%%=?*=@@@%%%*)
2555    eval ac_cv_prog_make_${ac_make}_set=yes;;
2556  *)
2557    eval ac_cv_prog_make_${ac_make}_set=no;;
2558esac
2559rm -f conftest.make
2560fi
2561if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2562  { echo "$as_me:$LINENO: result: yes" >&5
2563echo "${ECHO_T}yes" >&6; }
2564  SET_MAKE=
2565else
2566  { echo "$as_me:$LINENO: result: no" >&5
2567echo "${ECHO_T}no" >&6; }
2568  SET_MAKE="MAKE=${MAKE-make}"
2569fi
2570
2571rm -rf .tst 2>/dev/null
2572mkdir .tst 2>/dev/null
2573if test -d .tst; then
2574  am__leading_dot=.
2575else
2576  am__leading_dot=_
2577fi
2578rmdir .tst 2>/dev/null
2579
2580if test "`cd $srcdir && pwd`" != "`pwd`"; then
2581  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2582  # is not polluted with repeated "-I."
2583  am__isrc=' -I$(srcdir)'
2584  # test to see if srcdir already configured
2585  if test -f $srcdir/config.status; then
2586    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2587echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2588   { (exit 1); exit 1; }; }
2589  fi
2590fi
2591
2592# test whether we have cygpath
2593if test -z "$CYGPATH_W"; then
2594  if (cygpath --version) >/dev/null 2>/dev/null; then
2595    CYGPATH_W='cygpath -w'
2596  else
2597    CYGPATH_W=echo
2598  fi
2599fi
2600
2601
2602# Define the identity of the package.
2603 PACKAGE=netatalk
2604 VERSION=${NETATALK_VERSION}
2605
2606
2607cat >>confdefs.h <<_ACEOF
2608#define PACKAGE "$PACKAGE"
2609_ACEOF
2610
2611
2612cat >>confdefs.h <<_ACEOF
2613#define VERSION "$VERSION"
2614_ACEOF
2615
2616# Some tools Automake needs.
2617
2618ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2619
2620
2621AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2622
2623
2624AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2625
2626
2627AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2628
2629
2630MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2631
2632install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2633
2634# Installed binaries are usually stripped using `strip' when the user
2635# run `make install-strip'.  However `strip' might not be the right
2636# tool to use in cross-compilation environments, therefore Automake
2637# will honor the `STRIP' environment variable to overrule this program.
2638if test "$cross_compiling" != no; then
2639  if test -n "$ac_tool_prefix"; then
2640  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2641set dummy ${ac_tool_prefix}strip; ac_word=$2
2642{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2644if test "${ac_cv_prog_STRIP+set}" = set; then
2645  echo $ECHO_N "(cached) $ECHO_C" >&6
2646else
2647  if test -n "$STRIP"; then
2648  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2649else
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653  IFS=$as_save_IFS
2654  test -z "$as_dir" && as_dir=.
2655  for ac_exec_ext in '' $ac_executable_extensions; do
2656  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2658    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659    break 2
2660  fi
2661done
2662done
2663IFS=$as_save_IFS
2664
2665fi
2666fi
2667STRIP=$ac_cv_prog_STRIP
2668if test -n "$STRIP"; then
2669  { echo "$as_me:$LINENO: result: $STRIP" >&5
2670echo "${ECHO_T}$STRIP" >&6; }
2671else
2672  { echo "$as_me:$LINENO: result: no" >&5
2673echo "${ECHO_T}no" >&6; }
2674fi
2675
2676
2677fi
2678if test -z "$ac_cv_prog_STRIP"; then
2679  ac_ct_STRIP=$STRIP
2680  # Extract the first word of "strip", so it can be a program name with args.
2681set dummy strip; ac_word=$2
2682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2685  echo $ECHO_N "(cached) $ECHO_C" >&6
2686else
2687  if test -n "$ac_ct_STRIP"; then
2688  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2689else
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693  IFS=$as_save_IFS
2694  test -z "$as_dir" && as_dir=.
2695  for ac_exec_ext in '' $ac_executable_extensions; do
2696  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697    ac_cv_prog_ac_ct_STRIP="strip"
2698    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699    break 2
2700  fi
2701done
2702done
2703IFS=$as_save_IFS
2704
2705fi
2706fi
2707ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2708if test -n "$ac_ct_STRIP"; then
2709  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2710echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2711else
2712  { echo "$as_me:$LINENO: result: no" >&5
2713echo "${ECHO_T}no" >&6; }
2714fi
2715
2716  if test "x$ac_ct_STRIP" = x; then
2717    STRIP=":"
2718  else
2719    case $cross_compiling:$ac_tool_warned in
2720yes:)
2721{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2722whose name does not start with the host triplet.  If you think this
2723configuration is useful to you, please write to autoconf@gnu.org." >&5
2724echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725whose name does not start with the host triplet.  If you think this
2726configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2727ac_tool_warned=yes ;;
2728esac
2729    STRIP=$ac_ct_STRIP
2730  fi
2731else
2732  STRIP="$ac_cv_prog_STRIP"
2733fi
2734
2735fi
2736INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2737
2738# We need awk for the "check" target.  The system "awk" is bad on
2739# some platforms.
2740# Always define AMTAR for backward compatibility.
2741
2742AMTAR=${AMTAR-"${am_missing_run}tar"}
2743
2744am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2745
2746
2747
2748
2749
2750ac_config_headers="$ac_config_headers config.h"
2751
2752{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2753echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2754    # Check whether --enable-maintainer-mode was given.
2755if test "${enable_maintainer_mode+set}" = set; then
2756  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2757else
2758  USE_MAINTAINER_MODE=no
2759fi
2760
2761  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2762echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2763   if test $USE_MAINTAINER_MODE = yes; then
2764  MAINTAINER_MODE_TRUE=
2765  MAINTAINER_MODE_FALSE='#'
2766else
2767  MAINTAINER_MODE_TRUE='#'
2768  MAINTAINER_MODE_FALSE=
2769fi
2770
2771  MAINT=$MAINTAINER_MODE_TRUE
2772
2773
2774
2775for ac_prog in gawk mawk nawk awk
2776do
2777  # Extract the first word of "$ac_prog", so it can be a program name with args.
2778set dummy $ac_prog; ac_word=$2
2779{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2781if test "${ac_cv_prog_AWK+set}" = set; then
2782  echo $ECHO_N "(cached) $ECHO_C" >&6
2783else
2784  if test -n "$AWK"; then
2785  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790  IFS=$as_save_IFS
2791  test -z "$as_dir" && as_dir=.
2792  for ac_exec_ext in '' $ac_executable_extensions; do
2793  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794    ac_cv_prog_AWK="$ac_prog"
2795    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796    break 2
2797  fi
2798done
2799done
2800IFS=$as_save_IFS
2801
2802fi
2803fi
2804AWK=$ac_cv_prog_AWK
2805if test -n "$AWK"; then
2806  { echo "$as_me:$LINENO: result: $AWK" >&5
2807echo "${ECHO_T}$AWK" >&6; }
2808else
2809  { echo "$as_me:$LINENO: result: no" >&5
2810echo "${ECHO_T}no" >&6; }
2811fi
2812
2813
2814  test -n "$AWK" && break
2815done
2816
2817ac_ext=c
2818ac_cpp='$CPP $CPPFLAGS'
2819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822if test -n "$ac_tool_prefix"; then
2823  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2824set dummy ${ac_tool_prefix}gcc; ac_word=$2
2825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2827if test "${ac_cv_prog_CC+set}" = set; then
2828  echo $ECHO_N "(cached) $ECHO_C" >&6
2829else
2830  if test -n "$CC"; then
2831  ac_cv_prog_CC="$CC" # Let the user override the test.
2832else
2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834for as_dir in $PATH
2835do
2836  IFS=$as_save_IFS
2837  test -z "$as_dir" && as_dir=.
2838  for ac_exec_ext in '' $ac_executable_extensions; do
2839  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2841    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842    break 2
2843  fi
2844done
2845done
2846IFS=$as_save_IFS
2847
2848fi
2849fi
2850CC=$ac_cv_prog_CC
2851if test -n "$CC"; then
2852  { echo "$as_me:$LINENO: result: $CC" >&5
2853echo "${ECHO_T}$CC" >&6; }
2854else
2855  { echo "$as_me:$LINENO: result: no" >&5
2856echo "${ECHO_T}no" >&6; }
2857fi
2858
2859
2860fi
2861if test -z "$ac_cv_prog_CC"; then
2862  ac_ct_CC=$CC
2863  # Extract the first word of "gcc", so it can be a program name with args.
2864set dummy gcc; ac_word=$2
2865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2868  echo $ECHO_N "(cached) $ECHO_C" >&6
2869else
2870  if test -n "$ac_ct_CC"; then
2871  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876  IFS=$as_save_IFS
2877  test -z "$as_dir" && as_dir=.
2878  for ac_exec_ext in '' $ac_executable_extensions; do
2879  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880    ac_cv_prog_ac_ct_CC="gcc"
2881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882    break 2
2883  fi
2884done
2885done
2886IFS=$as_save_IFS
2887
2888fi
2889fi
2890ac_ct_CC=$ac_cv_prog_ac_ct_CC
2891if test -n "$ac_ct_CC"; then
2892  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2893echo "${ECHO_T}$ac_ct_CC" >&6; }
2894else
2895  { echo "$as_me:$LINENO: result: no" >&5
2896echo "${ECHO_T}no" >&6; }
2897fi
2898
2899  if test "x$ac_ct_CC" = x; then
2900    CC=""
2901  else
2902    case $cross_compiling:$ac_tool_warned in
2903yes:)
2904{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2905whose name does not start with the host triplet.  If you think this
2906configuration is useful to you, please write to autoconf@gnu.org." >&5
2907echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2908whose name does not start with the host triplet.  If you think this
2909configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2910ac_tool_warned=yes ;;
2911esac
2912    CC=$ac_ct_CC
2913  fi
2914else
2915  CC="$ac_cv_prog_CC"
2916fi
2917
2918if test -z "$CC"; then
2919          if test -n "$ac_tool_prefix"; then
2920    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2921set dummy ${ac_tool_prefix}cc; ac_word=$2
2922{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2924if test "${ac_cv_prog_CC+set}" = set; then
2925  echo $ECHO_N "(cached) $ECHO_C" >&6
2926else
2927  if test -n "$CC"; then
2928  ac_cv_prog_CC="$CC" # Let the user override the test.
2929else
2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931for as_dir in $PATH
2932do
2933  IFS=$as_save_IFS
2934  test -z "$as_dir" && as_dir=.
2935  for ac_exec_ext in '' $ac_executable_extensions; do
2936  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937    ac_cv_prog_CC="${ac_tool_prefix}cc"
2938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2939    break 2
2940  fi
2941done
2942done
2943IFS=$as_save_IFS
2944
2945fi
2946fi
2947CC=$ac_cv_prog_CC
2948if test -n "$CC"; then
2949  { echo "$as_me:$LINENO: result: $CC" >&5
2950echo "${ECHO_T}$CC" >&6; }
2951else
2952  { echo "$as_me:$LINENO: result: no" >&5
2953echo "${ECHO_T}no" >&6; }
2954fi
2955
2956
2957  fi
2958fi
2959if test -z "$CC"; then
2960  # Extract the first word of "cc", so it can be a program name with args.
2961set dummy cc; ac_word=$2
2962{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2964if test "${ac_cv_prog_CC+set}" = set; then
2965  echo $ECHO_N "(cached) $ECHO_C" >&6
2966else
2967  if test -n "$CC"; then
2968  ac_cv_prog_CC="$CC" # Let the user override the test.
2969else
2970  ac_prog_rejected=no
2971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972for as_dir in $PATH
2973do
2974  IFS=$as_save_IFS
2975  test -z "$as_dir" && as_dir=.
2976  for ac_exec_ext in '' $ac_executable_extensions; do
2977  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2979       ac_prog_rejected=yes
2980       continue
2981     fi
2982    ac_cv_prog_CC="cc"
2983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2984    break 2
2985  fi
2986done
2987done
2988IFS=$as_save_IFS
2989
2990if test $ac_prog_rejected = yes; then
2991  # We found a bogon in the path, so make sure we never use it.
2992  set dummy $ac_cv_prog_CC
2993  shift
2994  if test $# != 0; then
2995    # We chose a different compiler from the bogus one.
2996    # However, it has the same basename, so the bogon will be chosen
2997    # first if we set CC to just the basename; use the full file name.
2998    shift
2999    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3000  fi
3001fi
3002fi
3003fi
3004CC=$ac_cv_prog_CC
3005if test -n "$CC"; then
3006  { echo "$as_me:$LINENO: result: $CC" >&5
3007echo "${ECHO_T}$CC" >&6; }
3008else
3009  { echo "$as_me:$LINENO: result: no" >&5
3010echo "${ECHO_T}no" >&6; }
3011fi
3012
3013
3014fi
3015if test -z "$CC"; then
3016  if test -n "$ac_tool_prefix"; then
3017  for ac_prog in cl.exe
3018  do
3019    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3020set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3021{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3023if test "${ac_cv_prog_CC+set}" = set; then
3024  echo $ECHO_N "(cached) $ECHO_C" >&6
3025else
3026  if test -n "$CC"; then
3027  ac_cv_prog_CC="$CC" # Let the user override the test.
3028else
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032  IFS=$as_save_IFS
3033  test -z "$as_dir" && as_dir=.
3034  for ac_exec_ext in '' $ac_executable_extensions; do
3035  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3037    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3038    break 2
3039  fi
3040done
3041done
3042IFS=$as_save_IFS
3043
3044fi
3045fi
3046CC=$ac_cv_prog_CC
3047if test -n "$CC"; then
3048  { echo "$as_me:$LINENO: result: $CC" >&5
3049echo "${ECHO_T}$CC" >&6; }
3050else
3051  { echo "$as_me:$LINENO: result: no" >&5
3052echo "${ECHO_T}no" >&6; }
3053fi
3054
3055
3056    test -n "$CC" && break
3057  done
3058fi
3059if test -z "$CC"; then
3060  ac_ct_CC=$CC
3061  for ac_prog in cl.exe
3062do
3063  # Extract the first word of "$ac_prog", so it can be a program name with args.
3064set dummy $ac_prog; ac_word=$2
3065{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3067if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3068  echo $ECHO_N "(cached) $ECHO_C" >&6
3069else
3070  if test -n "$ac_ct_CC"; then
3071  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3072else
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076  IFS=$as_save_IFS
3077  test -z "$as_dir" && as_dir=.
3078  for ac_exec_ext in '' $ac_executable_extensions; do
3079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080    ac_cv_prog_ac_ct_CC="$ac_prog"
3081    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082    break 2
3083  fi
3084done
3085done
3086IFS=$as_save_IFS
3087
3088fi
3089fi
3090ac_ct_CC=$ac_cv_prog_ac_ct_CC
3091if test -n "$ac_ct_CC"; then
3092  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3093echo "${ECHO_T}$ac_ct_CC" >&6; }
3094else
3095  { echo "$as_me:$LINENO: result: no" >&5
3096echo "${ECHO_T}no" >&6; }
3097fi
3098
3099
3100  test -n "$ac_ct_CC" && break
3101done
3102
3103  if test "x$ac_ct_CC" = x; then
3104    CC=""
3105  else
3106    case $cross_compiling:$ac_tool_warned in
3107yes:)
3108{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3109whose name does not start with the host triplet.  If you think this
3110configuration is useful to you, please write to autoconf@gnu.org." >&5
3111echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3112whose name does not start with the host triplet.  If you think this
3113configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3114ac_tool_warned=yes ;;
3115esac
3116    CC=$ac_ct_CC
3117  fi
3118fi
3119
3120fi
3121
3122
3123test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3124See \`config.log' for more details." >&5
3125echo "$as_me: error: no acceptable C compiler found in \$PATH
3126See \`config.log' for more details." >&2;}
3127   { (exit 1); exit 1; }; }
3128
3129# Provide some information about the compiler.
3130echo "$as_me:$LINENO: checking for C compiler version" >&5
3131ac_compiler=`set X $ac_compile; echo $2`
3132{ (ac_try="$ac_compiler --version >&5"
3133case "(($ac_try" in
3134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135  *) ac_try_echo=$ac_try;;
3136esac
3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138  (eval "$ac_compiler --version >&5") 2>&5
3139  ac_status=$?
3140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141  (exit $ac_status); }
3142{ (ac_try="$ac_compiler -v >&5"
3143case "(($ac_try" in
3144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145  *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148  (eval "$ac_compiler -v >&5") 2>&5
3149  ac_status=$?
3150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151  (exit $ac_status); }
3152{ (ac_try="$ac_compiler -V >&5"
3153case "(($ac_try" in
3154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155  *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158  (eval "$ac_compiler -V >&5") 2>&5
3159  ac_status=$?
3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); }
3162
3163cat >conftest.$ac_ext <<_ACEOF
3164/* confdefs.h.  */
3165_ACEOF
3166cat confdefs.h >>conftest.$ac_ext
3167cat >>conftest.$ac_ext <<_ACEOF
3168/* end confdefs.h.  */
3169
3170int
3171main ()
3172{
3173
3174  ;
3175  return 0;
3176}
3177_ACEOF
3178ac_clean_files_save=$ac_clean_files
3179ac_clean_files="$ac_clean_files a.out a.exe b.out"
3180# Try to create an executable without -o first, disregard a.out.
3181# It will help us diagnose broken compilers, and finding out an intuition
3182# of exeext.
3183{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3184echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3185ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3186#
3187# List of possible output files, starting from the most likely.
3188# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3189# only as a last resort.  b.out is created by i960 compilers.
3190ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3191#
3192# The IRIX 6 linker writes into existing files which may not be
3193# executable, retaining their permissions.  Remove them first so a
3194# subsequent execution test works.
3195ac_rmfiles=
3196for ac_file in $ac_files
3197do
3198  case $ac_file in
3199    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3200    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3201  esac
3202done
3203rm -f $ac_rmfiles
3204
3205if { (ac_try="$ac_link_default"
3206case "(($ac_try" in
3207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208  *) ac_try_echo=$ac_try;;
3209esac
3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211  (eval "$ac_link_default") 2>&5
3212  ac_status=$?
3213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214  (exit $ac_status); }; then
3215  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3216# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3217# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3218# so that the user can short-circuit this test for compilers unknown to
3219# Autoconf.
3220for ac_file in $ac_files ''
3221do
3222  test -f "$ac_file" || continue
3223  case $ac_file in
3224    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3225	;;
3226    [ab].out )
3227	# We found the default executable, but exeext='' is most
3228	# certainly right.
3229	break;;
3230    *.* )
3231        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3232	then :; else
3233	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234	fi
3235	# We set ac_cv_exeext here because the later test for it is not
3236	# safe: cross compilers may not add the suffix if given an `-o'
3237	# argument, so we may need to know it at that point already.
3238	# Even if this section looks crufty: it has the advantage of
3239	# actually working.
3240	break;;
3241    * )
3242	break;;
3243  esac
3244done
3245test "$ac_cv_exeext" = no && ac_cv_exeext=
3246
3247else
3248  ac_file=''
3249fi
3250
3251{ echo "$as_me:$LINENO: result: $ac_file" >&5
3252echo "${ECHO_T}$ac_file" >&6; }
3253if test -z "$ac_file"; then
3254  echo "$as_me: failed program was:" >&5
3255sed 's/^/| /' conftest.$ac_ext >&5
3256
3257{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3258See \`config.log' for more details." >&5
3259echo "$as_me: error: C compiler cannot create executables
3260See \`config.log' for more details." >&2;}
3261   { (exit 77); exit 77; }; }
3262fi
3263
3264ac_exeext=$ac_cv_exeext
3265
3266# Check that the compiler produces executables we can run.  If not, either
3267# the compiler is broken, or we cross compile.
3268{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3269echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3270# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3271# If not cross compiling, check that we can run a simple program.
3272if test "$cross_compiling" != yes; then
3273  if { ac_try='./$ac_file'
3274  { (case "(($ac_try" in
3275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276  *) ac_try_echo=$ac_try;;
3277esac
3278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279  (eval "$ac_try") 2>&5
3280  ac_status=$?
3281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282  (exit $ac_status); }; }; then
3283    cross_compiling=no
3284  else
3285    if test "$cross_compiling" = maybe; then
3286	cross_compiling=yes
3287    else
3288	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3289If you meant to cross compile, use \`--host'.
3290See \`config.log' for more details." >&5
3291echo "$as_me: error: cannot run C compiled programs.
3292If you meant to cross compile, use \`--host'.
3293See \`config.log' for more details." >&2;}
3294   { (exit 1); exit 1; }; }
3295    fi
3296  fi
3297fi
3298{ echo "$as_me:$LINENO: result: yes" >&5
3299echo "${ECHO_T}yes" >&6; }
3300
3301rm -f a.out a.exe conftest$ac_cv_exeext b.out
3302ac_clean_files=$ac_clean_files_save
3303# Check that the compiler produces executables we can run.  If not, either
3304# the compiler is broken, or we cross compile.
3305{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3306echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3307{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3308echo "${ECHO_T}$cross_compiling" >&6; }
3309
3310{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3311echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3312if { (ac_try="$ac_link"
3313case "(($ac_try" in
3314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315  *) ac_try_echo=$ac_try;;
3316esac
3317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318  (eval "$ac_link") 2>&5
3319  ac_status=$?
3320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321  (exit $ac_status); }; then
3322  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3323# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3324# work properly (i.e., refer to `conftest.exe'), while it won't with
3325# `rm'.
3326for ac_file in conftest.exe conftest conftest.*; do
3327  test -f "$ac_file" || continue
3328  case $ac_file in
3329    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3330    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3331	  break;;
3332    * ) break;;
3333  esac
3334done
3335else
3336  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3337See \`config.log' for more details." >&5
3338echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3339See \`config.log' for more details." >&2;}
3340   { (exit 1); exit 1; }; }
3341fi
3342
3343rm -f conftest$ac_cv_exeext
3344{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3345echo "${ECHO_T}$ac_cv_exeext" >&6; }
3346
3347rm -f conftest.$ac_ext
3348EXEEXT=$ac_cv_exeext
3349ac_exeext=$EXEEXT
3350{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3351echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3352if test "${ac_cv_objext+set}" = set; then
3353  echo $ECHO_N "(cached) $ECHO_C" >&6
3354else
3355  cat >conftest.$ac_ext <<_ACEOF
3356/* confdefs.h.  */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
3360/* end confdefs.h.  */
3361
3362int
3363main ()
3364{
3365
3366  ;
3367  return 0;
3368}
3369_ACEOF
3370rm -f conftest.o conftest.obj
3371if { (ac_try="$ac_compile"
3372case "(($ac_try" in
3373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374  *) ac_try_echo=$ac_try;;
3375esac
3376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377  (eval "$ac_compile") 2>&5
3378  ac_status=$?
3379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380  (exit $ac_status); }; then
3381  for ac_file in conftest.o conftest.obj conftest.*; do
3382  test -f "$ac_file" || continue;
3383  case $ac_file in
3384    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3385    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3386       break;;
3387  esac
3388done
3389else
3390  echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3394See \`config.log' for more details." >&5
3395echo "$as_me: error: cannot compute suffix of object files: cannot compile
3396See \`config.log' for more details." >&2;}
3397   { (exit 1); exit 1; }; }
3398fi
3399
3400rm -f conftest.$ac_cv_objext conftest.$ac_ext
3401fi
3402{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3403echo "${ECHO_T}$ac_cv_objext" >&6; }
3404OBJEXT=$ac_cv_objext
3405ac_objext=$OBJEXT
3406{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3407echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3408if test "${ac_cv_c_compiler_gnu+set}" = set; then
3409  echo $ECHO_N "(cached) $ECHO_C" >&6
3410else
3411  cat >conftest.$ac_ext <<_ACEOF
3412/* confdefs.h.  */
3413_ACEOF
3414cat confdefs.h >>conftest.$ac_ext
3415cat >>conftest.$ac_ext <<_ACEOF
3416/* end confdefs.h.  */
3417
3418int
3419main ()
3420{
3421#ifndef __GNUC__
3422       choke me
3423#endif
3424
3425  ;
3426  return 0;
3427}
3428_ACEOF
3429rm -f conftest.$ac_objext
3430if { (ac_try="$ac_compile"
3431case "(($ac_try" in
3432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433  *) ac_try_echo=$ac_try;;
3434esac
3435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436  (eval "$ac_compile") 2>conftest.er1
3437  ac_status=$?
3438  grep -v '^ *+' conftest.er1 >conftest.err
3439  rm -f conftest.er1
3440  cat conftest.err >&5
3441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442  (exit $ac_status); } && {
3443	 test -z "$ac_c_werror_flag" ||
3444	 test ! -s conftest.err
3445       } && test -s conftest.$ac_objext; then
3446  ac_compiler_gnu=yes
3447else
3448  echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
3451	ac_compiler_gnu=no
3452fi
3453
3454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455ac_cv_c_compiler_gnu=$ac_compiler_gnu
3456
3457fi
3458{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3459echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3460GCC=`test $ac_compiler_gnu = yes && echo yes`
3461ac_test_CFLAGS=${CFLAGS+set}
3462ac_save_CFLAGS=$CFLAGS
3463{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3464echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3465if test "${ac_cv_prog_cc_g+set}" = set; then
3466  echo $ECHO_N "(cached) $ECHO_C" >&6
3467else
3468  ac_save_c_werror_flag=$ac_c_werror_flag
3469   ac_c_werror_flag=yes
3470   ac_cv_prog_cc_g=no
3471   CFLAGS="-g"
3472   cat >conftest.$ac_ext <<_ACEOF
3473/* confdefs.h.  */
3474_ACEOF
3475cat confdefs.h >>conftest.$ac_ext
3476cat >>conftest.$ac_ext <<_ACEOF
3477/* end confdefs.h.  */
3478
3479int
3480main ()
3481{
3482
3483  ;
3484  return 0;
3485}
3486_ACEOF
3487rm -f conftest.$ac_objext
3488if { (ac_try="$ac_compile"
3489case "(($ac_try" in
3490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491  *) ac_try_echo=$ac_try;;
3492esac
3493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494  (eval "$ac_compile") 2>conftest.er1
3495  ac_status=$?
3496  grep -v '^ *+' conftest.er1 >conftest.err
3497  rm -f conftest.er1
3498  cat conftest.err >&5
3499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500  (exit $ac_status); } && {
3501	 test -z "$ac_c_werror_flag" ||
3502	 test ! -s conftest.err
3503       } && test -s conftest.$ac_objext; then
3504  ac_cv_prog_cc_g=yes
3505else
3506  echo "$as_me: failed program was:" >&5
3507sed 's/^/| /' conftest.$ac_ext >&5
3508
3509	CFLAGS=""
3510      cat >conftest.$ac_ext <<_ACEOF
3511/* confdefs.h.  */
3512_ACEOF
3513cat confdefs.h >>conftest.$ac_ext
3514cat >>conftest.$ac_ext <<_ACEOF
3515/* end confdefs.h.  */
3516
3517int
3518main ()
3519{
3520
3521  ;
3522  return 0;
3523}
3524_ACEOF
3525rm -f conftest.$ac_objext
3526if { (ac_try="$ac_compile"
3527case "(($ac_try" in
3528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529  *) ac_try_echo=$ac_try;;
3530esac
3531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532  (eval "$ac_compile") 2>conftest.er1
3533  ac_status=$?
3534  grep -v '^ *+' conftest.er1 >conftest.err
3535  rm -f conftest.er1
3536  cat conftest.err >&5
3537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538  (exit $ac_status); } && {
3539	 test -z "$ac_c_werror_flag" ||
3540	 test ! -s conftest.err
3541       } && test -s conftest.$ac_objext; then
3542  :
3543else
3544  echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547	ac_c_werror_flag=$ac_save_c_werror_flag
3548	 CFLAGS="-g"
3549	 cat >conftest.$ac_ext <<_ACEOF
3550/* confdefs.h.  */
3551_ACEOF
3552cat confdefs.h >>conftest.$ac_ext
3553cat >>conftest.$ac_ext <<_ACEOF
3554/* end confdefs.h.  */
3555
3556int
3557main ()
3558{
3559
3560  ;
3561  return 0;
3562}
3563_ACEOF
3564rm -f conftest.$ac_objext
3565if { (ac_try="$ac_compile"
3566case "(($ac_try" in
3567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568  *) ac_try_echo=$ac_try;;
3569esac
3570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571  (eval "$ac_compile") 2>conftest.er1
3572  ac_status=$?
3573  grep -v '^ *+' conftest.er1 >conftest.err
3574  rm -f conftest.er1
3575  cat conftest.err >&5
3576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577  (exit $ac_status); } && {
3578	 test -z "$ac_c_werror_flag" ||
3579	 test ! -s conftest.err
3580       } && test -s conftest.$ac_objext; then
3581  ac_cv_prog_cc_g=yes
3582else
3583  echo "$as_me: failed program was:" >&5
3584sed 's/^/| /' conftest.$ac_ext >&5
3585
3586
3587fi
3588
3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590fi
3591
3592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593fi
3594
3595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596   ac_c_werror_flag=$ac_save_c_werror_flag
3597fi
3598{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3599echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3600if test "$ac_test_CFLAGS" = set; then
3601  CFLAGS=$ac_save_CFLAGS
3602elif test $ac_cv_prog_cc_g = yes; then
3603  if test "$GCC" = yes; then
3604    CFLAGS="-g -O2"
3605  else
3606    CFLAGS="-g"
3607  fi
3608else
3609  if test "$GCC" = yes; then
3610    CFLAGS="-O2"
3611  else
3612    CFLAGS=
3613  fi
3614fi
3615{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3616echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3617if test "${ac_cv_prog_cc_c89+set}" = set; then
3618  echo $ECHO_N "(cached) $ECHO_C" >&6
3619else
3620  ac_cv_prog_cc_c89=no
3621ac_save_CC=$CC
3622cat >conftest.$ac_ext <<_ACEOF
3623/* confdefs.h.  */
3624_ACEOF
3625cat confdefs.h >>conftest.$ac_ext
3626cat >>conftest.$ac_ext <<_ACEOF
3627/* end confdefs.h.  */
3628#include <stdarg.h>
3629#include <stdio.h>
3630#include <sys/types.h>
3631#include <sys/stat.h>
3632/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3633struct buf { int x; };
3634FILE * (*rcsopen) (struct buf *, struct stat *, int);
3635static char *e (p, i)
3636     char **p;
3637     int i;
3638{
3639  return p[i];
3640}
3641static char *f (char * (*g) (char **, int), char **p, ...)
3642{
3643  char *s;
3644  va_list v;
3645  va_start (v,p);
3646  s = g (p, va_arg (v,int));
3647  va_end (v);
3648  return s;
3649}
3650
3651/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3652   function prototypes and stuff, but not '\xHH' hex character constants.
3653   These don't provoke an error unfortunately, instead are silently treated
3654   as 'x'.  The following induces an error, until -std is added to get
3655   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3656   array size at least.  It's necessary to write '\x00'==0 to get something
3657   that's true only with -std.  */
3658int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3659
3660/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3661   inside strings and character constants.  */
3662#define FOO(x) 'x'
3663int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3664
3665int test (int i, double x);
3666struct s1 {int (*f) (int a);};
3667struct s2 {int (*f) (double a);};
3668int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3669int argc;
3670char **argv;
3671int
3672main ()
3673{
3674return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3675  ;
3676  return 0;
3677}
3678_ACEOF
3679for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3680	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3681do
3682  CC="$ac_save_CC $ac_arg"
3683  rm -f conftest.$ac_objext
3684if { (ac_try="$ac_compile"
3685case "(($ac_try" in
3686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687  *) ac_try_echo=$ac_try;;
3688esac
3689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690  (eval "$ac_compile") 2>conftest.er1
3691  ac_status=$?
3692  grep -v '^ *+' conftest.er1 >conftest.err
3693  rm -f conftest.er1
3694  cat conftest.err >&5
3695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696  (exit $ac_status); } && {
3697	 test -z "$ac_c_werror_flag" ||
3698	 test ! -s conftest.err
3699       } && test -s conftest.$ac_objext; then
3700  ac_cv_prog_cc_c89=$ac_arg
3701else
3702  echo "$as_me: failed program was:" >&5
3703sed 's/^/| /' conftest.$ac_ext >&5
3704
3705
3706fi
3707
3708rm -f core conftest.err conftest.$ac_objext
3709  test "x$ac_cv_prog_cc_c89" != "xno" && break
3710done
3711rm -f conftest.$ac_ext
3712CC=$ac_save_CC
3713
3714fi
3715# AC_CACHE_VAL
3716case "x$ac_cv_prog_cc_c89" in
3717  x)
3718    { echo "$as_me:$LINENO: result: none needed" >&5
3719echo "${ECHO_T}none needed" >&6; } ;;
3720  xno)
3721    { echo "$as_me:$LINENO: result: unsupported" >&5
3722echo "${ECHO_T}unsupported" >&6; } ;;
3723  *)
3724    CC="$CC $ac_cv_prog_cc_c89"
3725    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3726echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3727esac
3728
3729
3730ac_ext=c
3731ac_cpp='$CPP $CPPFLAGS'
3732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735DEPDIR="${am__leading_dot}deps"
3736
3737ac_config_commands="$ac_config_commands depfiles"
3738
3739
3740am_make=${MAKE-make}
3741cat > confinc << 'END'
3742am__doit:
3743	@echo done
3744.PHONY: am__doit
3745END
3746# If we don't find an include directive, just comment out the code.
3747{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3748echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3749am__include="#"
3750am__quote=
3751_am_result=none
3752# First try GNU make style include.
3753echo "include confinc" > confmf
3754# We grep out `Entering directory' and `Leaving directory'
3755# messages which can occur if `w' ends up in MAKEFLAGS.
3756# In particular we don't look at `^make:' because GNU make might
3757# be invoked under some other name (usually "gmake"), in which
3758# case it prints its new name instead of `make'.
3759if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3760   am__include=include
3761   am__quote=
3762   _am_result=GNU
3763fi
3764# Now try BSD make style include.
3765if test "$am__include" = "#"; then
3766   echo '.include "confinc"' > confmf
3767   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3768      am__include=.include
3769      am__quote="\""
3770      _am_result=BSD
3771   fi
3772fi
3773
3774
3775{ echo "$as_me:$LINENO: result: $_am_result" >&5
3776echo "${ECHO_T}$_am_result" >&6; }
3777rm -f confinc confmf
3778
3779# Check whether --enable-dependency-tracking was given.
3780if test "${enable_dependency_tracking+set}" = set; then
3781  enableval=$enable_dependency_tracking;
3782fi
3783
3784if test "x$enable_dependency_tracking" != xno; then
3785  am_depcomp="$ac_aux_dir/depcomp"
3786  AMDEPBACKSLASH='\'
3787fi
3788 if test "x$enable_dependency_tracking" != xno; then
3789  AMDEP_TRUE=
3790  AMDEP_FALSE='#'
3791else
3792  AMDEP_TRUE='#'
3793  AMDEP_FALSE=
3794fi
3795
3796
3797
3798depcc="$CC"   am_compiler_list=
3799
3800{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3801echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3802if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3803  echo $ECHO_N "(cached) $ECHO_C" >&6
3804else
3805  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3806  # We make a subdir and do the tests there.  Otherwise we can end up
3807  # making bogus files that we don't know about and never remove.  For
3808  # instance it was reported that on HP-UX the gcc test will end up
3809  # making a dummy file named `D' -- because `-MD' means `put the output
3810  # in D'.
3811  mkdir conftest.dir
3812  # Copy depcomp to subdir because otherwise we won't find it if we're
3813  # using a relative directory.
3814  cp "$am_depcomp" conftest.dir
3815  cd conftest.dir
3816  # We will build objects and dependencies in a subdirectory because
3817  # it helps to detect inapplicable dependency modes.  For instance
3818  # both Tru64's cc and ICC support -MD to output dependencies as a
3819  # side effect of compilation, but ICC will put the dependencies in
3820  # the current directory while Tru64 will put them in the object
3821  # directory.
3822  mkdir sub
3823
3824  am_cv_CC_dependencies_compiler_type=none
3825  if test "$am_compiler_list" = ""; then
3826     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3827  fi
3828  for depmode in $am_compiler_list; do
3829    # Setup a source with many dependencies, because some compilers
3830    # like to wrap large dependency lists on column 80 (with \), and
3831    # we should not choose a depcomp mode which is confused by this.
3832    #
3833    # We need to recreate these files for each test, as the compiler may
3834    # overwrite some of them when testing with obscure command lines.
3835    # This happens at least with the AIX C compiler.
3836    : > sub/conftest.c
3837    for i in 1 2 3 4 5 6; do
3838      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3839      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3840      # Solaris 8's {/usr,}/bin/sh.
3841      touch sub/conftst$i.h
3842    done
3843    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3844
3845    case $depmode in
3846    nosideeffect)
3847      # after this tag, mechanisms are not by side-effect, so they'll
3848      # only be used when explicitly requested
3849      if test "x$enable_dependency_tracking" = xyes; then
3850	continue
3851      else
3852	break
3853      fi
3854      ;;
3855    none) break ;;
3856    esac
3857    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3858    # mode.  It turns out that the SunPro C++ compiler does not properly
3859    # handle `-M -o', and we need to detect this.
3860    if depmode=$depmode \
3861       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3862       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3863       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3864         >/dev/null 2>conftest.err &&
3865       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3866       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3867       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3868       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3869      # icc doesn't choke on unknown options, it will just issue warnings
3870      # or remarks (even with -Werror).  So we grep stderr for any message
3871      # that says an option was ignored or not supported.
3872      # When given -MP, icc 7.0 and 7.1 complain thusly:
3873      #   icc: Command line warning: ignoring option '-M'; no argument required
3874      # The diagnosis changed in icc 8.0:
3875      #   icc: Command line remark: option '-MP' not supported
3876      if (grep 'ignoring option' conftest.err ||
3877          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3878        am_cv_CC_dependencies_compiler_type=$depmode
3879        break
3880      fi
3881    fi
3882  done
3883
3884  cd ..
3885  rm -rf conftest.dir
3886else
3887  am_cv_CC_dependencies_compiler_type=none
3888fi
3889
3890fi
3891{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3892echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3893CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3894
3895 if
3896  test "x$enable_dependency_tracking" != xno \
3897  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3898  am__fastdepCC_TRUE=
3899  am__fastdepCC_FALSE='#'
3900else
3901  am__fastdepCC_TRUE='#'
3902  am__fastdepCC_FALSE=
3903fi
3904
3905
3906   { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3907echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3908if test "${ac_cv_prog_cc_c99+set}" = set; then
3909  echo $ECHO_N "(cached) $ECHO_C" >&6
3910else
3911  ac_cv_prog_cc_c99=no
3912ac_save_CC=$CC
3913cat >conftest.$ac_ext <<_ACEOF
3914/* confdefs.h.  */
3915_ACEOF
3916cat confdefs.h >>conftest.$ac_ext
3917cat >>conftest.$ac_ext <<_ACEOF
3918/* end confdefs.h.  */
3919#include <stdarg.h>
3920#include <stdbool.h>
3921#include <stdlib.h>
3922#include <wchar.h>
3923#include <stdio.h>
3924
3925// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3926#define debug(...) fprintf (stderr, __VA_ARGS__)
3927#define showlist(...) puts (#__VA_ARGS__)
3928#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3929static void
3930test_varargs_macros (void)
3931{
3932  int x = 1234;
3933  int y = 5678;
3934  debug ("Flag");
3935  debug ("X = %d\n", x);
3936  showlist (The first, second, and third items.);
3937  report (x>y, "x is %d but y is %d", x, y);
3938}
3939
3940// Check long long types.
3941#define BIG64 18446744073709551615ull
3942#define BIG32 4294967295ul
3943#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3944#if !BIG_OK
3945  your preprocessor is broken;
3946#endif
3947#if BIG_OK
3948#else
3949  your preprocessor is broken;
3950#endif
3951static long long int bignum = -9223372036854775807LL;
3952static unsigned long long int ubignum = BIG64;
3953
3954struct incomplete_array
3955{
3956  int datasize;
3957  double data[];
3958};
3959
3960struct named_init {
3961  int number;
3962  const wchar_t *name;
3963  double average;
3964};
3965
3966typedef const char *ccp;
3967
3968static inline int
3969test_restrict (ccp restrict text)
3970{
3971  // See if C++-style comments work.
3972  // Iterate through items via the restricted pointer.
3973  // Also check for declarations in for loops.
3974  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3975    continue;
3976  return 0;
3977}
3978
3979// Check varargs and va_copy.
3980static void
3981test_varargs (const char *format, ...)
3982{
3983  va_list args;
3984  va_start (args, format);
3985  va_list args_copy;
3986  va_copy (args_copy, args);
3987
3988  const char *str;
3989  int number;
3990  float fnumber;
3991
3992  while (*format)
3993    {
3994      switch (*format++)
3995	{
3996	case 's': // string
3997	  str = va_arg (args_copy, const char *);
3998	  break;
3999	case 'd': // int
4000	  number = va_arg (args_copy, int);
4001	  break;
4002	case 'f': // float
4003	  fnumber = va_arg (args_copy, double);
4004	  break;
4005	default:
4006	  break;
4007	}
4008    }
4009  va_end (args_copy);
4010  va_end (args);
4011}
4012
4013int
4014main ()
4015{
4016
4017  // Check bool.
4018  _Bool success = false;
4019
4020  // Check restrict.
4021  if (test_restrict ("String literal") == 0)
4022    success = true;
4023  char *restrict newvar = "Another string";
4024
4025  // Check varargs.
4026  test_varargs ("s, d' f .", "string", 65, 34.234);
4027  test_varargs_macros ();
4028
4029  // Check flexible array members.
4030  struct incomplete_array *ia =
4031    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4032  ia->datasize = 10;
4033  for (int i = 0; i < ia->datasize; ++i)
4034    ia->data[i] = i * 1.234;
4035
4036  // Check named initializers.
4037  struct named_init ni = {
4038    .number = 34,
4039    .name = L"Test wide string",
4040    .average = 543.34343,
4041  };
4042
4043  ni.number = 58;
4044
4045  int dynamic_array[ni.number];
4046  dynamic_array[ni.number - 1] = 543;
4047
4048  // work around unused variable warnings
4049  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4050	  || dynamic_array[ni.number - 1] != 543);
4051
4052  ;
4053  return 0;
4054}
4055_ACEOF
4056for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
4057do
4058  CC="$ac_save_CC $ac_arg"
4059  rm -f conftest.$ac_objext
4060if { (ac_try="$ac_compile"
4061case "(($ac_try" in
4062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063  *) ac_try_echo=$ac_try;;
4064esac
4065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066  (eval "$ac_compile") 2>conftest.er1
4067  ac_status=$?
4068  grep -v '^ *+' conftest.er1 >conftest.err
4069  rm -f conftest.er1
4070  cat conftest.err >&5
4071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072  (exit $ac_status); } && {
4073	 test -z "$ac_c_werror_flag" ||
4074	 test ! -s conftest.err
4075       } && test -s conftest.$ac_objext; then
4076  ac_cv_prog_cc_c99=$ac_arg
4077else
4078  echo "$as_me: failed program was:" >&5
4079sed 's/^/| /' conftest.$ac_ext >&5
4080
4081
4082fi
4083
4084rm -f core conftest.err conftest.$ac_objext
4085  test "x$ac_cv_prog_cc_c99" != "xno" && break
4086done
4087rm -f conftest.$ac_ext
4088CC=$ac_save_CC
4089
4090fi
4091# AC_CACHE_VAL
4092case "x$ac_cv_prog_cc_c99" in
4093  x)
4094    { echo "$as_me:$LINENO: result: none needed" >&5
4095echo "${ECHO_T}none needed" >&6; } ;;
4096  xno)
4097    { echo "$as_me:$LINENO: result: unsupported" >&5
4098echo "${ECHO_T}unsupported" >&6; } ;;
4099  *)
4100    CC="$CC $ac_cv_prog_cc_c99"
4101    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4102echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
4103esac
4104
4105
4106
4107# Find a good install program.  We prefer a C program (faster),
4108# so one script is as good as another.  But avoid the broken or
4109# incompatible versions:
4110# SysV /etc/install, /usr/sbin/install
4111# SunOS /usr/etc/install
4112# IRIX /sbin/install
4113# AIX /bin/install
4114# AmigaOS /C/install, which installs bootblocks on floppy discs
4115# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4116# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4117# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4118# OS/2's system install, which has a completely different semantic
4119# ./install, which can be erroneously created by make from ./install.sh.
4120{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4121echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4122if test -z "$INSTALL"; then
4123if test "${ac_cv_path_install+set}" = set; then
4124  echo $ECHO_N "(cached) $ECHO_C" >&6
4125else
4126  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129  IFS=$as_save_IFS
4130  test -z "$as_dir" && as_dir=.
4131  # Account for people who put trailing slashes in PATH elements.
4132case $as_dir/ in
4133  ./ | .// | /cC/* | \
4134  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4135  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4136  /usr/ucb/* ) ;;
4137  *)
4138    # OSF1 and SCO ODT 3.0 have their own names for install.
4139    # Don't use installbsd from OSF since it installs stuff as root
4140    # by default.
4141    for ac_prog in ginstall scoinst install; do
4142      for ac_exec_ext in '' $ac_executable_extensions; do
4143	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4144	  if test $ac_prog = install &&
4145	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4146	    # AIX install.  It has an incompatible calling convention.
4147	    :
4148	  elif test $ac_prog = install &&
4149	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4150	    # program-specific install script used by HP pwplus--don't use.
4151	    :
4152	  else
4153	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4154	    break 3
4155	  fi
4156	fi
4157      done
4158    done
4159    ;;
4160esac
4161done
4162IFS=$as_save_IFS
4163
4164
4165fi
4166  if test "${ac_cv_path_install+set}" = set; then
4167    INSTALL=$ac_cv_path_install
4168  else
4169    # As a last resort, use the slow shell script.  Don't cache a
4170    # value for INSTALL within a source directory, because that will
4171    # break other packages using the cache if that directory is
4172    # removed, or if the value is a relative name.
4173    INSTALL=$ac_install_sh
4174  fi
4175fi
4176{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4177echo "${ECHO_T}$INSTALL" >&6; }
4178
4179# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4180# It thinks the first close brace ends the variable substitution.
4181test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4182
4183test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4184
4185test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4186
4187{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4188echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4189LN_S=$as_ln_s
4190if test "$LN_S" = "ln -s"; then
4191  { echo "$as_me:$LINENO: result: yes" >&5
4192echo "${ECHO_T}yes" >&6; }
4193else
4194  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4195echo "${ECHO_T}no, using $LN_S" >&6; }
4196fi
4197
4198{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4199echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4200set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4201if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4202  echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204  cat >conftest.make <<\_ACEOF
4205SHELL = /bin/sh
4206all:
4207	@echo '@@@%%%=$(MAKE)=@@@%%%'
4208_ACEOF
4209# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4210case `${MAKE-make} -f conftest.make 2>/dev/null` in
4211  *@@@%%%=?*=@@@%%%*)
4212    eval ac_cv_prog_make_${ac_make}_set=yes;;
4213  *)
4214    eval ac_cv_prog_make_${ac_make}_set=no;;
4215esac
4216rm -f conftest.make
4217fi
4218if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4219  { echo "$as_me:$LINENO: result: yes" >&5
4220echo "${ECHO_T}yes" >&6; }
4221  SET_MAKE=
4222else
4223  { echo "$as_me:$LINENO: result: no" >&5
4224echo "${ECHO_T}no" >&6; }
4225  SET_MAKE="MAKE=${MAKE-make}"
4226fi
4227
4228
4229
4230# Check whether --enable-shared was given.
4231if test "${enable_shared+set}" = set; then
4232  enableval=$enable_shared; p=${PACKAGE-default}
4233    case $enableval in
4234    yes) enable_shared=yes ;;
4235    no) enable_shared=no ;;
4236    *)
4237      enable_shared=no
4238      # Look at the argument we got.  We use all the common list separators.
4239      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4240      for pkg in $enableval; do
4241	IFS="$lt_save_ifs"
4242	if test "X$pkg" = "X$p"; then
4243	  enable_shared=yes
4244	fi
4245      done
4246      IFS="$lt_save_ifs"
4247      ;;
4248    esac
4249else
4250  enable_shared=yes
4251fi
4252
4253
4254# Check whether --enable-static was given.
4255if test "${enable_static+set}" = set; then
4256  enableval=$enable_static; p=${PACKAGE-default}
4257    case $enableval in
4258    yes) enable_static=yes ;;
4259    no) enable_static=no ;;
4260    *)
4261     enable_static=no
4262      # Look at the argument we got.  We use all the common list separators.
4263      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4264      for pkg in $enableval; do
4265	IFS="$lt_save_ifs"
4266	if test "X$pkg" = "X$p"; then
4267	  enable_static=yes
4268	fi
4269      done
4270      IFS="$lt_save_ifs"
4271      ;;
4272    esac
4273else
4274  enable_static=yes
4275fi
4276
4277
4278# Check whether --enable-fast-install was given.
4279if test "${enable_fast_install+set}" = set; then
4280  enableval=$enable_fast_install; p=${PACKAGE-default}
4281    case $enableval in
4282    yes) enable_fast_install=yes ;;
4283    no) enable_fast_install=no ;;
4284    *)
4285      enable_fast_install=no
4286      # Look at the argument we got.  We use all the common list separators.
4287      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4288      for pkg in $enableval; do
4289	IFS="$lt_save_ifs"
4290	if test "X$pkg" = "X$p"; then
4291	  enable_fast_install=yes
4292	fi
4293      done
4294      IFS="$lt_save_ifs"
4295      ;;
4296    esac
4297else
4298  enable_fast_install=yes
4299fi
4300
4301
4302{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4303echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4304if test "${lt_cv_path_SED+set}" = set; then
4305  echo $ECHO_N "(cached) $ECHO_C" >&6
4306else
4307  # Loop through the user's path and test for sed and gsed.
4308# Then use that list of sed's as ones to test for truncation.
4309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310for as_dir in $PATH
4311do
4312  IFS=$as_save_IFS
4313  test -z "$as_dir" && as_dir=.
4314  for lt_ac_prog in sed gsed; do
4315    for ac_exec_ext in '' $ac_executable_extensions; do
4316      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4317        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4318      fi
4319    done
4320  done
4321done
4322IFS=$as_save_IFS
4323lt_ac_max=0
4324lt_ac_count=0
4325# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4326# along with /bin/sed that truncates output.
4327for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4328  test ! -f $lt_ac_sed && continue
4329  cat /dev/null > conftest.in
4330  lt_ac_count=0
4331  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4332  # Check for GNU sed and select it if it is found.
4333  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4334    lt_cv_path_SED=$lt_ac_sed
4335    break
4336  fi
4337  while true; do
4338    cat conftest.in conftest.in >conftest.tmp
4339    mv conftest.tmp conftest.in
4340    cp conftest.in conftest.nl
4341    echo >>conftest.nl
4342    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4343    cmp -s conftest.out conftest.nl || break
4344    # 10000 chars as input seems more than enough
4345    test $lt_ac_count -gt 10 && break
4346    lt_ac_count=`expr $lt_ac_count + 1`
4347    if test $lt_ac_count -gt $lt_ac_max; then
4348      lt_ac_max=$lt_ac_count
4349      lt_cv_path_SED=$lt_ac_sed
4350    fi
4351  done
4352done
4353
4354fi
4355
4356SED=$lt_cv_path_SED
4357
4358{ echo "$as_me:$LINENO: result: $SED" >&5
4359echo "${ECHO_T}$SED" >&6; }
4360
4361
4362
4363test x$GREP = x && # Extract the first word of "grep$EXEEXT", so it can be a program name with args.
4364set dummy grep$EXEEXT; ac_word=$2
4365{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4367if test "${ac_cv_path_GREP+set}" = set; then
4368  echo $ECHO_N "(cached) $ECHO_C" >&6
4369else
4370  case $GREP in
4371  [\\/]* | ?:[\\/]*)
4372  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4373  ;;
4374  *)
4375  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH
4377do
4378  IFS=$as_save_IFS
4379  test -z "$as_dir" && as_dir=.
4380  for ac_exec_ext in '' $ac_executable_extensions; do
4381  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4382    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4383    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4384    break 2
4385  fi
4386done
4387done
4388IFS=$as_save_IFS
4389
4390  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep$EXEEXT"
4391  ;;
4392esac
4393fi
4394GREP=$ac_cv_path_GREP
4395if test -n "$GREP"; then
4396  { echo "$as_me:$LINENO: result: $GREP" >&5
4397echo "${ECHO_T}$GREP" >&6; }
4398else
4399  { echo "$as_me:$LINENO: result: no" >&5
4400echo "${ECHO_T}no" >&6; }
4401fi
4402
4403
4404test x$GREP = x && { { echo "$as_me:$LINENO: error: no acceptable grep found in \$PATH" >&5
4405echo "$as_me: error: no acceptable grep found in \$PATH" >&2;}
4406   { (exit 1); exit 1; }; }
4407
4408{ echo "$as_me:$LINENO: checking for egrep" >&5
4409echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4410if test "${ac_cv_path_EGREP+set}" = set; then
4411  echo $ECHO_N "(cached) $ECHO_C" >&6
4412else
4413  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4414   then ac_cv_path_EGREP="$GREP -E"
4415   else
4416     # Extract the first word of "egrep" to use in msg output
4417if test -z "$EGREP"; then
4418set dummy egrep; ac_prog_name=$2
4419if test "${ac_cv_path_EGREP+set}" = set; then
4420  echo $ECHO_N "(cached) $ECHO_C" >&6
4421else
4422  ac_path_EGREP_found=false
4423# Loop through the user's path and test for each of PROGNAME-LIST
4424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4426do
4427  IFS=$as_save_IFS
4428  test -z "$as_dir" && as_dir=.
4429  for ac_prog in egrep; do
4430  for ac_exec_ext in '' $ac_executable_extensions; do
4431    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4432    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4433    # Check for GNU ac_path_EGREP and select it if it is found.
4434  # Check for GNU $ac_path_EGREP
4435case `"$ac_path_EGREP" --version 2>&1` in
4436*GNU*)
4437  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4438*)
4439  ac_count=0
4440  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4441  while :
4442  do
4443    cat "conftest.in" "conftest.in" >"conftest.tmp"
4444    mv "conftest.tmp" "conftest.in"
4445    cp "conftest.in" "conftest.nl"
4446    echo 'EGREP' >> "conftest.nl"
4447    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4448    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4449    ac_count=`expr $ac_count + 1`
4450    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4451      # Best one so far, save it but keep looking for a better one
4452      ac_cv_path_EGREP="$ac_path_EGREP"
4453      ac_path_EGREP_max=$ac_count
4454    fi
4455    # 10*(2^10) chars as input seems more than enough
4456    test $ac_count -gt 10 && break
4457  done
4458  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4459esac
4460
4461
4462    $ac_path_EGREP_found && break 3
4463  done
4464done
4465
4466done
4467IFS=$as_save_IFS
4468
4469
4470fi
4471
4472EGREP="$ac_cv_path_EGREP"
4473if test -z "$EGREP"; then
4474  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4475echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4476   { (exit 1); exit 1; }; }
4477fi
4478
4479else
4480  ac_cv_path_EGREP=$EGREP
4481fi
4482
4483
4484   fi
4485fi
4486{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4487echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4488 EGREP="$ac_cv_path_EGREP"
4489
4490
4491
4492# Check whether --with-gnu-ld was given.
4493if test "${with_gnu_ld+set}" = set; then
4494  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4495else
4496  with_gnu_ld=no
4497fi
4498
4499ac_prog=ld
4500if test "$GCC" = yes; then
4501  # Check if gcc -print-prog-name=ld gives a path.
4502  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4503echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4504  case $host in
4505  *-*-mingw*)
4506    # gcc leaves a trailing carriage return which upsets mingw
4507    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4508  *)
4509    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4510  esac
4511  case $ac_prog in
4512    # Accept absolute paths.
4513    [\\/]* | ?:[\\/]*)
4514      re_direlt='/[^/][^/]*/\.\./'
4515      # Canonicalize the pathname of ld
4516      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4517      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4518	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4519      done
4520      test -z "$LD" && LD="$ac_prog"
4521      ;;
4522  "")
4523    # If it fails, then pretend we aren't using GCC.
4524    ac_prog=ld
4525    ;;
4526  *)
4527    # If it is relative, then search for the first ld in PATH.
4528    with_gnu_ld=unknown
4529    ;;
4530  esac
4531elif test "$with_gnu_ld" = yes; then
4532  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4533echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4534else
4535  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4536echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4537fi
4538if test "${lt_cv_path_LD+set}" = set; then
4539  echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541  if test -z "$LD"; then
4542  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4543  for ac_dir in $PATH; do
4544    IFS="$lt_save_ifs"
4545    test -z "$ac_dir" && ac_dir=.
4546    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4547      lt_cv_path_LD="$ac_dir/$ac_prog"
4548      # Check to see if the program is GNU ld.  I'd rather use --version,
4549      # but apparently some variants of GNU ld only accept -v.
4550      # Break only if it was the GNU/non-GNU ld that we prefer.
4551      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4552      *GNU* | *'with BFD'*)
4553	test "$with_gnu_ld" != no && break
4554	;;
4555      *)
4556	test "$with_gnu_ld" != yes && break
4557	;;
4558      esac
4559    fi
4560  done
4561  IFS="$lt_save_ifs"
4562else
4563  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4564fi
4565fi
4566
4567LD="$lt_cv_path_LD"
4568if test -n "$LD"; then
4569  { echo "$as_me:$LINENO: result: $LD" >&5
4570echo "${ECHO_T}$LD" >&6; }
4571else
4572  { echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6; }
4574fi
4575test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4576echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4577   { (exit 1); exit 1; }; }
4578{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4579echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4580if test "${lt_cv_prog_gnu_ld+set}" = set; then
4581  echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4584case `$LD -v 2>&1 </dev/null` in
4585*GNU* | *'with BFD'*)
4586  lt_cv_prog_gnu_ld=yes
4587  ;;
4588*)
4589  lt_cv_prog_gnu_ld=no
4590  ;;
4591esac
4592fi
4593{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4594echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4595with_gnu_ld=$lt_cv_prog_gnu_ld
4596
4597
4598{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4599echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4600if test "${lt_cv_ld_reload_flag+set}" = set; then
4601  echo $ECHO_N "(cached) $ECHO_C" >&6
4602else
4603  lt_cv_ld_reload_flag='-r'
4604fi
4605{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4606echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4607reload_flag=$lt_cv_ld_reload_flag
4608case $reload_flag in
4609"" | " "*) ;;
4610*) reload_flag=" $reload_flag" ;;
4611esac
4612reload_cmds='$LD$reload_flag -o $output$reload_objs'
4613case $host_os in
4614  darwin*)
4615    if test "$GCC" = yes; then
4616      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4617    else
4618      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4619    fi
4620    ;;
4621esac
4622
4623{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4624echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4625if test "${lt_cv_path_NM+set}" = set; then
4626  echo $ECHO_N "(cached) $ECHO_C" >&6
4627else
4628  if test -n "$NM"; then
4629  # Let the user override the test.
4630  lt_cv_path_NM="$NM"
4631else
4632  lt_nm_to_check="${ac_tool_prefix}nm"
4633  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4634    lt_nm_to_check="$lt_nm_to_check nm"
4635  fi
4636  for lt_tmp_nm in $lt_nm_to_check; do
4637    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4638    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4639      IFS="$lt_save_ifs"
4640      test -z "$ac_dir" && ac_dir=.
4641      tmp_nm="$ac_dir/$lt_tmp_nm"
4642      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4643	# Check to see if the nm accepts a BSD-compat flag.
4644	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4645	#   nm: unknown option "B" ignored
4646	# Tru64's nm complains that /dev/null is an invalid object file
4647	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4648	*/dev/null* | *'Invalid file or object type'*)
4649	  lt_cv_path_NM="$tmp_nm -B"
4650	  break
4651	  ;;
4652	*)
4653	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4654	  */dev/null*)
4655	    lt_cv_path_NM="$tmp_nm -p"
4656	    break
4657	    ;;
4658	  *)
4659	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4660	    continue # so that we can try to find one that supports BSD flags
4661	    ;;
4662	  esac
4663	  ;;
4664	esac
4665      fi
4666    done
4667    IFS="$lt_save_ifs"
4668  done
4669  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4670fi
4671fi
4672{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4673echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4674NM="$lt_cv_path_NM"
4675
4676{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4677echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4678if test "${lt_cv_deplibs_check_method+set}" = set; then
4679  echo $ECHO_N "(cached) $ECHO_C" >&6
4680else
4681  lt_cv_file_magic_cmd='$MAGIC_CMD'
4682lt_cv_file_magic_test_file=
4683lt_cv_deplibs_check_method='unknown'
4684# Need to set the preceding variable on all platforms that support
4685# interlibrary dependencies.
4686# 'none' -- dependencies not supported.
4687# `unknown' -- same as none, but documents that we really don't know.
4688# 'pass_all' -- all dependencies passed with no checks.
4689# 'test_compile' -- check by making test program.
4690# 'file_magic [[regex]]' -- check by looking for files in library path
4691# which responds to the $file_magic_cmd with a given extended regex.
4692# If you have `file' or equivalent on your system and you're not sure
4693# whether `pass_all' will *always* work, you probably want this one.
4694
4695case $host_os in
4696aix[4-9]*)
4697  lt_cv_deplibs_check_method=pass_all
4698  ;;
4699
4700beos*)
4701  lt_cv_deplibs_check_method=pass_all
4702  ;;
4703
4704bsdi[45]*)
4705  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4706  lt_cv_file_magic_cmd='/usr/bin/file -L'
4707  lt_cv_file_magic_test_file=/shlib/libc.so
4708  ;;
4709
4710cygwin*)
4711  # func_win32_libid is a shell function defined in ltmain.sh
4712  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4713  lt_cv_file_magic_cmd='func_win32_libid'
4714  ;;
4715
4716mingw* | pw32*)
4717  # Base MSYS/MinGW do not provide the 'file' command needed by
4718  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4719  # unless we find 'file', for example because we are cross-compiling.
4720  if ( file / ) >/dev/null 2>&1; then
4721    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4722    lt_cv_file_magic_cmd='func_win32_libid'
4723  else
4724    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4725    lt_cv_file_magic_cmd='$OBJDUMP -f'
4726  fi
4727  ;;
4728
4729darwin* | rhapsody*)
4730  lt_cv_deplibs_check_method=pass_all
4731  ;;
4732
4733freebsd* | dragonfly*)
4734  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4735    case $host_cpu in
4736    i*86 )
4737      # Not sure whether the presence of OpenBSD here was a mistake.
4738      # Let's accept both of them until this is cleared up.
4739      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4740      lt_cv_file_magic_cmd=/usr/bin/file
4741      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4742      ;;
4743    esac
4744  else
4745    lt_cv_deplibs_check_method=pass_all
4746  fi
4747  ;;
4748
4749gnu*)
4750  lt_cv_deplibs_check_method=pass_all
4751  ;;
4752
4753hpux10.20* | hpux11*)
4754  lt_cv_file_magic_cmd=/usr/bin/file
4755  case $host_cpu in
4756  ia64*)
4757    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4758    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4759    ;;
4760  hppa*64*)
4761    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4762    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4763    ;;
4764  *)
4765    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4766    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4767    ;;
4768  esac
4769  ;;
4770
4771interix[3-9]*)
4772  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4773  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4774  ;;
4775
4776irix5* | irix6* | nonstopux*)
4777  case $LD in
4778  *-32|*"-32 ") libmagic=32-bit;;
4779  *-n32|*"-n32 ") libmagic=N32;;
4780  *-64|*"-64 ") libmagic=64-bit;;
4781  *) libmagic=never-match;;
4782  esac
4783  lt_cv_deplibs_check_method=pass_all
4784  ;;
4785
4786# This must be Linux ELF.
4787linux* | k*bsd*-gnu)
4788  lt_cv_deplibs_check_method=pass_all
4789  ;;
4790
4791netbsd* | netbsdelf*-gnu)
4792  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4793    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4794  else
4795    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4796  fi
4797  ;;
4798
4799newos6*)
4800  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4801  lt_cv_file_magic_cmd=/usr/bin/file
4802  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4803  ;;
4804
4805nto-qnx*)
4806  lt_cv_deplibs_check_method=unknown
4807  ;;
4808
4809openbsd*)
4810  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4811    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4812  else
4813    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4814  fi
4815  ;;
4816
4817osf3* | osf4* | osf5*)
4818  lt_cv_deplibs_check_method=pass_all
4819  ;;
4820
4821rdos*)
4822  lt_cv_deplibs_check_method=pass_all
4823  ;;
4824
4825solaris*)
4826  lt_cv_deplibs_check_method=pass_all
4827  ;;
4828
4829sysv4 | sysv4.3*)
4830  case $host_vendor in
4831  motorola)
4832    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]'
4833    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4834    ;;
4835  ncr)
4836    lt_cv_deplibs_check_method=pass_all
4837    ;;
4838  sequent)
4839    lt_cv_file_magic_cmd='/bin/file'
4840    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4841    ;;
4842  sni)
4843    lt_cv_file_magic_cmd='/bin/file'
4844    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4845    lt_cv_file_magic_test_file=/lib/libc.so
4846    ;;
4847  siemens)
4848    lt_cv_deplibs_check_method=pass_all
4849    ;;
4850  pc)
4851    lt_cv_deplibs_check_method=pass_all
4852    ;;
4853  esac
4854  ;;
4855
4856sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4857  lt_cv_deplibs_check_method=pass_all
4858  ;;
4859esac
4860
4861fi
4862{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4863echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4864file_magic_cmd=$lt_cv_file_magic_cmd
4865deplibs_check_method=$lt_cv_deplibs_check_method
4866test -z "$deplibs_check_method" && deplibs_check_method=unknown
4867
4868
4869
4870# If no C compiler was specified, use CC.
4871LTCC=${LTCC-"$CC"}
4872
4873# If no C compiler flags were specified, use CFLAGS.
4874LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4875
4876# Allow CC to be a program name with arguments.
4877compiler=$CC
4878
4879
4880# Check whether --enable-libtool-lock was given.
4881if test "${enable_libtool_lock+set}" = set; then
4882  enableval=$enable_libtool_lock;
4883fi
4884
4885test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4886
4887# Some flags need to be propagated to the compiler or linker for good
4888# libtool support.
4889case $host in
4890ia64-*-hpux*)
4891  # Find out which ABI we are using.
4892  echo 'int i;' > conftest.$ac_ext
4893  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4894  (eval $ac_compile) 2>&5
4895  ac_status=$?
4896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897  (exit $ac_status); }; then
4898    case `/usr/bin/file conftest.$ac_objext` in
4899    *ELF-32*)
4900      HPUX_IA64_MODE="32"
4901      ;;
4902    *ELF-64*)
4903      HPUX_IA64_MODE="64"
4904      ;;
4905    esac
4906  fi
4907  rm -rf conftest*
4908  ;;
4909*-*-irix6*)
4910  # Find out which ABI we are using.
4911  echo '#line 4911 "configure"' > conftest.$ac_ext
4912  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913  (eval $ac_compile) 2>&5
4914  ac_status=$?
4915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916  (exit $ac_status); }; then
4917   if test "$lt_cv_prog_gnu_ld" = yes; then
4918    case `/usr/bin/file conftest.$ac_objext` in
4919    *32-bit*)
4920      LD="${LD-ld} -melf32bsmip"
4921      ;;
4922    *N32*)
4923      LD="${LD-ld} -melf32bmipn32"
4924      ;;
4925    *64-bit*)
4926      LD="${LD-ld} -melf64bmip"
4927      ;;
4928    esac
4929   else
4930    case `/usr/bin/file conftest.$ac_objext` in
4931    *32-bit*)
4932      LD="${LD-ld} -32"
4933      ;;
4934    *N32*)
4935      LD="${LD-ld} -n32"
4936      ;;
4937    *64-bit*)
4938      LD="${LD-ld} -64"
4939      ;;
4940    esac
4941   fi
4942  fi
4943  rm -rf conftest*
4944  ;;
4945
4946x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4947s390*-*linux*|sparc*-*linux*)
4948  # Find out which ABI we are using.
4949  echo 'int i;' > conftest.$ac_ext
4950  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951  (eval $ac_compile) 2>&5
4952  ac_status=$?
4953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954  (exit $ac_status); }; then
4955    case `/usr/bin/file conftest.o` in
4956    *32-bit*)
4957      case $host in
4958        x86_64-*kfreebsd*-gnu)
4959          LD="${LD-ld} -m elf_i386_fbsd"
4960          ;;
4961        x86_64-*linux*)
4962          LD="${LD-ld} -m elf_i386"
4963          ;;
4964        ppc64-*linux*|powerpc64-*linux*)
4965          LD="${LD-ld} -m elf32ppclinux"
4966          ;;
4967        s390x-*linux*)
4968          LD="${LD-ld} -m elf_s390"
4969          ;;
4970        sparc64-*linux*)
4971          LD="${LD-ld} -m elf32_sparc"
4972          ;;
4973      esac
4974      ;;
4975    *64-bit*)
4976      case $host in
4977        x86_64-*kfreebsd*-gnu)
4978          LD="${LD-ld} -m elf_x86_64_fbsd"
4979          ;;
4980        x86_64-*linux*)
4981          LD="${LD-ld} -m elf_x86_64"
4982          ;;
4983        ppc*-*linux*|powerpc*-*linux*)
4984          LD="${LD-ld} -m elf64ppc"
4985          ;;
4986        s390*-*linux*)
4987          LD="${LD-ld} -m elf64_s390"
4988          ;;
4989        sparc*-*linux*)
4990          LD="${LD-ld} -m elf64_sparc"
4991          ;;
4992      esac
4993      ;;
4994    esac
4995  fi
4996  rm -rf conftest*
4997  ;;
4998
4999*-*-sco3.2v5*)
5000  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5001  SAVE_CFLAGS="$CFLAGS"
5002  CFLAGS="$CFLAGS -belf"
5003  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5004echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5005if test "${lt_cv_cc_needs_belf+set}" = set; then
5006  echo $ECHO_N "(cached) $ECHO_C" >&6
5007else
5008  ac_ext=c
5009ac_cpp='$CPP $CPPFLAGS'
5010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013
5014     cat >conftest.$ac_ext <<_ACEOF
5015/* confdefs.h.  */
5016_ACEOF
5017cat confdefs.h >>conftest.$ac_ext
5018cat >>conftest.$ac_ext <<_ACEOF
5019/* end confdefs.h.  */
5020
5021int
5022main ()
5023{
5024
5025  ;
5026  return 0;
5027}
5028_ACEOF
5029rm -f conftest.$ac_objext conftest$ac_exeext
5030if { (ac_try="$ac_link"
5031case "(($ac_try" in
5032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033  *) ac_try_echo=$ac_try;;
5034esac
5035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036  (eval "$ac_link") 2>conftest.er1
5037  ac_status=$?
5038  grep -v '^ *+' conftest.er1 >conftest.err
5039  rm -f conftest.er1
5040  cat conftest.err >&5
5041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042  (exit $ac_status); } && {
5043	 test -z "$ac_c_werror_flag" ||
5044	 test ! -s conftest.err
5045       } && test -s conftest$ac_exeext &&
5046       $as_test_x conftest$ac_exeext; then
5047  lt_cv_cc_needs_belf=yes
5048else
5049  echo "$as_me: failed program was:" >&5
5050sed 's/^/| /' conftest.$ac_ext >&5
5051
5052	lt_cv_cc_needs_belf=no
5053fi
5054
5055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5056      conftest$ac_exeext conftest.$ac_ext
5057     ac_ext=c
5058ac_cpp='$CPP $CPPFLAGS'
5059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061ac_compiler_gnu=$ac_cv_c_compiler_gnu
5062
5063fi
5064{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5065echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5066  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5067    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5068    CFLAGS="$SAVE_CFLAGS"
5069  fi
5070  ;;
5071sparc*-*solaris*)
5072  # Find out which ABI we are using.
5073  echo 'int i;' > conftest.$ac_ext
5074  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075  (eval $ac_compile) 2>&5
5076  ac_status=$?
5077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078  (exit $ac_status); }; then
5079    case `/usr/bin/file conftest.o` in
5080    *64-bit*)
5081      case $lt_cv_prog_gnu_ld in
5082      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5083      *)
5084        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5085	  LD="${LD-ld} -64"
5086	fi
5087	;;
5088      esac
5089      ;;
5090    esac
5091  fi
5092  rm -rf conftest*
5093  ;;
5094
5095
5096esac
5097
5098need_locks="$enable_libtool_lock"
5099
5100
5101ac_ext=c
5102ac_cpp='$CPP $CPPFLAGS'
5103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5107echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5108# On Suns, sometimes $CPP names a directory.
5109if test -n "$CPP" && test -d "$CPP"; then
5110  CPP=
5111fi
5112if test -z "$CPP"; then
5113  if test "${ac_cv_prog_CPP+set}" = set; then
5114  echo $ECHO_N "(cached) $ECHO_C" >&6
5115else
5116      # Double quotes because CPP needs to be expanded
5117    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5118    do
5119      ac_preproc_ok=false
5120for ac_c_preproc_warn_flag in '' yes
5121do
5122  # Use a header file that comes with gcc, so configuring glibc
5123  # with a fresh cross-compiler works.
5124  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5125  # <limits.h> exists even on freestanding compilers.
5126  # On the NeXT, cc -E runs the code through the compiler's parser,
5127  # not just through cpp. "Syntax error" is here to catch this case.
5128  cat >conftest.$ac_ext <<_ACEOF
5129/* confdefs.h.  */
5130_ACEOF
5131cat confdefs.h >>conftest.$ac_ext
5132cat >>conftest.$ac_ext <<_ACEOF
5133/* end confdefs.h.  */
5134#ifdef __STDC__
5135# include <limits.h>
5136#else
5137# include <assert.h>
5138#endif
5139		     Syntax error
5140_ACEOF
5141if { (ac_try="$ac_cpp conftest.$ac_ext"
5142case "(($ac_try" in
5143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144  *) ac_try_echo=$ac_try;;
5145esac
5146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5148  ac_status=$?
5149  grep -v '^ *+' conftest.er1 >conftest.err
5150  rm -f conftest.er1
5151  cat conftest.err >&5
5152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153  (exit $ac_status); } >/dev/null && {
5154	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5155	 test ! -s conftest.err
5156       }; then
5157  :
5158else
5159  echo "$as_me: failed program was:" >&5
5160sed 's/^/| /' conftest.$ac_ext >&5
5161
5162  # Broken: fails on valid input.
5163continue
5164fi
5165
5166rm -f conftest.err conftest.$ac_ext
5167
5168  # OK, works on sane cases.  Now check whether nonexistent headers
5169  # can be detected and how.
5170  cat >conftest.$ac_ext <<_ACEOF
5171/* confdefs.h.  */
5172_ACEOF
5173cat confdefs.h >>conftest.$ac_ext
5174cat >>conftest.$ac_ext <<_ACEOF
5175/* end confdefs.h.  */
5176#include <ac_nonexistent.h>
5177_ACEOF
5178if { (ac_try="$ac_cpp conftest.$ac_ext"
5179case "(($ac_try" in
5180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181  *) ac_try_echo=$ac_try;;
5182esac
5183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5184  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5185  ac_status=$?
5186  grep -v '^ *+' conftest.er1 >conftest.err
5187  rm -f conftest.er1
5188  cat conftest.err >&5
5189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190  (exit $ac_status); } >/dev/null && {
5191	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5192	 test ! -s conftest.err
5193       }; then
5194  # Broken: success on invalid input.
5195continue
5196else
5197  echo "$as_me: failed program was:" >&5
5198sed 's/^/| /' conftest.$ac_ext >&5
5199
5200  # Passes both tests.
5201ac_preproc_ok=:
5202break
5203fi
5204
5205rm -f conftest.err conftest.$ac_ext
5206
5207done
5208# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5209rm -f conftest.err conftest.$ac_ext
5210if $ac_preproc_ok; then
5211  break
5212fi
5213
5214    done
5215    ac_cv_prog_CPP=$CPP
5216
5217fi
5218  CPP=$ac_cv_prog_CPP
5219else
5220  ac_cv_prog_CPP=$CPP
5221fi
5222{ echo "$as_me:$LINENO: result: $CPP" >&5
5223echo "${ECHO_T}$CPP" >&6; }
5224ac_preproc_ok=false
5225for ac_c_preproc_warn_flag in '' yes
5226do
5227  # Use a header file that comes with gcc, so configuring glibc
5228  # with a fresh cross-compiler works.
5229  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5230  # <limits.h> exists even on freestanding compilers.
5231  # On the NeXT, cc -E runs the code through the compiler's parser,
5232  # not just through cpp. "Syntax error" is here to catch this case.
5233  cat >conftest.$ac_ext <<_ACEOF
5234/* confdefs.h.  */
5235_ACEOF
5236cat confdefs.h >>conftest.$ac_ext
5237cat >>conftest.$ac_ext <<_ACEOF
5238/* end confdefs.h.  */
5239#ifdef __STDC__
5240# include <limits.h>
5241#else
5242# include <assert.h>
5243#endif
5244		     Syntax error
5245_ACEOF
5246if { (ac_try="$ac_cpp conftest.$ac_ext"
5247case "(($ac_try" in
5248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249  *) ac_try_echo=$ac_try;;
5250esac
5251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5253  ac_status=$?
5254  grep -v '^ *+' conftest.er1 >conftest.err
5255  rm -f conftest.er1
5256  cat conftest.err >&5
5257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258  (exit $ac_status); } >/dev/null && {
5259	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5260	 test ! -s conftest.err
5261       }; then
5262  :
5263else
5264  echo "$as_me: failed program was:" >&5
5265sed 's/^/| /' conftest.$ac_ext >&5
5266
5267  # Broken: fails on valid input.
5268continue
5269fi
5270
5271rm -f conftest.err conftest.$ac_ext
5272
5273  # OK, works on sane cases.  Now check whether nonexistent headers
5274  # can be detected and how.
5275  cat >conftest.$ac_ext <<_ACEOF
5276/* confdefs.h.  */
5277_ACEOF
5278cat confdefs.h >>conftest.$ac_ext
5279cat >>conftest.$ac_ext <<_ACEOF
5280/* end confdefs.h.  */
5281#include <ac_nonexistent.h>
5282_ACEOF
5283if { (ac_try="$ac_cpp conftest.$ac_ext"
5284case "(($ac_try" in
5285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286  *) ac_try_echo=$ac_try;;
5287esac
5288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5290  ac_status=$?
5291  grep -v '^ *+' conftest.er1 >conftest.err
5292  rm -f conftest.er1
5293  cat conftest.err >&5
5294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295  (exit $ac_status); } >/dev/null && {
5296	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5297	 test ! -s conftest.err
5298       }; then
5299  # Broken: success on invalid input.
5300continue
5301else
5302  echo "$as_me: failed program was:" >&5
5303sed 's/^/| /' conftest.$ac_ext >&5
5304
5305  # Passes both tests.
5306ac_preproc_ok=:
5307break
5308fi
5309
5310rm -f conftest.err conftest.$ac_ext
5311
5312done
5313# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5314rm -f conftest.err conftest.$ac_ext
5315if $ac_preproc_ok; then
5316  :
5317else
5318  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5319See \`config.log' for more details." >&5
5320echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5321See \`config.log' for more details." >&2;}
5322   { (exit 1); exit 1; }; }
5323fi
5324
5325ac_ext=c
5326ac_cpp='$CPP $CPPFLAGS'
5327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329ac_compiler_gnu=$ac_cv_c_compiler_gnu
5330
5331
5332{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5333echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5334if test "${ac_cv_header_stdc+set}" = set; then
5335  echo $ECHO_N "(cached) $ECHO_C" >&6
5336else
5337  cat >conftest.$ac_ext <<_ACEOF
5338/* confdefs.h.  */
5339_ACEOF
5340cat confdefs.h >>conftest.$ac_ext
5341cat >>conftest.$ac_ext <<_ACEOF
5342/* end confdefs.h.  */
5343#include <stdlib.h>
5344#include <stdarg.h>
5345#include <string.h>
5346#include <float.h>
5347
5348int
5349main ()
5350{
5351
5352  ;
5353  return 0;
5354}
5355_ACEOF
5356rm -f conftest.$ac_objext
5357if { (ac_try="$ac_compile"
5358case "(($ac_try" in
5359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360  *) ac_try_echo=$ac_try;;
5361esac
5362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363  (eval "$ac_compile") 2>conftest.er1
5364  ac_status=$?
5365  grep -v '^ *+' conftest.er1 >conftest.err
5366  rm -f conftest.er1
5367  cat conftest.err >&5
5368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369  (exit $ac_status); } && {
5370	 test -z "$ac_c_werror_flag" ||
5371	 test ! -s conftest.err
5372       } && test -s conftest.$ac_objext; then
5373  ac_cv_header_stdc=yes
5374else
5375  echo "$as_me: failed program was:" >&5
5376sed 's/^/| /' conftest.$ac_ext >&5
5377
5378	ac_cv_header_stdc=no
5379fi
5380
5381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382
5383if test $ac_cv_header_stdc = yes; then
5384  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5385  cat >conftest.$ac_ext <<_ACEOF
5386/* confdefs.h.  */
5387_ACEOF
5388cat confdefs.h >>conftest.$ac_ext
5389cat >>conftest.$ac_ext <<_ACEOF
5390/* end confdefs.h.  */
5391#include <string.h>
5392
5393_ACEOF
5394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5395  $EGREP "memchr" >/dev/null 2>&1; then
5396  :
5397else
5398  ac_cv_header_stdc=no
5399fi
5400rm -f conftest*
5401
5402fi
5403
5404if test $ac_cv_header_stdc = yes; then
5405  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5406  cat >conftest.$ac_ext <<_ACEOF
5407/* confdefs.h.  */
5408_ACEOF
5409cat confdefs.h >>conftest.$ac_ext
5410cat >>conftest.$ac_ext <<_ACEOF
5411/* end confdefs.h.  */
5412#include <stdlib.h>
5413
5414_ACEOF
5415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5416  $EGREP "free" >/dev/null 2>&1; then
5417  :
5418else
5419  ac_cv_header_stdc=no
5420fi
5421rm -f conftest*
5422
5423fi
5424
5425if test $ac_cv_header_stdc = yes; then
5426  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5427  if test "$cross_compiling" = yes; then
5428  :
5429else
5430  cat >conftest.$ac_ext <<_ACEOF
5431/* confdefs.h.  */
5432_ACEOF
5433cat confdefs.h >>conftest.$ac_ext
5434cat >>conftest.$ac_ext <<_ACEOF
5435/* end confdefs.h.  */
5436#include <ctype.h>
5437#include <stdlib.h>
5438#if ((' ' & 0x0FF) == 0x020)
5439# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5440# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5441#else
5442# define ISLOWER(c) \
5443		   (('a' <= (c) && (c) <= 'i') \
5444		     || ('j' <= (c) && (c) <= 'r') \
5445		     || ('s' <= (c) && (c) <= 'z'))
5446# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5447#endif
5448
5449#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5450int
5451main ()
5452{
5453  int i;
5454  for (i = 0; i < 256; i++)
5455    if (XOR (islower (i), ISLOWER (i))
5456	|| toupper (i) != TOUPPER (i))
5457      return 2;
5458  return 0;
5459}
5460_ACEOF
5461rm -f conftest$ac_exeext
5462if { (ac_try="$ac_link"
5463case "(($ac_try" in
5464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465  *) ac_try_echo=$ac_try;;
5466esac
5467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468  (eval "$ac_link") 2>&5
5469  ac_status=$?
5470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5472  { (case "(($ac_try" in
5473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474  *) ac_try_echo=$ac_try;;
5475esac
5476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477  (eval "$ac_try") 2>&5
5478  ac_status=$?
5479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480  (exit $ac_status); }; }; then
5481  :
5482else
5483  echo "$as_me: program exited with status $ac_status" >&5
5484echo "$as_me: failed program was:" >&5
5485sed 's/^/| /' conftest.$ac_ext >&5
5486
5487( exit $ac_status )
5488ac_cv_header_stdc=no
5489fi
5490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5491fi
5492
5493
5494fi
5495fi
5496{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5497echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5498if test $ac_cv_header_stdc = yes; then
5499
5500cat >>confdefs.h <<\_ACEOF
5501#define STDC_HEADERS 1
5502_ACEOF
5503
5504fi
5505
5506# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5517		  inttypes.h stdint.h unistd.h
5518do
5519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5520{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5523  echo $ECHO_N "(cached) $ECHO_C" >&6
5524else
5525  cat >conftest.$ac_ext <<_ACEOF
5526/* confdefs.h.  */
5527_ACEOF
5528cat confdefs.h >>conftest.$ac_ext
5529cat >>conftest.$ac_ext <<_ACEOF
5530/* end confdefs.h.  */
5531$ac_includes_default
5532
5533#include <$ac_header>
5534_ACEOF
5535rm -f conftest.$ac_objext
5536if { (ac_try="$ac_compile"
5537case "(($ac_try" in
5538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539  *) ac_try_echo=$ac_try;;
5540esac
5541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542  (eval "$ac_compile") 2>conftest.er1
5543  ac_status=$?
5544  grep -v '^ *+' conftest.er1 >conftest.err
5545  rm -f conftest.er1
5546  cat conftest.err >&5
5547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548  (exit $ac_status); } && {
5549	 test -z "$ac_c_werror_flag" ||
5550	 test ! -s conftest.err
5551       } && test -s conftest.$ac_objext; then
5552  eval "$as_ac_Header=yes"
5553else
5554  echo "$as_me: failed program was:" >&5
5555sed 's/^/| /' conftest.$ac_ext >&5
5556
5557	eval "$as_ac_Header=no"
5558fi
5559
5560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561fi
5562ac_res=`eval echo '${'$as_ac_Header'}'`
5563	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5564echo "${ECHO_T}$ac_res" >&6; }
5565if test `eval echo '${'$as_ac_Header'}'` = yes; then
5566  cat >>confdefs.h <<_ACEOF
5567#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5568_ACEOF
5569
5570fi
5571
5572done
5573
5574
5575
5576for ac_header in dlfcn.h
5577do
5578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5579if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5580  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5583  echo $ECHO_N "(cached) $ECHO_C" >&6
5584fi
5585ac_res=`eval echo '${'$as_ac_Header'}'`
5586	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5587echo "${ECHO_T}$ac_res" >&6; }
5588else
5589  # Is the header compilable?
5590{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5591echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5592cat >conftest.$ac_ext <<_ACEOF
5593/* confdefs.h.  */
5594_ACEOF
5595cat confdefs.h >>conftest.$ac_ext
5596cat >>conftest.$ac_ext <<_ACEOF
5597/* end confdefs.h.  */
5598$ac_includes_default
5599#include <$ac_header>
5600_ACEOF
5601rm -f conftest.$ac_objext
5602if { (ac_try="$ac_compile"
5603case "(($ac_try" in
5604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605  *) ac_try_echo=$ac_try;;
5606esac
5607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608  (eval "$ac_compile") 2>conftest.er1
5609  ac_status=$?
5610  grep -v '^ *+' conftest.er1 >conftest.err
5611  rm -f conftest.er1
5612  cat conftest.err >&5
5613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614  (exit $ac_status); } && {
5615	 test -z "$ac_c_werror_flag" ||
5616	 test ! -s conftest.err
5617       } && test -s conftest.$ac_objext; then
5618  ac_header_compiler=yes
5619else
5620  echo "$as_me: failed program was:" >&5
5621sed 's/^/| /' conftest.$ac_ext >&5
5622
5623	ac_header_compiler=no
5624fi
5625
5626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5628echo "${ECHO_T}$ac_header_compiler" >&6; }
5629
5630# Is the header present?
5631{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5632echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5633cat >conftest.$ac_ext <<_ACEOF
5634/* confdefs.h.  */
5635_ACEOF
5636cat confdefs.h >>conftest.$ac_ext
5637cat >>conftest.$ac_ext <<_ACEOF
5638/* end confdefs.h.  */
5639#include <$ac_header>
5640_ACEOF
5641if { (ac_try="$ac_cpp conftest.$ac_ext"
5642case "(($ac_try" in
5643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644  *) ac_try_echo=$ac_try;;
5645esac
5646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5648  ac_status=$?
5649  grep -v '^ *+' conftest.er1 >conftest.err
5650  rm -f conftest.er1
5651  cat conftest.err >&5
5652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653  (exit $ac_status); } >/dev/null && {
5654	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5655	 test ! -s conftest.err
5656       }; then
5657  ac_header_preproc=yes
5658else
5659  echo "$as_me: failed program was:" >&5
5660sed 's/^/| /' conftest.$ac_ext >&5
5661
5662  ac_header_preproc=no
5663fi
5664
5665rm -f conftest.err conftest.$ac_ext
5666{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5667echo "${ECHO_T}$ac_header_preproc" >&6; }
5668
5669# So?  What about this header?
5670case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5671  yes:no: )
5672    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5673echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5674    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5675echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5676    ac_header_preproc=yes
5677    ;;
5678  no:yes:* )
5679    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5680echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5681    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5682echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5683    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5684echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5685    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5686echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5687    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5688echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5689    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5690echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5691
5692    ;;
5693esac
5694{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5697  echo $ECHO_N "(cached) $ECHO_C" >&6
5698else
5699  eval "$as_ac_Header=\$ac_header_preproc"
5700fi
5701ac_res=`eval echo '${'$as_ac_Header'}'`
5702	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5703echo "${ECHO_T}$ac_res" >&6; }
5704
5705fi
5706if test `eval echo '${'$as_ac_Header'}'` = yes; then
5707  cat >>confdefs.h <<_ACEOF
5708#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5709_ACEOF
5710
5711fi
5712
5713done
5714
5715ac_ext=cpp
5716ac_cpp='$CXXCPP $CPPFLAGS'
5717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5720if test -z "$CXX"; then
5721  if test -n "$CCC"; then
5722    CXX=$CCC
5723  else
5724    if test -n "$ac_tool_prefix"; then
5725  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5726  do
5727    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5728set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5731if test "${ac_cv_prog_CXX+set}" = set; then
5732  echo $ECHO_N "(cached) $ECHO_C" >&6
5733else
5734  if test -n "$CXX"; then
5735  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5736else
5737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738for as_dir in $PATH
5739do
5740  IFS=$as_save_IFS
5741  test -z "$as_dir" && as_dir=.
5742  for ac_exec_ext in '' $ac_executable_extensions; do
5743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5745    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746    break 2
5747  fi
5748done
5749done
5750IFS=$as_save_IFS
5751
5752fi
5753fi
5754CXX=$ac_cv_prog_CXX
5755if test -n "$CXX"; then
5756  { echo "$as_me:$LINENO: result: $CXX" >&5
5757echo "${ECHO_T}$CXX" >&6; }
5758else
5759  { echo "$as_me:$LINENO: result: no" >&5
5760echo "${ECHO_T}no" >&6; }
5761fi
5762
5763
5764    test -n "$CXX" && break
5765  done
5766fi
5767if test -z "$CXX"; then
5768  ac_ct_CXX=$CXX
5769  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5770do
5771  # Extract the first word of "$ac_prog", so it can be a program name with args.
5772set dummy $ac_prog; ac_word=$2
5773{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5775if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5776  echo $ECHO_N "(cached) $ECHO_C" >&6
5777else
5778  if test -n "$ac_ct_CXX"; then
5779  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5780else
5781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782for as_dir in $PATH
5783do
5784  IFS=$as_save_IFS
5785  test -z "$as_dir" && as_dir=.
5786  for ac_exec_ext in '' $ac_executable_extensions; do
5787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788    ac_cv_prog_ac_ct_CXX="$ac_prog"
5789    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5790    break 2
5791  fi
5792done
5793done
5794IFS=$as_save_IFS
5795
5796fi
5797fi
5798ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5799if test -n "$ac_ct_CXX"; then
5800  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5801echo "${ECHO_T}$ac_ct_CXX" >&6; }
5802else
5803  { echo "$as_me:$LINENO: result: no" >&5
5804echo "${ECHO_T}no" >&6; }
5805fi
5806
5807
5808  test -n "$ac_ct_CXX" && break
5809done
5810
5811  if test "x$ac_ct_CXX" = x; then
5812    CXX="g++"
5813  else
5814    case $cross_compiling:$ac_tool_warned in
5815yes:)
5816{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5817whose name does not start with the host triplet.  If you think this
5818configuration is useful to you, please write to autoconf@gnu.org." >&5
5819echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5820whose name does not start with the host triplet.  If you think this
5821configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5822ac_tool_warned=yes ;;
5823esac
5824    CXX=$ac_ct_CXX
5825  fi
5826fi
5827
5828  fi
5829fi
5830# Provide some information about the compiler.
5831echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5832ac_compiler=`set X $ac_compile; echo $2`
5833{ (ac_try="$ac_compiler --version >&5"
5834case "(($ac_try" in
5835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836  *) ac_try_echo=$ac_try;;
5837esac
5838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839  (eval "$ac_compiler --version >&5") 2>&5
5840  ac_status=$?
5841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842  (exit $ac_status); }
5843{ (ac_try="$ac_compiler -v >&5"
5844case "(($ac_try" in
5845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846  *) ac_try_echo=$ac_try;;
5847esac
5848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849  (eval "$ac_compiler -v >&5") 2>&5
5850  ac_status=$?
5851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852  (exit $ac_status); }
5853{ (ac_try="$ac_compiler -V >&5"
5854case "(($ac_try" in
5855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856  *) ac_try_echo=$ac_try;;
5857esac
5858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5859  (eval "$ac_compiler -V >&5") 2>&5
5860  ac_status=$?
5861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862  (exit $ac_status); }
5863
5864{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5865echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5866if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5867  echo $ECHO_N "(cached) $ECHO_C" >&6
5868else
5869  cat >conftest.$ac_ext <<_ACEOF
5870/* confdefs.h.  */
5871_ACEOF
5872cat confdefs.h >>conftest.$ac_ext
5873cat >>conftest.$ac_ext <<_ACEOF
5874/* end confdefs.h.  */
5875
5876int
5877main ()
5878{
5879#ifndef __GNUC__
5880       choke me
5881#endif
5882
5883  ;
5884  return 0;
5885}
5886_ACEOF
5887rm -f conftest.$ac_objext
5888if { (ac_try="$ac_compile"
5889case "(($ac_try" in
5890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891  *) ac_try_echo=$ac_try;;
5892esac
5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894  (eval "$ac_compile") 2>conftest.er1
5895  ac_status=$?
5896  grep -v '^ *+' conftest.er1 >conftest.err
5897  rm -f conftest.er1
5898  cat conftest.err >&5
5899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900  (exit $ac_status); } && {
5901	 test -z "$ac_cxx_werror_flag" ||
5902	 test ! -s conftest.err
5903       } && test -s conftest.$ac_objext; then
5904  ac_compiler_gnu=yes
5905else
5906  echo "$as_me: failed program was:" >&5
5907sed 's/^/| /' conftest.$ac_ext >&5
5908
5909	ac_compiler_gnu=no
5910fi
5911
5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5914
5915fi
5916{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5917echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5918GXX=`test $ac_compiler_gnu = yes && echo yes`
5919ac_test_CXXFLAGS=${CXXFLAGS+set}
5920ac_save_CXXFLAGS=$CXXFLAGS
5921{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5922echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5923if test "${ac_cv_prog_cxx_g+set}" = set; then
5924  echo $ECHO_N "(cached) $ECHO_C" >&6
5925else
5926  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5927   ac_cxx_werror_flag=yes
5928   ac_cv_prog_cxx_g=no
5929   CXXFLAGS="-g"
5930   cat >conftest.$ac_ext <<_ACEOF
5931/* confdefs.h.  */
5932_ACEOF
5933cat confdefs.h >>conftest.$ac_ext
5934cat >>conftest.$ac_ext <<_ACEOF
5935/* end confdefs.h.  */
5936
5937int
5938main ()
5939{
5940
5941  ;
5942  return 0;
5943}
5944_ACEOF
5945rm -f conftest.$ac_objext
5946if { (ac_try="$ac_compile"
5947case "(($ac_try" in
5948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949  *) ac_try_echo=$ac_try;;
5950esac
5951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952  (eval "$ac_compile") 2>conftest.er1
5953  ac_status=$?
5954  grep -v '^ *+' conftest.er1 >conftest.err
5955  rm -f conftest.er1
5956  cat conftest.err >&5
5957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958  (exit $ac_status); } && {
5959	 test -z "$ac_cxx_werror_flag" ||
5960	 test ! -s conftest.err
5961       } && test -s conftest.$ac_objext; then
5962  ac_cv_prog_cxx_g=yes
5963else
5964  echo "$as_me: failed program was:" >&5
5965sed 's/^/| /' conftest.$ac_ext >&5
5966
5967	CXXFLAGS=""
5968      cat >conftest.$ac_ext <<_ACEOF
5969/* confdefs.h.  */
5970_ACEOF
5971cat confdefs.h >>conftest.$ac_ext
5972cat >>conftest.$ac_ext <<_ACEOF
5973/* end confdefs.h.  */
5974
5975int
5976main ()
5977{
5978
5979  ;
5980  return 0;
5981}
5982_ACEOF
5983rm -f conftest.$ac_objext
5984if { (ac_try="$ac_compile"
5985case "(($ac_try" in
5986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987  *) ac_try_echo=$ac_try;;
5988esac
5989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990  (eval "$ac_compile") 2>conftest.er1
5991  ac_status=$?
5992  grep -v '^ *+' conftest.er1 >conftest.err
5993  rm -f conftest.er1
5994  cat conftest.err >&5
5995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996  (exit $ac_status); } && {
5997	 test -z "$ac_cxx_werror_flag" ||
5998	 test ! -s conftest.err
5999       } && test -s conftest.$ac_objext; then
6000  :
6001else
6002  echo "$as_me: failed program was:" >&5
6003sed 's/^/| /' conftest.$ac_ext >&5
6004
6005	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6006	 CXXFLAGS="-g"
6007	 cat >conftest.$ac_ext <<_ACEOF
6008/* confdefs.h.  */
6009_ACEOF
6010cat confdefs.h >>conftest.$ac_ext
6011cat >>conftest.$ac_ext <<_ACEOF
6012/* end confdefs.h.  */
6013
6014int
6015main ()
6016{
6017
6018  ;
6019  return 0;
6020}
6021_ACEOF
6022rm -f conftest.$ac_objext
6023if { (ac_try="$ac_compile"
6024case "(($ac_try" in
6025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026  *) ac_try_echo=$ac_try;;
6027esac
6028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029  (eval "$ac_compile") 2>conftest.er1
6030  ac_status=$?
6031  grep -v '^ *+' conftest.er1 >conftest.err
6032  rm -f conftest.er1
6033  cat conftest.err >&5
6034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035  (exit $ac_status); } && {
6036	 test -z "$ac_cxx_werror_flag" ||
6037	 test ! -s conftest.err
6038       } && test -s conftest.$ac_objext; then
6039  ac_cv_prog_cxx_g=yes
6040else
6041  echo "$as_me: failed program was:" >&5
6042sed 's/^/| /' conftest.$ac_ext >&5
6043
6044
6045fi
6046
6047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048fi
6049
6050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051fi
6052
6053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6055fi
6056{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6057echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6058if test "$ac_test_CXXFLAGS" = set; then
6059  CXXFLAGS=$ac_save_CXXFLAGS
6060elif test $ac_cv_prog_cxx_g = yes; then
6061  if test "$GXX" = yes; then
6062    CXXFLAGS="-g -O2"
6063  else
6064    CXXFLAGS="-g"
6065  fi
6066else
6067  if test "$GXX" = yes; then
6068    CXXFLAGS="-O2"
6069  else
6070    CXXFLAGS=
6071  fi
6072fi
6073ac_ext=cpp
6074ac_cpp='$CXXCPP $CPPFLAGS'
6075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6078
6079depcc="$CXX"  am_compiler_list=
6080
6081{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6082echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6083if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6084  echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6087  # We make a subdir and do the tests there.  Otherwise we can end up
6088  # making bogus files that we don't know about and never remove.  For
6089  # instance it was reported that on HP-UX the gcc test will end up
6090  # making a dummy file named `D' -- because `-MD' means `put the output
6091  # in D'.
6092  mkdir conftest.dir
6093  # Copy depcomp to subdir because otherwise we won't find it if we're
6094  # using a relative directory.
6095  cp "$am_depcomp" conftest.dir
6096  cd conftest.dir
6097  # We will build objects and dependencies in a subdirectory because
6098  # it helps to detect inapplicable dependency modes.  For instance
6099  # both Tru64's cc and ICC support -MD to output dependencies as a
6100  # side effect of compilation, but ICC will put the dependencies in
6101  # the current directory while Tru64 will put them in the object
6102  # directory.
6103  mkdir sub
6104
6105  am_cv_CXX_dependencies_compiler_type=none
6106  if test "$am_compiler_list" = ""; then
6107     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6108  fi
6109  for depmode in $am_compiler_list; do
6110    # Setup a source with many dependencies, because some compilers
6111    # like to wrap large dependency lists on column 80 (with \), and
6112    # we should not choose a depcomp mode which is confused by this.
6113    #
6114    # We need to recreate these files for each test, as the compiler may
6115    # overwrite some of them when testing with obscure command lines.
6116    # This happens at least with the AIX C compiler.
6117    : > sub/conftest.c
6118    for i in 1 2 3 4 5 6; do
6119      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6120      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6121      # Solaris 8's {/usr,}/bin/sh.
6122      touch sub/conftst$i.h
6123    done
6124    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6125
6126    case $depmode in
6127    nosideeffect)
6128      # after this tag, mechanisms are not by side-effect, so they'll
6129      # only be used when explicitly requested
6130      if test "x$enable_dependency_tracking" = xyes; then
6131	continue
6132      else
6133	break
6134      fi
6135      ;;
6136    none) break ;;
6137    esac
6138    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6139    # mode.  It turns out that the SunPro C++ compiler does not properly
6140    # handle `-M -o', and we need to detect this.
6141    if depmode=$depmode \
6142       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6143       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6144       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6145         >/dev/null 2>conftest.err &&
6146       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6147       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6148       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6149       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6150      # icc doesn't choke on unknown options, it will just issue warnings
6151      # or remarks (even with -Werror).  So we grep stderr for any message
6152      # that says an option was ignored or not supported.
6153      # When given -MP, icc 7.0 and 7.1 complain thusly:
6154      #   icc: Command line warning: ignoring option '-M'; no argument required
6155      # The diagnosis changed in icc 8.0:
6156      #   icc: Command line remark: option '-MP' not supported
6157      if (grep 'ignoring option' conftest.err ||
6158          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6159        am_cv_CXX_dependencies_compiler_type=$depmode
6160        break
6161      fi
6162    fi
6163  done
6164
6165  cd ..
6166  rm -rf conftest.dir
6167else
6168  am_cv_CXX_dependencies_compiler_type=none
6169fi
6170
6171fi
6172{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6173echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6174CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6175
6176 if
6177  test "x$enable_dependency_tracking" != xno \
6178  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6179  am__fastdepCXX_TRUE=
6180  am__fastdepCXX_FALSE='#'
6181else
6182  am__fastdepCXX_TRUE='#'
6183  am__fastdepCXX_FALSE=
6184fi
6185
6186
6187
6188
6189if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6190    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6191    (test "X$CXX" != "Xg++"))) ; then
6192  ac_ext=cpp
6193ac_cpp='$CXXCPP $CPPFLAGS'
6194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6197{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6198echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6199if test -z "$CXXCPP"; then
6200  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6201  echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
6203      # Double quotes because CXXCPP needs to be expanded
6204    for CXXCPP in "$CXX -E" "/lib/cpp"
6205    do
6206      ac_preproc_ok=false
6207for ac_cxx_preproc_warn_flag in '' yes
6208do
6209  # Use a header file that comes with gcc, so configuring glibc
6210  # with a fresh cross-compiler works.
6211  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6212  # <limits.h> exists even on freestanding compilers.
6213  # On the NeXT, cc -E runs the code through the compiler's parser,
6214  # not just through cpp. "Syntax error" is here to catch this case.
6215  cat >conftest.$ac_ext <<_ACEOF
6216/* confdefs.h.  */
6217_ACEOF
6218cat confdefs.h >>conftest.$ac_ext
6219cat >>conftest.$ac_ext <<_ACEOF
6220/* end confdefs.h.  */
6221#ifdef __STDC__
6222# include <limits.h>
6223#else
6224# include <assert.h>
6225#endif
6226		     Syntax error
6227_ACEOF
6228if { (ac_try="$ac_cpp conftest.$ac_ext"
6229case "(($ac_try" in
6230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231  *) ac_try_echo=$ac_try;;
6232esac
6233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6235  ac_status=$?
6236  grep -v '^ *+' conftest.er1 >conftest.err
6237  rm -f conftest.er1
6238  cat conftest.err >&5
6239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240  (exit $ac_status); } >/dev/null && {
6241	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6242	 test ! -s conftest.err
6243       }; then
6244  :
6245else
6246  echo "$as_me: failed program was:" >&5
6247sed 's/^/| /' conftest.$ac_ext >&5
6248
6249  # Broken: fails on valid input.
6250continue
6251fi
6252
6253rm -f conftest.err conftest.$ac_ext
6254
6255  # OK, works on sane cases.  Now check whether nonexistent headers
6256  # can be detected and how.
6257  cat >conftest.$ac_ext <<_ACEOF
6258/* confdefs.h.  */
6259_ACEOF
6260cat confdefs.h >>conftest.$ac_ext
6261cat >>conftest.$ac_ext <<_ACEOF
6262/* end confdefs.h.  */
6263#include <ac_nonexistent.h>
6264_ACEOF
6265if { (ac_try="$ac_cpp conftest.$ac_ext"
6266case "(($ac_try" in
6267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268  *) ac_try_echo=$ac_try;;
6269esac
6270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6272  ac_status=$?
6273  grep -v '^ *+' conftest.er1 >conftest.err
6274  rm -f conftest.er1
6275  cat conftest.err >&5
6276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277  (exit $ac_status); } >/dev/null && {
6278	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6279	 test ! -s conftest.err
6280       }; then
6281  # Broken: success on invalid input.
6282continue
6283else
6284  echo "$as_me: failed program was:" >&5
6285sed 's/^/| /' conftest.$ac_ext >&5
6286
6287  # Passes both tests.
6288ac_preproc_ok=:
6289break
6290fi
6291
6292rm -f conftest.err conftest.$ac_ext
6293
6294done
6295# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6296rm -f conftest.err conftest.$ac_ext
6297if $ac_preproc_ok; then
6298  break
6299fi
6300
6301    done
6302    ac_cv_prog_CXXCPP=$CXXCPP
6303
6304fi
6305  CXXCPP=$ac_cv_prog_CXXCPP
6306else
6307  ac_cv_prog_CXXCPP=$CXXCPP
6308fi
6309{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6310echo "${ECHO_T}$CXXCPP" >&6; }
6311ac_preproc_ok=false
6312for ac_cxx_preproc_warn_flag in '' yes
6313do
6314  # Use a header file that comes with gcc, so configuring glibc
6315  # with a fresh cross-compiler works.
6316  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6317  # <limits.h> exists even on freestanding compilers.
6318  # On the NeXT, cc -E runs the code through the compiler's parser,
6319  # not just through cpp. "Syntax error" is here to catch this case.
6320  cat >conftest.$ac_ext <<_ACEOF
6321/* confdefs.h.  */
6322_ACEOF
6323cat confdefs.h >>conftest.$ac_ext
6324cat >>conftest.$ac_ext <<_ACEOF
6325/* end confdefs.h.  */
6326#ifdef __STDC__
6327# include <limits.h>
6328#else
6329# include <assert.h>
6330#endif
6331		     Syntax error
6332_ACEOF
6333if { (ac_try="$ac_cpp conftest.$ac_ext"
6334case "(($ac_try" in
6335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336  *) ac_try_echo=$ac_try;;
6337esac
6338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6340  ac_status=$?
6341  grep -v '^ *+' conftest.er1 >conftest.err
6342  rm -f conftest.er1
6343  cat conftest.err >&5
6344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345  (exit $ac_status); } >/dev/null && {
6346	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6347	 test ! -s conftest.err
6348       }; then
6349  :
6350else
6351  echo "$as_me: failed program was:" >&5
6352sed 's/^/| /' conftest.$ac_ext >&5
6353
6354  # Broken: fails on valid input.
6355continue
6356fi
6357
6358rm -f conftest.err conftest.$ac_ext
6359
6360  # OK, works on sane cases.  Now check whether nonexistent headers
6361  # can be detected and how.
6362  cat >conftest.$ac_ext <<_ACEOF
6363/* confdefs.h.  */
6364_ACEOF
6365cat confdefs.h >>conftest.$ac_ext
6366cat >>conftest.$ac_ext <<_ACEOF
6367/* end confdefs.h.  */
6368#include <ac_nonexistent.h>
6369_ACEOF
6370if { (ac_try="$ac_cpp conftest.$ac_ext"
6371case "(($ac_try" in
6372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6373  *) ac_try_echo=$ac_try;;
6374esac
6375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6376  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6377  ac_status=$?
6378  grep -v '^ *+' conftest.er1 >conftest.err
6379  rm -f conftest.er1
6380  cat conftest.err >&5
6381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382  (exit $ac_status); } >/dev/null && {
6383	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6384	 test ! -s conftest.err
6385       }; then
6386  # Broken: success on invalid input.
6387continue
6388else
6389  echo "$as_me: failed program was:" >&5
6390sed 's/^/| /' conftest.$ac_ext >&5
6391
6392  # Passes both tests.
6393ac_preproc_ok=:
6394break
6395fi
6396
6397rm -f conftest.err conftest.$ac_ext
6398
6399done
6400# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6401rm -f conftest.err conftest.$ac_ext
6402if $ac_preproc_ok; then
6403  :
6404else
6405  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6406See \`config.log' for more details." >&5
6407echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6408See \`config.log' for more details." >&2;}
6409   { (exit 1); exit 1; }; }
6410fi
6411
6412ac_ext=cpp
6413ac_cpp='$CXXCPP $CPPFLAGS'
6414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6417
6418fi
6419
6420
6421ac_ext=f
6422ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6423ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6424ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6425if test -n "$ac_tool_prefix"; then
6426  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6427  do
6428    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6429set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6432if test "${ac_cv_prog_F77+set}" = set; then
6433  echo $ECHO_N "(cached) $ECHO_C" >&6
6434else
6435  if test -n "$F77"; then
6436  ac_cv_prog_F77="$F77" # Let the user override the test.
6437else
6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439for as_dir in $PATH
6440do
6441  IFS=$as_save_IFS
6442  test -z "$as_dir" && as_dir=.
6443  for ac_exec_ext in '' $ac_executable_extensions; do
6444  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6446    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447    break 2
6448  fi
6449done
6450done
6451IFS=$as_save_IFS
6452
6453fi
6454fi
6455F77=$ac_cv_prog_F77
6456if test -n "$F77"; then
6457  { echo "$as_me:$LINENO: result: $F77" >&5
6458echo "${ECHO_T}$F77" >&6; }
6459else
6460  { echo "$as_me:$LINENO: result: no" >&5
6461echo "${ECHO_T}no" >&6; }
6462fi
6463
6464
6465    test -n "$F77" && break
6466  done
6467fi
6468if test -z "$F77"; then
6469  ac_ct_F77=$F77
6470  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6471do
6472  # Extract the first word of "$ac_prog", so it can be a program name with args.
6473set dummy $ac_prog; ac_word=$2
6474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6476if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6477  echo $ECHO_N "(cached) $ECHO_C" >&6
6478else
6479  if test -n "$ac_ct_F77"; then
6480  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6481else
6482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483for as_dir in $PATH
6484do
6485  IFS=$as_save_IFS
6486  test -z "$as_dir" && as_dir=.
6487  for ac_exec_ext in '' $ac_executable_extensions; do
6488  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489    ac_cv_prog_ac_ct_F77="$ac_prog"
6490    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491    break 2
6492  fi
6493done
6494done
6495IFS=$as_save_IFS
6496
6497fi
6498fi
6499ac_ct_F77=$ac_cv_prog_ac_ct_F77
6500if test -n "$ac_ct_F77"; then
6501  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6502echo "${ECHO_T}$ac_ct_F77" >&6; }
6503else
6504  { echo "$as_me:$LINENO: result: no" >&5
6505echo "${ECHO_T}no" >&6; }
6506fi
6507
6508
6509  test -n "$ac_ct_F77" && break
6510done
6511
6512  if test "x$ac_ct_F77" = x; then
6513    F77=""
6514  else
6515    case $cross_compiling:$ac_tool_warned in
6516yes:)
6517{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6518whose name does not start with the host triplet.  If you think this
6519configuration is useful to you, please write to autoconf@gnu.org." >&5
6520echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6521whose name does not start with the host triplet.  If you think this
6522configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6523ac_tool_warned=yes ;;
6524esac
6525    F77=$ac_ct_F77
6526  fi
6527fi
6528
6529
6530# Provide some information about the compiler.
6531echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6532ac_compiler=`set X $ac_compile; echo $2`
6533{ (ac_try="$ac_compiler --version >&5"
6534case "(($ac_try" in
6535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536  *) ac_try_echo=$ac_try;;
6537esac
6538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539  (eval "$ac_compiler --version >&5") 2>&5
6540  ac_status=$?
6541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542  (exit $ac_status); }
6543{ (ac_try="$ac_compiler -v >&5"
6544case "(($ac_try" in
6545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546  *) ac_try_echo=$ac_try;;
6547esac
6548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549  (eval "$ac_compiler -v >&5") 2>&5
6550  ac_status=$?
6551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552  (exit $ac_status); }
6553{ (ac_try="$ac_compiler -V >&5"
6554case "(($ac_try" in
6555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556  *) ac_try_echo=$ac_try;;
6557esac
6558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559  (eval "$ac_compiler -V >&5") 2>&5
6560  ac_status=$?
6561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562  (exit $ac_status); }
6563rm -f a.out
6564
6565# If we don't use `.F' as extension, the preprocessor is not run on the
6566# input file.  (Note that this only needs to work for GNU compilers.)
6567ac_save_ext=$ac_ext
6568ac_ext=F
6569{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6570echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6571if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6572  echo $ECHO_N "(cached) $ECHO_C" >&6
6573else
6574  cat >conftest.$ac_ext <<_ACEOF
6575      program main
6576#ifndef __GNUC__
6577       choke me
6578#endif
6579
6580      end
6581_ACEOF
6582rm -f conftest.$ac_objext
6583if { (ac_try="$ac_compile"
6584case "(($ac_try" in
6585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586  *) ac_try_echo=$ac_try;;
6587esac
6588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6589  (eval "$ac_compile") 2>conftest.er1
6590  ac_status=$?
6591  grep -v '^ *+' conftest.er1 >conftest.err
6592  rm -f conftest.er1
6593  cat conftest.err >&5
6594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595  (exit $ac_status); } && {
6596	 test -z "$ac_f77_werror_flag" ||
6597	 test ! -s conftest.err
6598       } && test -s conftest.$ac_objext; then
6599  ac_compiler_gnu=yes
6600else
6601  echo "$as_me: failed program was:" >&5
6602sed 's/^/| /' conftest.$ac_ext >&5
6603
6604	ac_compiler_gnu=no
6605fi
6606
6607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6609
6610fi
6611{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6612echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6613ac_ext=$ac_save_ext
6614ac_test_FFLAGS=${FFLAGS+set}
6615ac_save_FFLAGS=$FFLAGS
6616FFLAGS=
6617{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6618echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6619if test "${ac_cv_prog_f77_g+set}" = set; then
6620  echo $ECHO_N "(cached) $ECHO_C" >&6
6621else
6622  FFLAGS=-g
6623cat >conftest.$ac_ext <<_ACEOF
6624      program main
6625
6626      end
6627_ACEOF
6628rm -f conftest.$ac_objext
6629if { (ac_try="$ac_compile"
6630case "(($ac_try" in
6631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632  *) ac_try_echo=$ac_try;;
6633esac
6634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635  (eval "$ac_compile") 2>conftest.er1
6636  ac_status=$?
6637  grep -v '^ *+' conftest.er1 >conftest.err
6638  rm -f conftest.er1
6639  cat conftest.err >&5
6640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641  (exit $ac_status); } && {
6642	 test -z "$ac_f77_werror_flag" ||
6643	 test ! -s conftest.err
6644       } && test -s conftest.$ac_objext; then
6645  ac_cv_prog_f77_g=yes
6646else
6647  echo "$as_me: failed program was:" >&5
6648sed 's/^/| /' conftest.$ac_ext >&5
6649
6650	ac_cv_prog_f77_g=no
6651fi
6652
6653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654
6655fi
6656{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6657echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6658if test "$ac_test_FFLAGS" = set; then
6659  FFLAGS=$ac_save_FFLAGS
6660elif test $ac_cv_prog_f77_g = yes; then
6661  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6662    FFLAGS="-g -O2"
6663  else
6664    FFLAGS="-g"
6665  fi
6666else
6667  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6668    FFLAGS="-O2"
6669  else
6670    FFLAGS=
6671  fi
6672fi
6673
6674G77=`test $ac_compiler_gnu = yes && echo yes`
6675ac_ext=c
6676ac_cpp='$CPP $CPPFLAGS'
6677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6679ac_compiler_gnu=$ac_cv_c_compiler_gnu
6680
6681
6682
6683# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6684# find the maximum length of command line arguments
6685{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6686echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6687if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6688  echo $ECHO_N "(cached) $ECHO_C" >&6
6689else
6690    i=0
6691  teststring="ABCD"
6692
6693  case $build_os in
6694  msdosdjgpp*)
6695    # On DJGPP, this test can blow up pretty badly due to problems in libc
6696    # (any single argument exceeding 2000 bytes causes a buffer overrun
6697    # during glob expansion).  Even if it were fixed, the result of this
6698    # check would be larger than it should be.
6699    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6700    ;;
6701
6702  gnu*)
6703    # Under GNU Hurd, this test is not required because there is
6704    # no limit to the length of command line arguments.
6705    # Libtool will interpret -1 as no limit whatsoever
6706    lt_cv_sys_max_cmd_len=-1;
6707    ;;
6708
6709  cygwin* | mingw*)
6710    # On Win9x/ME, this test blows up -- it succeeds, but takes
6711    # about 5 minutes as the teststring grows exponentially.
6712    # Worse, since 9x/ME are not pre-emptively multitasking,
6713    # you end up with a "frozen" computer, even though with patience
6714    # the test eventually succeeds (with a max line length of 256k).
6715    # Instead, let's just punt: use the minimum linelength reported by
6716    # all of the supported platforms: 8192 (on NT/2K/XP).
6717    lt_cv_sys_max_cmd_len=8192;
6718    ;;
6719
6720  amigaos*)
6721    # On AmigaOS with pdksh, this test takes hours, literally.
6722    # So we just punt and use a minimum line length of 8192.
6723    lt_cv_sys_max_cmd_len=8192;
6724    ;;
6725
6726  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6727    # This has been around since 386BSD, at least.  Likely further.
6728    if test -x /sbin/sysctl; then
6729      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6730    elif test -x /usr/sbin/sysctl; then
6731      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6732    else
6733      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6734    fi
6735    # And add a safety zone
6736    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6737    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6738    ;;
6739
6740  interix*)
6741    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6742    lt_cv_sys_max_cmd_len=196608
6743    ;;
6744
6745  osf*)
6746    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6747    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6748    # nice to cause kernel panics so lets avoid the loop below.
6749    # First set a reasonable default.
6750    lt_cv_sys_max_cmd_len=16384
6751    #
6752    if test -x /sbin/sysconfig; then
6753      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6754        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6755      esac
6756    fi
6757    ;;
6758  sco3.2v5*)
6759    lt_cv_sys_max_cmd_len=102400
6760    ;;
6761  sysv5* | sco5v6* | sysv4.2uw2*)
6762    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6763    if test -n "$kargmax"; then
6764      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6765    else
6766      lt_cv_sys_max_cmd_len=32768
6767    fi
6768    ;;
6769  *)
6770    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6771    if test -n "$lt_cv_sys_max_cmd_len"; then
6772      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6773      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6774    else
6775      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6776      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6777	       = "XX$teststring") >/dev/null 2>&1 &&
6778	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6779	      lt_cv_sys_max_cmd_len=$new_result &&
6780	      test $i != 17 # 1/2 MB should be enough
6781      do
6782        i=`expr $i + 1`
6783        teststring=$teststring$teststring
6784      done
6785      teststring=
6786      # Add a significant safety factor because C++ compilers can tack on massive
6787      # amounts of additional arguments before passing them to the linker.
6788      # It appears as though 1/2 is a usable value.
6789      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6790    fi
6791    ;;
6792  esac
6793
6794fi
6795
6796if test -n $lt_cv_sys_max_cmd_len ; then
6797  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6798echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6799else
6800  { echo "$as_me:$LINENO: result: none" >&5
6801echo "${ECHO_T}none" >&6; }
6802fi
6803
6804
6805
6806
6807
6808# Check for command to grab the raw symbol name followed by C symbol from nm.
6809{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6810echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6811if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6812  echo $ECHO_N "(cached) $ECHO_C" >&6
6813else
6814
6815# These are sane defaults that work on at least a few old systems.
6816# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6817
6818# Character class describing NM global symbol codes.
6819symcode='[BCDEGRST]'
6820
6821# Regexp to match symbols that can be accessed directly from C.
6822sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6823
6824# Transform an extracted symbol line into a proper C declaration
6825lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6826
6827# Transform an extracted symbol line into symbol name and symbol address
6828lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6829
6830# Define system-specific variables.
6831case $host_os in
6832aix*)
6833  symcode='[BCDT]'
6834  ;;
6835cygwin* | mingw* | pw32*)
6836  symcode='[ABCDGISTW]'
6837  ;;
6838hpux*) # Its linker distinguishes data from code symbols
6839  if test "$host_cpu" = ia64; then
6840    symcode='[ABCDEGRST]'
6841  fi
6842  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6843  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6844  ;;
6845linux* | k*bsd*-gnu)
6846  if test "$host_cpu" = ia64; then
6847    symcode='[ABCDGIRSTW]'
6848    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6849    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6850  fi
6851  ;;
6852irix* | nonstopux*)
6853  symcode='[BCDEGRST]'
6854  ;;
6855osf*)
6856  symcode='[BCDEGQRST]'
6857  ;;
6858solaris*)
6859  symcode='[BDRT]'
6860  ;;
6861sco3.2v5*)
6862  symcode='[DT]'
6863  ;;
6864sysv4.2uw2*)
6865  symcode='[DT]'
6866  ;;
6867sysv5* | sco5v6* | unixware* | OpenUNIX*)
6868  symcode='[ABDT]'
6869  ;;
6870sysv4)
6871  symcode='[DFNSTU]'
6872  ;;
6873esac
6874
6875# Handle CRLF in mingw tool chain
6876opt_cr=
6877case $build_os in
6878mingw*)
6879  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6880  ;;
6881esac
6882
6883# If we're using GNU nm, then use its standard symbol codes.
6884case `$NM -V 2>&1` in
6885*GNU* | *'with BFD'*)
6886  symcode='[ABCDGIRSTW]' ;;
6887esac
6888
6889# Try without a prefix undercore, then with it.
6890for ac_symprfx in "" "_"; do
6891
6892  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6893  symxfrm="\\1 $ac_symprfx\\2 \\2"
6894
6895  # Write the raw and C identifiers.
6896  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6897
6898  # Check to see that the pipe works correctly.
6899  pipe_works=no
6900
6901  rm -f conftest*
6902  cat > conftest.$ac_ext <<EOF
6903#ifdef __cplusplus
6904extern "C" {
6905#endif
6906char nm_test_var;
6907void nm_test_func(){}
6908#ifdef __cplusplus
6909}
6910#endif
6911int main(){nm_test_var='a';nm_test_func();return(0);}
6912EOF
6913
6914  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6915  (eval $ac_compile) 2>&5
6916  ac_status=$?
6917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918  (exit $ac_status); }; then
6919    # Now try to grab the symbols.
6920    nlist=conftest.nm
6921    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6922  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6923  ac_status=$?
6924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925  (exit $ac_status); } && test -s "$nlist"; then
6926      # Try sorting and uniquifying the output.
6927      if sort "$nlist" | uniq > "$nlist"T; then
6928	mv -f "$nlist"T "$nlist"
6929      else
6930	rm -f "$nlist"T
6931      fi
6932
6933      # Make sure that we snagged all the symbols we need.
6934      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6935	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6936	  cat <<EOF > conftest.$ac_ext
6937#ifdef __cplusplus
6938extern "C" {
6939#endif
6940
6941EOF
6942	  # Now generate the symbol file.
6943	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6944
6945	  cat <<EOF >> conftest.$ac_ext
6946#if defined (__STDC__) && __STDC__
6947# define lt_ptr_t void *
6948#else
6949# define lt_ptr_t char *
6950# define const
6951#endif
6952
6953/* The mapping between symbol names and symbols. */
6954const struct {
6955  const char *name;
6956  lt_ptr_t address;
6957}
6958lt_preloaded_symbols[] =
6959{
6960EOF
6961	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6962	  cat <<\EOF >> conftest.$ac_ext
6963  {0, (lt_ptr_t) 0}
6964};
6965
6966#ifdef __cplusplus
6967}
6968#endif
6969EOF
6970	  # Now try linking the two files.
6971	  mv conftest.$ac_objext conftstm.$ac_objext
6972	  lt_save_LIBS="$LIBS"
6973	  lt_save_CFLAGS="$CFLAGS"
6974	  LIBS="conftstm.$ac_objext"
6975	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6976	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6977  (eval $ac_link) 2>&5
6978  ac_status=$?
6979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6981	    pipe_works=yes
6982	  fi
6983	  LIBS="$lt_save_LIBS"
6984	  CFLAGS="$lt_save_CFLAGS"
6985	else
6986	  echo "cannot find nm_test_func in $nlist" >&5
6987	fi
6988      else
6989	echo "cannot find nm_test_var in $nlist" >&5
6990      fi
6991    else
6992      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6993    fi
6994  else
6995    echo "$progname: failed program was:" >&5
6996    cat conftest.$ac_ext >&5
6997  fi
6998  rm -rf conftest* conftst*
6999
7000  # Do not use the global_symbol_pipe unless it works.
7001  if test "$pipe_works" = yes; then
7002    break
7003  else
7004    lt_cv_sys_global_symbol_pipe=
7005  fi
7006done
7007
7008fi
7009
7010if test -z "$lt_cv_sys_global_symbol_pipe"; then
7011  lt_cv_sys_global_symbol_to_cdecl=
7012fi
7013if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7014  { echo "$as_me:$LINENO: result: failed" >&5
7015echo "${ECHO_T}failed" >&6; }
7016else
7017  { echo "$as_me:$LINENO: result: ok" >&5
7018echo "${ECHO_T}ok" >&6; }
7019fi
7020
7021{ echo "$as_me:$LINENO: checking for objdir" >&5
7022echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7023if test "${lt_cv_objdir+set}" = set; then
7024  echo $ECHO_N "(cached) $ECHO_C" >&6
7025else
7026  rm -f .libs 2>/dev/null
7027mkdir .libs 2>/dev/null
7028if test -d .libs; then
7029  lt_cv_objdir=.libs
7030else
7031  # MS-DOS does not allow filenames that begin with a dot.
7032  lt_cv_objdir=_libs
7033fi
7034rmdir .libs 2>/dev/null
7035fi
7036{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7037echo "${ECHO_T}$lt_cv_objdir" >&6; }
7038objdir=$lt_cv_objdir
7039
7040
7041
7042
7043
7044case $host_os in
7045aix3*)
7046  # AIX sometimes has problems with the GCC collect2 program.  For some
7047  # reason, if we set the COLLECT_NAMES environment variable, the problems
7048  # vanish in a puff of smoke.
7049  if test "X${COLLECT_NAMES+set}" != Xset; then
7050    COLLECT_NAMES=
7051    export COLLECT_NAMES
7052  fi
7053  ;;
7054esac
7055
7056# Sed substitution that helps us do robust quoting.  It backslashifies
7057# metacharacters that are still active within double-quoted strings.
7058Xsed='sed -e 1s/^X//'
7059sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7060
7061# Same as above, but do not quote variable references.
7062double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7063
7064# Sed substitution to delay expansion of an escaped shell variable in a
7065# double_quote_subst'ed string.
7066delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7067
7068# Sed substitution to avoid accidental globbing in evaled expressions
7069no_glob_subst='s/\*/\\\*/g'
7070
7071# Constants:
7072rm="rm -f"
7073
7074# Global variables:
7075default_ofile=libtool
7076can_build_shared=yes
7077
7078# All known linkers require a `.a' archive for static linking (except MSVC,
7079# which needs '.lib').
7080libext=a
7081ltmain="$ac_aux_dir/ltmain.sh"
7082ofile="$default_ofile"
7083with_gnu_ld="$lt_cv_prog_gnu_ld"
7084
7085if test -n "$ac_tool_prefix"; then
7086  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7087set dummy ${ac_tool_prefix}ar; ac_word=$2
7088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7090if test "${ac_cv_prog_AR+set}" = set; then
7091  echo $ECHO_N "(cached) $ECHO_C" >&6
7092else
7093  if test -n "$AR"; then
7094  ac_cv_prog_AR="$AR" # Let the user override the test.
7095else
7096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097for as_dir in $PATH
7098do
7099  IFS=$as_save_IFS
7100  test -z "$as_dir" && as_dir=.
7101  for ac_exec_ext in '' $ac_executable_extensions; do
7102  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7103    ac_cv_prog_AR="${ac_tool_prefix}ar"
7104    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105    break 2
7106  fi
7107done
7108done
7109IFS=$as_save_IFS
7110
7111fi
7112fi
7113AR=$ac_cv_prog_AR
7114if test -n "$AR"; then
7115  { echo "$as_me:$LINENO: result: $AR" >&5
7116echo "${ECHO_T}$AR" >&6; }
7117else
7118  { echo "$as_me:$LINENO: result: no" >&5
7119echo "${ECHO_T}no" >&6; }
7120fi
7121
7122
7123fi
7124if test -z "$ac_cv_prog_AR"; then
7125  ac_ct_AR=$AR
7126  # Extract the first word of "ar", so it can be a program name with args.
7127set dummy ar; ac_word=$2
7128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7131  echo $ECHO_N "(cached) $ECHO_C" >&6
7132else
7133  if test -n "$ac_ct_AR"; then
7134  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7135else
7136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137for as_dir in $PATH
7138do
7139  IFS=$as_save_IFS
7140  test -z "$as_dir" && as_dir=.
7141  for ac_exec_ext in '' $ac_executable_extensions; do
7142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143    ac_cv_prog_ac_ct_AR="ar"
7144    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145    break 2
7146  fi
7147done
7148done
7149IFS=$as_save_IFS
7150
7151fi
7152fi
7153ac_ct_AR=$ac_cv_prog_ac_ct_AR
7154if test -n "$ac_ct_AR"; then
7155  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7156echo "${ECHO_T}$ac_ct_AR" >&6; }
7157else
7158  { echo "$as_me:$LINENO: result: no" >&5
7159echo "${ECHO_T}no" >&6; }
7160fi
7161
7162  if test "x$ac_ct_AR" = x; then
7163    AR="false"
7164  else
7165    case $cross_compiling:$ac_tool_warned in
7166yes:)
7167{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7168whose name does not start with the host triplet.  If you think this
7169configuration is useful to you, please write to autoconf@gnu.org." >&5
7170echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7171whose name does not start with the host triplet.  If you think this
7172configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7173ac_tool_warned=yes ;;
7174esac
7175    AR=$ac_ct_AR
7176  fi
7177else
7178  AR="$ac_cv_prog_AR"
7179fi
7180
7181if test -n "$ac_tool_prefix"; then
7182  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7183set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7186if test "${ac_cv_prog_RANLIB+set}" = set; then
7187  echo $ECHO_N "(cached) $ECHO_C" >&6
7188else
7189  if test -n "$RANLIB"; then
7190  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7191else
7192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193for as_dir in $PATH
7194do
7195  IFS=$as_save_IFS
7196  test -z "$as_dir" && as_dir=.
7197  for ac_exec_ext in '' $ac_executable_extensions; do
7198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7199    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7200    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201    break 2
7202  fi
7203done
7204done
7205IFS=$as_save_IFS
7206
7207fi
7208fi
7209RANLIB=$ac_cv_prog_RANLIB
7210if test -n "$RANLIB"; then
7211  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7212echo "${ECHO_T}$RANLIB" >&6; }
7213else
7214  { echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6; }
7216fi
7217
7218
7219fi
7220if test -z "$ac_cv_prog_RANLIB"; then
7221  ac_ct_RANLIB=$RANLIB
7222  # Extract the first word of "ranlib", so it can be a program name with args.
7223set dummy ranlib; ac_word=$2
7224{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7226if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7227  echo $ECHO_N "(cached) $ECHO_C" >&6
7228else
7229  if test -n "$ac_ct_RANLIB"; then
7230  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7231else
7232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233for as_dir in $PATH
7234do
7235  IFS=$as_save_IFS
7236  test -z "$as_dir" && as_dir=.
7237  for ac_exec_ext in '' $ac_executable_extensions; do
7238  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7239    ac_cv_prog_ac_ct_RANLIB="ranlib"
7240    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241    break 2
7242  fi
7243done
7244done
7245IFS=$as_save_IFS
7246
7247fi
7248fi
7249ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7250if test -n "$ac_ct_RANLIB"; then
7251  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7252echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7253else
7254  { echo "$as_me:$LINENO: result: no" >&5
7255echo "${ECHO_T}no" >&6; }
7256fi
7257
7258  if test "x$ac_ct_RANLIB" = x; then
7259    RANLIB=":"
7260  else
7261    case $cross_compiling:$ac_tool_warned in
7262yes:)
7263{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7264whose name does not start with the host triplet.  If you think this
7265configuration is useful to you, please write to autoconf@gnu.org." >&5
7266echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7267whose name does not start with the host triplet.  If you think this
7268configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7269ac_tool_warned=yes ;;
7270esac
7271    RANLIB=$ac_ct_RANLIB
7272  fi
7273else
7274  RANLIB="$ac_cv_prog_RANLIB"
7275fi
7276
7277if test -n "$ac_tool_prefix"; then
7278  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7279set dummy ${ac_tool_prefix}strip; ac_word=$2
7280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282if test "${ac_cv_prog_STRIP+set}" = set; then
7283  echo $ECHO_N "(cached) $ECHO_C" >&6
7284else
7285  if test -n "$STRIP"; then
7286  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7287else
7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291  IFS=$as_save_IFS
7292  test -z "$as_dir" && as_dir=.
7293  for ac_exec_ext in '' $ac_executable_extensions; do
7294  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7296    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297    break 2
7298  fi
7299done
7300done
7301IFS=$as_save_IFS
7302
7303fi
7304fi
7305STRIP=$ac_cv_prog_STRIP
7306if test -n "$STRIP"; then
7307  { echo "$as_me:$LINENO: result: $STRIP" >&5
7308echo "${ECHO_T}$STRIP" >&6; }
7309else
7310  { echo "$as_me:$LINENO: result: no" >&5
7311echo "${ECHO_T}no" >&6; }
7312fi
7313
7314
7315fi
7316if test -z "$ac_cv_prog_STRIP"; then
7317  ac_ct_STRIP=$STRIP
7318  # Extract the first word of "strip", so it can be a program name with args.
7319set dummy strip; ac_word=$2
7320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7323  echo $ECHO_N "(cached) $ECHO_C" >&6
7324else
7325  if test -n "$ac_ct_STRIP"; then
7326  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7327else
7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329for as_dir in $PATH
7330do
7331  IFS=$as_save_IFS
7332  test -z "$as_dir" && as_dir=.
7333  for ac_exec_ext in '' $ac_executable_extensions; do
7334  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335    ac_cv_prog_ac_ct_STRIP="strip"
7336    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7337    break 2
7338  fi
7339done
7340done
7341IFS=$as_save_IFS
7342
7343fi
7344fi
7345ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7346if test -n "$ac_ct_STRIP"; then
7347  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7348echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7349else
7350  { echo "$as_me:$LINENO: result: no" >&5
7351echo "${ECHO_T}no" >&6; }
7352fi
7353
7354  if test "x$ac_ct_STRIP" = x; then
7355    STRIP=":"
7356  else
7357    case $cross_compiling:$ac_tool_warned in
7358yes:)
7359{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7360whose name does not start with the host triplet.  If you think this
7361configuration is useful to you, please write to autoconf@gnu.org." >&5
7362echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7363whose name does not start with the host triplet.  If you think this
7364configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7365ac_tool_warned=yes ;;
7366esac
7367    STRIP=$ac_ct_STRIP
7368  fi
7369else
7370  STRIP="$ac_cv_prog_STRIP"
7371fi
7372
7373
7374old_CC="$CC"
7375old_CFLAGS="$CFLAGS"
7376
7377# Set sane defaults for various variables
7378test -z "$AR" && AR=ar
7379test -z "$AR_FLAGS" && AR_FLAGS=cru
7380test -z "$AS" && AS=as
7381test -z "$CC" && CC=cc
7382test -z "$LTCC" && LTCC=$CC
7383test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7384test -z "$DLLTOOL" && DLLTOOL=dlltool
7385test -z "$LD" && LD=ld
7386test -z "$LN_S" && LN_S="ln -s"
7387test -z "$MAGIC_CMD" && MAGIC_CMD=file
7388test -z "$NM" && NM=nm
7389test -z "$SED" && SED=sed
7390test -z "$OBJDUMP" && OBJDUMP=objdump
7391test -z "$RANLIB" && RANLIB=:
7392test -z "$STRIP" && STRIP=:
7393test -z "$ac_objext" && ac_objext=o
7394
7395# Determine commands to create old-style static archives.
7396old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7397old_postinstall_cmds='chmod 644 $oldlib'
7398old_postuninstall_cmds=
7399
7400if test -n "$RANLIB"; then
7401  case $host_os in
7402  openbsd*)
7403    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7404    ;;
7405  *)
7406    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7407    ;;
7408  esac
7409  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7410fi
7411
7412for cc_temp in $compiler""; do
7413  case $cc_temp in
7414    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7415    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7416    \-*) ;;
7417    *) break;;
7418  esac
7419done
7420cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7421
7422
7423# Only perform the check for file, if the check method requires it
7424case $deplibs_check_method in
7425file_magic*)
7426  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7427    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7428echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7429if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7430  echo $ECHO_N "(cached) $ECHO_C" >&6
7431else
7432  case $MAGIC_CMD in
7433[\\/*] |  ?:[\\/]*)
7434  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7435  ;;
7436*)
7437  lt_save_MAGIC_CMD="$MAGIC_CMD"
7438  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7439  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7440  for ac_dir in $ac_dummy; do
7441    IFS="$lt_save_ifs"
7442    test -z "$ac_dir" && ac_dir=.
7443    if test -f $ac_dir/${ac_tool_prefix}file; then
7444      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7445      if test -n "$file_magic_test_file"; then
7446	case $deplibs_check_method in
7447	"file_magic "*)
7448	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7449	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7450	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7451	    $EGREP "$file_magic_regex" > /dev/null; then
7452	    :
7453	  else
7454	    cat <<EOF 1>&2
7455
7456*** Warning: the command libtool uses to detect shared libraries,
7457*** $file_magic_cmd, produces output that libtool cannot recognize.
7458*** The result is that libtool may fail to recognize shared libraries
7459*** as such.  This will affect the creation of libtool libraries that
7460*** depend on shared libraries, but programs linked with such libtool
7461*** libraries will work regardless of this problem.  Nevertheless, you
7462*** may want to report the problem to your system manager and/or to
7463*** bug-libtool@gnu.org
7464
7465EOF
7466	  fi ;;
7467	esac
7468      fi
7469      break
7470    fi
7471  done
7472  IFS="$lt_save_ifs"
7473  MAGIC_CMD="$lt_save_MAGIC_CMD"
7474  ;;
7475esac
7476fi
7477
7478MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7479if test -n "$MAGIC_CMD"; then
7480  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7481echo "${ECHO_T}$MAGIC_CMD" >&6; }
7482else
7483  { echo "$as_me:$LINENO: result: no" >&5
7484echo "${ECHO_T}no" >&6; }
7485fi
7486
7487if test -z "$lt_cv_path_MAGIC_CMD"; then
7488  if test -n "$ac_tool_prefix"; then
7489    { echo "$as_me:$LINENO: checking for file" >&5
7490echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7491if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7492  echo $ECHO_N "(cached) $ECHO_C" >&6
7493else
7494  case $MAGIC_CMD in
7495[\\/*] |  ?:[\\/]*)
7496  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7497  ;;
7498*)
7499  lt_save_MAGIC_CMD="$MAGIC_CMD"
7500  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7501  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7502  for ac_dir in $ac_dummy; do
7503    IFS="$lt_save_ifs"
7504    test -z "$ac_dir" && ac_dir=.
7505    if test -f $ac_dir/file; then
7506      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7507      if test -n "$file_magic_test_file"; then
7508	case $deplibs_check_method in
7509	"file_magic "*)
7510	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7511	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7512	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7513	    $EGREP "$file_magic_regex" > /dev/null; then
7514	    :
7515	  else
7516	    cat <<EOF 1>&2
7517
7518*** Warning: the command libtool uses to detect shared libraries,
7519*** $file_magic_cmd, produces output that libtool cannot recognize.
7520*** The result is that libtool may fail to recognize shared libraries
7521*** as such.  This will affect the creation of libtool libraries that
7522*** depend on shared libraries, but programs linked with such libtool
7523*** libraries will work regardless of this problem.  Nevertheless, you
7524*** may want to report the problem to your system manager and/or to
7525*** bug-libtool@gnu.org
7526
7527EOF
7528	  fi ;;
7529	esac
7530      fi
7531      break
7532    fi
7533  done
7534  IFS="$lt_save_ifs"
7535  MAGIC_CMD="$lt_save_MAGIC_CMD"
7536  ;;
7537esac
7538fi
7539
7540MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7541if test -n "$MAGIC_CMD"; then
7542  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7543echo "${ECHO_T}$MAGIC_CMD" >&6; }
7544else
7545  { echo "$as_me:$LINENO: result: no" >&5
7546echo "${ECHO_T}no" >&6; }
7547fi
7548
7549  else
7550    MAGIC_CMD=:
7551  fi
7552fi
7553
7554  fi
7555  ;;
7556esac
7557
7558
7559  case $host_os in
7560    rhapsody* | darwin*)
7561    if test -n "$ac_tool_prefix"; then
7562  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7563set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7566if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7567  echo $ECHO_N "(cached) $ECHO_C" >&6
7568else
7569  if test -n "$DSYMUTIL"; then
7570  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7571else
7572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573for as_dir in $PATH
7574do
7575  IFS=$as_save_IFS
7576  test -z "$as_dir" && as_dir=.
7577  for ac_exec_ext in '' $ac_executable_extensions; do
7578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7579    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7580    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7581    break 2
7582  fi
7583done
7584done
7585IFS=$as_save_IFS
7586
7587fi
7588fi
7589DSYMUTIL=$ac_cv_prog_DSYMUTIL
7590if test -n "$DSYMUTIL"; then
7591  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7592echo "${ECHO_T}$DSYMUTIL" >&6; }
7593else
7594  { echo "$as_me:$LINENO: result: no" >&5
7595echo "${ECHO_T}no" >&6; }
7596fi
7597
7598
7599fi
7600if test -z "$ac_cv_prog_DSYMUTIL"; then
7601  ac_ct_DSYMUTIL=$DSYMUTIL
7602  # Extract the first word of "dsymutil", so it can be a program name with args.
7603set dummy dsymutil; ac_word=$2
7604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7606if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7607  echo $ECHO_N "(cached) $ECHO_C" >&6
7608else
7609  if test -n "$ac_ct_DSYMUTIL"; then
7610  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7611else
7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615  IFS=$as_save_IFS
7616  test -z "$as_dir" && as_dir=.
7617  for ac_exec_ext in '' $ac_executable_extensions; do
7618  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7619    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7620    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7621    break 2
7622  fi
7623done
7624done
7625IFS=$as_save_IFS
7626
7627fi
7628fi
7629ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7630if test -n "$ac_ct_DSYMUTIL"; then
7631  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7632echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7633else
7634  { echo "$as_me:$LINENO: result: no" >&5
7635echo "${ECHO_T}no" >&6; }
7636fi
7637
7638  if test "x$ac_ct_DSYMUTIL" = x; then
7639    DSYMUTIL=":"
7640  else
7641    case $cross_compiling:$ac_tool_warned in
7642yes:)
7643{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7644whose name does not start with the host triplet.  If you think this
7645configuration is useful to you, please write to autoconf@gnu.org." >&5
7646echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7647whose name does not start with the host triplet.  If you think this
7648configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7649ac_tool_warned=yes ;;
7650esac
7651    DSYMUTIL=$ac_ct_DSYMUTIL
7652  fi
7653else
7654  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7655fi
7656
7657    if test -n "$ac_tool_prefix"; then
7658  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7659set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7660{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7662if test "${ac_cv_prog_NMEDIT+set}" = set; then
7663  echo $ECHO_N "(cached) $ECHO_C" >&6
7664else
7665  if test -n "$NMEDIT"; then
7666  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7667else
7668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669for as_dir in $PATH
7670do
7671  IFS=$as_save_IFS
7672  test -z "$as_dir" && as_dir=.
7673  for ac_exec_ext in '' $ac_executable_extensions; do
7674  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7676    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677    break 2
7678  fi
7679done
7680done
7681IFS=$as_save_IFS
7682
7683fi
7684fi
7685NMEDIT=$ac_cv_prog_NMEDIT
7686if test -n "$NMEDIT"; then
7687  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7688echo "${ECHO_T}$NMEDIT" >&6; }
7689else
7690  { echo "$as_me:$LINENO: result: no" >&5
7691echo "${ECHO_T}no" >&6; }
7692fi
7693
7694
7695fi
7696if test -z "$ac_cv_prog_NMEDIT"; then
7697  ac_ct_NMEDIT=$NMEDIT
7698  # Extract the first word of "nmedit", so it can be a program name with args.
7699set dummy nmedit; ac_word=$2
7700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7702if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7703  echo $ECHO_N "(cached) $ECHO_C" >&6
7704else
7705  if test -n "$ac_ct_NMEDIT"; then
7706  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7707else
7708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709for as_dir in $PATH
7710do
7711  IFS=$as_save_IFS
7712  test -z "$as_dir" && as_dir=.
7713  for ac_exec_ext in '' $ac_executable_extensions; do
7714  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7716    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717    break 2
7718  fi
7719done
7720done
7721IFS=$as_save_IFS
7722
7723fi
7724fi
7725ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7726if test -n "$ac_ct_NMEDIT"; then
7727  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7728echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7729else
7730  { echo "$as_me:$LINENO: result: no" >&5
7731echo "${ECHO_T}no" >&6; }
7732fi
7733
7734  if test "x$ac_ct_NMEDIT" = x; then
7735    NMEDIT=":"
7736  else
7737    case $cross_compiling:$ac_tool_warned in
7738yes:)
7739{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7740whose name does not start with the host triplet.  If you think this
7741configuration is useful to you, please write to autoconf@gnu.org." >&5
7742echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7743whose name does not start with the host triplet.  If you think this
7744configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7745ac_tool_warned=yes ;;
7746esac
7747    NMEDIT=$ac_ct_NMEDIT
7748  fi
7749else
7750  NMEDIT="$ac_cv_prog_NMEDIT"
7751fi
7752
7753
7754    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7755echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7756if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7757  echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
7759  lt_cv_apple_cc_single_mod=no
7760      if test -z "${LT_MULTI_MODULE}"; then
7761   # By default we will add the -single_module flag. You can override
7762   # by either setting the environment variable LT_MULTI_MODULE
7763   # non-empty at configure time, or by adding -multi_module to the
7764   # link flags.
7765   echo "int foo(void){return 1;}" > conftest.c
7766   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7767     -dynamiclib ${wl}-single_module conftest.c
7768   if test -f libconftest.dylib; then
7769     lt_cv_apple_cc_single_mod=yes
7770     rm -rf libconftest.dylib*
7771   fi
7772   rm conftest.c
7773      fi
7774fi
7775{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7776echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7777    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7778echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7779if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7780  echo $ECHO_N "(cached) $ECHO_C" >&6
7781else
7782  lt_cv_ld_exported_symbols_list=no
7783      save_LDFLAGS=$LDFLAGS
7784      echo "_main" > conftest.sym
7785      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7786      cat >conftest.$ac_ext <<_ACEOF
7787/* confdefs.h.  */
7788_ACEOF
7789cat confdefs.h >>conftest.$ac_ext
7790cat >>conftest.$ac_ext <<_ACEOF
7791/* end confdefs.h.  */
7792
7793int
7794main ()
7795{
7796
7797  ;
7798  return 0;
7799}
7800_ACEOF
7801rm -f conftest.$ac_objext conftest$ac_exeext
7802if { (ac_try="$ac_link"
7803case "(($ac_try" in
7804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805  *) ac_try_echo=$ac_try;;
7806esac
7807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7808  (eval "$ac_link") 2>conftest.er1
7809  ac_status=$?
7810  grep -v '^ *+' conftest.er1 >conftest.err
7811  rm -f conftest.er1
7812  cat conftest.err >&5
7813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814  (exit $ac_status); } && {
7815	 test -z "$ac_c_werror_flag" ||
7816	 test ! -s conftest.err
7817       } && test -s conftest$ac_exeext &&
7818       $as_test_x conftest$ac_exeext; then
7819  lt_cv_ld_exported_symbols_list=yes
7820else
7821  echo "$as_me: failed program was:" >&5
7822sed 's/^/| /' conftest.$ac_ext >&5
7823
7824	lt_cv_ld_exported_symbols_list=no
7825fi
7826
7827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7828      conftest$ac_exeext conftest.$ac_ext
7829   LDFLAGS="$save_LDFLAGS"
7830
7831fi
7832{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7833echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7834    case $host_os in
7835    rhapsody* | darwin1.[0123])
7836      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7837    darwin1.*)
7838     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7839    darwin*)
7840      # if running on 10.5 or later, the deployment target defaults
7841      # to the OS version, if on x86, and 10.4, the deployment
7842      # target defaults to 10.4. Don't you love it?
7843      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7844   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7845     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7846   10.[012]*)
7847     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7848   10.*)
7849     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7850      esac
7851    ;;
7852  esac
7853    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7854      _lt_dar_single_mod='$single_module'
7855    fi
7856    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7857      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7858    else
7859      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7860    fi
7861    if test "$DSYMUTIL" != ":"; then
7862      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7863    else
7864      _lt_dsymutil=
7865    fi
7866    ;;
7867  esac
7868
7869
7870enable_dlopen=yes
7871enable_win32_dll=no
7872
7873# Check whether --enable-libtool-lock was given.
7874if test "${enable_libtool_lock+set}" = set; then
7875  enableval=$enable_libtool_lock;
7876fi
7877
7878test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7879
7880
7881# Check whether --with-pic was given.
7882if test "${with_pic+set}" = set; then
7883  withval=$with_pic; pic_mode="$withval"
7884else
7885  pic_mode=default
7886fi
7887
7888test -z "$pic_mode" && pic_mode=default
7889
7890# Use C for the default configuration in the libtool script
7891tagname=
7892lt_save_CC="$CC"
7893ac_ext=c
7894ac_cpp='$CPP $CPPFLAGS'
7895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7897ac_compiler_gnu=$ac_cv_c_compiler_gnu
7898
7899
7900# Source file extension for C test sources.
7901ac_ext=c
7902
7903# Object file extension for compiled C test sources.
7904objext=o
7905objext=$objext
7906
7907# Code to be used in simple compile tests
7908lt_simple_compile_test_code="int some_variable = 0;"
7909
7910# Code to be used in simple link tests
7911lt_simple_link_test_code='int main(){return(0);}'
7912
7913
7914# If no C compiler was specified, use CC.
7915LTCC=${LTCC-"$CC"}
7916
7917# If no C compiler flags were specified, use CFLAGS.
7918LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7919
7920# Allow CC to be a program name with arguments.
7921compiler=$CC
7922
7923
7924# save warnings/boilerplate of simple test code
7925ac_outfile=conftest.$ac_objext
7926echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7927eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7928_lt_compiler_boilerplate=`cat conftest.err`
7929$rm conftest*
7930
7931ac_outfile=conftest.$ac_objext
7932echo "$lt_simple_link_test_code" >conftest.$ac_ext
7933eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7934_lt_linker_boilerplate=`cat conftest.err`
7935$rm -r conftest*
7936
7937
7938
7939lt_prog_compiler_no_builtin_flag=
7940
7941if test "$GCC" = yes; then
7942  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7943
7944
7945{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7946echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7947if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7948  echo $ECHO_N "(cached) $ECHO_C" >&6
7949else
7950  lt_cv_prog_compiler_rtti_exceptions=no
7951  ac_outfile=conftest.$ac_objext
7952   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7953   lt_compiler_flag="-fno-rtti -fno-exceptions"
7954   # Insert the option either (1) after the last *FLAGS variable, or
7955   # (2) before a word containing "conftest.", or (3) at the end.
7956   # Note that $ac_compile itself does not contain backslashes and begins
7957   # with a dollar sign (not a hyphen), so the echo should work correctly.
7958   # The option is referenced via a variable to avoid confusing sed.
7959   lt_compile=`echo "$ac_compile" | $SED \
7960   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7961   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7962   -e 's:$: $lt_compiler_flag:'`
7963   (eval echo "\"\$as_me:7963: $lt_compile\"" >&5)
7964   (eval "$lt_compile" 2>conftest.err)
7965   ac_status=$?
7966   cat conftest.err >&5
7967   echo "$as_me:7967: \$? = $ac_status" >&5
7968   if (exit $ac_status) && test -s "$ac_outfile"; then
7969     # The compiler can only warn and ignore the option if not recognized
7970     # So say no if there are warnings other than the usual output.
7971     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7972     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7973     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7974       lt_cv_prog_compiler_rtti_exceptions=yes
7975     fi
7976   fi
7977   $rm conftest*
7978
7979fi
7980{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7981echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7982
7983if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7984    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7985else
7986    :
7987fi
7988
7989fi
7990
7991lt_prog_compiler_wl=
7992lt_prog_compiler_pic=
7993lt_prog_compiler_static=
7994
7995{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7996echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7997
7998  if test "$GCC" = yes; then
7999    lt_prog_compiler_wl='-Wl,'
8000    lt_prog_compiler_static='-static'
8001
8002    case $host_os in
8003      aix*)
8004      # All AIX code is PIC.
8005      if test "$host_cpu" = ia64; then
8006	# AIX 5 now supports IA64 processor
8007	lt_prog_compiler_static='-Bstatic'
8008      fi
8009      ;;
8010
8011    amigaos*)
8012      # FIXME: we need at least 68020 code to build shared libraries, but
8013      # adding the `-m68020' flag to GCC prevents building anything better,
8014      # like `-m68040'.
8015      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8016      ;;
8017
8018    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8019      # PIC is the default for these OSes.
8020      ;;
8021
8022    mingw* | cygwin* | pw32* | os2*)
8023      # This hack is so that the source file can tell whether it is being
8024      # built for inclusion in a dll (and should export symbols for example).
8025      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8026      # (--disable-auto-import) libraries
8027      lt_prog_compiler_pic='-DDLL_EXPORT'
8028      ;;
8029
8030    darwin* | rhapsody*)
8031      # PIC is the default on this platform
8032      # Common symbols not allowed in MH_DYLIB files
8033      lt_prog_compiler_pic='-fno-common'
8034      ;;
8035
8036    interix[3-9]*)
8037      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8038      # Instead, we relocate shared libraries at runtime.
8039      ;;
8040
8041    msdosdjgpp*)
8042      # Just because we use GCC doesn't mean we suddenly get shared libraries
8043      # on systems that don't support them.
8044      lt_prog_compiler_can_build_shared=no
8045      enable_shared=no
8046      ;;
8047
8048    sysv4*MP*)
8049      if test -d /usr/nec; then
8050	lt_prog_compiler_pic=-Kconform_pic
8051      fi
8052      ;;
8053
8054    hpux*)
8055      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8056      # not for PA HP-UX.
8057      case $host_cpu in
8058      hppa*64*|ia64*)
8059	# +Z the default
8060	;;
8061      *)
8062	lt_prog_compiler_pic='-fPIC'
8063	;;
8064      esac
8065      ;;
8066
8067    *)
8068      lt_prog_compiler_pic='-fPIC'
8069      ;;
8070    esac
8071  else
8072    # PORTME Check for flag to pass linker flags through the system compiler.
8073    case $host_os in
8074    aix*)
8075      lt_prog_compiler_wl='-Wl,'
8076      if test "$host_cpu" = ia64; then
8077	# AIX 5 now supports IA64 processor
8078	lt_prog_compiler_static='-Bstatic'
8079      else
8080	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8081      fi
8082      ;;
8083      darwin*)
8084        # PIC is the default on this platform
8085        # Common symbols not allowed in MH_DYLIB files
8086       case $cc_basename in
8087         xlc*)
8088         lt_prog_compiler_pic='-qnocommon'
8089         lt_prog_compiler_wl='-Wl,'
8090         ;;
8091       esac
8092       ;;
8093
8094    mingw* | cygwin* | pw32* | os2*)
8095      # This hack is so that the source file can tell whether it is being
8096      # built for inclusion in a dll (and should export symbols for example).
8097      lt_prog_compiler_pic='-DDLL_EXPORT'
8098      ;;
8099
8100    hpux9* | hpux10* | hpux11*)
8101      lt_prog_compiler_wl='-Wl,'
8102      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8103      # not for PA HP-UX.
8104      case $host_cpu in
8105      hppa*64*|ia64*)
8106	# +Z the default
8107	;;
8108      *)
8109	lt_prog_compiler_pic='+Z'
8110	;;
8111      esac
8112      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8113      lt_prog_compiler_static='${wl}-a ${wl}archive'
8114      ;;
8115
8116    irix5* | irix6* | nonstopux*)
8117      lt_prog_compiler_wl='-Wl,'
8118      # PIC (with -KPIC) is the default.
8119      lt_prog_compiler_static='-non_shared'
8120      ;;
8121
8122    newsos6)
8123      lt_prog_compiler_pic='-KPIC'
8124      lt_prog_compiler_static='-Bstatic'
8125      ;;
8126
8127    linux* | k*bsd*-gnu)
8128      case $cc_basename in
8129      icc* | ecc*)
8130	lt_prog_compiler_wl='-Wl,'
8131	lt_prog_compiler_pic='-KPIC'
8132	lt_prog_compiler_static='-static'
8133        ;;
8134      pgcc* | pgf77* | pgf90* | pgf95*)
8135        # Portland Group compilers (*not* the Pentium gcc compiler,
8136	# which looks to be a dead project)
8137	lt_prog_compiler_wl='-Wl,'
8138	lt_prog_compiler_pic='-fpic'
8139	lt_prog_compiler_static='-Bstatic'
8140        ;;
8141      ccc*)
8142        lt_prog_compiler_wl='-Wl,'
8143        # All Alpha code is PIC.
8144        lt_prog_compiler_static='-non_shared'
8145        ;;
8146      *)
8147        case `$CC -V 2>&1 | sed 5q` in
8148	*Sun\ C*)
8149	  # Sun C 5.9
8150	  lt_prog_compiler_pic='-KPIC'
8151	  lt_prog_compiler_static='-Bstatic'
8152	  lt_prog_compiler_wl='-Wl,'
8153	  ;;
8154	*Sun\ F*)
8155	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8156	  lt_prog_compiler_pic='-KPIC'
8157	  lt_prog_compiler_static='-Bstatic'
8158	  lt_prog_compiler_wl=''
8159	  ;;
8160	esac
8161	;;
8162      esac
8163      ;;
8164
8165    osf3* | osf4* | osf5*)
8166      lt_prog_compiler_wl='-Wl,'
8167      # All OSF/1 code is PIC.
8168      lt_prog_compiler_static='-non_shared'
8169      ;;
8170
8171    rdos*)
8172      lt_prog_compiler_static='-non_shared'
8173      ;;
8174
8175    solaris*)
8176      lt_prog_compiler_pic='-KPIC'
8177      lt_prog_compiler_static='-Bstatic'
8178      case $cc_basename in
8179      f77* | f90* | f95*)
8180	lt_prog_compiler_wl='-Qoption ld ';;
8181      *)
8182	lt_prog_compiler_wl='-Wl,';;
8183      esac
8184      ;;
8185
8186    sunos4*)
8187      lt_prog_compiler_wl='-Qoption ld '
8188      lt_prog_compiler_pic='-PIC'
8189      lt_prog_compiler_static='-Bstatic'
8190      ;;
8191
8192    sysv4 | sysv4.2uw2* | sysv4.3*)
8193      lt_prog_compiler_wl='-Wl,'
8194      lt_prog_compiler_pic='-KPIC'
8195      lt_prog_compiler_static='-Bstatic'
8196      ;;
8197
8198    sysv4*MP*)
8199      if test -d /usr/nec ;then
8200	lt_prog_compiler_pic='-Kconform_pic'
8201	lt_prog_compiler_static='-Bstatic'
8202      fi
8203      ;;
8204
8205    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8206      lt_prog_compiler_wl='-Wl,'
8207      lt_prog_compiler_pic='-KPIC'
8208      lt_prog_compiler_static='-Bstatic'
8209      ;;
8210
8211    unicos*)
8212      lt_prog_compiler_wl='-Wl,'
8213      lt_prog_compiler_can_build_shared=no
8214      ;;
8215
8216    uts4*)
8217      lt_prog_compiler_pic='-pic'
8218      lt_prog_compiler_static='-Bstatic'
8219      ;;
8220
8221    *)
8222      lt_prog_compiler_can_build_shared=no
8223      ;;
8224    esac
8225  fi
8226
8227{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8228echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8229
8230#
8231# Check to make sure the PIC flag actually works.
8232#
8233if test -n "$lt_prog_compiler_pic"; then
8234
8235{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8236echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8237if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8238  echo $ECHO_N "(cached) $ECHO_C" >&6
8239else
8240  lt_cv_prog_compiler_pic_works=no
8241  ac_outfile=conftest.$ac_objext
8242   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8243   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8244   # Insert the option either (1) after the last *FLAGS variable, or
8245   # (2) before a word containing "conftest.", or (3) at the end.
8246   # Note that $ac_compile itself does not contain backslashes and begins
8247   # with a dollar sign (not a hyphen), so the echo should work correctly.
8248   # The option is referenced via a variable to avoid confusing sed.
8249   lt_compile=`echo "$ac_compile" | $SED \
8250   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8251   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8252   -e 's:$: $lt_compiler_flag:'`
8253   (eval echo "\"\$as_me:8253: $lt_compile\"" >&5)
8254   (eval "$lt_compile" 2>conftest.err)
8255   ac_status=$?
8256   cat conftest.err >&5
8257   echo "$as_me:8257: \$? = $ac_status" >&5
8258   if (exit $ac_status) && test -s "$ac_outfile"; then
8259     # The compiler can only warn and ignore the option if not recognized
8260     # So say no if there are warnings other than the usual output.
8261     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8262     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8263     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8264       lt_cv_prog_compiler_pic_works=yes
8265     fi
8266   fi
8267   $rm conftest*
8268
8269fi
8270{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8271echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8272
8273if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8274    case $lt_prog_compiler_pic in
8275     "" | " "*) ;;
8276     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8277     esac
8278else
8279    lt_prog_compiler_pic=
8280     lt_prog_compiler_can_build_shared=no
8281fi
8282
8283fi
8284case $host_os in
8285  # For platforms which do not support PIC, -DPIC is meaningless:
8286  *djgpp*)
8287    lt_prog_compiler_pic=
8288    ;;
8289  *)
8290    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8291    ;;
8292esac
8293
8294#
8295# Check to make sure the static flag actually works.
8296#
8297wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8298{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8299echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8300if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8301  echo $ECHO_N "(cached) $ECHO_C" >&6
8302else
8303  lt_cv_prog_compiler_static_works=no
8304   save_LDFLAGS="$LDFLAGS"
8305   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8306   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8307   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8308     # The linker can only warn and ignore the option if not recognized
8309     # So say no if there are warnings
8310     if test -s conftest.err; then
8311       # Append any errors to the config.log.
8312       cat conftest.err 1>&5
8313       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8314       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8315       if diff conftest.exp conftest.er2 >/dev/null; then
8316         lt_cv_prog_compiler_static_works=yes
8317       fi
8318     else
8319       lt_cv_prog_compiler_static_works=yes
8320     fi
8321   fi
8322   $rm -r conftest*
8323   LDFLAGS="$save_LDFLAGS"
8324
8325fi
8326{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8327echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8328
8329if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8330    :
8331else
8332    lt_prog_compiler_static=
8333fi
8334
8335
8336{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8337echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8338if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8339  echo $ECHO_N "(cached) $ECHO_C" >&6
8340else
8341  lt_cv_prog_compiler_c_o=no
8342   $rm -r conftest 2>/dev/null
8343   mkdir conftest
8344   cd conftest
8345   mkdir out
8346   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8347
8348   lt_compiler_flag="-o out/conftest2.$ac_objext"
8349   # Insert the option either (1) after the last *FLAGS variable, or
8350   # (2) before a word containing "conftest.", or (3) at the end.
8351   # Note that $ac_compile itself does not contain backslashes and begins
8352   # with a dollar sign (not a hyphen), so the echo should work correctly.
8353   lt_compile=`echo "$ac_compile" | $SED \
8354   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8355   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8356   -e 's:$: $lt_compiler_flag:'`
8357   (eval echo "\"\$as_me:8357: $lt_compile\"" >&5)
8358   (eval "$lt_compile" 2>out/conftest.err)
8359   ac_status=$?
8360   cat out/conftest.err >&5
8361   echo "$as_me:8361: \$? = $ac_status" >&5
8362   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8363   then
8364     # The compiler can only warn and ignore the option if not recognized
8365     # So say no if there are warnings
8366     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8367     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8368     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8369       lt_cv_prog_compiler_c_o=yes
8370     fi
8371   fi
8372   chmod u+w . 2>&5
8373   $rm conftest*
8374   # SGI C++ compiler will create directory out/ii_files/ for
8375   # template instantiation
8376   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8377   $rm out/* && rmdir out
8378   cd ..
8379   rmdir conftest
8380   $rm conftest*
8381
8382fi
8383{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8384echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8385
8386
8387hard_links="nottested"
8388if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8389  # do not overwrite the value of need_locks provided by the user
8390  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8391echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8392  hard_links=yes
8393  $rm conftest*
8394  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8395  touch conftest.a
8396  ln conftest.a conftest.b 2>&5 || hard_links=no
8397  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8398  { echo "$as_me:$LINENO: result: $hard_links" >&5
8399echo "${ECHO_T}$hard_links" >&6; }
8400  if test "$hard_links" = no; then
8401    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8402echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8403    need_locks=warn
8404  fi
8405else
8406  need_locks=no
8407fi
8408
8409{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8410echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8411
8412  runpath_var=
8413  allow_undefined_flag=
8414  enable_shared_with_static_runtimes=no
8415  archive_cmds=
8416  archive_expsym_cmds=
8417  old_archive_From_new_cmds=
8418  old_archive_from_expsyms_cmds=
8419  export_dynamic_flag_spec=
8420  whole_archive_flag_spec=
8421  thread_safe_flag_spec=
8422  hardcode_libdir_flag_spec=
8423  hardcode_libdir_flag_spec_ld=
8424  hardcode_libdir_separator=
8425  hardcode_direct=no
8426  hardcode_minus_L=no
8427  hardcode_shlibpath_var=unsupported
8428  link_all_deplibs=unknown
8429  hardcode_automatic=no
8430  module_cmds=
8431  module_expsym_cmds=
8432  always_export_symbols=no
8433  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8434  # include_expsyms should be a list of space-separated symbols to be *always*
8435  # included in the symbol list
8436  include_expsyms=
8437  # exclude_expsyms can be an extended regexp of symbols to exclude
8438  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8439  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8440  # as well as any symbol that contains `d'.
8441  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8442  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8443  # platforms (ab)use it in PIC code, but their linkers get confused if
8444  # the symbol is explicitly referenced.  Since portable code cannot
8445  # rely on this symbol name, it's probably fine to never include it in
8446  # preloaded symbol tables.
8447  # Exclude shared library initialization/finalization symbols.
8448  extract_expsyms_cmds=
8449  # Just being paranoid about ensuring that cc_basename is set.
8450  for cc_temp in $compiler""; do
8451  case $cc_temp in
8452    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8453    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8454    \-*) ;;
8455    *) break;;
8456  esac
8457done
8458cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8459
8460  case $host_os in
8461  cygwin* | mingw* | pw32*)
8462    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8463    # When not using gcc, we currently assume that we are using
8464    # Microsoft Visual C++.
8465    if test "$GCC" != yes; then
8466      with_gnu_ld=no
8467    fi
8468    ;;
8469  interix*)
8470    # we just hope/assume this is gcc and not c89 (= MSVC++)
8471    with_gnu_ld=yes
8472    ;;
8473  openbsd*)
8474    with_gnu_ld=no
8475    ;;
8476  esac
8477
8478  ld_shlibs=yes
8479  if test "$with_gnu_ld" = yes; then
8480    # If archive_cmds runs LD, not CC, wlarc should be empty
8481    wlarc='${wl}'
8482
8483    # Set some defaults for GNU ld with shared library support. These
8484    # are reset later if shared libraries are not supported. Putting them
8485    # here allows them to be overridden if necessary.
8486    runpath_var=LD_RUN_PATH
8487    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8488    export_dynamic_flag_spec='${wl}--export-dynamic'
8489    # ancient GNU ld didn't support --whole-archive et. al.
8490    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8491	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8492      else
8493  	whole_archive_flag_spec=
8494    fi
8495    supports_anon_versioning=no
8496    case `$LD -v 2>/dev/null` in
8497      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8498      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8499      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8500      *\ 2.11.*) ;; # other 2.11 versions
8501      *) supports_anon_versioning=yes ;;
8502    esac
8503
8504    # See if GNU ld supports shared libraries.
8505    case $host_os in
8506    aix[3-9]*)
8507      # On AIX/PPC, the GNU linker is very broken
8508      if test "$host_cpu" != ia64; then
8509	ld_shlibs=no
8510	cat <<EOF 1>&2
8511
8512*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8513*** to be unable to reliably create shared libraries on AIX.
8514*** Therefore, libtool is disabling shared libraries support.  If you
8515*** really care for shared libraries, you may want to modify your PATH
8516*** so that a non-GNU linker is found, and then restart.
8517
8518EOF
8519      fi
8520      ;;
8521
8522    amigaos*)
8523      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)'
8524      hardcode_libdir_flag_spec='-L$libdir'
8525      hardcode_minus_L=yes
8526
8527      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8528      # that the semantics of dynamic libraries on AmigaOS, at least up
8529      # to version 4, is to share data among multiple programs linked
8530      # with the same dynamic library.  Since this doesn't match the
8531      # behavior of shared libraries on other platforms, we can't use
8532      # them.
8533      ld_shlibs=no
8534      ;;
8535
8536    beos*)
8537      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8538	allow_undefined_flag=unsupported
8539	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8540	# support --undefined.  This deserves some investigation.  FIXME
8541	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8542      else
8543	ld_shlibs=no
8544      fi
8545      ;;
8546
8547    cygwin* | mingw* | pw32*)
8548      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8549      # as there is no search path for DLLs.
8550      hardcode_libdir_flag_spec='-L$libdir'
8551      allow_undefined_flag=unsupported
8552      always_export_symbols=no
8553      enable_shared_with_static_runtimes=yes
8554      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8555
8556      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8557        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8558	# If the export-symbols file already is a .def file (1st line
8559	# is EXPORTS), use it as is; otherwise, prepend...
8560	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8561	  cp $export_symbols $output_objdir/$soname.def;
8562	else
8563	  echo EXPORTS > $output_objdir/$soname.def;
8564	  cat $export_symbols >> $output_objdir/$soname.def;
8565	fi~
8566	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8567      else
8568	ld_shlibs=no
8569      fi
8570      ;;
8571
8572    interix[3-9]*)
8573      hardcode_direct=no
8574      hardcode_shlibpath_var=no
8575      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8576      export_dynamic_flag_spec='${wl}-E'
8577      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8578      # Instead, shared libraries are loaded at an image base (0x10000000 by
8579      # default) and relocated if they conflict, which is a slow very memory
8580      # consuming and fragmenting process.  To avoid this, we pick a random,
8581      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8582      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8583      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8584      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'
8585      ;;
8586
8587    gnu* | linux* | k*bsd*-gnu)
8588      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8589	tmp_addflag=
8590	case $cc_basename,$host_cpu in
8591	pgcc*)				# Portland Group C compiler
8592	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8593	  tmp_addflag=' $pic_flag'
8594	  ;;
8595	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8596	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8597	  tmp_addflag=' $pic_flag -Mnomain' ;;
8598	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8599	  tmp_addflag=' -i_dynamic' ;;
8600	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8601	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8602	ifc* | ifort*)			# Intel Fortran compiler
8603	  tmp_addflag=' -nofor_main' ;;
8604	esac
8605	case `$CC -V 2>&1 | sed 5q` in
8606	*Sun\ C*)			# Sun C 5.9
8607	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8608	  tmp_sharedflag='-G' ;;
8609	*Sun\ F*)			# Sun Fortran 8.3
8610	  tmp_sharedflag='-G' ;;
8611	*)
8612	  tmp_sharedflag='-shared' ;;
8613	esac
8614	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8615
8616	if test $supports_anon_versioning = yes; then
8617	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8618  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8619  $echo "local: *; };" >> $output_objdir/$libname.ver~
8620	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8621	fi
8622	link_all_deplibs=no
8623      else
8624	ld_shlibs=no
8625      fi
8626      ;;
8627
8628    netbsd* | netbsdelf*-gnu)
8629      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8630	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8631	wlarc=
8632      else
8633	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8634	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8635      fi
8636      ;;
8637
8638    solaris*)
8639      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8640	ld_shlibs=no
8641	cat <<EOF 1>&2
8642
8643*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8644*** create shared libraries on Solaris systems.  Therefore, libtool
8645*** is disabling shared libraries support.  We urge you to upgrade GNU
8646*** binutils to release 2.9.1 or newer.  Another option is to modify
8647*** your PATH or compiler configuration so that the native linker is
8648*** used, and then restart.
8649
8650EOF
8651      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8652	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8653	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8654      else
8655	ld_shlibs=no
8656      fi
8657      ;;
8658
8659    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8660      case `$LD -v 2>&1` in
8661        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8662	ld_shlibs=no
8663	cat <<_LT_EOF 1>&2
8664
8665*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8666*** reliably create shared libraries on SCO systems.  Therefore, libtool
8667*** is disabling shared libraries support.  We urge you to upgrade GNU
8668*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8669*** your PATH or compiler configuration so that the native linker is
8670*** used, and then restart.
8671
8672_LT_EOF
8673	;;
8674	*)
8675	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8676	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8677	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8678	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8679	  else
8680	    ld_shlibs=no
8681	  fi
8682	;;
8683      esac
8684      ;;
8685
8686    sunos4*)
8687      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8688      wlarc=
8689      hardcode_direct=yes
8690      hardcode_shlibpath_var=no
8691      ;;
8692
8693    *)
8694      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8695	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8696	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8697      else
8698	ld_shlibs=no
8699      fi
8700      ;;
8701    esac
8702
8703    if test "$ld_shlibs" = no; then
8704      runpath_var=
8705      hardcode_libdir_flag_spec=
8706      export_dynamic_flag_spec=
8707      whole_archive_flag_spec=
8708    fi
8709  else
8710    # PORTME fill in a description of your system's linker (not GNU ld)
8711    case $host_os in
8712    aix3*)
8713      allow_undefined_flag=unsupported
8714      always_export_symbols=yes
8715      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'
8716      # Note: this linker hardcodes the directories in LIBPATH if there
8717      # are no directories specified by -L.
8718      hardcode_minus_L=yes
8719      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8720	# Neither direct hardcoding nor static linking is supported with a
8721	# broken collect2.
8722	hardcode_direct=unsupported
8723      fi
8724      ;;
8725
8726    aix[4-9]*)
8727      if test "$host_cpu" = ia64; then
8728	# On IA64, the linker does run time linking by default, so we don't
8729	# have to do anything special.
8730	aix_use_runtimelinking=no
8731	exp_sym_flag='-Bexport'
8732	no_entry_flag=""
8733      else
8734	# If we're using GNU nm, then we don't want the "-C" option.
8735	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8736	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8737	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8738	else
8739	  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'
8740	fi
8741	aix_use_runtimelinking=no
8742
8743	# Test if we are trying to use run time linking or normal
8744	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8745	# need to do runtime linking.
8746	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8747	  for ld_flag in $LDFLAGS; do
8748  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8749  	    aix_use_runtimelinking=yes
8750  	    break
8751  	  fi
8752	  done
8753	  ;;
8754	esac
8755
8756	exp_sym_flag='-bexport'
8757	no_entry_flag='-bnoentry'
8758      fi
8759
8760      # When large executables or shared objects are built, AIX ld can
8761      # have problems creating the table of contents.  If linking a library
8762      # or program results in "error TOC overflow" add -mminimal-toc to
8763      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8764      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8765
8766      archive_cmds=''
8767      hardcode_direct=yes
8768      hardcode_libdir_separator=':'
8769      link_all_deplibs=yes
8770
8771      if test "$GCC" = yes; then
8772	case $host_os in aix4.[012]|aix4.[012].*)
8773	# We only want to do this on AIX 4.2 and lower, the check
8774	# below for broken collect2 doesn't work under 4.3+
8775	  collect2name=`${CC} -print-prog-name=collect2`
8776	  if test -f "$collect2name" && \
8777  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8778	  then
8779  	  # We have reworked collect2
8780  	  :
8781	  else
8782  	  # We have old collect2
8783  	  hardcode_direct=unsupported
8784  	  # It fails to find uninstalled libraries when the uninstalled
8785  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8786  	  # to unsupported forces relinking
8787  	  hardcode_minus_L=yes
8788  	  hardcode_libdir_flag_spec='-L$libdir'
8789  	  hardcode_libdir_separator=
8790	  fi
8791	  ;;
8792	esac
8793	shared_flag='-shared'
8794	if test "$aix_use_runtimelinking" = yes; then
8795	  shared_flag="$shared_flag "'${wl}-G'
8796	fi
8797      else
8798	# not using gcc
8799	if test "$host_cpu" = ia64; then
8800  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8801  	# chokes on -Wl,-G. The following line is correct:
8802	  shared_flag='-G'
8803	else
8804	  if test "$aix_use_runtimelinking" = yes; then
8805	    shared_flag='${wl}-G'
8806	  else
8807	    shared_flag='${wl}-bM:SRE'
8808	  fi
8809	fi
8810      fi
8811
8812      # It seems that -bexpall does not export symbols beginning with
8813      # underscore (_), so it is better to generate a list of symbols to export.
8814      always_export_symbols=yes
8815      if test "$aix_use_runtimelinking" = yes; then
8816	# Warning - without using the other runtime loading flags (-brtl),
8817	# -berok will link without error, but may produce a broken library.
8818	allow_undefined_flag='-berok'
8819       # Determine the default libpath from the value encoded in an empty executable.
8820       cat >conftest.$ac_ext <<_ACEOF
8821/* confdefs.h.  */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h.  */
8826
8827int
8828main ()
8829{
8830
8831  ;
8832  return 0;
8833}
8834_ACEOF
8835rm -f conftest.$ac_objext conftest$ac_exeext
8836if { (ac_try="$ac_link"
8837case "(($ac_try" in
8838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839  *) ac_try_echo=$ac_try;;
8840esac
8841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842  (eval "$ac_link") 2>conftest.er1
8843  ac_status=$?
8844  grep -v '^ *+' conftest.er1 >conftest.err
8845  rm -f conftest.er1
8846  cat conftest.err >&5
8847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848  (exit $ac_status); } && {
8849	 test -z "$ac_c_werror_flag" ||
8850	 test ! -s conftest.err
8851       } && test -s conftest$ac_exeext &&
8852       $as_test_x conftest$ac_exeext; then
8853
8854lt_aix_libpath_sed='
8855    /Import File Strings/,/^$/ {
8856	/^0/ {
8857	    s/^0  *\(.*\)$/\1/
8858	    p
8859	}
8860    }'
8861aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8862# Check for a 64-bit object if we didn't find anything.
8863if test -z "$aix_libpath"; then
8864  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8865fi
8866else
8867  echo "$as_me: failed program was:" >&5
8868sed 's/^/| /' conftest.$ac_ext >&5
8869
8870
8871fi
8872
8873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8874      conftest$ac_exeext conftest.$ac_ext
8875if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8876
8877       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8878	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8879       else
8880	if test "$host_cpu" = ia64; then
8881	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8882	  allow_undefined_flag="-z nodefs"
8883	  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"
8884	else
8885	 # Determine the default libpath from the value encoded in an empty executable.
8886	 cat >conftest.$ac_ext <<_ACEOF
8887/* confdefs.h.  */
8888_ACEOF
8889cat confdefs.h >>conftest.$ac_ext
8890cat >>conftest.$ac_ext <<_ACEOF
8891/* end confdefs.h.  */
8892
8893int
8894main ()
8895{
8896
8897  ;
8898  return 0;
8899}
8900_ACEOF
8901rm -f conftest.$ac_objext conftest$ac_exeext
8902if { (ac_try="$ac_link"
8903case "(($ac_try" in
8904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8905  *) ac_try_echo=$ac_try;;
8906esac
8907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8908  (eval "$ac_link") 2>conftest.er1
8909  ac_status=$?
8910  grep -v '^ *+' conftest.er1 >conftest.err
8911  rm -f conftest.er1
8912  cat conftest.err >&5
8913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914  (exit $ac_status); } && {
8915	 test -z "$ac_c_werror_flag" ||
8916	 test ! -s conftest.err
8917       } && test -s conftest$ac_exeext &&
8918       $as_test_x conftest$ac_exeext; then
8919
8920lt_aix_libpath_sed='
8921    /Import File Strings/,/^$/ {
8922	/^0/ {
8923	    s/^0  *\(.*\)$/\1/
8924	    p
8925	}
8926    }'
8927aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8928# Check for a 64-bit object if we didn't find anything.
8929if test -z "$aix_libpath"; then
8930  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8931fi
8932else
8933  echo "$as_me: failed program was:" >&5
8934sed 's/^/| /' conftest.$ac_ext >&5
8935
8936
8937fi
8938
8939rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8940      conftest$ac_exeext conftest.$ac_ext
8941if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8942
8943	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8944	  # Warning - without using the other run time loading flags,
8945	  # -berok will link without error, but may produce a broken library.
8946	  no_undefined_flag=' ${wl}-bernotok'
8947	  allow_undefined_flag=' ${wl}-berok'
8948	  # Exported symbols can be pulled into shared objects from archives
8949	  whole_archive_flag_spec='$convenience'
8950	  archive_cmds_need_lc=yes
8951	  # This is similar to how AIX traditionally builds its shared libraries.
8952	  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'
8953	fi
8954      fi
8955      ;;
8956
8957    amigaos*)
8958      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)'
8959      hardcode_libdir_flag_spec='-L$libdir'
8960      hardcode_minus_L=yes
8961      # see comment about different semantics on the GNU ld section
8962      ld_shlibs=no
8963      ;;
8964
8965    bsdi[45]*)
8966      export_dynamic_flag_spec=-rdynamic
8967      ;;
8968
8969    cygwin* | mingw* | pw32*)
8970      # When not using gcc, we currently assume that we are using
8971      # Microsoft Visual C++.
8972      # hardcode_libdir_flag_spec is actually meaningless, as there is
8973      # no search path for DLLs.
8974      hardcode_libdir_flag_spec=' '
8975      allow_undefined_flag=unsupported
8976      # Tell ltmain to make .lib files, not .a files.
8977      libext=lib
8978      # Tell ltmain to make .dll files, not .so files.
8979      shrext_cmds=".dll"
8980      # FIXME: Setting linknames here is a bad hack.
8981      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8982      # The linker will automatically build a .lib file if we build a DLL.
8983      old_archive_From_new_cmds='true'
8984      # FIXME: Should let the user specify the lib program.
8985      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8986      fix_srcfile_path='`cygpath -w "$srcfile"`'
8987      enable_shared_with_static_runtimes=yes
8988      ;;
8989
8990    darwin* | rhapsody*)
8991      case $host_os in
8992        rhapsody* | darwin1.[012])
8993         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8994         ;;
8995       *) # Darwin 1.3 on
8996         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8997           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8998         else
8999           case ${MACOSX_DEPLOYMENT_TARGET} in
9000             10.[012])
9001               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9002               ;;
9003             10.*)
9004               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9005               ;;
9006           esac
9007         fi
9008         ;;
9009      esac
9010      archive_cmds_need_lc=no
9011      hardcode_direct=no
9012      hardcode_automatic=yes
9013      hardcode_shlibpath_var=unsupported
9014      whole_archive_flag_spec=''
9015      link_all_deplibs=yes
9016    if test "$GCC" = yes ; then
9017    	output_verbose_link_cmd='echo'
9018        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9019        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9020        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}"
9021        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}"
9022    else
9023      case $cc_basename in
9024        xlc*)
9025         output_verbose_link_cmd='echo'
9026         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9027         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9028          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9029         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9030          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9031          ;;
9032       *)
9033         ld_shlibs=no
9034          ;;
9035      esac
9036    fi
9037      ;;
9038
9039    dgux*)
9040      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9041      hardcode_libdir_flag_spec='-L$libdir'
9042      hardcode_shlibpath_var=no
9043      ;;
9044
9045    freebsd1*)
9046      ld_shlibs=no
9047      ;;
9048
9049    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9050    # support.  Future versions do this automatically, but an explicit c++rt0.o
9051    # does not break anything, and helps significantly (at the cost of a little
9052    # extra space).
9053    freebsd2.2*)
9054      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9055      hardcode_libdir_flag_spec='-R$libdir'
9056      hardcode_direct=yes
9057      hardcode_shlibpath_var=no
9058      ;;
9059
9060    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9061    freebsd2*)
9062      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9063      hardcode_direct=yes
9064      hardcode_minus_L=yes
9065      hardcode_shlibpath_var=no
9066      ;;
9067
9068    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9069    freebsd* | dragonfly*)
9070      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9071      hardcode_libdir_flag_spec='-R$libdir'
9072      hardcode_direct=yes
9073      hardcode_shlibpath_var=no
9074      ;;
9075
9076    hpux9*)
9077      if test "$GCC" = yes; then
9078	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9079      else
9080	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'
9081      fi
9082      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9083      hardcode_libdir_separator=:
9084      hardcode_direct=yes
9085
9086      # hardcode_minus_L: Not really in the search PATH,
9087      # but as the default location of the library.
9088      hardcode_minus_L=yes
9089      export_dynamic_flag_spec='${wl}-E'
9090      ;;
9091
9092    hpux10*)
9093      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9094	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9095      else
9096	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9097      fi
9098      if test "$with_gnu_ld" = no; then
9099	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9100	hardcode_libdir_separator=:
9101
9102	hardcode_direct=yes
9103	export_dynamic_flag_spec='${wl}-E'
9104
9105	# hardcode_minus_L: Not really in the search PATH,
9106	# but as the default location of the library.
9107	hardcode_minus_L=yes
9108      fi
9109      ;;
9110
9111    hpux11*)
9112      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9113	case $host_cpu in
9114	hppa*64*)
9115	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9116	  ;;
9117	ia64*)
9118	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9119	  ;;
9120	*)
9121	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9122	  ;;
9123	esac
9124      else
9125	case $host_cpu in
9126	hppa*64*)
9127	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9128	  ;;
9129	ia64*)
9130	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9131	  ;;
9132	*)
9133	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9134	  ;;
9135	esac
9136      fi
9137      if test "$with_gnu_ld" = no; then
9138	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9139	hardcode_libdir_separator=:
9140
9141	case $host_cpu in
9142	hppa*64*|ia64*)
9143	  hardcode_libdir_flag_spec_ld='+b $libdir'
9144	  hardcode_direct=no
9145	  hardcode_shlibpath_var=no
9146	  ;;
9147	*)
9148	  hardcode_direct=yes
9149	  export_dynamic_flag_spec='${wl}-E'
9150
9151	  # hardcode_minus_L: Not really in the search PATH,
9152	  # but as the default location of the library.
9153	  hardcode_minus_L=yes
9154	  ;;
9155	esac
9156      fi
9157      ;;
9158
9159    irix5* | irix6* | nonstopux*)
9160      if test "$GCC" = yes; then
9161	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9162      else
9163	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9164	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9165      fi
9166      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9167      hardcode_libdir_separator=:
9168      link_all_deplibs=yes
9169      ;;
9170
9171    netbsd* | netbsdelf*-gnu)
9172      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9173	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9174      else
9175	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9176      fi
9177      hardcode_libdir_flag_spec='-R$libdir'
9178      hardcode_direct=yes
9179      hardcode_shlibpath_var=no
9180      ;;
9181
9182    newsos6)
9183      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9184      hardcode_direct=yes
9185      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9186      hardcode_libdir_separator=:
9187      hardcode_shlibpath_var=no
9188      ;;
9189
9190    openbsd*)
9191      if test -f /usr/libexec/ld.so; then
9192	hardcode_direct=yes
9193	hardcode_shlibpath_var=no
9194	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9195	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9196	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9197	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9198	  export_dynamic_flag_spec='${wl}-E'
9199	else
9200	  case $host_os in
9201	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9202	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9203	     hardcode_libdir_flag_spec='-R$libdir'
9204	     ;;
9205	   *)
9206	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9207	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9208	     ;;
9209	  esac
9210        fi
9211      else
9212	ld_shlibs=no
9213      fi
9214      ;;
9215
9216    os2*)
9217      hardcode_libdir_flag_spec='-L$libdir'
9218      hardcode_minus_L=yes
9219      allow_undefined_flag=unsupported
9220      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'
9221      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9222      ;;
9223
9224    osf3*)
9225      if test "$GCC" = yes; then
9226	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9227	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9228      else
9229	allow_undefined_flag=' -expect_unresolved \*'
9230	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9231      fi
9232      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9233      hardcode_libdir_separator=:
9234      ;;
9235
9236    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9237      if test "$GCC" = yes; then
9238	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9239	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9240	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9241      else
9242	allow_undefined_flag=' -expect_unresolved \*'
9243	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9244	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9245	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9246
9247	# Both c and cxx compiler support -rpath directly
9248	hardcode_libdir_flag_spec='-rpath $libdir'
9249      fi
9250      hardcode_libdir_separator=:
9251      ;;
9252
9253    solaris*)
9254      no_undefined_flag=' -z text'
9255      if test "$GCC" = yes; then
9256	wlarc='${wl}'
9257	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9258	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9259	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9260      else
9261	wlarc=''
9262	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9263	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9264  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9265      fi
9266      hardcode_libdir_flag_spec='-R$libdir'
9267      hardcode_shlibpath_var=no
9268      case $host_os in
9269      solaris2.[0-5] | solaris2.[0-5].*) ;;
9270      *)
9271	# The compiler driver will combine and reorder linker options,
9272	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9273	# but is careful enough not to reorder.
9274 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9275	if test "$GCC" = yes; then
9276	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9277	else
9278	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9279	fi
9280	;;
9281      esac
9282      link_all_deplibs=yes
9283      ;;
9284
9285    sunos4*)
9286      if test "x$host_vendor" = xsequent; then
9287	# Use $CC to link under sequent, because it throws in some extra .o
9288	# files that make .init and .fini sections work.
9289	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9290      else
9291	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9292      fi
9293      hardcode_libdir_flag_spec='-L$libdir'
9294      hardcode_direct=yes
9295      hardcode_minus_L=yes
9296      hardcode_shlibpath_var=no
9297      ;;
9298
9299    sysv4)
9300      case $host_vendor in
9301	sni)
9302	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9303	  hardcode_direct=yes # is this really true???
9304	;;
9305	siemens)
9306	  ## LD is ld it makes a PLAMLIB
9307	  ## CC just makes a GrossModule.
9308	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9309	  reload_cmds='$CC -r -o $output$reload_objs'
9310	  hardcode_direct=no
9311        ;;
9312	motorola)
9313	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9314	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9315	;;
9316      esac
9317      runpath_var='LD_RUN_PATH'
9318      hardcode_shlibpath_var=no
9319      ;;
9320
9321    sysv4.3*)
9322      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9323      hardcode_shlibpath_var=no
9324      export_dynamic_flag_spec='-Bexport'
9325      ;;
9326
9327    sysv4*MP*)
9328      if test -d /usr/nec; then
9329	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330	hardcode_shlibpath_var=no
9331	runpath_var=LD_RUN_PATH
9332	hardcode_runpath_var=yes
9333	ld_shlibs=yes
9334      fi
9335      ;;
9336
9337    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9338      no_undefined_flag='${wl}-z,text'
9339      archive_cmds_need_lc=no
9340      hardcode_shlibpath_var=no
9341      runpath_var='LD_RUN_PATH'
9342
9343      if test "$GCC" = yes; then
9344	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9345	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9346      else
9347	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9348	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9349      fi
9350      ;;
9351
9352    sysv5* | sco3.2v5* | sco5v6*)
9353      # Note: We can NOT use -z defs as we might desire, because we do not
9354      # link with -lc, and that would cause any symbols used from libc to
9355      # always be unresolved, which means just about no library would
9356      # ever link correctly.  If we're not using GNU ld we use -z text
9357      # though, which does catch some bad symbols but isn't as heavy-handed
9358      # as -z defs.
9359      no_undefined_flag='${wl}-z,text'
9360      allow_undefined_flag='${wl}-z,nodefs'
9361      archive_cmds_need_lc=no
9362      hardcode_shlibpath_var=no
9363      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9364      hardcode_libdir_separator=':'
9365      link_all_deplibs=yes
9366      export_dynamic_flag_spec='${wl}-Bexport'
9367      runpath_var='LD_RUN_PATH'
9368
9369      if test "$GCC" = yes; then
9370	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9371	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9372      else
9373	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9374	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9375      fi
9376      ;;
9377
9378    uts4*)
9379      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380      hardcode_libdir_flag_spec='-L$libdir'
9381      hardcode_shlibpath_var=no
9382      ;;
9383
9384    *)
9385      ld_shlibs=no
9386      ;;
9387    esac
9388  fi
9389
9390{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9391echo "${ECHO_T}$ld_shlibs" >&6; }
9392test "$ld_shlibs" = no && can_build_shared=no
9393
9394#
9395# Do we need to explicitly link libc?
9396#
9397case "x$archive_cmds_need_lc" in
9398x|xyes)
9399  # Assume -lc should be added
9400  archive_cmds_need_lc=yes
9401
9402  if test "$enable_shared" = yes && test "$GCC" = yes; then
9403    case $archive_cmds in
9404    *'~'*)
9405      # FIXME: we may have to deal with multi-command sequences.
9406      ;;
9407    '$CC '*)
9408      # Test whether the compiler implicitly links with -lc since on some
9409      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9410      # to ld, don't add -lc before -lgcc.
9411      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9412echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9413      $rm conftest*
9414      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9415
9416      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9417  (eval $ac_compile) 2>&5
9418  ac_status=$?
9419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420  (exit $ac_status); } 2>conftest.err; then
9421        soname=conftest
9422        lib=conftest
9423        libobjs=conftest.$ac_objext
9424        deplibs=
9425        wl=$lt_prog_compiler_wl
9426	pic_flag=$lt_prog_compiler_pic
9427        compiler_flags=-v
9428        linker_flags=-v
9429        verstring=
9430        output_objdir=.
9431        libname=conftest
9432        lt_save_allow_undefined_flag=$allow_undefined_flag
9433        allow_undefined_flag=
9434        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9435  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9436  ac_status=$?
9437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438  (exit $ac_status); }
9439        then
9440	  archive_cmds_need_lc=no
9441        else
9442	  archive_cmds_need_lc=yes
9443        fi
9444        allow_undefined_flag=$lt_save_allow_undefined_flag
9445      else
9446        cat conftest.err 1>&5
9447      fi
9448      $rm conftest*
9449      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9450echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9451      ;;
9452    esac
9453  fi
9454  ;;
9455esac
9456
9457{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9458echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9459library_names_spec=
9460libname_spec='lib$name'
9461soname_spec=
9462shrext_cmds=".so"
9463postinstall_cmds=
9464postuninstall_cmds=
9465finish_cmds=
9466finish_eval=
9467shlibpath_var=
9468shlibpath_overrides_runpath=unknown
9469version_type=none
9470dynamic_linker="$host_os ld.so"
9471sys_lib_dlsearch_path_spec="/lib /usr/lib"
9472
9473if test "$GCC" = yes; then
9474  case $host_os in
9475    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9476    *) lt_awk_arg="/^libraries:/" ;;
9477  esac
9478  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9479  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9480    # if the path contains ";" then we assume it to be the separator
9481    # otherwise default to the standard path separator (i.e. ":") - it is
9482    # assumed that no part of a normal pathname contains ";" but that should
9483    # okay in the real world where ";" in dirpaths is itself problematic.
9484    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9485  else
9486    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9487  fi
9488  # Ok, now we have the path, separated by spaces, we can step through it
9489  # and add multilib dir if necessary.
9490  lt_tmp_lt_search_path_spec=
9491  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9492  for lt_sys_path in $lt_search_path_spec; do
9493    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9494      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9495    else
9496      test -d "$lt_sys_path" && \
9497	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9498    fi
9499  done
9500  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9501BEGIN {RS=" "; FS="/|\n";} {
9502  lt_foo="";
9503  lt_count=0;
9504  for (lt_i = NF; lt_i > 0; lt_i--) {
9505    if ($lt_i != "" && $lt_i != ".") {
9506      if ($lt_i == "..") {
9507        lt_count++;
9508      } else {
9509        if (lt_count == 0) {
9510          lt_foo="/" $lt_i lt_foo;
9511        } else {
9512          lt_count--;
9513        }
9514      }
9515    }
9516  }
9517  if (lt_foo != "") { lt_freq[lt_foo]++; }
9518  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9519}'`
9520  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9521else
9522  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9523fi
9524need_lib_prefix=unknown
9525hardcode_into_libs=no
9526
9527# when you set need_version to no, make sure it does not cause -set_version
9528# flags to be left without arguments
9529need_version=unknown
9530
9531case $host_os in
9532aix3*)
9533  version_type=linux
9534  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9535  shlibpath_var=LIBPATH
9536
9537  # AIX 3 has no versioning support, so we append a major version to the name.
9538  soname_spec='${libname}${release}${shared_ext}$major'
9539  ;;
9540
9541aix[4-9]*)
9542  version_type=linux
9543  need_lib_prefix=no
9544  need_version=no
9545  hardcode_into_libs=yes
9546  if test "$host_cpu" = ia64; then
9547    # AIX 5 supports IA64
9548    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9549    shlibpath_var=LD_LIBRARY_PATH
9550  else
9551    # With GCC up to 2.95.x, collect2 would create an import file
9552    # for dependence libraries.  The import file would start with
9553    # the line `#! .'.  This would cause the generated library to
9554    # depend on `.', always an invalid library.  This was fixed in
9555    # development snapshots of GCC prior to 3.0.
9556    case $host_os in
9557      aix4 | aix4.[01] | aix4.[01].*)
9558      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9559	   echo ' yes '
9560	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9561	:
9562      else
9563	can_build_shared=no
9564      fi
9565      ;;
9566    esac
9567    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9568    # soname into executable. Probably we can add versioning support to
9569    # collect2, so additional links can be useful in future.
9570    if test "$aix_use_runtimelinking" = yes; then
9571      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9572      # instead of lib<name>.a to let people know that these are not
9573      # typical AIX shared libraries.
9574      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9575    else
9576      # We preserve .a as extension for shared libraries through AIX4.2
9577      # and later when we are not doing run time linking.
9578      library_names_spec='${libname}${release}.a $libname.a'
9579      soname_spec='${libname}${release}${shared_ext}$major'
9580    fi
9581    shlibpath_var=LIBPATH
9582  fi
9583  ;;
9584
9585amigaos*)
9586  library_names_spec='$libname.ixlibrary $libname.a'
9587  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9588  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9589  ;;
9590
9591beos*)
9592  library_names_spec='${libname}${shared_ext}'
9593  dynamic_linker="$host_os ld.so"
9594  shlibpath_var=LIBRARY_PATH
9595  ;;
9596
9597bsdi[45]*)
9598  version_type=linux
9599  need_version=no
9600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601  soname_spec='${libname}${release}${shared_ext}$major'
9602  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9603  shlibpath_var=LD_LIBRARY_PATH
9604  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9605  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9606  # the default ld.so.conf also contains /usr/contrib/lib and
9607  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9608  # libtool to hard-code these into programs
9609  ;;
9610
9611cygwin* | mingw* | pw32*)
9612  version_type=windows
9613  shrext_cmds=".dll"
9614  need_version=no
9615  need_lib_prefix=no
9616
9617  case $GCC,$host_os in
9618  yes,cygwin* | yes,mingw* | yes,pw32*)
9619    library_names_spec='$libname.dll.a'
9620    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9621    postinstall_cmds='base_file=`basename \${file}`~
9622      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9623      dldir=$destdir/`dirname \$dlpath`~
9624      test -d \$dldir || mkdir -p \$dldir~
9625      $install_prog $dir/$dlname \$dldir/$dlname~
9626      chmod a+x \$dldir/$dlname'
9627    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9628      dlpath=$dir/\$dldll~
9629       $rm \$dlpath'
9630    shlibpath_overrides_runpath=yes
9631
9632    case $host_os in
9633    cygwin*)
9634      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9635      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9636      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9637      ;;
9638    mingw*)
9639      # MinGW DLLs use traditional 'lib' prefix
9640      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9641      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9642      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9643        # It is most probably a Windows format PATH printed by
9644        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9645        # path with ; separators, and with drive letters. We can handle the
9646        # drive letters (cygwin fileutils understands them), so leave them,
9647        # especially as we might pass files found there to a mingw objdump,
9648        # which wouldn't understand a cygwinified path. Ahh.
9649        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9650      else
9651        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9652      fi
9653      ;;
9654    pw32*)
9655      # pw32 DLLs use 'pw' prefix rather than 'lib'
9656      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9657      ;;
9658    esac
9659    ;;
9660
9661  *)
9662    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9663    ;;
9664  esac
9665  dynamic_linker='Win32 ld.exe'
9666  # FIXME: first we should search . and the directory the executable is in
9667  shlibpath_var=PATH
9668  ;;
9669
9670darwin* | rhapsody*)
9671  dynamic_linker="$host_os dyld"
9672  version_type=darwin
9673  need_lib_prefix=no
9674  need_version=no
9675  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9676  soname_spec='${libname}${release}${major}$shared_ext'
9677  shlibpath_overrides_runpath=yes
9678  shlibpath_var=DYLD_LIBRARY_PATH
9679  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9680
9681  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9682  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9683  ;;
9684
9685dgux*)
9686  version_type=linux
9687  need_lib_prefix=no
9688  need_version=no
9689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9690  soname_spec='${libname}${release}${shared_ext}$major'
9691  shlibpath_var=LD_LIBRARY_PATH
9692  ;;
9693
9694freebsd1*)
9695  dynamic_linker=no
9696  ;;
9697
9698freebsd* | dragonfly*)
9699  # DragonFly does not have aout.  When/if they implement a new
9700  # versioning mechanism, adjust this.
9701  if test -x /usr/bin/objformat; then
9702    objformat=`/usr/bin/objformat`
9703  else
9704    case $host_os in
9705    freebsd[123]*) objformat=aout ;;
9706    *) objformat=elf ;;
9707    esac
9708  fi
9709  version_type=freebsd-$objformat
9710  case $version_type in
9711    freebsd-elf*)
9712      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9713      need_version=no
9714      need_lib_prefix=no
9715      ;;
9716    freebsd-*)
9717      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9718      need_version=yes
9719      ;;
9720  esac
9721  shlibpath_var=LD_LIBRARY_PATH
9722  case $host_os in
9723  freebsd2*)
9724    shlibpath_overrides_runpath=yes
9725    ;;
9726  freebsd3.[01]* | freebsdelf3.[01]*)
9727    shlibpath_overrides_runpath=yes
9728    hardcode_into_libs=yes
9729    ;;
9730  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9731  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9732    shlibpath_overrides_runpath=no
9733    hardcode_into_libs=yes
9734    ;;
9735  *) # from 4.6 on, and DragonFly
9736    shlibpath_overrides_runpath=yes
9737    hardcode_into_libs=yes
9738    ;;
9739  esac
9740  ;;
9741
9742gnu*)
9743  version_type=linux
9744  need_lib_prefix=no
9745  need_version=no
9746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9747  soname_spec='${libname}${release}${shared_ext}$major'
9748  shlibpath_var=LD_LIBRARY_PATH
9749  hardcode_into_libs=yes
9750  ;;
9751
9752hpux9* | hpux10* | hpux11*)
9753  # Give a soname corresponding to the major version so that dld.sl refuses to
9754  # link against other versions.
9755  version_type=sunos
9756  need_lib_prefix=no
9757  need_version=no
9758  case $host_cpu in
9759  ia64*)
9760    shrext_cmds='.so'
9761    hardcode_into_libs=yes
9762    dynamic_linker="$host_os dld.so"
9763    shlibpath_var=LD_LIBRARY_PATH
9764    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9765    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766    soname_spec='${libname}${release}${shared_ext}$major'
9767    if test "X$HPUX_IA64_MODE" = X32; then
9768      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9769    else
9770      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9771    fi
9772    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9773    ;;
9774   hppa*64*)
9775     shrext_cmds='.sl'
9776     hardcode_into_libs=yes
9777     dynamic_linker="$host_os dld.sl"
9778     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9779     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9780     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9781     soname_spec='${libname}${release}${shared_ext}$major'
9782     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9783     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9784     ;;
9785   *)
9786    shrext_cmds='.sl'
9787    dynamic_linker="$host_os dld.sl"
9788    shlibpath_var=SHLIB_PATH
9789    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9790    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791    soname_spec='${libname}${release}${shared_ext}$major'
9792    ;;
9793  esac
9794  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9795  postinstall_cmds='chmod 555 $lib'
9796  ;;
9797
9798interix[3-9]*)
9799  version_type=linux
9800  need_lib_prefix=no
9801  need_version=no
9802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9803  soname_spec='${libname}${release}${shared_ext}$major'
9804  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9805  shlibpath_var=LD_LIBRARY_PATH
9806  shlibpath_overrides_runpath=no
9807  hardcode_into_libs=yes
9808  ;;
9809
9810irix5* | irix6* | nonstopux*)
9811  case $host_os in
9812    nonstopux*) version_type=nonstopux ;;
9813    *)
9814	if test "$lt_cv_prog_gnu_ld" = yes; then
9815		version_type=linux
9816	else
9817		version_type=irix
9818	fi ;;
9819  esac
9820  need_lib_prefix=no
9821  need_version=no
9822  soname_spec='${libname}${release}${shared_ext}$major'
9823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9824  case $host_os in
9825  irix5* | nonstopux*)
9826    libsuff= shlibsuff=
9827    ;;
9828  *)
9829    case $LD in # libtool.m4 will add one of these switches to LD
9830    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9831      libsuff= shlibsuff= libmagic=32-bit;;
9832    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9833      libsuff=32 shlibsuff=N32 libmagic=N32;;
9834    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9835      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9836    *) libsuff= shlibsuff= libmagic=never-match;;
9837    esac
9838    ;;
9839  esac
9840  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9841  shlibpath_overrides_runpath=no
9842  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9843  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9844  hardcode_into_libs=yes
9845  ;;
9846
9847# No shared lib support for Linux oldld, aout, or coff.
9848linux*oldld* | linux*aout* | linux*coff*)
9849  dynamic_linker=no
9850  ;;
9851
9852# This must be Linux ELF.
9853linux* | k*bsd*-gnu)
9854  version_type=linux
9855  need_lib_prefix=no
9856  need_version=no
9857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858  soname_spec='${libname}${release}${shared_ext}$major'
9859  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9860  shlibpath_var=LD_LIBRARY_PATH
9861  shlibpath_overrides_runpath=no
9862  # This implies no fast_install, which is unacceptable.
9863  # Some rework will be needed to allow for fast_install
9864  # before this can be enabled.
9865  hardcode_into_libs=yes
9866
9867  # Append ld.so.conf contents to the search path
9868  if test -f /etc/ld.so.conf; then
9869    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9870    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9871  fi
9872
9873  # We used to test for /lib/ld.so.1 and disable shared libraries on
9874  # powerpc, because MkLinux only supported shared libraries with the
9875  # GNU dynamic linker.  Since this was broken with cross compilers,
9876  # most powerpc-linux boxes support dynamic linking these days and
9877  # people can always --disable-shared, the test was removed, and we
9878  # assume the GNU/Linux dynamic linker is in use.
9879  dynamic_linker='GNU/Linux ld.so'
9880  ;;
9881
9882netbsdelf*-gnu)
9883  version_type=linux
9884  need_lib_prefix=no
9885  need_version=no
9886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9887  soname_spec='${libname}${release}${shared_ext}$major'
9888  shlibpath_var=LD_LIBRARY_PATH
9889  shlibpath_overrides_runpath=no
9890  hardcode_into_libs=yes
9891  dynamic_linker='NetBSD ld.elf_so'
9892  ;;
9893
9894netbsd*)
9895  version_type=sunos
9896  need_lib_prefix=no
9897  need_version=no
9898  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9899    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9900    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9901    dynamic_linker='NetBSD (a.out) ld.so'
9902  else
9903    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9904    soname_spec='${libname}${release}${shared_ext}$major'
9905    dynamic_linker='NetBSD ld.elf_so'
9906  fi
9907  shlibpath_var=LD_LIBRARY_PATH
9908  shlibpath_overrides_runpath=yes
9909  hardcode_into_libs=yes
9910  ;;
9911
9912newsos6)
9913  version_type=linux
9914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915  shlibpath_var=LD_LIBRARY_PATH
9916  shlibpath_overrides_runpath=yes
9917  ;;
9918
9919nto-qnx*)
9920  version_type=linux
9921  need_lib_prefix=no
9922  need_version=no
9923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924  soname_spec='${libname}${release}${shared_ext}$major'
9925  shlibpath_var=LD_LIBRARY_PATH
9926  shlibpath_overrides_runpath=yes
9927  ;;
9928
9929openbsd*)
9930  version_type=sunos
9931  sys_lib_dlsearch_path_spec="/usr/lib"
9932  need_lib_prefix=no
9933  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9934  case $host_os in
9935    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9936    *)                         need_version=no  ;;
9937  esac
9938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9939  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9940  shlibpath_var=LD_LIBRARY_PATH
9941  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9942    case $host_os in
9943      openbsd2.[89] | openbsd2.[89].*)
9944	shlibpath_overrides_runpath=no
9945	;;
9946      *)
9947	shlibpath_overrides_runpath=yes
9948	;;
9949      esac
9950  else
9951    shlibpath_overrides_runpath=yes
9952  fi
9953  ;;
9954
9955os2*)
9956  libname_spec='$name'
9957  shrext_cmds=".dll"
9958  need_lib_prefix=no
9959  library_names_spec='$libname${shared_ext} $libname.a'
9960  dynamic_linker='OS/2 ld.exe'
9961  shlibpath_var=LIBPATH
9962  ;;
9963
9964osf3* | osf4* | osf5*)
9965  version_type=osf
9966  need_lib_prefix=no
9967  need_version=no
9968  soname_spec='${libname}${release}${shared_ext}$major'
9969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9970  shlibpath_var=LD_LIBRARY_PATH
9971  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9972  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9973  ;;
9974
9975rdos*)
9976  dynamic_linker=no
9977  ;;
9978
9979solaris*)
9980  version_type=linux
9981  need_lib_prefix=no
9982  need_version=no
9983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984  soname_spec='${libname}${release}${shared_ext}$major'
9985  shlibpath_var=LD_LIBRARY_PATH
9986  shlibpath_overrides_runpath=yes
9987  hardcode_into_libs=yes
9988  # ldd complains unless libraries are executable
9989  postinstall_cmds='chmod +x $lib'
9990  ;;
9991
9992sunos4*)
9993  version_type=sunos
9994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9995  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9996  shlibpath_var=LD_LIBRARY_PATH
9997  shlibpath_overrides_runpath=yes
9998  if test "$with_gnu_ld" = yes; then
9999    need_lib_prefix=no
10000  fi
10001  need_version=yes
10002  ;;
10003
10004sysv4 | sysv4.3*)
10005  version_type=linux
10006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10007  soname_spec='${libname}${release}${shared_ext}$major'
10008  shlibpath_var=LD_LIBRARY_PATH
10009  case $host_vendor in
10010    sni)
10011      shlibpath_overrides_runpath=no
10012      need_lib_prefix=no
10013      export_dynamic_flag_spec='${wl}-Blargedynsym'
10014      runpath_var=LD_RUN_PATH
10015      ;;
10016    siemens)
10017      need_lib_prefix=no
10018      ;;
10019    motorola)
10020      need_lib_prefix=no
10021      need_version=no
10022      shlibpath_overrides_runpath=no
10023      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10024      ;;
10025  esac
10026  ;;
10027
10028sysv4*MP*)
10029  if test -d /usr/nec ;then
10030    version_type=linux
10031    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10032    soname_spec='$libname${shared_ext}.$major'
10033    shlibpath_var=LD_LIBRARY_PATH
10034  fi
10035  ;;
10036
10037sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10038  version_type=freebsd-elf
10039  need_lib_prefix=no
10040  need_version=no
10041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10042  soname_spec='${libname}${release}${shared_ext}$major'
10043  shlibpath_var=LD_LIBRARY_PATH
10044  hardcode_into_libs=yes
10045  if test "$with_gnu_ld" = yes; then
10046    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10047    shlibpath_overrides_runpath=no
10048  else
10049    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10050    shlibpath_overrides_runpath=yes
10051    case $host_os in
10052      sco3.2v5*)
10053        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10054	;;
10055    esac
10056  fi
10057  sys_lib_dlsearch_path_spec='/usr/lib'
10058  ;;
10059
10060uts4*)
10061  version_type=linux
10062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063  soname_spec='${libname}${release}${shared_ext}$major'
10064  shlibpath_var=LD_LIBRARY_PATH
10065  ;;
10066
10067*)
10068  dynamic_linker=no
10069  ;;
10070esac
10071{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10072echo "${ECHO_T}$dynamic_linker" >&6; }
10073test "$dynamic_linker" = no && can_build_shared=no
10074
10075if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10076  echo $ECHO_N "(cached) $ECHO_C" >&6
10077else
10078  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10079fi
10080
10081sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10082if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10083  echo $ECHO_N "(cached) $ECHO_C" >&6
10084else
10085  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10086fi
10087
10088sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10089
10090variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10091if test "$GCC" = yes; then
10092  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10093fi
10094
10095{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10096echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10097hardcode_action=
10098if test -n "$hardcode_libdir_flag_spec" || \
10099   test -n "$runpath_var" || \
10100   test "X$hardcode_automatic" = "Xyes" ; then
10101
10102  # We can hardcode non-existant directories.
10103  if test "$hardcode_direct" != no &&
10104     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10105     # have to relink, otherwise we might link with an installed library
10106     # when we should be linking with a yet-to-be-installed one
10107     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10108     test "$hardcode_minus_L" != no; then
10109    # Linking always hardcodes the temporary library directory.
10110    hardcode_action=relink
10111  else
10112    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10113    hardcode_action=immediate
10114  fi
10115else
10116  # We cannot hardcode anything, or else we can only hardcode existing
10117  # directories.
10118  hardcode_action=unsupported
10119fi
10120{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10121echo "${ECHO_T}$hardcode_action" >&6; }
10122
10123if test "$hardcode_action" = relink; then
10124  # Fast installation is not supported
10125  enable_fast_install=no
10126elif test "$shlibpath_overrides_runpath" = yes ||
10127     test "$enable_shared" = no; then
10128  # Fast installation is not necessary
10129  enable_fast_install=needless
10130fi
10131
10132striplib=
10133old_striplib=
10134{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10135echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10136if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10137  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10138  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10139  { echo "$as_me:$LINENO: result: yes" >&5
10140echo "${ECHO_T}yes" >&6; }
10141else
10142# FIXME - insert some real tests, host_os isn't really good enough
10143  case $host_os in
10144   darwin*)
10145       if test -n "$STRIP" ; then
10146         striplib="$STRIP -x"
10147         old_striplib="$STRIP -S"
10148         { echo "$as_me:$LINENO: result: yes" >&5
10149echo "${ECHO_T}yes" >&6; }
10150       else
10151  { echo "$as_me:$LINENO: result: no" >&5
10152echo "${ECHO_T}no" >&6; }
10153fi
10154       ;;
10155   *)
10156  { echo "$as_me:$LINENO: result: no" >&5
10157echo "${ECHO_T}no" >&6; }
10158    ;;
10159  esac
10160fi
10161
10162if test "x$enable_dlopen" != xyes; then
10163  enable_dlopen=unknown
10164  enable_dlopen_self=unknown
10165  enable_dlopen_self_static=unknown
10166else
10167  lt_cv_dlopen=no
10168  lt_cv_dlopen_libs=
10169
10170  case $host_os in
10171  beos*)
10172    lt_cv_dlopen="load_add_on"
10173    lt_cv_dlopen_libs=
10174    lt_cv_dlopen_self=yes
10175    ;;
10176
10177  mingw* | pw32*)
10178    lt_cv_dlopen="LoadLibrary"
10179    lt_cv_dlopen_libs=
10180   ;;
10181
10182  cygwin*)
10183    lt_cv_dlopen="dlopen"
10184    lt_cv_dlopen_libs=
10185   ;;
10186
10187  darwin*)
10188  # if libdl is installed we need to link against it
10189    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10190echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10191if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10192  echo $ECHO_N "(cached) $ECHO_C" >&6
10193else
10194  ac_check_lib_save_LIBS=$LIBS
10195LIBS="-ldl  $LIBS"
10196cat >conftest.$ac_ext <<_ACEOF
10197/* confdefs.h.  */
10198_ACEOF
10199cat confdefs.h >>conftest.$ac_ext
10200cat >>conftest.$ac_ext <<_ACEOF
10201/* end confdefs.h.  */
10202
10203/* Override any GCC internal prototype to avoid an error.
10204   Use char because int might match the return type of a GCC
10205   builtin and then its argument prototype would still apply.  */
10206#ifdef __cplusplus
10207extern "C"
10208#endif
10209char dlopen ();
10210int
10211main ()
10212{
10213return dlopen ();
10214  ;
10215  return 0;
10216}
10217_ACEOF
10218rm -f conftest.$ac_objext conftest$ac_exeext
10219if { (ac_try="$ac_link"
10220case "(($ac_try" in
10221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222  *) ac_try_echo=$ac_try;;
10223esac
10224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225  (eval "$ac_link") 2>conftest.er1
10226  ac_status=$?
10227  grep -v '^ *+' conftest.er1 >conftest.err
10228  rm -f conftest.er1
10229  cat conftest.err >&5
10230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231  (exit $ac_status); } && {
10232	 test -z "$ac_c_werror_flag" ||
10233	 test ! -s conftest.err
10234       } && test -s conftest$ac_exeext &&
10235       $as_test_x conftest$ac_exeext; then
10236  ac_cv_lib_dl_dlopen=yes
10237else
10238  echo "$as_me: failed program was:" >&5
10239sed 's/^/| /' conftest.$ac_ext >&5
10240
10241	ac_cv_lib_dl_dlopen=no
10242fi
10243
10244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10245      conftest$ac_exeext conftest.$ac_ext
10246LIBS=$ac_check_lib_save_LIBS
10247fi
10248{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10249echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10250if test $ac_cv_lib_dl_dlopen = yes; then
10251  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10252else
10253
10254    lt_cv_dlopen="dyld"
10255    lt_cv_dlopen_libs=
10256    lt_cv_dlopen_self=yes
10257
10258fi
10259
10260   ;;
10261
10262  *)
10263    { echo "$as_me:$LINENO: checking for shl_load" >&5
10264echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10265if test "${ac_cv_func_shl_load+set}" = set; then
10266  echo $ECHO_N "(cached) $ECHO_C" >&6
10267else
10268  cat >conftest.$ac_ext <<_ACEOF
10269/* confdefs.h.  */
10270_ACEOF
10271cat confdefs.h >>conftest.$ac_ext
10272cat >>conftest.$ac_ext <<_ACEOF
10273/* end confdefs.h.  */
10274/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10275   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10276#define shl_load innocuous_shl_load
10277
10278/* System header to define __stub macros and hopefully few prototypes,
10279    which can conflict with char shl_load (); below.
10280    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10281    <limits.h> exists even on freestanding compilers.  */
10282
10283#ifdef __STDC__
10284# include <limits.h>
10285#else
10286# include <assert.h>
10287#endif
10288
10289#undef shl_load
10290
10291/* Override any GCC internal prototype to avoid an error.
10292   Use char because int might match the return type of a GCC
10293   builtin and then its argument prototype would still apply.  */
10294#ifdef __cplusplus
10295extern "C"
10296#endif
10297char shl_load ();
10298/* The GNU C library defines this for functions which it implements
10299    to always fail with ENOSYS.  Some functions are actually named
10300    something starting with __ and the normal name is an alias.  */
10301#if defined __stub_shl_load || defined __stub___shl_load
10302choke me
10303#endif
10304
10305int
10306main ()
10307{
10308return shl_load ();
10309  ;
10310  return 0;
10311}
10312_ACEOF
10313rm -f conftest.$ac_objext conftest$ac_exeext
10314if { (ac_try="$ac_link"
10315case "(($ac_try" in
10316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317  *) ac_try_echo=$ac_try;;
10318esac
10319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320  (eval "$ac_link") 2>conftest.er1
10321  ac_status=$?
10322  grep -v '^ *+' conftest.er1 >conftest.err
10323  rm -f conftest.er1
10324  cat conftest.err >&5
10325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326  (exit $ac_status); } && {
10327	 test -z "$ac_c_werror_flag" ||
10328	 test ! -s conftest.err
10329       } && test -s conftest$ac_exeext &&
10330       $as_test_x conftest$ac_exeext; then
10331  ac_cv_func_shl_load=yes
10332else
10333  echo "$as_me: failed program was:" >&5
10334sed 's/^/| /' conftest.$ac_ext >&5
10335
10336	ac_cv_func_shl_load=no
10337fi
10338
10339rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10340      conftest$ac_exeext conftest.$ac_ext
10341fi
10342{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10343echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10344if test $ac_cv_func_shl_load = yes; then
10345  lt_cv_dlopen="shl_load"
10346else
10347  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10348echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10349if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10350  echo $ECHO_N "(cached) $ECHO_C" >&6
10351else
10352  ac_check_lib_save_LIBS=$LIBS
10353LIBS="-ldld  $LIBS"
10354cat >conftest.$ac_ext <<_ACEOF
10355/* confdefs.h.  */
10356_ACEOF
10357cat confdefs.h >>conftest.$ac_ext
10358cat >>conftest.$ac_ext <<_ACEOF
10359/* end confdefs.h.  */
10360
10361/* Override any GCC internal prototype to avoid an error.
10362   Use char because int might match the return type of a GCC
10363   builtin and then its argument prototype would still apply.  */
10364#ifdef __cplusplus
10365extern "C"
10366#endif
10367char shl_load ();
10368int
10369main ()
10370{
10371return shl_load ();
10372  ;
10373  return 0;
10374}
10375_ACEOF
10376rm -f conftest.$ac_objext conftest$ac_exeext
10377if { (ac_try="$ac_link"
10378case "(($ac_try" in
10379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380  *) ac_try_echo=$ac_try;;
10381esac
10382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383  (eval "$ac_link") 2>conftest.er1
10384  ac_status=$?
10385  grep -v '^ *+' conftest.er1 >conftest.err
10386  rm -f conftest.er1
10387  cat conftest.err >&5
10388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389  (exit $ac_status); } && {
10390	 test -z "$ac_c_werror_flag" ||
10391	 test ! -s conftest.err
10392       } && test -s conftest$ac_exeext &&
10393       $as_test_x conftest$ac_exeext; then
10394  ac_cv_lib_dld_shl_load=yes
10395else
10396  echo "$as_me: failed program was:" >&5
10397sed 's/^/| /' conftest.$ac_ext >&5
10398
10399	ac_cv_lib_dld_shl_load=no
10400fi
10401
10402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10403      conftest$ac_exeext conftest.$ac_ext
10404LIBS=$ac_check_lib_save_LIBS
10405fi
10406{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10407echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10408if test $ac_cv_lib_dld_shl_load = yes; then
10409  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10410else
10411  { echo "$as_me:$LINENO: checking for dlopen" >&5
10412echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10413if test "${ac_cv_func_dlopen+set}" = set; then
10414  echo $ECHO_N "(cached) $ECHO_C" >&6
10415else
10416  cat >conftest.$ac_ext <<_ACEOF
10417/* confdefs.h.  */
10418_ACEOF
10419cat confdefs.h >>conftest.$ac_ext
10420cat >>conftest.$ac_ext <<_ACEOF
10421/* end confdefs.h.  */
10422/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10423   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10424#define dlopen innocuous_dlopen
10425
10426/* System header to define __stub macros and hopefully few prototypes,
10427    which can conflict with char dlopen (); below.
10428    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10429    <limits.h> exists even on freestanding compilers.  */
10430
10431#ifdef __STDC__
10432# include <limits.h>
10433#else
10434# include <assert.h>
10435#endif
10436
10437#undef dlopen
10438
10439/* Override any GCC internal prototype to avoid an error.
10440   Use char because int might match the return type of a GCC
10441   builtin and then its argument prototype would still apply.  */
10442#ifdef __cplusplus
10443extern "C"
10444#endif
10445char dlopen ();
10446/* The GNU C library defines this for functions which it implements
10447    to always fail with ENOSYS.  Some functions are actually named
10448    something starting with __ and the normal name is an alias.  */
10449#if defined __stub_dlopen || defined __stub___dlopen
10450choke me
10451#endif
10452
10453int
10454main ()
10455{
10456return dlopen ();
10457  ;
10458  return 0;
10459}
10460_ACEOF
10461rm -f conftest.$ac_objext conftest$ac_exeext
10462if { (ac_try="$ac_link"
10463case "(($ac_try" in
10464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465  *) ac_try_echo=$ac_try;;
10466esac
10467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468  (eval "$ac_link") 2>conftest.er1
10469  ac_status=$?
10470  grep -v '^ *+' conftest.er1 >conftest.err
10471  rm -f conftest.er1
10472  cat conftest.err >&5
10473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474  (exit $ac_status); } && {
10475	 test -z "$ac_c_werror_flag" ||
10476	 test ! -s conftest.err
10477       } && test -s conftest$ac_exeext &&
10478       $as_test_x conftest$ac_exeext; then
10479  ac_cv_func_dlopen=yes
10480else
10481  echo "$as_me: failed program was:" >&5
10482sed 's/^/| /' conftest.$ac_ext >&5
10483
10484	ac_cv_func_dlopen=no
10485fi
10486
10487rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10488      conftest$ac_exeext conftest.$ac_ext
10489fi
10490{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10491echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10492if test $ac_cv_func_dlopen = yes; then
10493  lt_cv_dlopen="dlopen"
10494else
10495  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10496echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10497if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10498  echo $ECHO_N "(cached) $ECHO_C" >&6
10499else
10500  ac_check_lib_save_LIBS=$LIBS
10501LIBS="-ldl  $LIBS"
10502cat >conftest.$ac_ext <<_ACEOF
10503/* confdefs.h.  */
10504_ACEOF
10505cat confdefs.h >>conftest.$ac_ext
10506cat >>conftest.$ac_ext <<_ACEOF
10507/* end confdefs.h.  */
10508
10509/* Override any GCC internal prototype to avoid an error.
10510   Use char because int might match the return type of a GCC
10511   builtin and then its argument prototype would still apply.  */
10512#ifdef __cplusplus
10513extern "C"
10514#endif
10515char dlopen ();
10516int
10517main ()
10518{
10519return dlopen ();
10520  ;
10521  return 0;
10522}
10523_ACEOF
10524rm -f conftest.$ac_objext conftest$ac_exeext
10525if { (ac_try="$ac_link"
10526case "(($ac_try" in
10527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528  *) ac_try_echo=$ac_try;;
10529esac
10530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10531  (eval "$ac_link") 2>conftest.er1
10532  ac_status=$?
10533  grep -v '^ *+' conftest.er1 >conftest.err
10534  rm -f conftest.er1
10535  cat conftest.err >&5
10536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537  (exit $ac_status); } && {
10538	 test -z "$ac_c_werror_flag" ||
10539	 test ! -s conftest.err
10540       } && test -s conftest$ac_exeext &&
10541       $as_test_x conftest$ac_exeext; then
10542  ac_cv_lib_dl_dlopen=yes
10543else
10544  echo "$as_me: failed program was:" >&5
10545sed 's/^/| /' conftest.$ac_ext >&5
10546
10547	ac_cv_lib_dl_dlopen=no
10548fi
10549
10550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10551      conftest$ac_exeext conftest.$ac_ext
10552LIBS=$ac_check_lib_save_LIBS
10553fi
10554{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10555echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10556if test $ac_cv_lib_dl_dlopen = yes; then
10557  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10558else
10559  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10560echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10561if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10562  echo $ECHO_N "(cached) $ECHO_C" >&6
10563else
10564  ac_check_lib_save_LIBS=$LIBS
10565LIBS="-lsvld  $LIBS"
10566cat >conftest.$ac_ext <<_ACEOF
10567/* confdefs.h.  */
10568_ACEOF
10569cat confdefs.h >>conftest.$ac_ext
10570cat >>conftest.$ac_ext <<_ACEOF
10571/* end confdefs.h.  */
10572
10573/* Override any GCC internal prototype to avoid an error.
10574   Use char because int might match the return type of a GCC
10575   builtin and then its argument prototype would still apply.  */
10576#ifdef __cplusplus
10577extern "C"
10578#endif
10579char dlopen ();
10580int
10581main ()
10582{
10583return dlopen ();
10584  ;
10585  return 0;
10586}
10587_ACEOF
10588rm -f conftest.$ac_objext conftest$ac_exeext
10589if { (ac_try="$ac_link"
10590case "(($ac_try" in
10591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592  *) ac_try_echo=$ac_try;;
10593esac
10594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595  (eval "$ac_link") 2>conftest.er1
10596  ac_status=$?
10597  grep -v '^ *+' conftest.er1 >conftest.err
10598  rm -f conftest.er1
10599  cat conftest.err >&5
10600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601  (exit $ac_status); } && {
10602	 test -z "$ac_c_werror_flag" ||
10603	 test ! -s conftest.err
10604       } && test -s conftest$ac_exeext &&
10605       $as_test_x conftest$ac_exeext; then
10606  ac_cv_lib_svld_dlopen=yes
10607else
10608  echo "$as_me: failed program was:" >&5
10609sed 's/^/| /' conftest.$ac_ext >&5
10610
10611	ac_cv_lib_svld_dlopen=no
10612fi
10613
10614rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10615      conftest$ac_exeext conftest.$ac_ext
10616LIBS=$ac_check_lib_save_LIBS
10617fi
10618{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10619echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10620if test $ac_cv_lib_svld_dlopen = yes; then
10621  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10622else
10623  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10624echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10625if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10626  echo $ECHO_N "(cached) $ECHO_C" >&6
10627else
10628  ac_check_lib_save_LIBS=$LIBS
10629LIBS="-ldld  $LIBS"
10630cat >conftest.$ac_ext <<_ACEOF
10631/* confdefs.h.  */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h.  */
10636
10637/* Override any GCC internal prototype to avoid an error.
10638   Use char because int might match the return type of a GCC
10639   builtin and then its argument prototype would still apply.  */
10640#ifdef __cplusplus
10641extern "C"
10642#endif
10643char dld_link ();
10644int
10645main ()
10646{
10647return dld_link ();
10648  ;
10649  return 0;
10650}
10651_ACEOF
10652rm -f conftest.$ac_objext conftest$ac_exeext
10653if { (ac_try="$ac_link"
10654case "(($ac_try" in
10655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656  *) ac_try_echo=$ac_try;;
10657esac
10658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659  (eval "$ac_link") 2>conftest.er1
10660  ac_status=$?
10661  grep -v '^ *+' conftest.er1 >conftest.err
10662  rm -f conftest.er1
10663  cat conftest.err >&5
10664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665  (exit $ac_status); } && {
10666	 test -z "$ac_c_werror_flag" ||
10667	 test ! -s conftest.err
10668       } && test -s conftest$ac_exeext &&
10669       $as_test_x conftest$ac_exeext; then
10670  ac_cv_lib_dld_dld_link=yes
10671else
10672  echo "$as_me: failed program was:" >&5
10673sed 's/^/| /' conftest.$ac_ext >&5
10674
10675	ac_cv_lib_dld_dld_link=no
10676fi
10677
10678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10679      conftest$ac_exeext conftest.$ac_ext
10680LIBS=$ac_check_lib_save_LIBS
10681fi
10682{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10683echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10684if test $ac_cv_lib_dld_dld_link = yes; then
10685  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10686fi
10687
10688
10689fi
10690
10691
10692fi
10693
10694
10695fi
10696
10697
10698fi
10699
10700
10701fi
10702
10703    ;;
10704  esac
10705
10706  if test "x$lt_cv_dlopen" != xno; then
10707    enable_dlopen=yes
10708  else
10709    enable_dlopen=no
10710  fi
10711
10712  case $lt_cv_dlopen in
10713  dlopen)
10714    save_CPPFLAGS="$CPPFLAGS"
10715    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10716
10717    save_LDFLAGS="$LDFLAGS"
10718    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10719
10720    save_LIBS="$LIBS"
10721    LIBS="$lt_cv_dlopen_libs $LIBS"
10722
10723    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10724echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10725if test "${lt_cv_dlopen_self+set}" = set; then
10726  echo $ECHO_N "(cached) $ECHO_C" >&6
10727else
10728  	  if test "$cross_compiling" = yes; then :
10729  lt_cv_dlopen_self=cross
10730else
10731  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10732  lt_status=$lt_dlunknown
10733  cat > conftest.$ac_ext <<EOF
10734#line 10734 "configure"
10735#include "confdefs.h"
10736
10737#if HAVE_DLFCN_H
10738#include <dlfcn.h>
10739#endif
10740
10741#include <stdio.h>
10742
10743#ifdef RTLD_GLOBAL
10744#  define LT_DLGLOBAL		RTLD_GLOBAL
10745#else
10746#  ifdef DL_GLOBAL
10747#    define LT_DLGLOBAL		DL_GLOBAL
10748#  else
10749#    define LT_DLGLOBAL		0
10750#  endif
10751#endif
10752
10753/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10754   find out it does not work in some platform. */
10755#ifndef LT_DLLAZY_OR_NOW
10756#  ifdef RTLD_LAZY
10757#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10758#  else
10759#    ifdef DL_LAZY
10760#      define LT_DLLAZY_OR_NOW		DL_LAZY
10761#    else
10762#      ifdef RTLD_NOW
10763#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10764#      else
10765#        ifdef DL_NOW
10766#          define LT_DLLAZY_OR_NOW	DL_NOW
10767#        else
10768#          define LT_DLLAZY_OR_NOW	0
10769#        endif
10770#      endif
10771#    endif
10772#  endif
10773#endif
10774
10775#ifdef __cplusplus
10776extern "C" void exit (int);
10777#endif
10778
10779void fnord() { int i=42;}
10780int main ()
10781{
10782  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10783  int status = $lt_dlunknown;
10784
10785  if (self)
10786    {
10787      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10788      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10789      /* dlclose (self); */
10790    }
10791  else
10792    puts (dlerror ());
10793
10794    exit (status);
10795}
10796EOF
10797  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10798  (eval $ac_link) 2>&5
10799  ac_status=$?
10800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10802    (./conftest; exit; ) >&5 2>/dev/null
10803    lt_status=$?
10804    case x$lt_status in
10805      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10806      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10807      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10808    esac
10809  else :
10810    # compilation failed
10811    lt_cv_dlopen_self=no
10812  fi
10813fi
10814rm -fr conftest*
10815
10816
10817fi
10818{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10819echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10820
10821    if test "x$lt_cv_dlopen_self" = xyes; then
10822      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10823      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10824echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10825if test "${lt_cv_dlopen_self_static+set}" = set; then
10826  echo $ECHO_N "(cached) $ECHO_C" >&6
10827else
10828  	  if test "$cross_compiling" = yes; then :
10829  lt_cv_dlopen_self_static=cross
10830else
10831  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10832  lt_status=$lt_dlunknown
10833  cat > conftest.$ac_ext <<EOF
10834#line 10834 "configure"
10835#include "confdefs.h"
10836
10837#if HAVE_DLFCN_H
10838#include <dlfcn.h>
10839#endif
10840
10841#include <stdio.h>
10842
10843#ifdef RTLD_GLOBAL
10844#  define LT_DLGLOBAL		RTLD_GLOBAL
10845#else
10846#  ifdef DL_GLOBAL
10847#    define LT_DLGLOBAL		DL_GLOBAL
10848#  else
10849#    define LT_DLGLOBAL		0
10850#  endif
10851#endif
10852
10853/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10854   find out it does not work in some platform. */
10855#ifndef LT_DLLAZY_OR_NOW
10856#  ifdef RTLD_LAZY
10857#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10858#  else
10859#    ifdef DL_LAZY
10860#      define LT_DLLAZY_OR_NOW		DL_LAZY
10861#    else
10862#      ifdef RTLD_NOW
10863#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10864#      else
10865#        ifdef DL_NOW
10866#          define LT_DLLAZY_OR_NOW	DL_NOW
10867#        else
10868#          define LT_DLLAZY_OR_NOW	0
10869#        endif
10870#      endif
10871#    endif
10872#  endif
10873#endif
10874
10875#ifdef __cplusplus
10876extern "C" void exit (int);
10877#endif
10878
10879void fnord() { int i=42;}
10880int main ()
10881{
10882  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10883  int status = $lt_dlunknown;
10884
10885  if (self)
10886    {
10887      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10888      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10889      /* dlclose (self); */
10890    }
10891  else
10892    puts (dlerror ());
10893
10894    exit (status);
10895}
10896EOF
10897  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10898  (eval $ac_link) 2>&5
10899  ac_status=$?
10900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10902    (./conftest; exit; ) >&5 2>/dev/null
10903    lt_status=$?
10904    case x$lt_status in
10905      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10906      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10907      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10908    esac
10909  else :
10910    # compilation failed
10911    lt_cv_dlopen_self_static=no
10912  fi
10913fi
10914rm -fr conftest*
10915
10916
10917fi
10918{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10919echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10920    fi
10921
10922    CPPFLAGS="$save_CPPFLAGS"
10923    LDFLAGS="$save_LDFLAGS"
10924    LIBS="$save_LIBS"
10925    ;;
10926  esac
10927
10928  case $lt_cv_dlopen_self in
10929  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10930  *) enable_dlopen_self=unknown ;;
10931  esac
10932
10933  case $lt_cv_dlopen_self_static in
10934  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10935  *) enable_dlopen_self_static=unknown ;;
10936  esac
10937fi
10938
10939
10940# Report which library types will actually be built
10941{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10942echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10943{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10944echo "${ECHO_T}$can_build_shared" >&6; }
10945
10946{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10947echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10948test "$can_build_shared" = "no" && enable_shared=no
10949
10950# On AIX, shared libraries and static libraries use the same namespace, and
10951# are all built from PIC.
10952case $host_os in
10953aix3*)
10954  test "$enable_shared" = yes && enable_static=no
10955  if test -n "$RANLIB"; then
10956    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10957    postinstall_cmds='$RANLIB $lib'
10958  fi
10959  ;;
10960
10961aix[4-9]*)
10962  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10963    test "$enable_shared" = yes && enable_static=no
10964  fi
10965    ;;
10966esac
10967{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10968echo "${ECHO_T}$enable_shared" >&6; }
10969
10970{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10971echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10972# Make sure either enable_shared or enable_static is yes.
10973test "$enable_shared" = yes || enable_static=yes
10974{ echo "$as_me:$LINENO: result: $enable_static" >&5
10975echo "${ECHO_T}$enable_static" >&6; }
10976
10977# The else clause should only fire when bootstrapping the
10978# libtool distribution, otherwise you forgot to ship ltmain.sh
10979# with your package, and you will get complaints that there are
10980# no rules to generate ltmain.sh.
10981if test -f "$ltmain"; then
10982  # See if we are running on zsh, and set the options which allow our commands through
10983  # without removal of \ escapes.
10984  if test -n "${ZSH_VERSION+set}" ; then
10985    setopt NO_GLOB_SUBST
10986  fi
10987  # Now quote all the things that may contain metacharacters while being
10988  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10989  # variables and quote the copies for generation of the libtool script.
10990  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10991    SED SHELL STRIP \
10992    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10993    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10994    deplibs_check_method reload_flag reload_cmds need_locks \
10995    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10996    lt_cv_sys_global_symbol_to_c_name_address \
10997    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10998    old_postinstall_cmds old_postuninstall_cmds \
10999    compiler \
11000    CC \
11001    LD \
11002    lt_prog_compiler_wl \
11003    lt_prog_compiler_pic \
11004    lt_prog_compiler_static \
11005    lt_prog_compiler_no_builtin_flag \
11006    export_dynamic_flag_spec \
11007    thread_safe_flag_spec \
11008    whole_archive_flag_spec \
11009    enable_shared_with_static_runtimes \
11010    old_archive_cmds \
11011    old_archive_from_new_cmds \
11012    predep_objects \
11013    postdep_objects \
11014    predeps \
11015    postdeps \
11016    compiler_lib_search_path \
11017    compiler_lib_search_dirs \
11018    archive_cmds \
11019    archive_expsym_cmds \
11020    postinstall_cmds \
11021    postuninstall_cmds \
11022    old_archive_from_expsyms_cmds \
11023    allow_undefined_flag \
11024    no_undefined_flag \
11025    export_symbols_cmds \
11026    hardcode_libdir_flag_spec \
11027    hardcode_libdir_flag_spec_ld \
11028    hardcode_libdir_separator \
11029    hardcode_automatic \
11030    module_cmds \
11031    module_expsym_cmds \
11032    lt_cv_prog_compiler_c_o \
11033    fix_srcfile_path \
11034    exclude_expsyms \
11035    include_expsyms; do
11036
11037    case $var in
11038    old_archive_cmds | \
11039    old_archive_from_new_cmds | \
11040    archive_cmds | \
11041    archive_expsym_cmds | \
11042    module_cmds | \
11043    module_expsym_cmds | \
11044    old_archive_from_expsyms_cmds | \
11045    export_symbols_cmds | \
11046    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11047    postinstall_cmds | postuninstall_cmds | \
11048    old_postinstall_cmds | old_postuninstall_cmds | \
11049    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11050      # Double-quote double-evaled strings.
11051      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11052      ;;
11053    *)
11054      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11055      ;;
11056    esac
11057  done
11058
11059  case $lt_echo in
11060  *'\$0 --fallback-echo"')
11061    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11062    ;;
11063  esac
11064
11065cfgfile="${ofile}T"
11066  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11067  $rm -f "$cfgfile"
11068  { echo "$as_me:$LINENO: creating $ofile" >&5
11069echo "$as_me: creating $ofile" >&6;}
11070
11071  cat <<__EOF__ >> "$cfgfile"
11072#! $SHELL
11073
11074# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11075# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11076# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11077#
11078# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11079# Free Software Foundation, Inc.
11080#
11081# This file is part of GNU Libtool:
11082# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11083#
11084# This program is free software; you can redistribute it and/or modify
11085# it under the terms of the GNU General Public License as published by
11086# the Free Software Foundation; either version 2 of the License, or
11087# (at your option) any later version.
11088#
11089# This program is distributed in the hope that it will be useful, but
11090# WITHOUT ANY WARRANTY; without even the implied warranty of
11091# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11092# General Public License for more details.
11093#
11094# You should have received a copy of the GNU General Public License
11095# along with this program; if not, write to the Free Software
11096# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11097#
11098# As a special exception to the GNU General Public License, if you
11099# distribute this file as part of a program that contains a
11100# configuration script generated by Autoconf, you may include it under
11101# the same distribution terms that you use for the rest of that program.
11102
11103# A sed program that does not truncate output.
11104SED=$lt_SED
11105
11106# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11107Xsed="$SED -e 1s/^X//"
11108
11109# The HP-UX ksh and POSIX shell print the target directory to stdout
11110# if CDPATH is set.
11111(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11112
11113# The names of the tagged configurations supported by this script.
11114available_tags=
11115
11116# ### BEGIN LIBTOOL CONFIG
11117
11118# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11119
11120# Shell to use when invoking shell scripts.
11121SHELL=$lt_SHELL
11122
11123# Whether or not to build shared libraries.
11124build_libtool_libs=$enable_shared
11125
11126# Whether or not to build static libraries.
11127build_old_libs=$enable_static
11128
11129# Whether or not to add -lc for building shared libraries.
11130build_libtool_need_lc=$archive_cmds_need_lc
11131
11132# Whether or not to disallow shared libs when runtime libs are static
11133allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11134
11135# Whether or not to optimize for fast installation.
11136fast_install=$enable_fast_install
11137
11138# The host system.
11139host_alias=$host_alias
11140host=$host
11141host_os=$host_os
11142
11143# The build system.
11144build_alias=$build_alias
11145build=$build
11146build_os=$build_os
11147
11148# An echo program that does not interpret backslashes.
11149echo=$lt_echo
11150
11151# The archiver.
11152AR=$lt_AR
11153AR_FLAGS=$lt_AR_FLAGS
11154
11155# A C compiler.
11156LTCC=$lt_LTCC
11157
11158# LTCC compiler flags.
11159LTCFLAGS=$lt_LTCFLAGS
11160
11161# A language-specific compiler.
11162CC=$lt_compiler
11163
11164# Is the compiler the GNU C compiler?
11165with_gcc=$GCC
11166
11167# An ERE matcher.
11168EGREP=$lt_EGREP
11169
11170# The linker used to build libraries.
11171LD=$lt_LD
11172
11173# Whether we need hard or soft links.
11174LN_S=$lt_LN_S
11175
11176# A BSD-compatible nm program.
11177NM=$lt_NM
11178
11179# A symbol stripping program
11180STRIP=$lt_STRIP
11181
11182# Used to examine libraries when file_magic_cmd begins "file"
11183MAGIC_CMD=$MAGIC_CMD
11184
11185# Used on cygwin: DLL creation program.
11186DLLTOOL="$DLLTOOL"
11187
11188# Used on cygwin: object dumper.
11189OBJDUMP="$OBJDUMP"
11190
11191# Used on cygwin: assembler.
11192AS="$AS"
11193
11194# The name of the directory that contains temporary libtool files.
11195objdir=$objdir
11196
11197# How to create reloadable object files.
11198reload_flag=$lt_reload_flag
11199reload_cmds=$lt_reload_cmds
11200
11201# How to pass a linker flag through the compiler.
11202wl=$lt_lt_prog_compiler_wl
11203
11204# Object file suffix (normally "o").
11205objext="$ac_objext"
11206
11207# Old archive suffix (normally "a").
11208libext="$libext"
11209
11210# Shared library suffix (normally ".so").
11211shrext_cmds='$shrext_cmds'
11212
11213# Executable file suffix (normally "").
11214exeext="$exeext"
11215
11216# Additional compiler flags for building library objects.
11217pic_flag=$lt_lt_prog_compiler_pic
11218pic_mode=$pic_mode
11219
11220# What is the maximum length of a command?
11221max_cmd_len=$lt_cv_sys_max_cmd_len
11222
11223# Does compiler simultaneously support -c and -o options?
11224compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11225
11226# Must we lock files when doing compilation?
11227need_locks=$lt_need_locks
11228
11229# Do we need the lib prefix for modules?
11230need_lib_prefix=$need_lib_prefix
11231
11232# Do we need a version for libraries?
11233need_version=$need_version
11234
11235# Whether dlopen is supported.
11236dlopen_support=$enable_dlopen
11237
11238# Whether dlopen of programs is supported.
11239dlopen_self=$enable_dlopen_self
11240
11241# Whether dlopen of statically linked programs is supported.
11242dlopen_self_static=$enable_dlopen_self_static
11243
11244# Compiler flag to prevent dynamic linking.
11245link_static_flag=$lt_lt_prog_compiler_static
11246
11247# Compiler flag to turn off builtin functions.
11248no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11249
11250# Compiler flag to allow reflexive dlopens.
11251export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11252
11253# Compiler flag to generate shared objects directly from archives.
11254whole_archive_flag_spec=$lt_whole_archive_flag_spec
11255
11256# Compiler flag to generate thread-safe objects.
11257thread_safe_flag_spec=$lt_thread_safe_flag_spec
11258
11259# Library versioning type.
11260version_type=$version_type
11261
11262# Format of library name prefix.
11263libname_spec=$lt_libname_spec
11264
11265# List of archive names.  First name is the real one, the rest are links.
11266# The last name is the one that the linker finds with -lNAME.
11267library_names_spec=$lt_library_names_spec
11268
11269# The coded name of the library, if different from the real name.
11270soname_spec=$lt_soname_spec
11271
11272# Commands used to build and install an old-style archive.
11273RANLIB=$lt_RANLIB
11274old_archive_cmds=$lt_old_archive_cmds
11275old_postinstall_cmds=$lt_old_postinstall_cmds
11276old_postuninstall_cmds=$lt_old_postuninstall_cmds
11277
11278# Create an old-style archive from a shared archive.
11279old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11280
11281# Create a temporary old-style archive to link instead of a shared archive.
11282old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11283
11284# Commands used to build and install a shared archive.
11285archive_cmds=$lt_archive_cmds
11286archive_expsym_cmds=$lt_archive_expsym_cmds
11287postinstall_cmds=$lt_postinstall_cmds
11288postuninstall_cmds=$lt_postuninstall_cmds
11289
11290# Commands used to build a loadable module (assumed same as above if empty)
11291module_cmds=$lt_module_cmds
11292module_expsym_cmds=$lt_module_expsym_cmds
11293
11294# Commands to strip libraries.
11295old_striplib=$lt_old_striplib
11296striplib=$lt_striplib
11297
11298# Dependencies to place before the objects being linked to create a
11299# shared library.
11300predep_objects=$lt_predep_objects
11301
11302# Dependencies to place after the objects being linked to create a
11303# shared library.
11304postdep_objects=$lt_postdep_objects
11305
11306# Dependencies to place before the objects being linked to create a
11307# shared library.
11308predeps=$lt_predeps
11309
11310# Dependencies to place after the objects being linked to create a
11311# shared library.
11312postdeps=$lt_postdeps
11313
11314# The directories searched by this compiler when creating a shared
11315# library
11316compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11317
11318# The library search path used internally by the compiler when linking
11319# a shared library.
11320compiler_lib_search_path=$lt_compiler_lib_search_path
11321
11322# Method to check whether dependent libraries are shared objects.
11323deplibs_check_method=$lt_deplibs_check_method
11324
11325# Command to use when deplibs_check_method == file_magic.
11326file_magic_cmd=$lt_file_magic_cmd
11327
11328# Flag that allows shared libraries with undefined symbols to be built.
11329allow_undefined_flag=$lt_allow_undefined_flag
11330
11331# Flag that forces no undefined symbols.
11332no_undefined_flag=$lt_no_undefined_flag
11333
11334# Commands used to finish a libtool library installation in a directory.
11335finish_cmds=$lt_finish_cmds
11336
11337# Same as above, but a single script fragment to be evaled but not shown.
11338finish_eval=$lt_finish_eval
11339
11340# Take the output of nm and produce a listing of raw symbols and C names.
11341global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11342
11343# Transform the output of nm in a proper C declaration
11344global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11345
11346# Transform the output of nm in a C name address pair
11347global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11348
11349# This is the shared library runtime path variable.
11350runpath_var=$runpath_var
11351
11352# This is the shared library path variable.
11353shlibpath_var=$shlibpath_var
11354
11355# Is shlibpath searched before the hard-coded library search path?
11356shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11357
11358# How to hardcode a shared library path into an executable.
11359hardcode_action=$hardcode_action
11360
11361# Whether we should hardcode library paths into libraries.
11362hardcode_into_libs=$hardcode_into_libs
11363
11364# Flag to hardcode \$libdir into a binary during linking.
11365# This must work even if \$libdir does not exist.
11366hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11367
11368# If ld is used when linking, flag to hardcode \$libdir into
11369# a binary during linking. This must work even if \$libdir does
11370# not exist.
11371hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11372
11373# Whether we need a single -rpath flag with a separated argument.
11374hardcode_libdir_separator=$lt_hardcode_libdir_separator
11375
11376# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11377# resulting binary.
11378hardcode_direct=$hardcode_direct
11379
11380# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11381# resulting binary.
11382hardcode_minus_L=$hardcode_minus_L
11383
11384# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11385# the resulting binary.
11386hardcode_shlibpath_var=$hardcode_shlibpath_var
11387
11388# Set to yes if building a shared library automatically hardcodes DIR into the library
11389# and all subsequent libraries and executables linked against it.
11390hardcode_automatic=$hardcode_automatic
11391
11392# Variables whose values should be saved in libtool wrapper scripts and
11393# restored at relink time.
11394variables_saved_for_relink="$variables_saved_for_relink"
11395
11396# Whether libtool must link a program against all its dependency libraries.
11397link_all_deplibs=$link_all_deplibs
11398
11399# Compile-time system search path for libraries
11400sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11401
11402# Run-time system search path for libraries
11403sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11404
11405# Fix the shell variable \$srcfile for the compiler.
11406fix_srcfile_path=$lt_fix_srcfile_path
11407
11408# Set to yes if exported symbols are required.
11409always_export_symbols=$always_export_symbols
11410
11411# The commands to list exported symbols.
11412export_symbols_cmds=$lt_export_symbols_cmds
11413
11414# The commands to extract the exported symbol list from a shared archive.
11415extract_expsyms_cmds=$lt_extract_expsyms_cmds
11416
11417# Symbols that should not be listed in the preloaded symbols.
11418exclude_expsyms=$lt_exclude_expsyms
11419
11420# Symbols that must always be exported.
11421include_expsyms=$lt_include_expsyms
11422
11423# ### END LIBTOOL CONFIG
11424
11425__EOF__
11426
11427
11428  case $host_os in
11429  aix3*)
11430    cat <<\EOF >> "$cfgfile"
11431
11432# AIX sometimes has problems with the GCC collect2 program.  For some
11433# reason, if we set the COLLECT_NAMES environment variable, the problems
11434# vanish in a puff of smoke.
11435if test "X${COLLECT_NAMES+set}" != Xset; then
11436  COLLECT_NAMES=
11437  export COLLECT_NAMES
11438fi
11439EOF
11440    ;;
11441  esac
11442
11443  # We use sed instead of cat because bash on DJGPP gets confused if
11444  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11445  # text mode, it properly converts lines to CR/LF.  This bash problem
11446  # is reportedly fixed, but why not run on old versions too?
11447  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11448
11449  mv -f "$cfgfile" "$ofile" || \
11450    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11451  chmod +x "$ofile"
11452
11453else
11454  # If there is no Makefile yet, we rely on a make rule to execute
11455  # `config.status --recheck' to rerun these tests and create the
11456  # libtool script then.
11457  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11458  if test -f "$ltmain_in"; then
11459    test -f Makefile && make "$ltmain"
11460  fi
11461fi
11462
11463
11464ac_ext=c
11465ac_cpp='$CPP $CPPFLAGS'
11466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11468ac_compiler_gnu=$ac_cv_c_compiler_gnu
11469
11470CC="$lt_save_CC"
11471
11472
11473# Check whether --with-tags was given.
11474if test "${with_tags+set}" = set; then
11475  withval=$with_tags; tagnames="$withval"
11476fi
11477
11478
11479if test -f "$ltmain" && test -n "$tagnames"; then
11480  if test ! -f "${ofile}"; then
11481    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11482echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11483  fi
11484
11485  if test -z "$LTCC"; then
11486    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11487    if test -z "$LTCC"; then
11488      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11489echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11490    else
11491      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11492echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11493    fi
11494  fi
11495  if test -z "$LTCFLAGS"; then
11496    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11497  fi
11498
11499  # Extract list of available tagged configurations in $ofile.
11500  # Note that this assumes the entire list is on one line.
11501  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11502
11503  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11504  for tagname in $tagnames; do
11505    IFS="$lt_save_ifs"
11506    # Check whether tagname contains only valid characters
11507    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11508    "") ;;
11509    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11510echo "$as_me: error: invalid tag name: $tagname" >&2;}
11511   { (exit 1); exit 1; }; }
11512	;;
11513    esac
11514
11515    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11516    then
11517      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11518echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11519   { (exit 1); exit 1; }; }
11520    fi
11521
11522    # Update the list of available tags.
11523    if test -n "$tagname"; then
11524      echo appending configuration tag \"$tagname\" to $ofile
11525
11526      case $tagname in
11527      CXX)
11528	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11529	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11530	    (test "X$CXX" != "Xg++"))) ; then
11531	  ac_ext=cpp
11532ac_cpp='$CXXCPP $CPPFLAGS'
11533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11536
11537
11538
11539
11540archive_cmds_need_lc_CXX=no
11541allow_undefined_flag_CXX=
11542always_export_symbols_CXX=no
11543archive_expsym_cmds_CXX=
11544export_dynamic_flag_spec_CXX=
11545hardcode_direct_CXX=no
11546hardcode_libdir_flag_spec_CXX=
11547hardcode_libdir_flag_spec_ld_CXX=
11548hardcode_libdir_separator_CXX=
11549hardcode_minus_L_CXX=no
11550hardcode_shlibpath_var_CXX=unsupported
11551hardcode_automatic_CXX=no
11552module_cmds_CXX=
11553module_expsym_cmds_CXX=
11554link_all_deplibs_CXX=unknown
11555old_archive_cmds_CXX=$old_archive_cmds
11556no_undefined_flag_CXX=
11557whole_archive_flag_spec_CXX=
11558enable_shared_with_static_runtimes_CXX=no
11559
11560# Dependencies to place before and after the object being linked:
11561predep_objects_CXX=
11562postdep_objects_CXX=
11563predeps_CXX=
11564postdeps_CXX=
11565compiler_lib_search_path_CXX=
11566compiler_lib_search_dirs_CXX=
11567
11568# Source file extension for C++ test sources.
11569ac_ext=cpp
11570
11571# Object file extension for compiled C++ test sources.
11572objext=o
11573objext_CXX=$objext
11574
11575# Code to be used in simple compile tests
11576lt_simple_compile_test_code="int some_variable = 0;"
11577
11578# Code to be used in simple link tests
11579lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11580
11581# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11582
11583# If no C compiler was specified, use CC.
11584LTCC=${LTCC-"$CC"}
11585
11586# If no C compiler flags were specified, use CFLAGS.
11587LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11588
11589# Allow CC to be a program name with arguments.
11590compiler=$CC
11591
11592
11593# save warnings/boilerplate of simple test code
11594ac_outfile=conftest.$ac_objext
11595echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11596eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11597_lt_compiler_boilerplate=`cat conftest.err`
11598$rm conftest*
11599
11600ac_outfile=conftest.$ac_objext
11601echo "$lt_simple_link_test_code" >conftest.$ac_ext
11602eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11603_lt_linker_boilerplate=`cat conftest.err`
11604$rm -r conftest*
11605
11606
11607# Allow CC to be a program name with arguments.
11608lt_save_CC=$CC
11609lt_save_LD=$LD
11610lt_save_GCC=$GCC
11611GCC=$GXX
11612lt_save_with_gnu_ld=$with_gnu_ld
11613lt_save_path_LD=$lt_cv_path_LD
11614if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11615  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11616else
11617  $as_unset lt_cv_prog_gnu_ld
11618fi
11619if test -n "${lt_cv_path_LDCXX+set}"; then
11620  lt_cv_path_LD=$lt_cv_path_LDCXX
11621else
11622  $as_unset lt_cv_path_LD
11623fi
11624test -z "${LDCXX+set}" || LD=$LDCXX
11625CC=${CXX-"c++"}
11626compiler=$CC
11627compiler_CXX=$CC
11628for cc_temp in $compiler""; do
11629  case $cc_temp in
11630    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11631    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11632    \-*) ;;
11633    *) break;;
11634  esac
11635done
11636cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11637
11638
11639# We don't want -fno-exception wen compiling C++ code, so set the
11640# no_builtin_flag separately
11641if test "$GXX" = yes; then
11642  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11643else
11644  lt_prog_compiler_no_builtin_flag_CXX=
11645fi
11646
11647if test "$GXX" = yes; then
11648  # Set up default GNU C++ configuration
11649
11650
11651# Check whether --with-gnu-ld was given.
11652if test "${with_gnu_ld+set}" = set; then
11653  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11654else
11655  with_gnu_ld=no
11656fi
11657
11658ac_prog=ld
11659if test "$GCC" = yes; then
11660  # Check if gcc -print-prog-name=ld gives a path.
11661  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11662echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11663  case $host in
11664  *-*-mingw*)
11665    # gcc leaves a trailing carriage return which upsets mingw
11666    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11667  *)
11668    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11669  esac
11670  case $ac_prog in
11671    # Accept absolute paths.
11672    [\\/]* | ?:[\\/]*)
11673      re_direlt='/[^/][^/]*/\.\./'
11674      # Canonicalize the pathname of ld
11675      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11676      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11677	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11678      done
11679      test -z "$LD" && LD="$ac_prog"
11680      ;;
11681  "")
11682    # If it fails, then pretend we aren't using GCC.
11683    ac_prog=ld
11684    ;;
11685  *)
11686    # If it is relative, then search for the first ld in PATH.
11687    with_gnu_ld=unknown
11688    ;;
11689  esac
11690elif test "$with_gnu_ld" = yes; then
11691  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11692echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11693else
11694  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11695echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11696fi
11697if test "${lt_cv_path_LD+set}" = set; then
11698  echo $ECHO_N "(cached) $ECHO_C" >&6
11699else
11700  if test -z "$LD"; then
11701  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11702  for ac_dir in $PATH; do
11703    IFS="$lt_save_ifs"
11704    test -z "$ac_dir" && ac_dir=.
11705    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11706      lt_cv_path_LD="$ac_dir/$ac_prog"
11707      # Check to see if the program is GNU ld.  I'd rather use --version,
11708      # but apparently some variants of GNU ld only accept -v.
11709      # Break only if it was the GNU/non-GNU ld that we prefer.
11710      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11711      *GNU* | *'with BFD'*)
11712	test "$with_gnu_ld" != no && break
11713	;;
11714      *)
11715	test "$with_gnu_ld" != yes && break
11716	;;
11717      esac
11718    fi
11719  done
11720  IFS="$lt_save_ifs"
11721else
11722  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11723fi
11724fi
11725
11726LD="$lt_cv_path_LD"
11727if test -n "$LD"; then
11728  { echo "$as_me:$LINENO: result: $LD" >&5
11729echo "${ECHO_T}$LD" >&6; }
11730else
11731  { echo "$as_me:$LINENO: result: no" >&5
11732echo "${ECHO_T}no" >&6; }
11733fi
11734test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11735echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11736   { (exit 1); exit 1; }; }
11737{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11738echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11739if test "${lt_cv_prog_gnu_ld+set}" = set; then
11740  echo $ECHO_N "(cached) $ECHO_C" >&6
11741else
11742  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11743case `$LD -v 2>&1 </dev/null` in
11744*GNU* | *'with BFD'*)
11745  lt_cv_prog_gnu_ld=yes
11746  ;;
11747*)
11748  lt_cv_prog_gnu_ld=no
11749  ;;
11750esac
11751fi
11752{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11753echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11754with_gnu_ld=$lt_cv_prog_gnu_ld
11755
11756
11757
11758  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11759  # archiving commands below assume that GNU ld is being used.
11760  if test "$with_gnu_ld" = yes; then
11761    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11762    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11763
11764    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11765    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11766
11767    # If archive_cmds runs LD, not CC, wlarc should be empty
11768    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11769    #     investigate it a little bit more. (MM)
11770    wlarc='${wl}'
11771
11772    # ancient GNU ld didn't support --whole-archive et. al.
11773    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11774	grep 'no-whole-archive' > /dev/null; then
11775      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11776    else
11777      whole_archive_flag_spec_CXX=
11778    fi
11779  else
11780    with_gnu_ld=no
11781    wlarc=
11782
11783    # A generic and very simple default shared library creation
11784    # command for GNU C++ for the case where it uses the native
11785    # linker, instead of GNU ld.  If possible, this setting should
11786    # overridden to take advantage of the native linker features on
11787    # the platform it is being used on.
11788    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11789  fi
11790
11791  # Commands to make compiler produce verbose output that lists
11792  # what "hidden" libraries, object files and flags are used when
11793  # linking a shared library.
11794  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11795
11796else
11797  GXX=no
11798  with_gnu_ld=no
11799  wlarc=
11800fi
11801
11802# PORTME: fill in a description of your system's C++ link characteristics
11803{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11804echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11805ld_shlibs_CXX=yes
11806case $host_os in
11807  aix3*)
11808    # FIXME: insert proper C++ library support
11809    ld_shlibs_CXX=no
11810    ;;
11811  aix[4-9]*)
11812    if test "$host_cpu" = ia64; then
11813      # On IA64, the linker does run time linking by default, so we don't
11814      # have to do anything special.
11815      aix_use_runtimelinking=no
11816      exp_sym_flag='-Bexport'
11817      no_entry_flag=""
11818    else
11819      aix_use_runtimelinking=no
11820
11821      # Test if we are trying to use run time linking or normal
11822      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11823      # need to do runtime linking.
11824      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11825	for ld_flag in $LDFLAGS; do
11826	  case $ld_flag in
11827	  *-brtl*)
11828	    aix_use_runtimelinking=yes
11829	    break
11830	    ;;
11831	  esac
11832	done
11833	;;
11834      esac
11835
11836      exp_sym_flag='-bexport'
11837      no_entry_flag='-bnoentry'
11838    fi
11839
11840    # When large executables or shared objects are built, AIX ld can
11841    # have problems creating the table of contents.  If linking a library
11842    # or program results in "error TOC overflow" add -mminimal-toc to
11843    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11844    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11845
11846    archive_cmds_CXX=''
11847    hardcode_direct_CXX=yes
11848    hardcode_libdir_separator_CXX=':'
11849    link_all_deplibs_CXX=yes
11850
11851    if test "$GXX" = yes; then
11852      case $host_os in aix4.[012]|aix4.[012].*)
11853      # We only want to do this on AIX 4.2 and lower, the check
11854      # below for broken collect2 doesn't work under 4.3+
11855	collect2name=`${CC} -print-prog-name=collect2`
11856	if test -f "$collect2name" && \
11857	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11858	then
11859	  # We have reworked collect2
11860	  :
11861	else
11862	  # We have old collect2
11863	  hardcode_direct_CXX=unsupported
11864	  # It fails to find uninstalled libraries when the uninstalled
11865	  # path is not listed in the libpath.  Setting hardcode_minus_L
11866	  # to unsupported forces relinking
11867	  hardcode_minus_L_CXX=yes
11868	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11869	  hardcode_libdir_separator_CXX=
11870	fi
11871	;;
11872      esac
11873      shared_flag='-shared'
11874      if test "$aix_use_runtimelinking" = yes; then
11875	shared_flag="$shared_flag "'${wl}-G'
11876      fi
11877    else
11878      # not using gcc
11879      if test "$host_cpu" = ia64; then
11880	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11881	# chokes on -Wl,-G. The following line is correct:
11882	shared_flag='-G'
11883      else
11884	if test "$aix_use_runtimelinking" = yes; then
11885	  shared_flag='${wl}-G'
11886	else
11887	  shared_flag='${wl}-bM:SRE'
11888	fi
11889      fi
11890    fi
11891
11892    # It seems that -bexpall does not export symbols beginning with
11893    # underscore (_), so it is better to generate a list of symbols to export.
11894    always_export_symbols_CXX=yes
11895    if test "$aix_use_runtimelinking" = yes; then
11896      # Warning - without using the other runtime loading flags (-brtl),
11897      # -berok will link without error, but may produce a broken library.
11898      allow_undefined_flag_CXX='-berok'
11899      # Determine the default libpath from the value encoded in an empty executable.
11900      cat >conftest.$ac_ext <<_ACEOF
11901/* confdefs.h.  */
11902_ACEOF
11903cat confdefs.h >>conftest.$ac_ext
11904cat >>conftest.$ac_ext <<_ACEOF
11905/* end confdefs.h.  */
11906
11907int
11908main ()
11909{
11910
11911  ;
11912  return 0;
11913}
11914_ACEOF
11915rm -f conftest.$ac_objext conftest$ac_exeext
11916if { (ac_try="$ac_link"
11917case "(($ac_try" in
11918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919  *) ac_try_echo=$ac_try;;
11920esac
11921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922  (eval "$ac_link") 2>conftest.er1
11923  ac_status=$?
11924  grep -v '^ *+' conftest.er1 >conftest.err
11925  rm -f conftest.er1
11926  cat conftest.err >&5
11927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928  (exit $ac_status); } && {
11929	 test -z "$ac_cxx_werror_flag" ||
11930	 test ! -s conftest.err
11931       } && test -s conftest$ac_exeext &&
11932       $as_test_x conftest$ac_exeext; then
11933
11934lt_aix_libpath_sed='
11935    /Import File Strings/,/^$/ {
11936	/^0/ {
11937	    s/^0  *\(.*\)$/\1/
11938	    p
11939	}
11940    }'
11941aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11942# Check for a 64-bit object if we didn't find anything.
11943if test -z "$aix_libpath"; then
11944  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11945fi
11946else
11947  echo "$as_me: failed program was:" >&5
11948sed 's/^/| /' conftest.$ac_ext >&5
11949
11950
11951fi
11952
11953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11954      conftest$ac_exeext conftest.$ac_ext
11955if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11956
11957      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11958
11959      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11960     else
11961      if test "$host_cpu" = ia64; then
11962	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11963	allow_undefined_flag_CXX="-z nodefs"
11964	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11965      else
11966	# Determine the default libpath from the value encoded in an empty executable.
11967	cat >conftest.$ac_ext <<_ACEOF
11968/* confdefs.h.  */
11969_ACEOF
11970cat confdefs.h >>conftest.$ac_ext
11971cat >>conftest.$ac_ext <<_ACEOF
11972/* end confdefs.h.  */
11973
11974int
11975main ()
11976{
11977
11978  ;
11979  return 0;
11980}
11981_ACEOF
11982rm -f conftest.$ac_objext conftest$ac_exeext
11983if { (ac_try="$ac_link"
11984case "(($ac_try" in
11985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986  *) ac_try_echo=$ac_try;;
11987esac
11988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989  (eval "$ac_link") 2>conftest.er1
11990  ac_status=$?
11991  grep -v '^ *+' conftest.er1 >conftest.err
11992  rm -f conftest.er1
11993  cat conftest.err >&5
11994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995  (exit $ac_status); } && {
11996	 test -z "$ac_cxx_werror_flag" ||
11997	 test ! -s conftest.err
11998       } && test -s conftest$ac_exeext &&
11999       $as_test_x conftest$ac_exeext; then
12000
12001lt_aix_libpath_sed='
12002    /Import File Strings/,/^$/ {
12003	/^0/ {
12004	    s/^0  *\(.*\)$/\1/
12005	    p
12006	}
12007    }'
12008aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12009# Check for a 64-bit object if we didn't find anything.
12010if test -z "$aix_libpath"; then
12011  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12012fi
12013else
12014  echo "$as_me: failed program was:" >&5
12015sed 's/^/| /' conftest.$ac_ext >&5
12016
12017
12018fi
12019
12020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12021      conftest$ac_exeext conftest.$ac_ext
12022if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12023
12024	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12025	# Warning - without using the other run time loading flags,
12026	# -berok will link without error, but may produce a broken library.
12027	no_undefined_flag_CXX=' ${wl}-bernotok'
12028	allow_undefined_flag_CXX=' ${wl}-berok'
12029	# Exported symbols can be pulled into shared objects from archives
12030	whole_archive_flag_spec_CXX='$convenience'
12031	archive_cmds_need_lc_CXX=yes
12032	# This is similar to how AIX traditionally builds its shared libraries.
12033	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12034      fi
12035    fi
12036    ;;
12037
12038  beos*)
12039    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12040      allow_undefined_flag_CXX=unsupported
12041      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12042      # support --undefined.  This deserves some investigation.  FIXME
12043      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12044    else
12045      ld_shlibs_CXX=no
12046    fi
12047    ;;
12048
12049  chorus*)
12050    case $cc_basename in
12051      *)
12052	# FIXME: insert proper C++ library support
12053	ld_shlibs_CXX=no
12054	;;
12055    esac
12056    ;;
12057
12058  cygwin* | mingw* | pw32*)
12059    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12060    # as there is no search path for DLLs.
12061    hardcode_libdir_flag_spec_CXX='-L$libdir'
12062    allow_undefined_flag_CXX=unsupported
12063    always_export_symbols_CXX=no
12064    enable_shared_with_static_runtimes_CXX=yes
12065
12066    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12067      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12068      # If the export-symbols file already is a .def file (1st line
12069      # is EXPORTS), use it as is; otherwise, prepend...
12070      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12071	cp $export_symbols $output_objdir/$soname.def;
12072      else
12073	echo EXPORTS > $output_objdir/$soname.def;
12074	cat $export_symbols >> $output_objdir/$soname.def;
12075      fi~
12076      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12077    else
12078      ld_shlibs_CXX=no
12079    fi
12080  ;;
12081      darwin* | rhapsody*)
12082      archive_cmds_need_lc_CXX=no
12083      hardcode_direct_CXX=no
12084      hardcode_automatic_CXX=yes
12085      hardcode_shlibpath_var_CXX=unsupported
12086      whole_archive_flag_spec_CXX=''
12087      link_all_deplibs_CXX=yes
12088      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12089      if test "$GXX" = yes ; then
12090      output_verbose_link_cmd='echo'
12091      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12092      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12093      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12094      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12095      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12096        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12097        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12098      fi
12099      else
12100      case $cc_basename in
12101        xlc*)
12102         output_verbose_link_cmd='echo'
12103          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12104          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12105          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12106          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12107          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12108          ;;
12109       *)
12110         ld_shlibs_CXX=no
12111          ;;
12112      esac
12113      fi
12114        ;;
12115
12116  dgux*)
12117    case $cc_basename in
12118      ec++*)
12119	# FIXME: insert proper C++ library support
12120	ld_shlibs_CXX=no
12121	;;
12122      ghcx*)
12123	# Green Hills C++ Compiler
12124	# FIXME: insert proper C++ library support
12125	ld_shlibs_CXX=no
12126	;;
12127      *)
12128	# FIXME: insert proper C++ library support
12129	ld_shlibs_CXX=no
12130	;;
12131    esac
12132    ;;
12133  freebsd[12]*)
12134    # C++ shared libraries reported to be fairly broken before switch to ELF
12135    ld_shlibs_CXX=no
12136    ;;
12137  freebsd-elf*)
12138    archive_cmds_need_lc_CXX=no
12139    ;;
12140  freebsd* | dragonfly*)
12141    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12142    # conventions
12143    ld_shlibs_CXX=yes
12144    ;;
12145  gnu*)
12146    ;;
12147  hpux9*)
12148    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12149    hardcode_libdir_separator_CXX=:
12150    export_dynamic_flag_spec_CXX='${wl}-E'
12151    hardcode_direct_CXX=yes
12152    hardcode_minus_L_CXX=yes # Not in the search PATH,
12153				# but as the default
12154				# location of the library.
12155
12156    case $cc_basename in
12157    CC*)
12158      # FIXME: insert proper C++ library support
12159      ld_shlibs_CXX=no
12160      ;;
12161    aCC*)
12162      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12163      # Commands to make compiler produce verbose output that lists
12164      # what "hidden" libraries, object files and flags are used when
12165      # linking a shared library.
12166      #
12167      # There doesn't appear to be a way to prevent this compiler from
12168      # explicitly linking system object files so we need to strip them
12169      # from the output so that they don't get included in the library
12170      # dependencies.
12171      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12172      ;;
12173    *)
12174      if test "$GXX" = yes; then
12175        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12176      else
12177        # FIXME: insert proper C++ library support
12178        ld_shlibs_CXX=no
12179      fi
12180      ;;
12181    esac
12182    ;;
12183  hpux10*|hpux11*)
12184    if test $with_gnu_ld = no; then
12185      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12186      hardcode_libdir_separator_CXX=:
12187
12188      case $host_cpu in
12189      hppa*64*|ia64*) ;;
12190      *)
12191	export_dynamic_flag_spec_CXX='${wl}-E'
12192        ;;
12193      esac
12194    fi
12195    case $host_cpu in
12196    hppa*64*|ia64*)
12197      hardcode_direct_CXX=no
12198      hardcode_shlibpath_var_CXX=no
12199      ;;
12200    *)
12201      hardcode_direct_CXX=yes
12202      hardcode_minus_L_CXX=yes # Not in the search PATH,
12203					      # but as the default
12204					      # location of the library.
12205      ;;
12206    esac
12207
12208    case $cc_basename in
12209      CC*)
12210	# FIXME: insert proper C++ library support
12211	ld_shlibs_CXX=no
12212	;;
12213      aCC*)
12214	case $host_cpu in
12215	hppa*64*)
12216	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12217	  ;;
12218	ia64*)
12219	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12220	  ;;
12221	*)
12222	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12223	  ;;
12224	esac
12225	# Commands to make compiler produce verbose output that lists
12226	# what "hidden" libraries, object files and flags are used when
12227	# linking a shared library.
12228	#
12229	# There doesn't appear to be a way to prevent this compiler from
12230	# explicitly linking system object files so we need to strip them
12231	# from the output so that they don't get included in the library
12232	# dependencies.
12233	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12234	;;
12235      *)
12236	if test "$GXX" = yes; then
12237	  if test $with_gnu_ld = no; then
12238	    case $host_cpu in
12239	    hppa*64*)
12240	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12241	      ;;
12242	    ia64*)
12243	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12244	      ;;
12245	    *)
12246	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12247	      ;;
12248	    esac
12249	  fi
12250	else
12251	  # FIXME: insert proper C++ library support
12252	  ld_shlibs_CXX=no
12253	fi
12254	;;
12255    esac
12256    ;;
12257  interix[3-9]*)
12258    hardcode_direct_CXX=no
12259    hardcode_shlibpath_var_CXX=no
12260    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12261    export_dynamic_flag_spec_CXX='${wl}-E'
12262    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12263    # Instead, shared libraries are loaded at an image base (0x10000000 by
12264    # default) and relocated if they conflict, which is a slow very memory
12265    # consuming and fragmenting process.  To avoid this, we pick a random,
12266    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12267    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12268    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12269    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12270    ;;
12271  irix5* | irix6*)
12272    case $cc_basename in
12273      CC*)
12274	# SGI C++
12275	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12276
12277	# Archives containing C++ object files must be created using
12278	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12279	# necessary to make sure instantiated templates are included
12280	# in the archive.
12281	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12282	;;
12283      *)
12284	if test "$GXX" = yes; then
12285	  if test "$with_gnu_ld" = no; then
12286	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12287	  else
12288	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12289	  fi
12290	fi
12291	link_all_deplibs_CXX=yes
12292	;;
12293    esac
12294    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12295    hardcode_libdir_separator_CXX=:
12296    ;;
12297  linux* | k*bsd*-gnu)
12298    case $cc_basename in
12299      KCC*)
12300	# Kuck and Associates, Inc. (KAI) C++ Compiler
12301
12302	# KCC will only create a shared library if the output file
12303	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12304	# to its proper name (with version) after linking.
12305	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12306	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12307	# Commands to make compiler produce verbose output that lists
12308	# what "hidden" libraries, object files and flags are used when
12309	# linking a shared library.
12310	#
12311	# There doesn't appear to be a way to prevent this compiler from
12312	# explicitly linking system object files so we need to strip them
12313	# from the output so that they don't get included in the library
12314	# dependencies.
12315	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12316
12317	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12318	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12319
12320	# Archives containing C++ object files must be created using
12321	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12322	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12323	;;
12324      icpc*)
12325	# Intel C++
12326	with_gnu_ld=yes
12327	# version 8.0 and above of icpc choke on multiply defined symbols
12328	# if we add $predep_objects and $postdep_objects, however 7.1 and
12329	# earlier do not add the objects themselves.
12330	case `$CC -V 2>&1` in
12331	*"Version 7."*)
12332  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12333  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12334	  ;;
12335	*)  # Version 8.0 or newer
12336	  tmp_idyn=
12337	  case $host_cpu in
12338	    ia64*) tmp_idyn=' -i_dynamic';;
12339	  esac
12340  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12341	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12342	  ;;
12343	esac
12344	archive_cmds_need_lc_CXX=no
12345	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12346	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12347	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12348	;;
12349      pgCC* | pgcpp*)
12350        # Portland Group C++ compiler
12351	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12352  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12353
12354	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12355	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12356	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12357        ;;
12358      cxx*)
12359	# Compaq C++
12360	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12361	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12362
12363	runpath_var=LD_RUN_PATH
12364	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12365	hardcode_libdir_separator_CXX=:
12366
12367	# Commands to make compiler produce verbose output that lists
12368	# what "hidden" libraries, object files and flags are used when
12369	# linking a shared library.
12370	#
12371	# There doesn't appear to be a way to prevent this compiler from
12372	# explicitly linking system object files so we need to strip them
12373	# from the output so that they don't get included in the library
12374	# dependencies.
12375	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12376	;;
12377      *)
12378	case `$CC -V 2>&1 | sed 5q` in
12379	*Sun\ C*)
12380	  # Sun C++ 5.9
12381	  no_undefined_flag_CXX=' -zdefs'
12382	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12383	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12384	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12385	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12386
12387	  # Not sure whether something based on
12388	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12389	  # would be better.
12390	  output_verbose_link_cmd='echo'
12391
12392	  # Archives containing C++ object files must be created using
12393	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12394	  # necessary to make sure instantiated templates are included
12395	  # in the archive.
12396	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12397	  ;;
12398	esac
12399	;;
12400    esac
12401    ;;
12402  lynxos*)
12403    # FIXME: insert proper C++ library support
12404    ld_shlibs_CXX=no
12405    ;;
12406  m88k*)
12407    # FIXME: insert proper C++ library support
12408    ld_shlibs_CXX=no
12409    ;;
12410  mvs*)
12411    case $cc_basename in
12412      cxx*)
12413	# FIXME: insert proper C++ library support
12414	ld_shlibs_CXX=no
12415	;;
12416      *)
12417	# FIXME: insert proper C++ library support
12418	ld_shlibs_CXX=no
12419	;;
12420    esac
12421    ;;
12422  netbsd* | netbsdelf*-gnu)
12423    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12424      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12425      wlarc=
12426      hardcode_libdir_flag_spec_CXX='-R$libdir'
12427      hardcode_direct_CXX=yes
12428      hardcode_shlibpath_var_CXX=no
12429    fi
12430    # Workaround some broken pre-1.5 toolchains
12431    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12432    ;;
12433  openbsd2*)
12434    # C++ shared libraries are fairly broken
12435    ld_shlibs_CXX=no
12436    ;;
12437  openbsd*)
12438    if test -f /usr/libexec/ld.so; then
12439      hardcode_direct_CXX=yes
12440      hardcode_shlibpath_var_CXX=no
12441      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12442      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12443      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12444	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12445	export_dynamic_flag_spec_CXX='${wl}-E'
12446	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12447      fi
12448      output_verbose_link_cmd='echo'
12449    else
12450      ld_shlibs_CXX=no
12451    fi
12452    ;;
12453  osf3*)
12454    case $cc_basename in
12455      KCC*)
12456	# Kuck and Associates, Inc. (KAI) C++ Compiler
12457
12458	# KCC will only create a shared library if the output file
12459	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12460	# to its proper name (with version) after linking.
12461	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12462
12463	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12464	hardcode_libdir_separator_CXX=:
12465
12466	# Archives containing C++ object files must be created using
12467	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12468	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12469
12470	;;
12471      RCC*)
12472	# Rational C++ 2.4.1
12473	# FIXME: insert proper C++ library support
12474	ld_shlibs_CXX=no
12475	;;
12476      cxx*)
12477	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12478	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12479
12480	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12481	hardcode_libdir_separator_CXX=:
12482
12483	# Commands to make compiler produce verbose output that lists
12484	# what "hidden" libraries, object files and flags are used when
12485	# linking a shared library.
12486	#
12487	# There doesn't appear to be a way to prevent this compiler from
12488	# explicitly linking system object files so we need to strip them
12489	# from the output so that they don't get included in the library
12490	# dependencies.
12491	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12492	;;
12493      *)
12494	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12495	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12496	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12497
12498	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12499	  hardcode_libdir_separator_CXX=:
12500
12501	  # Commands to make compiler produce verbose output that lists
12502	  # what "hidden" libraries, object files and flags are used when
12503	  # linking a shared library.
12504	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12505
12506	else
12507	  # FIXME: insert proper C++ library support
12508	  ld_shlibs_CXX=no
12509	fi
12510	;;
12511    esac
12512    ;;
12513  osf4* | osf5*)
12514    case $cc_basename in
12515      KCC*)
12516	# Kuck and Associates, Inc. (KAI) C++ Compiler
12517
12518	# KCC will only create a shared library if the output file
12519	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12520	# to its proper name (with version) after linking.
12521	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12522
12523	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12524	hardcode_libdir_separator_CXX=:
12525
12526	# Archives containing C++ object files must be created using
12527	# the KAI C++ compiler.
12528	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12529	;;
12530      RCC*)
12531	# Rational C++ 2.4.1
12532	# FIXME: insert proper C++ library support
12533	ld_shlibs_CXX=no
12534	;;
12535      cxx*)
12536	allow_undefined_flag_CXX=' -expect_unresolved \*'
12537	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12538	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12539	  echo "-hidden">> $lib.exp~
12540	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12541	  $rm $lib.exp'
12542
12543	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12544	hardcode_libdir_separator_CXX=:
12545
12546	# Commands to make compiler produce verbose output that lists
12547	# what "hidden" libraries, object files and flags are used when
12548	# linking a shared library.
12549	#
12550	# There doesn't appear to be a way to prevent this compiler from
12551	# explicitly linking system object files so we need to strip them
12552	# from the output so that they don't get included in the library
12553	# dependencies.
12554	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12555	;;
12556      *)
12557	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12558	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12559	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12560
12561	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12562	  hardcode_libdir_separator_CXX=:
12563
12564	  # Commands to make compiler produce verbose output that lists
12565	  # what "hidden" libraries, object files and flags are used when
12566	  # linking a shared library.
12567	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12568
12569	else
12570	  # FIXME: insert proper C++ library support
12571	  ld_shlibs_CXX=no
12572	fi
12573	;;
12574    esac
12575    ;;
12576  psos*)
12577    # FIXME: insert proper C++ library support
12578    ld_shlibs_CXX=no
12579    ;;
12580  sunos4*)
12581    case $cc_basename in
12582      CC*)
12583	# Sun C++ 4.x
12584	# FIXME: insert proper C++ library support
12585	ld_shlibs_CXX=no
12586	;;
12587      lcc*)
12588	# Lucid
12589	# FIXME: insert proper C++ library support
12590	ld_shlibs_CXX=no
12591	;;
12592      *)
12593	# FIXME: insert proper C++ library support
12594	ld_shlibs_CXX=no
12595	;;
12596    esac
12597    ;;
12598  solaris*)
12599    case $cc_basename in
12600      CC*)
12601	# Sun C++ 4.2, 5.x and Centerline C++
12602        archive_cmds_need_lc_CXX=yes
12603	no_undefined_flag_CXX=' -zdefs'
12604	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12605	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12606	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12607
12608	hardcode_libdir_flag_spec_CXX='-R$libdir'
12609	hardcode_shlibpath_var_CXX=no
12610	case $host_os in
12611	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12612	  *)
12613	    # The compiler driver will combine and reorder linker options,
12614	    # but understands `-z linker_flag'.
12615	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12616	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12617	    ;;
12618	esac
12619	link_all_deplibs_CXX=yes
12620
12621	output_verbose_link_cmd='echo'
12622
12623	# Archives containing C++ object files must be created using
12624	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12625	# necessary to make sure instantiated templates are included
12626	# in the archive.
12627	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12628	;;
12629      gcx*)
12630	# Green Hills C++ Compiler
12631	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12632
12633	# The C++ compiler must be used to create the archive.
12634	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12635	;;
12636      *)
12637	# GNU C++ compiler with Solaris linker
12638	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12639	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12640	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12641	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12642	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12643		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12644
12645	    # Commands to make compiler produce verbose output that lists
12646	    # what "hidden" libraries, object files and flags are used when
12647	    # linking a shared library.
12648	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12649	  else
12650	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12651	    # platform.
12652	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12653	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12654		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12655
12656	    # Commands to make compiler produce verbose output that lists
12657	    # what "hidden" libraries, object files and flags are used when
12658	    # linking a shared library.
12659	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12660	  fi
12661
12662	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12663	  case $host_os in
12664	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12665	  *)
12666	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12667	    ;;
12668	  esac
12669	fi
12670	;;
12671    esac
12672    ;;
12673  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12674    no_undefined_flag_CXX='${wl}-z,text'
12675    archive_cmds_need_lc_CXX=no
12676    hardcode_shlibpath_var_CXX=no
12677    runpath_var='LD_RUN_PATH'
12678
12679    case $cc_basename in
12680      CC*)
12681	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12682	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12683	;;
12684      *)
12685	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12686	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12687	;;
12688    esac
12689    ;;
12690  sysv5* | sco3.2v5* | sco5v6*)
12691    # Note: We can NOT use -z defs as we might desire, because we do not
12692    # link with -lc, and that would cause any symbols used from libc to
12693    # always be unresolved, which means just about no library would
12694    # ever link correctly.  If we're not using GNU ld we use -z text
12695    # though, which does catch some bad symbols but isn't as heavy-handed
12696    # as -z defs.
12697    # For security reasons, it is highly recommended that you always
12698    # use absolute paths for naming shared libraries, and exclude the
12699    # DT_RUNPATH tag from executables and libraries.  But doing so
12700    # requires that you compile everything twice, which is a pain.
12701    # So that behaviour is only enabled if SCOABSPATH is set to a
12702    # non-empty value in the environment.  Most likely only useful for
12703    # creating official distributions of packages.
12704    # This is a hack until libtool officially supports absolute path
12705    # names for shared libraries.
12706    no_undefined_flag_CXX='${wl}-z,text'
12707    allow_undefined_flag_CXX='${wl}-z,nodefs'
12708    archive_cmds_need_lc_CXX=no
12709    hardcode_shlibpath_var_CXX=no
12710    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12711    hardcode_libdir_separator_CXX=':'
12712    link_all_deplibs_CXX=yes
12713    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12714    runpath_var='LD_RUN_PATH'
12715
12716    case $cc_basename in
12717      CC*)
12718	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12719	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12720	;;
12721      *)
12722	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12723	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12724	;;
12725    esac
12726    ;;
12727  tandem*)
12728    case $cc_basename in
12729      NCC*)
12730	# NonStop-UX NCC 3.20
12731	# FIXME: insert proper C++ library support
12732	ld_shlibs_CXX=no
12733	;;
12734      *)
12735	# FIXME: insert proper C++ library support
12736	ld_shlibs_CXX=no
12737	;;
12738    esac
12739    ;;
12740  vxworks*)
12741    # FIXME: insert proper C++ library support
12742    ld_shlibs_CXX=no
12743    ;;
12744  *)
12745    # FIXME: insert proper C++ library support
12746    ld_shlibs_CXX=no
12747    ;;
12748esac
12749{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12750echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12751test "$ld_shlibs_CXX" = no && can_build_shared=no
12752
12753GCC_CXX="$GXX"
12754LD_CXX="$LD"
12755
12756cat > conftest.$ac_ext <<EOF
12757class Foo
12758{
12759public:
12760  Foo (void) { a = 0; }
12761private:
12762  int a;
12763};
12764EOF
12765
12766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12767  (eval $ac_compile) 2>&5
12768  ac_status=$?
12769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770  (exit $ac_status); }; then
12771  # Parse the compiler output and extract the necessary
12772  # objects, libraries and library flags.
12773
12774  # Sentinel used to keep track of whether or not we are before
12775  # the conftest object file.
12776  pre_test_object_deps_done=no
12777
12778  # The `*' in the case matches for architectures that use `case' in
12779  # $output_verbose_cmd can trigger glob expansion during the loop
12780  # eval without this substitution.
12781  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12782
12783  for p in `eval $output_verbose_link_cmd`; do
12784    case $p in
12785
12786    -L* | -R* | -l*)
12787       # Some compilers place space between "-{L,R}" and the path.
12788       # Remove the space.
12789       if test $p = "-L" \
12790	  || test $p = "-R"; then
12791	 prev=$p
12792	 continue
12793       else
12794	 prev=
12795       fi
12796
12797       if test "$pre_test_object_deps_done" = no; then
12798	 case $p in
12799	 -L* | -R*)
12800	   # Internal compiler library paths should come after those
12801	   # provided the user.  The postdeps already come after the
12802	   # user supplied libs so there is no need to process them.
12803	   if test -z "$compiler_lib_search_path_CXX"; then
12804	     compiler_lib_search_path_CXX="${prev}${p}"
12805	   else
12806	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12807	   fi
12808	   ;;
12809	 # The "-l" case would never come before the object being
12810	 # linked, so don't bother handling this case.
12811	 esac
12812       else
12813	 if test -z "$postdeps_CXX"; then
12814	   postdeps_CXX="${prev}${p}"
12815	 else
12816	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12817	 fi
12818       fi
12819       ;;
12820
12821    *.$objext)
12822       # This assumes that the test object file only shows up
12823       # once in the compiler output.
12824       if test "$p" = "conftest.$objext"; then
12825	 pre_test_object_deps_done=yes
12826	 continue
12827       fi
12828
12829       if test "$pre_test_object_deps_done" = no; then
12830	 if test -z "$predep_objects_CXX"; then
12831	   predep_objects_CXX="$p"
12832	 else
12833	   predep_objects_CXX="$predep_objects_CXX $p"
12834	 fi
12835       else
12836	 if test -z "$postdep_objects_CXX"; then
12837	   postdep_objects_CXX="$p"
12838	 else
12839	   postdep_objects_CXX="$postdep_objects_CXX $p"
12840	 fi
12841       fi
12842       ;;
12843
12844    *) ;; # Ignore the rest.
12845
12846    esac
12847  done
12848
12849  # Clean up.
12850  rm -f a.out a.exe
12851else
12852  echo "libtool.m4: error: problem compiling CXX test program"
12853fi
12854
12855$rm -f confest.$objext
12856
12857compiler_lib_search_dirs_CXX=
12858if test -n "$compiler_lib_search_path_CXX"; then
12859  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12860fi
12861
12862# PORTME: override above test on systems where it is broken
12863case $host_os in
12864interix[3-9]*)
12865  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12866  # hack all around it, let's just trust "g++" to DTRT.
12867  predep_objects_CXX=
12868  postdep_objects_CXX=
12869  postdeps_CXX=
12870  ;;
12871
12872linux*)
12873  case `$CC -V 2>&1 | sed 5q` in
12874  *Sun\ C*)
12875    # Sun C++ 5.9
12876    #
12877    # The more standards-conforming stlport4 library is
12878    # incompatible with the Cstd library. Avoid specifying
12879    # it if it's in CXXFLAGS. Ignore libCrun as
12880    # -library=stlport4 depends on it.
12881    case " $CXX $CXXFLAGS " in
12882    *" -library=stlport4 "*)
12883      solaris_use_stlport4=yes
12884      ;;
12885    esac
12886    if test "$solaris_use_stlport4" != yes; then
12887      postdeps_CXX='-library=Cstd -library=Crun'
12888    fi
12889    ;;
12890  esac
12891  ;;
12892
12893solaris*)
12894  case $cc_basename in
12895  CC*)
12896    # The more standards-conforming stlport4 library is
12897    # incompatible with the Cstd library. Avoid specifying
12898    # it if it's in CXXFLAGS. Ignore libCrun as
12899    # -library=stlport4 depends on it.
12900    case " $CXX $CXXFLAGS " in
12901    *" -library=stlport4 "*)
12902      solaris_use_stlport4=yes
12903      ;;
12904    esac
12905
12906    # Adding this requires a known-good setup of shared libraries for
12907    # Sun compiler versions before 5.6, else PIC objects from an old
12908    # archive will be linked into the output, leading to subtle bugs.
12909    if test "$solaris_use_stlport4" != yes; then
12910      postdeps_CXX='-library=Cstd -library=Crun'
12911    fi
12912    ;;
12913  esac
12914  ;;
12915esac
12916
12917case " $postdeps_CXX " in
12918*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12919esac
12920
12921lt_prog_compiler_wl_CXX=
12922lt_prog_compiler_pic_CXX=
12923lt_prog_compiler_static_CXX=
12924
12925{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12926echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12927
12928  # C++ specific cases for pic, static, wl, etc.
12929  if test "$GXX" = yes; then
12930    lt_prog_compiler_wl_CXX='-Wl,'
12931    lt_prog_compiler_static_CXX='-static'
12932
12933    case $host_os in
12934    aix*)
12935      # All AIX code is PIC.
12936      if test "$host_cpu" = ia64; then
12937	# AIX 5 now supports IA64 processor
12938	lt_prog_compiler_static_CXX='-Bstatic'
12939      fi
12940      ;;
12941    amigaos*)
12942      # FIXME: we need at least 68020 code to build shared libraries, but
12943      # adding the `-m68020' flag to GCC prevents building anything better,
12944      # like `-m68040'.
12945      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12946      ;;
12947    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12948      # PIC is the default for these OSes.
12949      ;;
12950    mingw* | cygwin* | os2* | pw32*)
12951      # This hack is so that the source file can tell whether it is being
12952      # built for inclusion in a dll (and should export symbols for example).
12953      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12954      # (--disable-auto-import) libraries
12955      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12956      ;;
12957    darwin* | rhapsody*)
12958      # PIC is the default on this platform
12959      # Common symbols not allowed in MH_DYLIB files
12960      lt_prog_compiler_pic_CXX='-fno-common'
12961      ;;
12962    *djgpp*)
12963      # DJGPP does not support shared libraries at all
12964      lt_prog_compiler_pic_CXX=
12965      ;;
12966    interix[3-9]*)
12967      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12968      # Instead, we relocate shared libraries at runtime.
12969      ;;
12970    sysv4*MP*)
12971      if test -d /usr/nec; then
12972	lt_prog_compiler_pic_CXX=-Kconform_pic
12973      fi
12974      ;;
12975    hpux*)
12976      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12977      # not for PA HP-UX.
12978      case $host_cpu in
12979      hppa*64*|ia64*)
12980	;;
12981      *)
12982	lt_prog_compiler_pic_CXX='-fPIC'
12983	;;
12984      esac
12985      ;;
12986    *)
12987      lt_prog_compiler_pic_CXX='-fPIC'
12988      ;;
12989    esac
12990  else
12991    case $host_os in
12992      aix[4-9]*)
12993	# All AIX code is PIC.
12994	if test "$host_cpu" = ia64; then
12995	  # AIX 5 now supports IA64 processor
12996	  lt_prog_compiler_static_CXX='-Bstatic'
12997	else
12998	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12999	fi
13000	;;
13001      chorus*)
13002	case $cc_basename in
13003	cxch68*)
13004	  # Green Hills C++ Compiler
13005	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13006	  ;;
13007	esac
13008	;;
13009       darwin*)
13010         # PIC is the default on this platform
13011         # Common symbols not allowed in MH_DYLIB files
13012         case $cc_basename in
13013           xlc*)
13014           lt_prog_compiler_pic_CXX='-qnocommon'
13015           lt_prog_compiler_wl_CXX='-Wl,'
13016           ;;
13017         esac
13018       ;;
13019      dgux*)
13020	case $cc_basename in
13021	  ec++*)
13022	    lt_prog_compiler_pic_CXX='-KPIC'
13023	    ;;
13024	  ghcx*)
13025	    # Green Hills C++ Compiler
13026	    lt_prog_compiler_pic_CXX='-pic'
13027	    ;;
13028	  *)
13029	    ;;
13030	esac
13031	;;
13032      freebsd* | dragonfly*)
13033	# FreeBSD uses GNU C++
13034	;;
13035      hpux9* | hpux10* | hpux11*)
13036	case $cc_basename in
13037	  CC*)
13038	    lt_prog_compiler_wl_CXX='-Wl,'
13039	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13040	    if test "$host_cpu" != ia64; then
13041	      lt_prog_compiler_pic_CXX='+Z'
13042	    fi
13043	    ;;
13044	  aCC*)
13045	    lt_prog_compiler_wl_CXX='-Wl,'
13046	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13047	    case $host_cpu in
13048	    hppa*64*|ia64*)
13049	      # +Z the default
13050	      ;;
13051	    *)
13052	      lt_prog_compiler_pic_CXX='+Z'
13053	      ;;
13054	    esac
13055	    ;;
13056	  *)
13057	    ;;
13058	esac
13059	;;
13060      interix*)
13061	# This is c89, which is MS Visual C++ (no shared libs)
13062	# Anyone wants to do a port?
13063	;;
13064      irix5* | irix6* | nonstopux*)
13065	case $cc_basename in
13066	  CC*)
13067	    lt_prog_compiler_wl_CXX='-Wl,'
13068	    lt_prog_compiler_static_CXX='-non_shared'
13069	    # CC pic flag -KPIC is the default.
13070	    ;;
13071	  *)
13072	    ;;
13073	esac
13074	;;
13075      linux* | k*bsd*-gnu)
13076	case $cc_basename in
13077	  KCC*)
13078	    # KAI C++ Compiler
13079	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13080	    lt_prog_compiler_pic_CXX='-fPIC'
13081	    ;;
13082	  icpc* | ecpc*)
13083	    # Intel C++
13084	    lt_prog_compiler_wl_CXX='-Wl,'
13085	    lt_prog_compiler_pic_CXX='-KPIC'
13086	    lt_prog_compiler_static_CXX='-static'
13087	    ;;
13088	  pgCC* | pgcpp*)
13089	    # Portland Group C++ compiler.
13090	    lt_prog_compiler_wl_CXX='-Wl,'
13091	    lt_prog_compiler_pic_CXX='-fpic'
13092	    lt_prog_compiler_static_CXX='-Bstatic'
13093	    ;;
13094	  cxx*)
13095	    # Compaq C++
13096	    # Make sure the PIC flag is empty.  It appears that all Alpha
13097	    # Linux and Compaq Tru64 Unix objects are PIC.
13098	    lt_prog_compiler_pic_CXX=
13099	    lt_prog_compiler_static_CXX='-non_shared'
13100	    ;;
13101	  *)
13102	    case `$CC -V 2>&1 | sed 5q` in
13103	    *Sun\ C*)
13104	      # Sun C++ 5.9
13105	      lt_prog_compiler_pic_CXX='-KPIC'
13106	      lt_prog_compiler_static_CXX='-Bstatic'
13107	      lt_prog_compiler_wl_CXX='-Qoption ld '
13108	      ;;
13109	    esac
13110	    ;;
13111	esac
13112	;;
13113      lynxos*)
13114	;;
13115      m88k*)
13116	;;
13117      mvs*)
13118	case $cc_basename in
13119	  cxx*)
13120	    lt_prog_compiler_pic_CXX='-W c,exportall'
13121	    ;;
13122	  *)
13123	    ;;
13124	esac
13125	;;
13126      netbsd* | netbsdelf*-gnu)
13127	;;
13128      osf3* | osf4* | osf5*)
13129	case $cc_basename in
13130	  KCC*)
13131	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13132	    ;;
13133	  RCC*)
13134	    # Rational C++ 2.4.1
13135	    lt_prog_compiler_pic_CXX='-pic'
13136	    ;;
13137	  cxx*)
13138	    # Digital/Compaq C++
13139	    lt_prog_compiler_wl_CXX='-Wl,'
13140	    # Make sure the PIC flag is empty.  It appears that all Alpha
13141	    # Linux and Compaq Tru64 Unix objects are PIC.
13142	    lt_prog_compiler_pic_CXX=
13143	    lt_prog_compiler_static_CXX='-non_shared'
13144	    ;;
13145	  *)
13146	    ;;
13147	esac
13148	;;
13149      psos*)
13150	;;
13151      solaris*)
13152	case $cc_basename in
13153	  CC*)
13154	    # Sun C++ 4.2, 5.x and Centerline C++
13155	    lt_prog_compiler_pic_CXX='-KPIC'
13156	    lt_prog_compiler_static_CXX='-Bstatic'
13157	    lt_prog_compiler_wl_CXX='-Qoption ld '
13158	    ;;
13159	  gcx*)
13160	    # Green Hills C++ Compiler
13161	    lt_prog_compiler_pic_CXX='-PIC'
13162	    ;;
13163	  *)
13164	    ;;
13165	esac
13166	;;
13167      sunos4*)
13168	case $cc_basename in
13169	  CC*)
13170	    # Sun C++ 4.x
13171	    lt_prog_compiler_pic_CXX='-pic'
13172	    lt_prog_compiler_static_CXX='-Bstatic'
13173	    ;;
13174	  lcc*)
13175	    # Lucid
13176	    lt_prog_compiler_pic_CXX='-pic'
13177	    ;;
13178	  *)
13179	    ;;
13180	esac
13181	;;
13182      tandem*)
13183	case $cc_basename in
13184	  NCC*)
13185	    # NonStop-UX NCC 3.20
13186	    lt_prog_compiler_pic_CXX='-KPIC'
13187	    ;;
13188	  *)
13189	    ;;
13190	esac
13191	;;
13192      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13193	case $cc_basename in
13194	  CC*)
13195	    lt_prog_compiler_wl_CXX='-Wl,'
13196	    lt_prog_compiler_pic_CXX='-KPIC'
13197	    lt_prog_compiler_static_CXX='-Bstatic'
13198	    ;;
13199	esac
13200	;;
13201      vxworks*)
13202	;;
13203      *)
13204	lt_prog_compiler_can_build_shared_CXX=no
13205	;;
13206    esac
13207  fi
13208
13209{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13210echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13211
13212#
13213# Check to make sure the PIC flag actually works.
13214#
13215if test -n "$lt_prog_compiler_pic_CXX"; then
13216
13217{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13218echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13219if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13220  echo $ECHO_N "(cached) $ECHO_C" >&6
13221else
13222  lt_cv_prog_compiler_pic_works_CXX=no
13223  ac_outfile=conftest.$ac_objext
13224   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13225   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13226   # Insert the option either (1) after the last *FLAGS variable, or
13227   # (2) before a word containing "conftest.", or (3) at the end.
13228   # Note that $ac_compile itself does not contain backslashes and begins
13229   # with a dollar sign (not a hyphen), so the echo should work correctly.
13230   # The option is referenced via a variable to avoid confusing sed.
13231   lt_compile=`echo "$ac_compile" | $SED \
13232   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13233   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13234   -e 's:$: $lt_compiler_flag:'`
13235   (eval echo "\"\$as_me:13235: $lt_compile\"" >&5)
13236   (eval "$lt_compile" 2>conftest.err)
13237   ac_status=$?
13238   cat conftest.err >&5
13239   echo "$as_me:13239: \$? = $ac_status" >&5
13240   if (exit $ac_status) && test -s "$ac_outfile"; then
13241     # The compiler can only warn and ignore the option if not recognized
13242     # So say no if there are warnings other than the usual output.
13243     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13244     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13245     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13246       lt_cv_prog_compiler_pic_works_CXX=yes
13247     fi
13248   fi
13249   $rm conftest*
13250
13251fi
13252{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13253echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13254
13255if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13256    case $lt_prog_compiler_pic_CXX in
13257     "" | " "*) ;;
13258     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13259     esac
13260else
13261    lt_prog_compiler_pic_CXX=
13262     lt_prog_compiler_can_build_shared_CXX=no
13263fi
13264
13265fi
13266case $host_os in
13267  # For platforms which do not support PIC, -DPIC is meaningless:
13268  *djgpp*)
13269    lt_prog_compiler_pic_CXX=
13270    ;;
13271  *)
13272    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13273    ;;
13274esac
13275
13276#
13277# Check to make sure the static flag actually works.
13278#
13279wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13280{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13281echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13282if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13283  echo $ECHO_N "(cached) $ECHO_C" >&6
13284else
13285  lt_cv_prog_compiler_static_works_CXX=no
13286   save_LDFLAGS="$LDFLAGS"
13287   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13288   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13289   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13290     # The linker can only warn and ignore the option if not recognized
13291     # So say no if there are warnings
13292     if test -s conftest.err; then
13293       # Append any errors to the config.log.
13294       cat conftest.err 1>&5
13295       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13296       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13297       if diff conftest.exp conftest.er2 >/dev/null; then
13298         lt_cv_prog_compiler_static_works_CXX=yes
13299       fi
13300     else
13301       lt_cv_prog_compiler_static_works_CXX=yes
13302     fi
13303   fi
13304   $rm -r conftest*
13305   LDFLAGS="$save_LDFLAGS"
13306
13307fi
13308{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13309echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13310
13311if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13312    :
13313else
13314    lt_prog_compiler_static_CXX=
13315fi
13316
13317
13318{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13319echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13320if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13321  echo $ECHO_N "(cached) $ECHO_C" >&6
13322else
13323  lt_cv_prog_compiler_c_o_CXX=no
13324   $rm -r conftest 2>/dev/null
13325   mkdir conftest
13326   cd conftest
13327   mkdir out
13328   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13329
13330   lt_compiler_flag="-o out/conftest2.$ac_objext"
13331   # Insert the option either (1) after the last *FLAGS variable, or
13332   # (2) before a word containing "conftest.", or (3) at the end.
13333   # Note that $ac_compile itself does not contain backslashes and begins
13334   # with a dollar sign (not a hyphen), so the echo should work correctly.
13335   lt_compile=`echo "$ac_compile" | $SED \
13336   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13337   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13338   -e 's:$: $lt_compiler_flag:'`
13339   (eval echo "\"\$as_me:13339: $lt_compile\"" >&5)
13340   (eval "$lt_compile" 2>out/conftest.err)
13341   ac_status=$?
13342   cat out/conftest.err >&5
13343   echo "$as_me:13343: \$? = $ac_status" >&5
13344   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13345   then
13346     # The compiler can only warn and ignore the option if not recognized
13347     # So say no if there are warnings
13348     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13349     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13350     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13351       lt_cv_prog_compiler_c_o_CXX=yes
13352     fi
13353   fi
13354   chmod u+w . 2>&5
13355   $rm conftest*
13356   # SGI C++ compiler will create directory out/ii_files/ for
13357   # template instantiation
13358   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13359   $rm out/* && rmdir out
13360   cd ..
13361   rmdir conftest
13362   $rm conftest*
13363
13364fi
13365{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13366echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13367
13368
13369hard_links="nottested"
13370if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13371  # do not overwrite the value of need_locks provided by the user
13372  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13373echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13374  hard_links=yes
13375  $rm conftest*
13376  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13377  touch conftest.a
13378  ln conftest.a conftest.b 2>&5 || hard_links=no
13379  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13380  { echo "$as_me:$LINENO: result: $hard_links" >&5
13381echo "${ECHO_T}$hard_links" >&6; }
13382  if test "$hard_links" = no; then
13383    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13384echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13385    need_locks=warn
13386  fi
13387else
13388  need_locks=no
13389fi
13390
13391{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13392echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13393
13394  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13395  case $host_os in
13396  aix[4-9]*)
13397    # If we're using GNU nm, then we don't want the "-C" option.
13398    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13399    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13400      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13401    else
13402      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13403    fi
13404    ;;
13405  pw32*)
13406    export_symbols_cmds_CXX="$ltdll_cmds"
13407  ;;
13408  cygwin* | mingw*)
13409    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13410  ;;
13411  linux* | k*bsd*-gnu)
13412    link_all_deplibs_CXX=no
13413  ;;
13414  *)
13415    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13416  ;;
13417  esac
13418  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13419
13420{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13421echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13422test "$ld_shlibs_CXX" = no && can_build_shared=no
13423
13424#
13425# Do we need to explicitly link libc?
13426#
13427case "x$archive_cmds_need_lc_CXX" in
13428x|xyes)
13429  # Assume -lc should be added
13430  archive_cmds_need_lc_CXX=yes
13431
13432  if test "$enable_shared" = yes && test "$GCC" = yes; then
13433    case $archive_cmds_CXX in
13434    *'~'*)
13435      # FIXME: we may have to deal with multi-command sequences.
13436      ;;
13437    '$CC '*)
13438      # Test whether the compiler implicitly links with -lc since on some
13439      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13440      # to ld, don't add -lc before -lgcc.
13441      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13442echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13443      $rm conftest*
13444      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13445
13446      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13447  (eval $ac_compile) 2>&5
13448  ac_status=$?
13449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450  (exit $ac_status); } 2>conftest.err; then
13451        soname=conftest
13452        lib=conftest
13453        libobjs=conftest.$ac_objext
13454        deplibs=
13455        wl=$lt_prog_compiler_wl_CXX
13456	pic_flag=$lt_prog_compiler_pic_CXX
13457        compiler_flags=-v
13458        linker_flags=-v
13459        verstring=
13460        output_objdir=.
13461        libname=conftest
13462        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13463        allow_undefined_flag_CXX=
13464        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13465  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13466  ac_status=$?
13467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468  (exit $ac_status); }
13469        then
13470	  archive_cmds_need_lc_CXX=no
13471        else
13472	  archive_cmds_need_lc_CXX=yes
13473        fi
13474        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13475      else
13476        cat conftest.err 1>&5
13477      fi
13478      $rm conftest*
13479      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13480echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13481      ;;
13482    esac
13483  fi
13484  ;;
13485esac
13486
13487{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13488echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13489library_names_spec=
13490libname_spec='lib$name'
13491soname_spec=
13492shrext_cmds=".so"
13493postinstall_cmds=
13494postuninstall_cmds=
13495finish_cmds=
13496finish_eval=
13497shlibpath_var=
13498shlibpath_overrides_runpath=unknown
13499version_type=none
13500dynamic_linker="$host_os ld.so"
13501sys_lib_dlsearch_path_spec="/lib /usr/lib"
13502
13503need_lib_prefix=unknown
13504hardcode_into_libs=no
13505
13506# when you set need_version to no, make sure it does not cause -set_version
13507# flags to be left without arguments
13508need_version=unknown
13509
13510case $host_os in
13511aix3*)
13512  version_type=linux
13513  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13514  shlibpath_var=LIBPATH
13515
13516  # AIX 3 has no versioning support, so we append a major version to the name.
13517  soname_spec='${libname}${release}${shared_ext}$major'
13518  ;;
13519
13520aix[4-9]*)
13521  version_type=linux
13522  need_lib_prefix=no
13523  need_version=no
13524  hardcode_into_libs=yes
13525  if test "$host_cpu" = ia64; then
13526    # AIX 5 supports IA64
13527    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13528    shlibpath_var=LD_LIBRARY_PATH
13529  else
13530    # With GCC up to 2.95.x, collect2 would create an import file
13531    # for dependence libraries.  The import file would start with
13532    # the line `#! .'.  This would cause the generated library to
13533    # depend on `.', always an invalid library.  This was fixed in
13534    # development snapshots of GCC prior to 3.0.
13535    case $host_os in
13536      aix4 | aix4.[01] | aix4.[01].*)
13537      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13538	   echo ' yes '
13539	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13540	:
13541      else
13542	can_build_shared=no
13543      fi
13544      ;;
13545    esac
13546    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13547    # soname into executable. Probably we can add versioning support to
13548    # collect2, so additional links can be useful in future.
13549    if test "$aix_use_runtimelinking" = yes; then
13550      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13551      # instead of lib<name>.a to let people know that these are not
13552      # typical AIX shared libraries.
13553      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13554    else
13555      # We preserve .a as extension for shared libraries through AIX4.2
13556      # and later when we are not doing run time linking.
13557      library_names_spec='${libname}${release}.a $libname.a'
13558      soname_spec='${libname}${release}${shared_ext}$major'
13559    fi
13560    shlibpath_var=LIBPATH
13561  fi
13562  ;;
13563
13564amigaos*)
13565  library_names_spec='$libname.ixlibrary $libname.a'
13566  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13567  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13568  ;;
13569
13570beos*)
13571  library_names_spec='${libname}${shared_ext}'
13572  dynamic_linker="$host_os ld.so"
13573  shlibpath_var=LIBRARY_PATH
13574  ;;
13575
13576bsdi[45]*)
13577  version_type=linux
13578  need_version=no
13579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13580  soname_spec='${libname}${release}${shared_ext}$major'
13581  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13582  shlibpath_var=LD_LIBRARY_PATH
13583  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13584  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13585  # the default ld.so.conf also contains /usr/contrib/lib and
13586  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13587  # libtool to hard-code these into programs
13588  ;;
13589
13590cygwin* | mingw* | pw32*)
13591  version_type=windows
13592  shrext_cmds=".dll"
13593  need_version=no
13594  need_lib_prefix=no
13595
13596  case $GCC,$host_os in
13597  yes,cygwin* | yes,mingw* | yes,pw32*)
13598    library_names_spec='$libname.dll.a'
13599    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13600    postinstall_cmds='base_file=`basename \${file}`~
13601      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13602      dldir=$destdir/`dirname \$dlpath`~
13603      test -d \$dldir || mkdir -p \$dldir~
13604      $install_prog $dir/$dlname \$dldir/$dlname~
13605      chmod a+x \$dldir/$dlname'
13606    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13607      dlpath=$dir/\$dldll~
13608       $rm \$dlpath'
13609    shlibpath_overrides_runpath=yes
13610
13611    case $host_os in
13612    cygwin*)
13613      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13614      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13615      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13616      ;;
13617    mingw*)
13618      # MinGW DLLs use traditional 'lib' prefix
13619      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13620      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13621      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13622        # It is most probably a Windows format PATH printed by
13623        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13624        # path with ; separators, and with drive letters. We can handle the
13625        # drive letters (cygwin fileutils understands them), so leave them,
13626        # especially as we might pass files found there to a mingw objdump,
13627        # which wouldn't understand a cygwinified path. Ahh.
13628        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13629      else
13630        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13631      fi
13632      ;;
13633    pw32*)
13634      # pw32 DLLs use 'pw' prefix rather than 'lib'
13635      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13636      ;;
13637    esac
13638    ;;
13639
13640  *)
13641    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13642    ;;
13643  esac
13644  dynamic_linker='Win32 ld.exe'
13645  # FIXME: first we should search . and the directory the executable is in
13646  shlibpath_var=PATH
13647  ;;
13648
13649darwin* | rhapsody*)
13650  dynamic_linker="$host_os dyld"
13651  version_type=darwin
13652  need_lib_prefix=no
13653  need_version=no
13654  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13655  soname_spec='${libname}${release}${major}$shared_ext'
13656  shlibpath_overrides_runpath=yes
13657  shlibpath_var=DYLD_LIBRARY_PATH
13658  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13659
13660  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13661  ;;
13662
13663dgux*)
13664  version_type=linux
13665  need_lib_prefix=no
13666  need_version=no
13667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13668  soname_spec='${libname}${release}${shared_ext}$major'
13669  shlibpath_var=LD_LIBRARY_PATH
13670  ;;
13671
13672freebsd1*)
13673  dynamic_linker=no
13674  ;;
13675
13676freebsd* | dragonfly*)
13677  # DragonFly does not have aout.  When/if they implement a new
13678  # versioning mechanism, adjust this.
13679  if test -x /usr/bin/objformat; then
13680    objformat=`/usr/bin/objformat`
13681  else
13682    case $host_os in
13683    freebsd[123]*) objformat=aout ;;
13684    *) objformat=elf ;;
13685    esac
13686  fi
13687  version_type=freebsd-$objformat
13688  case $version_type in
13689    freebsd-elf*)
13690      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13691      need_version=no
13692      need_lib_prefix=no
13693      ;;
13694    freebsd-*)
13695      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13696      need_version=yes
13697      ;;
13698  esac
13699  shlibpath_var=LD_LIBRARY_PATH
13700  case $host_os in
13701  freebsd2*)
13702    shlibpath_overrides_runpath=yes
13703    ;;
13704  freebsd3.[01]* | freebsdelf3.[01]*)
13705    shlibpath_overrides_runpath=yes
13706    hardcode_into_libs=yes
13707    ;;
13708  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13709  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13710    shlibpath_overrides_runpath=no
13711    hardcode_into_libs=yes
13712    ;;
13713  *) # from 4.6 on, and DragonFly
13714    shlibpath_overrides_runpath=yes
13715    hardcode_into_libs=yes
13716    ;;
13717  esac
13718  ;;
13719
13720gnu*)
13721  version_type=linux
13722  need_lib_prefix=no
13723  need_version=no
13724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13725  soname_spec='${libname}${release}${shared_ext}$major'
13726  shlibpath_var=LD_LIBRARY_PATH
13727  hardcode_into_libs=yes
13728  ;;
13729
13730hpux9* | hpux10* | hpux11*)
13731  # Give a soname corresponding to the major version so that dld.sl refuses to
13732  # link against other versions.
13733  version_type=sunos
13734  need_lib_prefix=no
13735  need_version=no
13736  case $host_cpu in
13737  ia64*)
13738    shrext_cmds='.so'
13739    hardcode_into_libs=yes
13740    dynamic_linker="$host_os dld.so"
13741    shlibpath_var=LD_LIBRARY_PATH
13742    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13743    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13744    soname_spec='${libname}${release}${shared_ext}$major'
13745    if test "X$HPUX_IA64_MODE" = X32; then
13746      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13747    else
13748      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13749    fi
13750    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13751    ;;
13752   hppa*64*)
13753     shrext_cmds='.sl'
13754     hardcode_into_libs=yes
13755     dynamic_linker="$host_os dld.sl"
13756     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13757     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13758     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13759     soname_spec='${libname}${release}${shared_ext}$major'
13760     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13761     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13762     ;;
13763   *)
13764    shrext_cmds='.sl'
13765    dynamic_linker="$host_os dld.sl"
13766    shlibpath_var=SHLIB_PATH
13767    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13768    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13769    soname_spec='${libname}${release}${shared_ext}$major'
13770    ;;
13771  esac
13772  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13773  postinstall_cmds='chmod 555 $lib'
13774  ;;
13775
13776interix[3-9]*)
13777  version_type=linux
13778  need_lib_prefix=no
13779  need_version=no
13780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13781  soname_spec='${libname}${release}${shared_ext}$major'
13782  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13783  shlibpath_var=LD_LIBRARY_PATH
13784  shlibpath_overrides_runpath=no
13785  hardcode_into_libs=yes
13786  ;;
13787
13788irix5* | irix6* | nonstopux*)
13789  case $host_os in
13790    nonstopux*) version_type=nonstopux ;;
13791    *)
13792	if test "$lt_cv_prog_gnu_ld" = yes; then
13793		version_type=linux
13794	else
13795		version_type=irix
13796	fi ;;
13797  esac
13798  need_lib_prefix=no
13799  need_version=no
13800  soname_spec='${libname}${release}${shared_ext}$major'
13801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13802  case $host_os in
13803  irix5* | nonstopux*)
13804    libsuff= shlibsuff=
13805    ;;
13806  *)
13807    case $LD in # libtool.m4 will add one of these switches to LD
13808    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13809      libsuff= shlibsuff= libmagic=32-bit;;
13810    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13811      libsuff=32 shlibsuff=N32 libmagic=N32;;
13812    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13813      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13814    *) libsuff= shlibsuff= libmagic=never-match;;
13815    esac
13816    ;;
13817  esac
13818  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13819  shlibpath_overrides_runpath=no
13820  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13821  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13822  hardcode_into_libs=yes
13823  ;;
13824
13825# No shared lib support for Linux oldld, aout, or coff.
13826linux*oldld* | linux*aout* | linux*coff*)
13827  dynamic_linker=no
13828  ;;
13829
13830# This must be Linux ELF.
13831linux* | k*bsd*-gnu)
13832  version_type=linux
13833  need_lib_prefix=no
13834  need_version=no
13835  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13836  soname_spec='${libname}${release}${shared_ext}$major'
13837  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13838  shlibpath_var=LD_LIBRARY_PATH
13839  shlibpath_overrides_runpath=no
13840  # This implies no fast_install, which is unacceptable.
13841  # Some rework will be needed to allow for fast_install
13842  # before this can be enabled.
13843  hardcode_into_libs=yes
13844
13845  # Append ld.so.conf contents to the search path
13846  if test -f /etc/ld.so.conf; then
13847    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13848    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13849  fi
13850
13851  # We used to test for /lib/ld.so.1 and disable shared libraries on
13852  # powerpc, because MkLinux only supported shared libraries with the
13853  # GNU dynamic linker.  Since this was broken with cross compilers,
13854  # most powerpc-linux boxes support dynamic linking these days and
13855  # people can always --disable-shared, the test was removed, and we
13856  # assume the GNU/Linux dynamic linker is in use.
13857  dynamic_linker='GNU/Linux ld.so'
13858  ;;
13859
13860netbsdelf*-gnu)
13861  version_type=linux
13862  need_lib_prefix=no
13863  need_version=no
13864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13865  soname_spec='${libname}${release}${shared_ext}$major'
13866  shlibpath_var=LD_LIBRARY_PATH
13867  shlibpath_overrides_runpath=no
13868  hardcode_into_libs=yes
13869  dynamic_linker='NetBSD ld.elf_so'
13870  ;;
13871
13872netbsd*)
13873  version_type=sunos
13874  need_lib_prefix=no
13875  need_version=no
13876  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13877    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13878    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13879    dynamic_linker='NetBSD (a.out) ld.so'
13880  else
13881    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13882    soname_spec='${libname}${release}${shared_ext}$major'
13883    dynamic_linker='NetBSD ld.elf_so'
13884  fi
13885  shlibpath_var=LD_LIBRARY_PATH
13886  shlibpath_overrides_runpath=yes
13887  hardcode_into_libs=yes
13888  ;;
13889
13890newsos6)
13891  version_type=linux
13892  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13893  shlibpath_var=LD_LIBRARY_PATH
13894  shlibpath_overrides_runpath=yes
13895  ;;
13896
13897nto-qnx*)
13898  version_type=linux
13899  need_lib_prefix=no
13900  need_version=no
13901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13902  soname_spec='${libname}${release}${shared_ext}$major'
13903  shlibpath_var=LD_LIBRARY_PATH
13904  shlibpath_overrides_runpath=yes
13905  ;;
13906
13907openbsd*)
13908  version_type=sunos
13909  sys_lib_dlsearch_path_spec="/usr/lib"
13910  need_lib_prefix=no
13911  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13912  case $host_os in
13913    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13914    *)                         need_version=no  ;;
13915  esac
13916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13917  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13918  shlibpath_var=LD_LIBRARY_PATH
13919  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13920    case $host_os in
13921      openbsd2.[89] | openbsd2.[89].*)
13922	shlibpath_overrides_runpath=no
13923	;;
13924      *)
13925	shlibpath_overrides_runpath=yes
13926	;;
13927      esac
13928  else
13929    shlibpath_overrides_runpath=yes
13930  fi
13931  ;;
13932
13933os2*)
13934  libname_spec='$name'
13935  shrext_cmds=".dll"
13936  need_lib_prefix=no
13937  library_names_spec='$libname${shared_ext} $libname.a'
13938  dynamic_linker='OS/2 ld.exe'
13939  shlibpath_var=LIBPATH
13940  ;;
13941
13942osf3* | osf4* | osf5*)
13943  version_type=osf
13944  need_lib_prefix=no
13945  need_version=no
13946  soname_spec='${libname}${release}${shared_ext}$major'
13947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13948  shlibpath_var=LD_LIBRARY_PATH
13949  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13950  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13951  ;;
13952
13953rdos*)
13954  dynamic_linker=no
13955  ;;
13956
13957solaris*)
13958  version_type=linux
13959  need_lib_prefix=no
13960  need_version=no
13961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13962  soname_spec='${libname}${release}${shared_ext}$major'
13963  shlibpath_var=LD_LIBRARY_PATH
13964  shlibpath_overrides_runpath=yes
13965  hardcode_into_libs=yes
13966  # ldd complains unless libraries are executable
13967  postinstall_cmds='chmod +x $lib'
13968  ;;
13969
13970sunos4*)
13971  version_type=sunos
13972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13973  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13974  shlibpath_var=LD_LIBRARY_PATH
13975  shlibpath_overrides_runpath=yes
13976  if test "$with_gnu_ld" = yes; then
13977    need_lib_prefix=no
13978  fi
13979  need_version=yes
13980  ;;
13981
13982sysv4 | sysv4.3*)
13983  version_type=linux
13984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13985  soname_spec='${libname}${release}${shared_ext}$major'
13986  shlibpath_var=LD_LIBRARY_PATH
13987  case $host_vendor in
13988    sni)
13989      shlibpath_overrides_runpath=no
13990      need_lib_prefix=no
13991      export_dynamic_flag_spec='${wl}-Blargedynsym'
13992      runpath_var=LD_RUN_PATH
13993      ;;
13994    siemens)
13995      need_lib_prefix=no
13996      ;;
13997    motorola)
13998      need_lib_prefix=no
13999      need_version=no
14000      shlibpath_overrides_runpath=no
14001      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14002      ;;
14003  esac
14004  ;;
14005
14006sysv4*MP*)
14007  if test -d /usr/nec ;then
14008    version_type=linux
14009    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14010    soname_spec='$libname${shared_ext}.$major'
14011    shlibpath_var=LD_LIBRARY_PATH
14012  fi
14013  ;;
14014
14015sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14016  version_type=freebsd-elf
14017  need_lib_prefix=no
14018  need_version=no
14019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14020  soname_spec='${libname}${release}${shared_ext}$major'
14021  shlibpath_var=LD_LIBRARY_PATH
14022  hardcode_into_libs=yes
14023  if test "$with_gnu_ld" = yes; then
14024    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14025    shlibpath_overrides_runpath=no
14026  else
14027    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14028    shlibpath_overrides_runpath=yes
14029    case $host_os in
14030      sco3.2v5*)
14031        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14032	;;
14033    esac
14034  fi
14035  sys_lib_dlsearch_path_spec='/usr/lib'
14036  ;;
14037
14038uts4*)
14039  version_type=linux
14040  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14041  soname_spec='${libname}${release}${shared_ext}$major'
14042  shlibpath_var=LD_LIBRARY_PATH
14043  ;;
14044
14045*)
14046  dynamic_linker=no
14047  ;;
14048esac
14049{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14050echo "${ECHO_T}$dynamic_linker" >&6; }
14051test "$dynamic_linker" = no && can_build_shared=no
14052
14053if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14054  echo $ECHO_N "(cached) $ECHO_C" >&6
14055else
14056  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14057fi
14058
14059sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14060if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14061  echo $ECHO_N "(cached) $ECHO_C" >&6
14062else
14063  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14064fi
14065
14066sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14067
14068variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14069if test "$GCC" = yes; then
14070  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14071fi
14072
14073{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14074echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14075hardcode_action_CXX=
14076if test -n "$hardcode_libdir_flag_spec_CXX" || \
14077   test -n "$runpath_var_CXX" || \
14078   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14079
14080  # We can hardcode non-existant directories.
14081  if test "$hardcode_direct_CXX" != no &&
14082     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14083     # have to relink, otherwise we might link with an installed library
14084     # when we should be linking with a yet-to-be-installed one
14085     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14086     test "$hardcode_minus_L_CXX" != no; then
14087    # Linking always hardcodes the temporary library directory.
14088    hardcode_action_CXX=relink
14089  else
14090    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14091    hardcode_action_CXX=immediate
14092  fi
14093else
14094  # We cannot hardcode anything, or else we can only hardcode existing
14095  # directories.
14096  hardcode_action_CXX=unsupported
14097fi
14098{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14099echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14100
14101if test "$hardcode_action_CXX" = relink; then
14102  # Fast installation is not supported
14103  enable_fast_install=no
14104elif test "$shlibpath_overrides_runpath" = yes ||
14105     test "$enable_shared" = no; then
14106  # Fast installation is not necessary
14107  enable_fast_install=needless
14108fi
14109
14110
14111# The else clause should only fire when bootstrapping the
14112# libtool distribution, otherwise you forgot to ship ltmain.sh
14113# with your package, and you will get complaints that there are
14114# no rules to generate ltmain.sh.
14115if test -f "$ltmain"; then
14116  # See if we are running on zsh, and set the options which allow our commands through
14117  # without removal of \ escapes.
14118  if test -n "${ZSH_VERSION+set}" ; then
14119    setopt NO_GLOB_SUBST
14120  fi
14121  # Now quote all the things that may contain metacharacters while being
14122  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14123  # variables and quote the copies for generation of the libtool script.
14124  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14125    SED SHELL STRIP \
14126    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14127    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14128    deplibs_check_method reload_flag reload_cmds need_locks \
14129    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14130    lt_cv_sys_global_symbol_to_c_name_address \
14131    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14132    old_postinstall_cmds old_postuninstall_cmds \
14133    compiler_CXX \
14134    CC_CXX \
14135    LD_CXX \
14136    lt_prog_compiler_wl_CXX \
14137    lt_prog_compiler_pic_CXX \
14138    lt_prog_compiler_static_CXX \
14139    lt_prog_compiler_no_builtin_flag_CXX \
14140    export_dynamic_flag_spec_CXX \
14141    thread_safe_flag_spec_CXX \
14142    whole_archive_flag_spec_CXX \
14143    enable_shared_with_static_runtimes_CXX \
14144    old_archive_cmds_CXX \
14145    old_archive_from_new_cmds_CXX \
14146    predep_objects_CXX \
14147    postdep_objects_CXX \
14148    predeps_CXX \
14149    postdeps_CXX \
14150    compiler_lib_search_path_CXX \
14151    compiler_lib_search_dirs_CXX \
14152    archive_cmds_CXX \
14153    archive_expsym_cmds_CXX \
14154    postinstall_cmds_CXX \
14155    postuninstall_cmds_CXX \
14156    old_archive_from_expsyms_cmds_CXX \
14157    allow_undefined_flag_CXX \
14158    no_undefined_flag_CXX \
14159    export_symbols_cmds_CXX \
14160    hardcode_libdir_flag_spec_CXX \
14161    hardcode_libdir_flag_spec_ld_CXX \
14162    hardcode_libdir_separator_CXX \
14163    hardcode_automatic_CXX \
14164    module_cmds_CXX \
14165    module_expsym_cmds_CXX \
14166    lt_cv_prog_compiler_c_o_CXX \
14167    fix_srcfile_path_CXX \
14168    exclude_expsyms_CXX \
14169    include_expsyms_CXX; do
14170
14171    case $var in
14172    old_archive_cmds_CXX | \
14173    old_archive_from_new_cmds_CXX | \
14174    archive_cmds_CXX | \
14175    archive_expsym_cmds_CXX | \
14176    module_cmds_CXX | \
14177    module_expsym_cmds_CXX | \
14178    old_archive_from_expsyms_cmds_CXX | \
14179    export_symbols_cmds_CXX | \
14180    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14181    postinstall_cmds | postuninstall_cmds | \
14182    old_postinstall_cmds | old_postuninstall_cmds | \
14183    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14184      # Double-quote double-evaled strings.
14185      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14186      ;;
14187    *)
14188      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14189      ;;
14190    esac
14191  done
14192
14193  case $lt_echo in
14194  *'\$0 --fallback-echo"')
14195    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14196    ;;
14197  esac
14198
14199cfgfile="$ofile"
14200
14201  cat <<__EOF__ >> "$cfgfile"
14202# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14203
14204# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14205
14206# Shell to use when invoking shell scripts.
14207SHELL=$lt_SHELL
14208
14209# Whether or not to build shared libraries.
14210build_libtool_libs=$enable_shared
14211
14212# Whether or not to build static libraries.
14213build_old_libs=$enable_static
14214
14215# Whether or not to add -lc for building shared libraries.
14216build_libtool_need_lc=$archive_cmds_need_lc_CXX
14217
14218# Whether or not to disallow shared libs when runtime libs are static
14219allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14220
14221# Whether or not to optimize for fast installation.
14222fast_install=$enable_fast_install
14223
14224# The host system.
14225host_alias=$host_alias
14226host=$host
14227host_os=$host_os
14228
14229# The build system.
14230build_alias=$build_alias
14231build=$build
14232build_os=$build_os
14233
14234# An echo program that does not interpret backslashes.
14235echo=$lt_echo
14236
14237# The archiver.
14238AR=$lt_AR
14239AR_FLAGS=$lt_AR_FLAGS
14240
14241# A C compiler.
14242LTCC=$lt_LTCC
14243
14244# LTCC compiler flags.
14245LTCFLAGS=$lt_LTCFLAGS
14246
14247# A language-specific compiler.
14248CC=$lt_compiler_CXX
14249
14250# Is the compiler the GNU C compiler?
14251with_gcc=$GCC_CXX
14252
14253# An ERE matcher.
14254EGREP=$lt_EGREP
14255
14256# The linker used to build libraries.
14257LD=$lt_LD_CXX
14258
14259# Whether we need hard or soft links.
14260LN_S=$lt_LN_S
14261
14262# A BSD-compatible nm program.
14263NM=$lt_NM
14264
14265# A symbol stripping program
14266STRIP=$lt_STRIP
14267
14268# Used to examine libraries when file_magic_cmd begins "file"
14269MAGIC_CMD=$MAGIC_CMD
14270
14271# Used on cygwin: DLL creation program.
14272DLLTOOL="$DLLTOOL"
14273
14274# Used on cygwin: object dumper.
14275OBJDUMP="$OBJDUMP"
14276
14277# Used on cygwin: assembler.
14278AS="$AS"
14279
14280# The name of the directory that contains temporary libtool files.
14281objdir=$objdir
14282
14283# How to create reloadable object files.
14284reload_flag=$lt_reload_flag
14285reload_cmds=$lt_reload_cmds
14286
14287# How to pass a linker flag through the compiler.
14288wl=$lt_lt_prog_compiler_wl_CXX
14289
14290# Object file suffix (normally "o").
14291objext="$ac_objext"
14292
14293# Old archive suffix (normally "a").
14294libext="$libext"
14295
14296# Shared library suffix (normally ".so").
14297shrext_cmds='$shrext_cmds'
14298
14299# Executable file suffix (normally "").
14300exeext="$exeext"
14301
14302# Additional compiler flags for building library objects.
14303pic_flag=$lt_lt_prog_compiler_pic_CXX
14304pic_mode=$pic_mode
14305
14306# What is the maximum length of a command?
14307max_cmd_len=$lt_cv_sys_max_cmd_len
14308
14309# Does compiler simultaneously support -c and -o options?
14310compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14311
14312# Must we lock files when doing compilation?
14313need_locks=$lt_need_locks
14314
14315# Do we need the lib prefix for modules?
14316need_lib_prefix=$need_lib_prefix
14317
14318# Do we need a version for libraries?
14319need_version=$need_version
14320
14321# Whether dlopen is supported.
14322dlopen_support=$enable_dlopen
14323
14324# Whether dlopen of programs is supported.
14325dlopen_self=$enable_dlopen_self
14326
14327# Whether dlopen of statically linked programs is supported.
14328dlopen_self_static=$enable_dlopen_self_static
14329
14330# Compiler flag to prevent dynamic linking.
14331link_static_flag=$lt_lt_prog_compiler_static_CXX
14332
14333# Compiler flag to turn off builtin functions.
14334no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14335
14336# Compiler flag to allow reflexive dlopens.
14337export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14338
14339# Compiler flag to generate shared objects directly from archives.
14340whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14341
14342# Compiler flag to generate thread-safe objects.
14343thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14344
14345# Library versioning type.
14346version_type=$version_type
14347
14348# Format of library name prefix.
14349libname_spec=$lt_libname_spec
14350
14351# List of archive names.  First name is the real one, the rest are links.
14352# The last name is the one that the linker finds with -lNAME.
14353library_names_spec=$lt_library_names_spec
14354
14355# The coded name of the library, if different from the real name.
14356soname_spec=$lt_soname_spec
14357
14358# Commands used to build and install an old-style archive.
14359RANLIB=$lt_RANLIB
14360old_archive_cmds=$lt_old_archive_cmds_CXX
14361old_postinstall_cmds=$lt_old_postinstall_cmds
14362old_postuninstall_cmds=$lt_old_postuninstall_cmds
14363
14364# Create an old-style archive from a shared archive.
14365old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14366
14367# Create a temporary old-style archive to link instead of a shared archive.
14368old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14369
14370# Commands used to build and install a shared archive.
14371archive_cmds=$lt_archive_cmds_CXX
14372archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14373postinstall_cmds=$lt_postinstall_cmds
14374postuninstall_cmds=$lt_postuninstall_cmds
14375
14376# Commands used to build a loadable module (assumed same as above if empty)
14377module_cmds=$lt_module_cmds_CXX
14378module_expsym_cmds=$lt_module_expsym_cmds_CXX
14379
14380# Commands to strip libraries.
14381old_striplib=$lt_old_striplib
14382striplib=$lt_striplib
14383
14384# Dependencies to place before the objects being linked to create a
14385# shared library.
14386predep_objects=$lt_predep_objects_CXX
14387
14388# Dependencies to place after the objects being linked to create a
14389# shared library.
14390postdep_objects=$lt_postdep_objects_CXX
14391
14392# Dependencies to place before the objects being linked to create a
14393# shared library.
14394predeps=$lt_predeps_CXX
14395
14396# Dependencies to place after the objects being linked to create a
14397# shared library.
14398postdeps=$lt_postdeps_CXX
14399
14400# The directories searched by this compiler when creating a shared
14401# library
14402compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14403
14404# The library search path used internally by the compiler when linking
14405# a shared library.
14406compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14407
14408# Method to check whether dependent libraries are shared objects.
14409deplibs_check_method=$lt_deplibs_check_method
14410
14411# Command to use when deplibs_check_method == file_magic.
14412file_magic_cmd=$lt_file_magic_cmd
14413
14414# Flag that allows shared libraries with undefined symbols to be built.
14415allow_undefined_flag=$lt_allow_undefined_flag_CXX
14416
14417# Flag that forces no undefined symbols.
14418no_undefined_flag=$lt_no_undefined_flag_CXX
14419
14420# Commands used to finish a libtool library installation in a directory.
14421finish_cmds=$lt_finish_cmds
14422
14423# Same as above, but a single script fragment to be evaled but not shown.
14424finish_eval=$lt_finish_eval
14425
14426# Take the output of nm and produce a listing of raw symbols and C names.
14427global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14428
14429# Transform the output of nm in a proper C declaration
14430global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14431
14432# Transform the output of nm in a C name address pair
14433global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14434
14435# This is the shared library runtime path variable.
14436runpath_var=$runpath_var
14437
14438# This is the shared library path variable.
14439shlibpath_var=$shlibpath_var
14440
14441# Is shlibpath searched before the hard-coded library search path?
14442shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14443
14444# How to hardcode a shared library path into an executable.
14445hardcode_action=$hardcode_action_CXX
14446
14447# Whether we should hardcode library paths into libraries.
14448hardcode_into_libs=$hardcode_into_libs
14449
14450# Flag to hardcode \$libdir into a binary during linking.
14451# This must work even if \$libdir does not exist.
14452hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14453
14454# If ld is used when linking, flag to hardcode \$libdir into
14455# a binary during linking. This must work even if \$libdir does
14456# not exist.
14457hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14458
14459# Whether we need a single -rpath flag with a separated argument.
14460hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14461
14462# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14463# resulting binary.
14464hardcode_direct=$hardcode_direct_CXX
14465
14466# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14467# resulting binary.
14468hardcode_minus_L=$hardcode_minus_L_CXX
14469
14470# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14471# the resulting binary.
14472hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14473
14474# Set to yes if building a shared library automatically hardcodes DIR into the library
14475# and all subsequent libraries and executables linked against it.
14476hardcode_automatic=$hardcode_automatic_CXX
14477
14478# Variables whose values should be saved in libtool wrapper scripts and
14479# restored at relink time.
14480variables_saved_for_relink="$variables_saved_for_relink"
14481
14482# Whether libtool must link a program against all its dependency libraries.
14483link_all_deplibs=$link_all_deplibs_CXX
14484
14485# Compile-time system search path for libraries
14486sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14487
14488# Run-time system search path for libraries
14489sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14490
14491# Fix the shell variable \$srcfile for the compiler.
14492fix_srcfile_path=$lt_fix_srcfile_path
14493
14494# Set to yes if exported symbols are required.
14495always_export_symbols=$always_export_symbols_CXX
14496
14497# The commands to list exported symbols.
14498export_symbols_cmds=$lt_export_symbols_cmds_CXX
14499
14500# The commands to extract the exported symbol list from a shared archive.
14501extract_expsyms_cmds=$lt_extract_expsyms_cmds
14502
14503# Symbols that should not be listed in the preloaded symbols.
14504exclude_expsyms=$lt_exclude_expsyms_CXX
14505
14506# Symbols that must always be exported.
14507include_expsyms=$lt_include_expsyms_CXX
14508
14509# ### END LIBTOOL TAG CONFIG: $tagname
14510
14511__EOF__
14512
14513
14514else
14515  # If there is no Makefile yet, we rely on a make rule to execute
14516  # `config.status --recheck' to rerun these tests and create the
14517  # libtool script then.
14518  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14519  if test -f "$ltmain_in"; then
14520    test -f Makefile && make "$ltmain"
14521  fi
14522fi
14523
14524
14525ac_ext=c
14526ac_cpp='$CPP $CPPFLAGS'
14527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14529ac_compiler_gnu=$ac_cv_c_compiler_gnu
14530
14531CC=$lt_save_CC
14532LDCXX=$LD
14533LD=$lt_save_LD
14534GCC=$lt_save_GCC
14535with_gnu_ldcxx=$with_gnu_ld
14536with_gnu_ld=$lt_save_with_gnu_ld
14537lt_cv_path_LDCXX=$lt_cv_path_LD
14538lt_cv_path_LD=$lt_save_path_LD
14539lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14540lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14541
14542	else
14543	  tagname=""
14544	fi
14545	;;
14546
14547      F77)
14548	if test -n "$F77" && test "X$F77" != "Xno"; then
14549
14550ac_ext=f
14551ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14552ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14553ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14554
14555
14556archive_cmds_need_lc_F77=no
14557allow_undefined_flag_F77=
14558always_export_symbols_F77=no
14559archive_expsym_cmds_F77=
14560export_dynamic_flag_spec_F77=
14561hardcode_direct_F77=no
14562hardcode_libdir_flag_spec_F77=
14563hardcode_libdir_flag_spec_ld_F77=
14564hardcode_libdir_separator_F77=
14565hardcode_minus_L_F77=no
14566hardcode_automatic_F77=no
14567module_cmds_F77=
14568module_expsym_cmds_F77=
14569link_all_deplibs_F77=unknown
14570old_archive_cmds_F77=$old_archive_cmds
14571no_undefined_flag_F77=
14572whole_archive_flag_spec_F77=
14573enable_shared_with_static_runtimes_F77=no
14574
14575# Source file extension for f77 test sources.
14576ac_ext=f
14577
14578# Object file extension for compiled f77 test sources.
14579objext=o
14580objext_F77=$objext
14581
14582# Code to be used in simple compile tests
14583lt_simple_compile_test_code="\
14584      subroutine t
14585      return
14586      end
14587"
14588
14589# Code to be used in simple link tests
14590lt_simple_link_test_code="\
14591      program t
14592      end
14593"
14594
14595# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14596
14597# If no C compiler was specified, use CC.
14598LTCC=${LTCC-"$CC"}
14599
14600# If no C compiler flags were specified, use CFLAGS.
14601LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14602
14603# Allow CC to be a program name with arguments.
14604compiler=$CC
14605
14606
14607# save warnings/boilerplate of simple test code
14608ac_outfile=conftest.$ac_objext
14609echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14610eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14611_lt_compiler_boilerplate=`cat conftest.err`
14612$rm conftest*
14613
14614ac_outfile=conftest.$ac_objext
14615echo "$lt_simple_link_test_code" >conftest.$ac_ext
14616eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14617_lt_linker_boilerplate=`cat conftest.err`
14618$rm -r conftest*
14619
14620
14621# Allow CC to be a program name with arguments.
14622lt_save_CC="$CC"
14623CC=${F77-"f77"}
14624compiler=$CC
14625compiler_F77=$CC
14626for cc_temp in $compiler""; do
14627  case $cc_temp in
14628    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14629    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14630    \-*) ;;
14631    *) break;;
14632  esac
14633done
14634cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14635
14636
14637{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14638echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14639{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14640echo "${ECHO_T}$can_build_shared" >&6; }
14641
14642{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14643echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14644test "$can_build_shared" = "no" && enable_shared=no
14645
14646# On AIX, shared libraries and static libraries use the same namespace, and
14647# are all built from PIC.
14648case $host_os in
14649aix3*)
14650  test "$enable_shared" = yes && enable_static=no
14651  if test -n "$RANLIB"; then
14652    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14653    postinstall_cmds='$RANLIB $lib'
14654  fi
14655  ;;
14656aix[4-9]*)
14657  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14658    test "$enable_shared" = yes && enable_static=no
14659  fi
14660  ;;
14661esac
14662{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14663echo "${ECHO_T}$enable_shared" >&6; }
14664
14665{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14666echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14667# Make sure either enable_shared or enable_static is yes.
14668test "$enable_shared" = yes || enable_static=yes
14669{ echo "$as_me:$LINENO: result: $enable_static" >&5
14670echo "${ECHO_T}$enable_static" >&6; }
14671
14672GCC_F77="$G77"
14673LD_F77="$LD"
14674
14675lt_prog_compiler_wl_F77=
14676lt_prog_compiler_pic_F77=
14677lt_prog_compiler_static_F77=
14678
14679{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14680echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14681
14682  if test "$GCC" = yes; then
14683    lt_prog_compiler_wl_F77='-Wl,'
14684    lt_prog_compiler_static_F77='-static'
14685
14686    case $host_os in
14687      aix*)
14688      # All AIX code is PIC.
14689      if test "$host_cpu" = ia64; then
14690	# AIX 5 now supports IA64 processor
14691	lt_prog_compiler_static_F77='-Bstatic'
14692      fi
14693      ;;
14694
14695    amigaos*)
14696      # FIXME: we need at least 68020 code to build shared libraries, but
14697      # adding the `-m68020' flag to GCC prevents building anything better,
14698      # like `-m68040'.
14699      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14700      ;;
14701
14702    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14703      # PIC is the default for these OSes.
14704      ;;
14705
14706    mingw* | cygwin* | pw32* | os2*)
14707      # This hack is so that the source file can tell whether it is being
14708      # built for inclusion in a dll (and should export symbols for example).
14709      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14710      # (--disable-auto-import) libraries
14711      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14712      ;;
14713
14714    darwin* | rhapsody*)
14715      # PIC is the default on this platform
14716      # Common symbols not allowed in MH_DYLIB files
14717      lt_prog_compiler_pic_F77='-fno-common'
14718      ;;
14719
14720    interix[3-9]*)
14721      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14722      # Instead, we relocate shared libraries at runtime.
14723      ;;
14724
14725    msdosdjgpp*)
14726      # Just because we use GCC doesn't mean we suddenly get shared libraries
14727      # on systems that don't support them.
14728      lt_prog_compiler_can_build_shared_F77=no
14729      enable_shared=no
14730      ;;
14731
14732    sysv4*MP*)
14733      if test -d /usr/nec; then
14734	lt_prog_compiler_pic_F77=-Kconform_pic
14735      fi
14736      ;;
14737
14738    hpux*)
14739      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14740      # not for PA HP-UX.
14741      case $host_cpu in
14742      hppa*64*|ia64*)
14743	# +Z the default
14744	;;
14745      *)
14746	lt_prog_compiler_pic_F77='-fPIC'
14747	;;
14748      esac
14749      ;;
14750
14751    *)
14752      lt_prog_compiler_pic_F77='-fPIC'
14753      ;;
14754    esac
14755  else
14756    # PORTME Check for flag to pass linker flags through the system compiler.
14757    case $host_os in
14758    aix*)
14759      lt_prog_compiler_wl_F77='-Wl,'
14760      if test "$host_cpu" = ia64; then
14761	# AIX 5 now supports IA64 processor
14762	lt_prog_compiler_static_F77='-Bstatic'
14763      else
14764	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14765      fi
14766      ;;
14767      darwin*)
14768        # PIC is the default on this platform
14769        # Common symbols not allowed in MH_DYLIB files
14770       case $cc_basename in
14771         xlc*)
14772         lt_prog_compiler_pic_F77='-qnocommon'
14773         lt_prog_compiler_wl_F77='-Wl,'
14774         ;;
14775       esac
14776       ;;
14777
14778    mingw* | cygwin* | pw32* | os2*)
14779      # This hack is so that the source file can tell whether it is being
14780      # built for inclusion in a dll (and should export symbols for example).
14781      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14782      ;;
14783
14784    hpux9* | hpux10* | hpux11*)
14785      lt_prog_compiler_wl_F77='-Wl,'
14786      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14787      # not for PA HP-UX.
14788      case $host_cpu in
14789      hppa*64*|ia64*)
14790	# +Z the default
14791	;;
14792      *)
14793	lt_prog_compiler_pic_F77='+Z'
14794	;;
14795      esac
14796      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14797      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14798      ;;
14799
14800    irix5* | irix6* | nonstopux*)
14801      lt_prog_compiler_wl_F77='-Wl,'
14802      # PIC (with -KPIC) is the default.
14803      lt_prog_compiler_static_F77='-non_shared'
14804      ;;
14805
14806    newsos6)
14807      lt_prog_compiler_pic_F77='-KPIC'
14808      lt_prog_compiler_static_F77='-Bstatic'
14809      ;;
14810
14811    linux* | k*bsd*-gnu)
14812      case $cc_basename in
14813      icc* | ecc*)
14814	lt_prog_compiler_wl_F77='-Wl,'
14815	lt_prog_compiler_pic_F77='-KPIC'
14816	lt_prog_compiler_static_F77='-static'
14817        ;;
14818      pgcc* | pgf77* | pgf90* | pgf95*)
14819        # Portland Group compilers (*not* the Pentium gcc compiler,
14820	# which looks to be a dead project)
14821	lt_prog_compiler_wl_F77='-Wl,'
14822	lt_prog_compiler_pic_F77='-fpic'
14823	lt_prog_compiler_static_F77='-Bstatic'
14824        ;;
14825      ccc*)
14826        lt_prog_compiler_wl_F77='-Wl,'
14827        # All Alpha code is PIC.
14828        lt_prog_compiler_static_F77='-non_shared'
14829        ;;
14830      *)
14831        case `$CC -V 2>&1 | sed 5q` in
14832	*Sun\ C*)
14833	  # Sun C 5.9
14834	  lt_prog_compiler_pic_F77='-KPIC'
14835	  lt_prog_compiler_static_F77='-Bstatic'
14836	  lt_prog_compiler_wl_F77='-Wl,'
14837	  ;;
14838	*Sun\ F*)
14839	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14840	  lt_prog_compiler_pic_F77='-KPIC'
14841	  lt_prog_compiler_static_F77='-Bstatic'
14842	  lt_prog_compiler_wl_F77=''
14843	  ;;
14844	esac
14845	;;
14846      esac
14847      ;;
14848
14849    osf3* | osf4* | osf5*)
14850      lt_prog_compiler_wl_F77='-Wl,'
14851      # All OSF/1 code is PIC.
14852      lt_prog_compiler_static_F77='-non_shared'
14853      ;;
14854
14855    rdos*)
14856      lt_prog_compiler_static_F77='-non_shared'
14857      ;;
14858
14859    solaris*)
14860      lt_prog_compiler_pic_F77='-KPIC'
14861      lt_prog_compiler_static_F77='-Bstatic'
14862      case $cc_basename in
14863      f77* | f90* | f95*)
14864	lt_prog_compiler_wl_F77='-Qoption ld ';;
14865      *)
14866	lt_prog_compiler_wl_F77='-Wl,';;
14867      esac
14868      ;;
14869
14870    sunos4*)
14871      lt_prog_compiler_wl_F77='-Qoption ld '
14872      lt_prog_compiler_pic_F77='-PIC'
14873      lt_prog_compiler_static_F77='-Bstatic'
14874      ;;
14875
14876    sysv4 | sysv4.2uw2* | sysv4.3*)
14877      lt_prog_compiler_wl_F77='-Wl,'
14878      lt_prog_compiler_pic_F77='-KPIC'
14879      lt_prog_compiler_static_F77='-Bstatic'
14880      ;;
14881
14882    sysv4*MP*)
14883      if test -d /usr/nec ;then
14884	lt_prog_compiler_pic_F77='-Kconform_pic'
14885	lt_prog_compiler_static_F77='-Bstatic'
14886      fi
14887      ;;
14888
14889    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14890      lt_prog_compiler_wl_F77='-Wl,'
14891      lt_prog_compiler_pic_F77='-KPIC'
14892      lt_prog_compiler_static_F77='-Bstatic'
14893      ;;
14894
14895    unicos*)
14896      lt_prog_compiler_wl_F77='-Wl,'
14897      lt_prog_compiler_can_build_shared_F77=no
14898      ;;
14899
14900    uts4*)
14901      lt_prog_compiler_pic_F77='-pic'
14902      lt_prog_compiler_static_F77='-Bstatic'
14903      ;;
14904
14905    *)
14906      lt_prog_compiler_can_build_shared_F77=no
14907      ;;
14908    esac
14909  fi
14910
14911{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14912echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14913
14914#
14915# Check to make sure the PIC flag actually works.
14916#
14917if test -n "$lt_prog_compiler_pic_F77"; then
14918
14919{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14920echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14921if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14922  echo $ECHO_N "(cached) $ECHO_C" >&6
14923else
14924  lt_cv_prog_compiler_pic_works_F77=no
14925  ac_outfile=conftest.$ac_objext
14926   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14927   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14928   # Insert the option either (1) after the last *FLAGS variable, or
14929   # (2) before a word containing "conftest.", or (3) at the end.
14930   # Note that $ac_compile itself does not contain backslashes and begins
14931   # with a dollar sign (not a hyphen), so the echo should work correctly.
14932   # The option is referenced via a variable to avoid confusing sed.
14933   lt_compile=`echo "$ac_compile" | $SED \
14934   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14935   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14936   -e 's:$: $lt_compiler_flag:'`
14937   (eval echo "\"\$as_me:14937: $lt_compile\"" >&5)
14938   (eval "$lt_compile" 2>conftest.err)
14939   ac_status=$?
14940   cat conftest.err >&5
14941   echo "$as_me:14941: \$? = $ac_status" >&5
14942   if (exit $ac_status) && test -s "$ac_outfile"; then
14943     # The compiler can only warn and ignore the option if not recognized
14944     # So say no if there are warnings other than the usual output.
14945     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14946     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14947     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14948       lt_cv_prog_compiler_pic_works_F77=yes
14949     fi
14950   fi
14951   $rm conftest*
14952
14953fi
14954{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14955echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14956
14957if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14958    case $lt_prog_compiler_pic_F77 in
14959     "" | " "*) ;;
14960     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14961     esac
14962else
14963    lt_prog_compiler_pic_F77=
14964     lt_prog_compiler_can_build_shared_F77=no
14965fi
14966
14967fi
14968case $host_os in
14969  # For platforms which do not support PIC, -DPIC is meaningless:
14970  *djgpp*)
14971    lt_prog_compiler_pic_F77=
14972    ;;
14973  *)
14974    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14975    ;;
14976esac
14977
14978#
14979# Check to make sure the static flag actually works.
14980#
14981wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14982{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14983echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14984if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14985  echo $ECHO_N "(cached) $ECHO_C" >&6
14986else
14987  lt_cv_prog_compiler_static_works_F77=no
14988   save_LDFLAGS="$LDFLAGS"
14989   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14990   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14991   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14992     # The linker can only warn and ignore the option if not recognized
14993     # So say no if there are warnings
14994     if test -s conftest.err; then
14995       # Append any errors to the config.log.
14996       cat conftest.err 1>&5
14997       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14998       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14999       if diff conftest.exp conftest.er2 >/dev/null; then
15000         lt_cv_prog_compiler_static_works_F77=yes
15001       fi
15002     else
15003       lt_cv_prog_compiler_static_works_F77=yes
15004     fi
15005   fi
15006   $rm -r conftest*
15007   LDFLAGS="$save_LDFLAGS"
15008
15009fi
15010{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15011echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
15012
15013if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15014    :
15015else
15016    lt_prog_compiler_static_F77=
15017fi
15018
15019
15020{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15021echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15022if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15023  echo $ECHO_N "(cached) $ECHO_C" >&6
15024else
15025  lt_cv_prog_compiler_c_o_F77=no
15026   $rm -r conftest 2>/dev/null
15027   mkdir conftest
15028   cd conftest
15029   mkdir out
15030   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15031
15032   lt_compiler_flag="-o out/conftest2.$ac_objext"
15033   # Insert the option either (1) after the last *FLAGS variable, or
15034   # (2) before a word containing "conftest.", or (3) at the end.
15035   # Note that $ac_compile itself does not contain backslashes and begins
15036   # with a dollar sign (not a hyphen), so the echo should work correctly.
15037   lt_compile=`echo "$ac_compile" | $SED \
15038   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15039   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15040   -e 's:$: $lt_compiler_flag:'`
15041   (eval echo "\"\$as_me:15041: $lt_compile\"" >&5)
15042   (eval "$lt_compile" 2>out/conftest.err)
15043   ac_status=$?
15044   cat out/conftest.err >&5
15045   echo "$as_me:15045: \$? = $ac_status" >&5
15046   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15047   then
15048     # The compiler can only warn and ignore the option if not recognized
15049     # So say no if there are warnings
15050     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15051     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15052     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15053       lt_cv_prog_compiler_c_o_F77=yes
15054     fi
15055   fi
15056   chmod u+w . 2>&5
15057   $rm conftest*
15058   # SGI C++ compiler will create directory out/ii_files/ for
15059   # template instantiation
15060   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15061   $rm out/* && rmdir out
15062   cd ..
15063   rmdir conftest
15064   $rm conftest*
15065
15066fi
15067{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15068echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15069
15070
15071hard_links="nottested"
15072if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15073  # do not overwrite the value of need_locks provided by the user
15074  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15075echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15076  hard_links=yes
15077  $rm conftest*
15078  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15079  touch conftest.a
15080  ln conftest.a conftest.b 2>&5 || hard_links=no
15081  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15082  { echo "$as_me:$LINENO: result: $hard_links" >&5
15083echo "${ECHO_T}$hard_links" >&6; }
15084  if test "$hard_links" = no; then
15085    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15086echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15087    need_locks=warn
15088  fi
15089else
15090  need_locks=no
15091fi
15092
15093{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15094echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15095
15096  runpath_var=
15097  allow_undefined_flag_F77=
15098  enable_shared_with_static_runtimes_F77=no
15099  archive_cmds_F77=
15100  archive_expsym_cmds_F77=
15101  old_archive_From_new_cmds_F77=
15102  old_archive_from_expsyms_cmds_F77=
15103  export_dynamic_flag_spec_F77=
15104  whole_archive_flag_spec_F77=
15105  thread_safe_flag_spec_F77=
15106  hardcode_libdir_flag_spec_F77=
15107  hardcode_libdir_flag_spec_ld_F77=
15108  hardcode_libdir_separator_F77=
15109  hardcode_direct_F77=no
15110  hardcode_minus_L_F77=no
15111  hardcode_shlibpath_var_F77=unsupported
15112  link_all_deplibs_F77=unknown
15113  hardcode_automatic_F77=no
15114  module_cmds_F77=
15115  module_expsym_cmds_F77=
15116  always_export_symbols_F77=no
15117  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15118  # include_expsyms should be a list of space-separated symbols to be *always*
15119  # included in the symbol list
15120  include_expsyms_F77=
15121  # exclude_expsyms can be an extended regexp of symbols to exclude
15122  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15123  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15124  # as well as any symbol that contains `d'.
15125  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15126  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15127  # platforms (ab)use it in PIC code, but their linkers get confused if
15128  # the symbol is explicitly referenced.  Since portable code cannot
15129  # rely on this symbol name, it's probably fine to never include it in
15130  # preloaded symbol tables.
15131  # Exclude shared library initialization/finalization symbols.
15132  extract_expsyms_cmds=
15133  # Just being paranoid about ensuring that cc_basename is set.
15134  for cc_temp in $compiler""; do
15135  case $cc_temp in
15136    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15137    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15138    \-*) ;;
15139    *) break;;
15140  esac
15141done
15142cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15143
15144  case $host_os in
15145  cygwin* | mingw* | pw32*)
15146    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15147    # When not using gcc, we currently assume that we are using
15148    # Microsoft Visual C++.
15149    if test "$GCC" != yes; then
15150      with_gnu_ld=no
15151    fi
15152    ;;
15153  interix*)
15154    # we just hope/assume this is gcc and not c89 (= MSVC++)
15155    with_gnu_ld=yes
15156    ;;
15157  openbsd*)
15158    with_gnu_ld=no
15159    ;;
15160  esac
15161
15162  ld_shlibs_F77=yes
15163  if test "$with_gnu_ld" = yes; then
15164    # If archive_cmds runs LD, not CC, wlarc should be empty
15165    wlarc='${wl}'
15166
15167    # Set some defaults for GNU ld with shared library support. These
15168    # are reset later if shared libraries are not supported. Putting them
15169    # here allows them to be overridden if necessary.
15170    runpath_var=LD_RUN_PATH
15171    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15172    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15173    # ancient GNU ld didn't support --whole-archive et. al.
15174    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15175	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15176      else
15177  	whole_archive_flag_spec_F77=
15178    fi
15179    supports_anon_versioning=no
15180    case `$LD -v 2>/dev/null` in
15181      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15182      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15183      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15184      *\ 2.11.*) ;; # other 2.11 versions
15185      *) supports_anon_versioning=yes ;;
15186    esac
15187
15188    # See if GNU ld supports shared libraries.
15189    case $host_os in
15190    aix[3-9]*)
15191      # On AIX/PPC, the GNU linker is very broken
15192      if test "$host_cpu" != ia64; then
15193	ld_shlibs_F77=no
15194	cat <<EOF 1>&2
15195
15196*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15197*** to be unable to reliably create shared libraries on AIX.
15198*** Therefore, libtool is disabling shared libraries support.  If you
15199*** really care for shared libraries, you may want to modify your PATH
15200*** so that a non-GNU linker is found, and then restart.
15201
15202EOF
15203      fi
15204      ;;
15205
15206    amigaos*)
15207      archive_cmds_F77='$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)'
15208      hardcode_libdir_flag_spec_F77='-L$libdir'
15209      hardcode_minus_L_F77=yes
15210
15211      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15212      # that the semantics of dynamic libraries on AmigaOS, at least up
15213      # to version 4, is to share data among multiple programs linked
15214      # with the same dynamic library.  Since this doesn't match the
15215      # behavior of shared libraries on other platforms, we can't use
15216      # them.
15217      ld_shlibs_F77=no
15218      ;;
15219
15220    beos*)
15221      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15222	allow_undefined_flag_F77=unsupported
15223	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15224	# support --undefined.  This deserves some investigation.  FIXME
15225	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15226      else
15227	ld_shlibs_F77=no
15228      fi
15229      ;;
15230
15231    cygwin* | mingw* | pw32*)
15232      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15233      # as there is no search path for DLLs.
15234      hardcode_libdir_flag_spec_F77='-L$libdir'
15235      allow_undefined_flag_F77=unsupported
15236      always_export_symbols_F77=no
15237      enable_shared_with_static_runtimes_F77=yes
15238      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15239
15240      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15241        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15242	# If the export-symbols file already is a .def file (1st line
15243	# is EXPORTS), use it as is; otherwise, prepend...
15244	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15245	  cp $export_symbols $output_objdir/$soname.def;
15246	else
15247	  echo EXPORTS > $output_objdir/$soname.def;
15248	  cat $export_symbols >> $output_objdir/$soname.def;
15249	fi~
15250	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15251      else
15252	ld_shlibs_F77=no
15253      fi
15254      ;;
15255
15256    interix[3-9]*)
15257      hardcode_direct_F77=no
15258      hardcode_shlibpath_var_F77=no
15259      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15260      export_dynamic_flag_spec_F77='${wl}-E'
15261      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15262      # Instead, shared libraries are loaded at an image base (0x10000000 by
15263      # default) and relocated if they conflict, which is a slow very memory
15264      # consuming and fragmenting process.  To avoid this, we pick a random,
15265      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15266      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15267      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15268      archive_expsym_cmds_F77='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'
15269      ;;
15270
15271    gnu* | linux* | k*bsd*-gnu)
15272      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15273	tmp_addflag=
15274	case $cc_basename,$host_cpu in
15275	pgcc*)				# Portland Group C compiler
15276	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15277	  tmp_addflag=' $pic_flag'
15278	  ;;
15279	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15280	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15281	  tmp_addflag=' $pic_flag -Mnomain' ;;
15282	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15283	  tmp_addflag=' -i_dynamic' ;;
15284	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15285	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15286	ifc* | ifort*)			# Intel Fortran compiler
15287	  tmp_addflag=' -nofor_main' ;;
15288	esac
15289	case `$CC -V 2>&1 | sed 5q` in
15290	*Sun\ C*)			# Sun C 5.9
15291	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15292	  tmp_sharedflag='-G' ;;
15293	*Sun\ F*)			# Sun Fortran 8.3
15294	  tmp_sharedflag='-G' ;;
15295	*)
15296	  tmp_sharedflag='-shared' ;;
15297	esac
15298	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15299
15300	if test $supports_anon_versioning = yes; then
15301	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15302  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15303  $echo "local: *; };" >> $output_objdir/$libname.ver~
15304	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15305	fi
15306	link_all_deplibs_F77=no
15307      else
15308	ld_shlibs_F77=no
15309      fi
15310      ;;
15311
15312    netbsd* | netbsdelf*-gnu)
15313      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15314	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15315	wlarc=
15316      else
15317	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15318	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15319      fi
15320      ;;
15321
15322    solaris*)
15323      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15324	ld_shlibs_F77=no
15325	cat <<EOF 1>&2
15326
15327*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15328*** create shared libraries on Solaris systems.  Therefore, libtool
15329*** is disabling shared libraries support.  We urge you to upgrade GNU
15330*** binutils to release 2.9.1 or newer.  Another option is to modify
15331*** your PATH or compiler configuration so that the native linker is
15332*** used, and then restart.
15333
15334EOF
15335      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15336	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15337	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15338      else
15339	ld_shlibs_F77=no
15340      fi
15341      ;;
15342
15343    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15344      case `$LD -v 2>&1` in
15345        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15346	ld_shlibs_F77=no
15347	cat <<_LT_EOF 1>&2
15348
15349*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15350*** reliably create shared libraries on SCO systems.  Therefore, libtool
15351*** is disabling shared libraries support.  We urge you to upgrade GNU
15352*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15353*** your PATH or compiler configuration so that the native linker is
15354*** used, and then restart.
15355
15356_LT_EOF
15357	;;
15358	*)
15359	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15360	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15361	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15362	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15363	  else
15364	    ld_shlibs_F77=no
15365	  fi
15366	;;
15367      esac
15368      ;;
15369
15370    sunos4*)
15371      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15372      wlarc=
15373      hardcode_direct_F77=yes
15374      hardcode_shlibpath_var_F77=no
15375      ;;
15376
15377    *)
15378      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15379	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15380	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15381      else
15382	ld_shlibs_F77=no
15383      fi
15384      ;;
15385    esac
15386
15387    if test "$ld_shlibs_F77" = no; then
15388      runpath_var=
15389      hardcode_libdir_flag_spec_F77=
15390      export_dynamic_flag_spec_F77=
15391      whole_archive_flag_spec_F77=
15392    fi
15393  else
15394    # PORTME fill in a description of your system's linker (not GNU ld)
15395    case $host_os in
15396    aix3*)
15397      allow_undefined_flag_F77=unsupported
15398      always_export_symbols_F77=yes
15399      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15400      # Note: this linker hardcodes the directories in LIBPATH if there
15401      # are no directories specified by -L.
15402      hardcode_minus_L_F77=yes
15403      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15404	# Neither direct hardcoding nor static linking is supported with a
15405	# broken collect2.
15406	hardcode_direct_F77=unsupported
15407      fi
15408      ;;
15409
15410    aix[4-9]*)
15411      if test "$host_cpu" = ia64; then
15412	# On IA64, the linker does run time linking by default, so we don't
15413	# have to do anything special.
15414	aix_use_runtimelinking=no
15415	exp_sym_flag='-Bexport'
15416	no_entry_flag=""
15417      else
15418	# If we're using GNU nm, then we don't want the "-C" option.
15419	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15420	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15421	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15422	else
15423	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15424	fi
15425	aix_use_runtimelinking=no
15426
15427	# Test if we are trying to use run time linking or normal
15428	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15429	# need to do runtime linking.
15430	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15431	  for ld_flag in $LDFLAGS; do
15432  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15433  	    aix_use_runtimelinking=yes
15434  	    break
15435  	  fi
15436	  done
15437	  ;;
15438	esac
15439
15440	exp_sym_flag='-bexport'
15441	no_entry_flag='-bnoentry'
15442      fi
15443
15444      # When large executables or shared objects are built, AIX ld can
15445      # have problems creating the table of contents.  If linking a library
15446      # or program results in "error TOC overflow" add -mminimal-toc to
15447      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15448      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15449
15450      archive_cmds_F77=''
15451      hardcode_direct_F77=yes
15452      hardcode_libdir_separator_F77=':'
15453      link_all_deplibs_F77=yes
15454
15455      if test "$GCC" = yes; then
15456	case $host_os in aix4.[012]|aix4.[012].*)
15457	# We only want to do this on AIX 4.2 and lower, the check
15458	# below for broken collect2 doesn't work under 4.3+
15459	  collect2name=`${CC} -print-prog-name=collect2`
15460	  if test -f "$collect2name" && \
15461  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15462	  then
15463  	  # We have reworked collect2
15464  	  :
15465	  else
15466  	  # We have old collect2
15467  	  hardcode_direct_F77=unsupported
15468  	  # It fails to find uninstalled libraries when the uninstalled
15469  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15470  	  # to unsupported forces relinking
15471  	  hardcode_minus_L_F77=yes
15472  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15473  	  hardcode_libdir_separator_F77=
15474	  fi
15475	  ;;
15476	esac
15477	shared_flag='-shared'
15478	if test "$aix_use_runtimelinking" = yes; then
15479	  shared_flag="$shared_flag "'${wl}-G'
15480	fi
15481      else
15482	# not using gcc
15483	if test "$host_cpu" = ia64; then
15484  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15485  	# chokes on -Wl,-G. The following line is correct:
15486	  shared_flag='-G'
15487	else
15488	  if test "$aix_use_runtimelinking" = yes; then
15489	    shared_flag='${wl}-G'
15490	  else
15491	    shared_flag='${wl}-bM:SRE'
15492	  fi
15493	fi
15494      fi
15495
15496      # It seems that -bexpall does not export symbols beginning with
15497      # underscore (_), so it is better to generate a list of symbols to export.
15498      always_export_symbols_F77=yes
15499      if test "$aix_use_runtimelinking" = yes; then
15500	# Warning - without using the other runtime loading flags (-brtl),
15501	# -berok will link without error, but may produce a broken library.
15502	allow_undefined_flag_F77='-berok'
15503       # Determine the default libpath from the value encoded in an empty executable.
15504       cat >conftest.$ac_ext <<_ACEOF
15505      program main
15506
15507      end
15508_ACEOF
15509rm -f conftest.$ac_objext conftest$ac_exeext
15510if { (ac_try="$ac_link"
15511case "(($ac_try" in
15512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513  *) ac_try_echo=$ac_try;;
15514esac
15515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516  (eval "$ac_link") 2>conftest.er1
15517  ac_status=$?
15518  grep -v '^ *+' conftest.er1 >conftest.err
15519  rm -f conftest.er1
15520  cat conftest.err >&5
15521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522  (exit $ac_status); } && {
15523	 test -z "$ac_f77_werror_flag" ||
15524	 test ! -s conftest.err
15525       } && test -s conftest$ac_exeext &&
15526       $as_test_x conftest$ac_exeext; then
15527
15528lt_aix_libpath_sed='
15529    /Import File Strings/,/^$/ {
15530	/^0/ {
15531	    s/^0  *\(.*\)$/\1/
15532	    p
15533	}
15534    }'
15535aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15536# Check for a 64-bit object if we didn't find anything.
15537if test -z "$aix_libpath"; then
15538  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15539fi
15540else
15541  echo "$as_me: failed program was:" >&5
15542sed 's/^/| /' conftest.$ac_ext >&5
15543
15544
15545fi
15546
15547rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15548      conftest$ac_exeext conftest.$ac_ext
15549if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15550
15551       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15552	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15553       else
15554	if test "$host_cpu" = ia64; then
15555	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15556	  allow_undefined_flag_F77="-z nodefs"
15557	  archive_expsym_cmds_F77="\$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"
15558	else
15559	 # Determine the default libpath from the value encoded in an empty executable.
15560	 cat >conftest.$ac_ext <<_ACEOF
15561      program main
15562
15563      end
15564_ACEOF
15565rm -f conftest.$ac_objext conftest$ac_exeext
15566if { (ac_try="$ac_link"
15567case "(($ac_try" in
15568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569  *) ac_try_echo=$ac_try;;
15570esac
15571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572  (eval "$ac_link") 2>conftest.er1
15573  ac_status=$?
15574  grep -v '^ *+' conftest.er1 >conftest.err
15575  rm -f conftest.er1
15576  cat conftest.err >&5
15577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578  (exit $ac_status); } && {
15579	 test -z "$ac_f77_werror_flag" ||
15580	 test ! -s conftest.err
15581       } && test -s conftest$ac_exeext &&
15582       $as_test_x conftest$ac_exeext; then
15583
15584lt_aix_libpath_sed='
15585    /Import File Strings/,/^$/ {
15586	/^0/ {
15587	    s/^0  *\(.*\)$/\1/
15588	    p
15589	}
15590    }'
15591aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15592# Check for a 64-bit object if we didn't find anything.
15593if test -z "$aix_libpath"; then
15594  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15595fi
15596else
15597  echo "$as_me: failed program was:" >&5
15598sed 's/^/| /' conftest.$ac_ext >&5
15599
15600
15601fi
15602
15603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15604      conftest$ac_exeext conftest.$ac_ext
15605if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15606
15607	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15608	  # Warning - without using the other run time loading flags,
15609	  # -berok will link without error, but may produce a broken library.
15610	  no_undefined_flag_F77=' ${wl}-bernotok'
15611	  allow_undefined_flag_F77=' ${wl}-berok'
15612	  # Exported symbols can be pulled into shared objects from archives
15613	  whole_archive_flag_spec_F77='$convenience'
15614	  archive_cmds_need_lc_F77=yes
15615	  # This is similar to how AIX traditionally builds its shared libraries.
15616	  archive_expsym_cmds_F77="\$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'
15617	fi
15618      fi
15619      ;;
15620
15621    amigaos*)
15622      archive_cmds_F77='$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)'
15623      hardcode_libdir_flag_spec_F77='-L$libdir'
15624      hardcode_minus_L_F77=yes
15625      # see comment about different semantics on the GNU ld section
15626      ld_shlibs_F77=no
15627      ;;
15628
15629    bsdi[45]*)
15630      export_dynamic_flag_spec_F77=-rdynamic
15631      ;;
15632
15633    cygwin* | mingw* | pw32*)
15634      # When not using gcc, we currently assume that we are using
15635      # Microsoft Visual C++.
15636      # hardcode_libdir_flag_spec is actually meaningless, as there is
15637      # no search path for DLLs.
15638      hardcode_libdir_flag_spec_F77=' '
15639      allow_undefined_flag_F77=unsupported
15640      # Tell ltmain to make .lib files, not .a files.
15641      libext=lib
15642      # Tell ltmain to make .dll files, not .so files.
15643      shrext_cmds=".dll"
15644      # FIXME: Setting linknames here is a bad hack.
15645      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15646      # The linker will automatically build a .lib file if we build a DLL.
15647      old_archive_From_new_cmds_F77='true'
15648      # FIXME: Should let the user specify the lib program.
15649      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15650      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15651      enable_shared_with_static_runtimes_F77=yes
15652      ;;
15653
15654    darwin* | rhapsody*)
15655      case $host_os in
15656        rhapsody* | darwin1.[012])
15657         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15658         ;;
15659       *) # Darwin 1.3 on
15660         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15661           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15662         else
15663           case ${MACOSX_DEPLOYMENT_TARGET} in
15664             10.[012])
15665               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15666               ;;
15667             10.*)
15668               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15669               ;;
15670           esac
15671         fi
15672         ;;
15673      esac
15674      archive_cmds_need_lc_F77=no
15675      hardcode_direct_F77=no
15676      hardcode_automatic_F77=yes
15677      hardcode_shlibpath_var_F77=unsupported
15678      whole_archive_flag_spec_F77=''
15679      link_all_deplibs_F77=yes
15680    if test "$GCC" = yes ; then
15681    	output_verbose_link_cmd='echo'
15682        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15683        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15684        archive_expsym_cmds_F77="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}"
15685        module_expsym_cmds_F77="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}"
15686    else
15687      case $cc_basename in
15688        xlc*)
15689         output_verbose_link_cmd='echo'
15690         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15691         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15692          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15693         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15694          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15695          ;;
15696       *)
15697         ld_shlibs_F77=no
15698          ;;
15699      esac
15700    fi
15701      ;;
15702
15703    dgux*)
15704      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15705      hardcode_libdir_flag_spec_F77='-L$libdir'
15706      hardcode_shlibpath_var_F77=no
15707      ;;
15708
15709    freebsd1*)
15710      ld_shlibs_F77=no
15711      ;;
15712
15713    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15714    # support.  Future versions do this automatically, but an explicit c++rt0.o
15715    # does not break anything, and helps significantly (at the cost of a little
15716    # extra space).
15717    freebsd2.2*)
15718      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15719      hardcode_libdir_flag_spec_F77='-R$libdir'
15720      hardcode_direct_F77=yes
15721      hardcode_shlibpath_var_F77=no
15722      ;;
15723
15724    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15725    freebsd2*)
15726      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15727      hardcode_direct_F77=yes
15728      hardcode_minus_L_F77=yes
15729      hardcode_shlibpath_var_F77=no
15730      ;;
15731
15732    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15733    freebsd* | dragonfly*)
15734      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15735      hardcode_libdir_flag_spec_F77='-R$libdir'
15736      hardcode_direct_F77=yes
15737      hardcode_shlibpath_var_F77=no
15738      ;;
15739
15740    hpux9*)
15741      if test "$GCC" = yes; then
15742	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15743      else
15744	archive_cmds_F77='$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'
15745      fi
15746      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15747      hardcode_libdir_separator_F77=:
15748      hardcode_direct_F77=yes
15749
15750      # hardcode_minus_L: Not really in the search PATH,
15751      # but as the default location of the library.
15752      hardcode_minus_L_F77=yes
15753      export_dynamic_flag_spec_F77='${wl}-E'
15754      ;;
15755
15756    hpux10*)
15757      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15758	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15759      else
15760	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15761      fi
15762      if test "$with_gnu_ld" = no; then
15763	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15764	hardcode_libdir_separator_F77=:
15765
15766	hardcode_direct_F77=yes
15767	export_dynamic_flag_spec_F77='${wl}-E'
15768
15769	# hardcode_minus_L: Not really in the search PATH,
15770	# but as the default location of the library.
15771	hardcode_minus_L_F77=yes
15772      fi
15773      ;;
15774
15775    hpux11*)
15776      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15777	case $host_cpu in
15778	hppa*64*)
15779	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15780	  ;;
15781	ia64*)
15782	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15783	  ;;
15784	*)
15785	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15786	  ;;
15787	esac
15788      else
15789	case $host_cpu in
15790	hppa*64*)
15791	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15792	  ;;
15793	ia64*)
15794	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15795	  ;;
15796	*)
15797	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15798	  ;;
15799	esac
15800      fi
15801      if test "$with_gnu_ld" = no; then
15802	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15803	hardcode_libdir_separator_F77=:
15804
15805	case $host_cpu in
15806	hppa*64*|ia64*)
15807	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15808	  hardcode_direct_F77=no
15809	  hardcode_shlibpath_var_F77=no
15810	  ;;
15811	*)
15812	  hardcode_direct_F77=yes
15813	  export_dynamic_flag_spec_F77='${wl}-E'
15814
15815	  # hardcode_minus_L: Not really in the search PATH,
15816	  # but as the default location of the library.
15817	  hardcode_minus_L_F77=yes
15818	  ;;
15819	esac
15820      fi
15821      ;;
15822
15823    irix5* | irix6* | nonstopux*)
15824      if test "$GCC" = yes; then
15825	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15826      else
15827	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15828	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15829      fi
15830      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15831      hardcode_libdir_separator_F77=:
15832      link_all_deplibs_F77=yes
15833      ;;
15834
15835    netbsd* | netbsdelf*-gnu)
15836      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15837	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15838      else
15839	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15840      fi
15841      hardcode_libdir_flag_spec_F77='-R$libdir'
15842      hardcode_direct_F77=yes
15843      hardcode_shlibpath_var_F77=no
15844      ;;
15845
15846    newsos6)
15847      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15848      hardcode_direct_F77=yes
15849      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15850      hardcode_libdir_separator_F77=:
15851      hardcode_shlibpath_var_F77=no
15852      ;;
15853
15854    openbsd*)
15855      if test -f /usr/libexec/ld.so; then
15856	hardcode_direct_F77=yes
15857	hardcode_shlibpath_var_F77=no
15858	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15859	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15860	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15861	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15862	  export_dynamic_flag_spec_F77='${wl}-E'
15863	else
15864	  case $host_os in
15865	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15866	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15867	     hardcode_libdir_flag_spec_F77='-R$libdir'
15868	     ;;
15869	   *)
15870	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15871	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15872	     ;;
15873	  esac
15874        fi
15875      else
15876	ld_shlibs_F77=no
15877      fi
15878      ;;
15879
15880    os2*)
15881      hardcode_libdir_flag_spec_F77='-L$libdir'
15882      hardcode_minus_L_F77=yes
15883      allow_undefined_flag_F77=unsupported
15884      archive_cmds_F77='$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'
15885      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15886      ;;
15887
15888    osf3*)
15889      if test "$GCC" = yes; then
15890	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15891	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15892      else
15893	allow_undefined_flag_F77=' -expect_unresolved \*'
15894	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15895      fi
15896      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15897      hardcode_libdir_separator_F77=:
15898      ;;
15899
15900    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15901      if test "$GCC" = yes; then
15902	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15903	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15904	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15905      else
15906	allow_undefined_flag_F77=' -expect_unresolved \*'
15907	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15908	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15909	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15910
15911	# Both c and cxx compiler support -rpath directly
15912	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15913      fi
15914      hardcode_libdir_separator_F77=:
15915      ;;
15916
15917    solaris*)
15918      no_undefined_flag_F77=' -z text'
15919      if test "$GCC" = yes; then
15920	wlarc='${wl}'
15921	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15922	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15923	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15924      else
15925	wlarc=''
15926	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15927	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15928  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15929      fi
15930      hardcode_libdir_flag_spec_F77='-R$libdir'
15931      hardcode_shlibpath_var_F77=no
15932      case $host_os in
15933      solaris2.[0-5] | solaris2.[0-5].*) ;;
15934      *)
15935	# The compiler driver will combine and reorder linker options,
15936	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15937	# but is careful enough not to reorder.
15938 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15939	if test "$GCC" = yes; then
15940	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15941	else
15942	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15943	fi
15944	;;
15945      esac
15946      link_all_deplibs_F77=yes
15947      ;;
15948
15949    sunos4*)
15950      if test "x$host_vendor" = xsequent; then
15951	# Use $CC to link under sequent, because it throws in some extra .o
15952	# files that make .init and .fini sections work.
15953	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15954      else
15955	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15956      fi
15957      hardcode_libdir_flag_spec_F77='-L$libdir'
15958      hardcode_direct_F77=yes
15959      hardcode_minus_L_F77=yes
15960      hardcode_shlibpath_var_F77=no
15961      ;;
15962
15963    sysv4)
15964      case $host_vendor in
15965	sni)
15966	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15967	  hardcode_direct_F77=yes # is this really true???
15968	;;
15969	siemens)
15970	  ## LD is ld it makes a PLAMLIB
15971	  ## CC just makes a GrossModule.
15972	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15973	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15974	  hardcode_direct_F77=no
15975        ;;
15976	motorola)
15977	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15978	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15979	;;
15980      esac
15981      runpath_var='LD_RUN_PATH'
15982      hardcode_shlibpath_var_F77=no
15983      ;;
15984
15985    sysv4.3*)
15986      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15987      hardcode_shlibpath_var_F77=no
15988      export_dynamic_flag_spec_F77='-Bexport'
15989      ;;
15990
15991    sysv4*MP*)
15992      if test -d /usr/nec; then
15993	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15994	hardcode_shlibpath_var_F77=no
15995	runpath_var=LD_RUN_PATH
15996	hardcode_runpath_var=yes
15997	ld_shlibs_F77=yes
15998      fi
15999      ;;
16000
16001    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16002      no_undefined_flag_F77='${wl}-z,text'
16003      archive_cmds_need_lc_F77=no
16004      hardcode_shlibpath_var_F77=no
16005      runpath_var='LD_RUN_PATH'
16006
16007      if test "$GCC" = yes; then
16008	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16009	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16010      else
16011	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16012	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16013      fi
16014      ;;
16015
16016    sysv5* | sco3.2v5* | sco5v6*)
16017      # Note: We can NOT use -z defs as we might desire, because we do not
16018      # link with -lc, and that would cause any symbols used from libc to
16019      # always be unresolved, which means just about no library would
16020      # ever link correctly.  If we're not using GNU ld we use -z text
16021      # though, which does catch some bad symbols but isn't as heavy-handed
16022      # as -z defs.
16023      no_undefined_flag_F77='${wl}-z,text'
16024      allow_undefined_flag_F77='${wl}-z,nodefs'
16025      archive_cmds_need_lc_F77=no
16026      hardcode_shlibpath_var_F77=no
16027      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16028      hardcode_libdir_separator_F77=':'
16029      link_all_deplibs_F77=yes
16030      export_dynamic_flag_spec_F77='${wl}-Bexport'
16031      runpath_var='LD_RUN_PATH'
16032
16033      if test "$GCC" = yes; then
16034	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16035	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16036      else
16037	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16038	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16039      fi
16040      ;;
16041
16042    uts4*)
16043      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16044      hardcode_libdir_flag_spec_F77='-L$libdir'
16045      hardcode_shlibpath_var_F77=no
16046      ;;
16047
16048    *)
16049      ld_shlibs_F77=no
16050      ;;
16051    esac
16052  fi
16053
16054{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16055echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16056test "$ld_shlibs_F77" = no && can_build_shared=no
16057
16058#
16059# Do we need to explicitly link libc?
16060#
16061case "x$archive_cmds_need_lc_F77" in
16062x|xyes)
16063  # Assume -lc should be added
16064  archive_cmds_need_lc_F77=yes
16065
16066  if test "$enable_shared" = yes && test "$GCC" = yes; then
16067    case $archive_cmds_F77 in
16068    *'~'*)
16069      # FIXME: we may have to deal with multi-command sequences.
16070      ;;
16071    '$CC '*)
16072      # Test whether the compiler implicitly links with -lc since on some
16073      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16074      # to ld, don't add -lc before -lgcc.
16075      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16076echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16077      $rm conftest*
16078      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16079
16080      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16081  (eval $ac_compile) 2>&5
16082  ac_status=$?
16083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084  (exit $ac_status); } 2>conftest.err; then
16085        soname=conftest
16086        lib=conftest
16087        libobjs=conftest.$ac_objext
16088        deplibs=
16089        wl=$lt_prog_compiler_wl_F77
16090	pic_flag=$lt_prog_compiler_pic_F77
16091        compiler_flags=-v
16092        linker_flags=-v
16093        verstring=
16094        output_objdir=.
16095        libname=conftest
16096        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16097        allow_undefined_flag_F77=
16098        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16099  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16100  ac_status=$?
16101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102  (exit $ac_status); }
16103        then
16104	  archive_cmds_need_lc_F77=no
16105        else
16106	  archive_cmds_need_lc_F77=yes
16107        fi
16108        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16109      else
16110        cat conftest.err 1>&5
16111      fi
16112      $rm conftest*
16113      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16114echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16115      ;;
16116    esac
16117  fi
16118  ;;
16119esac
16120
16121{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16122echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16123library_names_spec=
16124libname_spec='lib$name'
16125soname_spec=
16126shrext_cmds=".so"
16127postinstall_cmds=
16128postuninstall_cmds=
16129finish_cmds=
16130finish_eval=
16131shlibpath_var=
16132shlibpath_overrides_runpath=unknown
16133version_type=none
16134dynamic_linker="$host_os ld.so"
16135sys_lib_dlsearch_path_spec="/lib /usr/lib"
16136
16137need_lib_prefix=unknown
16138hardcode_into_libs=no
16139
16140# when you set need_version to no, make sure it does not cause -set_version
16141# flags to be left without arguments
16142need_version=unknown
16143
16144case $host_os in
16145aix3*)
16146  version_type=linux
16147  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16148  shlibpath_var=LIBPATH
16149
16150  # AIX 3 has no versioning support, so we append a major version to the name.
16151  soname_spec='${libname}${release}${shared_ext}$major'
16152  ;;
16153
16154aix[4-9]*)
16155  version_type=linux
16156  need_lib_prefix=no
16157  need_version=no
16158  hardcode_into_libs=yes
16159  if test "$host_cpu" = ia64; then
16160    # AIX 5 supports IA64
16161    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16162    shlibpath_var=LD_LIBRARY_PATH
16163  else
16164    # With GCC up to 2.95.x, collect2 would create an import file
16165    # for dependence libraries.  The import file would start with
16166    # the line `#! .'.  This would cause the generated library to
16167    # depend on `.', always an invalid library.  This was fixed in
16168    # development snapshots of GCC prior to 3.0.
16169    case $host_os in
16170      aix4 | aix4.[01] | aix4.[01].*)
16171      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16172	   echo ' yes '
16173	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16174	:
16175      else
16176	can_build_shared=no
16177      fi
16178      ;;
16179    esac
16180    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16181    # soname into executable. Probably we can add versioning support to
16182    # collect2, so additional links can be useful in future.
16183    if test "$aix_use_runtimelinking" = yes; then
16184      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16185      # instead of lib<name>.a to let people know that these are not
16186      # typical AIX shared libraries.
16187      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16188    else
16189      # We preserve .a as extension for shared libraries through AIX4.2
16190      # and later when we are not doing run time linking.
16191      library_names_spec='${libname}${release}.a $libname.a'
16192      soname_spec='${libname}${release}${shared_ext}$major'
16193    fi
16194    shlibpath_var=LIBPATH
16195  fi
16196  ;;
16197
16198amigaos*)
16199  library_names_spec='$libname.ixlibrary $libname.a'
16200  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16201  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16202  ;;
16203
16204beos*)
16205  library_names_spec='${libname}${shared_ext}'
16206  dynamic_linker="$host_os ld.so"
16207  shlibpath_var=LIBRARY_PATH
16208  ;;
16209
16210bsdi[45]*)
16211  version_type=linux
16212  need_version=no
16213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214  soname_spec='${libname}${release}${shared_ext}$major'
16215  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16216  shlibpath_var=LD_LIBRARY_PATH
16217  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16218  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16219  # the default ld.so.conf also contains /usr/contrib/lib and
16220  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16221  # libtool to hard-code these into programs
16222  ;;
16223
16224cygwin* | mingw* | pw32*)
16225  version_type=windows
16226  shrext_cmds=".dll"
16227  need_version=no
16228  need_lib_prefix=no
16229
16230  case $GCC,$host_os in
16231  yes,cygwin* | yes,mingw* | yes,pw32*)
16232    library_names_spec='$libname.dll.a'
16233    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16234    postinstall_cmds='base_file=`basename \${file}`~
16235      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16236      dldir=$destdir/`dirname \$dlpath`~
16237      test -d \$dldir || mkdir -p \$dldir~
16238      $install_prog $dir/$dlname \$dldir/$dlname~
16239      chmod a+x \$dldir/$dlname'
16240    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16241      dlpath=$dir/\$dldll~
16242       $rm \$dlpath'
16243    shlibpath_overrides_runpath=yes
16244
16245    case $host_os in
16246    cygwin*)
16247      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16248      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16249      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16250      ;;
16251    mingw*)
16252      # MinGW DLLs use traditional 'lib' prefix
16253      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16254      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16255      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16256        # It is most probably a Windows format PATH printed by
16257        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16258        # path with ; separators, and with drive letters. We can handle the
16259        # drive letters (cygwin fileutils understands them), so leave them,
16260        # especially as we might pass files found there to a mingw objdump,
16261        # which wouldn't understand a cygwinified path. Ahh.
16262        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16263      else
16264        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16265      fi
16266      ;;
16267    pw32*)
16268      # pw32 DLLs use 'pw' prefix rather than 'lib'
16269      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16270      ;;
16271    esac
16272    ;;
16273
16274  *)
16275    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16276    ;;
16277  esac
16278  dynamic_linker='Win32 ld.exe'
16279  # FIXME: first we should search . and the directory the executable is in
16280  shlibpath_var=PATH
16281  ;;
16282
16283darwin* | rhapsody*)
16284  dynamic_linker="$host_os dyld"
16285  version_type=darwin
16286  need_lib_prefix=no
16287  need_version=no
16288  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16289  soname_spec='${libname}${release}${major}$shared_ext'
16290  shlibpath_overrides_runpath=yes
16291  shlibpath_var=DYLD_LIBRARY_PATH
16292  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16293
16294  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16295  ;;
16296
16297dgux*)
16298  version_type=linux
16299  need_lib_prefix=no
16300  need_version=no
16301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16302  soname_spec='${libname}${release}${shared_ext}$major'
16303  shlibpath_var=LD_LIBRARY_PATH
16304  ;;
16305
16306freebsd1*)
16307  dynamic_linker=no
16308  ;;
16309
16310freebsd* | dragonfly*)
16311  # DragonFly does not have aout.  When/if they implement a new
16312  # versioning mechanism, adjust this.
16313  if test -x /usr/bin/objformat; then
16314    objformat=`/usr/bin/objformat`
16315  else
16316    case $host_os in
16317    freebsd[123]*) objformat=aout ;;
16318    *) objformat=elf ;;
16319    esac
16320  fi
16321  version_type=freebsd-$objformat
16322  case $version_type in
16323    freebsd-elf*)
16324      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16325      need_version=no
16326      need_lib_prefix=no
16327      ;;
16328    freebsd-*)
16329      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16330      need_version=yes
16331      ;;
16332  esac
16333  shlibpath_var=LD_LIBRARY_PATH
16334  case $host_os in
16335  freebsd2*)
16336    shlibpath_overrides_runpath=yes
16337    ;;
16338  freebsd3.[01]* | freebsdelf3.[01]*)
16339    shlibpath_overrides_runpath=yes
16340    hardcode_into_libs=yes
16341    ;;
16342  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16343  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16344    shlibpath_overrides_runpath=no
16345    hardcode_into_libs=yes
16346    ;;
16347  *) # from 4.6 on, and DragonFly
16348    shlibpath_overrides_runpath=yes
16349    hardcode_into_libs=yes
16350    ;;
16351  esac
16352  ;;
16353
16354gnu*)
16355  version_type=linux
16356  need_lib_prefix=no
16357  need_version=no
16358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16359  soname_spec='${libname}${release}${shared_ext}$major'
16360  shlibpath_var=LD_LIBRARY_PATH
16361  hardcode_into_libs=yes
16362  ;;
16363
16364hpux9* | hpux10* | hpux11*)
16365  # Give a soname corresponding to the major version so that dld.sl refuses to
16366  # link against other versions.
16367  version_type=sunos
16368  need_lib_prefix=no
16369  need_version=no
16370  case $host_cpu in
16371  ia64*)
16372    shrext_cmds='.so'
16373    hardcode_into_libs=yes
16374    dynamic_linker="$host_os dld.so"
16375    shlibpath_var=LD_LIBRARY_PATH
16376    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16377    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378    soname_spec='${libname}${release}${shared_ext}$major'
16379    if test "X$HPUX_IA64_MODE" = X32; then
16380      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16381    else
16382      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16383    fi
16384    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16385    ;;
16386   hppa*64*)
16387     shrext_cmds='.sl'
16388     hardcode_into_libs=yes
16389     dynamic_linker="$host_os dld.sl"
16390     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16391     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393     soname_spec='${libname}${release}${shared_ext}$major'
16394     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16395     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16396     ;;
16397   *)
16398    shrext_cmds='.sl'
16399    dynamic_linker="$host_os dld.sl"
16400    shlibpath_var=SHLIB_PATH
16401    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16402    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403    soname_spec='${libname}${release}${shared_ext}$major'
16404    ;;
16405  esac
16406  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16407  postinstall_cmds='chmod 555 $lib'
16408  ;;
16409
16410interix[3-9]*)
16411  version_type=linux
16412  need_lib_prefix=no
16413  need_version=no
16414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16415  soname_spec='${libname}${release}${shared_ext}$major'
16416  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16417  shlibpath_var=LD_LIBRARY_PATH
16418  shlibpath_overrides_runpath=no
16419  hardcode_into_libs=yes
16420  ;;
16421
16422irix5* | irix6* | nonstopux*)
16423  case $host_os in
16424    nonstopux*) version_type=nonstopux ;;
16425    *)
16426	if test "$lt_cv_prog_gnu_ld" = yes; then
16427		version_type=linux
16428	else
16429		version_type=irix
16430	fi ;;
16431  esac
16432  need_lib_prefix=no
16433  need_version=no
16434  soname_spec='${libname}${release}${shared_ext}$major'
16435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16436  case $host_os in
16437  irix5* | nonstopux*)
16438    libsuff= shlibsuff=
16439    ;;
16440  *)
16441    case $LD in # libtool.m4 will add one of these switches to LD
16442    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16443      libsuff= shlibsuff= libmagic=32-bit;;
16444    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16445      libsuff=32 shlibsuff=N32 libmagic=N32;;
16446    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16447      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16448    *) libsuff= shlibsuff= libmagic=never-match;;
16449    esac
16450    ;;
16451  esac
16452  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16453  shlibpath_overrides_runpath=no
16454  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16455  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16456  hardcode_into_libs=yes
16457  ;;
16458
16459# No shared lib support for Linux oldld, aout, or coff.
16460linux*oldld* | linux*aout* | linux*coff*)
16461  dynamic_linker=no
16462  ;;
16463
16464# This must be Linux ELF.
16465linux* | k*bsd*-gnu)
16466  version_type=linux
16467  need_lib_prefix=no
16468  need_version=no
16469  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16470  soname_spec='${libname}${release}${shared_ext}$major'
16471  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16472  shlibpath_var=LD_LIBRARY_PATH
16473  shlibpath_overrides_runpath=no
16474  # This implies no fast_install, which is unacceptable.
16475  # Some rework will be needed to allow for fast_install
16476  # before this can be enabled.
16477  hardcode_into_libs=yes
16478
16479  # Append ld.so.conf contents to the search path
16480  if test -f /etc/ld.so.conf; then
16481    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16482    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16483  fi
16484
16485  # We used to test for /lib/ld.so.1 and disable shared libraries on
16486  # powerpc, because MkLinux only supported shared libraries with the
16487  # GNU dynamic linker.  Since this was broken with cross compilers,
16488  # most powerpc-linux boxes support dynamic linking these days and
16489  # people can always --disable-shared, the test was removed, and we
16490  # assume the GNU/Linux dynamic linker is in use.
16491  dynamic_linker='GNU/Linux ld.so'
16492  ;;
16493
16494netbsdelf*-gnu)
16495  version_type=linux
16496  need_lib_prefix=no
16497  need_version=no
16498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16499  soname_spec='${libname}${release}${shared_ext}$major'
16500  shlibpath_var=LD_LIBRARY_PATH
16501  shlibpath_overrides_runpath=no
16502  hardcode_into_libs=yes
16503  dynamic_linker='NetBSD ld.elf_so'
16504  ;;
16505
16506netbsd*)
16507  version_type=sunos
16508  need_lib_prefix=no
16509  need_version=no
16510  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16511    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16512    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16513    dynamic_linker='NetBSD (a.out) ld.so'
16514  else
16515    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16516    soname_spec='${libname}${release}${shared_ext}$major'
16517    dynamic_linker='NetBSD ld.elf_so'
16518  fi
16519  shlibpath_var=LD_LIBRARY_PATH
16520  shlibpath_overrides_runpath=yes
16521  hardcode_into_libs=yes
16522  ;;
16523
16524newsos6)
16525  version_type=linux
16526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16527  shlibpath_var=LD_LIBRARY_PATH
16528  shlibpath_overrides_runpath=yes
16529  ;;
16530
16531nto-qnx*)
16532  version_type=linux
16533  need_lib_prefix=no
16534  need_version=no
16535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16536  soname_spec='${libname}${release}${shared_ext}$major'
16537  shlibpath_var=LD_LIBRARY_PATH
16538  shlibpath_overrides_runpath=yes
16539  ;;
16540
16541openbsd*)
16542  version_type=sunos
16543  sys_lib_dlsearch_path_spec="/usr/lib"
16544  need_lib_prefix=no
16545  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16546  case $host_os in
16547    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16548    *)                         need_version=no  ;;
16549  esac
16550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16551  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16552  shlibpath_var=LD_LIBRARY_PATH
16553  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16554    case $host_os in
16555      openbsd2.[89] | openbsd2.[89].*)
16556	shlibpath_overrides_runpath=no
16557	;;
16558      *)
16559	shlibpath_overrides_runpath=yes
16560	;;
16561      esac
16562  else
16563    shlibpath_overrides_runpath=yes
16564  fi
16565  ;;
16566
16567os2*)
16568  libname_spec='$name'
16569  shrext_cmds=".dll"
16570  need_lib_prefix=no
16571  library_names_spec='$libname${shared_ext} $libname.a'
16572  dynamic_linker='OS/2 ld.exe'
16573  shlibpath_var=LIBPATH
16574  ;;
16575
16576osf3* | osf4* | osf5*)
16577  version_type=osf
16578  need_lib_prefix=no
16579  need_version=no
16580  soname_spec='${libname}${release}${shared_ext}$major'
16581  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16582  shlibpath_var=LD_LIBRARY_PATH
16583  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16584  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16585  ;;
16586
16587rdos*)
16588  dynamic_linker=no
16589  ;;
16590
16591solaris*)
16592  version_type=linux
16593  need_lib_prefix=no
16594  need_version=no
16595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16596  soname_spec='${libname}${release}${shared_ext}$major'
16597  shlibpath_var=LD_LIBRARY_PATH
16598  shlibpath_overrides_runpath=yes
16599  hardcode_into_libs=yes
16600  # ldd complains unless libraries are executable
16601  postinstall_cmds='chmod +x $lib'
16602  ;;
16603
16604sunos4*)
16605  version_type=sunos
16606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16607  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16608  shlibpath_var=LD_LIBRARY_PATH
16609  shlibpath_overrides_runpath=yes
16610  if test "$with_gnu_ld" = yes; then
16611    need_lib_prefix=no
16612  fi
16613  need_version=yes
16614  ;;
16615
16616sysv4 | sysv4.3*)
16617  version_type=linux
16618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619  soname_spec='${libname}${release}${shared_ext}$major'
16620  shlibpath_var=LD_LIBRARY_PATH
16621  case $host_vendor in
16622    sni)
16623      shlibpath_overrides_runpath=no
16624      need_lib_prefix=no
16625      export_dynamic_flag_spec='${wl}-Blargedynsym'
16626      runpath_var=LD_RUN_PATH
16627      ;;
16628    siemens)
16629      need_lib_prefix=no
16630      ;;
16631    motorola)
16632      need_lib_prefix=no
16633      need_version=no
16634      shlibpath_overrides_runpath=no
16635      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16636      ;;
16637  esac
16638  ;;
16639
16640sysv4*MP*)
16641  if test -d /usr/nec ;then
16642    version_type=linux
16643    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16644    soname_spec='$libname${shared_ext}.$major'
16645    shlibpath_var=LD_LIBRARY_PATH
16646  fi
16647  ;;
16648
16649sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16650  version_type=freebsd-elf
16651  need_lib_prefix=no
16652  need_version=no
16653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16654  soname_spec='${libname}${release}${shared_ext}$major'
16655  shlibpath_var=LD_LIBRARY_PATH
16656  hardcode_into_libs=yes
16657  if test "$with_gnu_ld" = yes; then
16658    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16659    shlibpath_overrides_runpath=no
16660  else
16661    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16662    shlibpath_overrides_runpath=yes
16663    case $host_os in
16664      sco3.2v5*)
16665        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16666	;;
16667    esac
16668  fi
16669  sys_lib_dlsearch_path_spec='/usr/lib'
16670  ;;
16671
16672uts4*)
16673  version_type=linux
16674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16675  soname_spec='${libname}${release}${shared_ext}$major'
16676  shlibpath_var=LD_LIBRARY_PATH
16677  ;;
16678
16679*)
16680  dynamic_linker=no
16681  ;;
16682esac
16683{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16684echo "${ECHO_T}$dynamic_linker" >&6; }
16685test "$dynamic_linker" = no && can_build_shared=no
16686
16687if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16688  echo $ECHO_N "(cached) $ECHO_C" >&6
16689else
16690  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16691fi
16692
16693sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16694if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16695  echo $ECHO_N "(cached) $ECHO_C" >&6
16696else
16697  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16698fi
16699
16700sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16701
16702variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16703if test "$GCC" = yes; then
16704  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16705fi
16706
16707{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16708echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16709hardcode_action_F77=
16710if test -n "$hardcode_libdir_flag_spec_F77" || \
16711   test -n "$runpath_var_F77" || \
16712   test "X$hardcode_automatic_F77" = "Xyes" ; then
16713
16714  # We can hardcode non-existant directories.
16715  if test "$hardcode_direct_F77" != no &&
16716     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16717     # have to relink, otherwise we might link with an installed library
16718     # when we should be linking with a yet-to-be-installed one
16719     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16720     test "$hardcode_minus_L_F77" != no; then
16721    # Linking always hardcodes the temporary library directory.
16722    hardcode_action_F77=relink
16723  else
16724    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16725    hardcode_action_F77=immediate
16726  fi
16727else
16728  # We cannot hardcode anything, or else we can only hardcode existing
16729  # directories.
16730  hardcode_action_F77=unsupported
16731fi
16732{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16733echo "${ECHO_T}$hardcode_action_F77" >&6; }
16734
16735if test "$hardcode_action_F77" = relink; then
16736  # Fast installation is not supported
16737  enable_fast_install=no
16738elif test "$shlibpath_overrides_runpath" = yes ||
16739     test "$enable_shared" = no; then
16740  # Fast installation is not necessary
16741  enable_fast_install=needless
16742fi
16743
16744
16745# The else clause should only fire when bootstrapping the
16746# libtool distribution, otherwise you forgot to ship ltmain.sh
16747# with your package, and you will get complaints that there are
16748# no rules to generate ltmain.sh.
16749if test -f "$ltmain"; then
16750  # See if we are running on zsh, and set the options which allow our commands through
16751  # without removal of \ escapes.
16752  if test -n "${ZSH_VERSION+set}" ; then
16753    setopt NO_GLOB_SUBST
16754  fi
16755  # Now quote all the things that may contain metacharacters while being
16756  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16757  # variables and quote the copies for generation of the libtool script.
16758  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16759    SED SHELL STRIP \
16760    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16761    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16762    deplibs_check_method reload_flag reload_cmds need_locks \
16763    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16764    lt_cv_sys_global_symbol_to_c_name_address \
16765    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16766    old_postinstall_cmds old_postuninstall_cmds \
16767    compiler_F77 \
16768    CC_F77 \
16769    LD_F77 \
16770    lt_prog_compiler_wl_F77 \
16771    lt_prog_compiler_pic_F77 \
16772    lt_prog_compiler_static_F77 \
16773    lt_prog_compiler_no_builtin_flag_F77 \
16774    export_dynamic_flag_spec_F77 \
16775    thread_safe_flag_spec_F77 \
16776    whole_archive_flag_spec_F77 \
16777    enable_shared_with_static_runtimes_F77 \
16778    old_archive_cmds_F77 \
16779    old_archive_from_new_cmds_F77 \
16780    predep_objects_F77 \
16781    postdep_objects_F77 \
16782    predeps_F77 \
16783    postdeps_F77 \
16784    compiler_lib_search_path_F77 \
16785    compiler_lib_search_dirs_F77 \
16786    archive_cmds_F77 \
16787    archive_expsym_cmds_F77 \
16788    postinstall_cmds_F77 \
16789    postuninstall_cmds_F77 \
16790    old_archive_from_expsyms_cmds_F77 \
16791    allow_undefined_flag_F77 \
16792    no_undefined_flag_F77 \
16793    export_symbols_cmds_F77 \
16794    hardcode_libdir_flag_spec_F77 \
16795    hardcode_libdir_flag_spec_ld_F77 \
16796    hardcode_libdir_separator_F77 \
16797    hardcode_automatic_F77 \
16798    module_cmds_F77 \
16799    module_expsym_cmds_F77 \
16800    lt_cv_prog_compiler_c_o_F77 \
16801    fix_srcfile_path_F77 \
16802    exclude_expsyms_F77 \
16803    include_expsyms_F77; do
16804
16805    case $var in
16806    old_archive_cmds_F77 | \
16807    old_archive_from_new_cmds_F77 | \
16808    archive_cmds_F77 | \
16809    archive_expsym_cmds_F77 | \
16810    module_cmds_F77 | \
16811    module_expsym_cmds_F77 | \
16812    old_archive_from_expsyms_cmds_F77 | \
16813    export_symbols_cmds_F77 | \
16814    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16815    postinstall_cmds | postuninstall_cmds | \
16816    old_postinstall_cmds | old_postuninstall_cmds | \
16817    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16818      # Double-quote double-evaled strings.
16819      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16820      ;;
16821    *)
16822      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16823      ;;
16824    esac
16825  done
16826
16827  case $lt_echo in
16828  *'\$0 --fallback-echo"')
16829    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16830    ;;
16831  esac
16832
16833cfgfile="$ofile"
16834
16835  cat <<__EOF__ >> "$cfgfile"
16836# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16837
16838# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16839
16840# Shell to use when invoking shell scripts.
16841SHELL=$lt_SHELL
16842
16843# Whether or not to build shared libraries.
16844build_libtool_libs=$enable_shared
16845
16846# Whether or not to build static libraries.
16847build_old_libs=$enable_static
16848
16849# Whether or not to add -lc for building shared libraries.
16850build_libtool_need_lc=$archive_cmds_need_lc_F77
16851
16852# Whether or not to disallow shared libs when runtime libs are static
16853allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16854
16855# Whether or not to optimize for fast installation.
16856fast_install=$enable_fast_install
16857
16858# The host system.
16859host_alias=$host_alias
16860host=$host
16861host_os=$host_os
16862
16863# The build system.
16864build_alias=$build_alias
16865build=$build
16866build_os=$build_os
16867
16868# An echo program that does not interpret backslashes.
16869echo=$lt_echo
16870
16871# The archiver.
16872AR=$lt_AR
16873AR_FLAGS=$lt_AR_FLAGS
16874
16875# A C compiler.
16876LTCC=$lt_LTCC
16877
16878# LTCC compiler flags.
16879LTCFLAGS=$lt_LTCFLAGS
16880
16881# A language-specific compiler.
16882CC=$lt_compiler_F77
16883
16884# Is the compiler the GNU C compiler?
16885with_gcc=$GCC_F77
16886
16887# An ERE matcher.
16888EGREP=$lt_EGREP
16889
16890# The linker used to build libraries.
16891LD=$lt_LD_F77
16892
16893# Whether we need hard or soft links.
16894LN_S=$lt_LN_S
16895
16896# A BSD-compatible nm program.
16897NM=$lt_NM
16898
16899# A symbol stripping program
16900STRIP=$lt_STRIP
16901
16902# Used to examine libraries when file_magic_cmd begins "file"
16903MAGIC_CMD=$MAGIC_CMD
16904
16905# Used on cygwin: DLL creation program.
16906DLLTOOL="$DLLTOOL"
16907
16908# Used on cygwin: object dumper.
16909OBJDUMP="$OBJDUMP"
16910
16911# Used on cygwin: assembler.
16912AS="$AS"
16913
16914# The name of the directory that contains temporary libtool files.
16915objdir=$objdir
16916
16917# How to create reloadable object files.
16918reload_flag=$lt_reload_flag
16919reload_cmds=$lt_reload_cmds
16920
16921# How to pass a linker flag through the compiler.
16922wl=$lt_lt_prog_compiler_wl_F77
16923
16924# Object file suffix (normally "o").
16925objext="$ac_objext"
16926
16927# Old archive suffix (normally "a").
16928libext="$libext"
16929
16930# Shared library suffix (normally ".so").
16931shrext_cmds='$shrext_cmds'
16932
16933# Executable file suffix (normally "").
16934exeext="$exeext"
16935
16936# Additional compiler flags for building library objects.
16937pic_flag=$lt_lt_prog_compiler_pic_F77
16938pic_mode=$pic_mode
16939
16940# What is the maximum length of a command?
16941max_cmd_len=$lt_cv_sys_max_cmd_len
16942
16943# Does compiler simultaneously support -c and -o options?
16944compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16945
16946# Must we lock files when doing compilation?
16947need_locks=$lt_need_locks
16948
16949# Do we need the lib prefix for modules?
16950need_lib_prefix=$need_lib_prefix
16951
16952# Do we need a version for libraries?
16953need_version=$need_version
16954
16955# Whether dlopen is supported.
16956dlopen_support=$enable_dlopen
16957
16958# Whether dlopen of programs is supported.
16959dlopen_self=$enable_dlopen_self
16960
16961# Whether dlopen of statically linked programs is supported.
16962dlopen_self_static=$enable_dlopen_self_static
16963
16964# Compiler flag to prevent dynamic linking.
16965link_static_flag=$lt_lt_prog_compiler_static_F77
16966
16967# Compiler flag to turn off builtin functions.
16968no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16969
16970# Compiler flag to allow reflexive dlopens.
16971export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16972
16973# Compiler flag to generate shared objects directly from archives.
16974whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16975
16976# Compiler flag to generate thread-safe objects.
16977thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16978
16979# Library versioning type.
16980version_type=$version_type
16981
16982# Format of library name prefix.
16983libname_spec=$lt_libname_spec
16984
16985# List of archive names.  First name is the real one, the rest are links.
16986# The last name is the one that the linker finds with -lNAME.
16987library_names_spec=$lt_library_names_spec
16988
16989# The coded name of the library, if different from the real name.
16990soname_spec=$lt_soname_spec
16991
16992# Commands used to build and install an old-style archive.
16993RANLIB=$lt_RANLIB
16994old_archive_cmds=$lt_old_archive_cmds_F77
16995old_postinstall_cmds=$lt_old_postinstall_cmds
16996old_postuninstall_cmds=$lt_old_postuninstall_cmds
16997
16998# Create an old-style archive from a shared archive.
16999old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17000
17001# Create a temporary old-style archive to link instead of a shared archive.
17002old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17003
17004# Commands used to build and install a shared archive.
17005archive_cmds=$lt_archive_cmds_F77
17006archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17007postinstall_cmds=$lt_postinstall_cmds
17008postuninstall_cmds=$lt_postuninstall_cmds
17009
17010# Commands used to build a loadable module (assumed same as above if empty)
17011module_cmds=$lt_module_cmds_F77
17012module_expsym_cmds=$lt_module_expsym_cmds_F77
17013
17014# Commands to strip libraries.
17015old_striplib=$lt_old_striplib
17016striplib=$lt_striplib
17017
17018# Dependencies to place before the objects being linked to create a
17019# shared library.
17020predep_objects=$lt_predep_objects_F77
17021
17022# Dependencies to place after the objects being linked to create a
17023# shared library.
17024postdep_objects=$lt_postdep_objects_F77
17025
17026# Dependencies to place before the objects being linked to create a
17027# shared library.
17028predeps=$lt_predeps_F77
17029
17030# Dependencies to place after the objects being linked to create a
17031# shared library.
17032postdeps=$lt_postdeps_F77
17033
17034# The directories searched by this compiler when creating a shared
17035# library
17036compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17037
17038# The library search path used internally by the compiler when linking
17039# a shared library.
17040compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17041
17042# Method to check whether dependent libraries are shared objects.
17043deplibs_check_method=$lt_deplibs_check_method
17044
17045# Command to use when deplibs_check_method == file_magic.
17046file_magic_cmd=$lt_file_magic_cmd
17047
17048# Flag that allows shared libraries with undefined symbols to be built.
17049allow_undefined_flag=$lt_allow_undefined_flag_F77
17050
17051# Flag that forces no undefined symbols.
17052no_undefined_flag=$lt_no_undefined_flag_F77
17053
17054# Commands used to finish a libtool library installation in a directory.
17055finish_cmds=$lt_finish_cmds
17056
17057# Same as above, but a single script fragment to be evaled but not shown.
17058finish_eval=$lt_finish_eval
17059
17060# Take the output of nm and produce a listing of raw symbols and C names.
17061global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17062
17063# Transform the output of nm in a proper C declaration
17064global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17065
17066# Transform the output of nm in a C name address pair
17067global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17068
17069# This is the shared library runtime path variable.
17070runpath_var=$runpath_var
17071
17072# This is the shared library path variable.
17073shlibpath_var=$shlibpath_var
17074
17075# Is shlibpath searched before the hard-coded library search path?
17076shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17077
17078# How to hardcode a shared library path into an executable.
17079hardcode_action=$hardcode_action_F77
17080
17081# Whether we should hardcode library paths into libraries.
17082hardcode_into_libs=$hardcode_into_libs
17083
17084# Flag to hardcode \$libdir into a binary during linking.
17085# This must work even if \$libdir does not exist.
17086hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17087
17088# If ld is used when linking, flag to hardcode \$libdir into
17089# a binary during linking. This must work even if \$libdir does
17090# not exist.
17091hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17092
17093# Whether we need a single -rpath flag with a separated argument.
17094hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17095
17096# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17097# resulting binary.
17098hardcode_direct=$hardcode_direct_F77
17099
17100# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17101# resulting binary.
17102hardcode_minus_L=$hardcode_minus_L_F77
17103
17104# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17105# the resulting binary.
17106hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17107
17108# Set to yes if building a shared library automatically hardcodes DIR into the library
17109# and all subsequent libraries and executables linked against it.
17110hardcode_automatic=$hardcode_automatic_F77
17111
17112# Variables whose values should be saved in libtool wrapper scripts and
17113# restored at relink time.
17114variables_saved_for_relink="$variables_saved_for_relink"
17115
17116# Whether libtool must link a program against all its dependency libraries.
17117link_all_deplibs=$link_all_deplibs_F77
17118
17119# Compile-time system search path for libraries
17120sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17121
17122# Run-time system search path for libraries
17123sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17124
17125# Fix the shell variable \$srcfile for the compiler.
17126fix_srcfile_path=$lt_fix_srcfile_path
17127
17128# Set to yes if exported symbols are required.
17129always_export_symbols=$always_export_symbols_F77
17130
17131# The commands to list exported symbols.
17132export_symbols_cmds=$lt_export_symbols_cmds_F77
17133
17134# The commands to extract the exported symbol list from a shared archive.
17135extract_expsyms_cmds=$lt_extract_expsyms_cmds
17136
17137# Symbols that should not be listed in the preloaded symbols.
17138exclude_expsyms=$lt_exclude_expsyms_F77
17139
17140# Symbols that must always be exported.
17141include_expsyms=$lt_include_expsyms_F77
17142
17143# ### END LIBTOOL TAG CONFIG: $tagname
17144
17145__EOF__
17146
17147
17148else
17149  # If there is no Makefile yet, we rely on a make rule to execute
17150  # `config.status --recheck' to rerun these tests and create the
17151  # libtool script then.
17152  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17153  if test -f "$ltmain_in"; then
17154    test -f Makefile && make "$ltmain"
17155  fi
17156fi
17157
17158
17159ac_ext=c
17160ac_cpp='$CPP $CPPFLAGS'
17161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17163ac_compiler_gnu=$ac_cv_c_compiler_gnu
17164
17165CC="$lt_save_CC"
17166
17167	else
17168	  tagname=""
17169	fi
17170	;;
17171
17172      GCJ)
17173	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17174
17175
17176# Source file extension for Java test sources.
17177ac_ext=java
17178
17179# Object file extension for compiled Java test sources.
17180objext=o
17181objext_GCJ=$objext
17182
17183# Code to be used in simple compile tests
17184lt_simple_compile_test_code="class foo {}"
17185
17186# Code to be used in simple link tests
17187lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17188
17189# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17190
17191# If no C compiler was specified, use CC.
17192LTCC=${LTCC-"$CC"}
17193
17194# If no C compiler flags were specified, use CFLAGS.
17195LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17196
17197# Allow CC to be a program name with arguments.
17198compiler=$CC
17199
17200
17201# save warnings/boilerplate of simple test code
17202ac_outfile=conftest.$ac_objext
17203echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17204eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17205_lt_compiler_boilerplate=`cat conftest.err`
17206$rm conftest*
17207
17208ac_outfile=conftest.$ac_objext
17209echo "$lt_simple_link_test_code" >conftest.$ac_ext
17210eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17211_lt_linker_boilerplate=`cat conftest.err`
17212$rm -r conftest*
17213
17214
17215# Allow CC to be a program name with arguments.
17216lt_save_CC="$CC"
17217CC=${GCJ-"gcj"}
17218compiler=$CC
17219compiler_GCJ=$CC
17220for cc_temp in $compiler""; do
17221  case $cc_temp in
17222    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17223    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17224    \-*) ;;
17225    *) break;;
17226  esac
17227done
17228cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17229
17230
17231# GCJ did not exist at the time GCC didn't implicitly link libc in.
17232archive_cmds_need_lc_GCJ=no
17233
17234old_archive_cmds_GCJ=$old_archive_cmds
17235
17236
17237lt_prog_compiler_no_builtin_flag_GCJ=
17238
17239if test "$GCC" = yes; then
17240  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17241
17242
17243{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17244echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17245if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17246  echo $ECHO_N "(cached) $ECHO_C" >&6
17247else
17248  lt_cv_prog_compiler_rtti_exceptions=no
17249  ac_outfile=conftest.$ac_objext
17250   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17251   lt_compiler_flag="-fno-rtti -fno-exceptions"
17252   # Insert the option either (1) after the last *FLAGS variable, or
17253   # (2) before a word containing "conftest.", or (3) at the end.
17254   # Note that $ac_compile itself does not contain backslashes and begins
17255   # with a dollar sign (not a hyphen), so the echo should work correctly.
17256   # The option is referenced via a variable to avoid confusing sed.
17257   lt_compile=`echo "$ac_compile" | $SED \
17258   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17259   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17260   -e 's:$: $lt_compiler_flag:'`
17261   (eval echo "\"\$as_me:17261: $lt_compile\"" >&5)
17262   (eval "$lt_compile" 2>conftest.err)
17263   ac_status=$?
17264   cat conftest.err >&5
17265   echo "$as_me:17265: \$? = $ac_status" >&5
17266   if (exit $ac_status) && test -s "$ac_outfile"; then
17267     # The compiler can only warn and ignore the option if not recognized
17268     # So say no if there are warnings other than the usual output.
17269     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17270     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17271     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17272       lt_cv_prog_compiler_rtti_exceptions=yes
17273     fi
17274   fi
17275   $rm conftest*
17276
17277fi
17278{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17279echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17280
17281if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17282    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17283else
17284    :
17285fi
17286
17287fi
17288
17289lt_prog_compiler_wl_GCJ=
17290lt_prog_compiler_pic_GCJ=
17291lt_prog_compiler_static_GCJ=
17292
17293{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17294echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17295
17296  if test "$GCC" = yes; then
17297    lt_prog_compiler_wl_GCJ='-Wl,'
17298    lt_prog_compiler_static_GCJ='-static'
17299
17300    case $host_os in
17301      aix*)
17302      # All AIX code is PIC.
17303      if test "$host_cpu" = ia64; then
17304	# AIX 5 now supports IA64 processor
17305	lt_prog_compiler_static_GCJ='-Bstatic'
17306      fi
17307      ;;
17308
17309    amigaos*)
17310      # FIXME: we need at least 68020 code to build shared libraries, but
17311      # adding the `-m68020' flag to GCC prevents building anything better,
17312      # like `-m68040'.
17313      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17314      ;;
17315
17316    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17317      # PIC is the default for these OSes.
17318      ;;
17319
17320    mingw* | cygwin* | pw32* | os2*)
17321      # This hack is so that the source file can tell whether it is being
17322      # built for inclusion in a dll (and should export symbols for example).
17323      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17324      # (--disable-auto-import) libraries
17325
17326      ;;
17327
17328    darwin* | rhapsody*)
17329      # PIC is the default on this platform
17330      # Common symbols not allowed in MH_DYLIB files
17331      lt_prog_compiler_pic_GCJ='-fno-common'
17332      ;;
17333
17334    interix[3-9]*)
17335      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17336      # Instead, we relocate shared libraries at runtime.
17337      ;;
17338
17339    msdosdjgpp*)
17340      # Just because we use GCC doesn't mean we suddenly get shared libraries
17341      # on systems that don't support them.
17342      lt_prog_compiler_can_build_shared_GCJ=no
17343      enable_shared=no
17344      ;;
17345
17346    sysv4*MP*)
17347      if test -d /usr/nec; then
17348	lt_prog_compiler_pic_GCJ=-Kconform_pic
17349      fi
17350      ;;
17351
17352    hpux*)
17353      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17354      # not for PA HP-UX.
17355      case $host_cpu in
17356      hppa*64*|ia64*)
17357	# +Z the default
17358	;;
17359      *)
17360	lt_prog_compiler_pic_GCJ='-fPIC'
17361	;;
17362      esac
17363      ;;
17364
17365    *)
17366      lt_prog_compiler_pic_GCJ='-fPIC'
17367      ;;
17368    esac
17369  else
17370    # PORTME Check for flag to pass linker flags through the system compiler.
17371    case $host_os in
17372    aix*)
17373      lt_prog_compiler_wl_GCJ='-Wl,'
17374      if test "$host_cpu" = ia64; then
17375	# AIX 5 now supports IA64 processor
17376	lt_prog_compiler_static_GCJ='-Bstatic'
17377      else
17378	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17379      fi
17380      ;;
17381      darwin*)
17382        # PIC is the default on this platform
17383        # Common symbols not allowed in MH_DYLIB files
17384       case $cc_basename in
17385         xlc*)
17386         lt_prog_compiler_pic_GCJ='-qnocommon'
17387         lt_prog_compiler_wl_GCJ='-Wl,'
17388         ;;
17389       esac
17390       ;;
17391
17392    mingw* | cygwin* | pw32* | os2*)
17393      # This hack is so that the source file can tell whether it is being
17394      # built for inclusion in a dll (and should export symbols for example).
17395
17396      ;;
17397
17398    hpux9* | hpux10* | hpux11*)
17399      lt_prog_compiler_wl_GCJ='-Wl,'
17400      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17401      # not for PA HP-UX.
17402      case $host_cpu in
17403      hppa*64*|ia64*)
17404	# +Z the default
17405	;;
17406      *)
17407	lt_prog_compiler_pic_GCJ='+Z'
17408	;;
17409      esac
17410      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17411      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17412      ;;
17413
17414    irix5* | irix6* | nonstopux*)
17415      lt_prog_compiler_wl_GCJ='-Wl,'
17416      # PIC (with -KPIC) is the default.
17417      lt_prog_compiler_static_GCJ='-non_shared'
17418      ;;
17419
17420    newsos6)
17421      lt_prog_compiler_pic_GCJ='-KPIC'
17422      lt_prog_compiler_static_GCJ='-Bstatic'
17423      ;;
17424
17425    linux* | k*bsd*-gnu)
17426      case $cc_basename in
17427      icc* | ecc*)
17428	lt_prog_compiler_wl_GCJ='-Wl,'
17429	lt_prog_compiler_pic_GCJ='-KPIC'
17430	lt_prog_compiler_static_GCJ='-static'
17431        ;;
17432      pgcc* | pgf77* | pgf90* | pgf95*)
17433        # Portland Group compilers (*not* the Pentium gcc compiler,
17434	# which looks to be a dead project)
17435	lt_prog_compiler_wl_GCJ='-Wl,'
17436	lt_prog_compiler_pic_GCJ='-fpic'
17437	lt_prog_compiler_static_GCJ='-Bstatic'
17438        ;;
17439      ccc*)
17440        lt_prog_compiler_wl_GCJ='-Wl,'
17441        # All Alpha code is PIC.
17442        lt_prog_compiler_static_GCJ='-non_shared'
17443        ;;
17444      *)
17445        case `$CC -V 2>&1 | sed 5q` in
17446	*Sun\ C*)
17447	  # Sun C 5.9
17448	  lt_prog_compiler_pic_GCJ='-KPIC'
17449	  lt_prog_compiler_static_GCJ='-Bstatic'
17450	  lt_prog_compiler_wl_GCJ='-Wl,'
17451	  ;;
17452	*Sun\ F*)
17453	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17454	  lt_prog_compiler_pic_GCJ='-KPIC'
17455	  lt_prog_compiler_static_GCJ='-Bstatic'
17456	  lt_prog_compiler_wl_GCJ=''
17457	  ;;
17458	esac
17459	;;
17460      esac
17461      ;;
17462
17463    osf3* | osf4* | osf5*)
17464      lt_prog_compiler_wl_GCJ='-Wl,'
17465      # All OSF/1 code is PIC.
17466      lt_prog_compiler_static_GCJ='-non_shared'
17467      ;;
17468
17469    rdos*)
17470      lt_prog_compiler_static_GCJ='-non_shared'
17471      ;;
17472
17473    solaris*)
17474      lt_prog_compiler_pic_GCJ='-KPIC'
17475      lt_prog_compiler_static_GCJ='-Bstatic'
17476      case $cc_basename in
17477      f77* | f90* | f95*)
17478	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17479      *)
17480	lt_prog_compiler_wl_GCJ='-Wl,';;
17481      esac
17482      ;;
17483
17484    sunos4*)
17485      lt_prog_compiler_wl_GCJ='-Qoption ld '
17486      lt_prog_compiler_pic_GCJ='-PIC'
17487      lt_prog_compiler_static_GCJ='-Bstatic'
17488      ;;
17489
17490    sysv4 | sysv4.2uw2* | sysv4.3*)
17491      lt_prog_compiler_wl_GCJ='-Wl,'
17492      lt_prog_compiler_pic_GCJ='-KPIC'
17493      lt_prog_compiler_static_GCJ='-Bstatic'
17494      ;;
17495
17496    sysv4*MP*)
17497      if test -d /usr/nec ;then
17498	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17499	lt_prog_compiler_static_GCJ='-Bstatic'
17500      fi
17501      ;;
17502
17503    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17504      lt_prog_compiler_wl_GCJ='-Wl,'
17505      lt_prog_compiler_pic_GCJ='-KPIC'
17506      lt_prog_compiler_static_GCJ='-Bstatic'
17507      ;;
17508
17509    unicos*)
17510      lt_prog_compiler_wl_GCJ='-Wl,'
17511      lt_prog_compiler_can_build_shared_GCJ=no
17512      ;;
17513
17514    uts4*)
17515      lt_prog_compiler_pic_GCJ='-pic'
17516      lt_prog_compiler_static_GCJ='-Bstatic'
17517      ;;
17518
17519    *)
17520      lt_prog_compiler_can_build_shared_GCJ=no
17521      ;;
17522    esac
17523  fi
17524
17525{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17526echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17527
17528#
17529# Check to make sure the PIC flag actually works.
17530#
17531if test -n "$lt_prog_compiler_pic_GCJ"; then
17532
17533{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17534echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17535if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17536  echo $ECHO_N "(cached) $ECHO_C" >&6
17537else
17538  lt_cv_prog_compiler_pic_works_GCJ=no
17539  ac_outfile=conftest.$ac_objext
17540   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17541   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17542   # Insert the option either (1) after the last *FLAGS variable, or
17543   # (2) before a word containing "conftest.", or (3) at the end.
17544   # Note that $ac_compile itself does not contain backslashes and begins
17545   # with a dollar sign (not a hyphen), so the echo should work correctly.
17546   # The option is referenced via a variable to avoid confusing sed.
17547   lt_compile=`echo "$ac_compile" | $SED \
17548   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17549   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17550   -e 's:$: $lt_compiler_flag:'`
17551   (eval echo "\"\$as_me:17551: $lt_compile\"" >&5)
17552   (eval "$lt_compile" 2>conftest.err)
17553   ac_status=$?
17554   cat conftest.err >&5
17555   echo "$as_me:17555: \$? = $ac_status" >&5
17556   if (exit $ac_status) && test -s "$ac_outfile"; then
17557     # The compiler can only warn and ignore the option if not recognized
17558     # So say no if there are warnings other than the usual output.
17559     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17560     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17561     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17562       lt_cv_prog_compiler_pic_works_GCJ=yes
17563     fi
17564   fi
17565   $rm conftest*
17566
17567fi
17568{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17569echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17570
17571if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17572    case $lt_prog_compiler_pic_GCJ in
17573     "" | " "*) ;;
17574     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17575     esac
17576else
17577    lt_prog_compiler_pic_GCJ=
17578     lt_prog_compiler_can_build_shared_GCJ=no
17579fi
17580
17581fi
17582case $host_os in
17583  # For platforms which do not support PIC, -DPIC is meaningless:
17584  *djgpp*)
17585    lt_prog_compiler_pic_GCJ=
17586    ;;
17587  *)
17588    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17589    ;;
17590esac
17591
17592#
17593# Check to make sure the static flag actually works.
17594#
17595wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17596{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17597echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17598if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17599  echo $ECHO_N "(cached) $ECHO_C" >&6
17600else
17601  lt_cv_prog_compiler_static_works_GCJ=no
17602   save_LDFLAGS="$LDFLAGS"
17603   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17604   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17605   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17606     # The linker can only warn and ignore the option if not recognized
17607     # So say no if there are warnings
17608     if test -s conftest.err; then
17609       # Append any errors to the config.log.
17610       cat conftest.err 1>&5
17611       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17612       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17613       if diff conftest.exp conftest.er2 >/dev/null; then
17614         lt_cv_prog_compiler_static_works_GCJ=yes
17615       fi
17616     else
17617       lt_cv_prog_compiler_static_works_GCJ=yes
17618     fi
17619   fi
17620   $rm -r conftest*
17621   LDFLAGS="$save_LDFLAGS"
17622
17623fi
17624{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17625echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17626
17627if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17628    :
17629else
17630    lt_prog_compiler_static_GCJ=
17631fi
17632
17633
17634{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17635echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17636if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17637  echo $ECHO_N "(cached) $ECHO_C" >&6
17638else
17639  lt_cv_prog_compiler_c_o_GCJ=no
17640   $rm -r conftest 2>/dev/null
17641   mkdir conftest
17642   cd conftest
17643   mkdir out
17644   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17645
17646   lt_compiler_flag="-o out/conftest2.$ac_objext"
17647   # Insert the option either (1) after the last *FLAGS variable, or
17648   # (2) before a word containing "conftest.", or (3) at the end.
17649   # Note that $ac_compile itself does not contain backslashes and begins
17650   # with a dollar sign (not a hyphen), so the echo should work correctly.
17651   lt_compile=`echo "$ac_compile" | $SED \
17652   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17653   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17654   -e 's:$: $lt_compiler_flag:'`
17655   (eval echo "\"\$as_me:17655: $lt_compile\"" >&5)
17656   (eval "$lt_compile" 2>out/conftest.err)
17657   ac_status=$?
17658   cat out/conftest.err >&5
17659   echo "$as_me:17659: \$? = $ac_status" >&5
17660   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17661   then
17662     # The compiler can only warn and ignore the option if not recognized
17663     # So say no if there are warnings
17664     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17665     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17666     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17667       lt_cv_prog_compiler_c_o_GCJ=yes
17668     fi
17669   fi
17670   chmod u+w . 2>&5
17671   $rm conftest*
17672   # SGI C++ compiler will create directory out/ii_files/ for
17673   # template instantiation
17674   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17675   $rm out/* && rmdir out
17676   cd ..
17677   rmdir conftest
17678   $rm conftest*
17679
17680fi
17681{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17682echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17683
17684
17685hard_links="nottested"
17686if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17687  # do not overwrite the value of need_locks provided by the user
17688  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17689echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17690  hard_links=yes
17691  $rm conftest*
17692  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17693  touch conftest.a
17694  ln conftest.a conftest.b 2>&5 || hard_links=no
17695  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17696  { echo "$as_me:$LINENO: result: $hard_links" >&5
17697echo "${ECHO_T}$hard_links" >&6; }
17698  if test "$hard_links" = no; then
17699    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17700echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17701    need_locks=warn
17702  fi
17703else
17704  need_locks=no
17705fi
17706
17707{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17708echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17709
17710  runpath_var=
17711  allow_undefined_flag_GCJ=
17712  enable_shared_with_static_runtimes_GCJ=no
17713  archive_cmds_GCJ=
17714  archive_expsym_cmds_GCJ=
17715  old_archive_From_new_cmds_GCJ=
17716  old_archive_from_expsyms_cmds_GCJ=
17717  export_dynamic_flag_spec_GCJ=
17718  whole_archive_flag_spec_GCJ=
17719  thread_safe_flag_spec_GCJ=
17720  hardcode_libdir_flag_spec_GCJ=
17721  hardcode_libdir_flag_spec_ld_GCJ=
17722  hardcode_libdir_separator_GCJ=
17723  hardcode_direct_GCJ=no
17724  hardcode_minus_L_GCJ=no
17725  hardcode_shlibpath_var_GCJ=unsupported
17726  link_all_deplibs_GCJ=unknown
17727  hardcode_automatic_GCJ=no
17728  module_cmds_GCJ=
17729  module_expsym_cmds_GCJ=
17730  always_export_symbols_GCJ=no
17731  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17732  # include_expsyms should be a list of space-separated symbols to be *always*
17733  # included in the symbol list
17734  include_expsyms_GCJ=
17735  # exclude_expsyms can be an extended regexp of symbols to exclude
17736  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17737  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17738  # as well as any symbol that contains `d'.
17739  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17740  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17741  # platforms (ab)use it in PIC code, but their linkers get confused if
17742  # the symbol is explicitly referenced.  Since portable code cannot
17743  # rely on this symbol name, it's probably fine to never include it in
17744  # preloaded symbol tables.
17745  # Exclude shared library initialization/finalization symbols.
17746  extract_expsyms_cmds=
17747  # Just being paranoid about ensuring that cc_basename is set.
17748  for cc_temp in $compiler""; do
17749  case $cc_temp in
17750    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17751    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17752    \-*) ;;
17753    *) break;;
17754  esac
17755done
17756cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17757
17758  case $host_os in
17759  cygwin* | mingw* | pw32*)
17760    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17761    # When not using gcc, we currently assume that we are using
17762    # Microsoft Visual C++.
17763    if test "$GCC" != yes; then
17764      with_gnu_ld=no
17765    fi
17766    ;;
17767  interix*)
17768    # we just hope/assume this is gcc and not c89 (= MSVC++)
17769    with_gnu_ld=yes
17770    ;;
17771  openbsd*)
17772    with_gnu_ld=no
17773    ;;
17774  esac
17775
17776  ld_shlibs_GCJ=yes
17777  if test "$with_gnu_ld" = yes; then
17778    # If archive_cmds runs LD, not CC, wlarc should be empty
17779    wlarc='${wl}'
17780
17781    # Set some defaults for GNU ld with shared library support. These
17782    # are reset later if shared libraries are not supported. Putting them
17783    # here allows them to be overridden if necessary.
17784    runpath_var=LD_RUN_PATH
17785    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17786    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17787    # ancient GNU ld didn't support --whole-archive et. al.
17788    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17789	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17790      else
17791  	whole_archive_flag_spec_GCJ=
17792    fi
17793    supports_anon_versioning=no
17794    case `$LD -v 2>/dev/null` in
17795      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17796      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17797      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17798      *\ 2.11.*) ;; # other 2.11 versions
17799      *) supports_anon_versioning=yes ;;
17800    esac
17801
17802    # See if GNU ld supports shared libraries.
17803    case $host_os in
17804    aix[3-9]*)
17805      # On AIX/PPC, the GNU linker is very broken
17806      if test "$host_cpu" != ia64; then
17807	ld_shlibs_GCJ=no
17808	cat <<EOF 1>&2
17809
17810*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17811*** to be unable to reliably create shared libraries on AIX.
17812*** Therefore, libtool is disabling shared libraries support.  If you
17813*** really care for shared libraries, you may want to modify your PATH
17814*** so that a non-GNU linker is found, and then restart.
17815
17816EOF
17817      fi
17818      ;;
17819
17820    amigaos*)
17821      archive_cmds_GCJ='$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)'
17822      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17823      hardcode_minus_L_GCJ=yes
17824
17825      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17826      # that the semantics of dynamic libraries on AmigaOS, at least up
17827      # to version 4, is to share data among multiple programs linked
17828      # with the same dynamic library.  Since this doesn't match the
17829      # behavior of shared libraries on other platforms, we can't use
17830      # them.
17831      ld_shlibs_GCJ=no
17832      ;;
17833
17834    beos*)
17835      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17836	allow_undefined_flag_GCJ=unsupported
17837	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17838	# support --undefined.  This deserves some investigation.  FIXME
17839	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17840      else
17841	ld_shlibs_GCJ=no
17842      fi
17843      ;;
17844
17845    cygwin* | mingw* | pw32*)
17846      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17847      # as there is no search path for DLLs.
17848      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17849      allow_undefined_flag_GCJ=unsupported
17850      always_export_symbols_GCJ=no
17851      enable_shared_with_static_runtimes_GCJ=yes
17852      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17853
17854      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17855        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17856	# If the export-symbols file already is a .def file (1st line
17857	# is EXPORTS), use it as is; otherwise, prepend...
17858	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17859	  cp $export_symbols $output_objdir/$soname.def;
17860	else
17861	  echo EXPORTS > $output_objdir/$soname.def;
17862	  cat $export_symbols >> $output_objdir/$soname.def;
17863	fi~
17864	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17865      else
17866	ld_shlibs_GCJ=no
17867      fi
17868      ;;
17869
17870    interix[3-9]*)
17871      hardcode_direct_GCJ=no
17872      hardcode_shlibpath_var_GCJ=no
17873      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17874      export_dynamic_flag_spec_GCJ='${wl}-E'
17875      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17876      # Instead, shared libraries are loaded at an image base (0x10000000 by
17877      # default) and relocated if they conflict, which is a slow very memory
17878      # consuming and fragmenting process.  To avoid this, we pick a random,
17879      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17880      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17881      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17882      archive_expsym_cmds_GCJ='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'
17883      ;;
17884
17885    gnu* | linux* | k*bsd*-gnu)
17886      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17887	tmp_addflag=
17888	case $cc_basename,$host_cpu in
17889	pgcc*)				# Portland Group C compiler
17890	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17891	  tmp_addflag=' $pic_flag'
17892	  ;;
17893	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17894	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17895	  tmp_addflag=' $pic_flag -Mnomain' ;;
17896	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17897	  tmp_addflag=' -i_dynamic' ;;
17898	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17899	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17900	ifc* | ifort*)			# Intel Fortran compiler
17901	  tmp_addflag=' -nofor_main' ;;
17902	esac
17903	case `$CC -V 2>&1 | sed 5q` in
17904	*Sun\ C*)			# Sun C 5.9
17905	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17906	  tmp_sharedflag='-G' ;;
17907	*Sun\ F*)			# Sun Fortran 8.3
17908	  tmp_sharedflag='-G' ;;
17909	*)
17910	  tmp_sharedflag='-shared' ;;
17911	esac
17912	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17913
17914	if test $supports_anon_versioning = yes; then
17915	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17916  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17917  $echo "local: *; };" >> $output_objdir/$libname.ver~
17918	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17919	fi
17920	link_all_deplibs_GCJ=no
17921      else
17922	ld_shlibs_GCJ=no
17923      fi
17924      ;;
17925
17926    netbsd* | netbsdelf*-gnu)
17927      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17928	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17929	wlarc=
17930      else
17931	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17932	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17933      fi
17934      ;;
17935
17936    solaris*)
17937      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17938	ld_shlibs_GCJ=no
17939	cat <<EOF 1>&2
17940
17941*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17942*** create shared libraries on Solaris systems.  Therefore, libtool
17943*** is disabling shared libraries support.  We urge you to upgrade GNU
17944*** binutils to release 2.9.1 or newer.  Another option is to modify
17945*** your PATH or compiler configuration so that the native linker is
17946*** used, and then restart.
17947
17948EOF
17949      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17950	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17951	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17952      else
17953	ld_shlibs_GCJ=no
17954      fi
17955      ;;
17956
17957    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17958      case `$LD -v 2>&1` in
17959        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17960	ld_shlibs_GCJ=no
17961	cat <<_LT_EOF 1>&2
17962
17963*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17964*** reliably create shared libraries on SCO systems.  Therefore, libtool
17965*** is disabling shared libraries support.  We urge you to upgrade GNU
17966*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17967*** your PATH or compiler configuration so that the native linker is
17968*** used, and then restart.
17969
17970_LT_EOF
17971	;;
17972	*)
17973	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17974	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17975	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17976	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17977	  else
17978	    ld_shlibs_GCJ=no
17979	  fi
17980	;;
17981      esac
17982      ;;
17983
17984    sunos4*)
17985      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17986      wlarc=
17987      hardcode_direct_GCJ=yes
17988      hardcode_shlibpath_var_GCJ=no
17989      ;;
17990
17991    *)
17992      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17993	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17994	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17995      else
17996	ld_shlibs_GCJ=no
17997      fi
17998      ;;
17999    esac
18000
18001    if test "$ld_shlibs_GCJ" = no; then
18002      runpath_var=
18003      hardcode_libdir_flag_spec_GCJ=
18004      export_dynamic_flag_spec_GCJ=
18005      whole_archive_flag_spec_GCJ=
18006    fi
18007  else
18008    # PORTME fill in a description of your system's linker (not GNU ld)
18009    case $host_os in
18010    aix3*)
18011      allow_undefined_flag_GCJ=unsupported
18012      always_export_symbols_GCJ=yes
18013      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18014      # Note: this linker hardcodes the directories in LIBPATH if there
18015      # are no directories specified by -L.
18016      hardcode_minus_L_GCJ=yes
18017      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18018	# Neither direct hardcoding nor static linking is supported with a
18019	# broken collect2.
18020	hardcode_direct_GCJ=unsupported
18021      fi
18022      ;;
18023
18024    aix[4-9]*)
18025      if test "$host_cpu" = ia64; then
18026	# On IA64, the linker does run time linking by default, so we don't
18027	# have to do anything special.
18028	aix_use_runtimelinking=no
18029	exp_sym_flag='-Bexport'
18030	no_entry_flag=""
18031      else
18032	# If we're using GNU nm, then we don't want the "-C" option.
18033	# -C means demangle to AIX nm, but means don't demangle with GNU nm
18034	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18035	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18036	else
18037	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18038	fi
18039	aix_use_runtimelinking=no
18040
18041	# Test if we are trying to use run time linking or normal
18042	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18043	# need to do runtime linking.
18044	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18045	  for ld_flag in $LDFLAGS; do
18046  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18047  	    aix_use_runtimelinking=yes
18048  	    break
18049  	  fi
18050	  done
18051	  ;;
18052	esac
18053
18054	exp_sym_flag='-bexport'
18055	no_entry_flag='-bnoentry'
18056      fi
18057
18058      # When large executables or shared objects are built, AIX ld can
18059      # have problems creating the table of contents.  If linking a library
18060      # or program results in "error TOC overflow" add -mminimal-toc to
18061      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18062      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18063
18064      archive_cmds_GCJ=''
18065      hardcode_direct_GCJ=yes
18066      hardcode_libdir_separator_GCJ=':'
18067      link_all_deplibs_GCJ=yes
18068
18069      if test "$GCC" = yes; then
18070	case $host_os in aix4.[012]|aix4.[012].*)
18071	# We only want to do this on AIX 4.2 and lower, the check
18072	# below for broken collect2 doesn't work under 4.3+
18073	  collect2name=`${CC} -print-prog-name=collect2`
18074	  if test -f "$collect2name" && \
18075  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18076	  then
18077  	  # We have reworked collect2
18078  	  :
18079	  else
18080  	  # We have old collect2
18081  	  hardcode_direct_GCJ=unsupported
18082  	  # It fails to find uninstalled libraries when the uninstalled
18083  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18084  	  # to unsupported forces relinking
18085  	  hardcode_minus_L_GCJ=yes
18086  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18087  	  hardcode_libdir_separator_GCJ=
18088	  fi
18089	  ;;
18090	esac
18091	shared_flag='-shared'
18092	if test "$aix_use_runtimelinking" = yes; then
18093	  shared_flag="$shared_flag "'${wl}-G'
18094	fi
18095      else
18096	# not using gcc
18097	if test "$host_cpu" = ia64; then
18098  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18099  	# chokes on -Wl,-G. The following line is correct:
18100	  shared_flag='-G'
18101	else
18102	  if test "$aix_use_runtimelinking" = yes; then
18103	    shared_flag='${wl}-G'
18104	  else
18105	    shared_flag='${wl}-bM:SRE'
18106	  fi
18107	fi
18108      fi
18109
18110      # It seems that -bexpall does not export symbols beginning with
18111      # underscore (_), so it is better to generate a list of symbols to export.
18112      always_export_symbols_GCJ=yes
18113      if test "$aix_use_runtimelinking" = yes; then
18114	# Warning - without using the other runtime loading flags (-brtl),
18115	# -berok will link without error, but may produce a broken library.
18116	allow_undefined_flag_GCJ='-berok'
18117       # Determine the default libpath from the value encoded in an empty executable.
18118       cat >conftest.$ac_ext <<_ACEOF
18119/* confdefs.h.  */
18120_ACEOF
18121cat confdefs.h >>conftest.$ac_ext
18122cat >>conftest.$ac_ext <<_ACEOF
18123/* end confdefs.h.  */
18124
18125int
18126main ()
18127{
18128
18129  ;
18130  return 0;
18131}
18132_ACEOF
18133rm -f conftest.$ac_objext conftest$ac_exeext
18134if { (ac_try="$ac_link"
18135case "(($ac_try" in
18136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137  *) ac_try_echo=$ac_try;;
18138esac
18139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140  (eval "$ac_link") 2>conftest.er1
18141  ac_status=$?
18142  grep -v '^ *+' conftest.er1 >conftest.err
18143  rm -f conftest.er1
18144  cat conftest.err >&5
18145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146  (exit $ac_status); } && {
18147	 test -z "$ac_c_werror_flag" ||
18148	 test ! -s conftest.err
18149       } && test -s conftest$ac_exeext &&
18150       $as_test_x conftest$ac_exeext; then
18151
18152lt_aix_libpath_sed='
18153    /Import File Strings/,/^$/ {
18154	/^0/ {
18155	    s/^0  *\(.*\)$/\1/
18156	    p
18157	}
18158    }'
18159aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18160# Check for a 64-bit object if we didn't find anything.
18161if test -z "$aix_libpath"; then
18162  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18163fi
18164else
18165  echo "$as_me: failed program was:" >&5
18166sed 's/^/| /' conftest.$ac_ext >&5
18167
18168
18169fi
18170
18171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18172      conftest$ac_exeext conftest.$ac_ext
18173if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18174
18175       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18176	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18177       else
18178	if test "$host_cpu" = ia64; then
18179	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18180	  allow_undefined_flag_GCJ="-z nodefs"
18181	  archive_expsym_cmds_GCJ="\$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"
18182	else
18183	 # Determine the default libpath from the value encoded in an empty executable.
18184	 cat >conftest.$ac_ext <<_ACEOF
18185/* confdefs.h.  */
18186_ACEOF
18187cat confdefs.h >>conftest.$ac_ext
18188cat >>conftest.$ac_ext <<_ACEOF
18189/* end confdefs.h.  */
18190
18191int
18192main ()
18193{
18194
18195  ;
18196  return 0;
18197}
18198_ACEOF
18199rm -f conftest.$ac_objext conftest$ac_exeext
18200if { (ac_try="$ac_link"
18201case "(($ac_try" in
18202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203  *) ac_try_echo=$ac_try;;
18204esac
18205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18206  (eval "$ac_link") 2>conftest.er1
18207  ac_status=$?
18208  grep -v '^ *+' conftest.er1 >conftest.err
18209  rm -f conftest.er1
18210  cat conftest.err >&5
18211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212  (exit $ac_status); } && {
18213	 test -z "$ac_c_werror_flag" ||
18214	 test ! -s conftest.err
18215       } && test -s conftest$ac_exeext &&
18216       $as_test_x conftest$ac_exeext; then
18217
18218lt_aix_libpath_sed='
18219    /Import File Strings/,/^$/ {
18220	/^0/ {
18221	    s/^0  *\(.*\)$/\1/
18222	    p
18223	}
18224    }'
18225aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18226# Check for a 64-bit object if we didn't find anything.
18227if test -z "$aix_libpath"; then
18228  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18229fi
18230else
18231  echo "$as_me: failed program was:" >&5
18232sed 's/^/| /' conftest.$ac_ext >&5
18233
18234
18235fi
18236
18237rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18238      conftest$ac_exeext conftest.$ac_ext
18239if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18240
18241	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18242	  # Warning - without using the other run time loading flags,
18243	  # -berok will link without error, but may produce a broken library.
18244	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18245	  allow_undefined_flag_GCJ=' ${wl}-berok'
18246	  # Exported symbols can be pulled into shared objects from archives
18247	  whole_archive_flag_spec_GCJ='$convenience'
18248	  archive_cmds_need_lc_GCJ=yes
18249	  # This is similar to how AIX traditionally builds its shared libraries.
18250	  archive_expsym_cmds_GCJ="\$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'
18251	fi
18252      fi
18253      ;;
18254
18255    amigaos*)
18256      archive_cmds_GCJ='$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)'
18257      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18258      hardcode_minus_L_GCJ=yes
18259      # see comment about different semantics on the GNU ld section
18260      ld_shlibs_GCJ=no
18261      ;;
18262
18263    bsdi[45]*)
18264      export_dynamic_flag_spec_GCJ=-rdynamic
18265      ;;
18266
18267    cygwin* | mingw* | pw32*)
18268      # When not using gcc, we currently assume that we are using
18269      # Microsoft Visual C++.
18270      # hardcode_libdir_flag_spec is actually meaningless, as there is
18271      # no search path for DLLs.
18272      hardcode_libdir_flag_spec_GCJ=' '
18273      allow_undefined_flag_GCJ=unsupported
18274      # Tell ltmain to make .lib files, not .a files.
18275      libext=lib
18276      # Tell ltmain to make .dll files, not .so files.
18277      shrext_cmds=".dll"
18278      # FIXME: Setting linknames here is a bad hack.
18279      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18280      # The linker will automatically build a .lib file if we build a DLL.
18281      old_archive_From_new_cmds_GCJ='true'
18282      # FIXME: Should let the user specify the lib program.
18283      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18284      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18285      enable_shared_with_static_runtimes_GCJ=yes
18286      ;;
18287
18288    darwin* | rhapsody*)
18289      case $host_os in
18290        rhapsody* | darwin1.[012])
18291         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18292         ;;
18293       *) # Darwin 1.3 on
18294         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18295           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18296         else
18297           case ${MACOSX_DEPLOYMENT_TARGET} in
18298             10.[012])
18299               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18300               ;;
18301             10.*)
18302               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18303               ;;
18304           esac
18305         fi
18306         ;;
18307      esac
18308      archive_cmds_need_lc_GCJ=no
18309      hardcode_direct_GCJ=no
18310      hardcode_automatic_GCJ=yes
18311      hardcode_shlibpath_var_GCJ=unsupported
18312      whole_archive_flag_spec_GCJ=''
18313      link_all_deplibs_GCJ=yes
18314    if test "$GCC" = yes ; then
18315    	output_verbose_link_cmd='echo'
18316        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18317        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18318        archive_expsym_cmds_GCJ="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}"
18319        module_expsym_cmds_GCJ="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}"
18320    else
18321      case $cc_basename in
18322        xlc*)
18323         output_verbose_link_cmd='echo'
18324         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18325         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18326          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18327         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18328          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18329          ;;
18330       *)
18331         ld_shlibs_GCJ=no
18332          ;;
18333      esac
18334    fi
18335      ;;
18336
18337    dgux*)
18338      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18339      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18340      hardcode_shlibpath_var_GCJ=no
18341      ;;
18342
18343    freebsd1*)
18344      ld_shlibs_GCJ=no
18345      ;;
18346
18347    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18348    # support.  Future versions do this automatically, but an explicit c++rt0.o
18349    # does not break anything, and helps significantly (at the cost of a little
18350    # extra space).
18351    freebsd2.2*)
18352      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18353      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18354      hardcode_direct_GCJ=yes
18355      hardcode_shlibpath_var_GCJ=no
18356      ;;
18357
18358    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18359    freebsd2*)
18360      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18361      hardcode_direct_GCJ=yes
18362      hardcode_minus_L_GCJ=yes
18363      hardcode_shlibpath_var_GCJ=no
18364      ;;
18365
18366    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18367    freebsd* | dragonfly*)
18368      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18369      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18370      hardcode_direct_GCJ=yes
18371      hardcode_shlibpath_var_GCJ=no
18372      ;;
18373
18374    hpux9*)
18375      if test "$GCC" = yes; then
18376	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18377      else
18378	archive_cmds_GCJ='$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'
18379      fi
18380      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18381      hardcode_libdir_separator_GCJ=:
18382      hardcode_direct_GCJ=yes
18383
18384      # hardcode_minus_L: Not really in the search PATH,
18385      # but as the default location of the library.
18386      hardcode_minus_L_GCJ=yes
18387      export_dynamic_flag_spec_GCJ='${wl}-E'
18388      ;;
18389
18390    hpux10*)
18391      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18392	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18393      else
18394	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18395      fi
18396      if test "$with_gnu_ld" = no; then
18397	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18398	hardcode_libdir_separator_GCJ=:
18399
18400	hardcode_direct_GCJ=yes
18401	export_dynamic_flag_spec_GCJ='${wl}-E'
18402
18403	# hardcode_minus_L: Not really in the search PATH,
18404	# but as the default location of the library.
18405	hardcode_minus_L_GCJ=yes
18406      fi
18407      ;;
18408
18409    hpux11*)
18410      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18411	case $host_cpu in
18412	hppa*64*)
18413	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18414	  ;;
18415	ia64*)
18416	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18417	  ;;
18418	*)
18419	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18420	  ;;
18421	esac
18422      else
18423	case $host_cpu in
18424	hppa*64*)
18425	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18426	  ;;
18427	ia64*)
18428	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18429	  ;;
18430	*)
18431	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18432	  ;;
18433	esac
18434      fi
18435      if test "$with_gnu_ld" = no; then
18436	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18437	hardcode_libdir_separator_GCJ=:
18438
18439	case $host_cpu in
18440	hppa*64*|ia64*)
18441	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18442	  hardcode_direct_GCJ=no
18443	  hardcode_shlibpath_var_GCJ=no
18444	  ;;
18445	*)
18446	  hardcode_direct_GCJ=yes
18447	  export_dynamic_flag_spec_GCJ='${wl}-E'
18448
18449	  # hardcode_minus_L: Not really in the search PATH,
18450	  # but as the default location of the library.
18451	  hardcode_minus_L_GCJ=yes
18452	  ;;
18453	esac
18454      fi
18455      ;;
18456
18457    irix5* | irix6* | nonstopux*)
18458      if test "$GCC" = yes; then
18459	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18460      else
18461	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18462	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18463      fi
18464      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18465      hardcode_libdir_separator_GCJ=:
18466      link_all_deplibs_GCJ=yes
18467      ;;
18468
18469    netbsd* | netbsdelf*-gnu)
18470      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18471	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18472      else
18473	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18474      fi
18475      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18476      hardcode_direct_GCJ=yes
18477      hardcode_shlibpath_var_GCJ=no
18478      ;;
18479
18480    newsos6)
18481      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18482      hardcode_direct_GCJ=yes
18483      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18484      hardcode_libdir_separator_GCJ=:
18485      hardcode_shlibpath_var_GCJ=no
18486      ;;
18487
18488    openbsd*)
18489      if test -f /usr/libexec/ld.so; then
18490	hardcode_direct_GCJ=yes
18491	hardcode_shlibpath_var_GCJ=no
18492	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18493	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18494	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18495	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18496	  export_dynamic_flag_spec_GCJ='${wl}-E'
18497	else
18498	  case $host_os in
18499	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18500	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18501	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18502	     ;;
18503	   *)
18504	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18505	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18506	     ;;
18507	  esac
18508        fi
18509      else
18510	ld_shlibs_GCJ=no
18511      fi
18512      ;;
18513
18514    os2*)
18515      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18516      hardcode_minus_L_GCJ=yes
18517      allow_undefined_flag_GCJ=unsupported
18518      archive_cmds_GCJ='$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'
18519      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18520      ;;
18521
18522    osf3*)
18523      if test "$GCC" = yes; then
18524	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18525	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18526      else
18527	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18528	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18529      fi
18530      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18531      hardcode_libdir_separator_GCJ=:
18532      ;;
18533
18534    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18535      if test "$GCC" = yes; then
18536	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18537	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18538	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18539      else
18540	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18541	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18542	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18543	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18544
18545	# Both c and cxx compiler support -rpath directly
18546	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18547      fi
18548      hardcode_libdir_separator_GCJ=:
18549      ;;
18550
18551    solaris*)
18552      no_undefined_flag_GCJ=' -z text'
18553      if test "$GCC" = yes; then
18554	wlarc='${wl}'
18555	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18556	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18557	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18558      else
18559	wlarc=''
18560	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18561	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18562  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18563      fi
18564      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18565      hardcode_shlibpath_var_GCJ=no
18566      case $host_os in
18567      solaris2.[0-5] | solaris2.[0-5].*) ;;
18568      *)
18569	# The compiler driver will combine and reorder linker options,
18570	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18571	# but is careful enough not to reorder.
18572 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18573	if test "$GCC" = yes; then
18574	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18575	else
18576	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18577	fi
18578	;;
18579      esac
18580      link_all_deplibs_GCJ=yes
18581      ;;
18582
18583    sunos4*)
18584      if test "x$host_vendor" = xsequent; then
18585	# Use $CC to link under sequent, because it throws in some extra .o
18586	# files that make .init and .fini sections work.
18587	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18588      else
18589	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18590      fi
18591      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18592      hardcode_direct_GCJ=yes
18593      hardcode_minus_L_GCJ=yes
18594      hardcode_shlibpath_var_GCJ=no
18595      ;;
18596
18597    sysv4)
18598      case $host_vendor in
18599	sni)
18600	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18601	  hardcode_direct_GCJ=yes # is this really true???
18602	;;
18603	siemens)
18604	  ## LD is ld it makes a PLAMLIB
18605	  ## CC just makes a GrossModule.
18606	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18607	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18608	  hardcode_direct_GCJ=no
18609        ;;
18610	motorola)
18611	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18612	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18613	;;
18614      esac
18615      runpath_var='LD_RUN_PATH'
18616      hardcode_shlibpath_var_GCJ=no
18617      ;;
18618
18619    sysv4.3*)
18620      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18621      hardcode_shlibpath_var_GCJ=no
18622      export_dynamic_flag_spec_GCJ='-Bexport'
18623      ;;
18624
18625    sysv4*MP*)
18626      if test -d /usr/nec; then
18627	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18628	hardcode_shlibpath_var_GCJ=no
18629	runpath_var=LD_RUN_PATH
18630	hardcode_runpath_var=yes
18631	ld_shlibs_GCJ=yes
18632      fi
18633      ;;
18634
18635    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18636      no_undefined_flag_GCJ='${wl}-z,text'
18637      archive_cmds_need_lc_GCJ=no
18638      hardcode_shlibpath_var_GCJ=no
18639      runpath_var='LD_RUN_PATH'
18640
18641      if test "$GCC" = yes; then
18642	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18643	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18644      else
18645	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18646	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18647      fi
18648      ;;
18649
18650    sysv5* | sco3.2v5* | sco5v6*)
18651      # Note: We can NOT use -z defs as we might desire, because we do not
18652      # link with -lc, and that would cause any symbols used from libc to
18653      # always be unresolved, which means just about no library would
18654      # ever link correctly.  If we're not using GNU ld we use -z text
18655      # though, which does catch some bad symbols but isn't as heavy-handed
18656      # as -z defs.
18657      no_undefined_flag_GCJ='${wl}-z,text'
18658      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18659      archive_cmds_need_lc_GCJ=no
18660      hardcode_shlibpath_var_GCJ=no
18661      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18662      hardcode_libdir_separator_GCJ=':'
18663      link_all_deplibs_GCJ=yes
18664      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18665      runpath_var='LD_RUN_PATH'
18666
18667      if test "$GCC" = yes; then
18668	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18669	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18670      else
18671	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18672	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18673      fi
18674      ;;
18675
18676    uts4*)
18677      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18678      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18679      hardcode_shlibpath_var_GCJ=no
18680      ;;
18681
18682    *)
18683      ld_shlibs_GCJ=no
18684      ;;
18685    esac
18686  fi
18687
18688{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18689echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18690test "$ld_shlibs_GCJ" = no && can_build_shared=no
18691
18692#
18693# Do we need to explicitly link libc?
18694#
18695case "x$archive_cmds_need_lc_GCJ" in
18696x|xyes)
18697  # Assume -lc should be added
18698  archive_cmds_need_lc_GCJ=yes
18699
18700  if test "$enable_shared" = yes && test "$GCC" = yes; then
18701    case $archive_cmds_GCJ in
18702    *'~'*)
18703      # FIXME: we may have to deal with multi-command sequences.
18704      ;;
18705    '$CC '*)
18706      # Test whether the compiler implicitly links with -lc since on some
18707      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18708      # to ld, don't add -lc before -lgcc.
18709      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18710echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18711      $rm conftest*
18712      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18713
18714      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18715  (eval $ac_compile) 2>&5
18716  ac_status=$?
18717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718  (exit $ac_status); } 2>conftest.err; then
18719        soname=conftest
18720        lib=conftest
18721        libobjs=conftest.$ac_objext
18722        deplibs=
18723        wl=$lt_prog_compiler_wl_GCJ
18724	pic_flag=$lt_prog_compiler_pic_GCJ
18725        compiler_flags=-v
18726        linker_flags=-v
18727        verstring=
18728        output_objdir=.
18729        libname=conftest
18730        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18731        allow_undefined_flag_GCJ=
18732        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18733  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18734  ac_status=$?
18735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736  (exit $ac_status); }
18737        then
18738	  archive_cmds_need_lc_GCJ=no
18739        else
18740	  archive_cmds_need_lc_GCJ=yes
18741        fi
18742        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18743      else
18744        cat conftest.err 1>&5
18745      fi
18746      $rm conftest*
18747      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18748echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18749      ;;
18750    esac
18751  fi
18752  ;;
18753esac
18754
18755{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18756echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18757library_names_spec=
18758libname_spec='lib$name'
18759soname_spec=
18760shrext_cmds=".so"
18761postinstall_cmds=
18762postuninstall_cmds=
18763finish_cmds=
18764finish_eval=
18765shlibpath_var=
18766shlibpath_overrides_runpath=unknown
18767version_type=none
18768dynamic_linker="$host_os ld.so"
18769sys_lib_dlsearch_path_spec="/lib /usr/lib"
18770
18771need_lib_prefix=unknown
18772hardcode_into_libs=no
18773
18774# when you set need_version to no, make sure it does not cause -set_version
18775# flags to be left without arguments
18776need_version=unknown
18777
18778case $host_os in
18779aix3*)
18780  version_type=linux
18781  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18782  shlibpath_var=LIBPATH
18783
18784  # AIX 3 has no versioning support, so we append a major version to the name.
18785  soname_spec='${libname}${release}${shared_ext}$major'
18786  ;;
18787
18788aix[4-9]*)
18789  version_type=linux
18790  need_lib_prefix=no
18791  need_version=no
18792  hardcode_into_libs=yes
18793  if test "$host_cpu" = ia64; then
18794    # AIX 5 supports IA64
18795    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18796    shlibpath_var=LD_LIBRARY_PATH
18797  else
18798    # With GCC up to 2.95.x, collect2 would create an import file
18799    # for dependence libraries.  The import file would start with
18800    # the line `#! .'.  This would cause the generated library to
18801    # depend on `.', always an invalid library.  This was fixed in
18802    # development snapshots of GCC prior to 3.0.
18803    case $host_os in
18804      aix4 | aix4.[01] | aix4.[01].*)
18805      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18806	   echo ' yes '
18807	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18808	:
18809      else
18810	can_build_shared=no
18811      fi
18812      ;;
18813    esac
18814    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18815    # soname into executable. Probably we can add versioning support to
18816    # collect2, so additional links can be useful in future.
18817    if test "$aix_use_runtimelinking" = yes; then
18818      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18819      # instead of lib<name>.a to let people know that these are not
18820      # typical AIX shared libraries.
18821      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18822    else
18823      # We preserve .a as extension for shared libraries through AIX4.2
18824      # and later when we are not doing run time linking.
18825      library_names_spec='${libname}${release}.a $libname.a'
18826      soname_spec='${libname}${release}${shared_ext}$major'
18827    fi
18828    shlibpath_var=LIBPATH
18829  fi
18830  ;;
18831
18832amigaos*)
18833  library_names_spec='$libname.ixlibrary $libname.a'
18834  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18835  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18836  ;;
18837
18838beos*)
18839  library_names_spec='${libname}${shared_ext}'
18840  dynamic_linker="$host_os ld.so"
18841  shlibpath_var=LIBRARY_PATH
18842  ;;
18843
18844bsdi[45]*)
18845  version_type=linux
18846  need_version=no
18847  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18848  soname_spec='${libname}${release}${shared_ext}$major'
18849  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18850  shlibpath_var=LD_LIBRARY_PATH
18851  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18852  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18853  # the default ld.so.conf also contains /usr/contrib/lib and
18854  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18855  # libtool to hard-code these into programs
18856  ;;
18857
18858cygwin* | mingw* | pw32*)
18859  version_type=windows
18860  shrext_cmds=".dll"
18861  need_version=no
18862  need_lib_prefix=no
18863
18864  case $GCC,$host_os in
18865  yes,cygwin* | yes,mingw* | yes,pw32*)
18866    library_names_spec='$libname.dll.a'
18867    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18868    postinstall_cmds='base_file=`basename \${file}`~
18869      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18870      dldir=$destdir/`dirname \$dlpath`~
18871      test -d \$dldir || mkdir -p \$dldir~
18872      $install_prog $dir/$dlname \$dldir/$dlname~
18873      chmod a+x \$dldir/$dlname'
18874    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18875      dlpath=$dir/\$dldll~
18876       $rm \$dlpath'
18877    shlibpath_overrides_runpath=yes
18878
18879    case $host_os in
18880    cygwin*)
18881      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18882      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18883      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18884      ;;
18885    mingw*)
18886      # MinGW DLLs use traditional 'lib' prefix
18887      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18888      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18889      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18890        # It is most probably a Windows format PATH printed by
18891        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18892        # path with ; separators, and with drive letters. We can handle the
18893        # drive letters (cygwin fileutils understands them), so leave them,
18894        # especially as we might pass files found there to a mingw objdump,
18895        # which wouldn't understand a cygwinified path. Ahh.
18896        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18897      else
18898        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18899      fi
18900      ;;
18901    pw32*)
18902      # pw32 DLLs use 'pw' prefix rather than 'lib'
18903      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18904      ;;
18905    esac
18906    ;;
18907
18908  *)
18909    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18910    ;;
18911  esac
18912  dynamic_linker='Win32 ld.exe'
18913  # FIXME: first we should search . and the directory the executable is in
18914  shlibpath_var=PATH
18915  ;;
18916
18917darwin* | rhapsody*)
18918  dynamic_linker="$host_os dyld"
18919  version_type=darwin
18920  need_lib_prefix=no
18921  need_version=no
18922  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18923  soname_spec='${libname}${release}${major}$shared_ext'
18924  shlibpath_overrides_runpath=yes
18925  shlibpath_var=DYLD_LIBRARY_PATH
18926  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18927
18928  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18929  ;;
18930
18931dgux*)
18932  version_type=linux
18933  need_lib_prefix=no
18934  need_version=no
18935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18936  soname_spec='${libname}${release}${shared_ext}$major'
18937  shlibpath_var=LD_LIBRARY_PATH
18938  ;;
18939
18940freebsd1*)
18941  dynamic_linker=no
18942  ;;
18943
18944freebsd* | dragonfly*)
18945  # DragonFly does not have aout.  When/if they implement a new
18946  # versioning mechanism, adjust this.
18947  if test -x /usr/bin/objformat; then
18948    objformat=`/usr/bin/objformat`
18949  else
18950    case $host_os in
18951    freebsd[123]*) objformat=aout ;;
18952    *) objformat=elf ;;
18953    esac
18954  fi
18955  version_type=freebsd-$objformat
18956  case $version_type in
18957    freebsd-elf*)
18958      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18959      need_version=no
18960      need_lib_prefix=no
18961      ;;
18962    freebsd-*)
18963      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18964      need_version=yes
18965      ;;
18966  esac
18967  shlibpath_var=LD_LIBRARY_PATH
18968  case $host_os in
18969  freebsd2*)
18970    shlibpath_overrides_runpath=yes
18971    ;;
18972  freebsd3.[01]* | freebsdelf3.[01]*)
18973    shlibpath_overrides_runpath=yes
18974    hardcode_into_libs=yes
18975    ;;
18976  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18977  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18978    shlibpath_overrides_runpath=no
18979    hardcode_into_libs=yes
18980    ;;
18981  *) # from 4.6 on, and DragonFly
18982    shlibpath_overrides_runpath=yes
18983    hardcode_into_libs=yes
18984    ;;
18985  esac
18986  ;;
18987
18988gnu*)
18989  version_type=linux
18990  need_lib_prefix=no
18991  need_version=no
18992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18993  soname_spec='${libname}${release}${shared_ext}$major'
18994  shlibpath_var=LD_LIBRARY_PATH
18995  hardcode_into_libs=yes
18996  ;;
18997
18998hpux9* | hpux10* | hpux11*)
18999  # Give a soname corresponding to the major version so that dld.sl refuses to
19000  # link against other versions.
19001  version_type=sunos
19002  need_lib_prefix=no
19003  need_version=no
19004  case $host_cpu in
19005  ia64*)
19006    shrext_cmds='.so'
19007    hardcode_into_libs=yes
19008    dynamic_linker="$host_os dld.so"
19009    shlibpath_var=LD_LIBRARY_PATH
19010    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19011    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19012    soname_spec='${libname}${release}${shared_ext}$major'
19013    if test "X$HPUX_IA64_MODE" = X32; then
19014      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19015    else
19016      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19017    fi
19018    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19019    ;;
19020   hppa*64*)
19021     shrext_cmds='.sl'
19022     hardcode_into_libs=yes
19023     dynamic_linker="$host_os dld.sl"
19024     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19025     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19027     soname_spec='${libname}${release}${shared_ext}$major'
19028     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19029     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19030     ;;
19031   *)
19032    shrext_cmds='.sl'
19033    dynamic_linker="$host_os dld.sl"
19034    shlibpath_var=SHLIB_PATH
19035    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19036    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19037    soname_spec='${libname}${release}${shared_ext}$major'
19038    ;;
19039  esac
19040  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19041  postinstall_cmds='chmod 555 $lib'
19042  ;;
19043
19044interix[3-9]*)
19045  version_type=linux
19046  need_lib_prefix=no
19047  need_version=no
19048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19049  soname_spec='${libname}${release}${shared_ext}$major'
19050  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19051  shlibpath_var=LD_LIBRARY_PATH
19052  shlibpath_overrides_runpath=no
19053  hardcode_into_libs=yes
19054  ;;
19055
19056irix5* | irix6* | nonstopux*)
19057  case $host_os in
19058    nonstopux*) version_type=nonstopux ;;
19059    *)
19060	if test "$lt_cv_prog_gnu_ld" = yes; then
19061		version_type=linux
19062	else
19063		version_type=irix
19064	fi ;;
19065  esac
19066  need_lib_prefix=no
19067  need_version=no
19068  soname_spec='${libname}${release}${shared_ext}$major'
19069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19070  case $host_os in
19071  irix5* | nonstopux*)
19072    libsuff= shlibsuff=
19073    ;;
19074  *)
19075    case $LD in # libtool.m4 will add one of these switches to LD
19076    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19077      libsuff= shlibsuff= libmagic=32-bit;;
19078    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19079      libsuff=32 shlibsuff=N32 libmagic=N32;;
19080    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19081      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19082    *) libsuff= shlibsuff= libmagic=never-match;;
19083    esac
19084    ;;
19085  esac
19086  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19087  shlibpath_overrides_runpath=no
19088  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19089  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19090  hardcode_into_libs=yes
19091  ;;
19092
19093# No shared lib support for Linux oldld, aout, or coff.
19094linux*oldld* | linux*aout* | linux*coff*)
19095  dynamic_linker=no
19096  ;;
19097
19098# This must be Linux ELF.
19099linux* | k*bsd*-gnu)
19100  version_type=linux
19101  need_lib_prefix=no
19102  need_version=no
19103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19104  soname_spec='${libname}${release}${shared_ext}$major'
19105  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19106  shlibpath_var=LD_LIBRARY_PATH
19107  shlibpath_overrides_runpath=no
19108  # This implies no fast_install, which is unacceptable.
19109  # Some rework will be needed to allow for fast_install
19110  # before this can be enabled.
19111  hardcode_into_libs=yes
19112
19113  # Append ld.so.conf contents to the search path
19114  if test -f /etc/ld.so.conf; then
19115    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19116    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19117  fi
19118
19119  # We used to test for /lib/ld.so.1 and disable shared libraries on
19120  # powerpc, because MkLinux only supported shared libraries with the
19121  # GNU dynamic linker.  Since this was broken with cross compilers,
19122  # most powerpc-linux boxes support dynamic linking these days and
19123  # people can always --disable-shared, the test was removed, and we
19124  # assume the GNU/Linux dynamic linker is in use.
19125  dynamic_linker='GNU/Linux ld.so'
19126  ;;
19127
19128netbsdelf*-gnu)
19129  version_type=linux
19130  need_lib_prefix=no
19131  need_version=no
19132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19133  soname_spec='${libname}${release}${shared_ext}$major'
19134  shlibpath_var=LD_LIBRARY_PATH
19135  shlibpath_overrides_runpath=no
19136  hardcode_into_libs=yes
19137  dynamic_linker='NetBSD ld.elf_so'
19138  ;;
19139
19140netbsd*)
19141  version_type=sunos
19142  need_lib_prefix=no
19143  need_version=no
19144  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19145    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19146    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19147    dynamic_linker='NetBSD (a.out) ld.so'
19148  else
19149    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19150    soname_spec='${libname}${release}${shared_ext}$major'
19151    dynamic_linker='NetBSD ld.elf_so'
19152  fi
19153  shlibpath_var=LD_LIBRARY_PATH
19154  shlibpath_overrides_runpath=yes
19155  hardcode_into_libs=yes
19156  ;;
19157
19158newsos6)
19159  version_type=linux
19160  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19161  shlibpath_var=LD_LIBRARY_PATH
19162  shlibpath_overrides_runpath=yes
19163  ;;
19164
19165nto-qnx*)
19166  version_type=linux
19167  need_lib_prefix=no
19168  need_version=no
19169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19170  soname_spec='${libname}${release}${shared_ext}$major'
19171  shlibpath_var=LD_LIBRARY_PATH
19172  shlibpath_overrides_runpath=yes
19173  ;;
19174
19175openbsd*)
19176  version_type=sunos
19177  sys_lib_dlsearch_path_spec="/usr/lib"
19178  need_lib_prefix=no
19179  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19180  case $host_os in
19181    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19182    *)                         need_version=no  ;;
19183  esac
19184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19185  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19186  shlibpath_var=LD_LIBRARY_PATH
19187  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19188    case $host_os in
19189      openbsd2.[89] | openbsd2.[89].*)
19190	shlibpath_overrides_runpath=no
19191	;;
19192      *)
19193	shlibpath_overrides_runpath=yes
19194	;;
19195      esac
19196  else
19197    shlibpath_overrides_runpath=yes
19198  fi
19199  ;;
19200
19201os2*)
19202  libname_spec='$name'
19203  shrext_cmds=".dll"
19204  need_lib_prefix=no
19205  library_names_spec='$libname${shared_ext} $libname.a'
19206  dynamic_linker='OS/2 ld.exe'
19207  shlibpath_var=LIBPATH
19208  ;;
19209
19210osf3* | osf4* | osf5*)
19211  version_type=osf
19212  need_lib_prefix=no
19213  need_version=no
19214  soname_spec='${libname}${release}${shared_ext}$major'
19215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19216  shlibpath_var=LD_LIBRARY_PATH
19217  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19218  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19219  ;;
19220
19221rdos*)
19222  dynamic_linker=no
19223  ;;
19224
19225solaris*)
19226  version_type=linux
19227  need_lib_prefix=no
19228  need_version=no
19229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19230  soname_spec='${libname}${release}${shared_ext}$major'
19231  shlibpath_var=LD_LIBRARY_PATH
19232  shlibpath_overrides_runpath=yes
19233  hardcode_into_libs=yes
19234  # ldd complains unless libraries are executable
19235  postinstall_cmds='chmod +x $lib'
19236  ;;
19237
19238sunos4*)
19239  version_type=sunos
19240  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19241  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19242  shlibpath_var=LD_LIBRARY_PATH
19243  shlibpath_overrides_runpath=yes
19244  if test "$with_gnu_ld" = yes; then
19245    need_lib_prefix=no
19246  fi
19247  need_version=yes
19248  ;;
19249
19250sysv4 | sysv4.3*)
19251  version_type=linux
19252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19253  soname_spec='${libname}${release}${shared_ext}$major'
19254  shlibpath_var=LD_LIBRARY_PATH
19255  case $host_vendor in
19256    sni)
19257      shlibpath_overrides_runpath=no
19258      need_lib_prefix=no
19259      export_dynamic_flag_spec='${wl}-Blargedynsym'
19260      runpath_var=LD_RUN_PATH
19261      ;;
19262    siemens)
19263      need_lib_prefix=no
19264      ;;
19265    motorola)
19266      need_lib_prefix=no
19267      need_version=no
19268      shlibpath_overrides_runpath=no
19269      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19270      ;;
19271  esac
19272  ;;
19273
19274sysv4*MP*)
19275  if test -d /usr/nec ;then
19276    version_type=linux
19277    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19278    soname_spec='$libname${shared_ext}.$major'
19279    shlibpath_var=LD_LIBRARY_PATH
19280  fi
19281  ;;
19282
19283sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19284  version_type=freebsd-elf
19285  need_lib_prefix=no
19286  need_version=no
19287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19288  soname_spec='${libname}${release}${shared_ext}$major'
19289  shlibpath_var=LD_LIBRARY_PATH
19290  hardcode_into_libs=yes
19291  if test "$with_gnu_ld" = yes; then
19292    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19293    shlibpath_overrides_runpath=no
19294  else
19295    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19296    shlibpath_overrides_runpath=yes
19297    case $host_os in
19298      sco3.2v5*)
19299        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19300	;;
19301    esac
19302  fi
19303  sys_lib_dlsearch_path_spec='/usr/lib'
19304  ;;
19305
19306uts4*)
19307  version_type=linux
19308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19309  soname_spec='${libname}${release}${shared_ext}$major'
19310  shlibpath_var=LD_LIBRARY_PATH
19311  ;;
19312
19313*)
19314  dynamic_linker=no
19315  ;;
19316esac
19317{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19318echo "${ECHO_T}$dynamic_linker" >&6; }
19319test "$dynamic_linker" = no && can_build_shared=no
19320
19321if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19322  echo $ECHO_N "(cached) $ECHO_C" >&6
19323else
19324  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19325fi
19326
19327sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19328if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19329  echo $ECHO_N "(cached) $ECHO_C" >&6
19330else
19331  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19332fi
19333
19334sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19335
19336variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19337if test "$GCC" = yes; then
19338  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19339fi
19340
19341{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19342echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19343hardcode_action_GCJ=
19344if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19345   test -n "$runpath_var_GCJ" || \
19346   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19347
19348  # We can hardcode non-existant directories.
19349  if test "$hardcode_direct_GCJ" != no &&
19350     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19351     # have to relink, otherwise we might link with an installed library
19352     # when we should be linking with a yet-to-be-installed one
19353     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19354     test "$hardcode_minus_L_GCJ" != no; then
19355    # Linking always hardcodes the temporary library directory.
19356    hardcode_action_GCJ=relink
19357  else
19358    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19359    hardcode_action_GCJ=immediate
19360  fi
19361else
19362  # We cannot hardcode anything, or else we can only hardcode existing
19363  # directories.
19364  hardcode_action_GCJ=unsupported
19365fi
19366{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19367echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19368
19369if test "$hardcode_action_GCJ" = relink; then
19370  # Fast installation is not supported
19371  enable_fast_install=no
19372elif test "$shlibpath_overrides_runpath" = yes ||
19373     test "$enable_shared" = no; then
19374  # Fast installation is not necessary
19375  enable_fast_install=needless
19376fi
19377
19378
19379# The else clause should only fire when bootstrapping the
19380# libtool distribution, otherwise you forgot to ship ltmain.sh
19381# with your package, and you will get complaints that there are
19382# no rules to generate ltmain.sh.
19383if test -f "$ltmain"; then
19384  # See if we are running on zsh, and set the options which allow our commands through
19385  # without removal of \ escapes.
19386  if test -n "${ZSH_VERSION+set}" ; then
19387    setopt NO_GLOB_SUBST
19388  fi
19389  # Now quote all the things that may contain metacharacters while being
19390  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19391  # variables and quote the copies for generation of the libtool script.
19392  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19393    SED SHELL STRIP \
19394    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19395    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19396    deplibs_check_method reload_flag reload_cmds need_locks \
19397    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19398    lt_cv_sys_global_symbol_to_c_name_address \
19399    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19400    old_postinstall_cmds old_postuninstall_cmds \
19401    compiler_GCJ \
19402    CC_GCJ \
19403    LD_GCJ \
19404    lt_prog_compiler_wl_GCJ \
19405    lt_prog_compiler_pic_GCJ \
19406    lt_prog_compiler_static_GCJ \
19407    lt_prog_compiler_no_builtin_flag_GCJ \
19408    export_dynamic_flag_spec_GCJ \
19409    thread_safe_flag_spec_GCJ \
19410    whole_archive_flag_spec_GCJ \
19411    enable_shared_with_static_runtimes_GCJ \
19412    old_archive_cmds_GCJ \
19413    old_archive_from_new_cmds_GCJ \
19414    predep_objects_GCJ \
19415    postdep_objects_GCJ \
19416    predeps_GCJ \
19417    postdeps_GCJ \
19418    compiler_lib_search_path_GCJ \
19419    compiler_lib_search_dirs_GCJ \
19420    archive_cmds_GCJ \
19421    archive_expsym_cmds_GCJ \
19422    postinstall_cmds_GCJ \
19423    postuninstall_cmds_GCJ \
19424    old_archive_from_expsyms_cmds_GCJ \
19425    allow_undefined_flag_GCJ \
19426    no_undefined_flag_GCJ \
19427    export_symbols_cmds_GCJ \
19428    hardcode_libdir_flag_spec_GCJ \
19429    hardcode_libdir_flag_spec_ld_GCJ \
19430    hardcode_libdir_separator_GCJ \
19431    hardcode_automatic_GCJ \
19432    module_cmds_GCJ \
19433    module_expsym_cmds_GCJ \
19434    lt_cv_prog_compiler_c_o_GCJ \
19435    fix_srcfile_path_GCJ \
19436    exclude_expsyms_GCJ \
19437    include_expsyms_GCJ; do
19438
19439    case $var in
19440    old_archive_cmds_GCJ | \
19441    old_archive_from_new_cmds_GCJ | \
19442    archive_cmds_GCJ | \
19443    archive_expsym_cmds_GCJ | \
19444    module_cmds_GCJ | \
19445    module_expsym_cmds_GCJ | \
19446    old_archive_from_expsyms_cmds_GCJ | \
19447    export_symbols_cmds_GCJ | \
19448    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19449    postinstall_cmds | postuninstall_cmds | \
19450    old_postinstall_cmds | old_postuninstall_cmds | \
19451    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19452      # Double-quote double-evaled strings.
19453      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19454      ;;
19455    *)
19456      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19457      ;;
19458    esac
19459  done
19460
19461  case $lt_echo in
19462  *'\$0 --fallback-echo"')
19463    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19464    ;;
19465  esac
19466
19467cfgfile="$ofile"
19468
19469  cat <<__EOF__ >> "$cfgfile"
19470# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19471
19472# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19473
19474# Shell to use when invoking shell scripts.
19475SHELL=$lt_SHELL
19476
19477# Whether or not to build shared libraries.
19478build_libtool_libs=$enable_shared
19479
19480# Whether or not to build static libraries.
19481build_old_libs=$enable_static
19482
19483# Whether or not to add -lc for building shared libraries.
19484build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19485
19486# Whether or not to disallow shared libs when runtime libs are static
19487allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19488
19489# Whether or not to optimize for fast installation.
19490fast_install=$enable_fast_install
19491
19492# The host system.
19493host_alias=$host_alias
19494host=$host
19495host_os=$host_os
19496
19497# The build system.
19498build_alias=$build_alias
19499build=$build
19500build_os=$build_os
19501
19502# An echo program that does not interpret backslashes.
19503echo=$lt_echo
19504
19505# The archiver.
19506AR=$lt_AR
19507AR_FLAGS=$lt_AR_FLAGS
19508
19509# A C compiler.
19510LTCC=$lt_LTCC
19511
19512# LTCC compiler flags.
19513LTCFLAGS=$lt_LTCFLAGS
19514
19515# A language-specific compiler.
19516CC=$lt_compiler_GCJ
19517
19518# Is the compiler the GNU C compiler?
19519with_gcc=$GCC_GCJ
19520
19521# An ERE matcher.
19522EGREP=$lt_EGREP
19523
19524# The linker used to build libraries.
19525LD=$lt_LD_GCJ
19526
19527# Whether we need hard or soft links.
19528LN_S=$lt_LN_S
19529
19530# A BSD-compatible nm program.
19531NM=$lt_NM
19532
19533# A symbol stripping program
19534STRIP=$lt_STRIP
19535
19536# Used to examine libraries when file_magic_cmd begins "file"
19537MAGIC_CMD=$MAGIC_CMD
19538
19539# Used on cygwin: DLL creation program.
19540DLLTOOL="$DLLTOOL"
19541
19542# Used on cygwin: object dumper.
19543OBJDUMP="$OBJDUMP"
19544
19545# Used on cygwin: assembler.
19546AS="$AS"
19547
19548# The name of the directory that contains temporary libtool files.
19549objdir=$objdir
19550
19551# How to create reloadable object files.
19552reload_flag=$lt_reload_flag
19553reload_cmds=$lt_reload_cmds
19554
19555# How to pass a linker flag through the compiler.
19556wl=$lt_lt_prog_compiler_wl_GCJ
19557
19558# Object file suffix (normally "o").
19559objext="$ac_objext"
19560
19561# Old archive suffix (normally "a").
19562libext="$libext"
19563
19564# Shared library suffix (normally ".so").
19565shrext_cmds='$shrext_cmds'
19566
19567# Executable file suffix (normally "").
19568exeext="$exeext"
19569
19570# Additional compiler flags for building library objects.
19571pic_flag=$lt_lt_prog_compiler_pic_GCJ
19572pic_mode=$pic_mode
19573
19574# What is the maximum length of a command?
19575max_cmd_len=$lt_cv_sys_max_cmd_len
19576
19577# Does compiler simultaneously support -c and -o options?
19578compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19579
19580# Must we lock files when doing compilation?
19581need_locks=$lt_need_locks
19582
19583# Do we need the lib prefix for modules?
19584need_lib_prefix=$need_lib_prefix
19585
19586# Do we need a version for libraries?
19587need_version=$need_version
19588
19589# Whether dlopen is supported.
19590dlopen_support=$enable_dlopen
19591
19592# Whether dlopen of programs is supported.
19593dlopen_self=$enable_dlopen_self
19594
19595# Whether dlopen of statically linked programs is supported.
19596dlopen_self_static=$enable_dlopen_self_static
19597
19598# Compiler flag to prevent dynamic linking.
19599link_static_flag=$lt_lt_prog_compiler_static_GCJ
19600
19601# Compiler flag to turn off builtin functions.
19602no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19603
19604# Compiler flag to allow reflexive dlopens.
19605export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19606
19607# Compiler flag to generate shared objects directly from archives.
19608whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19609
19610# Compiler flag to generate thread-safe objects.
19611thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19612
19613# Library versioning type.
19614version_type=$version_type
19615
19616# Format of library name prefix.
19617libname_spec=$lt_libname_spec
19618
19619# List of archive names.  First name is the real one, the rest are links.
19620# The last name is the one that the linker finds with -lNAME.
19621library_names_spec=$lt_library_names_spec
19622
19623# The coded name of the library, if different from the real name.
19624soname_spec=$lt_soname_spec
19625
19626# Commands used to build and install an old-style archive.
19627RANLIB=$lt_RANLIB
19628old_archive_cmds=$lt_old_archive_cmds_GCJ
19629old_postinstall_cmds=$lt_old_postinstall_cmds
19630old_postuninstall_cmds=$lt_old_postuninstall_cmds
19631
19632# Create an old-style archive from a shared archive.
19633old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19634
19635# Create a temporary old-style archive to link instead of a shared archive.
19636old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19637
19638# Commands used to build and install a shared archive.
19639archive_cmds=$lt_archive_cmds_GCJ
19640archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19641postinstall_cmds=$lt_postinstall_cmds
19642postuninstall_cmds=$lt_postuninstall_cmds
19643
19644# Commands used to build a loadable module (assumed same as above if empty)
19645module_cmds=$lt_module_cmds_GCJ
19646module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19647
19648# Commands to strip libraries.
19649old_striplib=$lt_old_striplib
19650striplib=$lt_striplib
19651
19652# Dependencies to place before the objects being linked to create a
19653# shared library.
19654predep_objects=$lt_predep_objects_GCJ
19655
19656# Dependencies to place after the objects being linked to create a
19657# shared library.
19658postdep_objects=$lt_postdep_objects_GCJ
19659
19660# Dependencies to place before the objects being linked to create a
19661# shared library.
19662predeps=$lt_predeps_GCJ
19663
19664# Dependencies to place after the objects being linked to create a
19665# shared library.
19666postdeps=$lt_postdeps_GCJ
19667
19668# The directories searched by this compiler when creating a shared
19669# library
19670compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19671
19672# The library search path used internally by the compiler when linking
19673# a shared library.
19674compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19675
19676# Method to check whether dependent libraries are shared objects.
19677deplibs_check_method=$lt_deplibs_check_method
19678
19679# Command to use when deplibs_check_method == file_magic.
19680file_magic_cmd=$lt_file_magic_cmd
19681
19682# Flag that allows shared libraries with undefined symbols to be built.
19683allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19684
19685# Flag that forces no undefined symbols.
19686no_undefined_flag=$lt_no_undefined_flag_GCJ
19687
19688# Commands used to finish a libtool library installation in a directory.
19689finish_cmds=$lt_finish_cmds
19690
19691# Same as above, but a single script fragment to be evaled but not shown.
19692finish_eval=$lt_finish_eval
19693
19694# Take the output of nm and produce a listing of raw symbols and C names.
19695global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19696
19697# Transform the output of nm in a proper C declaration
19698global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19699
19700# Transform the output of nm in a C name address pair
19701global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19702
19703# This is the shared library runtime path variable.
19704runpath_var=$runpath_var
19705
19706# This is the shared library path variable.
19707shlibpath_var=$shlibpath_var
19708
19709# Is shlibpath searched before the hard-coded library search path?
19710shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19711
19712# How to hardcode a shared library path into an executable.
19713hardcode_action=$hardcode_action_GCJ
19714
19715# Whether we should hardcode library paths into libraries.
19716hardcode_into_libs=$hardcode_into_libs
19717
19718# Flag to hardcode \$libdir into a binary during linking.
19719# This must work even if \$libdir does not exist.
19720hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19721
19722# If ld is used when linking, flag to hardcode \$libdir into
19723# a binary during linking. This must work even if \$libdir does
19724# not exist.
19725hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19726
19727# Whether we need a single -rpath flag with a separated argument.
19728hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19729
19730# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19731# resulting binary.
19732hardcode_direct=$hardcode_direct_GCJ
19733
19734# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19735# resulting binary.
19736hardcode_minus_L=$hardcode_minus_L_GCJ
19737
19738# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19739# the resulting binary.
19740hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19741
19742# Set to yes if building a shared library automatically hardcodes DIR into the library
19743# and all subsequent libraries and executables linked against it.
19744hardcode_automatic=$hardcode_automatic_GCJ
19745
19746# Variables whose values should be saved in libtool wrapper scripts and
19747# restored at relink time.
19748variables_saved_for_relink="$variables_saved_for_relink"
19749
19750# Whether libtool must link a program against all its dependency libraries.
19751link_all_deplibs=$link_all_deplibs_GCJ
19752
19753# Compile-time system search path for libraries
19754sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19755
19756# Run-time system search path for libraries
19757sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19758
19759# Fix the shell variable \$srcfile for the compiler.
19760fix_srcfile_path=$lt_fix_srcfile_path
19761
19762# Set to yes if exported symbols are required.
19763always_export_symbols=$always_export_symbols_GCJ
19764
19765# The commands to list exported symbols.
19766export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19767
19768# The commands to extract the exported symbol list from a shared archive.
19769extract_expsyms_cmds=$lt_extract_expsyms_cmds
19770
19771# Symbols that should not be listed in the preloaded symbols.
19772exclude_expsyms=$lt_exclude_expsyms_GCJ
19773
19774# Symbols that must always be exported.
19775include_expsyms=$lt_include_expsyms_GCJ
19776
19777# ### END LIBTOOL TAG CONFIG: $tagname
19778
19779__EOF__
19780
19781
19782else
19783  # If there is no Makefile yet, we rely on a make rule to execute
19784  # `config.status --recheck' to rerun these tests and create the
19785  # libtool script then.
19786  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19787  if test -f "$ltmain_in"; then
19788    test -f Makefile && make "$ltmain"
19789  fi
19790fi
19791
19792
19793ac_ext=c
19794ac_cpp='$CPP $CPPFLAGS'
19795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19797ac_compiler_gnu=$ac_cv_c_compiler_gnu
19798
19799CC="$lt_save_CC"
19800
19801	else
19802	  tagname=""
19803	fi
19804	;;
19805
19806      RC)
19807
19808
19809# Source file extension for RC test sources.
19810ac_ext=rc
19811
19812# Object file extension for compiled RC test sources.
19813objext=o
19814objext_RC=$objext
19815
19816# Code to be used in simple compile tests
19817lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19818
19819# Code to be used in simple link tests
19820lt_simple_link_test_code="$lt_simple_compile_test_code"
19821
19822# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19823
19824# If no C compiler was specified, use CC.
19825LTCC=${LTCC-"$CC"}
19826
19827# If no C compiler flags were specified, use CFLAGS.
19828LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19829
19830# Allow CC to be a program name with arguments.
19831compiler=$CC
19832
19833
19834# save warnings/boilerplate of simple test code
19835ac_outfile=conftest.$ac_objext
19836echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19837eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19838_lt_compiler_boilerplate=`cat conftest.err`
19839$rm conftest*
19840
19841ac_outfile=conftest.$ac_objext
19842echo "$lt_simple_link_test_code" >conftest.$ac_ext
19843eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19844_lt_linker_boilerplate=`cat conftest.err`
19845$rm -r conftest*
19846
19847
19848# Allow CC to be a program name with arguments.
19849lt_save_CC="$CC"
19850CC=${RC-"windres"}
19851compiler=$CC
19852compiler_RC=$CC
19853for cc_temp in $compiler""; do
19854  case $cc_temp in
19855    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19856    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19857    \-*) ;;
19858    *) break;;
19859  esac
19860done
19861cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19862
19863lt_cv_prog_compiler_c_o_RC=yes
19864
19865# The else clause should only fire when bootstrapping the
19866# libtool distribution, otherwise you forgot to ship ltmain.sh
19867# with your package, and you will get complaints that there are
19868# no rules to generate ltmain.sh.
19869if test -f "$ltmain"; then
19870  # See if we are running on zsh, and set the options which allow our commands through
19871  # without removal of \ escapes.
19872  if test -n "${ZSH_VERSION+set}" ; then
19873    setopt NO_GLOB_SUBST
19874  fi
19875  # Now quote all the things that may contain metacharacters while being
19876  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19877  # variables and quote the copies for generation of the libtool script.
19878  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19879    SED SHELL STRIP \
19880    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19881    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19882    deplibs_check_method reload_flag reload_cmds need_locks \
19883    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19884    lt_cv_sys_global_symbol_to_c_name_address \
19885    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19886    old_postinstall_cmds old_postuninstall_cmds \
19887    compiler_RC \
19888    CC_RC \
19889    LD_RC \
19890    lt_prog_compiler_wl_RC \
19891    lt_prog_compiler_pic_RC \
19892    lt_prog_compiler_static_RC \
19893    lt_prog_compiler_no_builtin_flag_RC \
19894    export_dynamic_flag_spec_RC \
19895    thread_safe_flag_spec_RC \
19896    whole_archive_flag_spec_RC \
19897    enable_shared_with_static_runtimes_RC \
19898    old_archive_cmds_RC \
19899    old_archive_from_new_cmds_RC \
19900    predep_objects_RC \
19901    postdep_objects_RC \
19902    predeps_RC \
19903    postdeps_RC \
19904    compiler_lib_search_path_RC \
19905    compiler_lib_search_dirs_RC \
19906    archive_cmds_RC \
19907    archive_expsym_cmds_RC \
19908    postinstall_cmds_RC \
19909    postuninstall_cmds_RC \
19910    old_archive_from_expsyms_cmds_RC \
19911    allow_undefined_flag_RC \
19912    no_undefined_flag_RC \
19913    export_symbols_cmds_RC \
19914    hardcode_libdir_flag_spec_RC \
19915    hardcode_libdir_flag_spec_ld_RC \
19916    hardcode_libdir_separator_RC \
19917    hardcode_automatic_RC \
19918    module_cmds_RC \
19919    module_expsym_cmds_RC \
19920    lt_cv_prog_compiler_c_o_RC \
19921    fix_srcfile_path_RC \
19922    exclude_expsyms_RC \
19923    include_expsyms_RC; do
19924
19925    case $var in
19926    old_archive_cmds_RC | \
19927    old_archive_from_new_cmds_RC | \
19928    archive_cmds_RC | \
19929    archive_expsym_cmds_RC | \
19930    module_cmds_RC | \
19931    module_expsym_cmds_RC | \
19932    old_archive_from_expsyms_cmds_RC | \
19933    export_symbols_cmds_RC | \
19934    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19935    postinstall_cmds | postuninstall_cmds | \
19936    old_postinstall_cmds | old_postuninstall_cmds | \
19937    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19938      # Double-quote double-evaled strings.
19939      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19940      ;;
19941    *)
19942      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19943      ;;
19944    esac
19945  done
19946
19947  case $lt_echo in
19948  *'\$0 --fallback-echo"')
19949    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19950    ;;
19951  esac
19952
19953cfgfile="$ofile"
19954
19955  cat <<__EOF__ >> "$cfgfile"
19956# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19957
19958# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19959
19960# Shell to use when invoking shell scripts.
19961SHELL=$lt_SHELL
19962
19963# Whether or not to build shared libraries.
19964build_libtool_libs=$enable_shared
19965
19966# Whether or not to build static libraries.
19967build_old_libs=$enable_static
19968
19969# Whether or not to add -lc for building shared libraries.
19970build_libtool_need_lc=$archive_cmds_need_lc_RC
19971
19972# Whether or not to disallow shared libs when runtime libs are static
19973allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19974
19975# Whether or not to optimize for fast installation.
19976fast_install=$enable_fast_install
19977
19978# The host system.
19979host_alias=$host_alias
19980host=$host
19981host_os=$host_os
19982
19983# The build system.
19984build_alias=$build_alias
19985build=$build
19986build_os=$build_os
19987
19988# An echo program that does not interpret backslashes.
19989echo=$lt_echo
19990
19991# The archiver.
19992AR=$lt_AR
19993AR_FLAGS=$lt_AR_FLAGS
19994
19995# A C compiler.
19996LTCC=$lt_LTCC
19997
19998# LTCC compiler flags.
19999LTCFLAGS=$lt_LTCFLAGS
20000
20001# A language-specific compiler.
20002CC=$lt_compiler_RC
20003
20004# Is the compiler the GNU C compiler?
20005with_gcc=$GCC_RC
20006
20007# An ERE matcher.
20008EGREP=$lt_EGREP
20009
20010# The linker used to build libraries.
20011LD=$lt_LD_RC
20012
20013# Whether we need hard or soft links.
20014LN_S=$lt_LN_S
20015
20016# A BSD-compatible nm program.
20017NM=$lt_NM
20018
20019# A symbol stripping program
20020STRIP=$lt_STRIP
20021
20022# Used to examine libraries when file_magic_cmd begins "file"
20023MAGIC_CMD=$MAGIC_CMD
20024
20025# Used on cygwin: DLL creation program.
20026DLLTOOL="$DLLTOOL"
20027
20028# Used on cygwin: object dumper.
20029OBJDUMP="$OBJDUMP"
20030
20031# Used on cygwin: assembler.
20032AS="$AS"
20033
20034# The name of the directory that contains temporary libtool files.
20035objdir=$objdir
20036
20037# How to create reloadable object files.
20038reload_flag=$lt_reload_flag
20039reload_cmds=$lt_reload_cmds
20040
20041# How to pass a linker flag through the compiler.
20042wl=$lt_lt_prog_compiler_wl_RC
20043
20044# Object file suffix (normally "o").
20045objext="$ac_objext"
20046
20047# Old archive suffix (normally "a").
20048libext="$libext"
20049
20050# Shared library suffix (normally ".so").
20051shrext_cmds='$shrext_cmds'
20052
20053# Executable file suffix (normally "").
20054exeext="$exeext"
20055
20056# Additional compiler flags for building library objects.
20057pic_flag=$lt_lt_prog_compiler_pic_RC
20058pic_mode=$pic_mode
20059
20060# What is the maximum length of a command?
20061max_cmd_len=$lt_cv_sys_max_cmd_len
20062
20063# Does compiler simultaneously support -c and -o options?
20064compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20065
20066# Must we lock files when doing compilation?
20067need_locks=$lt_need_locks
20068
20069# Do we need the lib prefix for modules?
20070need_lib_prefix=$need_lib_prefix
20071
20072# Do we need a version for libraries?
20073need_version=$need_version
20074
20075# Whether dlopen is supported.
20076dlopen_support=$enable_dlopen
20077
20078# Whether dlopen of programs is supported.
20079dlopen_self=$enable_dlopen_self
20080
20081# Whether dlopen of statically linked programs is supported.
20082dlopen_self_static=$enable_dlopen_self_static
20083
20084# Compiler flag to prevent dynamic linking.
20085link_static_flag=$lt_lt_prog_compiler_static_RC
20086
20087# Compiler flag to turn off builtin functions.
20088no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20089
20090# Compiler flag to allow reflexive dlopens.
20091export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20092
20093# Compiler flag to generate shared objects directly from archives.
20094whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20095
20096# Compiler flag to generate thread-safe objects.
20097thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20098
20099# Library versioning type.
20100version_type=$version_type
20101
20102# Format of library name prefix.
20103libname_spec=$lt_libname_spec
20104
20105# List of archive names.  First name is the real one, the rest are links.
20106# The last name is the one that the linker finds with -lNAME.
20107library_names_spec=$lt_library_names_spec
20108
20109# The coded name of the library, if different from the real name.
20110soname_spec=$lt_soname_spec
20111
20112# Commands used to build and install an old-style archive.
20113RANLIB=$lt_RANLIB
20114old_archive_cmds=$lt_old_archive_cmds_RC
20115old_postinstall_cmds=$lt_old_postinstall_cmds
20116old_postuninstall_cmds=$lt_old_postuninstall_cmds
20117
20118# Create an old-style archive from a shared archive.
20119old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20120
20121# Create a temporary old-style archive to link instead of a shared archive.
20122old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20123
20124# Commands used to build and install a shared archive.
20125archive_cmds=$lt_archive_cmds_RC
20126archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20127postinstall_cmds=$lt_postinstall_cmds
20128postuninstall_cmds=$lt_postuninstall_cmds
20129
20130# Commands used to build a loadable module (assumed same as above if empty)
20131module_cmds=$lt_module_cmds_RC
20132module_expsym_cmds=$lt_module_expsym_cmds_RC
20133
20134# Commands to strip libraries.
20135old_striplib=$lt_old_striplib
20136striplib=$lt_striplib
20137
20138# Dependencies to place before the objects being linked to create a
20139# shared library.
20140predep_objects=$lt_predep_objects_RC
20141
20142# Dependencies to place after the objects being linked to create a
20143# shared library.
20144postdep_objects=$lt_postdep_objects_RC
20145
20146# Dependencies to place before the objects being linked to create a
20147# shared library.
20148predeps=$lt_predeps_RC
20149
20150# Dependencies to place after the objects being linked to create a
20151# shared library.
20152postdeps=$lt_postdeps_RC
20153
20154# The directories searched by this compiler when creating a shared
20155# library
20156compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20157
20158# The library search path used internally by the compiler when linking
20159# a shared library.
20160compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20161
20162# Method to check whether dependent libraries are shared objects.
20163deplibs_check_method=$lt_deplibs_check_method
20164
20165# Command to use when deplibs_check_method == file_magic.
20166file_magic_cmd=$lt_file_magic_cmd
20167
20168# Flag that allows shared libraries with undefined symbols to be built.
20169allow_undefined_flag=$lt_allow_undefined_flag_RC
20170
20171# Flag that forces no undefined symbols.
20172no_undefined_flag=$lt_no_undefined_flag_RC
20173
20174# Commands used to finish a libtool library installation in a directory.
20175finish_cmds=$lt_finish_cmds
20176
20177# Same as above, but a single script fragment to be evaled but not shown.
20178finish_eval=$lt_finish_eval
20179
20180# Take the output of nm and produce a listing of raw symbols and C names.
20181global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20182
20183# Transform the output of nm in a proper C declaration
20184global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20185
20186# Transform the output of nm in a C name address pair
20187global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20188
20189# This is the shared library runtime path variable.
20190runpath_var=$runpath_var
20191
20192# This is the shared library path variable.
20193shlibpath_var=$shlibpath_var
20194
20195# Is shlibpath searched before the hard-coded library search path?
20196shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20197
20198# How to hardcode a shared library path into an executable.
20199hardcode_action=$hardcode_action_RC
20200
20201# Whether we should hardcode library paths into libraries.
20202hardcode_into_libs=$hardcode_into_libs
20203
20204# Flag to hardcode \$libdir into a binary during linking.
20205# This must work even if \$libdir does not exist.
20206hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20207
20208# If ld is used when linking, flag to hardcode \$libdir into
20209# a binary during linking. This must work even if \$libdir does
20210# not exist.
20211hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20212
20213# Whether we need a single -rpath flag with a separated argument.
20214hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20215
20216# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20217# resulting binary.
20218hardcode_direct=$hardcode_direct_RC
20219
20220# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20221# resulting binary.
20222hardcode_minus_L=$hardcode_minus_L_RC
20223
20224# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20225# the resulting binary.
20226hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20227
20228# Set to yes if building a shared library automatically hardcodes DIR into the library
20229# and all subsequent libraries and executables linked against it.
20230hardcode_automatic=$hardcode_automatic_RC
20231
20232# Variables whose values should be saved in libtool wrapper scripts and
20233# restored at relink time.
20234variables_saved_for_relink="$variables_saved_for_relink"
20235
20236# Whether libtool must link a program against all its dependency libraries.
20237link_all_deplibs=$link_all_deplibs_RC
20238
20239# Compile-time system search path for libraries
20240sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20241
20242# Run-time system search path for libraries
20243sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20244
20245# Fix the shell variable \$srcfile for the compiler.
20246fix_srcfile_path=$lt_fix_srcfile_path
20247
20248# Set to yes if exported symbols are required.
20249always_export_symbols=$always_export_symbols_RC
20250
20251# The commands to list exported symbols.
20252export_symbols_cmds=$lt_export_symbols_cmds_RC
20253
20254# The commands to extract the exported symbol list from a shared archive.
20255extract_expsyms_cmds=$lt_extract_expsyms_cmds
20256
20257# Symbols that should not be listed in the preloaded symbols.
20258exclude_expsyms=$lt_exclude_expsyms_RC
20259
20260# Symbols that must always be exported.
20261include_expsyms=$lt_include_expsyms_RC
20262
20263# ### END LIBTOOL TAG CONFIG: $tagname
20264
20265__EOF__
20266
20267
20268else
20269  # If there is no Makefile yet, we rely on a make rule to execute
20270  # `config.status --recheck' to rerun these tests and create the
20271  # libtool script then.
20272  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20273  if test -f "$ltmain_in"; then
20274    test -f Makefile && make "$ltmain"
20275  fi
20276fi
20277
20278
20279ac_ext=c
20280ac_cpp='$CPP $CPPFLAGS'
20281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20283ac_compiler_gnu=$ac_cv_c_compiler_gnu
20284
20285CC="$lt_save_CC"
20286
20287	;;
20288
20289      *)
20290	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20291echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20292   { (exit 1); exit 1; }; }
20293	;;
20294      esac
20295
20296      # Append the new tag name to the list of available tags.
20297      if test -n "$tagname" ; then
20298      available_tags="$available_tags $tagname"
20299    fi
20300    fi
20301  done
20302  IFS="$lt_save_ifs"
20303
20304  # Now substitute the updated list of available tags.
20305  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20306    mv "${ofile}T" "$ofile"
20307    chmod +x "$ofile"
20308  else
20309    rm -f "${ofile}T"
20310    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20311echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20312   { (exit 1); exit 1; }; }
20313  fi
20314fi
20315
20316
20317
20318# This can be used to rebuild libtool when needed
20319LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20320
20321# Always use our own libtool.
20322LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20323
20324# Prevent multiple expansion
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346		test "x$PERL" = x && # Extract the first word of "perl$EXEEXT", so it can be a program name with args.
20347set dummy perl$EXEEXT; ac_word=$2
20348{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20350if test "${ac_cv_path_PERL+set}" = set; then
20351  echo $ECHO_N "(cached) $ECHO_C" >&6
20352else
20353  case $PERL in
20354  [\\/]* | ?:[\\/]*)
20355  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20356  ;;
20357  *)
20358  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20359for as_dir in $PATH
20360do
20361  IFS=$as_save_IFS
20362  test -z "$as_dir" && as_dir=.
20363  for ac_exec_ext in '' $ac_executable_extensions; do
20364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20365    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20366    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20367    break 2
20368  fi
20369done
20370done
20371IFS=$as_save_IFS
20372
20373  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl$EXEEXT"
20374  ;;
20375esac
20376fi
20377PERL=$ac_cv_path_PERL
20378if test -n "$PERL"; then
20379  { echo "$as_me:$LINENO: result: $PERL" >&5
20380echo "${ECHO_T}$PERL" >&6; }
20381else
20382  { echo "$as_me:$LINENO: result: no" >&5
20383echo "${ECHO_T}no" >&6; }
20384fi
20385
20386
20387	test "x$PERL" = x && { { echo "$as_me:$LINENO: error: no acceptable Perl found in \$PATH" >&5
20388echo "$as_me: error: no acceptable Perl found in \$PATH" >&2;}
20389   { (exit 1); exit 1; }; }
20390
20391
20392test x$GREP = x && # Extract the first word of "grep$EXEEXT", so it can be a program name with args.
20393set dummy grep$EXEEXT; ac_word=$2
20394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20396if test "${ac_cv_path_GREP+set}" = set; then
20397  echo $ECHO_N "(cached) $ECHO_C" >&6
20398else
20399  case $GREP in
20400  [\\/]* | ?:[\\/]*)
20401  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20402  ;;
20403  *)
20404  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20405for as_dir in $PATH
20406do
20407  IFS=$as_save_IFS
20408  test -z "$as_dir" && as_dir=.
20409  for ac_exec_ext in '' $ac_executable_extensions; do
20410  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20411    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20412    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20413    break 2
20414  fi
20415done
20416done
20417IFS=$as_save_IFS
20418
20419  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep$EXEEXT"
20420  ;;
20421esac
20422fi
20423GREP=$ac_cv_path_GREP
20424if test -n "$GREP"; then
20425  { echo "$as_me:$LINENO: result: $GREP" >&5
20426echo "${ECHO_T}$GREP" >&6; }
20427else
20428  { echo "$as_me:$LINENO: result: no" >&5
20429echo "${ECHO_T}no" >&6; }
20430fi
20431
20432
20433test x$GREP = x && { { echo "$as_me:$LINENO: error: no acceptable grep found in \$PATH" >&5
20434echo "$as_me: error: no acceptable grep found in \$PATH" >&2;}
20435   { (exit 1); exit 1; }; }
20436
20437
20438test x$PS = x && # Extract the first word of "ps$EXEEXT", so it can be a program name with args.
20439set dummy ps$EXEEXT; ac_word=$2
20440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20442if test "${ac_cv_path_PS+set}" = set; then
20443  echo $ECHO_N "(cached) $ECHO_C" >&6
20444else
20445  case $PS in
20446  [\\/]* | ?:[\\/]*)
20447  ac_cv_path_PS="$PS" # Let the user override the test with a path.
20448  ;;
20449  *)
20450  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20451for as_dir in $PATH
20452do
20453  IFS=$as_save_IFS
20454  test -z "$as_dir" && as_dir=.
20455  for ac_exec_ext in '' $ac_executable_extensions; do
20456  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20457    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
20458    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20459    break 2
20460  fi
20461done
20462done
20463IFS=$as_save_IFS
20464
20465  test -z "$ac_cv_path_PS" && ac_cv_path_PS="ps$EXEEXT"
20466  ;;
20467esac
20468fi
20469PS=$ac_cv_path_PS
20470if test -n "$PS"; then
20471  { echo "$as_me:$LINENO: result: $PS" >&5
20472echo "${ECHO_T}$PS" >&6; }
20473else
20474  { echo "$as_me:$LINENO: result: no" >&5
20475echo "${ECHO_T}no" >&6; }
20476fi
20477
20478
20479test x$PS = x && { { echo "$as_me:$LINENO: error: no acceptable ps found in \$PATH" >&5
20480echo "$as_me: error: no acceptable ps found in \$PATH" >&2;}
20481   { (exit 1); exit 1; }; }
20482
20483
20484if test "x$CC" != xcc; then
20485  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20486echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
20487else
20488  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20489echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
20490fi
20491set dummy $CC; ac_cc=`echo $2 |
20492		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20493if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20494  echo $ECHO_N "(cached) $ECHO_C" >&6
20495else
20496  cat >conftest.$ac_ext <<_ACEOF
20497/* confdefs.h.  */
20498_ACEOF
20499cat confdefs.h >>conftest.$ac_ext
20500cat >>conftest.$ac_ext <<_ACEOF
20501/* end confdefs.h.  */
20502
20503int
20504main ()
20505{
20506
20507  ;
20508  return 0;
20509}
20510_ACEOF
20511# Make sure it works both with $CC and with simple cc.
20512# We do the test twice because some compilers refuse to overwrite an
20513# existing .o file with -o, though they will create one.
20514ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20515rm -f conftest2.*
20516if { (case "(($ac_try" in
20517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518  *) ac_try_echo=$ac_try;;
20519esac
20520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521  (eval "$ac_try") 2>&5
20522  ac_status=$?
20523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524  (exit $ac_status); } &&
20525   test -f conftest2.$ac_objext && { (case "(($ac_try" in
20526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527  *) ac_try_echo=$ac_try;;
20528esac
20529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530  (eval "$ac_try") 2>&5
20531  ac_status=$?
20532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533  (exit $ac_status); };
20534then
20535  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20536  if test "x$CC" != xcc; then
20537    # Test first that cc exists at all.
20538    if { ac_try='cc -c conftest.$ac_ext >&5'
20539  { (case "(($ac_try" in
20540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541  *) ac_try_echo=$ac_try;;
20542esac
20543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544  (eval "$ac_try") 2>&5
20545  ac_status=$?
20546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547  (exit $ac_status); }; }; then
20548      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20549      rm -f conftest2.*
20550      if { (case "(($ac_try" in
20551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552  *) ac_try_echo=$ac_try;;
20553esac
20554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20555  (eval "$ac_try") 2>&5
20556  ac_status=$?
20557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558  (exit $ac_status); } &&
20559	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
20560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561  *) ac_try_echo=$ac_try;;
20562esac
20563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564  (eval "$ac_try") 2>&5
20565  ac_status=$?
20566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567  (exit $ac_status); };
20568      then
20569	# cc works too.
20570	:
20571      else
20572	# cc exists but doesn't like -o.
20573	eval ac_cv_prog_cc_${ac_cc}_c_o=no
20574      fi
20575    fi
20576  fi
20577else
20578  eval ac_cv_prog_cc_${ac_cc}_c_o=no
20579fi
20580rm -f core conftest*
20581
20582fi
20583if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20584  { echo "$as_me:$LINENO: result: yes" >&5
20585echo "${ECHO_T}yes" >&6; }
20586else
20587  { echo "$as_me:$LINENO: result: no" >&5
20588echo "${ECHO_T}no" >&6; }
20589
20590cat >>confdefs.h <<\_ACEOF
20591#define NO_MINUS_C_MINUS_O 1
20592_ACEOF
20593
20594fi
20595
20596# FIXME: we rely on the cache variable name because
20597# there is no other way.
20598set dummy $CC
20599ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20600if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
20601   # Losing compiler, so override with the script.
20602   # FIXME: It is wrong to rewrite CC.
20603   # But if we don't then we get into trouble of one sort or another.
20604   # A longer-term fix would be to have automake use am__CC in this case,
20605   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20606   CC="$am_aux_dir/compile $CC"
20607fi
20608
20609
20610
20611
20612
20613
20614
20615
20616ac_header_dirent=no
20617for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20618  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20619{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20620echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20622  echo $ECHO_N "(cached) $ECHO_C" >&6
20623else
20624  cat >conftest.$ac_ext <<_ACEOF
20625/* confdefs.h.  */
20626_ACEOF
20627cat confdefs.h >>conftest.$ac_ext
20628cat >>conftest.$ac_ext <<_ACEOF
20629/* end confdefs.h.  */
20630#include <sys/types.h>
20631#include <$ac_hdr>
20632
20633int
20634main ()
20635{
20636if ((DIR *) 0)
20637return 0;
20638  ;
20639  return 0;
20640}
20641_ACEOF
20642rm -f conftest.$ac_objext
20643if { (ac_try="$ac_compile"
20644case "(($ac_try" in
20645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646  *) ac_try_echo=$ac_try;;
20647esac
20648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649  (eval "$ac_compile") 2>conftest.er1
20650  ac_status=$?
20651  grep -v '^ *+' conftest.er1 >conftest.err
20652  rm -f conftest.er1
20653  cat conftest.err >&5
20654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655  (exit $ac_status); } && {
20656	 test -z "$ac_c_werror_flag" ||
20657	 test ! -s conftest.err
20658       } && test -s conftest.$ac_objext; then
20659  eval "$as_ac_Header=yes"
20660else
20661  echo "$as_me: failed program was:" >&5
20662sed 's/^/| /' conftest.$ac_ext >&5
20663
20664	eval "$as_ac_Header=no"
20665fi
20666
20667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20668fi
20669ac_res=`eval echo '${'$as_ac_Header'}'`
20670	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20671echo "${ECHO_T}$ac_res" >&6; }
20672if test `eval echo '${'$as_ac_Header'}'` = yes; then
20673  cat >>confdefs.h <<_ACEOF
20674#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20675_ACEOF
20676
20677ac_header_dirent=$ac_hdr; break
20678fi
20679
20680done
20681# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20682if test $ac_header_dirent = dirent.h; then
20683  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20684echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20685if test "${ac_cv_search_opendir+set}" = set; then
20686  echo $ECHO_N "(cached) $ECHO_C" >&6
20687else
20688  ac_func_search_save_LIBS=$LIBS
20689cat >conftest.$ac_ext <<_ACEOF
20690/* confdefs.h.  */
20691_ACEOF
20692cat confdefs.h >>conftest.$ac_ext
20693cat >>conftest.$ac_ext <<_ACEOF
20694/* end confdefs.h.  */
20695
20696/* Override any GCC internal prototype to avoid an error.
20697   Use char because int might match the return type of a GCC
20698   builtin and then its argument prototype would still apply.  */
20699#ifdef __cplusplus
20700extern "C"
20701#endif
20702char opendir ();
20703int
20704main ()
20705{
20706return opendir ();
20707  ;
20708  return 0;
20709}
20710_ACEOF
20711for ac_lib in '' dir; do
20712  if test -z "$ac_lib"; then
20713    ac_res="none required"
20714  else
20715    ac_res=-l$ac_lib
20716    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20717  fi
20718  rm -f conftest.$ac_objext conftest$ac_exeext
20719if { (ac_try="$ac_link"
20720case "(($ac_try" in
20721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722  *) ac_try_echo=$ac_try;;
20723esac
20724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725  (eval "$ac_link") 2>conftest.er1
20726  ac_status=$?
20727  grep -v '^ *+' conftest.er1 >conftest.err
20728  rm -f conftest.er1
20729  cat conftest.err >&5
20730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731  (exit $ac_status); } && {
20732	 test -z "$ac_c_werror_flag" ||
20733	 test ! -s conftest.err
20734       } && test -s conftest$ac_exeext &&
20735       $as_test_x conftest$ac_exeext; then
20736  ac_cv_search_opendir=$ac_res
20737else
20738  echo "$as_me: failed program was:" >&5
20739sed 's/^/| /' conftest.$ac_ext >&5
20740
20741
20742fi
20743
20744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20745      conftest$ac_exeext
20746  if test "${ac_cv_search_opendir+set}" = set; then
20747  break
20748fi
20749done
20750if test "${ac_cv_search_opendir+set}" = set; then
20751  :
20752else
20753  ac_cv_search_opendir=no
20754fi
20755rm conftest.$ac_ext
20756LIBS=$ac_func_search_save_LIBS
20757fi
20758{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20759echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20760ac_res=$ac_cv_search_opendir
20761if test "$ac_res" != no; then
20762  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20763
20764fi
20765
20766else
20767  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20768echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20769if test "${ac_cv_search_opendir+set}" = set; then
20770  echo $ECHO_N "(cached) $ECHO_C" >&6
20771else
20772  ac_func_search_save_LIBS=$LIBS
20773cat >conftest.$ac_ext <<_ACEOF
20774/* confdefs.h.  */
20775_ACEOF
20776cat confdefs.h >>conftest.$ac_ext
20777cat >>conftest.$ac_ext <<_ACEOF
20778/* end confdefs.h.  */
20779
20780/* Override any GCC internal prototype to avoid an error.
20781   Use char because int might match the return type of a GCC
20782   builtin and then its argument prototype would still apply.  */
20783#ifdef __cplusplus
20784extern "C"
20785#endif
20786char opendir ();
20787int
20788main ()
20789{
20790return opendir ();
20791  ;
20792  return 0;
20793}
20794_ACEOF
20795for ac_lib in '' x; do
20796  if test -z "$ac_lib"; then
20797    ac_res="none required"
20798  else
20799    ac_res=-l$ac_lib
20800    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20801  fi
20802  rm -f conftest.$ac_objext conftest$ac_exeext
20803if { (ac_try="$ac_link"
20804case "(($ac_try" in
20805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806  *) ac_try_echo=$ac_try;;
20807esac
20808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809  (eval "$ac_link") 2>conftest.er1
20810  ac_status=$?
20811  grep -v '^ *+' conftest.er1 >conftest.err
20812  rm -f conftest.er1
20813  cat conftest.err >&5
20814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815  (exit $ac_status); } && {
20816	 test -z "$ac_c_werror_flag" ||
20817	 test ! -s conftest.err
20818       } && test -s conftest$ac_exeext &&
20819       $as_test_x conftest$ac_exeext; then
20820  ac_cv_search_opendir=$ac_res
20821else
20822  echo "$as_me: failed program was:" >&5
20823sed 's/^/| /' conftest.$ac_ext >&5
20824
20825
20826fi
20827
20828rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20829      conftest$ac_exeext
20830  if test "${ac_cv_search_opendir+set}" = set; then
20831  break
20832fi
20833done
20834if test "${ac_cv_search_opendir+set}" = set; then
20835  :
20836else
20837  ac_cv_search_opendir=no
20838fi
20839rm conftest.$ac_ext
20840LIBS=$ac_func_search_save_LIBS
20841fi
20842{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20843echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20844ac_res=$ac_cv_search_opendir
20845if test "$ac_res" != no; then
20846  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20847
20848fi
20849
20850fi
20851
20852{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20853echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20854if test "${ac_cv_header_stdc+set}" = set; then
20855  echo $ECHO_N "(cached) $ECHO_C" >&6
20856else
20857  cat >conftest.$ac_ext <<_ACEOF
20858/* confdefs.h.  */
20859_ACEOF
20860cat confdefs.h >>conftest.$ac_ext
20861cat >>conftest.$ac_ext <<_ACEOF
20862/* end confdefs.h.  */
20863#include <stdlib.h>
20864#include <stdarg.h>
20865#include <string.h>
20866#include <float.h>
20867
20868int
20869main ()
20870{
20871
20872  ;
20873  return 0;
20874}
20875_ACEOF
20876rm -f conftest.$ac_objext
20877if { (ac_try="$ac_compile"
20878case "(($ac_try" in
20879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880  *) ac_try_echo=$ac_try;;
20881esac
20882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883  (eval "$ac_compile") 2>conftest.er1
20884  ac_status=$?
20885  grep -v '^ *+' conftest.er1 >conftest.err
20886  rm -f conftest.er1
20887  cat conftest.err >&5
20888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889  (exit $ac_status); } && {
20890	 test -z "$ac_c_werror_flag" ||
20891	 test ! -s conftest.err
20892       } && test -s conftest.$ac_objext; then
20893  ac_cv_header_stdc=yes
20894else
20895  echo "$as_me: failed program was:" >&5
20896sed 's/^/| /' conftest.$ac_ext >&5
20897
20898	ac_cv_header_stdc=no
20899fi
20900
20901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902
20903if test $ac_cv_header_stdc = yes; then
20904  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20905  cat >conftest.$ac_ext <<_ACEOF
20906/* confdefs.h.  */
20907_ACEOF
20908cat confdefs.h >>conftest.$ac_ext
20909cat >>conftest.$ac_ext <<_ACEOF
20910/* end confdefs.h.  */
20911#include <string.h>
20912
20913_ACEOF
20914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20915  $EGREP "memchr" >/dev/null 2>&1; then
20916  :
20917else
20918  ac_cv_header_stdc=no
20919fi
20920rm -f conftest*
20921
20922fi
20923
20924if test $ac_cv_header_stdc = yes; then
20925  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20926  cat >conftest.$ac_ext <<_ACEOF
20927/* confdefs.h.  */
20928_ACEOF
20929cat confdefs.h >>conftest.$ac_ext
20930cat >>conftest.$ac_ext <<_ACEOF
20931/* end confdefs.h.  */
20932#include <stdlib.h>
20933
20934_ACEOF
20935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20936  $EGREP "free" >/dev/null 2>&1; then
20937  :
20938else
20939  ac_cv_header_stdc=no
20940fi
20941rm -f conftest*
20942
20943fi
20944
20945if test $ac_cv_header_stdc = yes; then
20946  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20947  if test "$cross_compiling" = yes; then
20948  :
20949else
20950  cat >conftest.$ac_ext <<_ACEOF
20951/* confdefs.h.  */
20952_ACEOF
20953cat confdefs.h >>conftest.$ac_ext
20954cat >>conftest.$ac_ext <<_ACEOF
20955/* end confdefs.h.  */
20956#include <ctype.h>
20957#include <stdlib.h>
20958#if ((' ' & 0x0FF) == 0x020)
20959# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20960# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20961#else
20962# define ISLOWER(c) \
20963		   (('a' <= (c) && (c) <= 'i') \
20964		     || ('j' <= (c) && (c) <= 'r') \
20965		     || ('s' <= (c) && (c) <= 'z'))
20966# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20967#endif
20968
20969#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20970int
20971main ()
20972{
20973  int i;
20974  for (i = 0; i < 256; i++)
20975    if (XOR (islower (i), ISLOWER (i))
20976	|| toupper (i) != TOUPPER (i))
20977      return 2;
20978  return 0;
20979}
20980_ACEOF
20981rm -f conftest$ac_exeext
20982if { (ac_try="$ac_link"
20983case "(($ac_try" in
20984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20985  *) ac_try_echo=$ac_try;;
20986esac
20987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20988  (eval "$ac_link") 2>&5
20989  ac_status=$?
20990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20992  { (case "(($ac_try" in
20993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20994  *) ac_try_echo=$ac_try;;
20995esac
20996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20997  (eval "$ac_try") 2>&5
20998  ac_status=$?
20999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000  (exit $ac_status); }; }; then
21001  :
21002else
21003  echo "$as_me: program exited with status $ac_status" >&5
21004echo "$as_me: failed program was:" >&5
21005sed 's/^/| /' conftest.$ac_ext >&5
21006
21007( exit $ac_status )
21008ac_cv_header_stdc=no
21009fi
21010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21011fi
21012
21013
21014fi
21015fi
21016{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21017echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21018if test $ac_cv_header_stdc = yes; then
21019
21020cat >>confdefs.h <<\_ACEOF
21021#define STDC_HEADERS 1
21022_ACEOF
21023
21024fi
21025
21026{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21027echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21028if test "${ac_cv_header_sys_wait_h+set}" = set; then
21029  echo $ECHO_N "(cached) $ECHO_C" >&6
21030else
21031  cat >conftest.$ac_ext <<_ACEOF
21032/* confdefs.h.  */
21033_ACEOF
21034cat confdefs.h >>conftest.$ac_ext
21035cat >>conftest.$ac_ext <<_ACEOF
21036/* end confdefs.h.  */
21037#include <sys/types.h>
21038#include <sys/wait.h>
21039#ifndef WEXITSTATUS
21040# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21041#endif
21042#ifndef WIFEXITED
21043# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21044#endif
21045
21046int
21047main ()
21048{
21049  int s;
21050  wait (&s);
21051  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21052  ;
21053  return 0;
21054}
21055_ACEOF
21056rm -f conftest.$ac_objext
21057if { (ac_try="$ac_compile"
21058case "(($ac_try" in
21059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21060  *) ac_try_echo=$ac_try;;
21061esac
21062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21063  (eval "$ac_compile") 2>conftest.er1
21064  ac_status=$?
21065  grep -v '^ *+' conftest.er1 >conftest.err
21066  rm -f conftest.er1
21067  cat conftest.err >&5
21068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069  (exit $ac_status); } && {
21070	 test -z "$ac_c_werror_flag" ||
21071	 test ! -s conftest.err
21072       } && test -s conftest.$ac_objext; then
21073  ac_cv_header_sys_wait_h=yes
21074else
21075  echo "$as_me: failed program was:" >&5
21076sed 's/^/| /' conftest.$ac_ext >&5
21077
21078	ac_cv_header_sys_wait_h=no
21079fi
21080
21081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21082fi
21083{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21084echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21085if test $ac_cv_header_sys_wait_h = yes; then
21086
21087cat >>confdefs.h <<\_ACEOF
21088#define HAVE_SYS_WAIT_H 1
21089_ACEOF
21090
21091fi
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125for ac_header in fcntl.h limits.h stdint.h strings.h time.h sys/param.h sys/fcntl.h sys/file.h sys/ioctl.h sys/time.h sys/mnttab.h sys/statvfs.h sys/stat.h sys/vfs.h mntent.h syslog.h unistd.h termios.h sys/termios.h netdb.h sgtty.h ufs/quota.h mount.h statfs.h sys/types.h dlfcn.h errno.h sys/errno.h sys/uio.h langinfo.h locale.h sys/filio.h
21126do
21127as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21129  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21132  echo $ECHO_N "(cached) $ECHO_C" >&6
21133fi
21134ac_res=`eval echo '${'$as_ac_Header'}'`
21135	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21136echo "${ECHO_T}$ac_res" >&6; }
21137else
21138  # Is the header compilable?
21139{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21140echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21141cat >conftest.$ac_ext <<_ACEOF
21142/* confdefs.h.  */
21143_ACEOF
21144cat confdefs.h >>conftest.$ac_ext
21145cat >>conftest.$ac_ext <<_ACEOF
21146/* end confdefs.h.  */
21147$ac_includes_default
21148#include <$ac_header>
21149_ACEOF
21150rm -f conftest.$ac_objext
21151if { (ac_try="$ac_compile"
21152case "(($ac_try" in
21153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154  *) ac_try_echo=$ac_try;;
21155esac
21156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157  (eval "$ac_compile") 2>conftest.er1
21158  ac_status=$?
21159  grep -v '^ *+' conftest.er1 >conftest.err
21160  rm -f conftest.er1
21161  cat conftest.err >&5
21162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163  (exit $ac_status); } && {
21164	 test -z "$ac_c_werror_flag" ||
21165	 test ! -s conftest.err
21166       } && test -s conftest.$ac_objext; then
21167  ac_header_compiler=yes
21168else
21169  echo "$as_me: failed program was:" >&5
21170sed 's/^/| /' conftest.$ac_ext >&5
21171
21172	ac_header_compiler=no
21173fi
21174
21175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21176{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21177echo "${ECHO_T}$ac_header_compiler" >&6; }
21178
21179# Is the header present?
21180{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21181echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21182cat >conftest.$ac_ext <<_ACEOF
21183/* confdefs.h.  */
21184_ACEOF
21185cat confdefs.h >>conftest.$ac_ext
21186cat >>conftest.$ac_ext <<_ACEOF
21187/* end confdefs.h.  */
21188#include <$ac_header>
21189_ACEOF
21190if { (ac_try="$ac_cpp conftest.$ac_ext"
21191case "(($ac_try" in
21192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193  *) ac_try_echo=$ac_try;;
21194esac
21195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21197  ac_status=$?
21198  grep -v '^ *+' conftest.er1 >conftest.err
21199  rm -f conftest.er1
21200  cat conftest.err >&5
21201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202  (exit $ac_status); } >/dev/null && {
21203	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21204	 test ! -s conftest.err
21205       }; then
21206  ac_header_preproc=yes
21207else
21208  echo "$as_me: failed program was:" >&5
21209sed 's/^/| /' conftest.$ac_ext >&5
21210
21211  ac_header_preproc=no
21212fi
21213
21214rm -f conftest.err conftest.$ac_ext
21215{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21216echo "${ECHO_T}$ac_header_preproc" >&6; }
21217
21218# So?  What about this header?
21219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21220  yes:no: )
21221    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21223    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21224echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21225    ac_header_preproc=yes
21226    ;;
21227  no:yes:* )
21228    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21230    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21231echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21232    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21233echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21234    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21235echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21236    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21238    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21239echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21240
21241    ;;
21242esac
21243{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21246  echo $ECHO_N "(cached) $ECHO_C" >&6
21247else
21248  eval "$as_ac_Header=\$ac_header_preproc"
21249fi
21250ac_res=`eval echo '${'$as_ac_Header'}'`
21251	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21252echo "${ECHO_T}$ac_res" >&6; }
21253
21254fi
21255if test `eval echo '${'$as_ac_Header'}'` = yes; then
21256  cat >>confdefs.h <<_ACEOF
21257#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21258_ACEOF
21259
21260fi
21261
21262done
21263
21264if test "${ac_cv_header_sys_cdefs_h+set}" = set; then
21265  { echo "$as_me:$LINENO: checking for sys/cdefs.h" >&5
21266echo $ECHO_N "checking for sys/cdefs.h... $ECHO_C" >&6; }
21267if test "${ac_cv_header_sys_cdefs_h+set}" = set; then
21268  echo $ECHO_N "(cached) $ECHO_C" >&6
21269fi
21270{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_cdefs_h" >&5
21271echo "${ECHO_T}$ac_cv_header_sys_cdefs_h" >&6; }
21272else
21273  # Is the header compilable?
21274{ echo "$as_me:$LINENO: checking sys/cdefs.h usability" >&5
21275echo $ECHO_N "checking sys/cdefs.h usability... $ECHO_C" >&6; }
21276cat >conftest.$ac_ext <<_ACEOF
21277/* confdefs.h.  */
21278_ACEOF
21279cat confdefs.h >>conftest.$ac_ext
21280cat >>conftest.$ac_ext <<_ACEOF
21281/* end confdefs.h.  */
21282$ac_includes_default
21283#include <sys/cdefs.h>
21284_ACEOF
21285rm -f conftest.$ac_objext
21286if { (ac_try="$ac_compile"
21287case "(($ac_try" in
21288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289  *) ac_try_echo=$ac_try;;
21290esac
21291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292  (eval "$ac_compile") 2>conftest.er1
21293  ac_status=$?
21294  grep -v '^ *+' conftest.er1 >conftest.err
21295  rm -f conftest.er1
21296  cat conftest.err >&5
21297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298  (exit $ac_status); } && {
21299	 test -z "$ac_c_werror_flag" ||
21300	 test ! -s conftest.err
21301       } && test -s conftest.$ac_objext; then
21302  ac_header_compiler=yes
21303else
21304  echo "$as_me: failed program was:" >&5
21305sed 's/^/| /' conftest.$ac_ext >&5
21306
21307	ac_header_compiler=no
21308fi
21309
21310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21311{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21312echo "${ECHO_T}$ac_header_compiler" >&6; }
21313
21314# Is the header present?
21315{ echo "$as_me:$LINENO: checking sys/cdefs.h presence" >&5
21316echo $ECHO_N "checking sys/cdefs.h presence... $ECHO_C" >&6; }
21317cat >conftest.$ac_ext <<_ACEOF
21318/* confdefs.h.  */
21319_ACEOF
21320cat confdefs.h >>conftest.$ac_ext
21321cat >>conftest.$ac_ext <<_ACEOF
21322/* end confdefs.h.  */
21323#include <sys/cdefs.h>
21324_ACEOF
21325if { (ac_try="$ac_cpp conftest.$ac_ext"
21326case "(($ac_try" in
21327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328  *) ac_try_echo=$ac_try;;
21329esac
21330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21331  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21332  ac_status=$?
21333  grep -v '^ *+' conftest.er1 >conftest.err
21334  rm -f conftest.er1
21335  cat conftest.err >&5
21336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337  (exit $ac_status); } >/dev/null && {
21338	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21339	 test ! -s conftest.err
21340       }; then
21341  ac_header_preproc=yes
21342else
21343  echo "$as_me: failed program was:" >&5
21344sed 's/^/| /' conftest.$ac_ext >&5
21345
21346  ac_header_preproc=no
21347fi
21348
21349rm -f conftest.err conftest.$ac_ext
21350{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21351echo "${ECHO_T}$ac_header_preproc" >&6; }
21352
21353# So?  What about this header?
21354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21355  yes:no: )
21356    { echo "$as_me:$LINENO: WARNING: sys/cdefs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21357echo "$as_me: WARNING: sys/cdefs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21358    { echo "$as_me:$LINENO: WARNING: sys/cdefs.h: proceeding with the compiler's result" >&5
21359echo "$as_me: WARNING: sys/cdefs.h: proceeding with the compiler's result" >&2;}
21360    ac_header_preproc=yes
21361    ;;
21362  no:yes:* )
21363    { echo "$as_me:$LINENO: WARNING: sys/cdefs.h: present but cannot be compiled" >&5
21364echo "$as_me: WARNING: sys/cdefs.h: present but cannot be compiled" >&2;}
21365    { echo "$as_me:$LINENO: WARNING: sys/cdefs.h:     check for missing prerequisite headers?" >&5
21366echo "$as_me: WARNING: sys/cdefs.h:     check for missing prerequisite headers?" >&2;}
21367    { echo "$as_me:$LINENO: WARNING: sys/cdefs.h: see the Autoconf documentation" >&5
21368echo "$as_me: WARNING: sys/cdefs.h: see the Autoconf documentation" >&2;}
21369    { echo "$as_me:$LINENO: WARNING: sys/cdefs.h:     section \"Present But Cannot Be Compiled\"" >&5
21370echo "$as_me: WARNING: sys/cdefs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21371    { echo "$as_me:$LINENO: WARNING: sys/cdefs.h: proceeding with the preprocessor's result" >&5
21372echo "$as_me: WARNING: sys/cdefs.h: proceeding with the preprocessor's result" >&2;}
21373    { echo "$as_me:$LINENO: WARNING: sys/cdefs.h: in the future, the compiler will take precedence" >&5
21374echo "$as_me: WARNING: sys/cdefs.h: in the future, the compiler will take precedence" >&2;}
21375
21376    ;;
21377esac
21378{ echo "$as_me:$LINENO: checking for sys/cdefs.h" >&5
21379echo $ECHO_N "checking for sys/cdefs.h... $ECHO_C" >&6; }
21380if test "${ac_cv_header_sys_cdefs_h+set}" = set; then
21381  echo $ECHO_N "(cached) $ECHO_C" >&6
21382else
21383  ac_cv_header_sys_cdefs_h=$ac_header_preproc
21384fi
21385{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_cdefs_h" >&5
21386echo "${ECHO_T}$ac_cv_header_sys_cdefs_h" >&6; }
21387
21388fi
21389if test $ac_cv_header_sys_cdefs_h = yes; then
21390  :
21391else
21392  { echo "$as_me:$LINENO: result: enabling generic cdefs.h from tree" >&5
21393echo "${ECHO_T}enabling generic cdefs.h from tree" >&6; }
21394	CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
21395
21396fi
21397
21398
21399
21400for ac_header in sys/mount.h
21401do
21402as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21403{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21406  echo $ECHO_N "(cached) $ECHO_C" >&6
21407else
21408  cat >conftest.$ac_ext <<_ACEOF
21409/* confdefs.h.  */
21410_ACEOF
21411cat confdefs.h >>conftest.$ac_ext
21412cat >>conftest.$ac_ext <<_ACEOF
21413/* end confdefs.h.  */
21414#ifdef HAVE_SYS_PARAM_H
21415#include <sys/param.h>
21416#endif
21417
21418
21419#include <$ac_header>
21420_ACEOF
21421rm -f conftest.$ac_objext
21422if { (ac_try="$ac_compile"
21423case "(($ac_try" in
21424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425  *) ac_try_echo=$ac_try;;
21426esac
21427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428  (eval "$ac_compile") 2>conftest.er1
21429  ac_status=$?
21430  grep -v '^ *+' conftest.er1 >conftest.err
21431  rm -f conftest.er1
21432  cat conftest.err >&5
21433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434  (exit $ac_status); } && {
21435	 test -z "$ac_c_werror_flag" ||
21436	 test ! -s conftest.err
21437       } && test -s conftest.$ac_objext; then
21438  eval "$as_ac_Header=yes"
21439else
21440  echo "$as_me: failed program was:" >&5
21441sed 's/^/| /' conftest.$ac_ext >&5
21442
21443	eval "$as_ac_Header=no"
21444fi
21445
21446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21447fi
21448ac_res=`eval echo '${'$as_ac_Header'}'`
21449	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21450echo "${ECHO_T}$ac_res" >&6; }
21451if test `eval echo '${'$as_ac_Header'}'` = yes; then
21452  cat >>confdefs.h <<_ACEOF
21453#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21454_ACEOF
21455
21456fi
21457
21458done
21459
21460
21461{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21462echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21463if test "${ac_cv_c_const+set}" = set; then
21464  echo $ECHO_N "(cached) $ECHO_C" >&6
21465else
21466  cat >conftest.$ac_ext <<_ACEOF
21467/* confdefs.h.  */
21468_ACEOF
21469cat confdefs.h >>conftest.$ac_ext
21470cat >>conftest.$ac_ext <<_ACEOF
21471/* end confdefs.h.  */
21472
21473int
21474main ()
21475{
21476/* FIXME: Include the comments suggested by Paul. */
21477#ifndef __cplusplus
21478  /* Ultrix mips cc rejects this.  */
21479  typedef int charset[2];
21480  const charset cs;
21481  /* SunOS 4.1.1 cc rejects this.  */
21482  char const *const *pcpcc;
21483  char **ppc;
21484  /* NEC SVR4.0.2 mips cc rejects this.  */
21485  struct point {int x, y;};
21486  static struct point const zero = {0,0};
21487  /* AIX XL C 1.02.0.0 rejects this.
21488     It does not let you subtract one const X* pointer from another in
21489     an arm of an if-expression whose if-part is not a constant
21490     expression */
21491  const char *g = "string";
21492  pcpcc = &g + (g ? g-g : 0);
21493  /* HPUX 7.0 cc rejects these. */
21494  ++pcpcc;
21495  ppc = (char**) pcpcc;
21496  pcpcc = (char const *const *) ppc;
21497  { /* SCO 3.2v4 cc rejects this.  */
21498    char *t;
21499    char const *s = 0 ? (char *) 0 : (char const *) 0;
21500
21501    *t++ = 0;
21502    if (s) return 0;
21503  }
21504  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21505    int x[] = {25, 17};
21506    const int *foo = &x[0];
21507    ++foo;
21508  }
21509  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21510    typedef const int *iptr;
21511    iptr p = 0;
21512    ++p;
21513  }
21514  { /* AIX XL C 1.02.0.0 rejects this saying
21515       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21516    struct s { int j; const int *ap[3]; };
21517    struct s *b; b->j = 5;
21518  }
21519  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21520    const int foo = 10;
21521    if (!foo) return 0;
21522  }
21523  return !cs[0] && !zero.x;
21524#endif
21525
21526  ;
21527  return 0;
21528}
21529_ACEOF
21530rm -f conftest.$ac_objext
21531if { (ac_try="$ac_compile"
21532case "(($ac_try" in
21533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21534  *) ac_try_echo=$ac_try;;
21535esac
21536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21537  (eval "$ac_compile") 2>conftest.er1
21538  ac_status=$?
21539  grep -v '^ *+' conftest.er1 >conftest.err
21540  rm -f conftest.er1
21541  cat conftest.err >&5
21542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543  (exit $ac_status); } && {
21544	 test -z "$ac_c_werror_flag" ||
21545	 test ! -s conftest.err
21546       } && test -s conftest.$ac_objext; then
21547  ac_cv_c_const=yes
21548else
21549  echo "$as_me: failed program was:" >&5
21550sed 's/^/| /' conftest.$ac_ext >&5
21551
21552	ac_cv_c_const=no
21553fi
21554
21555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556fi
21557{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21558echo "${ECHO_T}$ac_cv_c_const" >&6; }
21559if test $ac_cv_c_const = no; then
21560
21561cat >>confdefs.h <<\_ACEOF
21562#define const
21563_ACEOF
21564
21565fi
21566
21567{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21568echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21569if test "${ac_cv_type_uid_t+set}" = set; then
21570  echo $ECHO_N "(cached) $ECHO_C" >&6
21571else
21572  cat >conftest.$ac_ext <<_ACEOF
21573/* confdefs.h.  */
21574_ACEOF
21575cat confdefs.h >>conftest.$ac_ext
21576cat >>conftest.$ac_ext <<_ACEOF
21577/* end confdefs.h.  */
21578#include <sys/types.h>
21579
21580_ACEOF
21581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21582  $EGREP "uid_t" >/dev/null 2>&1; then
21583  ac_cv_type_uid_t=yes
21584else
21585  ac_cv_type_uid_t=no
21586fi
21587rm -f conftest*
21588
21589fi
21590{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21591echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21592if test $ac_cv_type_uid_t = no; then
21593
21594cat >>confdefs.h <<\_ACEOF
21595#define uid_t int
21596_ACEOF
21597
21598
21599cat >>confdefs.h <<\_ACEOF
21600#define gid_t int
21601_ACEOF
21602
21603fi
21604
21605{ echo "$as_me:$LINENO: checking for inline" >&5
21606echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21607if test "${ac_cv_c_inline+set}" = set; then
21608  echo $ECHO_N "(cached) $ECHO_C" >&6
21609else
21610  ac_cv_c_inline=no
21611for ac_kw in inline __inline__ __inline; do
21612  cat >conftest.$ac_ext <<_ACEOF
21613/* confdefs.h.  */
21614_ACEOF
21615cat confdefs.h >>conftest.$ac_ext
21616cat >>conftest.$ac_ext <<_ACEOF
21617/* end confdefs.h.  */
21618#ifndef __cplusplus
21619typedef int foo_t;
21620static $ac_kw foo_t static_foo () {return 0; }
21621$ac_kw foo_t foo () {return 0; }
21622#endif
21623
21624_ACEOF
21625rm -f conftest.$ac_objext
21626if { (ac_try="$ac_compile"
21627case "(($ac_try" in
21628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629  *) ac_try_echo=$ac_try;;
21630esac
21631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632  (eval "$ac_compile") 2>conftest.er1
21633  ac_status=$?
21634  grep -v '^ *+' conftest.er1 >conftest.err
21635  rm -f conftest.er1
21636  cat conftest.err >&5
21637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638  (exit $ac_status); } && {
21639	 test -z "$ac_c_werror_flag" ||
21640	 test ! -s conftest.err
21641       } && test -s conftest.$ac_objext; then
21642  ac_cv_c_inline=$ac_kw
21643else
21644  echo "$as_me: failed program was:" >&5
21645sed 's/^/| /' conftest.$ac_ext >&5
21646
21647
21648fi
21649
21650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21651  test "$ac_cv_c_inline" != no && break
21652done
21653
21654fi
21655{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21656echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21657
21658
21659case $ac_cv_c_inline in
21660  inline | yes) ;;
21661  *)
21662    case $ac_cv_c_inline in
21663      no) ac_val=;;
21664      *) ac_val=$ac_cv_c_inline;;
21665    esac
21666    cat >>confdefs.h <<_ACEOF
21667#ifndef __cplusplus
21668#define inline $ac_val
21669#endif
21670_ACEOF
21671    ;;
21672esac
21673
21674{ echo "$as_me:$LINENO: checking for mode_t" >&5
21675echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
21676if test "${ac_cv_type_mode_t+set}" = set; then
21677  echo $ECHO_N "(cached) $ECHO_C" >&6
21678else
21679  cat >conftest.$ac_ext <<_ACEOF
21680/* confdefs.h.  */
21681_ACEOF
21682cat confdefs.h >>conftest.$ac_ext
21683cat >>conftest.$ac_ext <<_ACEOF
21684/* end confdefs.h.  */
21685$ac_includes_default
21686typedef mode_t ac__type_new_;
21687int
21688main ()
21689{
21690if ((ac__type_new_ *) 0)
21691  return 0;
21692if (sizeof (ac__type_new_))
21693  return 0;
21694  ;
21695  return 0;
21696}
21697_ACEOF
21698rm -f conftest.$ac_objext
21699if { (ac_try="$ac_compile"
21700case "(($ac_try" in
21701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702  *) ac_try_echo=$ac_try;;
21703esac
21704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705  (eval "$ac_compile") 2>conftest.er1
21706  ac_status=$?
21707  grep -v '^ *+' conftest.er1 >conftest.err
21708  rm -f conftest.er1
21709  cat conftest.err >&5
21710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711  (exit $ac_status); } && {
21712	 test -z "$ac_c_werror_flag" ||
21713	 test ! -s conftest.err
21714       } && test -s conftest.$ac_objext; then
21715  ac_cv_type_mode_t=yes
21716else
21717  echo "$as_me: failed program was:" >&5
21718sed 's/^/| /' conftest.$ac_ext >&5
21719
21720	ac_cv_type_mode_t=no
21721fi
21722
21723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21724fi
21725{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21726echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
21727if test $ac_cv_type_mode_t = yes; then
21728  :
21729else
21730
21731cat >>confdefs.h <<_ACEOF
21732#define mode_t int
21733_ACEOF
21734
21735fi
21736
21737{ echo "$as_me:$LINENO: checking for off_t" >&5
21738echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21739if test "${ac_cv_type_off_t+set}" = set; then
21740  echo $ECHO_N "(cached) $ECHO_C" >&6
21741else
21742  cat >conftest.$ac_ext <<_ACEOF
21743/* confdefs.h.  */
21744_ACEOF
21745cat confdefs.h >>conftest.$ac_ext
21746cat >>conftest.$ac_ext <<_ACEOF
21747/* end confdefs.h.  */
21748$ac_includes_default
21749typedef off_t ac__type_new_;
21750int
21751main ()
21752{
21753if ((ac__type_new_ *) 0)
21754  return 0;
21755if (sizeof (ac__type_new_))
21756  return 0;
21757  ;
21758  return 0;
21759}
21760_ACEOF
21761rm -f conftest.$ac_objext
21762if { (ac_try="$ac_compile"
21763case "(($ac_try" in
21764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765  *) ac_try_echo=$ac_try;;
21766esac
21767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21768  (eval "$ac_compile") 2>conftest.er1
21769  ac_status=$?
21770  grep -v '^ *+' conftest.er1 >conftest.err
21771  rm -f conftest.er1
21772  cat conftest.err >&5
21773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774  (exit $ac_status); } && {
21775	 test -z "$ac_c_werror_flag" ||
21776	 test ! -s conftest.err
21777       } && test -s conftest.$ac_objext; then
21778  ac_cv_type_off_t=yes
21779else
21780  echo "$as_me: failed program was:" >&5
21781sed 's/^/| /' conftest.$ac_ext >&5
21782
21783	ac_cv_type_off_t=no
21784fi
21785
21786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21787fi
21788{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21789echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21790if test $ac_cv_type_off_t = yes; then
21791  :
21792else
21793
21794cat >>confdefs.h <<_ACEOF
21795#define off_t long int
21796_ACEOF
21797
21798fi
21799
21800{ echo "$as_me:$LINENO: checking for pid_t" >&5
21801echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21802if test "${ac_cv_type_pid_t+set}" = set; then
21803  echo $ECHO_N "(cached) $ECHO_C" >&6
21804else
21805  cat >conftest.$ac_ext <<_ACEOF
21806/* confdefs.h.  */
21807_ACEOF
21808cat confdefs.h >>conftest.$ac_ext
21809cat >>conftest.$ac_ext <<_ACEOF
21810/* end confdefs.h.  */
21811$ac_includes_default
21812typedef pid_t ac__type_new_;
21813int
21814main ()
21815{
21816if ((ac__type_new_ *) 0)
21817  return 0;
21818if (sizeof (ac__type_new_))
21819  return 0;
21820  ;
21821  return 0;
21822}
21823_ACEOF
21824rm -f conftest.$ac_objext
21825if { (ac_try="$ac_compile"
21826case "(($ac_try" in
21827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21828  *) ac_try_echo=$ac_try;;
21829esac
21830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21831  (eval "$ac_compile") 2>conftest.er1
21832  ac_status=$?
21833  grep -v '^ *+' conftest.er1 >conftest.err
21834  rm -f conftest.er1
21835  cat conftest.err >&5
21836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837  (exit $ac_status); } && {
21838	 test -z "$ac_c_werror_flag" ||
21839	 test ! -s conftest.err
21840       } && test -s conftest.$ac_objext; then
21841  ac_cv_type_pid_t=yes
21842else
21843  echo "$as_me: failed program was:" >&5
21844sed 's/^/| /' conftest.$ac_ext >&5
21845
21846	ac_cv_type_pid_t=no
21847fi
21848
21849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21850fi
21851{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21852echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21853if test $ac_cv_type_pid_t = yes; then
21854  :
21855else
21856
21857cat >>confdefs.h <<_ACEOF
21858#define pid_t int
21859_ACEOF
21860
21861fi
21862
21863{ echo "$as_me:$LINENO: checking for size_t" >&5
21864echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21865if test "${ac_cv_type_size_t+set}" = set; then
21866  echo $ECHO_N "(cached) $ECHO_C" >&6
21867else
21868  cat >conftest.$ac_ext <<_ACEOF
21869/* confdefs.h.  */
21870_ACEOF
21871cat confdefs.h >>conftest.$ac_ext
21872cat >>conftest.$ac_ext <<_ACEOF
21873/* end confdefs.h.  */
21874$ac_includes_default
21875typedef size_t ac__type_new_;
21876int
21877main ()
21878{
21879if ((ac__type_new_ *) 0)
21880  return 0;
21881if (sizeof (ac__type_new_))
21882  return 0;
21883  ;
21884  return 0;
21885}
21886_ACEOF
21887rm -f conftest.$ac_objext
21888if { (ac_try="$ac_compile"
21889case "(($ac_try" in
21890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21891  *) ac_try_echo=$ac_try;;
21892esac
21893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21894  (eval "$ac_compile") 2>conftest.er1
21895  ac_status=$?
21896  grep -v '^ *+' conftest.er1 >conftest.err
21897  rm -f conftest.er1
21898  cat conftest.err >&5
21899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900  (exit $ac_status); } && {
21901	 test -z "$ac_c_werror_flag" ||
21902	 test ! -s conftest.err
21903       } && test -s conftest.$ac_objext; then
21904  ac_cv_type_size_t=yes
21905else
21906  echo "$as_me: failed program was:" >&5
21907sed 's/^/| /' conftest.$ac_ext >&5
21908
21909	ac_cv_type_size_t=no
21910fi
21911
21912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21913fi
21914{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21915echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21916if test $ac_cv_type_size_t = yes; then
21917  :
21918else
21919
21920cat >>confdefs.h <<_ACEOF
21921#define size_t unsigned int
21922_ACEOF
21923
21924fi
21925
21926{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21927echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21928if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21929  echo $ECHO_N "(cached) $ECHO_C" >&6
21930else
21931  cat >conftest.$ac_ext <<_ACEOF
21932/* confdefs.h.  */
21933_ACEOF
21934cat confdefs.h >>conftest.$ac_ext
21935cat >>conftest.$ac_ext <<_ACEOF
21936/* end confdefs.h.  */
21937$ac_includes_default
21938int
21939main ()
21940{
21941static struct stat ac_aggr;
21942if (ac_aggr.st_rdev)
21943return 0;
21944  ;
21945  return 0;
21946}
21947_ACEOF
21948rm -f conftest.$ac_objext
21949if { (ac_try="$ac_compile"
21950case "(($ac_try" in
21951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21952  *) ac_try_echo=$ac_try;;
21953esac
21954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21955  (eval "$ac_compile") 2>conftest.er1
21956  ac_status=$?
21957  grep -v '^ *+' conftest.er1 >conftest.err
21958  rm -f conftest.er1
21959  cat conftest.err >&5
21960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961  (exit $ac_status); } && {
21962	 test -z "$ac_c_werror_flag" ||
21963	 test ! -s conftest.err
21964       } && test -s conftest.$ac_objext; then
21965  ac_cv_member_struct_stat_st_rdev=yes
21966else
21967  echo "$as_me: failed program was:" >&5
21968sed 's/^/| /' conftest.$ac_ext >&5
21969
21970	cat >conftest.$ac_ext <<_ACEOF
21971/* confdefs.h.  */
21972_ACEOF
21973cat confdefs.h >>conftest.$ac_ext
21974cat >>conftest.$ac_ext <<_ACEOF
21975/* end confdefs.h.  */
21976$ac_includes_default
21977int
21978main ()
21979{
21980static struct stat ac_aggr;
21981if (sizeof ac_aggr.st_rdev)
21982return 0;
21983  ;
21984  return 0;
21985}
21986_ACEOF
21987rm -f conftest.$ac_objext
21988if { (ac_try="$ac_compile"
21989case "(($ac_try" in
21990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991  *) ac_try_echo=$ac_try;;
21992esac
21993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21994  (eval "$ac_compile") 2>conftest.er1
21995  ac_status=$?
21996  grep -v '^ *+' conftest.er1 >conftest.err
21997  rm -f conftest.er1
21998  cat conftest.err >&5
21999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000  (exit $ac_status); } && {
22001	 test -z "$ac_c_werror_flag" ||
22002	 test ! -s conftest.err
22003       } && test -s conftest.$ac_objext; then
22004  ac_cv_member_struct_stat_st_rdev=yes
22005else
22006  echo "$as_me: failed program was:" >&5
22007sed 's/^/| /' conftest.$ac_ext >&5
22008
22009	ac_cv_member_struct_stat_st_rdev=no
22010fi
22011
22012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22013fi
22014
22015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22016fi
22017{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22018echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
22019if test $ac_cv_member_struct_stat_st_rdev = yes; then
22020
22021cat >>confdefs.h <<_ACEOF
22022#define HAVE_STRUCT_STAT_ST_RDEV 1
22023_ACEOF
22024
22025
22026cat >>confdefs.h <<\_ACEOF
22027#define HAVE_ST_RDEV 1
22028_ACEOF
22029
22030fi
22031
22032
22033{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22034echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22035if test "${ac_cv_header_time+set}" = set; then
22036  echo $ECHO_N "(cached) $ECHO_C" >&6
22037else
22038  cat >conftest.$ac_ext <<_ACEOF
22039/* confdefs.h.  */
22040_ACEOF
22041cat confdefs.h >>conftest.$ac_ext
22042cat >>conftest.$ac_ext <<_ACEOF
22043/* end confdefs.h.  */
22044#include <sys/types.h>
22045#include <sys/time.h>
22046#include <time.h>
22047
22048int
22049main ()
22050{
22051if ((struct tm *) 0)
22052return 0;
22053  ;
22054  return 0;
22055}
22056_ACEOF
22057rm -f conftest.$ac_objext
22058if { (ac_try="$ac_compile"
22059case "(($ac_try" in
22060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061  *) ac_try_echo=$ac_try;;
22062esac
22063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064  (eval "$ac_compile") 2>conftest.er1
22065  ac_status=$?
22066  grep -v '^ *+' conftest.er1 >conftest.err
22067  rm -f conftest.er1
22068  cat conftest.err >&5
22069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070  (exit $ac_status); } && {
22071	 test -z "$ac_c_werror_flag" ||
22072	 test ! -s conftest.err
22073       } && test -s conftest.$ac_objext; then
22074  ac_cv_header_time=yes
22075else
22076  echo "$as_me: failed program was:" >&5
22077sed 's/^/| /' conftest.$ac_ext >&5
22078
22079	ac_cv_header_time=no
22080fi
22081
22082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22083fi
22084{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22085echo "${ECHO_T}$ac_cv_header_time" >&6; }
22086if test $ac_cv_header_time = yes; then
22087
22088cat >>confdefs.h <<\_ACEOF
22089#define TIME_WITH_SYS_TIME 1
22090_ACEOF
22091
22092fi
22093
22094{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22095echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
22096if test "${ac_cv_struct_tm+set}" = set; then
22097  echo $ECHO_N "(cached) $ECHO_C" >&6
22098else
22099  cat >conftest.$ac_ext <<_ACEOF
22100/* confdefs.h.  */
22101_ACEOF
22102cat confdefs.h >>conftest.$ac_ext
22103cat >>conftest.$ac_ext <<_ACEOF
22104/* end confdefs.h.  */
22105#include <sys/types.h>
22106#include <time.h>
22107
22108int
22109main ()
22110{
22111struct tm tm;
22112				     int *p = &tm.tm_sec;
22113 				     return !p;
22114  ;
22115  return 0;
22116}
22117_ACEOF
22118rm -f conftest.$ac_objext
22119if { (ac_try="$ac_compile"
22120case "(($ac_try" in
22121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122  *) ac_try_echo=$ac_try;;
22123esac
22124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22125  (eval "$ac_compile") 2>conftest.er1
22126  ac_status=$?
22127  grep -v '^ *+' conftest.er1 >conftest.err
22128  rm -f conftest.er1
22129  cat conftest.err >&5
22130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131  (exit $ac_status); } && {
22132	 test -z "$ac_c_werror_flag" ||
22133	 test ! -s conftest.err
22134       } && test -s conftest.$ac_objext; then
22135  ac_cv_struct_tm=time.h
22136else
22137  echo "$as_me: failed program was:" >&5
22138sed 's/^/| /' conftest.$ac_ext >&5
22139
22140	ac_cv_struct_tm=sys/time.h
22141fi
22142
22143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22144fi
22145{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22146echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
22147if test $ac_cv_struct_tm = sys/time.h; then
22148
22149cat >>confdefs.h <<\_ACEOF
22150#define TM_IN_SYS_TIME 1
22151_ACEOF
22152
22153fi
22154
22155
22156LIBADD_DL=
22157
22158ac_ext=c
22159ac_cpp='$CPP $CPPFLAGS'
22160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22162ac_compiler_gnu=$ac_cv_c_compiler_gnu
22163
22164
22165{ echo "$as_me:$LINENO: checking for shl_load" >&5
22166echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
22167if test "${ac_cv_func_shl_load+set}" = set; then
22168  echo $ECHO_N "(cached) $ECHO_C" >&6
22169else
22170  cat >conftest.$ac_ext <<_ACEOF
22171/* confdefs.h.  */
22172_ACEOF
22173cat confdefs.h >>conftest.$ac_ext
22174cat >>conftest.$ac_ext <<_ACEOF
22175/* end confdefs.h.  */
22176/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22177   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22178#define shl_load innocuous_shl_load
22179
22180/* System header to define __stub macros and hopefully few prototypes,
22181    which can conflict with char shl_load (); below.
22182    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22183    <limits.h> exists even on freestanding compilers.  */
22184
22185#ifdef __STDC__
22186# include <limits.h>
22187#else
22188# include <assert.h>
22189#endif
22190
22191#undef shl_load
22192
22193/* Override any GCC internal prototype to avoid an error.
22194   Use char because int might match the return type of a GCC
22195   builtin and then its argument prototype would still apply.  */
22196#ifdef __cplusplus
22197extern "C"
22198#endif
22199char shl_load ();
22200/* The GNU C library defines this for functions which it implements
22201    to always fail with ENOSYS.  Some functions are actually named
22202    something starting with __ and the normal name is an alias.  */
22203#if defined __stub_shl_load || defined __stub___shl_load
22204choke me
22205#endif
22206
22207int
22208main ()
22209{
22210return shl_load ();
22211  ;
22212  return 0;
22213}
22214_ACEOF
22215rm -f conftest.$ac_objext conftest$ac_exeext
22216if { (ac_try="$ac_link"
22217case "(($ac_try" in
22218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219  *) ac_try_echo=$ac_try;;
22220esac
22221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222  (eval "$ac_link") 2>conftest.er1
22223  ac_status=$?
22224  grep -v '^ *+' conftest.er1 >conftest.err
22225  rm -f conftest.er1
22226  cat conftest.err >&5
22227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228  (exit $ac_status); } && {
22229	 test -z "$ac_c_werror_flag" ||
22230	 test ! -s conftest.err
22231       } && test -s conftest$ac_exeext &&
22232       $as_test_x conftest$ac_exeext; then
22233  ac_cv_func_shl_load=yes
22234else
22235  echo "$as_me: failed program was:" >&5
22236sed 's/^/| /' conftest.$ac_ext >&5
22237
22238	ac_cv_func_shl_load=no
22239fi
22240
22241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22242      conftest$ac_exeext conftest.$ac_ext
22243fi
22244{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
22245echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
22246if test $ac_cv_func_shl_load = yes; then
22247
22248cat >>confdefs.h <<\_ACEOF
22249#define HAVE_SHL_LOAD 1
22250_ACEOF
22251
22252else
22253  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
22254echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
22255if test "${ac_cv_lib_dld_shl_load+set}" = set; then
22256  echo $ECHO_N "(cached) $ECHO_C" >&6
22257else
22258  ac_check_lib_save_LIBS=$LIBS
22259LIBS="-ldld  $LIBS"
22260cat >conftest.$ac_ext <<_ACEOF
22261/* confdefs.h.  */
22262_ACEOF
22263cat confdefs.h >>conftest.$ac_ext
22264cat >>conftest.$ac_ext <<_ACEOF
22265/* end confdefs.h.  */
22266
22267/* Override any GCC internal prototype to avoid an error.
22268   Use char because int might match the return type of a GCC
22269   builtin and then its argument prototype would still apply.  */
22270#ifdef __cplusplus
22271extern "C"
22272#endif
22273char shl_load ();
22274int
22275main ()
22276{
22277return shl_load ();
22278  ;
22279  return 0;
22280}
22281_ACEOF
22282rm -f conftest.$ac_objext conftest$ac_exeext
22283if { (ac_try="$ac_link"
22284case "(($ac_try" in
22285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22286  *) ac_try_echo=$ac_try;;
22287esac
22288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22289  (eval "$ac_link") 2>conftest.er1
22290  ac_status=$?
22291  grep -v '^ *+' conftest.er1 >conftest.err
22292  rm -f conftest.er1
22293  cat conftest.err >&5
22294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295  (exit $ac_status); } && {
22296	 test -z "$ac_c_werror_flag" ||
22297	 test ! -s conftest.err
22298       } && test -s conftest$ac_exeext &&
22299       $as_test_x conftest$ac_exeext; then
22300  ac_cv_lib_dld_shl_load=yes
22301else
22302  echo "$as_me: failed program was:" >&5
22303sed 's/^/| /' conftest.$ac_ext >&5
22304
22305	ac_cv_lib_dld_shl_load=no
22306fi
22307
22308rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22309      conftest$ac_exeext conftest.$ac_ext
22310LIBS=$ac_check_lib_save_LIBS
22311fi
22312{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
22313echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
22314if test $ac_cv_lib_dld_shl_load = yes; then
22315
22316cat >>confdefs.h <<\_ACEOF
22317#define HAVE_SHL_LOAD 1
22318_ACEOF
22319
22320	LIBADD_DL="$LIBADD_DL -ldld"
22321else
22322  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22323echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
22324if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22325  echo $ECHO_N "(cached) $ECHO_C" >&6
22326else
22327  ac_check_lib_save_LIBS=$LIBS
22328LIBS="-ldl  $LIBS"
22329cat >conftest.$ac_ext <<_ACEOF
22330/* confdefs.h.  */
22331_ACEOF
22332cat confdefs.h >>conftest.$ac_ext
22333cat >>conftest.$ac_ext <<_ACEOF
22334/* end confdefs.h.  */
22335
22336/* Override any GCC internal prototype to avoid an error.
22337   Use char because int might match the return type of a GCC
22338   builtin and then its argument prototype would still apply.  */
22339#ifdef __cplusplus
22340extern "C"
22341#endif
22342char dlopen ();
22343int
22344main ()
22345{
22346return dlopen ();
22347  ;
22348  return 0;
22349}
22350_ACEOF
22351rm -f conftest.$ac_objext conftest$ac_exeext
22352if { (ac_try="$ac_link"
22353case "(($ac_try" in
22354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355  *) ac_try_echo=$ac_try;;
22356esac
22357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22358  (eval "$ac_link") 2>conftest.er1
22359  ac_status=$?
22360  grep -v '^ *+' conftest.er1 >conftest.err
22361  rm -f conftest.er1
22362  cat conftest.err >&5
22363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364  (exit $ac_status); } && {
22365	 test -z "$ac_c_werror_flag" ||
22366	 test ! -s conftest.err
22367       } && test -s conftest$ac_exeext &&
22368       $as_test_x conftest$ac_exeext; then
22369  ac_cv_lib_dl_dlopen=yes
22370else
22371  echo "$as_me: failed program was:" >&5
22372sed 's/^/| /' conftest.$ac_ext >&5
22373
22374	ac_cv_lib_dl_dlopen=no
22375fi
22376
22377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22378      conftest$ac_exeext conftest.$ac_ext
22379LIBS=$ac_check_lib_save_LIBS
22380fi
22381{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22382echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
22383if test $ac_cv_lib_dl_dlopen = yes; then
22384
22385cat >>confdefs.h <<\_ACEOF
22386#define HAVE_LIBDL 1
22387_ACEOF
22388
22389	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
22390else
22391  cat >conftest.$ac_ext <<_ACEOF
22392/* confdefs.h.  */
22393_ACEOF
22394cat confdefs.h >>conftest.$ac_ext
22395cat >>conftest.$ac_ext <<_ACEOF
22396/* end confdefs.h.  */
22397#if HAVE_DLFCN_H
22398#  include <dlfcn.h>
22399#endif
22400
22401int
22402main ()
22403{
22404dlopen(0, 0);
22405  ;
22406  return 0;
22407}
22408_ACEOF
22409rm -f conftest.$ac_objext conftest$ac_exeext
22410if { (ac_try="$ac_link"
22411case "(($ac_try" in
22412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413  *) ac_try_echo=$ac_try;;
22414esac
22415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416  (eval "$ac_link") 2>conftest.er1
22417  ac_status=$?
22418  grep -v '^ *+' conftest.er1 >conftest.err
22419  rm -f conftest.er1
22420  cat conftest.err >&5
22421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422  (exit $ac_status); } && {
22423	 test -z "$ac_c_werror_flag" ||
22424	 test ! -s conftest.err
22425       } && test -s conftest$ac_exeext &&
22426       $as_test_x conftest$ac_exeext; then
22427
22428cat >>confdefs.h <<\_ACEOF
22429#define HAVE_LIBDL 1
22430_ACEOF
22431 libltdl_cv_func_dlopen="yes"
22432else
22433  echo "$as_me: failed program was:" >&5
22434sed 's/^/| /' conftest.$ac_ext >&5
22435
22436	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
22437echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
22438if test "${ac_cv_lib_svld_dlopen+set}" = set; then
22439  echo $ECHO_N "(cached) $ECHO_C" >&6
22440else
22441  ac_check_lib_save_LIBS=$LIBS
22442LIBS="-lsvld  $LIBS"
22443cat >conftest.$ac_ext <<_ACEOF
22444/* confdefs.h.  */
22445_ACEOF
22446cat confdefs.h >>conftest.$ac_ext
22447cat >>conftest.$ac_ext <<_ACEOF
22448/* end confdefs.h.  */
22449
22450/* Override any GCC internal prototype to avoid an error.
22451   Use char because int might match the return type of a GCC
22452   builtin and then its argument prototype would still apply.  */
22453#ifdef __cplusplus
22454extern "C"
22455#endif
22456char dlopen ();
22457int
22458main ()
22459{
22460return dlopen ();
22461  ;
22462  return 0;
22463}
22464_ACEOF
22465rm -f conftest.$ac_objext conftest$ac_exeext
22466if { (ac_try="$ac_link"
22467case "(($ac_try" in
22468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469  *) ac_try_echo=$ac_try;;
22470esac
22471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472  (eval "$ac_link") 2>conftest.er1
22473  ac_status=$?
22474  grep -v '^ *+' conftest.er1 >conftest.err
22475  rm -f conftest.er1
22476  cat conftest.err >&5
22477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478  (exit $ac_status); } && {
22479	 test -z "$ac_c_werror_flag" ||
22480	 test ! -s conftest.err
22481       } && test -s conftest$ac_exeext &&
22482       $as_test_x conftest$ac_exeext; then
22483  ac_cv_lib_svld_dlopen=yes
22484else
22485  echo "$as_me: failed program was:" >&5
22486sed 's/^/| /' conftest.$ac_ext >&5
22487
22488	ac_cv_lib_svld_dlopen=no
22489fi
22490
22491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22492      conftest$ac_exeext conftest.$ac_ext
22493LIBS=$ac_check_lib_save_LIBS
22494fi
22495{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
22496echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
22497if test $ac_cv_lib_svld_dlopen = yes; then
22498
22499cat >>confdefs.h <<\_ACEOF
22500#define HAVE_LIBDL 1
22501_ACEOF
22502
22503	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
22504else
22505  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
22506echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
22507if test "${ac_cv_lib_dld_dld_link+set}" = set; then
22508  echo $ECHO_N "(cached) $ECHO_C" >&6
22509else
22510  ac_check_lib_save_LIBS=$LIBS
22511LIBS="-ldld  $LIBS"
22512cat >conftest.$ac_ext <<_ACEOF
22513/* confdefs.h.  */
22514_ACEOF
22515cat confdefs.h >>conftest.$ac_ext
22516cat >>conftest.$ac_ext <<_ACEOF
22517/* end confdefs.h.  */
22518
22519/* Override any GCC internal prototype to avoid an error.
22520   Use char because int might match the return type of a GCC
22521   builtin and then its argument prototype would still apply.  */
22522#ifdef __cplusplus
22523extern "C"
22524#endif
22525char dld_link ();
22526int
22527main ()
22528{
22529return dld_link ();
22530  ;
22531  return 0;
22532}
22533_ACEOF
22534rm -f conftest.$ac_objext conftest$ac_exeext
22535if { (ac_try="$ac_link"
22536case "(($ac_try" in
22537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538  *) ac_try_echo=$ac_try;;
22539esac
22540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22541  (eval "$ac_link") 2>conftest.er1
22542  ac_status=$?
22543  grep -v '^ *+' conftest.er1 >conftest.err
22544  rm -f conftest.er1
22545  cat conftest.err >&5
22546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547  (exit $ac_status); } && {
22548	 test -z "$ac_c_werror_flag" ||
22549	 test ! -s conftest.err
22550       } && test -s conftest$ac_exeext &&
22551       $as_test_x conftest$ac_exeext; then
22552  ac_cv_lib_dld_dld_link=yes
22553else
22554  echo "$as_me: failed program was:" >&5
22555sed 's/^/| /' conftest.$ac_ext >&5
22556
22557	ac_cv_lib_dld_dld_link=no
22558fi
22559
22560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22561      conftest$ac_exeext conftest.$ac_ext
22562LIBS=$ac_check_lib_save_LIBS
22563fi
22564{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
22565echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
22566if test $ac_cv_lib_dld_dld_link = yes; then
22567
22568cat >>confdefs.h <<\_ACEOF
22569#define HAVE_DLD 1
22570_ACEOF
22571
22572	 	LIBADD_DL="$LIBADD_DL -ldld"
22573else
22574  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
22575echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
22576if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
22577  echo $ECHO_N "(cached) $ECHO_C" >&6
22578else
22579  cat >conftest.$ac_ext <<_ACEOF
22580/* confdefs.h.  */
22581_ACEOF
22582cat confdefs.h >>conftest.$ac_ext
22583cat >>conftest.$ac_ext <<_ACEOF
22584/* end confdefs.h.  */
22585/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
22586   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22587#define _dyld_func_lookup innocuous__dyld_func_lookup
22588
22589/* System header to define __stub macros and hopefully few prototypes,
22590    which can conflict with char _dyld_func_lookup (); below.
22591    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22592    <limits.h> exists even on freestanding compilers.  */
22593
22594#ifdef __STDC__
22595# include <limits.h>
22596#else
22597# include <assert.h>
22598#endif
22599
22600#undef _dyld_func_lookup
22601
22602/* Override any GCC internal prototype to avoid an error.
22603   Use char because int might match the return type of a GCC
22604   builtin and then its argument prototype would still apply.  */
22605#ifdef __cplusplus
22606extern "C"
22607#endif
22608char _dyld_func_lookup ();
22609/* The GNU C library defines this for functions which it implements
22610    to always fail with ENOSYS.  Some functions are actually named
22611    something starting with __ and the normal name is an alias.  */
22612#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
22613choke me
22614#endif
22615
22616int
22617main ()
22618{
22619return _dyld_func_lookup ();
22620  ;
22621  return 0;
22622}
22623_ACEOF
22624rm -f conftest.$ac_objext conftest$ac_exeext
22625if { (ac_try="$ac_link"
22626case "(($ac_try" in
22627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22628  *) ac_try_echo=$ac_try;;
22629esac
22630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22631  (eval "$ac_link") 2>conftest.er1
22632  ac_status=$?
22633  grep -v '^ *+' conftest.er1 >conftest.err
22634  rm -f conftest.er1
22635  cat conftest.err >&5
22636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637  (exit $ac_status); } && {
22638	 test -z "$ac_c_werror_flag" ||
22639	 test ! -s conftest.err
22640       } && test -s conftest$ac_exeext &&
22641       $as_test_x conftest$ac_exeext; then
22642  ac_cv_func__dyld_func_lookup=yes
22643else
22644  echo "$as_me: failed program was:" >&5
22645sed 's/^/| /' conftest.$ac_ext >&5
22646
22647	ac_cv_func__dyld_func_lookup=no
22648fi
22649
22650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22651      conftest$ac_exeext conftest.$ac_ext
22652fi
22653{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
22654echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
22655if test $ac_cv_func__dyld_func_lookup = yes; then
22656
22657cat >>confdefs.h <<\_ACEOF
22658#define HAVE_DYLD 1
22659_ACEOF
22660
22661fi
22662
22663
22664fi
22665
22666
22667fi
22668
22669
22670fi
22671
22672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22673      conftest$ac_exeext conftest.$ac_ext
22674
22675fi
22676
22677
22678fi
22679
22680
22681fi
22682
22683
22684if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
22685then
22686  lt_save_LIBS="$LIBS"
22687  LIBS="$LIBS $LIBADD_DL"
22688
22689for ac_func in dlerror
22690do
22691as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22692{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22694if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22695  echo $ECHO_N "(cached) $ECHO_C" >&6
22696else
22697  cat >conftest.$ac_ext <<_ACEOF
22698/* confdefs.h.  */
22699_ACEOF
22700cat confdefs.h >>conftest.$ac_ext
22701cat >>conftest.$ac_ext <<_ACEOF
22702/* end confdefs.h.  */
22703/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22704   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22705#define $ac_func innocuous_$ac_func
22706
22707/* System header to define __stub macros and hopefully few prototypes,
22708    which can conflict with char $ac_func (); below.
22709    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22710    <limits.h> exists even on freestanding compilers.  */
22711
22712#ifdef __STDC__
22713# include <limits.h>
22714#else
22715# include <assert.h>
22716#endif
22717
22718#undef $ac_func
22719
22720/* Override any GCC internal prototype to avoid an error.
22721   Use char because int might match the return type of a GCC
22722   builtin and then its argument prototype would still apply.  */
22723#ifdef __cplusplus
22724extern "C"
22725#endif
22726char $ac_func ();
22727/* The GNU C library defines this for functions which it implements
22728    to always fail with ENOSYS.  Some functions are actually named
22729    something starting with __ and the normal name is an alias.  */
22730#if defined __stub_$ac_func || defined __stub___$ac_func
22731choke me
22732#endif
22733
22734int
22735main ()
22736{
22737return $ac_func ();
22738  ;
22739  return 0;
22740}
22741_ACEOF
22742rm -f conftest.$ac_objext conftest$ac_exeext
22743if { (ac_try="$ac_link"
22744case "(($ac_try" in
22745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22746  *) ac_try_echo=$ac_try;;
22747esac
22748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22749  (eval "$ac_link") 2>conftest.er1
22750  ac_status=$?
22751  grep -v '^ *+' conftest.er1 >conftest.err
22752  rm -f conftest.er1
22753  cat conftest.err >&5
22754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755  (exit $ac_status); } && {
22756	 test -z "$ac_c_werror_flag" ||
22757	 test ! -s conftest.err
22758       } && test -s conftest$ac_exeext &&
22759       $as_test_x conftest$ac_exeext; then
22760  eval "$as_ac_var=yes"
22761else
22762  echo "$as_me: failed program was:" >&5
22763sed 's/^/| /' conftest.$ac_ext >&5
22764
22765	eval "$as_ac_var=no"
22766fi
22767
22768rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22769      conftest$ac_exeext conftest.$ac_ext
22770fi
22771ac_res=`eval echo '${'$as_ac_var'}'`
22772	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22773echo "${ECHO_T}$ac_res" >&6; }
22774if test `eval echo '${'$as_ac_var'}'` = yes; then
22775  cat >>confdefs.h <<_ACEOF
22776#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22777_ACEOF
22778
22779fi
22780done
22781
22782  LIBS="$lt_save_LIBS"
22783fi
22784ac_ext=c
22785ac_cpp='$CPP $CPPFLAGS'
22786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22788ac_compiler_gnu=$ac_cv_c_compiler_gnu
22789
22790
22791
22792
22793
22794for ac_func in dlopen dlsym dlclose
22795do
22796as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22797{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22798echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22799if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22800  echo $ECHO_N "(cached) $ECHO_C" >&6
22801else
22802  cat >conftest.$ac_ext <<_ACEOF
22803/* confdefs.h.  */
22804_ACEOF
22805cat confdefs.h >>conftest.$ac_ext
22806cat >>conftest.$ac_ext <<_ACEOF
22807/* end confdefs.h.  */
22808/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22809   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22810#define $ac_func innocuous_$ac_func
22811
22812/* System header to define __stub macros and hopefully few prototypes,
22813    which can conflict with char $ac_func (); below.
22814    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22815    <limits.h> exists even on freestanding compilers.  */
22816
22817#ifdef __STDC__
22818# include <limits.h>
22819#else
22820# include <assert.h>
22821#endif
22822
22823#undef $ac_func
22824
22825/* Override any GCC internal prototype to avoid an error.
22826   Use char because int might match the return type of a GCC
22827   builtin and then its argument prototype would still apply.  */
22828#ifdef __cplusplus
22829extern "C"
22830#endif
22831char $ac_func ();
22832/* The GNU C library defines this for functions which it implements
22833    to always fail with ENOSYS.  Some functions are actually named
22834    something starting with __ and the normal name is an alias.  */
22835#if defined __stub_$ac_func || defined __stub___$ac_func
22836choke me
22837#endif
22838
22839int
22840main ()
22841{
22842return $ac_func ();
22843  ;
22844  return 0;
22845}
22846_ACEOF
22847rm -f conftest.$ac_objext conftest$ac_exeext
22848if { (ac_try="$ac_link"
22849case "(($ac_try" in
22850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22851  *) ac_try_echo=$ac_try;;
22852esac
22853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22854  (eval "$ac_link") 2>conftest.er1
22855  ac_status=$?
22856  grep -v '^ *+' conftest.er1 >conftest.err
22857  rm -f conftest.er1
22858  cat conftest.err >&5
22859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860  (exit $ac_status); } && {
22861	 test -z "$ac_c_werror_flag" ||
22862	 test ! -s conftest.err
22863       } && test -s conftest$ac_exeext &&
22864       $as_test_x conftest$ac_exeext; then
22865  eval "$as_ac_var=yes"
22866else
22867  echo "$as_me: failed program was:" >&5
22868sed 's/^/| /' conftest.$ac_ext >&5
22869
22870	eval "$as_ac_var=no"
22871fi
22872
22873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22874      conftest$ac_exeext conftest.$ac_ext
22875fi
22876ac_res=`eval echo '${'$as_ac_var'}'`
22877	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22878echo "${ECHO_T}$ac_res" >&6; }
22879if test `eval echo '${'$as_ac_var'}'` = yes; then
22880  cat >>confdefs.h <<_ACEOF
22881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22882_ACEOF
22883
22884fi
22885done
22886
22887
22888{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
22889echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
22890if test "${ac_cv_sys_symbol_underscore+set}" = set; then
22891  echo $ECHO_N "(cached) $ECHO_C" >&6
22892else
22893  ac_cv_sys_symbol_underscore=no
22894  cat > conftest.$ac_ext <<EOF
22895void nm_test_func(){}
22896int main(){nm_test_func;return 0;}
22897EOF
22898  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22899  (eval $ac_compile) 2>&5
22900  ac_status=$?
22901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902  (exit $ac_status); }; then
22903    # Now try to grab the symbols.
22904    ac_nlist=conftest.nm
22905    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
22906  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
22907  ac_status=$?
22908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909  (exit $ac_status); } && test -s "$ac_nlist"; then
22910      # See whether the symbols have a leading underscore.
22911      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
22912        ac_cv_sys_symbol_underscore=yes
22913      else
22914        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
22915	  :
22916        else
22917	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
22918        fi
22919      fi
22920    else
22921      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
22922    fi
22923  else
22924    echo "configure: failed program was:" >&5
22925    cat conftest.c >&5
22926  fi
22927  rm -rf conftest*
22928
22929fi
22930{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
22931echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
22932
22933
22934if test x"$ac_cv_sys_symbol_underscore" = xyes; then
22935  if test x"$libltdl_cv_func_dlopen" = xyes ||
22936     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
22937	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
22938echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
22939if test "${libltdl_cv_need_uscore+set}" = set; then
22940  echo $ECHO_N "(cached) $ECHO_C" >&6
22941else
22942  libltdl_cv_need_uscore=unknown
22943          save_LIBS="$LIBS"
22944          LIBS="$LIBS $LIBADD_DL"
22945	  if test "$cross_compiling" = yes; then :
22946  libltdl_cv_need_uscore=cross
22947else
22948  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22949  lt_status=$lt_dlunknown
22950  cat > conftest.$ac_ext <<EOF
22951#line 22951 "configure"
22952#include "confdefs.h"
22953
22954#if HAVE_DLFCN_H
22955#include <dlfcn.h>
22956#endif
22957
22958#include <stdio.h>
22959
22960#ifdef RTLD_GLOBAL
22961#  define LT_DLGLOBAL		RTLD_GLOBAL
22962#else
22963#  ifdef DL_GLOBAL
22964#    define LT_DLGLOBAL		DL_GLOBAL
22965#  else
22966#    define LT_DLGLOBAL		0
22967#  endif
22968#endif
22969
22970/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22971   find out it does not work in some platform. */
22972#ifndef LT_DLLAZY_OR_NOW
22973#  ifdef RTLD_LAZY
22974#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
22975#  else
22976#    ifdef DL_LAZY
22977#      define LT_DLLAZY_OR_NOW		DL_LAZY
22978#    else
22979#      ifdef RTLD_NOW
22980#        define LT_DLLAZY_OR_NOW	RTLD_NOW
22981#      else
22982#        ifdef DL_NOW
22983#          define LT_DLLAZY_OR_NOW	DL_NOW
22984#        else
22985#          define LT_DLLAZY_OR_NOW	0
22986#        endif
22987#      endif
22988#    endif
22989#  endif
22990#endif
22991
22992#ifdef __cplusplus
22993extern "C" void exit (int);
22994#endif
22995
22996void fnord() { int i=42;}
22997int main ()
22998{
22999  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23000  int status = $lt_dlunknown;
23001
23002  if (self)
23003    {
23004      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23005      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23006      /* dlclose (self); */
23007    }
23008  else
23009    puts (dlerror ());
23010
23011    exit (status);
23012}
23013EOF
23014  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23015  (eval $ac_link) 2>&5
23016  ac_status=$?
23017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23019    (./conftest; exit; ) >&5 2>/dev/null
23020    lt_status=$?
23021    case x$lt_status in
23022      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
23023      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
23024      x$lt_dlunknown|x*)  ;;
23025    esac
23026  else :
23027    # compilation failed
23028
23029  fi
23030fi
23031rm -fr conftest*
23032
23033	  LIBS="$save_LIBS"
23034
23035fi
23036{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
23037echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
23038  fi
23039fi
23040
23041if test x"$libltdl_cv_need_uscore" = xyes; then
23042
23043cat >>confdefs.h <<\_ACEOF
23044#define NEED_USCORE 1
23045_ACEOF
23046
23047fi
23048
23049if test x"$libltdl_cv_need_uscore" = xyes; then
23050
23051cat >>confdefs.h <<\_ACEOF
23052#define DLSYM_PREPEND_UNDERSCORE 1
23053_ACEOF
23054
23055fi
23056
23057{ echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
23058echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
23059if test "${ac_cv_type_getgroups+set}" = set; then
23060  echo $ECHO_N "(cached) $ECHO_C" >&6
23061else
23062  if test "$cross_compiling" = yes; then
23063  ac_cv_type_getgroups=cross
23064else
23065  cat >conftest.$ac_ext <<_ACEOF
23066/* confdefs.h.  */
23067_ACEOF
23068cat confdefs.h >>conftest.$ac_ext
23069cat >>conftest.$ac_ext <<_ACEOF
23070/* end confdefs.h.  */
23071/* Thanks to Mike Rendell for this test.  */
23072$ac_includes_default
23073#define NGID 256
23074#undef MAX
23075#define MAX(x, y) ((x) > (y) ? (x) : (y))
23076
23077int
23078main ()
23079{
23080  gid_t gidset[NGID];
23081  int i, n;
23082  union { gid_t gval; long int lval; }  val;
23083
23084  val.lval = -1;
23085  for (i = 0; i < NGID; i++)
23086    gidset[i] = val.gval;
23087  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
23088		 gidset);
23089  /* Exit non-zero if getgroups seems to require an array of ints.  This
23090     happens when gid_t is short int but getgroups modifies an array
23091     of ints.  */
23092  return n > 0 && gidset[n] != val.gval;
23093}
23094_ACEOF
23095rm -f conftest$ac_exeext
23096if { (ac_try="$ac_link"
23097case "(($ac_try" in
23098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23099  *) ac_try_echo=$ac_try;;
23100esac
23101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23102  (eval "$ac_link") 2>&5
23103  ac_status=$?
23104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23106  { (case "(($ac_try" in
23107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108  *) ac_try_echo=$ac_try;;
23109esac
23110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23111  (eval "$ac_try") 2>&5
23112  ac_status=$?
23113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114  (exit $ac_status); }; }; then
23115  ac_cv_type_getgroups=gid_t
23116else
23117  echo "$as_me: program exited with status $ac_status" >&5
23118echo "$as_me: failed program was:" >&5
23119sed 's/^/| /' conftest.$ac_ext >&5
23120
23121( exit $ac_status )
23122ac_cv_type_getgroups=int
23123fi
23124rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23125fi
23126
23127
23128if test $ac_cv_type_getgroups = cross; then
23129        cat >conftest.$ac_ext <<_ACEOF
23130/* confdefs.h.  */
23131_ACEOF
23132cat confdefs.h >>conftest.$ac_ext
23133cat >>conftest.$ac_ext <<_ACEOF
23134/* end confdefs.h.  */
23135#include <unistd.h>
23136
23137_ACEOF
23138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23139  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
23140  ac_cv_type_getgroups=gid_t
23141else
23142  ac_cv_type_getgroups=int
23143fi
23144rm -f conftest*
23145
23146fi
23147fi
23148{ echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
23149echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
23150
23151cat >>confdefs.h <<_ACEOF
23152#define GETGROUPS_T $ac_cv_type_getgroups
23153_ACEOF
23154
23155
23156if test $ac_cv_c_compiler_gnu = yes; then
23157    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
23158echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
23159if test "${ac_cv_prog_gcc_traditional+set}" = set; then
23160  echo $ECHO_N "(cached) $ECHO_C" >&6
23161else
23162    ac_pattern="Autoconf.*'x'"
23163  cat >conftest.$ac_ext <<_ACEOF
23164/* confdefs.h.  */
23165_ACEOF
23166cat confdefs.h >>conftest.$ac_ext
23167cat >>conftest.$ac_ext <<_ACEOF
23168/* end confdefs.h.  */
23169#include <sgtty.h>
23170Autoconf TIOCGETP
23171_ACEOF
23172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23173  $EGREP "$ac_pattern" >/dev/null 2>&1; then
23174  ac_cv_prog_gcc_traditional=yes
23175else
23176  ac_cv_prog_gcc_traditional=no
23177fi
23178rm -f conftest*
23179
23180
23181  if test $ac_cv_prog_gcc_traditional = no; then
23182    cat >conftest.$ac_ext <<_ACEOF
23183/* confdefs.h.  */
23184_ACEOF
23185cat confdefs.h >>conftest.$ac_ext
23186cat >>conftest.$ac_ext <<_ACEOF
23187/* end confdefs.h.  */
23188#include <termio.h>
23189Autoconf TCGETA
23190_ACEOF
23191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23192  $EGREP "$ac_pattern" >/dev/null 2>&1; then
23193  ac_cv_prog_gcc_traditional=yes
23194fi
23195rm -f conftest*
23196
23197  fi
23198fi
23199{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
23200echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
23201  if test $ac_cv_prog_gcc_traditional = yes; then
23202    CC="$CC -traditional"
23203  fi
23204fi
23205
23206{ echo "$as_me:$LINENO: checking for working memcmp" >&5
23207echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
23208if test "${ac_cv_func_memcmp_working+set}" = set; then
23209  echo $ECHO_N "(cached) $ECHO_C" >&6
23210else
23211  if test "$cross_compiling" = yes; then
23212  ac_cv_func_memcmp_working=no
23213else
23214  cat >conftest.$ac_ext <<_ACEOF
23215/* confdefs.h.  */
23216_ACEOF
23217cat confdefs.h >>conftest.$ac_ext
23218cat >>conftest.$ac_ext <<_ACEOF
23219/* end confdefs.h.  */
23220$ac_includes_default
23221int
23222main ()
23223{
23224
23225  /* Some versions of memcmp are not 8-bit clean.  */
23226  char c0 = '\100', c1 = '\200', c2 = '\201';
23227  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23228    return 1;
23229
23230  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23231     or more and with at least one buffer not starting on a 4-byte boundary.
23232     William Lewis provided this test program.   */
23233  {
23234    char foo[21];
23235    char bar[21];
23236    int i;
23237    for (i = 0; i < 4; i++)
23238      {
23239	char *a = foo + i;
23240	char *b = bar + i;
23241	strcpy (a, "--------01111111");
23242	strcpy (b, "--------10000000");
23243	if (memcmp (a, b, 16) >= 0)
23244	  return 1;
23245      }
23246    return 0;
23247  }
23248
23249  ;
23250  return 0;
23251}
23252_ACEOF
23253rm -f conftest$ac_exeext
23254if { (ac_try="$ac_link"
23255case "(($ac_try" in
23256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23257  *) ac_try_echo=$ac_try;;
23258esac
23259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23260  (eval "$ac_link") 2>&5
23261  ac_status=$?
23262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23264  { (case "(($ac_try" in
23265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266  *) ac_try_echo=$ac_try;;
23267esac
23268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269  (eval "$ac_try") 2>&5
23270  ac_status=$?
23271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272  (exit $ac_status); }; }; then
23273  ac_cv_func_memcmp_working=yes
23274else
23275  echo "$as_me: program exited with status $ac_status" >&5
23276echo "$as_me: failed program was:" >&5
23277sed 's/^/| /' conftest.$ac_ext >&5
23278
23279( exit $ac_status )
23280ac_cv_func_memcmp_working=no
23281fi
23282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23283fi
23284
23285
23286fi
23287{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
23288echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
23289test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23290  *" memcmp.$ac_objext "* ) ;;
23291  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23292 ;;
23293esac
23294
23295
23296{ echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
23297echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
23298if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
23299  echo $ECHO_N "(cached) $ECHO_C" >&6
23300else
23301  cat >conftest.$ac_ext <<_ACEOF
23302/* confdefs.h.  */
23303_ACEOF
23304cat confdefs.h >>conftest.$ac_ext
23305cat >>conftest.$ac_ext <<_ACEOF
23306/* end confdefs.h.  */
23307#include <sys/types.h>
23308int
23309main ()
23310{
23311return makedev(0, 0);
23312  ;
23313  return 0;
23314}
23315_ACEOF
23316rm -f conftest.$ac_objext conftest$ac_exeext
23317if { (ac_try="$ac_link"
23318case "(($ac_try" in
23319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23320  *) ac_try_echo=$ac_try;;
23321esac
23322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23323  (eval "$ac_link") 2>conftest.er1
23324  ac_status=$?
23325  grep -v '^ *+' conftest.er1 >conftest.err
23326  rm -f conftest.er1
23327  cat conftest.err >&5
23328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329  (exit $ac_status); } && {
23330	 test -z "$ac_c_werror_flag" ||
23331	 test ! -s conftest.err
23332       } && test -s conftest$ac_exeext &&
23333       $as_test_x conftest$ac_exeext; then
23334  ac_cv_header_sys_types_h_makedev=yes
23335else
23336  echo "$as_me: failed program was:" >&5
23337sed 's/^/| /' conftest.$ac_ext >&5
23338
23339	ac_cv_header_sys_types_h_makedev=no
23340fi
23341
23342rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23343      conftest$ac_exeext conftest.$ac_ext
23344
23345fi
23346{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
23347echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
23348
23349if test $ac_cv_header_sys_types_h_makedev = no; then
23350if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
23351  { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
23352echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
23353if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
23354  echo $ECHO_N "(cached) $ECHO_C" >&6
23355fi
23356{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
23357echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
23358else
23359  # Is the header compilable?
23360{ echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
23361echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
23362cat >conftest.$ac_ext <<_ACEOF
23363/* confdefs.h.  */
23364_ACEOF
23365cat confdefs.h >>conftest.$ac_ext
23366cat >>conftest.$ac_ext <<_ACEOF
23367/* end confdefs.h.  */
23368$ac_includes_default
23369#include <sys/mkdev.h>
23370_ACEOF
23371rm -f conftest.$ac_objext
23372if { (ac_try="$ac_compile"
23373case "(($ac_try" in
23374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375  *) ac_try_echo=$ac_try;;
23376esac
23377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378  (eval "$ac_compile") 2>conftest.er1
23379  ac_status=$?
23380  grep -v '^ *+' conftest.er1 >conftest.err
23381  rm -f conftest.er1
23382  cat conftest.err >&5
23383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384  (exit $ac_status); } && {
23385	 test -z "$ac_c_werror_flag" ||
23386	 test ! -s conftest.err
23387       } && test -s conftest.$ac_objext; then
23388  ac_header_compiler=yes
23389else
23390  echo "$as_me: failed program was:" >&5
23391sed 's/^/| /' conftest.$ac_ext >&5
23392
23393	ac_header_compiler=no
23394fi
23395
23396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23397{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23398echo "${ECHO_T}$ac_header_compiler" >&6; }
23399
23400# Is the header present?
23401{ echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
23402echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
23403cat >conftest.$ac_ext <<_ACEOF
23404/* confdefs.h.  */
23405_ACEOF
23406cat confdefs.h >>conftest.$ac_ext
23407cat >>conftest.$ac_ext <<_ACEOF
23408/* end confdefs.h.  */
23409#include <sys/mkdev.h>
23410_ACEOF
23411if { (ac_try="$ac_cpp conftest.$ac_ext"
23412case "(($ac_try" in
23413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414  *) ac_try_echo=$ac_try;;
23415esac
23416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23418  ac_status=$?
23419  grep -v '^ *+' conftest.er1 >conftest.err
23420  rm -f conftest.er1
23421  cat conftest.err >&5
23422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423  (exit $ac_status); } >/dev/null && {
23424	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23425	 test ! -s conftest.err
23426       }; then
23427  ac_header_preproc=yes
23428else
23429  echo "$as_me: failed program was:" >&5
23430sed 's/^/| /' conftest.$ac_ext >&5
23431
23432  ac_header_preproc=no
23433fi
23434
23435rm -f conftest.err conftest.$ac_ext
23436{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23437echo "${ECHO_T}$ac_header_preproc" >&6; }
23438
23439# So?  What about this header?
23440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23441  yes:no: )
23442    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
23443echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23444    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
23445echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
23446    ac_header_preproc=yes
23447    ;;
23448  no:yes:* )
23449    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
23450echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
23451    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
23452echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
23453    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
23454echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
23455    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
23456echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23457    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
23458echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
23459    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
23460echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
23461
23462    ;;
23463esac
23464{ echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
23465echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
23466if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
23467  echo $ECHO_N "(cached) $ECHO_C" >&6
23468else
23469  ac_cv_header_sys_mkdev_h=$ac_header_preproc
23470fi
23471{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
23472echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
23473
23474fi
23475if test $ac_cv_header_sys_mkdev_h = yes; then
23476
23477cat >>confdefs.h <<\_ACEOF
23478#define MAJOR_IN_MKDEV 1
23479_ACEOF
23480
23481fi
23482
23483
23484
23485  if test $ac_cv_header_sys_mkdev_h = no; then
23486    if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
23487  { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
23488echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
23489if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
23490  echo $ECHO_N "(cached) $ECHO_C" >&6
23491fi
23492{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
23493echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
23494else
23495  # Is the header compilable?
23496{ echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
23497echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
23498cat >conftest.$ac_ext <<_ACEOF
23499/* confdefs.h.  */
23500_ACEOF
23501cat confdefs.h >>conftest.$ac_ext
23502cat >>conftest.$ac_ext <<_ACEOF
23503/* end confdefs.h.  */
23504$ac_includes_default
23505#include <sys/sysmacros.h>
23506_ACEOF
23507rm -f conftest.$ac_objext
23508if { (ac_try="$ac_compile"
23509case "(($ac_try" in
23510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23511  *) ac_try_echo=$ac_try;;
23512esac
23513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23514  (eval "$ac_compile") 2>conftest.er1
23515  ac_status=$?
23516  grep -v '^ *+' conftest.er1 >conftest.err
23517  rm -f conftest.er1
23518  cat conftest.err >&5
23519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520  (exit $ac_status); } && {
23521	 test -z "$ac_c_werror_flag" ||
23522	 test ! -s conftest.err
23523       } && test -s conftest.$ac_objext; then
23524  ac_header_compiler=yes
23525else
23526  echo "$as_me: failed program was:" >&5
23527sed 's/^/| /' conftest.$ac_ext >&5
23528
23529	ac_header_compiler=no
23530fi
23531
23532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23533{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23534echo "${ECHO_T}$ac_header_compiler" >&6; }
23535
23536# Is the header present?
23537{ echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
23538echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
23539cat >conftest.$ac_ext <<_ACEOF
23540/* confdefs.h.  */
23541_ACEOF
23542cat confdefs.h >>conftest.$ac_ext
23543cat >>conftest.$ac_ext <<_ACEOF
23544/* end confdefs.h.  */
23545#include <sys/sysmacros.h>
23546_ACEOF
23547if { (ac_try="$ac_cpp conftest.$ac_ext"
23548case "(($ac_try" in
23549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23550  *) ac_try_echo=$ac_try;;
23551esac
23552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23553  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23554  ac_status=$?
23555  grep -v '^ *+' conftest.er1 >conftest.err
23556  rm -f conftest.er1
23557  cat conftest.err >&5
23558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559  (exit $ac_status); } >/dev/null && {
23560	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23561	 test ! -s conftest.err
23562       }; then
23563  ac_header_preproc=yes
23564else
23565  echo "$as_me: failed program was:" >&5
23566sed 's/^/| /' conftest.$ac_ext >&5
23567
23568  ac_header_preproc=no
23569fi
23570
23571rm -f conftest.err conftest.$ac_ext
23572{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23573echo "${ECHO_T}$ac_header_preproc" >&6; }
23574
23575# So?  What about this header?
23576case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23577  yes:no: )
23578    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
23579echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23580    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
23581echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
23582    ac_header_preproc=yes
23583    ;;
23584  no:yes:* )
23585    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
23586echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
23587    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
23588echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
23589    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
23590echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
23591    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
23592echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23593    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
23594echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
23595    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
23596echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
23597
23598    ;;
23599esac
23600{ echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
23601echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
23602if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
23603  echo $ECHO_N "(cached) $ECHO_C" >&6
23604else
23605  ac_cv_header_sys_sysmacros_h=$ac_header_preproc
23606fi
23607{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
23608echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
23609
23610fi
23611if test $ac_cv_header_sys_sysmacros_h = yes; then
23612
23613cat >>confdefs.h <<\_ACEOF
23614#define MAJOR_IN_SYSMACROS 1
23615_ACEOF
23616
23617fi
23618
23619
23620  fi
23621fi
23622
23623
23624
23625for ac_header in stdlib.h unistd.h
23626do
23627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23629  { echo "$as_me:$LINENO: checking for $ac_header" >&5
23630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23632  echo $ECHO_N "(cached) $ECHO_C" >&6
23633fi
23634ac_res=`eval echo '${'$as_ac_Header'}'`
23635	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23636echo "${ECHO_T}$ac_res" >&6; }
23637else
23638  # Is the header compilable?
23639{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23640echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23641cat >conftest.$ac_ext <<_ACEOF
23642/* confdefs.h.  */
23643_ACEOF
23644cat confdefs.h >>conftest.$ac_ext
23645cat >>conftest.$ac_ext <<_ACEOF
23646/* end confdefs.h.  */
23647$ac_includes_default
23648#include <$ac_header>
23649_ACEOF
23650rm -f conftest.$ac_objext
23651if { (ac_try="$ac_compile"
23652case "(($ac_try" in
23653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23654  *) ac_try_echo=$ac_try;;
23655esac
23656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23657  (eval "$ac_compile") 2>conftest.er1
23658  ac_status=$?
23659  grep -v '^ *+' conftest.er1 >conftest.err
23660  rm -f conftest.er1
23661  cat conftest.err >&5
23662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663  (exit $ac_status); } && {
23664	 test -z "$ac_c_werror_flag" ||
23665	 test ! -s conftest.err
23666       } && test -s conftest.$ac_objext; then
23667  ac_header_compiler=yes
23668else
23669  echo "$as_me: failed program was:" >&5
23670sed 's/^/| /' conftest.$ac_ext >&5
23671
23672	ac_header_compiler=no
23673fi
23674
23675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23676{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23677echo "${ECHO_T}$ac_header_compiler" >&6; }
23678
23679# Is the header present?
23680{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23681echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23682cat >conftest.$ac_ext <<_ACEOF
23683/* confdefs.h.  */
23684_ACEOF
23685cat confdefs.h >>conftest.$ac_ext
23686cat >>conftest.$ac_ext <<_ACEOF
23687/* end confdefs.h.  */
23688#include <$ac_header>
23689_ACEOF
23690if { (ac_try="$ac_cpp conftest.$ac_ext"
23691case "(($ac_try" in
23692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23693  *) ac_try_echo=$ac_try;;
23694esac
23695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23696  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23697  ac_status=$?
23698  grep -v '^ *+' conftest.er1 >conftest.err
23699  rm -f conftest.er1
23700  cat conftest.err >&5
23701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702  (exit $ac_status); } >/dev/null && {
23703	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23704	 test ! -s conftest.err
23705       }; then
23706  ac_header_preproc=yes
23707else
23708  echo "$as_me: failed program was:" >&5
23709sed 's/^/| /' conftest.$ac_ext >&5
23710
23711  ac_header_preproc=no
23712fi
23713
23714rm -f conftest.err conftest.$ac_ext
23715{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23716echo "${ECHO_T}$ac_header_preproc" >&6; }
23717
23718# So?  What about this header?
23719case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23720  yes:no: )
23721    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23722echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23723    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23724echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23725    ac_header_preproc=yes
23726    ;;
23727  no:yes:* )
23728    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23729echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23730    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23731echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23732    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23733echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23734    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23735echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23736    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23737echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23738    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23739echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23740
23741    ;;
23742esac
23743{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23746  echo $ECHO_N "(cached) $ECHO_C" >&6
23747else
23748  eval "$as_ac_Header=\$ac_header_preproc"
23749fi
23750ac_res=`eval echo '${'$as_ac_Header'}'`
23751	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23752echo "${ECHO_T}$ac_res" >&6; }
23753
23754fi
23755if test `eval echo '${'$as_ac_Header'}'` = yes; then
23756  cat >>confdefs.h <<_ACEOF
23757#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23758_ACEOF
23759
23760fi
23761
23762done
23763
23764
23765for ac_func in getpagesize
23766do
23767as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23768{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23770if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23771  echo $ECHO_N "(cached) $ECHO_C" >&6
23772else
23773  cat >conftest.$ac_ext <<_ACEOF
23774/* confdefs.h.  */
23775_ACEOF
23776cat confdefs.h >>conftest.$ac_ext
23777cat >>conftest.$ac_ext <<_ACEOF
23778/* end confdefs.h.  */
23779/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23780   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23781#define $ac_func innocuous_$ac_func
23782
23783/* System header to define __stub macros and hopefully few prototypes,
23784    which can conflict with char $ac_func (); below.
23785    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23786    <limits.h> exists even on freestanding compilers.  */
23787
23788#ifdef __STDC__
23789# include <limits.h>
23790#else
23791# include <assert.h>
23792#endif
23793
23794#undef $ac_func
23795
23796/* Override any GCC internal prototype to avoid an error.
23797   Use char because int might match the return type of a GCC
23798   builtin and then its argument prototype would still apply.  */
23799#ifdef __cplusplus
23800extern "C"
23801#endif
23802char $ac_func ();
23803/* The GNU C library defines this for functions which it implements
23804    to always fail with ENOSYS.  Some functions are actually named
23805    something starting with __ and the normal name is an alias.  */
23806#if defined __stub_$ac_func || defined __stub___$ac_func
23807choke me
23808#endif
23809
23810int
23811main ()
23812{
23813return $ac_func ();
23814  ;
23815  return 0;
23816}
23817_ACEOF
23818rm -f conftest.$ac_objext conftest$ac_exeext
23819if { (ac_try="$ac_link"
23820case "(($ac_try" in
23821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822  *) ac_try_echo=$ac_try;;
23823esac
23824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23825  (eval "$ac_link") 2>conftest.er1
23826  ac_status=$?
23827  grep -v '^ *+' conftest.er1 >conftest.err
23828  rm -f conftest.er1
23829  cat conftest.err >&5
23830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831  (exit $ac_status); } && {
23832	 test -z "$ac_c_werror_flag" ||
23833	 test ! -s conftest.err
23834       } && test -s conftest$ac_exeext &&
23835       $as_test_x conftest$ac_exeext; then
23836  eval "$as_ac_var=yes"
23837else
23838  echo "$as_me: failed program was:" >&5
23839sed 's/^/| /' conftest.$ac_ext >&5
23840
23841	eval "$as_ac_var=no"
23842fi
23843
23844rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23845      conftest$ac_exeext conftest.$ac_ext
23846fi
23847ac_res=`eval echo '${'$as_ac_var'}'`
23848	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23849echo "${ECHO_T}$ac_res" >&6; }
23850if test `eval echo '${'$as_ac_var'}'` = yes; then
23851  cat >>confdefs.h <<_ACEOF
23852#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23853_ACEOF
23854
23855fi
23856done
23857
23858{ echo "$as_me:$LINENO: checking for working mmap" >&5
23859echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
23860if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23861  echo $ECHO_N "(cached) $ECHO_C" >&6
23862else
23863  if test "$cross_compiling" = yes; then
23864  ac_cv_func_mmap_fixed_mapped=no
23865else
23866  cat >conftest.$ac_ext <<_ACEOF
23867/* confdefs.h.  */
23868_ACEOF
23869cat confdefs.h >>conftest.$ac_ext
23870cat >>conftest.$ac_ext <<_ACEOF
23871/* end confdefs.h.  */
23872$ac_includes_default
23873/* malloc might have been renamed as rpl_malloc. */
23874#undef malloc
23875
23876/* Thanks to Mike Haertel and Jim Avera for this test.
23877   Here is a matrix of mmap possibilities:
23878	mmap private not fixed
23879	mmap private fixed at somewhere currently unmapped
23880	mmap private fixed at somewhere already mapped
23881	mmap shared not fixed
23882	mmap shared fixed at somewhere currently unmapped
23883	mmap shared fixed at somewhere already mapped
23884   For private mappings, we should verify that changes cannot be read()
23885   back from the file, nor mmap's back from the file at a different
23886   address.  (There have been systems where private was not correctly
23887   implemented like the infamous i386 svr4.0, and systems where the
23888   VM page cache was not coherent with the file system buffer cache
23889   like early versions of FreeBSD and possibly contemporary NetBSD.)
23890   For shared mappings, we should conversely verify that changes get
23891   propagated back to all the places they're supposed to be.
23892
23893   Grep wants private fixed already mapped.
23894   The main things grep needs to know about mmap are:
23895   * does it exist and is it safe to write into the mmap'd area
23896   * how to use it (BSD variants)  */
23897
23898#include <fcntl.h>
23899#include <sys/mman.h>
23900
23901#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23902char *malloc ();
23903#endif
23904
23905/* This mess was copied from the GNU getpagesize.h.  */
23906#ifndef HAVE_GETPAGESIZE
23907/* Assume that all systems that can run configure have sys/param.h.  */
23908# ifndef HAVE_SYS_PARAM_H
23909#  define HAVE_SYS_PARAM_H 1
23910# endif
23911
23912# ifdef _SC_PAGESIZE
23913#  define getpagesize() sysconf(_SC_PAGESIZE)
23914# else /* no _SC_PAGESIZE */
23915#  ifdef HAVE_SYS_PARAM_H
23916#   include <sys/param.h>
23917#   ifdef EXEC_PAGESIZE
23918#    define getpagesize() EXEC_PAGESIZE
23919#   else /* no EXEC_PAGESIZE */
23920#    ifdef NBPG
23921#     define getpagesize() NBPG * CLSIZE
23922#     ifndef CLSIZE
23923#      define CLSIZE 1
23924#     endif /* no CLSIZE */
23925#    else /* no NBPG */
23926#     ifdef NBPC
23927#      define getpagesize() NBPC
23928#     else /* no NBPC */
23929#      ifdef PAGESIZE
23930#       define getpagesize() PAGESIZE
23931#      endif /* PAGESIZE */
23932#     endif /* no NBPC */
23933#    endif /* no NBPG */
23934#   endif /* no EXEC_PAGESIZE */
23935#  else /* no HAVE_SYS_PARAM_H */
23936#   define getpagesize() 8192	/* punt totally */
23937#  endif /* no HAVE_SYS_PARAM_H */
23938# endif /* no _SC_PAGESIZE */
23939
23940#endif /* no HAVE_GETPAGESIZE */
23941
23942int
23943main ()
23944{
23945  char *data, *data2, *data3;
23946  int i, pagesize;
23947  int fd;
23948
23949  pagesize = getpagesize ();
23950
23951  /* First, make a file with some known garbage in it. */
23952  data = (char *) malloc (pagesize);
23953  if (!data)
23954    return 1;
23955  for (i = 0; i < pagesize; ++i)
23956    *(data + i) = rand ();
23957  umask (0);
23958  fd = creat ("conftest.mmap", 0600);
23959  if (fd < 0)
23960    return 1;
23961  if (write (fd, data, pagesize) != pagesize)
23962    return 1;
23963  close (fd);
23964
23965  /* Next, try to mmap the file at a fixed address which already has
23966     something else allocated at it.  If we can, also make sure that
23967     we see the same garbage.  */
23968  fd = open ("conftest.mmap", O_RDWR);
23969  if (fd < 0)
23970    return 1;
23971  data2 = (char *) malloc (2 * pagesize);
23972  if (!data2)
23973    return 1;
23974  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
23975  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23976		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
23977    return 1;
23978  for (i = 0; i < pagesize; ++i)
23979    if (*(data + i) != *(data2 + i))
23980      return 1;
23981
23982  /* Finally, make sure that changes to the mapped area do not
23983     percolate back to the file as seen by read().  (This is a bug on
23984     some variants of i386 svr4.0.)  */
23985  for (i = 0; i < pagesize; ++i)
23986    *(data2 + i) = *(data2 + i) + 1;
23987  data3 = (char *) malloc (pagesize);
23988  if (!data3)
23989    return 1;
23990  if (read (fd, data3, pagesize) != pagesize)
23991    return 1;
23992  for (i = 0; i < pagesize; ++i)
23993    if (*(data + i) != *(data3 + i))
23994      return 1;
23995  close (fd);
23996  return 0;
23997}
23998_ACEOF
23999rm -f conftest$ac_exeext
24000if { (ac_try="$ac_link"
24001case "(($ac_try" in
24002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24003  *) ac_try_echo=$ac_try;;
24004esac
24005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24006  (eval "$ac_link") 2>&5
24007  ac_status=$?
24008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24010  { (case "(($ac_try" in
24011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24012  *) ac_try_echo=$ac_try;;
24013esac
24014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24015  (eval "$ac_try") 2>&5
24016  ac_status=$?
24017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018  (exit $ac_status); }; }; then
24019  ac_cv_func_mmap_fixed_mapped=yes
24020else
24021  echo "$as_me: program exited with status $ac_status" >&5
24022echo "$as_me: failed program was:" >&5
24023sed 's/^/| /' conftest.$ac_ext >&5
24024
24025( exit $ac_status )
24026ac_cv_func_mmap_fixed_mapped=no
24027fi
24028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24029fi
24030
24031
24032fi
24033{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24034echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
24035if test $ac_cv_func_mmap_fixed_mapped = yes; then
24036
24037cat >>confdefs.h <<\_ACEOF
24038#define HAVE_MMAP 1
24039_ACEOF
24040
24041fi
24042rm -f conftest.mmap
24043
24044{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24045echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24046if test "${ac_cv_type_signal+set}" = set; then
24047  echo $ECHO_N "(cached) $ECHO_C" >&6
24048else
24049  cat >conftest.$ac_ext <<_ACEOF
24050/* confdefs.h.  */
24051_ACEOF
24052cat confdefs.h >>conftest.$ac_ext
24053cat >>conftest.$ac_ext <<_ACEOF
24054/* end confdefs.h.  */
24055#include <sys/types.h>
24056#include <signal.h>
24057
24058int
24059main ()
24060{
24061return *(signal (0, 0)) (0) == 1;
24062  ;
24063  return 0;
24064}
24065_ACEOF
24066rm -f conftest.$ac_objext
24067if { (ac_try="$ac_compile"
24068case "(($ac_try" in
24069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24070  *) ac_try_echo=$ac_try;;
24071esac
24072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24073  (eval "$ac_compile") 2>conftest.er1
24074  ac_status=$?
24075  grep -v '^ *+' conftest.er1 >conftest.err
24076  rm -f conftest.er1
24077  cat conftest.err >&5
24078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079  (exit $ac_status); } && {
24080	 test -z "$ac_c_werror_flag" ||
24081	 test ! -s conftest.err
24082       } && test -s conftest.$ac_objext; then
24083  ac_cv_type_signal=int
24084else
24085  echo "$as_me: failed program was:" >&5
24086sed 's/^/| /' conftest.$ac_ext >&5
24087
24088	ac_cv_type_signal=void
24089fi
24090
24091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24092fi
24093{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24094echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24095
24096cat >>confdefs.h <<_ACEOF
24097#define RETSIGTYPE $ac_cv_type_signal
24098_ACEOF
24099
24100
24101
24102
24103
24104
24105for ac_header in $ac_header_list
24106do
24107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24109  { echo "$as_me:$LINENO: checking for $ac_header" >&5
24110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24112  echo $ECHO_N "(cached) $ECHO_C" >&6
24113fi
24114ac_res=`eval echo '${'$as_ac_Header'}'`
24115	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24116echo "${ECHO_T}$ac_res" >&6; }
24117else
24118  # Is the header compilable?
24119{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24120echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24121cat >conftest.$ac_ext <<_ACEOF
24122/* confdefs.h.  */
24123_ACEOF
24124cat confdefs.h >>conftest.$ac_ext
24125cat >>conftest.$ac_ext <<_ACEOF
24126/* end confdefs.h.  */
24127$ac_includes_default
24128#include <$ac_header>
24129_ACEOF
24130rm -f conftest.$ac_objext
24131if { (ac_try="$ac_compile"
24132case "(($ac_try" in
24133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24134  *) ac_try_echo=$ac_try;;
24135esac
24136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24137  (eval "$ac_compile") 2>conftest.er1
24138  ac_status=$?
24139  grep -v '^ *+' conftest.er1 >conftest.err
24140  rm -f conftest.er1
24141  cat conftest.err >&5
24142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143  (exit $ac_status); } && {
24144	 test -z "$ac_c_werror_flag" ||
24145	 test ! -s conftest.err
24146       } && test -s conftest.$ac_objext; then
24147  ac_header_compiler=yes
24148else
24149  echo "$as_me: failed program was:" >&5
24150sed 's/^/| /' conftest.$ac_ext >&5
24151
24152	ac_header_compiler=no
24153fi
24154
24155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24156{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24157echo "${ECHO_T}$ac_header_compiler" >&6; }
24158
24159# Is the header present?
24160{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24162cat >conftest.$ac_ext <<_ACEOF
24163/* confdefs.h.  */
24164_ACEOF
24165cat confdefs.h >>conftest.$ac_ext
24166cat >>conftest.$ac_ext <<_ACEOF
24167/* end confdefs.h.  */
24168#include <$ac_header>
24169_ACEOF
24170if { (ac_try="$ac_cpp conftest.$ac_ext"
24171case "(($ac_try" in
24172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24173  *) ac_try_echo=$ac_try;;
24174esac
24175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24176  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24177  ac_status=$?
24178  grep -v '^ *+' conftest.er1 >conftest.err
24179  rm -f conftest.er1
24180  cat conftest.err >&5
24181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24182  (exit $ac_status); } >/dev/null && {
24183	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24184	 test ! -s conftest.err
24185       }; then
24186  ac_header_preproc=yes
24187else
24188  echo "$as_me: failed program was:" >&5
24189sed 's/^/| /' conftest.$ac_ext >&5
24190
24191  ac_header_preproc=no
24192fi
24193
24194rm -f conftest.err conftest.$ac_ext
24195{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24196echo "${ECHO_T}$ac_header_preproc" >&6; }
24197
24198# So?  What about this header?
24199case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24200  yes:no: )
24201    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24202echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24203    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24204echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24205    ac_header_preproc=yes
24206    ;;
24207  no:yes:* )
24208    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24209echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24210    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24211echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24212    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24213echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24214    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24215echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24216    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24217echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24218    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24219echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24220
24221    ;;
24222esac
24223{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24226  echo $ECHO_N "(cached) $ECHO_C" >&6
24227else
24228  eval "$as_ac_Header=\$ac_header_preproc"
24229fi
24230ac_res=`eval echo '${'$as_ac_Header'}'`
24231	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24232echo "${ECHO_T}$ac_res" >&6; }
24233
24234fi
24235if test `eval echo '${'$as_ac_Header'}'` = yes; then
24236  cat >>confdefs.h <<_ACEOF
24237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24238_ACEOF
24239
24240fi
24241
24242done
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252{ echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
24253echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
24254if test "${ac_cv_func_utime_null+set}" = set; then
24255  echo $ECHO_N "(cached) $ECHO_C" >&6
24256else
24257  rm -f conftest.data; >conftest.data
24258# Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
24259if test "$cross_compiling" = yes; then
24260  ac_cv_func_utime_null=no
24261else
24262  cat >conftest.$ac_ext <<_ACEOF
24263/* confdefs.h.  */
24264_ACEOF
24265cat confdefs.h >>conftest.$ac_ext
24266cat >>conftest.$ac_ext <<_ACEOF
24267/* end confdefs.h.  */
24268$ac_includes_default
24269	       #ifdef HAVE_UTIME_H
24270	       # include <utime.h>
24271	       #endif
24272int
24273main ()
24274{
24275struct stat s, t;
24276  return ! (stat ("conftest.data", &s) == 0
24277	    && utime ("conftest.data", 0) == 0
24278	    && stat ("conftest.data", &t) == 0
24279	    && t.st_mtime >= s.st_mtime
24280	    && t.st_mtime - s.st_mtime < 120);
24281  ;
24282  return 0;
24283}
24284_ACEOF
24285rm -f conftest$ac_exeext
24286if { (ac_try="$ac_link"
24287case "(($ac_try" in
24288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24289  *) ac_try_echo=$ac_try;;
24290esac
24291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24292  (eval "$ac_link") 2>&5
24293  ac_status=$?
24294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24296  { (case "(($ac_try" in
24297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24298  *) ac_try_echo=$ac_try;;
24299esac
24300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24301  (eval "$ac_try") 2>&5
24302  ac_status=$?
24303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304  (exit $ac_status); }; }; then
24305  ac_cv_func_utime_null=yes
24306else
24307  echo "$as_me: program exited with status $ac_status" >&5
24308echo "$as_me: failed program was:" >&5
24309sed 's/^/| /' conftest.$ac_ext >&5
24310
24311( exit $ac_status )
24312ac_cv_func_utime_null=no
24313fi
24314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24315fi
24316
24317
24318fi
24319{ echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
24320echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
24321if test $ac_cv_func_utime_null = yes; then
24322
24323cat >>confdefs.h <<\_ACEOF
24324#define HAVE_UTIME_NULL 1
24325_ACEOF
24326
24327fi
24328rm -f conftest.data
24329
24330{ echo "$as_me:$LINENO: checking for wait3 that fills in rusage" >&5
24331echo $ECHO_N "checking for wait3 that fills in rusage... $ECHO_C" >&6; }
24332if test "${ac_cv_func_wait3_rusage+set}" = set; then
24333  echo $ECHO_N "(cached) $ECHO_C" >&6
24334else
24335  if test "$cross_compiling" = yes; then
24336  ac_cv_func_wait3_rusage=no
24337else
24338  cat >conftest.$ac_ext <<_ACEOF
24339/* confdefs.h.  */
24340_ACEOF
24341cat confdefs.h >>conftest.$ac_ext
24342cat >>conftest.$ac_ext <<_ACEOF
24343/* end confdefs.h.  */
24344$ac_includes_default
24345#include <sys/time.h>
24346#include <sys/resource.h>
24347#include <sys/wait.h>
24348/* HP-UX has wait3 but does not fill in rusage at all.  */
24349int
24350main ()
24351{
24352  struct rusage r;
24353  int i;
24354  /* Use a field that we can force nonzero --
24355     voluntary context switches.
24356     For systems like NeXT and OSF/1 that don't set it,
24357     also use the system CPU time.  And page faults (I/O) for Linux.  */
24358  r.ru_nvcsw = 0;
24359  r.ru_stime.tv_sec = 0;
24360  r.ru_stime.tv_usec = 0;
24361  r.ru_majflt = r.ru_minflt = 0;
24362  switch (fork ())
24363    {
24364    case 0: /* Child.  */
24365      sleep(1); /* Give up the CPU.  */
24366      _exit(0);
24367      break;
24368    case -1: /* What can we do?  */
24369      _exit(0);
24370      break;
24371    default: /* Parent.  */
24372      wait3(&i, 0, &r);
24373      /* Avoid "text file busy" from rm on fast HP-UX machines.  */
24374      sleep(2);
24375      return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
24376	      && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
24377    }
24378}
24379_ACEOF
24380rm -f conftest$ac_exeext
24381if { (ac_try="$ac_link"
24382case "(($ac_try" in
24383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24384  *) ac_try_echo=$ac_try;;
24385esac
24386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24387  (eval "$ac_link") 2>&5
24388  ac_status=$?
24389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24391  { (case "(($ac_try" in
24392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24393  *) ac_try_echo=$ac_try;;
24394esac
24395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24396  (eval "$ac_try") 2>&5
24397  ac_status=$?
24398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399  (exit $ac_status); }; }; then
24400  ac_cv_func_wait3_rusage=yes
24401else
24402  echo "$as_me: program exited with status $ac_status" >&5
24403echo "$as_me: failed program was:" >&5
24404sed 's/^/| /' conftest.$ac_ext >&5
24405
24406( exit $ac_status )
24407ac_cv_func_wait3_rusage=no
24408fi
24409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24410fi
24411
24412
24413fi
24414{ echo "$as_me:$LINENO: result: $ac_cv_func_wait3_rusage" >&5
24415echo "${ECHO_T}$ac_cv_func_wait3_rusage" >&6; }
24416if test $ac_cv_func_wait3_rusage = yes; then
24417
24418cat >>confdefs.h <<\_ACEOF
24419#define HAVE_WAIT3 1
24420_ACEOF
24421
24422fi
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438for ac_func in getcwd gethostname gettimeofday getusershell mkdir rmdir select socket strdup strcasestr strstr strtoul strchr memcpy
24439do
24440as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24441{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24442echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24443if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24444  echo $ECHO_N "(cached) $ECHO_C" >&6
24445else
24446  cat >conftest.$ac_ext <<_ACEOF
24447/* confdefs.h.  */
24448_ACEOF
24449cat confdefs.h >>conftest.$ac_ext
24450cat >>conftest.$ac_ext <<_ACEOF
24451/* end confdefs.h.  */
24452/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24453   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24454#define $ac_func innocuous_$ac_func
24455
24456/* System header to define __stub macros and hopefully few prototypes,
24457    which can conflict with char $ac_func (); below.
24458    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24459    <limits.h> exists even on freestanding compilers.  */
24460
24461#ifdef __STDC__
24462# include <limits.h>
24463#else
24464# include <assert.h>
24465#endif
24466
24467#undef $ac_func
24468
24469/* Override any GCC internal prototype to avoid an error.
24470   Use char because int might match the return type of a GCC
24471   builtin and then its argument prototype would still apply.  */
24472#ifdef __cplusplus
24473extern "C"
24474#endif
24475char $ac_func ();
24476/* The GNU C library defines this for functions which it implements
24477    to always fail with ENOSYS.  Some functions are actually named
24478    something starting with __ and the normal name is an alias.  */
24479#if defined __stub_$ac_func || defined __stub___$ac_func
24480choke me
24481#endif
24482
24483int
24484main ()
24485{
24486return $ac_func ();
24487  ;
24488  return 0;
24489}
24490_ACEOF
24491rm -f conftest.$ac_objext conftest$ac_exeext
24492if { (ac_try="$ac_link"
24493case "(($ac_try" in
24494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24495  *) ac_try_echo=$ac_try;;
24496esac
24497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24498  (eval "$ac_link") 2>conftest.er1
24499  ac_status=$?
24500  grep -v '^ *+' conftest.er1 >conftest.err
24501  rm -f conftest.er1
24502  cat conftest.err >&5
24503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504  (exit $ac_status); } && {
24505	 test -z "$ac_c_werror_flag" ||
24506	 test ! -s conftest.err
24507       } && test -s conftest$ac_exeext &&
24508       $as_test_x conftest$ac_exeext; then
24509  eval "$as_ac_var=yes"
24510else
24511  echo "$as_me: failed program was:" >&5
24512sed 's/^/| /' conftest.$ac_ext >&5
24513
24514	eval "$as_ac_var=no"
24515fi
24516
24517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24518      conftest$ac_exeext conftest.$ac_ext
24519fi
24520ac_res=`eval echo '${'$as_ac_var'}'`
24521	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24522echo "${ECHO_T}$ac_res" >&6; }
24523if test `eval echo '${'$as_ac_var'}'` = yes; then
24524  cat >>confdefs.h <<_ACEOF
24525#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24526_ACEOF
24527
24528fi
24529done
24530
24531
24532
24533
24534
24535
24536
24537
24538
24539
24540
24541
24542for ac_func in backtrace_symbols setlocale nl_langinfo strlcpy strlcat setlinebuf dirfd pselect access pread pwrite
24543do
24544as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24545{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24546echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24547if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24548  echo $ECHO_N "(cached) $ECHO_C" >&6
24549else
24550  cat >conftest.$ac_ext <<_ACEOF
24551/* confdefs.h.  */
24552_ACEOF
24553cat confdefs.h >>conftest.$ac_ext
24554cat >>conftest.$ac_ext <<_ACEOF
24555/* end confdefs.h.  */
24556/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24557   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24558#define $ac_func innocuous_$ac_func
24559
24560/* System header to define __stub macros and hopefully few prototypes,
24561    which can conflict with char $ac_func (); below.
24562    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24563    <limits.h> exists even on freestanding compilers.  */
24564
24565#ifdef __STDC__
24566# include <limits.h>
24567#else
24568# include <assert.h>
24569#endif
24570
24571#undef $ac_func
24572
24573/* Override any GCC internal prototype to avoid an error.
24574   Use char because int might match the return type of a GCC
24575   builtin and then its argument prototype would still apply.  */
24576#ifdef __cplusplus
24577extern "C"
24578#endif
24579char $ac_func ();
24580/* The GNU C library defines this for functions which it implements
24581    to always fail with ENOSYS.  Some functions are actually named
24582    something starting with __ and the normal name is an alias.  */
24583#if defined __stub_$ac_func || defined __stub___$ac_func
24584choke me
24585#endif
24586
24587int
24588main ()
24589{
24590return $ac_func ();
24591  ;
24592  return 0;
24593}
24594_ACEOF
24595rm -f conftest.$ac_objext conftest$ac_exeext
24596if { (ac_try="$ac_link"
24597case "(($ac_try" in
24598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599  *) ac_try_echo=$ac_try;;
24600esac
24601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602  (eval "$ac_link") 2>conftest.er1
24603  ac_status=$?
24604  grep -v '^ *+' conftest.er1 >conftest.err
24605  rm -f conftest.er1
24606  cat conftest.err >&5
24607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608  (exit $ac_status); } && {
24609	 test -z "$ac_c_werror_flag" ||
24610	 test ! -s conftest.err
24611       } && test -s conftest$ac_exeext &&
24612       $as_test_x conftest$ac_exeext; then
24613  eval "$as_ac_var=yes"
24614else
24615  echo "$as_me: failed program was:" >&5
24616sed 's/^/| /' conftest.$ac_ext >&5
24617
24618	eval "$as_ac_var=no"
24619fi
24620
24621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24622      conftest$ac_exeext conftest.$ac_ext
24623fi
24624ac_res=`eval echo '${'$as_ac_var'}'`
24625	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24626echo "${ECHO_T}$ac_res" >&6; }
24627if test `eval echo '${'$as_ac_var'}'` = yes; then
24628  cat >>confdefs.h <<_ACEOF
24629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24630_ACEOF
24631
24632fi
24633done
24634
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650for ac_func in waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
24651do
24652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24653{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24655if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24656  echo $ECHO_N "(cached) $ECHO_C" >&6
24657else
24658  cat >conftest.$ac_ext <<_ACEOF
24659/* confdefs.h.  */
24660_ACEOF
24661cat confdefs.h >>conftest.$ac_ext
24662cat >>conftest.$ac_ext <<_ACEOF
24663/* end confdefs.h.  */
24664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24665   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24666#define $ac_func innocuous_$ac_func
24667
24668/* System header to define __stub macros and hopefully few prototypes,
24669    which can conflict with char $ac_func (); below.
24670    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24671    <limits.h> exists even on freestanding compilers.  */
24672
24673#ifdef __STDC__
24674# include <limits.h>
24675#else
24676# include <assert.h>
24677#endif
24678
24679#undef $ac_func
24680
24681/* Override any GCC internal prototype to avoid an error.
24682   Use char because int might match the return type of a GCC
24683   builtin and then its argument prototype would still apply.  */
24684#ifdef __cplusplus
24685extern "C"
24686#endif
24687char $ac_func ();
24688/* The GNU C library defines this for functions which it implements
24689    to always fail with ENOSYS.  Some functions are actually named
24690    something starting with __ and the normal name is an alias.  */
24691#if defined __stub_$ac_func || defined __stub___$ac_func
24692choke me
24693#endif
24694
24695int
24696main ()
24697{
24698return $ac_func ();
24699  ;
24700  return 0;
24701}
24702_ACEOF
24703rm -f conftest.$ac_objext conftest$ac_exeext
24704if { (ac_try="$ac_link"
24705case "(($ac_try" in
24706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24707  *) ac_try_echo=$ac_try;;
24708esac
24709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24710  (eval "$ac_link") 2>conftest.er1
24711  ac_status=$?
24712  grep -v '^ *+' conftest.er1 >conftest.err
24713  rm -f conftest.er1
24714  cat conftest.err >&5
24715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716  (exit $ac_status); } && {
24717	 test -z "$ac_c_werror_flag" ||
24718	 test ! -s conftest.err
24719       } && test -s conftest$ac_exeext &&
24720       $as_test_x conftest$ac_exeext; then
24721  eval "$as_ac_var=yes"
24722else
24723  echo "$as_me: failed program was:" >&5
24724sed 's/^/| /' conftest.$ac_ext >&5
24725
24726	eval "$as_ac_var=no"
24727fi
24728
24729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24730      conftest$ac_exeext conftest.$ac_ext
24731fi
24732ac_res=`eval echo '${'$as_ac_var'}'`
24733	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24734echo "${ECHO_T}$ac_res" >&6; }
24735if test `eval echo '${'$as_ac_var'}'` = yes; then
24736  cat >>confdefs.h <<_ACEOF
24737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24738_ACEOF
24739
24740fi
24741done
24742
24743ac_neta_haveatfuncs=yes
24744
24745
24746
24747
24748for ac_func in openat renameat fstatat unlinkat
24749do
24750as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24751{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24753if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24754  echo $ECHO_N "(cached) $ECHO_C" >&6
24755else
24756  cat >conftest.$ac_ext <<_ACEOF
24757/* confdefs.h.  */
24758_ACEOF
24759cat confdefs.h >>conftest.$ac_ext
24760cat >>conftest.$ac_ext <<_ACEOF
24761/* end confdefs.h.  */
24762/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24763   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24764#define $ac_func innocuous_$ac_func
24765
24766/* System header to define __stub macros and hopefully few prototypes,
24767    which can conflict with char $ac_func (); below.
24768    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24769    <limits.h> exists even on freestanding compilers.  */
24770
24771#ifdef __STDC__
24772# include <limits.h>
24773#else
24774# include <assert.h>
24775#endif
24776
24777#undef $ac_func
24778
24779/* Override any GCC internal prototype to avoid an error.
24780   Use char because int might match the return type of a GCC
24781   builtin and then its argument prototype would still apply.  */
24782#ifdef __cplusplus
24783extern "C"
24784#endif
24785char $ac_func ();
24786/* The GNU C library defines this for functions which it implements
24787    to always fail with ENOSYS.  Some functions are actually named
24788    something starting with __ and the normal name is an alias.  */
24789#if defined __stub_$ac_func || defined __stub___$ac_func
24790choke me
24791#endif
24792
24793int
24794main ()
24795{
24796return $ac_func ();
24797  ;
24798  return 0;
24799}
24800_ACEOF
24801rm -f conftest.$ac_objext conftest$ac_exeext
24802if { (ac_try="$ac_link"
24803case "(($ac_try" in
24804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805  *) ac_try_echo=$ac_try;;
24806esac
24807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24808  (eval "$ac_link") 2>conftest.er1
24809  ac_status=$?
24810  grep -v '^ *+' conftest.er1 >conftest.err
24811  rm -f conftest.er1
24812  cat conftest.err >&5
24813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814  (exit $ac_status); } && {
24815	 test -z "$ac_c_werror_flag" ||
24816	 test ! -s conftest.err
24817       } && test -s conftest$ac_exeext &&
24818       $as_test_x conftest$ac_exeext; then
24819  eval "$as_ac_var=yes"
24820else
24821  echo "$as_me: failed program was:" >&5
24822sed 's/^/| /' conftest.$ac_ext >&5
24823
24824	eval "$as_ac_var=no"
24825fi
24826
24827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24828      conftest$ac_exeext conftest.$ac_ext
24829fi
24830ac_res=`eval echo '${'$as_ac_var'}'`
24831	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24832echo "${ECHO_T}$ac_res" >&6; }
24833if test `eval echo '${'$as_ac_var'}'` = yes; then
24834  cat >>confdefs.h <<_ACEOF
24835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24836_ACEOF
24837
24838else
24839  ac_neta_haveatfuncs=no
24840fi
24841done
24842
24843if test x"$ac_neta_haveatfuncs" = x"yes" ; then
24844
24845cat >>confdefs.h <<\_ACEOF
24846#define _ATFILE_SOURCE 1
24847_ACEOF
24848
24849
24850cat >>confdefs.h <<\_ACEOF
24851#define HAVE_ATFUNCS 1
24852_ACEOF
24853
24854fi
24855
24856{ echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
24857echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
24858if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
24859  echo $ECHO_N "(cached) $ECHO_C" >&6
24860else
24861  cat >conftest.$ac_ext <<_ACEOF
24862/* confdefs.h.  */
24863_ACEOF
24864cat confdefs.h >>conftest.$ac_ext
24865cat >>conftest.$ac_ext <<_ACEOF
24866/* end confdefs.h.  */
24867#include <time.h>
24868
24869int
24870main ()
24871{
24872static struct tm ac_aggr;
24873if (ac_aggr.tm_gmtoff)
24874return 0;
24875  ;
24876  return 0;
24877}
24878_ACEOF
24879rm -f conftest.$ac_objext
24880if { (ac_try="$ac_compile"
24881case "(($ac_try" in
24882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24883  *) ac_try_echo=$ac_try;;
24884esac
24885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24886  (eval "$ac_compile") 2>conftest.er1
24887  ac_status=$?
24888  grep -v '^ *+' conftest.er1 >conftest.err
24889  rm -f conftest.er1
24890  cat conftest.err >&5
24891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892  (exit $ac_status); } && {
24893	 test -z "$ac_c_werror_flag" ||
24894	 test ! -s conftest.err
24895       } && test -s conftest.$ac_objext; then
24896  ac_cv_member_struct_tm_tm_gmtoff=yes
24897else
24898  echo "$as_me: failed program was:" >&5
24899sed 's/^/| /' conftest.$ac_ext >&5
24900
24901	cat >conftest.$ac_ext <<_ACEOF
24902/* confdefs.h.  */
24903_ACEOF
24904cat confdefs.h >>conftest.$ac_ext
24905cat >>conftest.$ac_ext <<_ACEOF
24906/* end confdefs.h.  */
24907#include <time.h>
24908
24909int
24910main ()
24911{
24912static struct tm ac_aggr;
24913if (sizeof ac_aggr.tm_gmtoff)
24914return 0;
24915  ;
24916  return 0;
24917}
24918_ACEOF
24919rm -f conftest.$ac_objext
24920if { (ac_try="$ac_compile"
24921case "(($ac_try" in
24922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24923  *) ac_try_echo=$ac_try;;
24924esac
24925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24926  (eval "$ac_compile") 2>conftest.er1
24927  ac_status=$?
24928  grep -v '^ *+' conftest.er1 >conftest.err
24929  rm -f conftest.er1
24930  cat conftest.err >&5
24931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932  (exit $ac_status); } && {
24933	 test -z "$ac_c_werror_flag" ||
24934	 test ! -s conftest.err
24935       } && test -s conftest.$ac_objext; then
24936  ac_cv_member_struct_tm_tm_gmtoff=yes
24937else
24938  echo "$as_me: failed program was:" >&5
24939sed 's/^/| /' conftest.$ac_ext >&5
24940
24941	ac_cv_member_struct_tm_tm_gmtoff=no
24942fi
24943
24944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24945fi
24946
24947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24948fi
24949{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
24950echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
24951if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
24952
24953cat >>confdefs.h <<_ACEOF
24954#define HAVE_STRUCT_TM_TM_GMTOFF 1
24955_ACEOF
24956
24957
24958fi
24959
24960
24961{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
24962echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
24963if test "${ac_cv_func_gethostbyname+set}" = set; then
24964  echo $ECHO_N "(cached) $ECHO_C" >&6
24965else
24966  cat >conftest.$ac_ext <<_ACEOF
24967/* confdefs.h.  */
24968_ACEOF
24969cat confdefs.h >>conftest.$ac_ext
24970cat >>conftest.$ac_ext <<_ACEOF
24971/* end confdefs.h.  */
24972/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24973   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24974#define gethostbyname innocuous_gethostbyname
24975
24976/* System header to define __stub macros and hopefully few prototypes,
24977    which can conflict with char gethostbyname (); below.
24978    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24979    <limits.h> exists even on freestanding compilers.  */
24980
24981#ifdef __STDC__
24982# include <limits.h>
24983#else
24984# include <assert.h>
24985#endif
24986
24987#undef gethostbyname
24988
24989/* Override any GCC internal prototype to avoid an error.
24990   Use char because int might match the return type of a GCC
24991   builtin and then its argument prototype would still apply.  */
24992#ifdef __cplusplus
24993extern "C"
24994#endif
24995char gethostbyname ();
24996/* The GNU C library defines this for functions which it implements
24997    to always fail with ENOSYS.  Some functions are actually named
24998    something starting with __ and the normal name is an alias.  */
24999#if defined __stub_gethostbyname || defined __stub___gethostbyname
25000choke me
25001#endif
25002
25003int
25004main ()
25005{
25006return gethostbyname ();
25007  ;
25008  return 0;
25009}
25010_ACEOF
25011rm -f conftest.$ac_objext conftest$ac_exeext
25012if { (ac_try="$ac_link"
25013case "(($ac_try" in
25014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25015  *) ac_try_echo=$ac_try;;
25016esac
25017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25018  (eval "$ac_link") 2>conftest.er1
25019  ac_status=$?
25020  grep -v '^ *+' conftest.er1 >conftest.err
25021  rm -f conftest.er1
25022  cat conftest.err >&5
25023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024  (exit $ac_status); } && {
25025	 test -z "$ac_c_werror_flag" ||
25026	 test ! -s conftest.err
25027       } && test -s conftest$ac_exeext &&
25028       $as_test_x conftest$ac_exeext; then
25029  ac_cv_func_gethostbyname=yes
25030else
25031  echo "$as_me: failed program was:" >&5
25032sed 's/^/| /' conftest.$ac_ext >&5
25033
25034	ac_cv_func_gethostbyname=no
25035fi
25036
25037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25038      conftest$ac_exeext conftest.$ac_ext
25039fi
25040{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25041echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
25042if test $ac_cv_func_gethostbyname = yes; then
25043  :
25044else
25045
25046{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25047echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25048if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25049  echo $ECHO_N "(cached) $ECHO_C" >&6
25050else
25051  ac_check_lib_save_LIBS=$LIBS
25052LIBS="-lnsl  $LIBS"
25053cat >conftest.$ac_ext <<_ACEOF
25054/* confdefs.h.  */
25055_ACEOF
25056cat confdefs.h >>conftest.$ac_ext
25057cat >>conftest.$ac_ext <<_ACEOF
25058/* end confdefs.h.  */
25059
25060/* Override any GCC internal prototype to avoid an error.
25061   Use char because int might match the return type of a GCC
25062   builtin and then its argument prototype would still apply.  */
25063#ifdef __cplusplus
25064extern "C"
25065#endif
25066char gethostbyname ();
25067int
25068main ()
25069{
25070return gethostbyname ();
25071  ;
25072  return 0;
25073}
25074_ACEOF
25075rm -f conftest.$ac_objext conftest$ac_exeext
25076if { (ac_try="$ac_link"
25077case "(($ac_try" in
25078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25079  *) ac_try_echo=$ac_try;;
25080esac
25081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25082  (eval "$ac_link") 2>conftest.er1
25083  ac_status=$?
25084  grep -v '^ *+' conftest.er1 >conftest.err
25085  rm -f conftest.er1
25086  cat conftest.err >&5
25087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088  (exit $ac_status); } && {
25089	 test -z "$ac_c_werror_flag" ||
25090	 test ! -s conftest.err
25091       } && test -s conftest$ac_exeext &&
25092       $as_test_x conftest$ac_exeext; then
25093  ac_cv_lib_nsl_gethostbyname=yes
25094else
25095  echo "$as_me: failed program was:" >&5
25096sed 's/^/| /' conftest.$ac_ext >&5
25097
25098	ac_cv_lib_nsl_gethostbyname=no
25099fi
25100
25101rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25102      conftest$ac_exeext conftest.$ac_ext
25103LIBS=$ac_check_lib_save_LIBS
25104fi
25105{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25106echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25107if test $ac_cv_lib_nsl_gethostbyname = yes; then
25108  cat >>confdefs.h <<_ACEOF
25109#define HAVE_LIBNSL 1
25110_ACEOF
25111
25112  LIBS="-lnsl $LIBS"
25113
25114fi
25115
25116fi
25117
25118{ echo "$as_me:$LINENO: checking for connect" >&5
25119echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
25120if test "${ac_cv_func_connect+set}" = set; then
25121  echo $ECHO_N "(cached) $ECHO_C" >&6
25122else
25123  cat >conftest.$ac_ext <<_ACEOF
25124/* confdefs.h.  */
25125_ACEOF
25126cat confdefs.h >>conftest.$ac_ext
25127cat >>conftest.$ac_ext <<_ACEOF
25128/* end confdefs.h.  */
25129/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25130   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25131#define connect innocuous_connect
25132
25133/* System header to define __stub macros and hopefully few prototypes,
25134    which can conflict with char connect (); below.
25135    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25136    <limits.h> exists even on freestanding compilers.  */
25137
25138#ifdef __STDC__
25139# include <limits.h>
25140#else
25141# include <assert.h>
25142#endif
25143
25144#undef connect
25145
25146/* Override any GCC internal prototype to avoid an error.
25147   Use char because int might match the return type of a GCC
25148   builtin and then its argument prototype would still apply.  */
25149#ifdef __cplusplus
25150extern "C"
25151#endif
25152char connect ();
25153/* The GNU C library defines this for functions which it implements
25154    to always fail with ENOSYS.  Some functions are actually named
25155    something starting with __ and the normal name is an alias.  */
25156#if defined __stub_connect || defined __stub___connect
25157choke me
25158#endif
25159
25160int
25161main ()
25162{
25163return connect ();
25164  ;
25165  return 0;
25166}
25167_ACEOF
25168rm -f conftest.$ac_objext conftest$ac_exeext
25169if { (ac_try="$ac_link"
25170case "(($ac_try" in
25171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25172  *) ac_try_echo=$ac_try;;
25173esac
25174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25175  (eval "$ac_link") 2>conftest.er1
25176  ac_status=$?
25177  grep -v '^ *+' conftest.er1 >conftest.err
25178  rm -f conftest.er1
25179  cat conftest.err >&5
25180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181  (exit $ac_status); } && {
25182	 test -z "$ac_c_werror_flag" ||
25183	 test ! -s conftest.err
25184       } && test -s conftest$ac_exeext &&
25185       $as_test_x conftest$ac_exeext; then
25186  ac_cv_func_connect=yes
25187else
25188  echo "$as_me: failed program was:" >&5
25189sed 's/^/| /' conftest.$ac_ext >&5
25190
25191	ac_cv_func_connect=no
25192fi
25193
25194rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25195      conftest$ac_exeext conftest.$ac_ext
25196fi
25197{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25198echo "${ECHO_T}$ac_cv_func_connect" >&6; }
25199if test $ac_cv_func_connect = yes; then
25200  :
25201else
25202
25203{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25204echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25205if test "${ac_cv_lib_socket_connect+set}" = set; then
25206  echo $ECHO_N "(cached) $ECHO_C" >&6
25207else
25208  ac_check_lib_save_LIBS=$LIBS
25209LIBS="-lsocket  $LIBS"
25210cat >conftest.$ac_ext <<_ACEOF
25211/* confdefs.h.  */
25212_ACEOF
25213cat confdefs.h >>conftest.$ac_ext
25214cat >>conftest.$ac_ext <<_ACEOF
25215/* end confdefs.h.  */
25216
25217/* Override any GCC internal prototype to avoid an error.
25218   Use char because int might match the return type of a GCC
25219   builtin and then its argument prototype would still apply.  */
25220#ifdef __cplusplus
25221extern "C"
25222#endif
25223char connect ();
25224int
25225main ()
25226{
25227return connect ();
25228  ;
25229  return 0;
25230}
25231_ACEOF
25232rm -f conftest.$ac_objext conftest$ac_exeext
25233if { (ac_try="$ac_link"
25234case "(($ac_try" in
25235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25236  *) ac_try_echo=$ac_try;;
25237esac
25238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25239  (eval "$ac_link") 2>conftest.er1
25240  ac_status=$?
25241  grep -v '^ *+' conftest.er1 >conftest.err
25242  rm -f conftest.er1
25243  cat conftest.err >&5
25244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245  (exit $ac_status); } && {
25246	 test -z "$ac_c_werror_flag" ||
25247	 test ! -s conftest.err
25248       } && test -s conftest$ac_exeext &&
25249       $as_test_x conftest$ac_exeext; then
25250  ac_cv_lib_socket_connect=yes
25251else
25252  echo "$as_me: failed program was:" >&5
25253sed 's/^/| /' conftest.$ac_ext >&5
25254
25255	ac_cv_lib_socket_connect=no
25256fi
25257
25258rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25259      conftest$ac_exeext conftest.$ac_ext
25260LIBS=$ac_check_lib_save_LIBS
25261fi
25262{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25263echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25264if test $ac_cv_lib_socket_connect = yes; then
25265  cat >>confdefs.h <<_ACEOF
25266#define HAVE_LIBSOCKET 1
25267_ACEOF
25268
25269  LIBS="-lsocket $LIBS"
25270
25271fi
25272
25273fi
25274
25275{ echo "$as_me:$LINENO: checking for library containing pthread_sigmask" >&5
25276echo $ECHO_N "checking for library containing pthread_sigmask... $ECHO_C" >&6; }
25277if test "${ac_cv_search_pthread_sigmask+set}" = set; then
25278  echo $ECHO_N "(cached) $ECHO_C" >&6
25279else
25280  ac_func_search_save_LIBS=$LIBS
25281cat >conftest.$ac_ext <<_ACEOF
25282/* confdefs.h.  */
25283_ACEOF
25284cat confdefs.h >>conftest.$ac_ext
25285cat >>conftest.$ac_ext <<_ACEOF
25286/* end confdefs.h.  */
25287
25288/* Override any GCC internal prototype to avoid an error.
25289   Use char because int might match the return type of a GCC
25290   builtin and then its argument prototype would still apply.  */
25291#ifdef __cplusplus
25292extern "C"
25293#endif
25294char pthread_sigmask ();
25295int
25296main ()
25297{
25298return pthread_sigmask ();
25299  ;
25300  return 0;
25301}
25302_ACEOF
25303for ac_lib in '' pthread; do
25304  if test -z "$ac_lib"; then
25305    ac_res="none required"
25306  else
25307    ac_res=-l$ac_lib
25308    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25309  fi
25310  rm -f conftest.$ac_objext conftest$ac_exeext
25311if { (ac_try="$ac_link"
25312case "(($ac_try" in
25313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25314  *) ac_try_echo=$ac_try;;
25315esac
25316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25317  (eval "$ac_link") 2>conftest.er1
25318  ac_status=$?
25319  grep -v '^ *+' conftest.er1 >conftest.err
25320  rm -f conftest.er1
25321  cat conftest.err >&5
25322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323  (exit $ac_status); } && {
25324	 test -z "$ac_c_werror_flag" ||
25325	 test ! -s conftest.err
25326       } && test -s conftest$ac_exeext &&
25327       $as_test_x conftest$ac_exeext; then
25328  ac_cv_search_pthread_sigmask=$ac_res
25329else
25330  echo "$as_me: failed program was:" >&5
25331sed 's/^/| /' conftest.$ac_ext >&5
25332
25333
25334fi
25335
25336rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25337      conftest$ac_exeext
25338  if test "${ac_cv_search_pthread_sigmask+set}" = set; then
25339  break
25340fi
25341done
25342if test "${ac_cv_search_pthread_sigmask+set}" = set; then
25343  :
25344else
25345  ac_cv_search_pthread_sigmask=no
25346fi
25347rm conftest.$ac_ext
25348LIBS=$ac_func_search_save_LIBS
25349fi
25350{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_sigmask" >&5
25351echo "${ECHO_T}$ac_cv_search_pthread_sigmask" >&6; }
25352ac_res=$ac_cv_search_pthread_sigmask
25353if test "$ac_res" != no; then
25354  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25355
25356else
25357  { { echo "$as_me:$LINENO: error: cannot find pthread_sigmask in libc or libpthread" >&5
25358echo "$as_me: error: cannot find pthread_sigmask in libc or libpthread" >&2;}
25359   { (exit 1); exit 1; }; }
25360fi
25361
25362if test x"$ac_cv_search_pthread_sigmask" != x"none required" ; then
25363   PTHREAD_LIBS=$ac_cv_search_pthread_sigmask
25364fi
25365
25366cat >confcache <<\_ACEOF
25367# This file is a shell script that caches the results of configure
25368# tests run on this system so they can be shared between configure
25369# scripts and configure runs, see configure's option --config-cache.
25370# It is not useful on other systems.  If it contains results you don't
25371# want to keep, you may remove or edit it.
25372#
25373# config.status only pays attention to the cache file if you give it
25374# the --recheck option to rerun configure.
25375#
25376# `ac_cv_env_foo' variables (set or unset) will be overridden when
25377# loading this file, other *unset* `ac_cv_foo' will be assigned the
25378# following values.
25379
25380_ACEOF
25381
25382# The following way of writing the cache mishandles newlines in values,
25383# but we know of no workaround that is simple, portable, and efficient.
25384# So, we kill variables containing newlines.
25385# Ultrix sh set writes to stderr and can't be redirected directly,
25386# and sets the high bit in the cache file unless we assign to the vars.
25387(
25388  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25389    eval ac_val=\$$ac_var
25390    case $ac_val in #(
25391    *${as_nl}*)
25392      case $ac_var in #(
25393      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25394echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25395      esac
25396      case $ac_var in #(
25397      _ | IFS | as_nl) ;; #(
25398      *) $as_unset $ac_var ;;
25399      esac ;;
25400    esac
25401  done
25402
25403  (set) 2>&1 |
25404    case $as_nl`(ac_space=' '; set) 2>&1` in #(
25405    *${as_nl}ac_space=\ *)
25406      # `set' does not quote correctly, so add quotes (double-quote
25407      # substitution turns \\\\ into \\, and sed turns \\ into \).
25408      sed -n \
25409	"s/'/'\\\\''/g;
25410	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25411      ;; #(
25412    *)
25413      # `set' quotes correctly as required by POSIX, so do not add quotes.
25414      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25415      ;;
25416    esac |
25417    sort
25418) |
25419  sed '
25420     /^ac_cv_env_/b end
25421     t clear
25422     :clear
25423     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25424     t end
25425     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25426     :end' >>confcache
25427if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25428  if test -w "$cache_file"; then
25429    test "x$cache_file" != "x/dev/null" &&
25430      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25431echo "$as_me: updating cache $cache_file" >&6;}
25432    cat confcache >$cache_file
25433  else
25434    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25435echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25436  fi
25437fi
25438rm -f confcache
25439
25440
25441
25442
25443for ac_func in snprintf vsnprintf
25444do
25445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25446{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25448if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25449  echo $ECHO_N "(cached) $ECHO_C" >&6
25450else
25451  cat >conftest.$ac_ext <<_ACEOF
25452/* confdefs.h.  */
25453_ACEOF
25454cat confdefs.h >>conftest.$ac_ext
25455cat >>conftest.$ac_ext <<_ACEOF
25456/* end confdefs.h.  */
25457/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25458   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25459#define $ac_func innocuous_$ac_func
25460
25461/* System header to define __stub macros and hopefully few prototypes,
25462    which can conflict with char $ac_func (); below.
25463    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25464    <limits.h> exists even on freestanding compilers.  */
25465
25466#ifdef __STDC__
25467# include <limits.h>
25468#else
25469# include <assert.h>
25470#endif
25471
25472#undef $ac_func
25473
25474/* Override any GCC internal prototype to avoid an error.
25475   Use char because int might match the return type of a GCC
25476   builtin and then its argument prototype would still apply.  */
25477#ifdef __cplusplus
25478extern "C"
25479#endif
25480char $ac_func ();
25481/* The GNU C library defines this for functions which it implements
25482    to always fail with ENOSYS.  Some functions are actually named
25483    something starting with __ and the normal name is an alias.  */
25484#if defined __stub_$ac_func || defined __stub___$ac_func
25485choke me
25486#endif
25487
25488int
25489main ()
25490{
25491return $ac_func ();
25492  ;
25493  return 0;
25494}
25495_ACEOF
25496rm -f conftest.$ac_objext conftest$ac_exeext
25497if { (ac_try="$ac_link"
25498case "(($ac_try" in
25499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25500  *) ac_try_echo=$ac_try;;
25501esac
25502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25503  (eval "$ac_link") 2>conftest.er1
25504  ac_status=$?
25505  grep -v '^ *+' conftest.er1 >conftest.err
25506  rm -f conftest.er1
25507  cat conftest.err >&5
25508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509  (exit $ac_status); } && {
25510	 test -z "$ac_c_werror_flag" ||
25511	 test ! -s conftest.err
25512       } && test -s conftest$ac_exeext &&
25513       $as_test_x conftest$ac_exeext; then
25514  eval "$as_ac_var=yes"
25515else
25516  echo "$as_me: failed program was:" >&5
25517sed 's/^/| /' conftest.$ac_ext >&5
25518
25519	eval "$as_ac_var=no"
25520fi
25521
25522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25523      conftest$ac_exeext conftest.$ac_ext
25524fi
25525ac_res=`eval echo '${'$as_ac_var'}'`
25526	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25527echo "${ECHO_T}$ac_res" >&6; }
25528if test `eval echo '${'$as_ac_var'}'` = yes; then
25529  cat >>confdefs.h <<_ACEOF
25530#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25531_ACEOF
25532
25533fi
25534done
25535
25536
25537
25538
25539for ac_header in stdarg.h varargs.h
25540do
25541as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25542if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25543  { echo "$as_me:$LINENO: checking for $ac_header" >&5
25544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25546  echo $ECHO_N "(cached) $ECHO_C" >&6
25547fi
25548ac_res=`eval echo '${'$as_ac_Header'}'`
25549	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25550echo "${ECHO_T}$ac_res" >&6; }
25551else
25552  # Is the header compilable?
25553{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25554echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25555cat >conftest.$ac_ext <<_ACEOF
25556/* confdefs.h.  */
25557_ACEOF
25558cat confdefs.h >>conftest.$ac_ext
25559cat >>conftest.$ac_ext <<_ACEOF
25560/* end confdefs.h.  */
25561$ac_includes_default
25562#include <$ac_header>
25563_ACEOF
25564rm -f conftest.$ac_objext
25565if { (ac_try="$ac_compile"
25566case "(($ac_try" in
25567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25568  *) ac_try_echo=$ac_try;;
25569esac
25570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25571  (eval "$ac_compile") 2>conftest.er1
25572  ac_status=$?
25573  grep -v '^ *+' conftest.er1 >conftest.err
25574  rm -f conftest.er1
25575  cat conftest.err >&5
25576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577  (exit $ac_status); } && {
25578	 test -z "$ac_c_werror_flag" ||
25579	 test ! -s conftest.err
25580       } && test -s conftest.$ac_objext; then
25581  ac_header_compiler=yes
25582else
25583  echo "$as_me: failed program was:" >&5
25584sed 's/^/| /' conftest.$ac_ext >&5
25585
25586	ac_header_compiler=no
25587fi
25588
25589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25590{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25591echo "${ECHO_T}$ac_header_compiler" >&6; }
25592
25593# Is the header present?
25594{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25595echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25596cat >conftest.$ac_ext <<_ACEOF
25597/* confdefs.h.  */
25598_ACEOF
25599cat confdefs.h >>conftest.$ac_ext
25600cat >>conftest.$ac_ext <<_ACEOF
25601/* end confdefs.h.  */
25602#include <$ac_header>
25603_ACEOF
25604if { (ac_try="$ac_cpp conftest.$ac_ext"
25605case "(($ac_try" in
25606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25607  *) ac_try_echo=$ac_try;;
25608esac
25609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25610  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25611  ac_status=$?
25612  grep -v '^ *+' conftest.er1 >conftest.err
25613  rm -f conftest.er1
25614  cat conftest.err >&5
25615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616  (exit $ac_status); } >/dev/null && {
25617	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25618	 test ! -s conftest.err
25619       }; then
25620  ac_header_preproc=yes
25621else
25622  echo "$as_me: failed program was:" >&5
25623sed 's/^/| /' conftest.$ac_ext >&5
25624
25625  ac_header_preproc=no
25626fi
25627
25628rm -f conftest.err conftest.$ac_ext
25629{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25630echo "${ECHO_T}$ac_header_preproc" >&6; }
25631
25632# So?  What about this header?
25633case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25634  yes:no: )
25635    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25636echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25637    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25638echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25639    ac_header_preproc=yes
25640    ;;
25641  no:yes:* )
25642    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25643echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25644    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25645echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25646    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25647echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25648    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25649echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25650    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25651echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25652    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25653echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25654
25655    ;;
25656esac
25657{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25659if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25660  echo $ECHO_N "(cached) $ECHO_C" >&6
25661else
25662  eval "$as_ac_Header=\$ac_header_preproc"
25663fi
25664ac_res=`eval echo '${'$as_ac_Header'}'`
25665	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25666echo "${ECHO_T}$ac_res" >&6; }
25667
25668fi
25669if test `eval echo '${'$as_ac_Header'}'` = yes; then
25670  cat >>confdefs.h <<_ACEOF
25671#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25672_ACEOF
25673
25674fi
25675
25676done
25677
25678
25679
25680for ac_func in strerror
25681do
25682as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25683{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25684echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25685if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25686  echo $ECHO_N "(cached) $ECHO_C" >&6
25687else
25688  cat >conftest.$ac_ext <<_ACEOF
25689/* confdefs.h.  */
25690_ACEOF
25691cat confdefs.h >>conftest.$ac_ext
25692cat >>conftest.$ac_ext <<_ACEOF
25693/* end confdefs.h.  */
25694/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25695   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25696#define $ac_func innocuous_$ac_func
25697
25698/* System header to define __stub macros and hopefully few prototypes,
25699    which can conflict with char $ac_func (); below.
25700    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25701    <limits.h> exists even on freestanding compilers.  */
25702
25703#ifdef __STDC__
25704# include <limits.h>
25705#else
25706# include <assert.h>
25707#endif
25708
25709#undef $ac_func
25710
25711/* Override any GCC internal prototype to avoid an error.
25712   Use char because int might match the return type of a GCC
25713   builtin and then its argument prototype would still apply.  */
25714#ifdef __cplusplus
25715extern "C"
25716#endif
25717char $ac_func ();
25718/* The GNU C library defines this for functions which it implements
25719    to always fail with ENOSYS.  Some functions are actually named
25720    something starting with __ and the normal name is an alias.  */
25721#if defined __stub_$ac_func || defined __stub___$ac_func
25722choke me
25723#endif
25724
25725int
25726main ()
25727{
25728return $ac_func ();
25729  ;
25730  return 0;
25731}
25732_ACEOF
25733rm -f conftest.$ac_objext conftest$ac_exeext
25734if { (ac_try="$ac_link"
25735case "(($ac_try" in
25736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25737  *) ac_try_echo=$ac_try;;
25738esac
25739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25740  (eval "$ac_link") 2>conftest.er1
25741  ac_status=$?
25742  grep -v '^ *+' conftest.er1 >conftest.err
25743  rm -f conftest.er1
25744  cat conftest.err >&5
25745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746  (exit $ac_status); } && {
25747	 test -z "$ac_c_werror_flag" ||
25748	 test ! -s conftest.err
25749       } && test -s conftest$ac_exeext &&
25750       $as_test_x conftest$ac_exeext; then
25751  eval "$as_ac_var=yes"
25752else
25753  echo "$as_me: failed program was:" >&5
25754sed 's/^/| /' conftest.$ac_ext >&5
25755
25756	eval "$as_ac_var=no"
25757fi
25758
25759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25760      conftest$ac_exeext conftest.$ac_ext
25761fi
25762ac_res=`eval echo '${'$as_ac_var'}'`
25763	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25764echo "${ECHO_T}$ac_res" >&6; }
25765if test `eval echo '${'$as_ac_var'}'` = yes; then
25766  cat >>confdefs.h <<_ACEOF
25767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25768_ACEOF
25769
25770fi
25771done
25772
25773	{ echo "$as_me:$LINENO: checking for errno" >&5
25774echo $ECHO_N "checking for errno... $ECHO_C" >&6; }
25775if test "${ac_cv_errno+set}" = set; then
25776  echo $ECHO_N "(cached) $ECHO_C" >&6
25777else
25778
25779	cat >conftest.$ac_ext <<_ACEOF
25780/* confdefs.h.  */
25781_ACEOF
25782cat confdefs.h >>conftest.$ac_ext
25783cat >>conftest.$ac_ext <<_ACEOF
25784/* end confdefs.h.  */
25785
25786int
25787main ()
25788{
25789extern int errno; return (errno);
25790  ;
25791  return 0;
25792}
25793_ACEOF
25794rm -f conftest.$ac_objext conftest$ac_exeext
25795if { (ac_try="$ac_link"
25796case "(($ac_try" in
25797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25798  *) ac_try_echo=$ac_try;;
25799esac
25800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25801  (eval "$ac_link") 2>conftest.er1
25802  ac_status=$?
25803  grep -v '^ *+' conftest.er1 >conftest.err
25804  rm -f conftest.er1
25805  cat conftest.err >&5
25806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807  (exit $ac_status); } && {
25808	 test -z "$ac_c_werror_flag" ||
25809	 test ! -s conftest.err
25810       } && test -s conftest$ac_exeext &&
25811       $as_test_x conftest$ac_exeext; then
25812  ac_cv_errno=yes
25813else
25814  echo "$as_me: failed program was:" >&5
25815sed 's/^/| /' conftest.$ac_ext >&5
25816
25817	ac_cv_errno=no
25818fi
25819
25820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25821      conftest$ac_exeext conftest.$ac_ext
25822
25823fi
25824{ echo "$as_me:$LINENO: result: $ac_cv_errno" >&5
25825echo "${ECHO_T}$ac_cv_errno" >&6; }
25826	if test "$ac_cv_errno" = yes; then
25827
25828cat >>confdefs.h <<\_ACEOF
25829#define HAVE_ERRNO 1
25830_ACEOF
25831
25832		{ echo "$as_me:$LINENO: checking for errno declaration" >&5
25833echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6; }
25834if test "${ac_cv_decl_errno+set}" = set; then
25835  echo $ECHO_N "(cached) $ECHO_C" >&6
25836else
25837
25838		cat >conftest.$ac_ext <<_ACEOF
25839/* confdefs.h.  */
25840_ACEOF
25841cat confdefs.h >>conftest.$ac_ext
25842cat >>conftest.$ac_ext <<_ACEOF
25843/* end confdefs.h.  */
25844
25845		#include <stdio.h>
25846		#ifdef HAVE_STDLIB_H
25847		#include <stdlib.h>
25848		#endif
25849		#ifdef HAVE_UNISTD_H
25850		#include <unistd.h>
25851		#endif
25852		#ifdef HAVE_ERRNO_H
25853		#include <errno.h>
25854		#endif
25855
25856int
25857main ()
25858{
25859return(sys_nerr);
25860  ;
25861  return 0;
25862}
25863_ACEOF
25864rm -f conftest.$ac_objext
25865if { (ac_try="$ac_compile"
25866case "(($ac_try" in
25867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25868  *) ac_try_echo=$ac_try;;
25869esac
25870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25871  (eval "$ac_compile") 2>conftest.er1
25872  ac_status=$?
25873  grep -v '^ *+' conftest.er1 >conftest.err
25874  rm -f conftest.er1
25875  cat conftest.err >&5
25876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877  (exit $ac_status); } && {
25878	 test -z "$ac_c_werror_flag" ||
25879	 test ! -s conftest.err
25880       } && test -s conftest.$ac_objext; then
25881  ac_cv_decl_errno=yes
25882else
25883  echo "$as_me: failed program was:" >&5
25884sed 's/^/| /' conftest.$ac_ext >&5
25885
25886	ac_cv_decl_errno=no
25887fi
25888
25889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25890
25891fi
25892{ echo "$as_me:$LINENO: result: $ac_cv_decl_errno" >&5
25893echo "${ECHO_T}$ac_cv_decl_errno" >&6; }
25894		if test "$ac_cv_decl_errno" = yes; then
25895
25896cat >>confdefs.h <<\_ACEOF
25897#define HAVE_DECL_ERRNO 1
25898_ACEOF
25899
25900		fi;
25901	fi
25902
25903	{ echo "$as_me:$LINENO: checking for sys_nerr" >&5
25904echo $ECHO_N "checking for sys_nerr... $ECHO_C" >&6; }
25905if test "${ac_cv_sys_nerr+set}" = set; then
25906  echo $ECHO_N "(cached) $ECHO_C" >&6
25907else
25908
25909	cat >conftest.$ac_ext <<_ACEOF
25910/* confdefs.h.  */
25911_ACEOF
25912cat confdefs.h >>conftest.$ac_ext
25913cat >>conftest.$ac_ext <<_ACEOF
25914/* end confdefs.h.  */
25915
25916int
25917main ()
25918{
25919extern int sys_nerr; return (sys_nerr);
25920  ;
25921  return 0;
25922}
25923_ACEOF
25924rm -f conftest.$ac_objext conftest$ac_exeext
25925if { (ac_try="$ac_link"
25926case "(($ac_try" in
25927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25928  *) ac_try_echo=$ac_try;;
25929esac
25930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25931  (eval "$ac_link") 2>conftest.er1
25932  ac_status=$?
25933  grep -v '^ *+' conftest.er1 >conftest.err
25934  rm -f conftest.er1
25935  cat conftest.err >&5
25936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937  (exit $ac_status); } && {
25938	 test -z "$ac_c_werror_flag" ||
25939	 test ! -s conftest.err
25940       } && test -s conftest$ac_exeext &&
25941       $as_test_x conftest$ac_exeext; then
25942  ac_cv_sys_nerr=yes
25943else
25944  echo "$as_me: failed program was:" >&5
25945sed 's/^/| /' conftest.$ac_ext >&5
25946
25947	ac_cv_sys_nerr=no
25948fi
25949
25950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25951      conftest$ac_exeext conftest.$ac_ext
25952
25953fi
25954{ echo "$as_me:$LINENO: result: $ac_cv_sys_nerr" >&5
25955echo "${ECHO_T}$ac_cv_sys_nerr" >&6; }
25956	if test "$ac_cv_sys_nerr" = yes; then
25957
25958cat >>confdefs.h <<\_ACEOF
25959#define HAVE_SYS_NERR 1
25960_ACEOF
25961
25962		{ echo "$as_me:$LINENO: checking for sys_nerr declaration" >&5
25963echo $ECHO_N "checking for sys_nerr declaration... $ECHO_C" >&6; }
25964if test "${ac_cv_decl_sys_nerr+set}" = set; then
25965  echo $ECHO_N "(cached) $ECHO_C" >&6
25966else
25967
25968		cat >conftest.$ac_ext <<_ACEOF
25969/* confdefs.h.  */
25970_ACEOF
25971cat confdefs.h >>conftest.$ac_ext
25972cat >>conftest.$ac_ext <<_ACEOF
25973/* end confdefs.h.  */
25974
25975		#include <stdio.h>
25976		#ifdef HAVE_STDLIB_H
25977		#include <stdlib.h>
25978		#endif
25979		#ifdef HAVE_UNISTD_H
25980		#include <unistd.h>
25981		#endif
25982int
25983main ()
25984{
25985return(sys_nerr);
25986  ;
25987  return 0;
25988}
25989_ACEOF
25990rm -f conftest.$ac_objext
25991if { (ac_try="$ac_compile"
25992case "(($ac_try" in
25993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25994  *) ac_try_echo=$ac_try;;
25995esac
25996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25997  (eval "$ac_compile") 2>conftest.er1
25998  ac_status=$?
25999  grep -v '^ *+' conftest.er1 >conftest.err
26000  rm -f conftest.er1
26001  cat conftest.err >&5
26002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003  (exit $ac_status); } && {
26004	 test -z "$ac_c_werror_flag" ||
26005	 test ! -s conftest.err
26006       } && test -s conftest.$ac_objext; then
26007  ac_cv_decl_sys_nerr_def=yes
26008else
26009  echo "$as_me: failed program was:" >&5
26010sed 's/^/| /' conftest.$ac_ext >&5
26011
26012	ac_cv_decl_sys_nerr_def=no
26013fi
26014
26015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26016
26017fi
26018{ echo "$as_me:$LINENO: result: $ac_cv_decl_sys_nerr" >&5
26019echo "${ECHO_T}$ac_cv_decl_sys_nerr" >&6; }
26020		if test "$ac_cv_decl_sys_nerr" = yes; then
26021
26022cat >>confdefs.h <<\_ACEOF
26023#define HAVE_DECL_SYS_NERR 1
26024_ACEOF
26025
26026		fi
26027	fi
26028
26029
26030	{ echo "$as_me:$LINENO: checking for sys_errlist array" >&5
26031echo $ECHO_N "checking for sys_errlist array... $ECHO_C" >&6; }
26032if test "${ac_cv_sys_errlist+set}" = set; then
26033  echo $ECHO_N "(cached) $ECHO_C" >&6
26034else
26035  cat >conftest.$ac_ext <<_ACEOF
26036/* confdefs.h.  */
26037_ACEOF
26038cat confdefs.h >>conftest.$ac_ext
26039cat >>conftest.$ac_ext <<_ACEOF
26040/* end confdefs.h.  */
26041
26042int
26043main ()
26044{
26045extern char *sys_errlist[];
26046		sys_errlist[0];
26047  ;
26048  return 0;
26049}
26050_ACEOF
26051rm -f conftest.$ac_objext conftest$ac_exeext
26052if { (ac_try="$ac_link"
26053case "(($ac_try" in
26054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26055  *) ac_try_echo=$ac_try;;
26056esac
26057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26058  (eval "$ac_link") 2>conftest.er1
26059  ac_status=$?
26060  grep -v '^ *+' conftest.er1 >conftest.err
26061  rm -f conftest.er1
26062  cat conftest.err >&5
26063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064  (exit $ac_status); } && {
26065	 test -z "$ac_c_werror_flag" ||
26066	 test ! -s conftest.err
26067       } && test -s conftest$ac_exeext &&
26068       $as_test_x conftest$ac_exeext; then
26069  ac_cv_sys_errlist=yes
26070else
26071  echo "$as_me: failed program was:" >&5
26072sed 's/^/| /' conftest.$ac_ext >&5
26073
26074	ac_cv_sys_errlist=no
26075fi
26076
26077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26078      conftest$ac_exeext conftest.$ac_ext
26079
26080fi
26081{ echo "$as_me:$LINENO: result: $ac_cv_sys_errlist" >&5
26082echo "${ECHO_T}$ac_cv_sys_errlist" >&6; }
26083	if test "$ac_cv_sys_errlist" = yes; then
26084
26085cat >>confdefs.h <<\_ACEOF
26086#define HAVE_SYS_ERRLIST 1
26087_ACEOF
26088
26089		{ echo "$as_me:$LINENO: checking for sys_errlist declaration" >&5
26090echo $ECHO_N "checking for sys_errlist declaration... $ECHO_C" >&6; }
26091if test "${ac_cv_sys_errlist_def+set}" = set; then
26092  echo $ECHO_N "(cached) $ECHO_C" >&6
26093else
26094  cat >conftest.$ac_ext <<_ACEOF
26095/* confdefs.h.  */
26096_ACEOF
26097cat confdefs.h >>conftest.$ac_ext
26098cat >>conftest.$ac_ext <<_ACEOF
26099/* end confdefs.h.  */
26100
26101		#include <stdio.h>
26102		#include <errno.h>
26103		#ifdef HAVE_STDLIB_H
26104		#include <stdlib.h>
26105		#endif
26106		#ifdef HAVE_UNISTD_H
26107		#include <unistd.h>
26108		#endif
26109int
26110main ()
26111{
26112char *s = sys_errlist[0]; return(*s);
26113  ;
26114  return 0;
26115}
26116_ACEOF
26117rm -f conftest.$ac_objext
26118if { (ac_try="$ac_compile"
26119case "(($ac_try" in
26120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26121  *) ac_try_echo=$ac_try;;
26122esac
26123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26124  (eval "$ac_compile") 2>conftest.er1
26125  ac_status=$?
26126  grep -v '^ *+' conftest.er1 >conftest.err
26127  rm -f conftest.er1
26128  cat conftest.err >&5
26129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130  (exit $ac_status); } && {
26131	 test -z "$ac_c_werror_flag" ||
26132	 test ! -s conftest.err
26133       } && test -s conftest.$ac_objext; then
26134  ac_cv_decl_sys_errlist=yes
26135else
26136  echo "$as_me: failed program was:" >&5
26137sed 's/^/| /' conftest.$ac_ext >&5
26138
26139	ac_cv_decl_sys_errlist=no
26140fi
26141
26142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26143
26144fi
26145{ echo "$as_me:$LINENO: result: $ac_cv_sys_errlist_def" >&5
26146echo "${ECHO_T}$ac_cv_sys_errlist_def" >&6; }
26147		if test "$ac_cv_decl_sys_errlist" = yes; then
26148
26149cat >>confdefs.h <<\_ACEOF
26150#define HAVE_DECL_SYS_ERRLIST 1
26151_ACEOF
26152
26153		fi
26154	fi
26155
26156
26157
26158	{ echo "$as_me:$LINENO: checking for long long" >&5
26159echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
26160if test "${ac_cv_long_long+set}" = set; then
26161  echo $ECHO_N "(cached) $ECHO_C" >&6
26162else
26163
26164	cat >conftest.$ac_ext <<_ACEOF
26165/* confdefs.h.  */
26166_ACEOF
26167cat confdefs.h >>conftest.$ac_ext
26168cat >>conftest.$ac_ext <<_ACEOF
26169/* end confdefs.h.  */
26170
26171	#include <stdio.h>
26172	#include <sys/types.h>
26173
26174int
26175main ()
26176{
26177printf("%d",sizeof(long long));
26178  ;
26179  return 0;
26180}
26181_ACEOF
26182rm -f conftest.$ac_objext
26183if { (ac_try="$ac_compile"
26184case "(($ac_try" in
26185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26186  *) ac_try_echo=$ac_try;;
26187esac
26188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26189  (eval "$ac_compile") 2>conftest.er1
26190  ac_status=$?
26191  grep -v '^ *+' conftest.er1 >conftest.err
26192  rm -f conftest.er1
26193  cat conftest.err >&5
26194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195  (exit $ac_status); } && {
26196	 test -z "$ac_c_werror_flag" ||
26197	 test ! -s conftest.err
26198       } && test -s conftest.$ac_objext; then
26199  ac_cv_long_long=yes
26200else
26201  echo "$as_me: failed program was:" >&5
26202sed 's/^/| /' conftest.$ac_ext >&5
26203
26204	ac_cv_long_long=no
26205fi
26206
26207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26208
26209fi
26210{ echo "$as_me:$LINENO: result: $ac_cv_long_long" >&5
26211echo "${ECHO_T}$ac_cv_long_long" >&6; }
26212	if test $ac_cv_long_long = yes; then
26213
26214cat >>confdefs.h <<\_ACEOF
26215#define HAVE_LONG_LONG 1
26216_ACEOF
26217
26218	fi
26219
26220	{ echo "$as_me:$LINENO: checking for long double" >&5
26221echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
26222if test "${ac_cv_long_double+set}" = set; then
26223  echo $ECHO_N "(cached) $ECHO_C" >&6
26224else
26225
26226	cat >conftest.$ac_ext <<_ACEOF
26227/* confdefs.h.  */
26228_ACEOF
26229cat confdefs.h >>conftest.$ac_ext
26230cat >>conftest.$ac_ext <<_ACEOF
26231/* end confdefs.h.  */
26232
26233	#include <stdio.h>
26234	#include <sys/types.h>
26235
26236int
26237main ()
26238{
26239printf("%d",sizeof(long double));
26240  ;
26241  return 0;
26242}
26243_ACEOF
26244rm -f conftest.$ac_objext
26245if { (ac_try="$ac_compile"
26246case "(($ac_try" in
26247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26248  *) ac_try_echo=$ac_try;;
26249esac
26250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26251  (eval "$ac_compile") 2>conftest.er1
26252  ac_status=$?
26253  grep -v '^ *+' conftest.er1 >conftest.err
26254  rm -f conftest.er1
26255  cat conftest.err >&5
26256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257  (exit $ac_status); } && {
26258	 test -z "$ac_c_werror_flag" ||
26259	 test ! -s conftest.err
26260       } && test -s conftest.$ac_objext; then
26261  ac_cv_long_double=yes
26262else
26263  echo "$as_me: failed program was:" >&5
26264sed 's/^/| /' conftest.$ac_ext >&5
26265
26266	ac_cv_long_double=no
26267fi
26268
26269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26270
26271fi
26272{ echo "$as_me:$LINENO: result: $ac_cv_long_double" >&5
26273echo "${ECHO_T}$ac_cv_long_double" >&6; }
26274	if test $ac_cv_long_double = yes; then
26275
26276cat >>confdefs.h <<\_ACEOF
26277#define HAVE_LONG_DOUBLE 1
26278_ACEOF
26279
26280	fi
26281
26282	{ echo "$as_me:$LINENO: checking for quad_t" >&5
26283echo $ECHO_N "checking for quad_t... $ECHO_C" >&6; }
26284if test "${ac_cv_quad_t+set}" = set; then
26285  echo $ECHO_N "(cached) $ECHO_C" >&6
26286else
26287
26288	cat >conftest.$ac_ext <<_ACEOF
26289/* confdefs.h.  */
26290_ACEOF
26291cat confdefs.h >>conftest.$ac_ext
26292cat >>conftest.$ac_ext <<_ACEOF
26293/* end confdefs.h.  */
26294
26295	#include <stdio.h>
26296	#include <sys/types.h>
26297
26298int
26299main ()
26300{
26301printf("%d",sizeof(quad_t));
26302  ;
26303  return 0;
26304}
26305_ACEOF
26306rm -f conftest.$ac_objext
26307if { (ac_try="$ac_compile"
26308case "(($ac_try" in
26309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26310  *) ac_try_echo=$ac_try;;
26311esac
26312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26313  (eval "$ac_compile") 2>conftest.er1
26314  ac_status=$?
26315  grep -v '^ *+' conftest.er1 >conftest.err
26316  rm -f conftest.er1
26317  cat conftest.err >&5
26318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319  (exit $ac_status); } && {
26320	 test -z "$ac_c_werror_flag" ||
26321	 test ! -s conftest.err
26322       } && test -s conftest.$ac_objext; then
26323  ac_cv_quad_t=yes
26324else
26325  echo "$as_me: failed program was:" >&5
26326sed 's/^/| /' conftest.$ac_ext >&5
26327
26328	ac_cv_quad_t=no
26329fi
26330
26331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26332
26333fi
26334{ echo "$as_me:$LINENO: result: $ac_cv_quad_t" >&5
26335echo "${ECHO_T}$ac_cv_quad_t" >&6; }
26336	if test $ac_cv_quad_t = yes; then
26337
26338cat >>confdefs.h <<\_ACEOF
26339#define HAVE_QUAD_T 1
26340_ACEOF
26341
26342	fi
26343
26344
26345
26346{ echo "$as_me:$LINENO: checking whether to check for 64bit libraries" >&5
26347echo $ECHO_N "checking whether to check for 64bit libraries... $ECHO_C" >&6; }
26348# Test if the compiler is in 64bit mode
26349echo 'int i;' > conftest.$ac_ext
26350atalk_cv_cc_64bit_output=no
26351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26352  (eval $ac_compile) 2>&5
26353  ac_status=$?
26354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355  (exit $ac_status); }; then
26356    case `/usr/bin/file conftest.$ac_objext` in
26357    *"ELF 64"*)
26358      atalk_cv_cc_64bit_output=yes
26359      ;;
26360    esac
26361fi
26362rm -rf conftest*
26363
26364case $host_cpu:$atalk_cv_cc_64bit_output in
26365powerpc64:yes | s390x:yes | sparc*:yes | x86_64:yes | i386:yes)
26366    { echo "$as_me:$LINENO: result: yes" >&5
26367echo "${ECHO_T}yes" >&6; }
26368    case $target_os in
26369    solaris2*)
26370        atalk_libname="lib/64"
26371        ;;
26372    *)
26373        atalk_libname="lib64"
26374        ;;
26375    esac
26376    ;;
26377*:*)
26378    { echo "$as_me:$LINENO: result: no" >&5
26379echo "${ECHO_T}no" >&6; }
26380    atalk_libname="lib"
26381    ;;
26382esac
26383
26384
26385
26386netatalk_cv_admin_group=yes
26387{ echo "$as_me:$LINENO: checking for administrative group support" >&5
26388echo $ECHO_N "checking for administrative group support... $ECHO_C" >&6; }
26389# Check whether --enable-admin-group was given.
26390if test "${enable_admin_group+set}" = set; then
26391  enableval=$enable_admin_group;
26392        if test x"$enableval" = x"no"; then
26393
26394cat >>confdefs.h <<\_ACEOF
26395#define ADMIN_GRP 0
26396_ACEOF
26397
26398		netatalk_cv_admin_group=no
26399		{ echo "$as_me:$LINENO: result: no" >&5
26400echo "${ECHO_T}no" >&6; }
26401	else
26402
26403cat >>confdefs.h <<\_ACEOF
26404#define ADMIN_GRP 1
26405_ACEOF
26406
26407		{ echo "$as_me:$LINENO: result: yes" >&5
26408echo "${ECHO_T}yes" >&6; }
26409        fi
26410else
26411
26412
26413cat >>confdefs.h <<\_ACEOF
26414#define ADMIN_GRP 1
26415_ACEOF
26416
26417		{ echo "$as_me:$LINENO: result: yes" >&5
26418echo "${ECHO_T}yes" >&6; }
26419
26420
26421fi
26422
26423
26424
26425	AFS_LIBS=
26426	AFS_CFLAGS=
26427
26428	netatalk_cv_afs=no
26429	# Check whether --enable-afs was given.
26430if test "${enable_afs+set}" = set; then
26431  enableval=$enable_afs;
26432			if test "x$enableval" = "xyes"; then
26433				{ echo "$as_me:$LINENO: checking for pioctl in -lafsauthent" >&5
26434echo $ECHO_N "checking for pioctl in -lafsauthent... $ECHO_C" >&6; }
26435if test "${ac_cv_lib_afsauthent_pioctl+set}" = set; then
26436  echo $ECHO_N "(cached) $ECHO_C" >&6
26437else
26438  ac_check_lib_save_LIBS=$LIBS
26439LIBS="-lafsauthent  $LIBS"
26440cat >conftest.$ac_ext <<_ACEOF
26441/* confdefs.h.  */
26442_ACEOF
26443cat confdefs.h >>conftest.$ac_ext
26444cat >>conftest.$ac_ext <<_ACEOF
26445/* end confdefs.h.  */
26446
26447/* Override any GCC internal prototype to avoid an error.
26448   Use char because int might match the return type of a GCC
26449   builtin and then its argument prototype would still apply.  */
26450#ifdef __cplusplus
26451extern "C"
26452#endif
26453char pioctl ();
26454int
26455main ()
26456{
26457return pioctl ();
26458  ;
26459  return 0;
26460}
26461_ACEOF
26462rm -f conftest.$ac_objext conftest$ac_exeext
26463if { (ac_try="$ac_link"
26464case "(($ac_try" in
26465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26466  *) ac_try_echo=$ac_try;;
26467esac
26468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26469  (eval "$ac_link") 2>conftest.er1
26470  ac_status=$?
26471  grep -v '^ *+' conftest.er1 >conftest.err
26472  rm -f conftest.er1
26473  cat conftest.err >&5
26474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475  (exit $ac_status); } && {
26476	 test -z "$ac_c_werror_flag" ||
26477	 test ! -s conftest.err
26478       } && test -s conftest$ac_exeext &&
26479       $as_test_x conftest$ac_exeext; then
26480  ac_cv_lib_afsauthent_pioctl=yes
26481else
26482  echo "$as_me: failed program was:" >&5
26483sed 's/^/| /' conftest.$ac_ext >&5
26484
26485	ac_cv_lib_afsauthent_pioctl=no
26486fi
26487
26488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26489      conftest$ac_exeext conftest.$ac_ext
26490LIBS=$ac_check_lib_save_LIBS
26491fi
26492{ echo "$as_me:$LINENO: result: $ac_cv_lib_afsauthent_pioctl" >&5
26493echo "${ECHO_T}$ac_cv_lib_afsauthent_pioctl" >&6; }
26494if test $ac_cv_lib_afsauthent_pioctl = yes; then
26495  netatalk_cv_afs=yes
26496else
26497  { { echo "$as_me:$LINENO: error: AFS installation not found" >&5
26498echo "$as_me: error: AFS installation not found" >&2;}
26499   { (exit 1); exit 1; }; }
26500
26501fi
26502
26503				AFS_LIBS=-lresolv -lafsrpc -lafsauthent
26504
26505cat >>confdefs.h <<\_ACEOF
26506#define AFS 1
26507_ACEOF
26508
26509			fi
26510
26511
26512fi
26513
26514
26515	{ echo "$as_me:$LINENO: checking whether to enable AFS support" >&5
26516echo $ECHO_N "checking whether to enable AFS support... $ECHO_C" >&6; }
26517	if test x"$netatalk_cv_afs" = x"yes"; then
26518		{ echo "$as_me:$LINENO: result: yes" >&5
26519echo "${ECHO_T}yes" >&6; }
26520	else
26521		{ echo "$as_me:$LINENO: result: no" >&5
26522echo "${ECHO_T}no" >&6; }
26523	fi
26524
26525
26526
26527
26528
26529
26530	PKGCONFDIR="${sysconfdir}/netatalk"
26531
26532
26533# Check whether --with-pkgconfdir was given.
26534if test "${with_pkgconfdir+set}" = set; then
26535  withval=$with_pkgconfdir;
26536			if test "x$withval" != "x"; then
26537				PKGCONFDIR="$withval"
26538			fi
26539
26540
26541fi
26542
26543
26544
26545	SERVERTEXT="${PKGCONFDIR}/msg"
26546
26547
26548# Check whether --with-message-dir was given.
26549if test "${with_message_dir+set}" = set; then
26550  withval=$with_message_dir;
26551			if test x"$withval" = x"no";  then
26552				{ echo "$as_me:$LINENO: WARNING: *** message-dir is mandatory and cannot be disabled, using default ***" >&5
26553echo "$as_me: WARNING: *** message-dir is mandatory and cannot be disabled, using default ***" >&2;}
26554			elif test "x$withval" != "x" && test x"$withval" != x"yes"; then
26555				SERVERTEXT="$withval"
26556			fi
26557
26558
26559fi
26560
26561
26562
26563
26564
26565
26566netatalk_cv_with_cracklib=no
26567
26568# Check whether --with-cracklib was given.
26569if test "${with_cracklib+set}" = set; then
26570  withval=$with_cracklib;
26571	if test "x$withval" != "xno" ; then
26572		cracklib="$withval"
26573		{ echo "$as_me:$LINENO: checking for main in -lcrack" >&5
26574echo $ECHO_N "checking for main in -lcrack... $ECHO_C" >&6; }
26575if test "${ac_cv_lib_crack_main+set}" = set; then
26576  echo $ECHO_N "(cached) $ECHO_C" >&6
26577else
26578  ac_check_lib_save_LIBS=$LIBS
26579LIBS="-lcrack  $LIBS"
26580cat >conftest.$ac_ext <<_ACEOF
26581/* confdefs.h.  */
26582_ACEOF
26583cat confdefs.h >>conftest.$ac_ext
26584cat >>conftest.$ac_ext <<_ACEOF
26585/* end confdefs.h.  */
26586
26587
26588int
26589main ()
26590{
26591return main ();
26592  ;
26593  return 0;
26594}
26595_ACEOF
26596rm -f conftest.$ac_objext conftest$ac_exeext
26597if { (ac_try="$ac_link"
26598case "(($ac_try" in
26599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26600  *) ac_try_echo=$ac_try;;
26601esac
26602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26603  (eval "$ac_link") 2>conftest.er1
26604  ac_status=$?
26605  grep -v '^ *+' conftest.er1 >conftest.err
26606  rm -f conftest.er1
26607  cat conftest.err >&5
26608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609  (exit $ac_status); } && {
26610	 test -z "$ac_c_werror_flag" ||
26611	 test ! -s conftest.err
26612       } && test -s conftest$ac_exeext &&
26613       $as_test_x conftest$ac_exeext; then
26614  ac_cv_lib_crack_main=yes
26615else
26616  echo "$as_me: failed program was:" >&5
26617sed 's/^/| /' conftest.$ac_ext >&5
26618
26619	ac_cv_lib_crack_main=no
26620fi
26621
26622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26623      conftest$ac_exeext conftest.$ac_ext
26624LIBS=$ac_check_lib_save_LIBS
26625fi
26626{ echo "$as_me:$LINENO: result: $ac_cv_lib_crack_main" >&5
26627echo "${ECHO_T}$ac_cv_lib_crack_main" >&6; }
26628if test $ac_cv_lib_crack_main = yes; then
26629
26630
26631cat >>confdefs.h <<\_ACEOF
26632#define USE_CRACKLIB 1
26633_ACEOF
26634
26635			LIBS="$LIBS -lcrack"
26636			if test "$cracklib" = "yes"; then
26637				cracklib="/usr/$atalk_libname/cracklib_dict"
26638			fi
26639
26640cat >>confdefs.h <<_ACEOF
26641#define _PATH_CRACKLIB "$cracklib"
26642_ACEOF
26643
26644			{ echo "$as_me:$LINENO: result: setting cracklib dictionary to $cracklib" >&5
26645echo "${ECHO_T}setting cracklib dictionary to $cracklib" >&6; }
26646			netatalk_cv_with_cracklib=yes
26647
26648else
26649
26650			{ { echo "$as_me:$LINENO: error: cracklib not found!" >&5
26651echo "$as_me: error: cracklib not found!" >&2;}
26652   { (exit 1); exit 1; }; }
26653
26654
26655fi
26656
26657	fi
26658
26659
26660fi
26661
26662{ echo "$as_me:$LINENO: checking for cracklib support" >&5
26663echo $ECHO_N "checking for cracklib support... $ECHO_C" >&6; }
26664{ echo "$as_me:$LINENO: result: $netatalk_cv_with_cracklib" >&5
26665echo "${ECHO_T}$netatalk_cv_with_cracklib" >&6; }
26666
26667netatalk_cv_ddp_enabled=no
26668{ echo "$as_me:$LINENO: checking whether to enable DDP" >&5
26669echo $ECHO_N "checking whether to enable DDP... $ECHO_C" >&6; }
26670# Check whether --enable-ddp was given.
26671if test "${enable_ddp+set}" = set; then
26672  enableval=$enable_ddp;
26673	if test "$enableval" = "yes"; then
26674		{ echo "$as_me:$LINENO: result: yes" >&5
26675echo "${ECHO_T}yes" >&6; }
26676		netatalk_cv_ddp_enabled=yes
26677	else
26678		{ echo "$as_me:$LINENO: result: yes" >&5
26679echo "${ECHO_T}yes" >&6; }
26680
26681cat >>confdefs.h <<\_ACEOF
26682#define NO_DDP 1
26683_ACEOF
26684
26685	fi
26686
26687else
26688
26689		{ echo "$as_me:$LINENO: result: no" >&5
26690echo "${ECHO_T}no" >&6; }
26691
26692cat >>confdefs.h <<\_ACEOF
26693#define NO_DDP 1
26694_ACEOF
26695
26696
26697
26698fi
26699
26700
26701{ echo "$as_me:$LINENO: checking whether to enable debug code" >&5
26702echo $ECHO_N "checking whether to enable debug code... $ECHO_C" >&6; }
26703# Check whether --enable-debug1 was given.
26704if test "${enable_debug1+set}" = set; then
26705  enableval=$enable_debug1;
26706	if test "$enableval" != "no"; then
26707		if test "$enableval" = "yes"; then
26708
26709cat >>confdefs.h <<\_ACEOF
26710#define DEBUG1 1
26711_ACEOF
26712
26713		else
26714
26715cat >>confdefs.h <<_ACEOF
26716#define DEBUG1 $enableval
26717_ACEOF
26718
26719		fi
26720		{ echo "$as_me:$LINENO: result: yes" >&5
26721echo "${ECHO_T}yes" >&6; }
26722	else
26723		{ echo "$as_me:$LINENO: result: no" >&5
26724echo "${ECHO_T}no" >&6; }
26725	fi
26726
26727else
26728
26729		{ echo "$as_me:$LINENO: result: no" >&5
26730echo "${ECHO_T}no" >&6; }
26731
26732
26733fi
26734
26735
26736{ echo "$as_me:$LINENO: checking whether to enable verbose debug code" >&5
26737echo $ECHO_N "checking whether to enable verbose debug code... $ECHO_C" >&6; }
26738# Check whether --enable-debug was given.
26739if test "${enable_debug+set}" = set; then
26740  enableval=$enable_debug;
26741	if test "$enableval" != "no"; then
26742		if test "$enableval" = "yes"; then
26743
26744cat >>confdefs.h <<\_ACEOF
26745#define DEBUG 1
26746_ACEOF
26747
26748		else
26749
26750cat >>confdefs.h <<_ACEOF
26751#define DEBUG $enableval
26752_ACEOF
26753
26754		fi
26755		{ echo "$as_me:$LINENO: result: yes" >&5
26756echo "${ECHO_T}yes" >&6; }
26757	else
26758		{ echo "$as_me:$LINENO: result: no" >&5
26759echo "${ECHO_T}no" >&6; }
26760
26761cat >>confdefs.h <<\_ACEOF
26762#define NDEBUG 1
26763_ACEOF
26764
26765	fi
26766
26767else
26768
26769		{ echo "$as_me:$LINENO: result: no" >&5
26770echo "${ECHO_T}no" >&6; }
26771
26772cat >>confdefs.h <<\_ACEOF
26773#define NDEBUG 1
26774_ACEOF
26775
26776
26777
26778fi
26779
26780
26781{ echo "$as_me:$LINENO: checking whether to enable debugging with debuggers" >&5
26782echo $ECHO_N "checking whether to enable debugging with debuggers... $ECHO_C" >&6; }
26783# Check whether --enable-debugging was given.
26784if test "${enable_debugging+set}" = set; then
26785  enableval=$enable_debugging;
26786	if test "$enableval" != "no"; then
26787		if test "$enableval" = "yes"; then
26788
26789cat >>confdefs.h <<\_ACEOF
26790#define DEBUGGING 1
26791_ACEOF
26792
26793		else
26794
26795cat >>confdefs.h <<_ACEOF
26796#define DEBUGGING $enableval
26797_ACEOF
26798
26799		fi
26800		{ echo "$as_me:$LINENO: result: yes" >&5
26801echo "${ECHO_T}yes" >&6; }
26802	else
26803		{ echo "$as_me:$LINENO: result: no" >&5
26804echo "${ECHO_T}no" >&6; }
26805	fi
26806
26807else
26808
26809		{ echo "$as_me:$LINENO: result: no" >&5
26810echo "${ECHO_T}no" >&6; }
26811
26812
26813fi
26814
26815
26816# Check whether --enable-largefile was given.
26817if test "${enable_largefile+set}" = set; then
26818  enableval=$enable_largefile;
26819fi
26820
26821if test "$enable_largefile" != no; then
26822            wx_largefile=no
26823
26824    { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
26825echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
26826if test "${ac_cv_sys_file_offset_bits+set}" = set; then
26827  echo $ECHO_N "(cached) $ECHO_C" >&6
26828else
26829
26830          cat >conftest.$ac_ext <<_ACEOF
26831/* confdefs.h.  */
26832_ACEOF
26833cat confdefs.h >>conftest.$ac_ext
26834cat >>conftest.$ac_ext <<_ACEOF
26835/* end confdefs.h.  */
26836#define _FILE_OFFSET_BITS 64
26837                          #include <sys/types.h>
26838int
26839main ()
26840{
26841typedef struct {
26842    unsigned int field: sizeof(off_t) == 8;
26843} wxlf;
26844
26845  ;
26846  return 0;
26847}
26848_ACEOF
26849rm -f conftest.$ac_objext
26850if { (ac_try="$ac_compile"
26851case "(($ac_try" in
26852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26853  *) ac_try_echo=$ac_try;;
26854esac
26855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26856  (eval "$ac_compile") 2>conftest.er1
26857  ac_status=$?
26858  grep -v '^ *+' conftest.er1 >conftest.err
26859  rm -f conftest.er1
26860  cat conftest.err >&5
26861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862  (exit $ac_status); } && {
26863	 test -z "$ac_c_werror_flag" ||
26864	 test ! -s conftest.err
26865       } && test -s conftest.$ac_objext; then
26866  ac_cv_sys_file_offset_bits=64
26867else
26868  echo "$as_me: failed program was:" >&5
26869sed 's/^/| /' conftest.$ac_ext >&5
26870
26871	ac_cv_sys_file_offset_bits=no
26872fi
26873
26874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26875
26876
26877fi
26878{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
26879echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
26880
26881    if test "$ac_cv_sys_file_offset_bits" != no; then
26882        wx_largefile=yes
26883
26884cat >>confdefs.h <<_ACEOF
26885#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
26886_ACEOF
26887
26888    fi
26889
26890    if test "x$wx_largefile" != "xyes"; then
26891
26892    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
26893echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
26894if test "${ac_cv_sys_large_files+set}" = set; then
26895  echo $ECHO_N "(cached) $ECHO_C" >&6
26896else
26897
26898          cat >conftest.$ac_ext <<_ACEOF
26899/* confdefs.h.  */
26900_ACEOF
26901cat confdefs.h >>conftest.$ac_ext
26902cat >>conftest.$ac_ext <<_ACEOF
26903/* end confdefs.h.  */
26904#define _LARGE_FILES 1
26905                          #include <sys/types.h>
26906int
26907main ()
26908{
26909typedef struct {
26910    unsigned int field: sizeof(off_t) == 8;
26911} wxlf;
26912
26913  ;
26914  return 0;
26915}
26916_ACEOF
26917rm -f conftest.$ac_objext
26918if { (ac_try="$ac_compile"
26919case "(($ac_try" in
26920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26921  *) ac_try_echo=$ac_try;;
26922esac
26923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26924  (eval "$ac_compile") 2>conftest.er1
26925  ac_status=$?
26926  grep -v '^ *+' conftest.er1 >conftest.err
26927  rm -f conftest.er1
26928  cat conftest.err >&5
26929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930  (exit $ac_status); } && {
26931	 test -z "$ac_c_werror_flag" ||
26932	 test ! -s conftest.err
26933       } && test -s conftest.$ac_objext; then
26934  ac_cv_sys_large_files=1
26935else
26936  echo "$as_me: failed program was:" >&5
26937sed 's/^/| /' conftest.$ac_ext >&5
26938
26939	ac_cv_sys_large_files=no
26940fi
26941
26942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26943
26944
26945fi
26946{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
26947echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
26948
26949    if test "$ac_cv_sys_large_files" != no; then
26950        wx_largefile=yes
26951
26952cat >>confdefs.h <<_ACEOF
26953#define _LARGE_FILES $ac_cv_sys_large_files
26954_ACEOF
26955
26956    fi
26957
26958    fi
26959
26960
26961    { echo "$as_me:$LINENO: checking for 64 bit off_t" >&5
26962echo $ECHO_N "checking for 64 bit off_t... $ECHO_C" >&6; }
26963if test "${netatalk_cv_SIZEOF_OFF_T+set}" = set; then
26964  echo $ECHO_N "(cached) $ECHO_C" >&6
26965else
26966
26967    if test "$cross_compiling" = yes; then
26968  netatalk_cv_SIZEOF_OFF_T=cross
26969else
26970  cat >conftest.$ac_ext <<_ACEOF
26971/* confdefs.h.  */
26972_ACEOF
26973cat confdefs.h >>conftest.$ac_ext
26974cat >>conftest.$ac_ext <<_ACEOF
26975/* end confdefs.h.  */
26976#include <stdio.h>
26977#include <stdlib.h>
26978#include <sys/stat.h>
26979main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
26980_ACEOF
26981rm -f conftest$ac_exeext
26982if { (ac_try="$ac_link"
26983case "(($ac_try" in
26984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26985  *) ac_try_echo=$ac_try;;
26986esac
26987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26988  (eval "$ac_link") 2>&5
26989  ac_status=$?
26990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26992  { (case "(($ac_try" in
26993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994  *) ac_try_echo=$ac_try;;
26995esac
26996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26997  (eval "$ac_try") 2>&5
26998  ac_status=$?
26999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000  (exit $ac_status); }; }; then
27001  netatalk_cv_SIZEOF_OFF_T=yes
27002else
27003  echo "$as_me: program exited with status $ac_status" >&5
27004echo "$as_me: failed program was:" >&5
27005sed 's/^/| /' conftest.$ac_ext >&5
27006
27007( exit $ac_status )
27008netatalk_cv_SIZEOF_OFF_T=no
27009fi
27010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27011fi
27012
27013
27014fi
27015{ echo "$as_me:$LINENO: result: $netatalk_cv_SIZEOF_OFF_T" >&5
27016echo "${ECHO_T}$netatalk_cv_SIZEOF_OFF_T" >&6; }
27017
27018    { echo "$as_me:$LINENO: checking if large file support is available" >&5
27019echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
27020    if test "x$netatalk_cv_SIZEOF_OFF_T" != "xno"; then
27021
27022cat >>confdefs.h <<\_ACEOF
27023#define HAVE_LARGEFILE_SUPPORT
27024_ACEOF
27025
27026	{ echo "$as_me:$LINENO: result: yes" >&5
27027echo "${ECHO_T}yes" >&6; }
27028        :
27029    else
27030        { echo "$as_me:$LINENO: result: no" >&5
27031echo "${ECHO_T}no" >&6; }
27032        { { echo "$as_me:$LINENO: error: AFP 3.x support requires Large File Support." >&5
27033echo "$as_me: error: AFP 3.x support requires Large File Support." >&2;}
27034   { (exit 1); exit 1; }; }
27035    fi
27036fi
27037
27038
27039
27040        savedcflags="$CFLAGS"
27041        savedldflags="$LDFLAGS"
27042	ICONV_CFLAGS=""
27043	ICONV_LIBS=""
27044
27045
27046# Check whether --with-libiconv was given.
27047if test "${with_libiconv+set}" = set; then
27048  withval=$with_libiconv;  case "$withval" in
27049	  no)
27050	    ;;
27051	  yes)
27052	    ;;
27053	  *)
27054	    ICONV_CFLAGS="-I$withval/include"
27055	    ICONV_LIBS="-L$withval/$atalk_libname"
27056	    ;;
27057	  esac
27058else
27059  withval="no"
27060
27061fi
27062
27063
27064	CFLAGS="$ICONV_CFLAGS $CFLAGS"
27065        LDFLAGS="$LDFLAGS $ICONV_LIBS -liconv"
27066
27067	{ echo "$as_me:$LINENO: checking for libiconv" >&5
27068echo $ECHO_N "checking for libiconv... $ECHO_C" >&6; }
27069if test "${netatalk_cv_iconv+set}" = set; then
27070  echo $ECHO_N "(cached) $ECHO_C" >&6
27071else
27072
27073          cat >conftest.$ac_ext <<_ACEOF
27074/* confdefs.h.  */
27075_ACEOF
27076cat confdefs.h >>conftest.$ac_ext
27077cat >>conftest.$ac_ext <<_ACEOF
27078/* end confdefs.h.  */
27079
27080#include <stdlib.h>
27081#include <iconv.h>
27082
27083int
27084main ()
27085{
27086
27087	iconv_t cd = iconv_open("","");
27088        iconv(cd,NULL,NULL,NULL,NULL);
27089        iconv_close(cd);
27090
27091  ;
27092  return 0;
27093}
27094_ACEOF
27095rm -f conftest.$ac_objext conftest$ac_exeext
27096if { (ac_try="$ac_link"
27097case "(($ac_try" in
27098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099  *) ac_try_echo=$ac_try;;
27100esac
27101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27102  (eval "$ac_link") 2>conftest.er1
27103  ac_status=$?
27104  grep -v '^ *+' conftest.er1 >conftest.err
27105  rm -f conftest.er1
27106  cat conftest.err >&5
27107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108  (exit $ac_status); } && {
27109	 test -z "$ac_c_werror_flag" ||
27110	 test ! -s conftest.err
27111       } && test -s conftest$ac_exeext &&
27112       $as_test_x conftest$ac_exeext; then
27113  netatalk_cv_iconv=yes
27114else
27115  echo "$as_me: failed program was:" >&5
27116sed 's/^/| /' conftest.$ac_ext >&5
27117
27118	netatalk_cv_iconv=no
27119fi
27120
27121rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27122      conftest$ac_exeext conftest.$ac_ext
27123fi
27124{ echo "$as_me:$LINENO: result: $netatalk_cv_iconv" >&5
27125echo "${ECHO_T}$netatalk_cv_iconv" >&6; }
27126
27127	if test x"$netatalk_cv_iconv" = x"yes"; then
27128	    ICONV_LIBS="$ICONV_LIBS -liconv"
27129        else
27130	    CFLAGS="$savedcflags"
27131	    LDFLAGS="$savedldflags"
27132	    ICONV_LIBS=""
27133	    ICONV_CFLAGS=""
27134	    if test x"$withval" != x"no"; then
27135	        { { echo "$as_me:$LINENO: error: libiconv not found" >&5
27136echo "$as_me: error: libiconv not found" >&2;}
27137   { (exit 1); exit 1; }; }
27138	    fi
27139	fi
27140
27141
27142
27143  ac_new_flags=""
27144  for i in $ICONV_CFLAGS; do
27145    case $i in
27146    -I/usr/include|-I/usr/include/) ;;
27147    *) ac_new_flags="$ac_new_flags $i" ;;
27148    esac
27149  done
27150  ICONV_CFLAGS=$ac_new_flags
27151
27152
27153  ac_new_flags=""
27154  for i in $ICONV_LIBS; do
27155    case $i in
27156    -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
27157    *) ac_new_flags="$ac_new_flags $i" ;;
27158    esac
27159  done
27160  ICONV_LIBS=$ac_new_flags
27161
27162
27163
27164
27165
27166	{ echo "$as_me:$LINENO: checking for working iconv" >&5
27167echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
27168if test "${netatalk_cv_HAVE_USABLE_ICONV+set}" = set; then
27169  echo $ECHO_N "(cached) $ECHO_C" >&6
27170else
27171
27172		if test "$cross_compiling" = yes; then
27173  netatalk_cv_HAVE_USABLE_ICONV=cross
27174else
27175  cat >conftest.$ac_ext <<_ACEOF
27176/* confdefs.h.  */
27177_ACEOF
27178cat confdefs.h >>conftest.$ac_ext
27179cat >>conftest.$ac_ext <<_ACEOF
27180/* end confdefs.h.  */
27181\
27182#include <iconv.h>
27183main() {
27184       iconv_t cd = iconv_open("ASCII", "UTF-8");
27185       if (cd == 0 || cd == (iconv_t)-1) return -1;
27186       return 0;
27187}
27188
27189_ACEOF
27190rm -f conftest$ac_exeext
27191if { (ac_try="$ac_link"
27192case "(($ac_try" in
27193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27194  *) ac_try_echo=$ac_try;;
27195esac
27196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27197  (eval "$ac_link") 2>&5
27198  ac_status=$?
27199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27201  { (case "(($ac_try" in
27202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27203  *) ac_try_echo=$ac_try;;
27204esac
27205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27206  (eval "$ac_try") 2>&5
27207  ac_status=$?
27208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209  (exit $ac_status); }; }; then
27210  netatalk_cv_HAVE_USABLE_ICONV=yes
27211else
27212  echo "$as_me: program exited with status $ac_status" >&5
27213echo "$as_me: failed program was:" >&5
27214sed 's/^/| /' conftest.$ac_ext >&5
27215
27216( exit $ac_status )
27217netatalk_cv_HAVE_USABLE_ICONV=no
27218fi
27219rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27220fi
27221
27222
27223fi
27224{ echo "$as_me:$LINENO: result: $netatalk_cv_HAVE_USABLE_ICONV" >&5
27225echo "${ECHO_T}$netatalk_cv_HAVE_USABLE_ICONV" >&6; }
27226
27227	if test x"$netatalk_cv_HAVE_USABLE_ICONV" = x"yes"; then
27228
27229cat >>confdefs.h <<\_ACEOF
27230#define HAVE_USABLE_ICONV 1
27231_ACEOF
27232
27233	fi
27234
27235  	if test x"$netatalk_cv_HAVE_USABLE_ICONV" = x"yes"; then
27236    		if test "${am_cv_proto_iconv+set}" = set; then
27237  echo $ECHO_N "(cached) $ECHO_C" >&6
27238else
27239
27240      		cat >conftest.$ac_ext <<_ACEOF
27241/* confdefs.h.  */
27242_ACEOF
27243cat confdefs.h >>conftest.$ac_ext
27244cat >>conftest.$ac_ext <<_ACEOF
27245/* end confdefs.h.  */
27246\
27247#include <stdlib.h>
27248#include <iconv.h>
27249extern
27250#ifdef __cplusplus
27251"C"
27252#endif
27253#if defined(__STDC__) || defined(__cplusplus)
27254size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27255#else
27256size_t iconv();
27257#endif
27258
27259int
27260main ()
27261{
27262
27263  ;
27264  return 0;
27265}
27266_ACEOF
27267rm -f conftest.$ac_objext
27268if { (ac_try="$ac_compile"
27269case "(($ac_try" in
27270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27271  *) ac_try_echo=$ac_try;;
27272esac
27273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27274  (eval "$ac_compile") 2>conftest.er1
27275  ac_status=$?
27276  grep -v '^ *+' conftest.er1 >conftest.err
27277  rm -f conftest.er1
27278  cat conftest.err >&5
27279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280  (exit $ac_status); } && {
27281	 test -z "$ac_c_werror_flag" ||
27282	 test ! -s conftest.err
27283       } && test -s conftest.$ac_objext; then
27284  am_cv_proto_iconv_arg1=""
27285else
27286  echo "$as_me: failed program was:" >&5
27287sed 's/^/| /' conftest.$ac_ext >&5
27288
27289	am_cv_proto_iconv_arg1="const"
27290fi
27291
27292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27293	      	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);"
27294fi
27295
27296
27297cat >>confdefs.h <<_ACEOF
27298#define ICONV_CONST $am_cv_proto_iconv_arg1
27299_ACEOF
27300
27301  	fi
27302
27303	if test x"$netatalk_cv_HAVE_USABLE_ICONV" = x"yes"; then
27304	    { echo "$as_me:$LINENO: checking whether iconv supports UCS-2-INTERNAL" >&5
27305echo $ECHO_N "checking whether iconv supports UCS-2-INTERNAL... $ECHO_C" >&6; }
27306if test "${netatalk_cv_HAVE_UCS2INTERNAL+set}" = set; then
27307  echo $ECHO_N "(cached) $ECHO_C" >&6
27308else
27309
27310		if test "$cross_compiling" = yes; then
27311  netatalk_cv_HAVEUCS2INTERNAL=cross
27312else
27313  cat >conftest.$ac_ext <<_ACEOF
27314/* confdefs.h.  */
27315_ACEOF
27316cat confdefs.h >>conftest.$ac_ext
27317cat >>conftest.$ac_ext <<_ACEOF
27318/* end confdefs.h.  */
27319\
27320#include <iconv.h>
27321int main() {
27322       iconv_t cd = iconv_open("ASCII", "UCS-2-INTERNAL");
27323       if (cd == 0 || cd == (iconv_t)-1) return -1;
27324       return 0;
27325}
27326
27327_ACEOF
27328rm -f conftest$ac_exeext
27329if { (ac_try="$ac_link"
27330case "(($ac_try" in
27331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27332  *) ac_try_echo=$ac_try;;
27333esac
27334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27335  (eval "$ac_link") 2>&5
27336  ac_status=$?
27337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27339  { (case "(($ac_try" in
27340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27341  *) ac_try_echo=$ac_try;;
27342esac
27343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27344  (eval "$ac_try") 2>&5
27345  ac_status=$?
27346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347  (exit $ac_status); }; }; then
27348  netatalk_cv_HAVE_UCS2INTERNAL=yes
27349else
27350  echo "$as_me: program exited with status $ac_status" >&5
27351echo "$as_me: failed program was:" >&5
27352sed 's/^/| /' conftest.$ac_ext >&5
27353
27354( exit $ac_status )
27355netatalk_cv_HAVE_UCS2INTERNAL=no
27356fi
27357rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27358fi
27359
27360
27361fi
27362{ echo "$as_me:$LINENO: result: $netatalk_cv_HAVE_UCS2INTERNAL" >&5
27363echo "${ECHO_T}$netatalk_cv_HAVE_UCS2INTERNAL" >&6; }
27364
27365	if test x"$netatalk_cv_HAVE_UCS2INTERNAL" = x"yes"; then
27366
27367cat >>confdefs.h <<\_ACEOF
27368#define HAVE_UCS2INTERNAL 1
27369_ACEOF
27370
27371	fi
27372	fi
27373
27374        CFLAGS="$savedcflags"
27375        LDFLAGS="$savedldflags"
27376	CPPFLAGS="$saved_CPPFLAGS"
27377
27378
27379
27380
27381netatalk_cv_dropkludge=no
27382{ echo "$as_me:$LINENO: checking whether to enable experimental dropbox support" >&5
27383echo $ECHO_N "checking whether to enable experimental dropbox support... $ECHO_C" >&6; }
27384# Check whether --enable-dropkludge was given.
27385if test "${enable_dropkludge+set}" = set; then
27386  enableval=$enable_dropkludge;
27387	if test "$enableval" = "yes"; then
27388
27389cat >>confdefs.h <<\_ACEOF
27390#define DROPKLUDGE 1
27391_ACEOF
27392
27393		{ echo "$as_me:$LINENO: result: yes" >&5
27394echo "${ECHO_T}yes" >&6; }
27395		netatalk_cv_dropkludge=yes
27396	else
27397		{ echo "$as_me:$LINENO: result: no" >&5
27398echo "${ECHO_T}no" >&6; }
27399	fi
27400
27401else
27402
27403		{ echo "$as_me:$LINENO: result: no" >&5
27404echo "${ECHO_T}no" >&6; }
27405
27406
27407fi
27408
27409
27410netatalk_cv_force_uidgid=no
27411{ echo "$as_me:$LINENO: checking whether to enable forcing of uid/gid per volume" >&5
27412echo $ECHO_N "checking whether to enable forcing of uid/gid per volume... $ECHO_C" >&6; }
27413# Check whether --enable-force-uidgid was given.
27414if test "${enable_force_uidgid+set}" = set; then
27415  enableval=$enable_force_uidgid;
27416	if test "$enableval" = "yes"; then
27417
27418cat >>confdefs.h <<\_ACEOF
27419#define FORCE_UIDGID 1
27420_ACEOF
27421
27422		{ echo "$as_me:$LINENO: result: enabling forcing of uid/gid per volume" >&5
27423echo "${ECHO_T}enabling forcing of uid/gid per volume" >&6; }
27424		{ echo "$as_me:$LINENO: result: yes" >&5
27425echo "${ECHO_T}yes" >&6; }
27426		netatalk_cv_force_uidgid=yes
27427	else
27428		{ echo "$as_me:$LINENO: result: no" >&5
27429echo "${ECHO_T}no" >&6; }
27430	fi
27431
27432else
27433
27434		{ echo "$as_me:$LINENO: result: no" >&5
27435echo "${ECHO_T}no" >&6; }
27436
27437
27438fi
27439
27440
27441bdb_required=no
27442
27443        bdb_required=no
27444    compiled_backends=""
27445
27446        { echo "$as_me:$LINENO: checking whether or not to use Database Daemon CNID backend" >&5
27447echo $ECHO_N "checking whether or not to use Database Daemon CNID backend... $ECHO_C" >&6; }
27448
27449# Check whether --with-cnid-dbd-backend was given.
27450if test "${with_cnid_dbd_backend+set}" = set; then
27451  withval=$with_cnid_dbd_backend;    if test x"$withval" = x"no"; then
27452            use_dbd_backend=no
27453            { echo "$as_me:$LINENO: result: no" >&5
27454echo "${ECHO_T}no" >&6; }
27455        else
27456            use_dbd_backend=yes
27457            { echo "$as_me:$LINENO: result: yes" >&5
27458echo "${ECHO_T}yes" >&6; }
27459        fi
27460
27461else
27462
27463        use_dbd_backend=yes
27464        { echo "$as_me:$LINENO: result: yes" >&5
27465echo "${ECHO_T}yes" >&6; }
27466
27467fi
27468
27469
27470    if test $use_dbd_backend = yes; then
27471        compiled_backends="$compiled_backends dbd"
27472
27473cat >>confdefs.h <<\_ACEOF
27474#define CNID_BACKEND_DBD 1
27475_ACEOF
27476
27477        if test x"$DEFAULT_CNID_SCHEME" = x; then
27478            DEFAULT_CNID_SCHEME=dbd
27479        fi
27480        bdb_required=yes
27481    fi
27482     if test x"$use_dbd_backend" = x"yes"; then
27483  BUILD_DBD_DAEMON_TRUE=
27484  BUILD_DBD_DAEMON_FALSE='#'
27485else
27486  BUILD_DBD_DAEMON_TRUE='#'
27487  BUILD_DBD_DAEMON_FALSE=
27488fi
27489
27490
27491        { echo "$as_me:$LINENO: checking whether or not to use BDB Concurrent Data Store" >&5
27492echo $ECHO_N "checking whether or not to use BDB Concurrent Data Store... $ECHO_C" >&6; }
27493
27494# Check whether --with-cnid-cdb-backend was given.
27495if test "${with_cnid_cdb_backend+set}" = set; then
27496  withval=$with_cnid_cdb_backend;
27497	    if test x"$withval" = x"no"; then
27498	        use_cdb_backend=no
27499        else
27500            use_cdb_backend=yes
27501        fi
27502
27503else
27504
27505        use_cdb_backend=no
27506
27507fi
27508
27509
27510
27511    if test $use_cdb_backend = yes; then
27512        { echo "$as_me:$LINENO: result: yes" >&5
27513echo "${ECHO_T}yes" >&6; }
27514
27515cat >>confdefs.h <<\_ACEOF
27516#define CNID_BACKEND_CDB 1
27517_ACEOF
27518
27519        if test x"$DEFAULT_CNID_SCHEME" = x; then
27520            DEFAULT_CNID_SCHEME=cdb
27521        fi
27522        bdb_required=yes
27523        compiled_backends="$compiled_backends cdb"
27524    else
27525        { echo "$as_me:$LINENO: result: no" >&5
27526echo "${ECHO_T}no" >&6; }
27527    fi
27528     if test x"$use_cdb_backend" = x"yes"; then
27529  USE_CDB_BACKEND_TRUE=
27530  USE_CDB_BACKEND_FALSE='#'
27531else
27532  USE_CDB_BACKEND_TRUE='#'
27533  USE_CDB_BACKEND_FALSE=
27534fi
27535
27536
27537        { echo "$as_me:$LINENO: checking whether or not to use LAST DID scheme" >&5
27538echo $ECHO_N "checking whether or not to use LAST DID scheme... $ECHO_C" >&6; }
27539
27540# Check whether --with-cnid-last-backend was given.
27541if test "${with_cnid_last_backend+set}" = set; then
27542  withval=$with_cnid_last_backend;
27543        if test x"$withval" = x"no"; then
27544            use_last_backend=no
27545        else
27546            use_last_backend=yes
27547        fi
27548
27549else
27550
27551        use_last_backend=yes
27552
27553fi
27554
27555
27556    if test $use_last_backend = yes; then
27557        { echo "$as_me:$LINENO: result: yes" >&5
27558echo "${ECHO_T}yes" >&6; }
27559
27560cat >>confdefs.h <<\_ACEOF
27561#define CNID_BACKEND_LAST 1
27562_ACEOF
27563
27564        if test x"$DEFAULT_CNID_SCHEME" = x; then
27565            DEFAULT_CNID_SCHEME=last
27566        fi
27567        compiled_backends="$compiled_backends last"
27568    else
27569        { echo "$as_me:$LINENO: result: no" >&5
27570echo "${ECHO_T}no" >&6; }
27571    fi
27572     if test x"$use_last_backend" = x"yes"; then
27573  USE_LAST_BACKEND_TRUE=
27574  USE_LAST_BACKEND_FALSE='#'
27575else
27576  USE_LAST_BACKEND_TRUE='#'
27577  USE_LAST_BACKEND_FALSE=
27578fi
27579
27580
27581        { echo "$as_me:$LINENO: checking whether or not to use TDB DID scheme" >&5
27582echo $ECHO_N "checking whether or not to use TDB DID scheme... $ECHO_C" >&6; }
27583
27584# Check whether --with-cnid-tdb-backend was given.
27585if test "${with_cnid_tdb_backend+set}" = set; then
27586  withval=$with_cnid_tdb_backend;
27587        if test x"$withval" = x"no"; then
27588            use_tdb_backend=no
27589        else
27590            use_tdb_backend=yes
27591        fi
27592
27593else
27594
27595        use_tdb_backend=yes
27596
27597fi
27598
27599
27600    if test $use_tdb_backend = yes; then
27601        { echo "$as_me:$LINENO: result: yes" >&5
27602echo "${ECHO_T}yes" >&6; }
27603
27604cat >>confdefs.h <<\_ACEOF
27605#define CNID_BACKEND_TDB 1
27606_ACEOF
27607
27608        if test x"$DEFAULT_CNID_SCHEME" = x; then
27609            DEFAULT_CNID_SCHEME=tdb
27610        fi
27611        compiled_backends="$compiled_backends tdb"
27612    else
27613        { echo "$as_me:$LINENO: result: no" >&5
27614echo "${ECHO_T}no" >&6; }
27615    fi
27616     if test x"$use_tdb_backend" = x"yes"; then
27617  USE_TDB_BACKEND_TRUE=
27618  USE_TDB_BACKEND_FALSE='#'
27619else
27620  USE_TDB_BACKEND_TRUE='#'
27621  USE_TDB_BACKEND_FALSE=
27622fi
27623
27624
27625        { echo "$as_me:$LINENO: checking default DID scheme" >&5
27626echo $ECHO_N "checking default DID scheme... $ECHO_C" >&6; }
27627
27628# Check whether --with-cnid-default-backend was given.
27629if test "${with_cnid_default_backend+set}" = set; then
27630  withval=$with_cnid_default_backend;
27631        if test x"$withval" = x; then
27632            { echo "$as_me:$LINENO: result: ignored" >&5
27633echo "${ECHO_T}ignored" >&6; }
27634        else
27635            DEFAULT_CNID_SCHEME=$withval
27636            { echo "$as_me:$LINENO: result: $DEFAULT_CNID_SCHEME" >&5
27637echo "${ECHO_T}$DEFAULT_CNID_SCHEME" >&6; }
27638        fi
27639
27640else
27641
27642        { echo "$as_me:$LINENO: result: $DEFAULT_CNID_SCHEME" >&5
27643echo "${ECHO_T}$DEFAULT_CNID_SCHEME" >&6; }
27644
27645fi
27646
27647
27648    if test x"$DEFAULT_CNID_SCHEME" = x; then
27649        { { echo "$as_me:$LINENO: error: No DID schemes compiled in " >&5
27650echo "$as_me: error: No DID schemes compiled in " >&2;}
27651   { (exit 1); exit 1; }; }
27652    fi
27653
27654    { echo "$as_me:$LINENO: checking whether default CNID scheme has been activated" >&5
27655echo $ECHO_N "checking whether default CNID scheme has been activated... $ECHO_C" >&6; }
27656    found_scheme=no
27657    for scheme in $compiled_backends ; do
27658        if test x"$scheme" = x"$DEFAULT_CNID_SCHEME"; then
27659            found_scheme=yes
27660        fi
27661    done
27662    if test x"$found_scheme" = x"no"; then
27663        { echo "$as_me:$LINENO: result: no" >&5
27664echo "${ECHO_T}no" >&6; }
27665        { { echo "$as_me:$LINENO: error: Specified default CNID scheme $DEFAULT_CNID_SCHEME was not selected for compilation" >&5
27666echo "$as_me: error: Specified default CNID scheme $DEFAULT_CNID_SCHEME was not selected for compilation" >&2;}
27667   { (exit 1); exit 1; }; }
27668    else
27669        { echo "$as_me:$LINENO: result: yes" >&5
27670echo "${ECHO_T}yes" >&6; }
27671    fi
27672
27673
27674cat >>confdefs.h <<_ACEOF
27675#define DEFAULT_CNID_SCHEME "$DEFAULT_CNID_SCHEME"
27676_ACEOF
27677
27678
27679
27680
27681    if test "x$bdb_required" = "xyes"; then
27682	bdb_required=yes
27683    else
27684	bdb_required=no
27685    fi
27686
27687
27688
27689	# Check whether --enable-quota was given.
27690if test "${enable_quota+set}" = set; then
27691  enableval=$enable_quota;
27692fi
27693
27694
27695	if test x$enable_quota != xno; then
27696	QUOTA_LIBS=""
27697	netatalk_cv_quotasupport="yes"
27698	{ echo "$as_me:$LINENO: checking for main in -lrpcsvc" >&5
27699echo $ECHO_N "checking for main in -lrpcsvc... $ECHO_C" >&6; }
27700if test "${ac_cv_lib_rpcsvc_main+set}" = set; then
27701  echo $ECHO_N "(cached) $ECHO_C" >&6
27702else
27703  ac_check_lib_save_LIBS=$LIBS
27704LIBS="-lrpcsvc  $LIBS"
27705cat >conftest.$ac_ext <<_ACEOF
27706/* confdefs.h.  */
27707_ACEOF
27708cat confdefs.h >>conftest.$ac_ext
27709cat >>conftest.$ac_ext <<_ACEOF
27710/* end confdefs.h.  */
27711
27712
27713int
27714main ()
27715{
27716return main ();
27717  ;
27718  return 0;
27719}
27720_ACEOF
27721rm -f conftest.$ac_objext conftest$ac_exeext
27722if { (ac_try="$ac_link"
27723case "(($ac_try" in
27724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27725  *) ac_try_echo=$ac_try;;
27726esac
27727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27728  (eval "$ac_link") 2>conftest.er1
27729  ac_status=$?
27730  grep -v '^ *+' conftest.er1 >conftest.err
27731  rm -f conftest.er1
27732  cat conftest.err >&5
27733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734  (exit $ac_status); } && {
27735	 test -z "$ac_c_werror_flag" ||
27736	 test ! -s conftest.err
27737       } && test -s conftest$ac_exeext &&
27738       $as_test_x conftest$ac_exeext; then
27739  ac_cv_lib_rpcsvc_main=yes
27740else
27741  echo "$as_me: failed program was:" >&5
27742sed 's/^/| /' conftest.$ac_ext >&5
27743
27744	ac_cv_lib_rpcsvc_main=no
27745fi
27746
27747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27748      conftest$ac_exeext conftest.$ac_ext
27749LIBS=$ac_check_lib_save_LIBS
27750fi
27751{ echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsvc_main" >&5
27752echo "${ECHO_T}$ac_cv_lib_rpcsvc_main" >&6; }
27753if test $ac_cv_lib_rpcsvc_main = yes; then
27754  QUOTA_LIBS="-lrpcsvc"
27755fi
27756
27757
27758
27759
27760for ac_header in rpc/rpc.h rpc/pmap_prot.h rpcsvc/rquota.h
27761do
27762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27764  { echo "$as_me:$LINENO: checking for $ac_header" >&5
27765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27767  echo $ECHO_N "(cached) $ECHO_C" >&6
27768fi
27769ac_res=`eval echo '${'$as_ac_Header'}'`
27770	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27771echo "${ECHO_T}$ac_res" >&6; }
27772else
27773  # Is the header compilable?
27774{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27775echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27776cat >conftest.$ac_ext <<_ACEOF
27777/* confdefs.h.  */
27778_ACEOF
27779cat confdefs.h >>conftest.$ac_ext
27780cat >>conftest.$ac_ext <<_ACEOF
27781/* end confdefs.h.  */
27782$ac_includes_default
27783#include <$ac_header>
27784_ACEOF
27785rm -f conftest.$ac_objext
27786if { (ac_try="$ac_compile"
27787case "(($ac_try" in
27788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27789  *) ac_try_echo=$ac_try;;
27790esac
27791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27792  (eval "$ac_compile") 2>conftest.er1
27793  ac_status=$?
27794  grep -v '^ *+' conftest.er1 >conftest.err
27795  rm -f conftest.er1
27796  cat conftest.err >&5
27797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798  (exit $ac_status); } && {
27799	 test -z "$ac_c_werror_flag" ||
27800	 test ! -s conftest.err
27801       } && test -s conftest.$ac_objext; then
27802  ac_header_compiler=yes
27803else
27804  echo "$as_me: failed program was:" >&5
27805sed 's/^/| /' conftest.$ac_ext >&5
27806
27807	ac_header_compiler=no
27808fi
27809
27810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27811{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27812echo "${ECHO_T}$ac_header_compiler" >&6; }
27813
27814# Is the header present?
27815{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27816echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27817cat >conftest.$ac_ext <<_ACEOF
27818/* confdefs.h.  */
27819_ACEOF
27820cat confdefs.h >>conftest.$ac_ext
27821cat >>conftest.$ac_ext <<_ACEOF
27822/* end confdefs.h.  */
27823#include <$ac_header>
27824_ACEOF
27825if { (ac_try="$ac_cpp conftest.$ac_ext"
27826case "(($ac_try" in
27827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27828  *) ac_try_echo=$ac_try;;
27829esac
27830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27831  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27832  ac_status=$?
27833  grep -v '^ *+' conftest.er1 >conftest.err
27834  rm -f conftest.er1
27835  cat conftest.err >&5
27836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837  (exit $ac_status); } >/dev/null && {
27838	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27839	 test ! -s conftest.err
27840       }; then
27841  ac_header_preproc=yes
27842else
27843  echo "$as_me: failed program was:" >&5
27844sed 's/^/| /' conftest.$ac_ext >&5
27845
27846  ac_header_preproc=no
27847fi
27848
27849rm -f conftest.err conftest.$ac_ext
27850{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27851echo "${ECHO_T}$ac_header_preproc" >&6; }
27852
27853# So?  What about this header?
27854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27855  yes:no: )
27856    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27857echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27858    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27859echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27860    ac_header_preproc=yes
27861    ;;
27862  no:yes:* )
27863    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27864echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27865    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27866echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27867    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27868echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27869    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27870echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27871    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27873    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27874echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27875
27876    ;;
27877esac
27878{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27881  echo $ECHO_N "(cached) $ECHO_C" >&6
27882else
27883  eval "$as_ac_Header=\$ac_header_preproc"
27884fi
27885ac_res=`eval echo '${'$as_ac_Header'}'`
27886	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27887echo "${ECHO_T}$ac_res" >&6; }
27888
27889fi
27890if test `eval echo '${'$as_ac_Header'}'` = yes; then
27891  cat >>confdefs.h <<_ACEOF
27892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27893_ACEOF
27894
27895else
27896
27897		QUOTA_LIBS=""
27898		netatalk_cv_quotasupport="no"
27899
27900cat >>confdefs.h <<\_ACEOF
27901#define NO_QUOTA_SUPPORT 1
27902_ACEOF
27903
27904
27905fi
27906
27907done
27908
27909	else
27910		netatalk_cv_quotasupport="no"
27911
27912cat >>confdefs.h <<\_ACEOF
27913#define NO_QUOTA_SUPPORT 1
27914_ACEOF
27915
27916	fi
27917
27918
27919
27920
27921
27922
27923	SLP_LIBS=""
27924	SLP_CFLAGS=""
27925	found_slp=no
27926	srvlocdir=""
27927
27928	# Check whether --enable-srvloc was given.
27929if test "${enable_srvloc+set}" = set; then
27930  enableval=$enable_srvloc; srvloc=$enableval
27931else
27932  srvloc=no
27933
27934fi
27935
27936
27937        [ -n "$atalk_libname" ] || { { echo "$as_me:$LINENO: error: internal error, atalk_libname undefined" >&5
27938echo "$as_me: error: internal error, atalk_libname undefined" >&2;}
27939   { (exit 1); exit 1; }; }
27940
27941	if test "x$srvloc" != "xno"; then
27942
27943		savedcppflags="$CPPFLAGS"
27944		savedldflags="$LDFLAGS"
27945		if test "x$srvloc" = "xyes" ; then
27946			srvlocdir="/usr"
27947		else
27948			srvlocdir="$srvloc"
27949		fi
27950		CPPFLAGS="$CPPFLAGS -I$srvlocdir/include"
27951		LDFLAGS="$LDFLAGS -L$srvlocdir/$atalk_libname"
27952
27953		{ echo "$as_me:$LINENO: checking for slp.h" >&5
27954echo $ECHO_N "checking for slp.h... $ECHO_C" >&6; }
27955		cat >conftest.$ac_ext <<_ACEOF
27956/* confdefs.h.  */
27957_ACEOF
27958cat confdefs.h >>conftest.$ac_ext
27959cat >>conftest.$ac_ext <<_ACEOF
27960/* end confdefs.h.  */
27961#include <slp.h>
27962_ACEOF
27963if { (ac_try="$ac_cpp conftest.$ac_ext"
27964case "(($ac_try" in
27965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27966  *) ac_try_echo=$ac_try;;
27967esac
27968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27969  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27970  ac_status=$?
27971  grep -v '^ *+' conftest.er1 >conftest.err
27972  rm -f conftest.er1
27973  cat conftest.err >&5
27974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975  (exit $ac_status); } >/dev/null && {
27976	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27977	 test ! -s conftest.err
27978       }; then
27979
27980				{ echo "$as_me:$LINENO: result: yes" >&5
27981echo "${ECHO_T}yes" >&6; }
27982				found_slp=yes
27983
27984else
27985  echo "$as_me: failed program was:" >&5
27986sed 's/^/| /' conftest.$ac_ext >&5
27987
27988
27989				{ echo "$as_me:$LINENO: result: no" >&5
27990echo "${ECHO_T}no" >&6; }
27991
27992
27993fi
27994
27995rm -f conftest.err conftest.$ac_ext
27996
27997		if test "x$found_slp" = "xyes"; then
27998			{ echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
27999echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
28000if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
28001  echo $ECHO_N "(cached) $ECHO_C" >&6
28002else
28003  ac_check_lib_save_LIBS=$LIBS
28004LIBS="-lslp  $LIBS"
28005cat >conftest.$ac_ext <<_ACEOF
28006/* confdefs.h.  */
28007_ACEOF
28008cat confdefs.h >>conftest.$ac_ext
28009cat >>conftest.$ac_ext <<_ACEOF
28010/* end confdefs.h.  */
28011
28012/* Override any GCC internal prototype to avoid an error.
28013   Use char because int might match the return type of a GCC
28014   builtin and then its argument prototype would still apply.  */
28015#ifdef __cplusplus
28016extern "C"
28017#endif
28018char SLPOpen ();
28019int
28020main ()
28021{
28022return SLPOpen ();
28023  ;
28024  return 0;
28025}
28026_ACEOF
28027rm -f conftest.$ac_objext conftest$ac_exeext
28028if { (ac_try="$ac_link"
28029case "(($ac_try" in
28030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28031  *) ac_try_echo=$ac_try;;
28032esac
28033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28034  (eval "$ac_link") 2>conftest.er1
28035  ac_status=$?
28036  grep -v '^ *+' conftest.er1 >conftest.err
28037  rm -f conftest.er1
28038  cat conftest.err >&5
28039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28040  (exit $ac_status); } && {
28041	 test -z "$ac_c_werror_flag" ||
28042	 test ! -s conftest.err
28043       } && test -s conftest$ac_exeext &&
28044       $as_test_x conftest$ac_exeext; then
28045  ac_cv_lib_slp_SLPOpen=yes
28046else
28047  echo "$as_me: failed program was:" >&5
28048sed 's/^/| /' conftest.$ac_ext >&5
28049
28050	ac_cv_lib_slp_SLPOpen=no
28051fi
28052
28053rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28054      conftest$ac_exeext conftest.$ac_ext
28055LIBS=$ac_check_lib_save_LIBS
28056fi
28057{ echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
28058echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
28059if test $ac_cv_lib_slp_SLPOpen = yes; then
28060
28061		    	   SLP_LIBS="-L$srvlocdir/$atalk_libname -lslp"
28062		    	   SLP_CFLAGS="-I$srvlocdir/include"
28063
28064else
28065
28066		    	   { echo "$as_me:$LINENO: result: no" >&5
28067echo "${ECHO_T}no" >&6; }
28068			   found_slp=no
28069
28070fi
28071
28072		fi
28073
28074		CPPFLAGS="$savedcppflags"
28075		LDFLAGS="$savedldflags"
28076	fi
28077
28078	netatalk_cv_srvloc=no
28079	{ echo "$as_me:$LINENO: checking whether to enable srvloc (SLP) support" >&5
28080echo $ECHO_N "checking whether to enable srvloc (SLP) support... $ECHO_C" >&6; }
28081	if test "x$found_slp" = "xyes"; then
28082		{ echo "$as_me:$LINENO: result: yes" >&5
28083echo "${ECHO_T}yes" >&6; }
28084
28085cat >>confdefs.h <<\_ACEOF
28086#define USE_SRVLOC 1
28087_ACEOF
28088
28089		netatalk_cv_srvloc=yes
28090	else
28091		{ echo "$as_me:$LINENO: result: no" >&5
28092echo "${ECHO_T}no" >&6; }
28093		if test "x$srvloc" != "xno" -a "x$srvloc" != "xyes"; then
28094			{ { echo "$as_me:$LINENO: error: SLP installation not found" >&5
28095echo "$as_me: error: SLP installation not found" >&2;}
28096   { (exit 1); exit 1; }; }
28097		fi
28098	fi
28099
28100
28101
28102
28103  ac_new_flags=""
28104  for i in $SLP_LIBS; do
28105    case $i in
28106    -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
28107    *) ac_new_flags="$ac_new_flags $i" ;;
28108    esac
28109  done
28110  SLP_LIBS=$ac_new_flags
28111
28112
28113  ac_new_flags=""
28114  for i in $SLP_CFLAGS; do
28115    case $i in
28116    -I/usr/include|-I/usr/include/) ;;
28117    *) ac_new_flags="$ac_new_flags $i" ;;
28118    esac
28119  done
28120  SLP_CFLAGS=$ac_new_flags
28121
28122
28123
28124
28125
28126
28127
28128if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
28129	if test -n "$ac_tool_prefix"; then
28130  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28131set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28134if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28135  echo $ECHO_N "(cached) $ECHO_C" >&6
28136else
28137  case $PKG_CONFIG in
28138  [\\/]* | ?:[\\/]*)
28139  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28140  ;;
28141  *)
28142  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28143for as_dir in $PATH
28144do
28145  IFS=$as_save_IFS
28146  test -z "$as_dir" && as_dir=.
28147  for ac_exec_ext in '' $ac_executable_extensions; do
28148  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28149    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28150    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28151    break 2
28152  fi
28153done
28154done
28155IFS=$as_save_IFS
28156
28157  ;;
28158esac
28159fi
28160PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28161if test -n "$PKG_CONFIG"; then
28162  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28163echo "${ECHO_T}$PKG_CONFIG" >&6; }
28164else
28165  { echo "$as_me:$LINENO: result: no" >&5
28166echo "${ECHO_T}no" >&6; }
28167fi
28168
28169
28170fi
28171if test -z "$ac_cv_path_PKG_CONFIG"; then
28172  ac_pt_PKG_CONFIG=$PKG_CONFIG
28173  # Extract the first word of "pkg-config", so it can be a program name with args.
28174set dummy pkg-config; ac_word=$2
28175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28177if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
28178  echo $ECHO_N "(cached) $ECHO_C" >&6
28179else
28180  case $ac_pt_PKG_CONFIG in
28181  [\\/]* | ?:[\\/]*)
28182  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
28183  ;;
28184  *)
28185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28186for as_dir in $PATH
28187do
28188  IFS=$as_save_IFS
28189  test -z "$as_dir" && as_dir=.
28190  for ac_exec_ext in '' $ac_executable_extensions; do
28191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28192    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28193    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28194    break 2
28195  fi
28196done
28197done
28198IFS=$as_save_IFS
28199
28200  ;;
28201esac
28202fi
28203ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
28204if test -n "$ac_pt_PKG_CONFIG"; then
28205  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
28206echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
28207else
28208  { echo "$as_me:$LINENO: result: no" >&5
28209echo "${ECHO_T}no" >&6; }
28210fi
28211
28212  if test "x$ac_pt_PKG_CONFIG" = x; then
28213    PKG_CONFIG=""
28214  else
28215    case $cross_compiling:$ac_tool_warned in
28216yes:)
28217{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28218whose name does not start with the host triplet.  If you think this
28219configuration is useful to you, please write to autoconf@gnu.org." >&5
28220echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28221whose name does not start with the host triplet.  If you think this
28222configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28223ac_tool_warned=yes ;;
28224esac
28225    PKG_CONFIG=$ac_pt_PKG_CONFIG
28226  fi
28227else
28228  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
28229fi
28230
28231fi
28232if test -n "$PKG_CONFIG"; then
28233	_pkg_min_version=0.9.0
28234	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
28235echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
28236	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
28237		{ echo "$as_me:$LINENO: result: yes" >&5
28238echo "${ECHO_T}yes" >&6; }
28239	else
28240		{ echo "$as_me:$LINENO: result: no" >&5
28241echo "${ECHO_T}no" >&6; }
28242		PKG_CONFIG=""
28243	fi
28244
28245fi
28246
28247	ZEROCONF_LIBS=""
28248	ZEROCONF_CFLAGS=""
28249	found_zeroconf=no
28250	zeroconf_dir=""
28251
28252	# Check whether --enable-zeroconf was given.
28253if test "${enable_zeroconf+set}" = set; then
28254  enableval=$enable_zeroconf; zeroconf=$enableval
28255else
28256  zeroconf=try
28257
28258fi
28259
28260
28261        [ -n "$atalk_libname" ] || { { echo "$as_me:$LINENO: error: internal error, atalk_libname undefined" >&5
28262echo "$as_me: error: internal error, atalk_libname undefined" >&2;}
28263   { (exit 1); exit 1; }; }
28264
28265	if test "x$zeroconf" != "xno"; then
28266		savedcppflags="$CPPFLAGS"
28267		savedldflags="$LDFLAGS"
28268
28269		if test "x$zeroconf" = "xyes" -o "x$zeroconf" = "xtry"; then
28270			zeroconf_dir="/usr"
28271		else
28272			zeroconf_dir="$zeroconf"
28273		fi
28274
28275    # mDNS support using Avahi
28276    if test "${ac_cv_header_avahi_client_client_h+set}" = set; then
28277  { echo "$as_me:$LINENO: checking for avahi-client/client.h" >&5
28278echo $ECHO_N "checking for avahi-client/client.h... $ECHO_C" >&6; }
28279if test "${ac_cv_header_avahi_client_client_h+set}" = set; then
28280  echo $ECHO_N "(cached) $ECHO_C" >&6
28281fi
28282{ echo "$as_me:$LINENO: result: $ac_cv_header_avahi_client_client_h" >&5
28283echo "${ECHO_T}$ac_cv_header_avahi_client_client_h" >&6; }
28284else
28285  # Is the header compilable?
28286{ echo "$as_me:$LINENO: checking avahi-client/client.h usability" >&5
28287echo $ECHO_N "checking avahi-client/client.h usability... $ECHO_C" >&6; }
28288cat >conftest.$ac_ext <<_ACEOF
28289/* confdefs.h.  */
28290_ACEOF
28291cat confdefs.h >>conftest.$ac_ext
28292cat >>conftest.$ac_ext <<_ACEOF
28293/* end confdefs.h.  */
28294$ac_includes_default
28295#include <avahi-client/client.h>
28296_ACEOF
28297rm -f conftest.$ac_objext
28298if { (ac_try="$ac_compile"
28299case "(($ac_try" in
28300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28301  *) ac_try_echo=$ac_try;;
28302esac
28303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28304  (eval "$ac_compile") 2>conftest.er1
28305  ac_status=$?
28306  grep -v '^ *+' conftest.er1 >conftest.err
28307  rm -f conftest.er1
28308  cat conftest.err >&5
28309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310  (exit $ac_status); } && {
28311	 test -z "$ac_c_werror_flag" ||
28312	 test ! -s conftest.err
28313       } && test -s conftest.$ac_objext; then
28314  ac_header_compiler=yes
28315else
28316  echo "$as_me: failed program was:" >&5
28317sed 's/^/| /' conftest.$ac_ext >&5
28318
28319	ac_header_compiler=no
28320fi
28321
28322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28323{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28324echo "${ECHO_T}$ac_header_compiler" >&6; }
28325
28326# Is the header present?
28327{ echo "$as_me:$LINENO: checking avahi-client/client.h presence" >&5
28328echo $ECHO_N "checking avahi-client/client.h presence... $ECHO_C" >&6; }
28329cat >conftest.$ac_ext <<_ACEOF
28330/* confdefs.h.  */
28331_ACEOF
28332cat confdefs.h >>conftest.$ac_ext
28333cat >>conftest.$ac_ext <<_ACEOF
28334/* end confdefs.h.  */
28335#include <avahi-client/client.h>
28336_ACEOF
28337if { (ac_try="$ac_cpp conftest.$ac_ext"
28338case "(($ac_try" in
28339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28340  *) ac_try_echo=$ac_try;;
28341esac
28342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28343  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28344  ac_status=$?
28345  grep -v '^ *+' conftest.er1 >conftest.err
28346  rm -f conftest.er1
28347  cat conftest.err >&5
28348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349  (exit $ac_status); } >/dev/null && {
28350	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28351	 test ! -s conftest.err
28352       }; then
28353  ac_header_preproc=yes
28354else
28355  echo "$as_me: failed program was:" >&5
28356sed 's/^/| /' conftest.$ac_ext >&5
28357
28358  ac_header_preproc=no
28359fi
28360
28361rm -f conftest.err conftest.$ac_ext
28362{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28363echo "${ECHO_T}$ac_header_preproc" >&6; }
28364
28365# So?  What about this header?
28366case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28367  yes:no: )
28368    { echo "$as_me:$LINENO: WARNING: avahi-client/client.h: accepted by the compiler, rejected by the preprocessor!" >&5
28369echo "$as_me: WARNING: avahi-client/client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28370    { echo "$as_me:$LINENO: WARNING: avahi-client/client.h: proceeding with the compiler's result" >&5
28371echo "$as_me: WARNING: avahi-client/client.h: proceeding with the compiler's result" >&2;}
28372    ac_header_preproc=yes
28373    ;;
28374  no:yes:* )
28375    { echo "$as_me:$LINENO: WARNING: avahi-client/client.h: present but cannot be compiled" >&5
28376echo "$as_me: WARNING: avahi-client/client.h: present but cannot be compiled" >&2;}
28377    { echo "$as_me:$LINENO: WARNING: avahi-client/client.h:     check for missing prerequisite headers?" >&5
28378echo "$as_me: WARNING: avahi-client/client.h:     check for missing prerequisite headers?" >&2;}
28379    { echo "$as_me:$LINENO: WARNING: avahi-client/client.h: see the Autoconf documentation" >&5
28380echo "$as_me: WARNING: avahi-client/client.h: see the Autoconf documentation" >&2;}
28381    { echo "$as_me:$LINENO: WARNING: avahi-client/client.h:     section \"Present But Cannot Be Compiled\"" >&5
28382echo "$as_me: WARNING: avahi-client/client.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28383    { echo "$as_me:$LINENO: WARNING: avahi-client/client.h: proceeding with the preprocessor's result" >&5
28384echo "$as_me: WARNING: avahi-client/client.h: proceeding with the preprocessor's result" >&2;}
28385    { echo "$as_me:$LINENO: WARNING: avahi-client/client.h: in the future, the compiler will take precedence" >&5
28386echo "$as_me: WARNING: avahi-client/client.h: in the future, the compiler will take precedence" >&2;}
28387
28388    ;;
28389esac
28390{ echo "$as_me:$LINENO: checking for avahi-client/client.h" >&5
28391echo $ECHO_N "checking for avahi-client/client.h... $ECHO_C" >&6; }
28392if test "${ac_cv_header_avahi_client_client_h+set}" = set; then
28393  echo $ECHO_N "(cached) $ECHO_C" >&6
28394else
28395  ac_cv_header_avahi_client_client_h=$ac_header_preproc
28396fi
28397{ echo "$as_me:$LINENO: result: $ac_cv_header_avahi_client_client_h" >&5
28398echo "${ECHO_T}$ac_cv_header_avahi_client_client_h" >&6; }
28399
28400fi
28401if test $ac_cv_header_avahi_client_client_h = yes; then
28402  { echo "$as_me:$LINENO: checking for avahi_client_new in -lavahi-client" >&5
28403echo $ECHO_N "checking for avahi_client_new in -lavahi-client... $ECHO_C" >&6; }
28404if test "${ac_cv_lib_avahi_client_avahi_client_new+set}" = set; then
28405  echo $ECHO_N "(cached) $ECHO_C" >&6
28406else
28407  ac_check_lib_save_LIBS=$LIBS
28408LIBS="-lavahi-client  $LIBS"
28409cat >conftest.$ac_ext <<_ACEOF
28410/* confdefs.h.  */
28411_ACEOF
28412cat confdefs.h >>conftest.$ac_ext
28413cat >>conftest.$ac_ext <<_ACEOF
28414/* end confdefs.h.  */
28415
28416/* Override any GCC internal prototype to avoid an error.
28417   Use char because int might match the return type of a GCC
28418   builtin and then its argument prototype would still apply.  */
28419#ifdef __cplusplus
28420extern "C"
28421#endif
28422char avahi_client_new ();
28423int
28424main ()
28425{
28426return avahi_client_new ();
28427  ;
28428  return 0;
28429}
28430_ACEOF
28431rm -f conftest.$ac_objext conftest$ac_exeext
28432if { (ac_try="$ac_link"
28433case "(($ac_try" in
28434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28435  *) ac_try_echo=$ac_try;;
28436esac
28437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28438  (eval "$ac_link") 2>conftest.er1
28439  ac_status=$?
28440  grep -v '^ *+' conftest.er1 >conftest.err
28441  rm -f conftest.er1
28442  cat conftest.err >&5
28443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444  (exit $ac_status); } && {
28445	 test -z "$ac_c_werror_flag" ||
28446	 test ! -s conftest.err
28447       } && test -s conftest$ac_exeext &&
28448       $as_test_x conftest$ac_exeext; then
28449  ac_cv_lib_avahi_client_avahi_client_new=yes
28450else
28451  echo "$as_me: failed program was:" >&5
28452sed 's/^/| /' conftest.$ac_ext >&5
28453
28454	ac_cv_lib_avahi_client_avahi_client_new=no
28455fi
28456
28457rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28458      conftest$ac_exeext conftest.$ac_ext
28459LIBS=$ac_check_lib_save_LIBS
28460fi
28461{ echo "$as_me:$LINENO: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
28462echo "${ECHO_T}$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
28463if test $ac_cv_lib_avahi_client_avahi_client_new = yes; then
28464
28465cat >>confdefs.h <<\_ACEOF
28466#define USE_ZEROCONF 1
28467_ACEOF
28468
28469fi
28470
28471
28472fi
28473
28474
28475
28476    case "$ac_cv_lib_avahi_client_avahi_client_new" in
28477      yes)
28478
28479pkg_failed=no
28480{ echo "$as_me:$LINENO: checking for AVAHI" >&5
28481echo $ECHO_N "checking for AVAHI... $ECHO_C" >&6; }
28482
28483if test -n "$PKG_CONFIG"; then
28484    if test -n "$AVAHI_CFLAGS"; then
28485        pkg_cv_AVAHI_CFLAGS="$AVAHI_CFLAGS"
28486    else
28487        if test -n "$PKG_CONFIG" && \
28488    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6 \"") >&5
28489  ($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6 ") 2>&5
28490  ac_status=$?
28491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492  (exit $ac_status); }; then
28493  pkg_cv_AVAHI_CFLAGS=`$PKG_CONFIG --cflags " avahi-client >= 0.6 " 2>/dev/null`
28494else
28495  pkg_failed=yes
28496fi
28497    fi
28498else
28499	pkg_failed=untried
28500fi
28501if test -n "$PKG_CONFIG"; then
28502    if test -n "$AVAHI_LIBS"; then
28503        pkg_cv_AVAHI_LIBS="$AVAHI_LIBS"
28504    else
28505        if test -n "$PKG_CONFIG" && \
28506    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6 \"") >&5
28507  ($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6 ") 2>&5
28508  ac_status=$?
28509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510  (exit $ac_status); }; then
28511  pkg_cv_AVAHI_LIBS=`$PKG_CONFIG --libs " avahi-client >= 0.6 " 2>/dev/null`
28512else
28513  pkg_failed=yes
28514fi
28515    fi
28516else
28517	pkg_failed=untried
28518fi
28519
28520
28521
28522if test $pkg_failed = yes; then
28523
28524if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28525        _pkg_short_errors_supported=yes
28526else
28527        _pkg_short_errors_supported=no
28528fi
28529        if test $_pkg_short_errors_supported = yes; then
28530	        AVAHI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " avahi-client >= 0.6 "`
28531        else
28532	        AVAHI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " avahi-client >= 0.6 "`
28533        fi
28534	# Put the nasty error message in config.log where it belongs
28535	echo "$AVAHI_PKG_ERRORS" >&5
28536
28537	{ { echo "$as_me:$LINENO: error: Package requirements ( avahi-client >= 0.6 ) were not met:
28538
28539$AVAHI_PKG_ERRORS
28540
28541Consider adjusting the PKG_CONFIG_PATH environment variable if you
28542installed software in a non-standard prefix.
28543
28544Alternatively, you may set the environment variables AVAHI_CFLAGS
28545and AVAHI_LIBS to avoid the need to call pkg-config.
28546See the pkg-config man page for more details.
28547" >&5
28548echo "$as_me: error: Package requirements ( avahi-client >= 0.6 ) were not met:
28549
28550$AVAHI_PKG_ERRORS
28551
28552Consider adjusting the PKG_CONFIG_PATH environment variable if you
28553installed software in a non-standard prefix.
28554
28555Alternatively, you may set the environment variables AVAHI_CFLAGS
28556and AVAHI_LIBS to avoid the need to call pkg-config.
28557See the pkg-config man page for more details.
28558" >&2;}
28559   { (exit 1); exit 1; }; }
28560elif test $pkg_failed = untried; then
28561	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
28562is in your PATH or set the PKG_CONFIG environment variable to the full
28563path to pkg-config.
28564
28565Alternatively, you may set the environment variables AVAHI_CFLAGS
28566and AVAHI_LIBS to avoid the need to call pkg-config.
28567See the pkg-config man page for more details.
28568
28569To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28570See \`config.log' for more details." >&5
28571echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
28572is in your PATH or set the PKG_CONFIG environment variable to the full
28573path to pkg-config.
28574
28575Alternatively, you may set the environment variables AVAHI_CFLAGS
28576and AVAHI_LIBS to avoid the need to call pkg-config.
28577See the pkg-config man page for more details.
28578
28579To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28580See \`config.log' for more details." >&2;}
28581   { (exit 1); exit 1; }; }
28582else
28583	AVAHI_CFLAGS=$pkg_cv_AVAHI_CFLAGS
28584	AVAHI_LIBS=$pkg_cv_AVAHI_LIBS
28585        { echo "$as_me:$LINENO: result: yes" >&5
28586echo "${ECHO_T}yes" >&6; }
28587	:
28588fi
28589
28590pkg_failed=no
28591{ echo "$as_me:$LINENO: checking for AVAHI_TPOLL" >&5
28592echo $ECHO_N "checking for AVAHI_TPOLL... $ECHO_C" >&6; }
28593
28594if test -n "$PKG_CONFIG"; then
28595    if test -n "$AVAHI_TPOLL_CFLAGS"; then
28596        pkg_cv_AVAHI_TPOLL_CFLAGS="$AVAHI_TPOLL_CFLAGS"
28597    else
28598        if test -n "$PKG_CONFIG" && \
28599    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6.4 \"") >&5
28600  ($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6.4 ") 2>&5
28601  ac_status=$?
28602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603  (exit $ac_status); }; then
28604  pkg_cv_AVAHI_TPOLL_CFLAGS=`$PKG_CONFIG --cflags " avahi-client >= 0.6.4 " 2>/dev/null`
28605else
28606  pkg_failed=yes
28607fi
28608    fi
28609else
28610	pkg_failed=untried
28611fi
28612if test -n "$PKG_CONFIG"; then
28613    if test -n "$AVAHI_TPOLL_LIBS"; then
28614        pkg_cv_AVAHI_TPOLL_LIBS="$AVAHI_TPOLL_LIBS"
28615    else
28616        if test -n "$PKG_CONFIG" && \
28617    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" avahi-client >= 0.6.4 \"") >&5
28618  ($PKG_CONFIG --exists --print-errors " avahi-client >= 0.6.4 ") 2>&5
28619  ac_status=$?
28620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621  (exit $ac_status); }; then
28622  pkg_cv_AVAHI_TPOLL_LIBS=`$PKG_CONFIG --libs " avahi-client >= 0.6.4 " 2>/dev/null`
28623else
28624  pkg_failed=yes
28625fi
28626    fi
28627else
28628	pkg_failed=untried
28629fi
28630
28631
28632
28633if test $pkg_failed = yes; then
28634
28635if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28636        _pkg_short_errors_supported=yes
28637else
28638        _pkg_short_errors_supported=no
28639fi
28640        if test $_pkg_short_errors_supported = yes; then
28641	        AVAHI_TPOLL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " avahi-client >= 0.6.4 "`
28642        else
28643	        AVAHI_TPOLL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " avahi-client >= 0.6.4 "`
28644        fi
28645	# Put the nasty error message in config.log where it belongs
28646	echo "$AVAHI_TPOLL_PKG_ERRORS" >&5
28647
28648	{ echo "$as_me:$LINENO: result: no" >&5
28649echo "${ECHO_T}no" >&6; }
28650                { echo "$as_me:$LINENO: WARNING: This Avahi implementation is not supporting threaded poll objects. Maybe this is not what you want." >&5
28651echo "$as_me: WARNING: This Avahi implementation is not supporting threaded poll objects. Maybe this is not what you want." >&2;}
28652elif test $pkg_failed = untried; then
28653	{ echo "$as_me:$LINENO: WARNING: This Avahi implementation is not supporting threaded poll objects. Maybe this is not what you want." >&5
28654echo "$as_me: WARNING: This Avahi implementation is not supporting threaded poll objects. Maybe this is not what you want." >&2;}
28655else
28656	AVAHI_TPOLL_CFLAGS=$pkg_cv_AVAHI_TPOLL_CFLAGS
28657	AVAHI_TPOLL_LIBS=$pkg_cv_AVAHI_TPOLL_LIBS
28658        { echo "$as_me:$LINENO: result: yes" >&5
28659echo "${ECHO_T}yes" >&6; }
28660
28661cat >>confdefs.h <<\_ACEOF
28662#define HAVE_AVAHI_THREADED_POLL 1
28663_ACEOF
28664
28665fi
28666      ZEROCONF_LIBS="$AVAHI_LIBS"
28667      ZEROCONF_CFLAGS="$AVAHI_CFLAGS"
28668
28669cat >>confdefs.h <<\_ACEOF
28670#define HAVE_AVAHI 1
28671_ACEOF
28672
28673      found_zeroconf=yes
28674      ;;
28675    esac
28676
28677		CPPFLAGS="$savedcppflags"
28678		LDFLAGS="$savedldflags"
28679	fi
28680
28681	netatalk_cv_zeroconf=no
28682	{ echo "$as_me:$LINENO: checking whether to enable Zerconf support" >&5
28683echo $ECHO_N "checking whether to enable Zerconf support... $ECHO_C" >&6; }
28684	if test "x$found_zeroconf" = "xyes"; then
28685		{ echo "$as_me:$LINENO: result: yes" >&5
28686echo "${ECHO_T}yes" >&6; }
28687
28688cat >>confdefs.h <<\_ACEOF
28689#define USE_ZEROCONF 1
28690_ACEOF
28691
28692		netatalk_cv_zeroconf=yes
28693	else
28694		{ echo "$as_me:$LINENO: result: no" >&5
28695echo "${ECHO_T}no" >&6; }
28696		if test "x$zeroconf" != "xno" -a "x$zeroconf" != "xtry"; then
28697			{ { echo "$as_me:$LINENO: error: Zeroconf installation not found" >&5
28698echo "$as_me: error: Zeroconf installation not found" >&2;}
28699   { (exit 1); exit 1; }; }
28700		fi
28701	fi
28702
28703
28704  ac_new_flags=""
28705  for i in $ZEROCONF_LIBS; do
28706    case $i in
28707    -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
28708    *) ac_new_flags="$ac_new_flags $i" ;;
28709    esac
28710  done
28711  ZEROCONF_LIBS=$ac_new_flags
28712
28713
28714  ac_new_flags=""
28715  for i in $ZEROCONF_CFLAGS; do
28716    case $i in
28717    -I/usr/include|-I/usr/include/) ;;
28718    *) ac_new_flags="$ac_new_flags $i" ;;
28719    esac
28720  done
28721  ZEROCONF_CFLAGS=$ac_new_flags
28722
28723
28724
28725
28726
28727netatalk_cv_use_pam=no
28728
28729
28730# Check whether --with-pam was given.
28731if test "${with_pam+set}" = set; then
28732  withval=$with_pam;
28733			require_pam="yes"
28734			if test "x$withval" = "xno"; then
28735				PAMDIR="NONE"
28736				require_pam="never"
28737			elif test "x$withval" = "xyes"; then
28738				PAMDIR="NONE"
28739			else
28740				PAMDIR="$withval"
28741			fi
28742
28743else
28744  PAMDIR="NONE";require_pam="no"
28745
28746fi
28747
28748
28749	{ echo "$as_me:$LINENO: checking for PAM installation directory" >&5
28750echo $ECHO_N "checking for PAM installation directory... $ECHO_C" >&6; }
28751	if test "$host_os" != "solaris"; then
28752		if test "x$PAMDIR" = "xNONE" -a "x$require_pam" != "xnever"; then
28753		  		  pam_paths="/ /usr/ /usr/local/"
28754		  for path in $pam_paths; do
28755			if test -d "${path}etc/pam.d"; then
28756				PAMDIR="$path"
28757				break
28758			fi
28759		  done
28760		fi
28761
28762		if test "x$PAMDIR" != "xNONE"; then
28763			{ echo "$as_me:$LINENO: result: yes (path: ${PAMDIR}etc/pam.d)" >&5
28764echo "${ECHO_T}yes (path: ${PAMDIR}etc/pam.d)" >&6; }
28765		else
28766			{ echo "$as_me:$LINENO: result: no" >&5
28767echo "${ECHO_T}no" >&6; }
28768		fi
28769	else
28770		{ echo "$as_me:$LINENO: result: /etc/pam.conf (solaris)" >&5
28771echo "${ECHO_T}/etc/pam.conf (solaris)" >&6; }
28772	fi
28773
28774	pam_found="no"
28775	if test "x$require_pam" != "xnever"; then
28776
28777		savedCFLAGS="$CFLAGS"
28778		savedLDFLAGS="$LDFLAGS"
28779		savedLIBS="$LIBS"
28780
28781		if test "x$PAMDIR" != "xNONE" -a "x$PAMDIR" != "x/"; then
28782			PAM_CFLAGS="-I${PAMDIR}include"
28783			PAM_LDFLAGS="-L${PAMDIR}lib"
28784			LDFLAGS="$LDFLAGS $PAM_LDFLAGS"
28785			CFLAGS="$CFLAGS $PAM_CFLAGS"
28786		fi
28787
28788
28789
28790for ac_header in security/pam_appl.h pam/pam_appl.h
28791do
28792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28794  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28797  echo $ECHO_N "(cached) $ECHO_C" >&6
28798fi
28799ac_res=`eval echo '${'$as_ac_Header'}'`
28800	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28801echo "${ECHO_T}$ac_res" >&6; }
28802else
28803  # Is the header compilable?
28804{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28806cat >conftest.$ac_ext <<_ACEOF
28807/* confdefs.h.  */
28808_ACEOF
28809cat confdefs.h >>conftest.$ac_ext
28810cat >>conftest.$ac_ext <<_ACEOF
28811/* end confdefs.h.  */
28812$ac_includes_default
28813#include <$ac_header>
28814_ACEOF
28815rm -f conftest.$ac_objext
28816if { (ac_try="$ac_compile"
28817case "(($ac_try" in
28818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28819  *) ac_try_echo=$ac_try;;
28820esac
28821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28822  (eval "$ac_compile") 2>conftest.er1
28823  ac_status=$?
28824  grep -v '^ *+' conftest.er1 >conftest.err
28825  rm -f conftest.er1
28826  cat conftest.err >&5
28827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828  (exit $ac_status); } && {
28829	 test -z "$ac_c_werror_flag" ||
28830	 test ! -s conftest.err
28831       } && test -s conftest.$ac_objext; then
28832  ac_header_compiler=yes
28833else
28834  echo "$as_me: failed program was:" >&5
28835sed 's/^/| /' conftest.$ac_ext >&5
28836
28837	ac_header_compiler=no
28838fi
28839
28840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28841{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28842echo "${ECHO_T}$ac_header_compiler" >&6; }
28843
28844# Is the header present?
28845{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28847cat >conftest.$ac_ext <<_ACEOF
28848/* confdefs.h.  */
28849_ACEOF
28850cat confdefs.h >>conftest.$ac_ext
28851cat >>conftest.$ac_ext <<_ACEOF
28852/* end confdefs.h.  */
28853#include <$ac_header>
28854_ACEOF
28855if { (ac_try="$ac_cpp conftest.$ac_ext"
28856case "(($ac_try" in
28857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28858  *) ac_try_echo=$ac_try;;
28859esac
28860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28861  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28862  ac_status=$?
28863  grep -v '^ *+' conftest.er1 >conftest.err
28864  rm -f conftest.er1
28865  cat conftest.err >&5
28866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867  (exit $ac_status); } >/dev/null && {
28868	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28869	 test ! -s conftest.err
28870       }; then
28871  ac_header_preproc=yes
28872else
28873  echo "$as_me: failed program was:" >&5
28874sed 's/^/| /' conftest.$ac_ext >&5
28875
28876  ac_header_preproc=no
28877fi
28878
28879rm -f conftest.err conftest.$ac_ext
28880{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28881echo "${ECHO_T}$ac_header_preproc" >&6; }
28882
28883# So?  What about this header?
28884case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28885  yes:no: )
28886    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28887echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28888    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28889echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28890    ac_header_preproc=yes
28891    ;;
28892  no:yes:* )
28893    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28894echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28895    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28896echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28897    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28898echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28899    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28900echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28901    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28902echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28903    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28904echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28905
28906    ;;
28907esac
28908{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28911  echo $ECHO_N "(cached) $ECHO_C" >&6
28912else
28913  eval "$as_ac_Header=\$ac_header_preproc"
28914fi
28915ac_res=`eval echo '${'$as_ac_Header'}'`
28916	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28917echo "${ECHO_T}$ac_res" >&6; }
28918
28919fi
28920if test `eval echo '${'$as_ac_Header'}'` = yes; then
28921  cat >>confdefs.h <<_ACEOF
28922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28923_ACEOF
28924
28925fi
28926
28927done
28928
28929
28930		if test x"$ac_cv_header_security_pam_appl_h" = x"no" -a x"$ac_cv_header_pam_pam_appl_h" = x"no"; then
28931			pam_found=no
28932		else
28933			{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
28934echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
28935if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
28936  echo $ECHO_N "(cached) $ECHO_C" >&6
28937else
28938  ac_check_lib_save_LIBS=$LIBS
28939LIBS="-lpam  $LIBS"
28940cat >conftest.$ac_ext <<_ACEOF
28941/* confdefs.h.  */
28942_ACEOF
28943cat confdefs.h >>conftest.$ac_ext
28944cat >>conftest.$ac_ext <<_ACEOF
28945/* end confdefs.h.  */
28946
28947/* Override any GCC internal prototype to avoid an error.
28948   Use char because int might match the return type of a GCC
28949   builtin and then its argument prototype would still apply.  */
28950#ifdef __cplusplus
28951extern "C"
28952#endif
28953char pam_set_item ();
28954int
28955main ()
28956{
28957return pam_set_item ();
28958  ;
28959  return 0;
28960}
28961_ACEOF
28962rm -f conftest.$ac_objext conftest$ac_exeext
28963if { (ac_try="$ac_link"
28964case "(($ac_try" in
28965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28966  *) ac_try_echo=$ac_try;;
28967esac
28968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28969  (eval "$ac_link") 2>conftest.er1
28970  ac_status=$?
28971  grep -v '^ *+' conftest.er1 >conftest.err
28972  rm -f conftest.er1
28973  cat conftest.err >&5
28974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975  (exit $ac_status); } && {
28976	 test -z "$ac_c_werror_flag" ||
28977	 test ! -s conftest.err
28978       } && test -s conftest$ac_exeext &&
28979       $as_test_x conftest$ac_exeext; then
28980  ac_cv_lib_pam_pam_set_item=yes
28981else
28982  echo "$as_me: failed program was:" >&5
28983sed 's/^/| /' conftest.$ac_ext >&5
28984
28985	ac_cv_lib_pam_pam_set_item=no
28986fi
28987
28988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28989      conftest$ac_exeext conftest.$ac_ext
28990LIBS=$ac_check_lib_save_LIBS
28991fi
28992{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
28993echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
28994if test $ac_cv_lib_pam_pam_set_item = yes; then
28995
28996				PAM_LIBS="$PAM_LDFLAGS -lpam"
28997				pam_found="yes"
28998
28999fi
29000
29001		fi
29002		CFLAGS="$savedCFLAGS"
29003		LDFLAGS="$savedLDFLAGS"
29004		LIBS="$savedLIBS"
29005	fi
29006
29007	netatalk_cv_install_pam=yes
29008	if test x"$pam_found" = "xyes" -a "x$PAMDIR" = "xNONE"; then
29009		{ echo "$as_me:$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
29010echo "$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;}
29011		netatalk_cv_install_pam=no
29012    else
29013                { echo "$as_me:$LINENO: checking for includable common PAM config" >&5
29014echo $ECHO_N "checking for includable common PAM config... $ECHO_C" >&6; }
29015        pampath="${PAMDIR}etc/pam.d"
29016                if test -f "$pampath/common-auth" ; then
29017           PAM_DIRECTIVE=include
29018           PAM_AUTH=common-auth
29019           PAM_ACCOUNT=common-account
29020           PAM_PASSWORD=common-password
29021           PAM_SESSION=common-session
29022                elif test -f "$pampath/system-auth" ; then
29023           PAM_DIRECTIVE=include
29024           PAM_AUTH=system-auth
29025           PAM_ACCOUNT=system-auth
29026           PAM_PASSWORD=system-auth
29027           PAM_SESSION=system-auth
29028                elif test -f "$pampath/system" ; then
29029           PAM_DIRECTIVE=include
29030           PAM_AUTH=system
29031           PAM_ACCOUNT=system
29032           PAM_PASSWORD=system
29033           PAM_SESSION=system
29034                else
29035           PAM_DIRECTIVE=required
29036           PAM_AUTH=pam_unix.so
29037           PAM_ACCOUNT=pam_unix.so
29038           PAM_PASSWORD="pam_unix.so use_authtok"
29039           PAM_SESSION=pam_unix.so
29040        fi
29041
29042        if test "x$PAM_DIRECTIVE" != "xrequired" ; then
29043            { echo "$as_me:$LINENO: result: yes ($PAM_DIRECTIVE $PAM_AUTH)" >&5
29044echo "${ECHO_T}yes ($PAM_DIRECTIVE $PAM_AUTH)" >&6; }
29045        else
29046            { echo "$as_me:$LINENO: result: no (using defaut pam_unix.so)" >&5
29047echo "${ECHO_T}no (using defaut pam_unix.so)" >&6; }
29048        fi
29049	fi
29050
29051	{ echo "$as_me:$LINENO: checking whether to enable PAM support" >&5
29052echo $ECHO_N "checking whether to enable PAM support... $ECHO_C" >&6; }
29053	if test "x$pam_found" = "xno"; then
29054		netatalk_cv_install_pam=no
29055		if test "x$require_pam" = "xyes"; then
29056			{ { echo "$as_me:$LINENO: error: PAM support missing" >&5
29057echo "$as_me: error: PAM support missing" >&2;}
29058   { (exit 1); exit 1; }; }
29059		else
29060			{ echo "$as_me:$LINENO: result: no" >&5
29061echo "${ECHO_T}no" >&6; }
29062		fi
29063		:
29064	else
29065		{ echo "$as_me:$LINENO: result: yes" >&5
29066echo "${ECHO_T}yes" >&6; }
29067
29068	use_pam_so=yes
29069	compile_pam=yes
29070	netatalk_cv_use_pam=yes
29071
29072cat >>confdefs.h <<\_ACEOF
29073#define USE_PAM 1
29074_ACEOF
29075
29076
29077	fi
29078
29079
29080  ac_new_flags=""
29081  for i in $PAM_LIBS; do
29082    case $i in
29083    -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
29084    *) ac_new_flags="$ac_new_flags $i" ;;
29085    esac
29086  done
29087  PAM_LIBS=$ac_new_flags
29088
29089
29090  ac_new_flags=""
29091  for i in $PAM_CFLAGS; do
29092    case $i in
29093    -I/usr/include|-I/usr/include/) ;;
29094    *) ac_new_flags="$ac_new_flags $i" ;;
29095    esac
29096  done
29097  PAM_CFLAGS=$ac_new_flags
29098
29099
29100
29101
29102
29103
29104
29105
29106
29107
29108
29109netatalk_cv_use_shadowpw=no
29110
29111# Check whether --with-shadow was given.
29112if test "${with_shadow+set}" = set; then
29113  withval=$with_shadow; netatalk_cv_use_shadowpw="$withval"
29114else
29115  netatalk_cv_use_shadowpw=auto
29116
29117fi
29118
29119
29120if test "x$netatalk_cv_use_shadowpw" != "xno"; then
29121    if test "${ac_cv_header_shadow_h+set}" = set; then
29122  { echo "$as_me:$LINENO: checking for shadow.h" >&5
29123echo $ECHO_N "checking for shadow.h... $ECHO_C" >&6; }
29124if test "${ac_cv_header_shadow_h+set}" = set; then
29125  echo $ECHO_N "(cached) $ECHO_C" >&6
29126fi
29127{ echo "$as_me:$LINENO: result: $ac_cv_header_shadow_h" >&5
29128echo "${ECHO_T}$ac_cv_header_shadow_h" >&6; }
29129else
29130  # Is the header compilable?
29131{ echo "$as_me:$LINENO: checking shadow.h usability" >&5
29132echo $ECHO_N "checking shadow.h usability... $ECHO_C" >&6; }
29133cat >conftest.$ac_ext <<_ACEOF
29134/* confdefs.h.  */
29135_ACEOF
29136cat confdefs.h >>conftest.$ac_ext
29137cat >>conftest.$ac_ext <<_ACEOF
29138/* end confdefs.h.  */
29139$ac_includes_default
29140#include <shadow.h>
29141_ACEOF
29142rm -f conftest.$ac_objext
29143if { (ac_try="$ac_compile"
29144case "(($ac_try" in
29145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29146  *) ac_try_echo=$ac_try;;
29147esac
29148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29149  (eval "$ac_compile") 2>conftest.er1
29150  ac_status=$?
29151  grep -v '^ *+' conftest.er1 >conftest.err
29152  rm -f conftest.er1
29153  cat conftest.err >&5
29154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155  (exit $ac_status); } && {
29156	 test -z "$ac_c_werror_flag" ||
29157	 test ! -s conftest.err
29158       } && test -s conftest.$ac_objext; then
29159  ac_header_compiler=yes
29160else
29161  echo "$as_me: failed program was:" >&5
29162sed 's/^/| /' conftest.$ac_ext >&5
29163
29164	ac_header_compiler=no
29165fi
29166
29167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29168{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29169echo "${ECHO_T}$ac_header_compiler" >&6; }
29170
29171# Is the header present?
29172{ echo "$as_me:$LINENO: checking shadow.h presence" >&5
29173echo $ECHO_N "checking shadow.h presence... $ECHO_C" >&6; }
29174cat >conftest.$ac_ext <<_ACEOF
29175/* confdefs.h.  */
29176_ACEOF
29177cat confdefs.h >>conftest.$ac_ext
29178cat >>conftest.$ac_ext <<_ACEOF
29179/* end confdefs.h.  */
29180#include <shadow.h>
29181_ACEOF
29182if { (ac_try="$ac_cpp conftest.$ac_ext"
29183case "(($ac_try" in
29184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29185  *) ac_try_echo=$ac_try;;
29186esac
29187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29188  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29189  ac_status=$?
29190  grep -v '^ *+' conftest.er1 >conftest.err
29191  rm -f conftest.er1
29192  cat conftest.err >&5
29193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194  (exit $ac_status); } >/dev/null && {
29195	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29196	 test ! -s conftest.err
29197       }; then
29198  ac_header_preproc=yes
29199else
29200  echo "$as_me: failed program was:" >&5
29201sed 's/^/| /' conftest.$ac_ext >&5
29202
29203  ac_header_preproc=no
29204fi
29205
29206rm -f conftest.err conftest.$ac_ext
29207{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29208echo "${ECHO_T}$ac_header_preproc" >&6; }
29209
29210# So?  What about this header?
29211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29212  yes:no: )
29213    { echo "$as_me:$LINENO: WARNING: shadow.h: accepted by the compiler, rejected by the preprocessor!" >&5
29214echo "$as_me: WARNING: shadow.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29215    { echo "$as_me:$LINENO: WARNING: shadow.h: proceeding with the compiler's result" >&5
29216echo "$as_me: WARNING: shadow.h: proceeding with the compiler's result" >&2;}
29217    ac_header_preproc=yes
29218    ;;
29219  no:yes:* )
29220    { echo "$as_me:$LINENO: WARNING: shadow.h: present but cannot be compiled" >&5
29221echo "$as_me: WARNING: shadow.h: present but cannot be compiled" >&2;}
29222    { echo "$as_me:$LINENO: WARNING: shadow.h:     check for missing prerequisite headers?" >&5
29223echo "$as_me: WARNING: shadow.h:     check for missing prerequisite headers?" >&2;}
29224    { echo "$as_me:$LINENO: WARNING: shadow.h: see the Autoconf documentation" >&5
29225echo "$as_me: WARNING: shadow.h: see the Autoconf documentation" >&2;}
29226    { echo "$as_me:$LINENO: WARNING: shadow.h:     section \"Present But Cannot Be Compiled\"" >&5
29227echo "$as_me: WARNING: shadow.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29228    { echo "$as_me:$LINENO: WARNING: shadow.h: proceeding with the preprocessor's result" >&5
29229echo "$as_me: WARNING: shadow.h: proceeding with the preprocessor's result" >&2;}
29230    { echo "$as_me:$LINENO: WARNING: shadow.h: in the future, the compiler will take precedence" >&5
29231echo "$as_me: WARNING: shadow.h: in the future, the compiler will take precedence" >&2;}
29232
29233    ;;
29234esac
29235{ echo "$as_me:$LINENO: checking for shadow.h" >&5
29236echo $ECHO_N "checking for shadow.h... $ECHO_C" >&6; }
29237if test "${ac_cv_header_shadow_h+set}" = set; then
29238  echo $ECHO_N "(cached) $ECHO_C" >&6
29239else
29240  ac_cv_header_shadow_h=$ac_header_preproc
29241fi
29242{ echo "$as_me:$LINENO: result: $ac_cv_header_shadow_h" >&5
29243echo "${ECHO_T}$ac_cv_header_shadow_h" >&6; }
29244
29245fi
29246
29247
29248    if test x"$ac_cv_header_shadow_h" = x"yes"; then
29249	netatalk_cv_use_shadowpw=yes
29250
29251cat >>confdefs.h <<\_ACEOF
29252#define SHADOWPW 1
29253_ACEOF
29254
29255    else
29256      if test "x$shadowpw" = "xyes"; then
29257        { { echo "$as_me:$LINENO: error: shadow support not available" >&5
29258echo "$as_me: error: shadow support not available" >&2;}
29259   { (exit 1); exit 1; }; }
29260      else
29261       	netatalk_cv_use_shadowpw=no
29262      fi
29263    fi
29264fi
29265
29266{ echo "$as_me:$LINENO: checking whether shadow support should be enabled" >&5
29267echo $ECHO_N "checking whether shadow support should be enabled... $ECHO_C" >&6; }
29268if test "x$netatalk_cv_use_shadowpw" = "xyes"; then
29269	{ echo "$as_me:$LINENO: result: yes" >&5
29270echo "${ECHO_T}yes" >&6; }
29271else
29272	{ echo "$as_me:$LINENO: result: no" >&5
29273echo "${ECHO_T}no" >&6; }
29274fi
29275
29276
29277
29278netatalk_cv_use_shellcheck=yes
29279{ echo "$as_me:$LINENO: checking whether checking for a valid shell should be enabled" >&5
29280echo $ECHO_N "checking whether checking for a valid shell should be enabled... $ECHO_C" >&6; }
29281# Check whether --enable-shell-check was given.
29282if test "${enable_shell_check+set}" = set; then
29283  enableval=$enable_shell_check;
29284	if test "$enableval" = "no"; then
29285
29286cat >>confdefs.h <<\_ACEOF
29287#define DISABLE_SHELLCHECK 1
29288_ACEOF
29289
29290		{ echo "$as_me:$LINENO: result: no" >&5
29291echo "${ECHO_T}no" >&6; }
29292		netatalk_cv_use_shellcheck=no
29293	else
29294		{ echo "$as_me:$LINENO: result: yes" >&5
29295echo "${ECHO_T}yes" >&6; }
29296	fi
29297
29298else
29299
29300		{ echo "$as_me:$LINENO: result: yes" >&5
29301echo "${ECHO_T}yes" >&6; }
29302
29303
29304fi
29305
29306
29307
29308	check=maybe
29309	# Check whether --enable-tcp-wrappers was given.
29310if test "${enable_tcp_wrappers+set}" = set; then
29311  enableval=$enable_tcp_wrappers;
29312			if test "x$enableval" = "xno"; then
29313				wrapcheck=no
29314			else
29315				wrapcheck=yes
29316			fi
29317
29318
29319fi
29320
29321
29322	enable=no
29323	netatalk_cv_tcpwrap=no
29324	if test "x$wrapcheck" != "xno"; then
29325		saved_LIBS=$LIBS
29326		W_LIBS="-lwrap"
29327		LIBS="$LIBS $W_LIBS"
29328		cat >conftest.$ac_ext <<_ACEOF
29329/* confdefs.h.  */
29330_ACEOF
29331cat confdefs.h >>conftest.$ac_ext
29332cat >>conftest.$ac_ext <<_ACEOF
29333/* end confdefs.h.  */
29334 int allow_severity = 0; int deny_severity = 0;
29335
29336int
29337main ()
29338{
29339hosts_access();
29340
29341  ;
29342  return 0;
29343}
29344_ACEOF
29345rm -f conftest.$ac_objext conftest$ac_exeext
29346if { (ac_try="$ac_link"
29347case "(($ac_try" in
29348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29349  *) ac_try_echo=$ac_try;;
29350esac
29351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29352  (eval "$ac_link") 2>conftest.er1
29353  ac_status=$?
29354  grep -v '^ *+' conftest.er1 >conftest.err
29355  rm -f conftest.er1
29356  cat conftest.err >&5
29357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358  (exit $ac_status); } && {
29359	 test -z "$ac_c_werror_flag" ||
29360	 test ! -s conftest.err
29361       } && test -s conftest$ac_exeext &&
29362       $as_test_x conftest$ac_exeext; then
29363  netatalk_cv_tcpwrap=yes
29364else
29365  echo "$as_me: failed program was:" >&5
29366sed 's/^/| /' conftest.$ac_ext >&5
29367
29368
29369				LIBS=$saved_LIBS
29370				W_LIBS="-lwrap -lnsl"
29371				LIBS="$LIBS $W_LIBS"
29372				cat >conftest.$ac_ext <<_ACEOF
29373/* confdefs.h.  */
29374_ACEOF
29375cat confdefs.h >>conftest.$ac_ext
29376cat >>conftest.$ac_ext <<_ACEOF
29377/* end confdefs.h.  */
29378 int allow_severity = 0; int deny_severity = 0;
29379
29380int
29381main ()
29382{
29383hosts_access();
29384
29385  ;
29386  return 0;
29387}
29388_ACEOF
29389rm -f conftest.$ac_objext conftest$ac_exeext
29390if { (ac_try="$ac_link"
29391case "(($ac_try" in
29392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393  *) ac_try_echo=$ac_try;;
29394esac
29395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29396  (eval "$ac_link") 2>conftest.er1
29397  ac_status=$?
29398  grep -v '^ *+' conftest.er1 >conftest.err
29399  rm -f conftest.er1
29400  cat conftest.err >&5
29401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402  (exit $ac_status); } && {
29403	 test -z "$ac_c_werror_flag" ||
29404	 test ! -s conftest.err
29405       } && test -s conftest$ac_exeext &&
29406       $as_test_x conftest$ac_exeext; then
29407  netatalk_cv_tcpwrap=yes
29408else
29409  echo "$as_me: failed program was:" >&5
29410sed 's/^/| /' conftest.$ac_ext >&5
29411
29412	netatalk_cv_tcpwrap=no
29413fi
29414
29415rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29416      conftest$ac_exeext conftest.$ac_ext
29417
29418
29419fi
29420
29421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29422      conftest$ac_exeext conftest.$ac_ext
29423
29424		LIBS=$saved_LIBS
29425	fi
29426
29427	{ echo "$as_me:$LINENO: checking whether to enable the TCP wrappers" >&5
29428echo $ECHO_N "checking whether to enable the TCP wrappers... $ECHO_C" >&6; }
29429	if test "x$netatalk_cv_tcpwrap" = "xyes"; then
29430
29431cat >>confdefs.h <<\_ACEOF
29432#define TCPWRAP 1
29433_ACEOF
29434
29435		WRAP_LIBS=$W_LIBS
29436		{ echo "$as_me:$LINENO: result: yes" >&5
29437echo "${ECHO_T}yes" >&6; }
29438	else
29439		if test "x$wrapcheck" = "xyes"; then
29440			{ { echo "$as_me:$LINENO: error: libwrap not found" >&5
29441echo "$as_me: error: libwrap not found" >&2;}
29442   { (exit 1); exit 1; }; }
29443		else
29444			{ echo "$as_me:$LINENO: result: no" >&5
29445echo "${ECHO_T}no" >&6; }
29446		fi
29447	fi
29448
29449
29450
29451
29452{ echo "$as_me:$LINENO: checking whether system (fcntl) locking should be disabled" >&5
29453echo $ECHO_N "checking whether system (fcntl) locking should be disabled... $ECHO_C" >&6; }
29454# Check whether --enable-locking was given.
29455if test "${enable_locking+set}" = set; then
29456  enableval=$enable_locking;
29457        	if test "$enableval" = "no"; then
29458
29459cat >>confdefs.h <<\_ACEOF
29460#define DISABLE_LOCKING 1
29461_ACEOF
29462
29463	                { echo "$as_me:$LINENO: result: yes" >&5
29464echo "${ECHO_T}yes" >&6; }
29465		else
29466	                { echo "$as_me:$LINENO: result: no" >&5
29467echo "${ECHO_T}no" >&6; }
29468        	fi
29469
29470
29471else
29472
29473		{ echo "$as_me:$LINENO: result: no" >&5
29474echo "${ECHO_T}no" >&6; }
29475
29476
29477
29478fi
29479
29480
29481
29482# Check whether --enable-redhat was given.
29483if test "${enable_redhat+set}" = set; then
29484  enableval=$enable_redhat;
29485	if test "$enableval" = "yes"; then
29486		sysv_style=redhat
29487	fi
29488	{ echo "$as_me:$LINENO: result: enabling redhat-style sysv support" >&5
29489echo "${ECHO_T}enabling redhat-style sysv support" >&6; }
29490
29491
29492fi
29493
29494
29495# Check whether --enable-suse was given.
29496if test "${enable_suse+set}" = set; then
29497  enableval=$enable_suse;
29498	if test "$enableval" = "yes"; then
29499		sysv_style=suse
29500	fi
29501	{ echo "$as_me:$LINENO: result: enabling suse-style sysv support" >&5
29502echo "${ECHO_T}enabling suse-style sysv support" >&6; }
29503
29504
29505fi
29506
29507
29508# Check whether --enable-gentoo was given.
29509if test "${enable_gentoo+set}" = set; then
29510  enableval=$enable_gentoo;
29511	if test "$enableval" = "yes"; then
29512		sysv_style=gentoo
29513	fi
29514	{ echo "$as_me:$LINENO: result: enabling gentoo-style sysv support" >&5
29515echo "${ECHO_T}enabling gentoo-style sysv support" >&6; }
29516
29517
29518fi
29519
29520
29521# Check whether --enable-cobalt was given.
29522if test "${enable_cobalt+set}" = set; then
29523  enableval=$enable_cobalt; if test "$enableval" = "yes"; then
29524		sysv_style=cobalt
29525	fi
29526	{ echo "$as_me:$LINENO: result: enabling cobalt-style sysv support" >&5
29527echo "${ECHO_T}enabling cobalt-style sysv support" >&6; }
29528
29529fi
29530
29531
29532# Check whether --enable-netbsd was given.
29533if test "${enable_netbsd+set}" = set; then
29534  enableval=$enable_netbsd; if test "x$enableval" = "xyes"; then
29535		sysv_style=netbsd
29536	fi
29537	{ echo "$as_me:$LINENO: result: enabling NetBSD-style rc.d support" >&5
29538echo "${ECHO_T}enabling NetBSD-style rc.d support" >&6; }
29539
29540fi
29541
29542
29543# Check whether --enable-debian was given.
29544if test "${enable_debian+set}" = set; then
29545  enableval=$enable_debian;
29546	if test "$enableval" = "yes"; then
29547		sysv_style=debian
29548	fi
29549	{ echo "$as_me:$LINENO: result: enabling debian-style sysv support" >&5
29550echo "${ECHO_T}enabling debian-style sysv support" >&6; }
29551
29552
29553fi
29554
29555
29556{ echo "$as_me:$LINENO: checking whether timelord should be compiled" >&5
29557echo $ECHO_N "checking whether timelord should be compiled... $ECHO_C" >&6; }
29558compile_timelord=no
29559# Check whether --enable-timelord was given.
29560if test "${enable_timelord+set}" = set; then
29561  enableval=$enable_timelord; compile_timelord="$enableval"
29562else
29563  compile_timelord="no"
29564
29565fi
29566
29567{ echo "$as_me:$LINENO: result: $compile_timelord" >&5
29568echo "${ECHO_T}$compile_timelord" >&6; }
29569
29570{ echo "$as_me:$LINENO: checking whether a2boot should be compiled" >&5
29571echo $ECHO_N "checking whether a2boot should be compiled... $ECHO_C" >&6; }
29572compile_a2boot=no
29573# Check whether --enable-a2boot was given.
29574if test "${enable_a2boot+set}" = set; then
29575  enableval=$enable_a2boot; compile_a2boot="$enableval"
29576else
29577  compile_a2boot="no"
29578
29579fi
29580
29581{ echo "$as_me:$LINENO: result: $compile_a2boot" >&5
29582echo "${ECHO_T}$compile_a2boot" >&6; }
29583
29584
29585# Check whether --with-uams-path was given.
29586if test "${with_uams_path+set}" = set; then
29587  withval=$with_uams_path;
29588		uams_path="$withval"
29589
29590else
29591
29592		uams_path="${PKGCONFDIR}/uams"
29593
29594
29595fi
29596
29597
29598
29599
29600		spool_required=no
29601	netatalk_cv_use_cups=no
29602
29603	# Check whether --enable-cups was given.
29604if test "${enable_cups+set}" = set; then
29605  enableval=$enable_cups;
29606fi
29607
29608
29609	if test x$enable_cups != xno; then
29610        	# Extract the first word of "cups-config", so it can be a program name with args.
29611set dummy cups-config; ac_word=$2
29612{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29614if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then
29615  echo $ECHO_N "(cached) $ECHO_C" >&6
29616else
29617  case $CUPS_CONFIG in
29618  [\\/]* | ?:[\\/]*)
29619  ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
29620  ;;
29621  *)
29622  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29623for as_dir in $PATH
29624do
29625  IFS=$as_save_IFS
29626  test -z "$as_dir" && as_dir=.
29627  for ac_exec_ext in '' $ac_executable_extensions; do
29628  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29629    ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29630    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29631    break 2
29632  fi
29633done
29634done
29635IFS=$as_save_IFS
29636
29637  ;;
29638esac
29639fi
29640CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
29641if test -n "$CUPS_CONFIG"; then
29642  { echo "$as_me:$LINENO: result: $CUPS_CONFIG" >&5
29643echo "${ECHO_T}$CUPS_CONFIG" >&6; }
29644else
29645  { echo "$as_me:$LINENO: result: no" >&5
29646echo "${ECHO_T}no" >&6; }
29647fi
29648
29649
29650
29651        	if test "x$CUPS_CONFIG" != x; then
29652
29653cat >>confdefs.h <<\_ACEOF
29654#define HAVE_CUPS 1
29655_ACEOF
29656
29657	                CUPS_CFLAGS="`$CUPS_CONFIG --cflags`"
29658        	        CUPS_LDFLAGS="`$CUPS_CONFIG --ldflags`"
29659                	CUPS_LIBS="`$CUPS_CONFIG --libs`"
29660			CUPS_VERSION="`$CUPS_CONFIG --version`"
29661
29662cat >>confdefs.h <<_ACEOF
29663#define CUPS_API_VERSION "`$CUPS_CONFIG --api-version`"
29664_ACEOF
29665
29666
29667
29668
29669
29670			{ echo "$as_me:$LINENO: checking CUPS version" >&5
29671echo $ECHO_N "checking CUPS version... $ECHO_C" >&6; }
29672                	{ echo "$as_me:$LINENO: result: $CUPS_VERSION" >&5
29673echo "${ECHO_T}$CUPS_VERSION" >&6; }
29674			netatalk_cv_use_cups=yes
29675
29676			if test x"$netatalk_cv_HAVE_USABLE_ICONV" = x"no" ; then
29677				{ echo "$as_me:$LINENO: WARNING: *** Warning: iconv not found on your system, using simple ascii mapping***" >&5
29678echo "$as_me: WARNING: *** Warning: iconv not found on your system, using simple ascii mapping***" >&2;}
29679			fi
29680	                spool_required="yes"
29681		elif test x"$enable_cups" = "xyes"; then
29682			{ { echo "$as_me:$LINENO: error: *** CUPS not found. You might need to specify the path to cups-config ***" >&5
29683echo "$as_me: error: *** CUPS not found. You might need to specify the path to cups-config ***" >&2;}
29684   { (exit 1); exit 1; }; }
29685	        fi
29686	fi
29687
29688	{ echo "$as_me:$LINENO: checking whether CUPS support can be enabled" >&5
29689echo $ECHO_N "checking whether CUPS support can be enabled... $ECHO_C" >&6; }
29690	{ echo "$as_me:$LINENO: result: $netatalk_cv_use_cups" >&5
29691echo "${ECHO_T}$netatalk_cv_use_cups" >&6; }
29692
29693
29694
29695# Check whether --with-spooldir was given.
29696if test "${with_spooldir+set}" = set; then
29697  withval=$with_spooldir;
29698
29699	        if test "$withval" = "no"; then
29700        	       if test x"$spool_required" = x"yes"; then
29701                	       { { echo "$as_me:$LINENO: error: *** CUPS support requires a spooldir ***" >&5
29702echo "$as_me: error: *** CUPS support requires a spooldir ***" >&2;}
29703   { (exit 1); exit 1; }; }
29704	               else
29705
29706cat >>confdefs.h <<\_ACEOF
29707#define DISABLE_SPOOL 1
29708_ACEOF
29709
29710                	       { echo "$as_me:$LINENO: result: spool disabled" >&5
29711echo "${ECHO_T}spool disabled" >&6; }
29712               		fi
29713        	elif test "$withval" != "yes"; then
29714			SPOOLDIR="$withval"
29715	                { echo "$as_me:$LINENO: result: spooldir set to $withval" >&5
29716echo "${ECHO_T}spooldir set to $withval" >&6; }
29717        	else
29718			SPOOLDIR="${localstatedir}/spool/netatalk"
29719	                { echo "$as_me:$LINENO: result: spool set to default" >&5
29720echo "${ECHO_T}spool set to default" >&6; }
29721        	fi
29722
29723else
29724
29725		SPOOLDIR="${localstatedir}/spool/netatalk"
29726
29727fi
29728
29729
29730	 if test x"$spool_required" = x"yes"; then
29731  USE_SPOOLDIR_TRUE=
29732  USE_SPOOLDIR_FALSE='#'
29733else
29734  USE_SPOOLDIR_TRUE='#'
29735  USE_SPOOLDIR_FALSE=
29736fi
29737
29738
29739
29740
29741{ echo "$as_me:$LINENO: checking to see if we can add '__attribute__((unused))' to CFLAGS" >&5
29742echo $ECHO_N "checking to see if we can add '__attribute__((unused))' to CFLAGS... $ECHO_C" >&6; }
29743if test x$GCC != x ; then
29744  CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
29745  { echo "$as_me:$LINENO: result: yes" >&5
29746echo "${ECHO_T}yes" >&6; }
29747else
29748  CFLAGS="-D_U_=\"\" $CFLAGS"
29749  { echo "$as_me:$LINENO: result: no" >&5
29750echo "${ECHO_T}no" >&6; }
29751fi
29752
29753
29754{ echo "$as_me:$LINENO: checking whether to use Filesystem Hierarchy Standard (FHS) compatibility" >&5
29755echo $ECHO_N "checking whether to use Filesystem Hierarchy Standard (FHS) compatibility... $ECHO_C" >&6; }
29756# Check whether --enable-fhs was given.
29757if test "${enable_fhs+set}" = set; then
29758  enableval=$enable_fhs;
29759	if test "$enableval" = "yes"; then
29760		uams_path="${libdir}/netatalk"
29761		sysconfdir="/etc"
29762		PKGCONFDIR=${sysconfdir}/netatalk
29763		SERVERTEXT="${PKGCONFDIR}/msg"
29764		use_pam_so=yes
29765		mandir="/usr/share/man"
29766
29767cat >>confdefs.h <<\_ACEOF
29768#define FHS_COMPATIBILITY 1
29769_ACEOF
29770
29771		{ echo "$as_me:$LINENO: result: yes" >&5
29772echo "${ECHO_T}yes" >&6; }
29773	else
29774		{ echo "$as_me:$LINENO: result: no" >&5
29775echo "${ECHO_T}no" >&6; }
29776	fi
29777
29778else
29779
29780		{ echo "$as_me:$LINENO: result: no" >&5
29781echo "${ECHO_T}no" >&6; }
29782
29783
29784fi
29785
29786
29787
29788UAMS_PATH="${uams_path}"
29789
29790
29791
29792LIBS="$LIBS -L\$(top_srcdir)/libatalk"
29793CFLAGS="-I\$(top_srcdir)/include $CFLAGS -I\$(top_srcdir)/sys"
29794
29795
29796cat >>confdefs.h <<\_ACEOF
29797#define OPEN_NOFOLLOW_ERRNO ELOOP
29798_ACEOF
29799
29800
29801
29802
29803case "$host_os" in
29804	*aix*)				this_os=aix ;;
29805	*freebsd*) 			this_os=freebsd ;;
29806	*hpux11*)			this_os=hpux11 ;;
29807	*irix*)				this_os=irix ;;
29808	*linux*)   			this_os=linux ;;
29809	*osx*)				this_os=macosx ;;
29810	*darwin*)			this_os=macosx ;;
29811	*netbsd*) 			this_os=netbsd ;;
29812	*openbsd*) 			this_os=openbsd ;;
29813	*osf*) 				this_os=tru64 ;;
29814	*solaris*) 			this_os=solaris ;;
29815esac
29816
29817case "$host_cpu" in
29818	i386|i486|i586|i686|k7)		this_cpu=x86 ;;
29819	alpha)						this_cpu=alpha ;;
29820	mips)						this_cpu=mips ;;
29821	powerpc|ppc)				this_cpu=ppc ;;
29822esac
29823
29824case "$this_os" in
29825	linux)
29826cat >>confdefs.h <<\_ACEOF
29827#define _GNU_SOURCE 1
29828_ACEOF
29829
29830        ;;
29831esac
29832
29833
29834if test x"$this_os" = "xaix"; then
29835	{ echo "$as_me:$LINENO: result:  * AIX specific configuration" >&5
29836echo "${ECHO_T} * AIX specific configuration" >&6; }
29837
29838cat >>confdefs.h <<\_ACEOF
29839#define NO_STRUCT_TM_GMTOFF 1
29840_ACEOF
29841
29842
29843
29844cat >>confdefs.h <<\_ACEOF
29845#define HAVE_32BIT_LONGS 1
29846_ACEOF
29847
29848fi
29849
29850if test x"$this_os" = "xfreebsd"; then
29851	{ echo "$as_me:$LINENO: result:  * FreeBSD specific configuration" >&5
29852echo "${ECHO_T} * FreeBSD specific configuration" >&6; }
29853
29854cat >>confdefs.h <<\_ACEOF
29855#define BSD4_4 1
29856_ACEOF
29857
29858
29859cat >>confdefs.h <<\_ACEOF
29860#define FREEBSD 1
29861_ACEOF
29862
29863
29864cat >>confdefs.h <<\_ACEOF
29865#define SENDFILE_FLAVOR_BSD 1
29866_ACEOF
29867
29868
29869cat >>confdefs.h <<\_ACEOF
29870#define OPEN_NOFOLLOW_ERRNO EMLINK
29871_ACEOF
29872
29873fi
29874
29875if test x"$this_os" = "xhpux11"; then
29876	{ echo "$as_me:$LINENO: result:  * HP-UX 11 specific configuration" >&5
29877echo "${ECHO_T} * HP-UX 11 specific configuration" >&6; }
29878
29879
29880cat >>confdefs.h <<\_ACEOF
29881#define _ISOC9X_SOURCE 1
29882_ACEOF
29883
29884
29885cat >>confdefs.h <<\_ACEOF
29886#define NO_STRUCT_TM_GMTOFF 1
29887_ACEOF
29888
29889fi
29890
29891if test x"$this_os" = "xirix"; then
29892	{ echo "$as_me:$LINENO: result:  * IRIX specific configuration" >&5
29893echo "${ECHO_T} * IRIX specific configuration" >&6; }
29894
29895
29896cat >>confdefs.h <<\_ACEOF
29897#define NO_STRUCT_TM_GMTOFF 1
29898_ACEOF
29899
29900fi
29901
29902if test x"$this_os" = "xlinux"; then
29903	{ echo "$as_me:$LINENO: result:  * Linux specific configuration" >&5
29904echo "${ECHO_T} * Linux specific configuration" >&6; }
29905
29906		{ echo "$as_me:$LINENO: checking for struct atalk_addr" >&5
29907echo $ECHO_N "checking for struct atalk_addr... $ECHO_C" >&6; }
29908	cat >conftest.$ac_ext <<_ACEOF
29909/* confdefs.h.  */
29910_ACEOF
29911cat confdefs.h >>conftest.$ac_ext
29912cat >>conftest.$ac_ext <<_ACEOF
29913/* end confdefs.h.  */
29914
29915#include <sys/socket.h>
29916#include <asm/types.h>
29917#include <linux/atalk.h>
29918
29919	struct atalk_addr foo;
29920
29921int
29922main ()
29923{
29924
29925  ;
29926  return 0;
29927}
29928_ACEOF
29929rm -f conftest.$ac_objext
29930if { (ac_try="$ac_compile"
29931case "(($ac_try" in
29932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29933  *) ac_try_echo=$ac_try;;
29934esac
29935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29936  (eval "$ac_compile") 2>conftest.er1
29937  ac_status=$?
29938  grep -v '^ *+' conftest.er1 >conftest.err
29939  rm -f conftest.er1
29940  cat conftest.err >&5
29941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942  (exit $ac_status); } && {
29943	 test -z "$ac_c_werror_flag" ||
29944	 test ! -s conftest.err
29945       } && test -s conftest.$ac_objext; then
29946
29947		ac_have_atalk_addr=yes
29948		{ echo "$as_me:$LINENO: result: yes" >&5
29949echo "${ECHO_T}yes" >&6; }
29950
29951else
29952  echo "$as_me: failed program was:" >&5
29953sed 's/^/| /' conftest.$ac_ext >&5
29954
29955
29956		{ echo "$as_me:$LINENO: result: no" >&5
29957echo "${ECHO_T}no" >&6; }
29958
29959fi
29960
29961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29962
29963if test "x$ac_have_atalk_addr" = "xyes"; then
29964
29965cat >>confdefs.h <<\_ACEOF
29966#define HAVE_ATALK_ADDR 1
29967_ACEOF
29968
29969fi
29970
29971	#	AC_CHECK_HEADERS(sys/quota.h linux/quota.h)
29972#	AC_CHECK_FUNC(quotactl,,
29973#		AC_DEFINE(NEED_QUOTACTL_WRAPPER, 1, [Define if the quotactl wrapper is needed])
29974#		AC_MSG_RESULT([enabling quotactl wrapper])
29975#	)
29976
29977        # For quotas on Linux XFS filesystems
29978
29979        # For linux > 2.5.56
29980
29981for ac_header in linux/dqblk_xfs.h
29982do
29983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29985  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29988  echo $ECHO_N "(cached) $ECHO_C" >&6
29989fi
29990ac_res=`eval echo '${'$as_ac_Header'}'`
29991	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29992echo "${ECHO_T}$ac_res" >&6; }
29993else
29994  # Is the header compilable?
29995{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29996echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29997cat >conftest.$ac_ext <<_ACEOF
29998/* confdefs.h.  */
29999_ACEOF
30000cat confdefs.h >>conftest.$ac_ext
30001cat >>conftest.$ac_ext <<_ACEOF
30002/* end confdefs.h.  */
30003$ac_includes_default
30004#include <$ac_header>
30005_ACEOF
30006rm -f conftest.$ac_objext
30007if { (ac_try="$ac_compile"
30008case "(($ac_try" in
30009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30010  *) ac_try_echo=$ac_try;;
30011esac
30012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30013  (eval "$ac_compile") 2>conftest.er1
30014  ac_status=$?
30015  grep -v '^ *+' conftest.er1 >conftest.err
30016  rm -f conftest.er1
30017  cat conftest.err >&5
30018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019  (exit $ac_status); } && {
30020	 test -z "$ac_c_werror_flag" ||
30021	 test ! -s conftest.err
30022       } && test -s conftest.$ac_objext; then
30023  ac_header_compiler=yes
30024else
30025  echo "$as_me: failed program was:" >&5
30026sed 's/^/| /' conftest.$ac_ext >&5
30027
30028	ac_header_compiler=no
30029fi
30030
30031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30032{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30033echo "${ECHO_T}$ac_header_compiler" >&6; }
30034
30035# Is the header present?
30036{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30037echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30038cat >conftest.$ac_ext <<_ACEOF
30039/* confdefs.h.  */
30040_ACEOF
30041cat confdefs.h >>conftest.$ac_ext
30042cat >>conftest.$ac_ext <<_ACEOF
30043/* end confdefs.h.  */
30044#include <$ac_header>
30045_ACEOF
30046if { (ac_try="$ac_cpp conftest.$ac_ext"
30047case "(($ac_try" in
30048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30049  *) ac_try_echo=$ac_try;;
30050esac
30051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30052  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30053  ac_status=$?
30054  grep -v '^ *+' conftest.er1 >conftest.err
30055  rm -f conftest.er1
30056  cat conftest.err >&5
30057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058  (exit $ac_status); } >/dev/null && {
30059	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30060	 test ! -s conftest.err
30061       }; then
30062  ac_header_preproc=yes
30063else
30064  echo "$as_me: failed program was:" >&5
30065sed 's/^/| /' conftest.$ac_ext >&5
30066
30067  ac_header_preproc=no
30068fi
30069
30070rm -f conftest.err conftest.$ac_ext
30071{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30072echo "${ECHO_T}$ac_header_preproc" >&6; }
30073
30074# So?  What about this header?
30075case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30076  yes:no: )
30077    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30078echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30079    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30080echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30081    ac_header_preproc=yes
30082    ;;
30083  no:yes:* )
30084    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30085echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30086    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30087echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30088    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30089echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30090    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30091echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30092    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30093echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30094    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30095echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30096
30097    ;;
30098esac
30099{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30102  echo $ECHO_N "(cached) $ECHO_C" >&6
30103else
30104  eval "$as_ac_Header=\$ac_header_preproc"
30105fi
30106ac_res=`eval echo '${'$as_ac_Header'}'`
30107	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30108echo "${ECHO_T}$ac_res" >&6; }
30109
30110fi
30111if test `eval echo '${'$as_ac_Header'}'` = yes; then
30112  cat >>confdefs.h <<_ACEOF
30113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30114_ACEOF
30115
30116else
30117
30118
30119for ac_header in linux/xqm.h linux/xfs_fs.h
30120do
30121as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30123  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30126  echo $ECHO_N "(cached) $ECHO_C" >&6
30127fi
30128ac_res=`eval echo '${'$as_ac_Header'}'`
30129	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30130echo "${ECHO_T}$ac_res" >&6; }
30131else
30132  # Is the header compilable?
30133{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30134echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30135cat >conftest.$ac_ext <<_ACEOF
30136/* confdefs.h.  */
30137_ACEOF
30138cat confdefs.h >>conftest.$ac_ext
30139cat >>conftest.$ac_ext <<_ACEOF
30140/* end confdefs.h.  */
30141$ac_includes_default
30142#include <$ac_header>
30143_ACEOF
30144rm -f conftest.$ac_objext
30145if { (ac_try="$ac_compile"
30146case "(($ac_try" in
30147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30148  *) ac_try_echo=$ac_try;;
30149esac
30150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30151  (eval "$ac_compile") 2>conftest.er1
30152  ac_status=$?
30153  grep -v '^ *+' conftest.er1 >conftest.err
30154  rm -f conftest.er1
30155  cat conftest.err >&5
30156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157  (exit $ac_status); } && {
30158	 test -z "$ac_c_werror_flag" ||
30159	 test ! -s conftest.err
30160       } && test -s conftest.$ac_objext; then
30161  ac_header_compiler=yes
30162else
30163  echo "$as_me: failed program was:" >&5
30164sed 's/^/| /' conftest.$ac_ext >&5
30165
30166	ac_header_compiler=no
30167fi
30168
30169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30170{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30171echo "${ECHO_T}$ac_header_compiler" >&6; }
30172
30173# Is the header present?
30174{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30175echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30176cat >conftest.$ac_ext <<_ACEOF
30177/* confdefs.h.  */
30178_ACEOF
30179cat confdefs.h >>conftest.$ac_ext
30180cat >>conftest.$ac_ext <<_ACEOF
30181/* end confdefs.h.  */
30182#include <$ac_header>
30183_ACEOF
30184if { (ac_try="$ac_cpp conftest.$ac_ext"
30185case "(($ac_try" in
30186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187  *) ac_try_echo=$ac_try;;
30188esac
30189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30191  ac_status=$?
30192  grep -v '^ *+' conftest.er1 >conftest.err
30193  rm -f conftest.er1
30194  cat conftest.err >&5
30195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196  (exit $ac_status); } >/dev/null && {
30197	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30198	 test ! -s conftest.err
30199       }; then
30200  ac_header_preproc=yes
30201else
30202  echo "$as_me: failed program was:" >&5
30203sed 's/^/| /' conftest.$ac_ext >&5
30204
30205  ac_header_preproc=no
30206fi
30207
30208rm -f conftest.err conftest.$ac_ext
30209{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30210echo "${ECHO_T}$ac_header_preproc" >&6; }
30211
30212# So?  What about this header?
30213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30214  yes:no: )
30215    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30216echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30217    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30218echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30219    ac_header_preproc=yes
30220    ;;
30221  no:yes:* )
30222    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30223echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30224    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30225echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30226    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30227echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30228    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30229echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30230    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30231echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30232    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30233echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30234
30235    ;;
30236esac
30237{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30240  echo $ECHO_N "(cached) $ECHO_C" >&6
30241else
30242  eval "$as_ac_Header=\$ac_header_preproc"
30243fi
30244ac_res=`eval echo '${'$as_ac_Header'}'`
30245	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30246echo "${ECHO_T}$ac_res" >&6; }
30247
30248fi
30249if test `eval echo '${'$as_ac_Header'}'` = yes; then
30250  cat >>confdefs.h <<_ACEOF
30251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30252_ACEOF
30253
30254fi
30255
30256done
30257
30258
30259
30260
30261for ac_header in xfs/libxfs.h xfs/xqm.h xfs/xfs_fs.h
30262do
30263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30265  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30268  echo $ECHO_N "(cached) $ECHO_C" >&6
30269fi
30270ac_res=`eval echo '${'$as_ac_Header'}'`
30271	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30272echo "${ECHO_T}$ac_res" >&6; }
30273else
30274  # Is the header compilable?
30275{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30276echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30277cat >conftest.$ac_ext <<_ACEOF
30278/* confdefs.h.  */
30279_ACEOF
30280cat confdefs.h >>conftest.$ac_ext
30281cat >>conftest.$ac_ext <<_ACEOF
30282/* end confdefs.h.  */
30283$ac_includes_default
30284#include <$ac_header>
30285_ACEOF
30286rm -f conftest.$ac_objext
30287if { (ac_try="$ac_compile"
30288case "(($ac_try" in
30289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290  *) ac_try_echo=$ac_try;;
30291esac
30292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30293  (eval "$ac_compile") 2>conftest.er1
30294  ac_status=$?
30295  grep -v '^ *+' conftest.er1 >conftest.err
30296  rm -f conftest.er1
30297  cat conftest.err >&5
30298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299  (exit $ac_status); } && {
30300	 test -z "$ac_c_werror_flag" ||
30301	 test ! -s conftest.err
30302       } && test -s conftest.$ac_objext; then
30303  ac_header_compiler=yes
30304else
30305  echo "$as_me: failed program was:" >&5
30306sed 's/^/| /' conftest.$ac_ext >&5
30307
30308	ac_header_compiler=no
30309fi
30310
30311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30312{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30313echo "${ECHO_T}$ac_header_compiler" >&6; }
30314
30315# Is the header present?
30316{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30317echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30318cat >conftest.$ac_ext <<_ACEOF
30319/* confdefs.h.  */
30320_ACEOF
30321cat confdefs.h >>conftest.$ac_ext
30322cat >>conftest.$ac_ext <<_ACEOF
30323/* end confdefs.h.  */
30324#include <$ac_header>
30325_ACEOF
30326if { (ac_try="$ac_cpp conftest.$ac_ext"
30327case "(($ac_try" in
30328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30329  *) ac_try_echo=$ac_try;;
30330esac
30331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30332  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30333  ac_status=$?
30334  grep -v '^ *+' conftest.er1 >conftest.err
30335  rm -f conftest.er1
30336  cat conftest.err >&5
30337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338  (exit $ac_status); } >/dev/null && {
30339	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30340	 test ! -s conftest.err
30341       }; then
30342  ac_header_preproc=yes
30343else
30344  echo "$as_me: failed program was:" >&5
30345sed 's/^/| /' conftest.$ac_ext >&5
30346
30347  ac_header_preproc=no
30348fi
30349
30350rm -f conftest.err conftest.$ac_ext
30351{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30352echo "${ECHO_T}$ac_header_preproc" >&6; }
30353
30354# So?  What about this header?
30355case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30356  yes:no: )
30357    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30358echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30359    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30360echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30361    ac_header_preproc=yes
30362    ;;
30363  no:yes:* )
30364    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30365echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30366    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30367echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30368    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30369echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30370    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30371echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30372    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30373echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30374    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30375echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30376
30377    ;;
30378esac
30379{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30382  echo $ECHO_N "(cached) $ECHO_C" >&6
30383else
30384  eval "$as_ac_Header=\$ac_header_preproc"
30385fi
30386ac_res=`eval echo '${'$as_ac_Header'}'`
30387	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30388echo "${ECHO_T}$ac_res" >&6; }
30389
30390fi
30391if test `eval echo '${'$as_ac_Header'}'` = yes; then
30392  cat >>confdefs.h <<_ACEOF
30393#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30394_ACEOF
30395
30396fi
30397
30398done
30399
30400
30401fi
30402
30403done
30404
30405
30406
30407
30408cat >>confdefs.h <<\_ACEOF
30409#define HAVE_BROKEN_DBTOB 1
30410_ACEOF
30411
30412
30413	netatalk_cv_linux_sendfile=yes
30414	{ echo "$as_me:$LINENO: checking use sendfile syscall" >&5
30415echo $ECHO_N "checking use sendfile syscall... $ECHO_C" >&6; }
30416        # Check whether --enable-sendfile was given.
30417if test "${enable_sendfile+set}" = set; then
30418  enableval=$enable_sendfile;
30419	    	if test x"$enableval" = x"no"; then
30420	  		netatalk_cv_linux_sendfile=no
30421			{ echo "$as_me:$LINENO: result: no" >&5
30422echo "${ECHO_T}no" >&6; }
30423		else
30424			{ echo "$as_me:$LINENO: result: yes" >&5
30425echo "${ECHO_T}yes" >&6; }
30426
30427	    	fi
30428
30429else
30430
30431		{ echo "$as_me:$LINENO: result: yes" >&5
30432echo "${ECHO_T}yes" >&6; }
30433
30434
30435
30436fi
30437
30438
30439	if test x"$netatalk_cv_linux_sendfile" = "xyes"; then
30440	    { echo "$as_me:$LINENO: checking for linux sendfile support" >&5
30441echo $ECHO_N "checking for linux sendfile support... $ECHO_C" >&6; }
30442if test "${netatalk_cv_HAVE_SENDFILE+set}" = set; then
30443  echo $ECHO_N "(cached) $ECHO_C" >&6
30444else
30445
30446	    cat >conftest.$ac_ext <<_ACEOF
30447/* confdefs.h.  */
30448_ACEOF
30449cat confdefs.h >>conftest.$ac_ext
30450cat >>conftest.$ac_ext <<_ACEOF
30451/* end confdefs.h.  */
30452#include <sys/sendfile.h>
30453int
30454main ()
30455{
30456\
30457int tofd, fromfd;
30458off_t offset;
30459size_t total;
30460ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
30461
30462  ;
30463  return 0;
30464}
30465_ACEOF
30466rm -f conftest.$ac_objext conftest$ac_exeext
30467if { (ac_try="$ac_link"
30468case "(($ac_try" in
30469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470  *) ac_try_echo=$ac_try;;
30471esac
30472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30473  (eval "$ac_link") 2>conftest.er1
30474  ac_status=$?
30475  grep -v '^ *+' conftest.er1 >conftest.err
30476  rm -f conftest.er1
30477  cat conftest.err >&5
30478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479  (exit $ac_status); } && {
30480	 test -z "$ac_c_werror_flag" ||
30481	 test ! -s conftest.err
30482       } && test -s conftest$ac_exeext &&
30483       $as_test_x conftest$ac_exeext; then
30484  netatalk_cv_HAVE_SENDFILE=yes
30485else
30486  echo "$as_me: failed program was:" >&5
30487sed 's/^/| /' conftest.$ac_ext >&5
30488
30489	netatalk_cv_HAVE_SENDFILE=no
30490fi
30491
30492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30493      conftest$ac_exeext conftest.$ac_ext
30494fi
30495{ echo "$as_me:$LINENO: result: $netatalk_cv_HAVE_SENDFILE" >&5
30496echo "${ECHO_T}$netatalk_cv_HAVE_SENDFILE" >&6; }
30497
30498# Try and cope with broken Linux sendfile....
30499	    { echo "$as_me:$LINENO: checking for broken linux sendfile support" >&5
30500echo $ECHO_N "checking for broken linux sendfile support... $ECHO_C" >&6; }
30501if test "${netatalk_cv_HAVE_BROKEN_LINUX_SENDFILE+set}" = set; then
30502  echo $ECHO_N "(cached) $ECHO_C" >&6
30503else
30504
30505	    cat >conftest.$ac_ext <<_ACEOF
30506/* confdefs.h.  */
30507_ACEOF
30508cat confdefs.h >>conftest.$ac_ext
30509cat >>conftest.$ac_ext <<_ACEOF
30510/* end confdefs.h.  */
30511\
30512#if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
30513#undef _FILE_OFFSET_BITS
30514#endif
30515#include <sys/sendfile.h>
30516int
30517main ()
30518{
30519\
30520int tofd, fromfd;
30521off_t offset;
30522size_t total;
30523ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
30524
30525  ;
30526  return 0;
30527}
30528_ACEOF
30529rm -f conftest.$ac_objext conftest$ac_exeext
30530if { (ac_try="$ac_link"
30531case "(($ac_try" in
30532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533  *) ac_try_echo=$ac_try;;
30534esac
30535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536  (eval "$ac_link") 2>conftest.er1
30537  ac_status=$?
30538  grep -v '^ *+' conftest.er1 >conftest.err
30539  rm -f conftest.er1
30540  cat conftest.err >&5
30541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542  (exit $ac_status); } && {
30543	 test -z "$ac_c_werror_flag" ||
30544	 test ! -s conftest.err
30545       } && test -s conftest$ac_exeext &&
30546       $as_test_x conftest$ac_exeext; then
30547  netatalk_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
30548else
30549  echo "$as_me: failed program was:" >&5
30550sed 's/^/| /' conftest.$ac_ext >&5
30551
30552	netatalk_cv_HAVE_BROKEN_LINUX_SENDFILE=no
30553fi
30554
30555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30556      conftest$ac_exeext conftest.$ac_ext
30557fi
30558{ echo "$as_me:$LINENO: result: $netatalk_cv_HAVE_BROKEN_LINUX_SENDFILE" >&5
30559echo "${ECHO_T}$netatalk_cv_HAVE_BROKEN_LINUX_SENDFILE" >&6; }
30560
30561	    if test x"$netatalk_cv_HAVE_SENDFILE" = x"yes"; then
30562
30563cat >>confdefs.h <<\_ACEOF
30564#define HAVE_SENDFILE 1
30565_ACEOF
30566
30567
30568cat >>confdefs.h <<\_ACEOF
30569#define SENDFILE_FLAVOR_LINUX 1
30570_ACEOF
30571
30572
30573cat >>confdefs.h <<\_ACEOF
30574#define WITH_SENDFILE 1
30575_ACEOF
30576
30577	    elif test x"$netatalk_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
30578
30579cat >>confdefs.h <<\_ACEOF
30580#define SENDFILE_FLAVOR_LINUX 1
30581_ACEOF
30582
30583
30584cat >>confdefs.h <<\_ACEOF
30585#define LINUX_BROKEN_SENDFILE_API 1
30586_ACEOF
30587
30588
30589cat >>confdefs.h <<\_ACEOF
30590#define WITH_SENDFILE 1
30591_ACEOF
30592
30593	    else
30594	  	netatalk_cv_linux_sendfile=no
30595		{ echo "$as_me:$LINENO: result: no" >&5
30596echo "${ECHO_T}no" >&6; };
30597	    fi
30598	fi
30599
30600		if test x"$this_cpu" = "xalpha"; then
30601		{ echo "$as_me:$LINENO: result: enabling gcc memcpy bug workaround" >&5
30602echo "${ECHO_T}enabling gcc memcpy bug workaround" >&6; }
30603
30604cat >>confdefs.h <<\_ACEOF
30605#define HAVE_GCC_MEMCPY_BUG 1
30606_ACEOF
30607
30608	fi
30609	need_dash_r=no
30610
30611
30612fi
30613
30614if test x"$this_os" = "xmacosx"; then
30615	{ echo "$as_me:$LINENO: result:  * Mac OSX specific configuration" >&5
30616echo "${ECHO_T} * Mac OSX specific configuration" >&6; }
30617
30618cat >>confdefs.h <<\_ACEOF
30619#define BSD4_4 1
30620_ACEOF
30621
30622
30623cat >>confdefs.h <<\_ACEOF
30624#define HAVE_2ARG_DBTOB 1
30625_ACEOF
30626
30627
30628cat >>confdefs.h <<\_ACEOF
30629#define NO_DDP 1
30630_ACEOF
30631
30632
30633cat >>confdefs.h <<\_ACEOF
30634#define NO_QUOTA_SUPPORT 1
30635_ACEOF
30636
30637
30638cat >>confdefs.h <<\_ACEOF
30639#define MACOSX_SERVER 1
30640_ACEOF
30641
30642fi
30643
30644if test x"$this_os" = "xnetbsd"; then
30645	{ echo "$as_me:$LINENO: result:  * NetBSD specific configuration" >&5
30646echo "${ECHO_T} * NetBSD specific configuration" >&6; }
30647
30648cat >>confdefs.h <<\_ACEOF
30649#define BSD4_4 1
30650_ACEOF
30651
30652
30653cat >>confdefs.h <<\_ACEOF
30654#define NETBSD 1
30655_ACEOF
30656
30657
30658cat >>confdefs.h <<\_ACEOF
30659#define OPEN_NOFOLLOW_ERRNO EFTYPE
30660_ACEOF
30661
30662
30663	CFLAGS="-I\$(top_srcdir)/sys/netbsd $CFLAGS"
30664	need_dash_r=yes
30665
30666
30667cat >>confdefs.h <<\_ACEOF
30668#define UAM_DHX 1
30669_ACEOF
30670
30671fi
30672
30673if test x"$this_os" = "xopenbsd"; then
30674	{ echo "$as_me:$LINENO: result:  * OpenBSD specific configuration" >&5
30675echo "${ECHO_T} * OpenBSD specific configuration" >&6; }
30676
30677cat >>confdefs.h <<\_ACEOF
30678#define UAM_DHX 1
30679_ACEOF
30680
30681fi
30682
30683if test x"$this_os" = "xsolaris"; then
30684	{ echo "$as_me:$LINENO: result:  * Solaris specific configuration" >&5
30685echo "${ECHO_T} * Solaris specific configuration" >&6; }
30686
30687cat >>confdefs.h <<\_ACEOF
30688#define __svr4__ 1
30689_ACEOF
30690
30691
30692cat >>confdefs.h <<\_ACEOF
30693#define _ISOC9X_SOURCE 1
30694_ACEOF
30695
30696
30697cat >>confdefs.h <<\_ACEOF
30698#define NO_STRUCT_TM_GMTOFF 1
30699_ACEOF
30700
30701
30702cat >>confdefs.h <<\_ACEOF
30703#define SOLARIS 1
30704_ACEOF
30705
30706	CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
30707	need_dash_r=yes
30708	sysv_style=solaris
30709
30710	solaris_module=no
30711	{ echo "$as_me:$LINENO: checking if we can build Solaris kernel module" >&5
30712echo $ECHO_N "checking if we can build Solaris kernel module... $ECHO_C" >&6; }
30713	if test -x /usr/ccs/bin/ld && test x"$netatalk_cv_ddp_enabled" = x"yes" ; then
30714		solaris_module=yes
30715	fi
30716	{ echo "$as_me:$LINENO: result: $solaris_module" >&5
30717echo "${ECHO_T}$solaris_module" >&6; }
30718
30719	COMPILE_64BIT_KMODULE=no
30720	KCFLAGS=""
30721	KLDFLAGS=""
30722	COMPILE_KERNEL_GCC=no
30723
30724	if test "$solaris_module" = "yes"; then
30725	              { echo "$as_me:$LINENO: checking if we have to build a 64bit kernel module" >&5
30726echo $ECHO_N "checking if we have to build a 64bit kernel module... $ECHO_C" >&6; }
30727
30728	   # check for isainfo, if not found it has to be a 32 bit kernel (<=2.6)
30729	   if test -x /usr/bin/isainfo; then
30730		# check for 64 bit platform
30731		if isainfo -kv | grep '^64-bit'; then
30732			COMPILE_64BIT_KMODULE=yes
30733		fi
30734	   fi
30735
30736	   { echo "$as_me:$LINENO: result: $COMPILE_64BIT_KMODULE" >&5
30737echo "${ECHO_T}$COMPILE_64BIT_KMODULE" >&6; }
30738
30739	   if test "${GCC}" = yes; then
30740		COMPILE_KERNEL_GCC=yes
30741		if test "$COMPILE_64BIT_KMODULE" = yes; then
30742
30743                        { echo "$as_me:$LINENO: checking if we can build a 64bit kernel module" >&5
30744echo $ECHO_N "checking if we can build a 64bit kernel module... $ECHO_C" >&6; }
30745
30746                        case `$CC --version 2>/dev/null` in
30747			[12].* | 3.0.*)
30748				COMPILE_64BIT_KMODULE=no
30749				COMPILE_KERNEL_GCC=no
30750				solaris_module=no;;
30751			*)
30752			       	# use for 64 bit
30753				KCFLAGS="-m64"
30754				#KLDFLAGS="-melf64_sparc"
30755				KLDFLAGS="-64";;
30756			esac
30757
30758			{ echo "$as_me:$LINENO: result: $COMPILE_64BIT_KMODULE" >&5
30759echo "${ECHO_T}$COMPILE_64BIT_KMODULE" >&6; }
30760
30761		else
30762			KCFLAGS=""
30763			KLDFLAGS=""
30764		fi
30765		KCFLAGS="$KCFLAGS -D_KERNEL -Wall -Wstrict-prototypes"
30766           else
30767		if test "$COMPILE_64BIT_KMODULE" = yes; then
30768                # use Sun CC (for a 64-bit kernel, uncomment " -xarch=v9 -xregs=no%appl ")
30769 			KCFLAGS="-xarch=v9 -xregs=no%appl"
30770			KLDFLAGS="-64"
30771		else
30772 			KCFLAGS=""
30773			KLDFLAGS=""
30774		fi
30775		KCFLAGS="-D_KERNEL $KCFLAGS -mno-app-regs -munaligned-doubles -fpcc-struct-return"
30776	   fi
30777
30778           { echo "$as_me:$LINENO: checking for timeout_id_t" >&5
30779echo $ECHO_N "checking for timeout_id_t... $ECHO_C" >&6; }
30780if test "${netatalk_cv_HAVE_TIMEOUT_ID_T+set}" = set; then
30781  echo $ECHO_N "(cached) $ECHO_C" >&6
30782else
30783
30784           cat >conftest.$ac_ext <<_ACEOF
30785/* confdefs.h.  */
30786_ACEOF
30787cat confdefs.h >>conftest.$ac_ext
30788cat >>conftest.$ac_ext <<_ACEOF
30789/* end confdefs.h.  */
30790\
30791#include <sys/stream.h>
30792#include <sys/ddi.h>
30793int
30794main ()
30795{
30796\
30797timeout_id_t dummy;
30798
30799  ;
30800  return 0;
30801}
30802_ACEOF
30803rm -f conftest.$ac_objext conftest$ac_exeext
30804if { (ac_try="$ac_link"
30805case "(($ac_try" in
30806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30807  *) ac_try_echo=$ac_try;;
30808esac
30809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30810  (eval "$ac_link") 2>conftest.er1
30811  ac_status=$?
30812  grep -v '^ *+' conftest.er1 >conftest.err
30813  rm -f conftest.er1
30814  cat conftest.err >&5
30815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816  (exit $ac_status); } && {
30817	 test -z "$ac_c_werror_flag" ||
30818	 test ! -s conftest.err
30819       } && test -s conftest$ac_exeext &&
30820       $as_test_x conftest$ac_exeext; then
30821  netatalk_cv_HAVE_TIMEOUT_ID_T=yes
30822else
30823  echo "$as_me: failed program was:" >&5
30824sed 's/^/| /' conftest.$ac_ext >&5
30825
30826	netatalk_cv_HAVE_TIMEOUT_ID_T=no
30827fi
30828
30829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30830      conftest$ac_exeext conftest.$ac_ext
30831fi
30832{ echo "$as_me:$LINENO: result: $netatalk_cv_HAVE_TIMEOUT_ID_T" >&5
30833echo "${ECHO_T}$netatalk_cv_HAVE_TIMEOUT_ID_T" >&6; }
30834
30835
30836cat >>confdefs.h <<\_ACEOF
30837#define HAVE_TIMEOUT_ID_T test x"$netatalk_cv_HAVE_TIMEOUT_ID" = x"yes"
30838_ACEOF
30839
30840	fi
30841
30842
30843
30844
30845
30846fi
30847
30848if test x"$this_os" = "xtru64"; then
30849	{ echo "$as_me:$LINENO: result:  * Tru64 specific configuration" >&5
30850echo "${ECHO_T} * Tru64 specific configuration" >&6; }
30851
30852cat >>confdefs.h <<\_ACEOF
30853#define NO_DDP 1
30854_ACEOF
30855
30856
30857cat >>confdefs.h <<\_ACEOF
30858#define HAVE_64BIT_LONGS 1
30859_ACEOF
30860
30861
30862cat >>confdefs.h <<\_ACEOF
30863#define USE_OLD_RQUOTA 1
30864_ACEOF
30865
30866
30867cat >>confdefs.h <<\_ACEOF
30868#define TRU64 1
30869_ACEOF
30870
30871
30872cat >>confdefs.h <<\_ACEOF
30873#define _OSF_SOURCE 1
30874_ACEOF
30875
30876
30877cat >>confdefs.h <<\_ACEOF
30878#define _XOPEN_SOURCE_EXTENDED 1
30879_ACEOF
30880
30881
30882{ echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
30883echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6; }
30884if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
30885  echo $ECHO_N "(cached) $ECHO_C" >&6
30886else
30887  ac_check_lib_save_LIBS=$LIBS
30888LIBS="-lsecurity  $LIBS"
30889cat >conftest.$ac_ext <<_ACEOF
30890/* confdefs.h.  */
30891_ACEOF
30892cat confdefs.h >>conftest.$ac_ext
30893cat >>conftest.$ac_ext <<_ACEOF
30894/* end confdefs.h.  */
30895
30896/* Override any GCC internal prototype to avoid an error.
30897   Use char because int might match the return type of a GCC
30898   builtin and then its argument prototype would still apply.  */
30899#ifdef __cplusplus
30900extern "C"
30901#endif
30902char set_auth_parameters ();
30903int
30904main ()
30905{
30906return set_auth_parameters ();
30907  ;
30908  return 0;
30909}
30910_ACEOF
30911rm -f conftest.$ac_objext conftest$ac_exeext
30912if { (ac_try="$ac_link"
30913case "(($ac_try" in
30914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30915  *) ac_try_echo=$ac_try;;
30916esac
30917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30918  (eval "$ac_link") 2>conftest.er1
30919  ac_status=$?
30920  grep -v '^ *+' conftest.er1 >conftest.err
30921  rm -f conftest.er1
30922  cat conftest.err >&5
30923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924  (exit $ac_status); } && {
30925	 test -z "$ac_c_werror_flag" ||
30926	 test ! -s conftest.err
30927       } && test -s conftest$ac_exeext &&
30928       $as_test_x conftest$ac_exeext; then
30929  ac_cv_lib_security_set_auth_parameters=yes
30930else
30931  echo "$as_me: failed program was:" >&5
30932sed 's/^/| /' conftest.$ac_ext >&5
30933
30934	ac_cv_lib_security_set_auth_parameters=no
30935fi
30936
30937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30938      conftest$ac_exeext conftest.$ac_ext
30939LIBS=$ac_check_lib_save_LIBS
30940fi
30941{ echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
30942echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6; }
30943if test $ac_cv_lib_security_set_auth_parameters = yes; then
30944  cat >>confdefs.h <<_ACEOF
30945#define HAVE_LIBSECURITY 1
30946_ACEOF
30947
30948  LIBS="-lsecurity $LIBS"
30949
30950fi
30951
30952	CFLAGS="-I\$(top_srcdir)/sys/tru64 $CFLAGS"
30953	need_dash_r=no
30954	sysv_style=tru64
30955fi
30956
30957
30958# Check whether --with-libgcrypt-dir was given.
30959if test "${with_libgcrypt_dir+set}" = set; then
30960  withval=$with_libgcrypt_dir; libgcrypt_config_prefix="$withval"
30961else
30962  libgcrypt_config_prefix=""
30963fi
30964
30965  if test x$libgcrypt_config_prefix != x ; then
30966     if test x${LIBGCRYPT_CONFIG+set} != xset ; then
30967        LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
30968     fi
30969  fi
30970
30971  ok=no
30972
30973if test x$libgcrypt_config_prefix != xno ; then
30974
30975  # Extract the first word of "libgcrypt-config", so it can be a program name with args.
30976set dummy libgcrypt-config; ac_word=$2
30977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30979if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
30980  echo $ECHO_N "(cached) $ECHO_C" >&6
30981else
30982  case $LIBGCRYPT_CONFIG in
30983  [\\/]* | ?:[\\/]*)
30984  ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
30985  ;;
30986  *)
30987  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30988for as_dir in $PATH
30989do
30990  IFS=$as_save_IFS
30991  test -z "$as_dir" && as_dir=.
30992  for ac_exec_ext in '' $ac_executable_extensions; do
30993  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30994    ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30996    break 2
30997  fi
30998done
30999done
31000IFS=$as_save_IFS
31001
31002  test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
31003  ;;
31004esac
31005fi
31006LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
31007if test -n "$LIBGCRYPT_CONFIG"; then
31008  { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
31009echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
31010else
31011  { echo "$as_me:$LINENO: result: no" >&5
31012echo "${ECHO_T}no" >&6; }
31013fi
31014
31015
31016  tmp=1:1.2.3
31017  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
31018     req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
31019     min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
31020  else
31021     req_libgcrypt_api=0
31022     min_libgcrypt_version="$tmp"
31023  fi
31024
31025  { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
31026echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
31027  if test "$LIBGCRYPT_CONFIG" != "no" ; then
31028    req_major=`echo $min_libgcrypt_version | \
31029               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
31030    req_minor=`echo $min_libgcrypt_version | \
31031               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
31032    req_micro=`echo $min_libgcrypt_version | \
31033               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
31034    libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
31035    major=`echo $libgcrypt_config_version | \
31036               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
31037    minor=`echo $libgcrypt_config_version | \
31038               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
31039    micro=`echo $libgcrypt_config_version | \
31040               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
31041    if test "$major" -gt "$req_major"; then
31042        ok=yes
31043    else
31044        if test "$major" -eq "$req_major"; then
31045            if test "$minor" -gt "$req_minor"; then
31046               ok=yes
31047            else
31048               if test "$minor" -eq "$req_minor"; then
31049                   if test "$micro" -ge "$req_micro"; then
31050                     ok=yes
31051                   fi
31052               fi
31053            fi
31054	   fi
31055	fi
31056  fi
31057  if test $ok = yes; then
31058    { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
31059echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
31060  else
31061    { echo "$as_me:$LINENO: result: no" >&5
31062echo "${ECHO_T}no" >&6; }
31063  fi
31064fi
31065
31066  if test $ok = yes; then
31067     # If we have a recent libgcrypt, we should also check that the
31068     # API is compatible
31069     if test "$req_libgcrypt_api" -gt 0 ; then
31070        tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
31071        if test "$tmp" -gt 0 ; then
31072           { echo "$as_me:$LINENO: checking libgcrypt API version" >&5
31073echo $ECHO_N "checking libgcrypt API version... $ECHO_C" >&6; }
31074           if test "$req_libgcrypt_api" -eq "$tmp" ; then
31075             { echo "$as_me:$LINENO: result: okay" >&5
31076echo "${ECHO_T}okay" >&6; }
31077           else
31078             ok=no
31079             { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
31080echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
31081           fi
31082        fi
31083     fi
31084  fi
31085  if test $ok = yes; then
31086     # Opensolaris 11/08 provided libgcrypt doesn't have CAST5,
31087     # so we better check the general case
31088      { echo "$as_me:$LINENO: checking libgcrypt hast CAST5 API" >&5
31089echo $ECHO_N "checking libgcrypt hast CAST5 API... $ECHO_C" >&6; }
31090      cast=`$LIBGCRYPT_CONFIG --algorithms 2>/dev/null | grep cast5 | sed 's/\(.*\)\(cast5\)\(.*\)/\2/'`
31091      if test x$cast = xcast5 ; then
31092        { echo "$as_me:$LINENO: result: yes" >&5
31093echo "${ECHO_T}yes" >&6; }
31094      else
31095        { echo "$as_me:$LINENO: result: no" >&5
31096echo "${ECHO_T}no" >&6; }
31097        echo "***          Detected libgcryt without CAST5              ***"
31098        echo "*** Please install/build another one and point to it with ***"
31099        echo "***         --with-libgcrypt-dir=<path-to-lib>            ***"
31100        ok=no
31101      fi
31102  fi
31103
31104  if test $ok = yes; then
31105    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
31106    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
31107    neta_cv_compile_dhx2=yes
31108			neta_cv_have_libgcrypt=yes
31109			{ echo "$as_me:$LINENO: Enabling DHX2 UAM" >&5
31110echo "$as_me: Enabling DHX2 UAM" >&6;}
31111
31112cat >>confdefs.h <<\_ACEOF
31113#define HAVE_LIBGCRYPT 1
31114_ACEOF
31115
31116
31117cat >>confdefs.h <<\_ACEOF
31118#define UAM_DHX2 1
31119_ACEOF
31120
31121
31122  else
31123    LIBGCRYPT_CFLAGS=""
31124    LIBGCRYPT_LIBS=""
31125    :
31126  fi
31127
31128
31129
31130
31131
31132
31133# Check whether --with-ssl-dir was given.
31134if test "${with_ssl_dir+set}" = set; then
31135  withval=$with_ssl_dir;
31136			if test "x$withval" = "xno"; then
31137				tryssl=no
31138			elif test "x$withval" = "xyes"; then
31139				tryssl=yes
31140				tryssldir=
31141			else
31142								tryssl=yes
31143				tryssldir="$withval"
31144			fi
31145
31146else
31147  tryssl=yes
31148
31149fi
31150
31151
31152	SSL_CFLAGS=""
31153	SSL_LIBS=""
31154	saved_LIBS=$LIBS
31155	saved_CFLAGS=$CFLAGS
31156	neta_cv_have_openssl=no
31157
31158		[ -n "$atalk_libname" ] || { { echo "$as_me:$LINENO: error: internal error, atalk_libname undefined" >&5
31159echo "$as_me: error: internal error, atalk_libname undefined" >&2;}
31160   { (exit 1); exit 1; }; }
31161
31162	if test "$tryssl" = "yes"; then
31163		{ echo "$as_me:$LINENO: checking for SSL" >&5
31164echo $ECHO_N "checking for SSL... $ECHO_C" >&6; }
31165		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
31166			if test -f "$ssldir/include/openssl/cast.h" ; then
31167				SSL_CFLAGS="$SSL_CFLAGS -I$ssldir/include -I$ssldir/include/openssl"
31168				SSL_LIBS="$SSL_LIBS -L$ssldir/$atalk_libname -L$ssldir -lcrypto"
31169				if test "x$need_dash_r" = "xyes"; then
31170					SSL_LIBS="$SSL_LIBS -R$ssldir/$atalk_libname -R$ssldir"
31171				fi
31172				{ echo "$as_me:$LINENO: result: $ssldir (enabling RANDNUM and DHX support)" >&5
31173echo "${ECHO_T}$ssldir (enabling RANDNUM and DHX support)" >&6; }
31174				CFLAGS="$CFLAGS $SSL_CFLAGS"
31175				LIBS="$LIBS $SSL_LIBS"
31176
31177
31178{ echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
31179echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
31180if test "${ac_cv_lib_crypto_main+set}" = set; then
31181  echo $ECHO_N "(cached) $ECHO_C" >&6
31182else
31183  ac_check_lib_save_LIBS=$LIBS
31184LIBS="-lcrypto  $LIBS"
31185cat >conftest.$ac_ext <<_ACEOF
31186/* confdefs.h.  */
31187_ACEOF
31188cat confdefs.h >>conftest.$ac_ext
31189cat >>conftest.$ac_ext <<_ACEOF
31190/* end confdefs.h.  */
31191
31192
31193int
31194main ()
31195{
31196return main ();
31197  ;
31198  return 0;
31199}
31200_ACEOF
31201rm -f conftest.$ac_objext conftest$ac_exeext
31202if { (ac_try="$ac_link"
31203case "(($ac_try" in
31204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31205  *) ac_try_echo=$ac_try;;
31206esac
31207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31208  (eval "$ac_link") 2>conftest.er1
31209  ac_status=$?
31210  grep -v '^ *+' conftest.er1 >conftest.err
31211  rm -f conftest.er1
31212  cat conftest.err >&5
31213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31214  (exit $ac_status); } && {
31215	 test -z "$ac_c_werror_flag" ||
31216	 test ! -s conftest.err
31217       } && test -s conftest$ac_exeext &&
31218       $as_test_x conftest$ac_exeext; then
31219  ac_cv_lib_crypto_main=yes
31220else
31221  echo "$as_me: failed program was:" >&5
31222sed 's/^/| /' conftest.$ac_ext >&5
31223
31224	ac_cv_lib_crypto_main=no
31225fi
31226
31227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31228      conftest$ac_exeext conftest.$ac_ext
31229LIBS=$ac_check_lib_save_LIBS
31230fi
31231{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
31232echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
31233if test $ac_cv_lib_crypto_main = yes; then
31234  cat >>confdefs.h <<_ACEOF
31235#define HAVE_LIBCRYPTO 1
31236_ACEOF
31237
31238  LIBS="-lcrypto $LIBS"
31239
31240fi
31241
31242
31243{ echo "$as_me:$LINENO: checking for main in -ldes" >&5
31244echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6; }
31245if test "${ac_cv_lib_des_main+set}" = set; then
31246  echo $ECHO_N "(cached) $ECHO_C" >&6
31247else
31248  ac_check_lib_save_LIBS=$LIBS
31249LIBS="-ldes  $LIBS"
31250cat >conftest.$ac_ext <<_ACEOF
31251/* confdefs.h.  */
31252_ACEOF
31253cat confdefs.h >>conftest.$ac_ext
31254cat >>conftest.$ac_ext <<_ACEOF
31255/* end confdefs.h.  */
31256
31257
31258int
31259main ()
31260{
31261return main ();
31262  ;
31263  return 0;
31264}
31265_ACEOF
31266rm -f conftest.$ac_objext conftest$ac_exeext
31267if { (ac_try="$ac_link"
31268case "(($ac_try" in
31269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31270  *) ac_try_echo=$ac_try;;
31271esac
31272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31273  (eval "$ac_link") 2>conftest.er1
31274  ac_status=$?
31275  grep -v '^ *+' conftest.er1 >conftest.err
31276  rm -f conftest.er1
31277  cat conftest.err >&5
31278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279  (exit $ac_status); } && {
31280	 test -z "$ac_c_werror_flag" ||
31281	 test ! -s conftest.err
31282       } && test -s conftest$ac_exeext &&
31283       $as_test_x conftest$ac_exeext; then
31284  ac_cv_lib_des_main=yes
31285else
31286  echo "$as_me: failed program was:" >&5
31287sed 's/^/| /' conftest.$ac_ext >&5
31288
31289	ac_cv_lib_des_main=no
31290fi
31291
31292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31293      conftest$ac_exeext conftest.$ac_ext
31294LIBS=$ac_check_lib_save_LIBS
31295fi
31296{ echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
31297echo "${ECHO_T}$ac_cv_lib_des_main" >&6; }
31298if test $ac_cv_lib_des_main = yes; then
31299  cat >>confdefs.h <<_ACEOF
31300#define HAVE_LIBDES 1
31301_ACEOF
31302
31303  LIBS="-ldes $LIBS"
31304
31305fi
31306
31307
31308
31309cat >>confdefs.h <<\_ACEOF
31310#define OPENSSL_DHX 1
31311_ACEOF
31312
31313
31314cat >>confdefs.h <<\_ACEOF
31315#define UAM_DHX 1
31316_ACEOF
31317
31318				neta_cv_have_openssl=yes
31319				neta_cv_compile_dhx=yes
31320				CFLAGS=$saved_CFLAGS
31321				LIBS=$saved_LIBS
31322				break
31323			fi
31324		done
31325		if test "x$neta_cv_have_openssl" = "xno"; then
31326			{ echo "$as_me:$LINENO: result: no" >&5
31327echo "${ECHO_T}no" >&6; }
31328		fi
31329	fi
31330
31331  ac_new_flags=""
31332  for i in $SSL_CFLAGS; do
31333    case $i in
31334    -I/usr/include|-I/usr/include/) ;;
31335    *) ac_new_flags="$ac_new_flags $i" ;;
31336    esac
31337  done
31338  SSL_CFLAGS=$ac_new_flags
31339
31340
31341  ac_new_flags=""
31342  for i in $SSL_LIBS; do
31343    case $i in
31344    -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
31345    *) ac_new_flags="$ac_new_flags $i" ;;
31346    esac
31347  done
31348  SSL_LIBS=$ac_new_flags
31349
31350
31351
31352	LIBS=$saved_LIBS
31353
31354
31355if test "x$bdb_required" = "xyes"; then
31356
31357    trybdbdir=""
31358    dobdbsearch=yes
31359    bdb_search_dirs="/usr/local /usr"
31360    search_subdirs="/ /db5 /db5.1 /db51 /db5.0 /db50 /db4.8 /db48 /db4.7 /db47 /db4.6 /db46 /db4"
31361
31362    bdbfound=no
31363    savedcflags="$CFLAGS"
31364    savedldflags="$LDFLAGS"
31365    savedcppflags="$CPPFLAGS"
31366    savedlibs="$LIBS"
31367    saved_shlibpath_var=$shlibpath_var
31368
31369        DB_MAJOR_REQ=4
31370    DB_MINOR_REQ=6
31371    DB_PATCH_REQ=0
31372
31373        [ -n "$atalk_libname" ] || { { echo "$as_me:$LINENO: error: internal error, atalk_libname undefined" >&5
31374echo "$as_me: error: internal error, atalk_libname undefined" >&2;}
31375   { (exit 1); exit 1; }; }
31376    saved_atalk_libname=$atalk_libname
31377
31378
31379cat >>confdefs.h <<_ACEOF
31380#define DB_MAJOR_REQ ${DB_MAJOR_REQ}
31381_ACEOF
31382
31383
31384cat >>confdefs.h <<_ACEOF
31385#define DB_MINOR_REQ ${DB_MINOR_REQ}
31386_ACEOF
31387
31388
31389cat >>confdefs.h <<_ACEOF
31390#define DB_PATCH_REQ ${DB_PATCH_REQ}
31391_ACEOF
31392
31393
31394
31395# Check whether --with-bdb was given.
31396if test "${with_bdb+set}" = set; then
31397  withval=$with_bdb; if test "x$withval" = "xno"; then
31398            dobdbsearch=no
31399        elif test "x$withval" = "xyes"; then
31400            dobdbsearch=yes
31401        else
31402            bdb_search_dirs="$withval"
31403        fi
31404
31405fi
31406
31407
31408    if test "x$dobdbsearch" = "xyes"; then
31409        for bdbdir in $bdb_search_dirs; do
31410            if test $bdbfound = "yes"; then
31411                break;
31412            fi
31413            for subdir in ${search_subdirs}; do
31414                { echo "$as_me:$LINENO: checking for Berkeley DB headers in ${bdbdir}/include${subdir}" >&5
31415echo $ECHO_N "checking for Berkeley DB headers in ${bdbdir}/include${subdir}... $ECHO_C" >&6; }
31416                                if test -f "${bdbdir}/include${subdir}/db.h" ; then
31417                    { echo "$as_me:$LINENO: result: yes" >&5
31418echo "${ECHO_T}yes" >&6; }
31419
31420
31421        { echo "$as_me:$LINENO: checking ${bdbdir}/include${subdir}/db.h version >= ${DB_MAJOR_REQ}.${DB_MINOR_REQ}.${DB_PATCH_REQ}" >&5
31422echo $ECHO_N "checking ${bdbdir}/include${subdir}/db.h version >= ${DB_MAJOR_REQ}.${DB_MINOR_REQ}.${DB_PATCH_REQ}... $ECHO_C" >&6; }
31423
31424    atalk_cv_bdb_MAJOR=`grep DB_VERSION_MAJOR "${bdbdir}/include${subdir}/db.h" | cut -f 3`
31425    atalk_cv_bdb_MINOR=`grep DB_VERSION_MINOR "${bdbdir}/include${subdir}/db.h" | cut -f 3`
31426
31427    if test $atalk_cv_bdb_MAJOR -gt $DB_MAJOR_REQ ; then
31428        { echo "$as_me:$LINENO: result: yes" >&5
31429echo "${ECHO_T}yes" >&6; }
31430        atalk_cv_bdbheader=yes
31431    elif test $DB_MAJOR_REQ -gt $atalk_cv_bdb_MAJOR ; then
31432        { echo "$as_me:$LINENO: result: no" >&5
31433echo "${ECHO_T}no" >&6; }
31434        atalk_cv_bdbheader=no
31435    elif test $DB_MINOR_REQ -gt $atalk_cv_bdb_MINOR ; then
31436        { echo "$as_me:$LINENO: result: no" >&5
31437echo "${ECHO_T}no" >&6; }
31438        atalk_cv_bdbheader=no
31439    else
31440        { echo "$as_me:$LINENO: result: yes" >&5
31441echo "${ECHO_T}yes" >&6; }
31442        atalk_cv_bdbheader=yes
31443    fi
31444
31445
31446                    if test ${atalk_cv_bdbheader} != "no"; then
31447                        bdblibdir="${bdbdir}/${atalk_libname}"
31448                        bdbbindir="${bdbdir}/bin"
31449
31450                        CPPFLAGS="-I${bdbdir}/include${subdir} $CPPFLAGS"
31451                        LDFLAGS="-L$bdblibdir $LDFLAGS"
31452
31453                                                                                                                                                                        eval export $shlibpath_var=$bdblibdir
31454
31455    atalk_cv_bdb_version=no
31456    maj=$atalk_cv_bdb_MAJOR
31457    min=$atalk_cv_bdb_MINOR
31458    atalk_cv_bdb_try_libs="db$maj$min db$maj.$min db-$maj$min db-$maj.$min db$maj-$maj.$min db"
31459
31460    for lib in $atalk_cv_bdb_try_libs ; do
31461        LIBS="-l$lib $savedlibs"
31462        { echo "$as_me:$LINENO: checking Berkeley DB library (-l$lib)" >&5
31463echo $ECHO_N "checking Berkeley DB library (-l$lib)... $ECHO_C" >&6; }
31464        if test "$cross_compiling" = yes; then
31465
31466            bdblibs=`ls $bdblibdir/lib$lib.* 2>/dev/null`
31467            for bdblib in $bdblibs ; do
31468                echo "Testing for lib file $bdblib" >&5
31469                if test -f "$bdblib" ; then
31470                    { echo "$as_me:$LINENO: result: yes (cross-compiling)" >&5
31471echo "${ECHO_T}yes (cross-compiling)" >&6; }
31472                    atalk_cv_bdb_version="yes"
31473                    atalk_cv_lib_db="-l$lib"
31474                    break
31475                fi
31476            done
31477            if test "x$atalk_cv_bdb_version" = "xyes" ; then
31478                break
31479            fi
31480            { echo "$as_me:$LINENO: result: no (cross-compiling)" >&5
31481echo "${ECHO_T}no (cross-compiling)" >&6; }
31482
31483else
31484  cat >conftest.$ac_ext <<_ACEOF
31485/* confdefs.h.  */
31486_ACEOF
31487cat confdefs.h >>conftest.$ac_ext
31488cat >>conftest.$ac_ext <<_ACEOF
31489/* end confdefs.h.  */
31490
31491            #include <stdio.h>
31492            #include <db.h>
31493            int main(void) {
31494                int major, minor, patch;
31495                char *version_str;
31496                version_str = db_version(&major, &minor, &patch);
31497                if ((major*100 + minor*10 + patch) < (DB_MAJOR_REQ*100 + DB_MINOR_REQ*10 + DB_PATCH_REQ)) {
31498                    printf("linking wrong library version (%d.%d.%d), ",major, minor, patch);
31499                    return (2);
31500                }
31501                if ( major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR || patch != DB_VERSION_PATCH) {
31502                    printf("header/library version mismatch (%d.%d.%d/%d.%d.%d), ",
31503                        DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH, major, minor, patch);
31504                    return (3);
31505                }
31506                printf("%d.%d.%d ... ",major, minor, patch);
31507                return (0);
31508            }
31509
31510_ACEOF
31511rm -f conftest$ac_exeext
31512if { (ac_try="$ac_link"
31513case "(($ac_try" in
31514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515  *) ac_try_echo=$ac_try;;
31516esac
31517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518  (eval "$ac_link") 2>&5
31519  ac_status=$?
31520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31522  { (case "(($ac_try" in
31523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31524  *) ac_try_echo=$ac_try;;
31525esac
31526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31527  (eval "$ac_try") 2>&5
31528  ac_status=$?
31529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530  (exit $ac_status); }; }; then
31531
31532            { echo "$as_me:$LINENO: result: yes" >&5
31533echo "${ECHO_T}yes" >&6; }
31534            atalk_cv_bdb_version="yes"
31535            atalk_cv_lib_db="-l$lib"
31536            break
31537
31538else
31539  echo "$as_me: program exited with status $ac_status" >&5
31540echo "$as_me: failed program was:" >&5
31541sed 's/^/| /' conftest.$ac_ext >&5
31542
31543( exit $ac_status )
31544
31545            { echo "$as_me:$LINENO: result: no" >&5
31546echo "${ECHO_T}no" >&6; }
31547
31548fi
31549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31550fi
31551
31552
31553    done
31554    LIBS="$savedlibs"
31555
31556                        eval export $shlibpath_var=$saved_shlibpath_var
31557
31558                        if test x"${atalk_cv_bdb_version}" = x"yes"; then
31559                            BDB_CFLAGS="-I${bdbdir}/include${subdir}"
31560                            BDB_LIBS="-L${bdblibdir} ${atalk_cv_lib_db}"
31561                            BDB_BIN="$bdbbindir"
31562                            BDB_PATH="$bdbdir"
31563                            bdbfound=yes
31564                            break;
31565                        fi
31566
31567                                                                                                if test x"$atalk_libname" != x"lib" ; then
31568                           bdblibdir="${bdbdir}/lib"
31569                           bdbbindir="${bdbdir}/bin"
31570
31571                           CPPFLAGS="-I${bdbdir}/include${subdir} $CPPFLAGS"
31572                           LDFLAGS="-L$bdblibdir $LDFLAGS"
31573
31574                           eval export $shlibpath_var=$bdblibdir
31575
31576    atalk_cv_bdb_version=no
31577    maj=$atalk_cv_bdb_MAJOR
31578    min=$atalk_cv_bdb_MINOR
31579    atalk_cv_bdb_try_libs="db$maj$min db$maj.$min db-$maj$min db-$maj.$min db$maj-$maj.$min db"
31580
31581    for lib in $atalk_cv_bdb_try_libs ; do
31582        LIBS="-l$lib $savedlibs"
31583        { echo "$as_me:$LINENO: checking Berkeley DB library (-l$lib)" >&5
31584echo $ECHO_N "checking Berkeley DB library (-l$lib)... $ECHO_C" >&6; }
31585        if test "$cross_compiling" = yes; then
31586
31587            bdblibs=`ls $bdblibdir/lib$lib.* 2>/dev/null`
31588            for bdblib in $bdblibs ; do
31589                echo "Testing for lib file $bdblib" >&5
31590                if test -f "$bdblib" ; then
31591                    { echo "$as_me:$LINENO: result: yes (cross-compiling)" >&5
31592echo "${ECHO_T}yes (cross-compiling)" >&6; }
31593                    atalk_cv_bdb_version="yes"
31594                    atalk_cv_lib_db="-l$lib"
31595                    break
31596                fi
31597            done
31598            if test "x$atalk_cv_bdb_version" = "xyes" ; then
31599                break
31600            fi
31601            { echo "$as_me:$LINENO: result: no (cross-compiling)" >&5
31602echo "${ECHO_T}no (cross-compiling)" >&6; }
31603
31604else
31605  cat >conftest.$ac_ext <<_ACEOF
31606/* confdefs.h.  */
31607_ACEOF
31608cat confdefs.h >>conftest.$ac_ext
31609cat >>conftest.$ac_ext <<_ACEOF
31610/* end confdefs.h.  */
31611
31612            #include <stdio.h>
31613            #include <db.h>
31614            int main(void) {
31615                int major, minor, patch;
31616                char *version_str;
31617                version_str = db_version(&major, &minor, &patch);
31618                if ((major*100 + minor*10 + patch) < (DB_MAJOR_REQ*100 + DB_MINOR_REQ*10 + DB_PATCH_REQ)) {
31619                    printf("linking wrong library version (%d.%d.%d), ",major, minor, patch);
31620                    return (2);
31621                }
31622                if ( major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR || patch != DB_VERSION_PATCH) {
31623                    printf("header/library version mismatch (%d.%d.%d/%d.%d.%d), ",
31624                        DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH, major, minor, patch);
31625                    return (3);
31626                }
31627                printf("%d.%d.%d ... ",major, minor, patch);
31628                return (0);
31629            }
31630
31631_ACEOF
31632rm -f conftest$ac_exeext
31633if { (ac_try="$ac_link"
31634case "(($ac_try" in
31635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31636  *) ac_try_echo=$ac_try;;
31637esac
31638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31639  (eval "$ac_link") 2>&5
31640  ac_status=$?
31641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31643  { (case "(($ac_try" in
31644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31645  *) ac_try_echo=$ac_try;;
31646esac
31647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31648  (eval "$ac_try") 2>&5
31649  ac_status=$?
31650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651  (exit $ac_status); }; }; then
31652
31653            { echo "$as_me:$LINENO: result: yes" >&5
31654echo "${ECHO_T}yes" >&6; }
31655            atalk_cv_bdb_version="yes"
31656            atalk_cv_lib_db="-l$lib"
31657            break
31658
31659else
31660  echo "$as_me: program exited with status $ac_status" >&5
31661echo "$as_me: failed program was:" >&5
31662sed 's/^/| /' conftest.$ac_ext >&5
31663
31664( exit $ac_status )
31665
31666            { echo "$as_me:$LINENO: result: no" >&5
31667echo "${ECHO_T}no" >&6; }
31668
31669fi
31670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31671fi
31672
31673
31674    done
31675    LIBS="$savedlibs"
31676
31677                           eval export $shlibpath_var=$saved_shlibpath_var
31678
31679                           if test x"${atalk_cv_bdb_version}" = x"yes"; then
31680                              BDB_CFLAGS="-I${bdbdir}/include${subdir}"
31681                              BDB_LIBS="-L${bdblibdir} ${atalk_cv_lib_db}"
31682                              BDB_BIN="$bdbbindir"
31683                              BDB_PATH="$bdbdir"
31684                              bdbfound=yes
31685                              break;
31686                           fi
31687                        fi
31688                    fi
31689                    CFLAGS="$savedcflags"
31690                    LDFLAGS="$savedldflags"
31691                    CPPFLAGS="$savedcppflags"
31692                    LIBS="$savedlibs"
31693                else
31694                    { echo "$as_me:$LINENO: result: no" >&5
31695echo "${ECHO_T}no" >&6; }
31696                fi
31697            done
31698        done
31699    fi
31700
31701    CFLAGS="$savedcflags"
31702    LDFLAGS="$savedldflags"
31703    CPPFLAGS="$savedcppflags"
31704    LIBS="$savedlibs"
31705    atalk_libname=$saved_atalk_libname
31706
31707    if test "x$bdbfound" = "xyes"; then
31708        :
31709    else
31710
31711		{ echo "$as_me:$LINENO: result: " >&5
31712echo "${ECHO_T}" >&6; }
31713		{ echo "$as_me:$LINENO: result: Make sure you have the required Berkeley DB libraries AND headers installed." >&5
31714echo "${ECHO_T}Make sure you have the required Berkeley DB libraries AND headers installed." >&6; }
31715		{ echo "$as_me:$LINENO: result: You can download the latest version from http://www.sleepycat.com." >&5
31716echo "${ECHO_T}You can download the latest version from http://www.sleepycat.com." >&6; }
31717		{ echo "$as_me:$LINENO: result: If you have installed BDB in a non standard location use the" >&5
31718echo "${ECHO_T}If you have installed BDB in a non standard location use the" >&6; }
31719		{ echo "$as_me:$LINENO: result: --with-bdb=/path/to/bdb configure option and make sure" >&5
31720echo "${ECHO_T}--with-bdb=/path/to/bdb configure option and make sure" >&6; }
31721		{ echo "$as_me:$LINENO: result: your linker is configured to check for libraries there." >&5
31722echo "${ECHO_T}your linker is configured to check for libraries there." >&6; }
31723		{ { echo "$as_me:$LINENO: error: Berkeley DB library required but not found!" >&5
31724echo "$as_me: error: Berkeley DB library required but not found!" >&2;}
31725   { (exit 1); exit 1; }; }
31726
31727    fi
31728
31729
31730  ac_new_flags=""
31731  for i in $BDB_CFLAGS; do
31732    case $i in
31733    -I/usr/include|-I/usr/include/) ;;
31734    *) ac_new_flags="$ac_new_flags $i" ;;
31735    esac
31736  done
31737  BDB_CFLAGS=$ac_new_flags
31738
31739
31740  ac_new_flags=""
31741  for i in $BDB_LIBS; do
31742    case $i in
31743    -L/usr/lib|-L/usr/lib/|-L/usr|-L/usr/) ;;
31744    *) ac_new_flags="$ac_new_flags $i" ;;
31745    esac
31746  done
31747  BDB_LIBS=$ac_new_flags
31748
31749
31750
31751
31752
31753
31754fi
31755
31756
31757
31758	saveLIBS=$LIBS
31759	LIBS=""
31760	CRYPT_LIBS=""
31761
31762
31763for ac_header in crypt.h
31764do
31765as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31767  { echo "$as_me:$LINENO: checking for $ac_header" >&5
31768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31770  echo $ECHO_N "(cached) $ECHO_C" >&6
31771fi
31772ac_res=`eval echo '${'$as_ac_Header'}'`
31773	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31774echo "${ECHO_T}$ac_res" >&6; }
31775else
31776  # Is the header compilable?
31777{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
31778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31779cat >conftest.$ac_ext <<_ACEOF
31780/* confdefs.h.  */
31781_ACEOF
31782cat confdefs.h >>conftest.$ac_ext
31783cat >>conftest.$ac_ext <<_ACEOF
31784/* end confdefs.h.  */
31785$ac_includes_default
31786#include <$ac_header>
31787_ACEOF
31788rm -f conftest.$ac_objext
31789if { (ac_try="$ac_compile"
31790case "(($ac_try" in
31791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31792  *) ac_try_echo=$ac_try;;
31793esac
31794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31795  (eval "$ac_compile") 2>conftest.er1
31796  ac_status=$?
31797  grep -v '^ *+' conftest.er1 >conftest.err
31798  rm -f conftest.er1
31799  cat conftest.err >&5
31800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801  (exit $ac_status); } && {
31802	 test -z "$ac_c_werror_flag" ||
31803	 test ! -s conftest.err
31804       } && test -s conftest.$ac_objext; then
31805  ac_header_compiler=yes
31806else
31807  echo "$as_me: failed program was:" >&5
31808sed 's/^/| /' conftest.$ac_ext >&5
31809
31810	ac_header_compiler=no
31811fi
31812
31813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31814{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31815echo "${ECHO_T}$ac_header_compiler" >&6; }
31816
31817# Is the header present?
31818{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31819echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31820cat >conftest.$ac_ext <<_ACEOF
31821/* confdefs.h.  */
31822_ACEOF
31823cat confdefs.h >>conftest.$ac_ext
31824cat >>conftest.$ac_ext <<_ACEOF
31825/* end confdefs.h.  */
31826#include <$ac_header>
31827_ACEOF
31828if { (ac_try="$ac_cpp conftest.$ac_ext"
31829case "(($ac_try" in
31830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31831  *) ac_try_echo=$ac_try;;
31832esac
31833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31834  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31835  ac_status=$?
31836  grep -v '^ *+' conftest.er1 >conftest.err
31837  rm -f conftest.er1
31838  cat conftest.err >&5
31839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840  (exit $ac_status); } >/dev/null && {
31841	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31842	 test ! -s conftest.err
31843       }; then
31844  ac_header_preproc=yes
31845else
31846  echo "$as_me: failed program was:" >&5
31847sed 's/^/| /' conftest.$ac_ext >&5
31848
31849  ac_header_preproc=no
31850fi
31851
31852rm -f conftest.err conftest.$ac_ext
31853{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31854echo "${ECHO_T}$ac_header_preproc" >&6; }
31855
31856# So?  What about this header?
31857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31858  yes:no: )
31859    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31861    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31863    ac_header_preproc=yes
31864    ;;
31865  no:yes:* )
31866    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31868    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31869echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31870    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31872    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31873echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31874    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31876    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31878
31879    ;;
31880esac
31881{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31884  echo $ECHO_N "(cached) $ECHO_C" >&6
31885else
31886  eval "$as_ac_Header=\$ac_header_preproc"
31887fi
31888ac_res=`eval echo '${'$as_ac_Header'}'`
31889	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31890echo "${ECHO_T}$ac_res" >&6; }
31891
31892fi
31893if test `eval echo '${'$as_ac_Header'}'` = yes; then
31894  cat >>confdefs.h <<_ACEOF
31895#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31896_ACEOF
31897
31898fi
31899
31900done
31901
31902
31903{ echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
31904echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6; }
31905if test "${ac_cv_lib_crypt_main+set}" = set; then
31906  echo $ECHO_N "(cached) $ECHO_C" >&6
31907else
31908  ac_check_lib_save_LIBS=$LIBS
31909LIBS="-lcrypt  $LIBS"
31910cat >conftest.$ac_ext <<_ACEOF
31911/* confdefs.h.  */
31912_ACEOF
31913cat confdefs.h >>conftest.$ac_ext
31914cat >>conftest.$ac_ext <<_ACEOF
31915/* end confdefs.h.  */
31916
31917
31918int
31919main ()
31920{
31921return main ();
31922  ;
31923  return 0;
31924}
31925_ACEOF
31926rm -f conftest.$ac_objext conftest$ac_exeext
31927if { (ac_try="$ac_link"
31928case "(($ac_try" in
31929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31930  *) ac_try_echo=$ac_try;;
31931esac
31932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31933  (eval "$ac_link") 2>conftest.er1
31934  ac_status=$?
31935  grep -v '^ *+' conftest.er1 >conftest.err
31936  rm -f conftest.er1
31937  cat conftest.err >&5
31938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939  (exit $ac_status); } && {
31940	 test -z "$ac_c_werror_flag" ||
31941	 test ! -s conftest.err
31942       } && test -s conftest$ac_exeext &&
31943       $as_test_x conftest$ac_exeext; then
31944  ac_cv_lib_crypt_main=yes
31945else
31946  echo "$as_me: failed program was:" >&5
31947sed 's/^/| /' conftest.$ac_ext >&5
31948
31949	ac_cv_lib_crypt_main=no
31950fi
31951
31952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31953      conftest$ac_exeext conftest.$ac_ext
31954LIBS=$ac_check_lib_save_LIBS
31955fi
31956{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
31957echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6; }
31958if test $ac_cv_lib_crypt_main = yes; then
31959  cat >>confdefs.h <<_ACEOF
31960#define HAVE_LIBCRYPT 1
31961_ACEOF
31962
31963  LIBS="-lcrypt $LIBS"
31964
31965fi
31966
31967
31968	CRYPT_LIBS=$LIBS
31969	LIBS=$saveLIBS
31970
31971
31972
31973
31974
31975{ echo "$as_me:$LINENO: checking whether the PGP UAM should be build" >&5
31976echo $ECHO_N "checking whether the PGP UAM should be build... $ECHO_C" >&6; }
31977# Check whether --enable-pgp-uam was given.
31978if test "${enable_pgp_uam+set}" = set; then
31979  enableval=$enable_pgp_uam;
31980	if test "$enableval" = "yes"; then
31981		if test "x$neta_cv_have_openssl" = "xyes"; then
31982
31983cat >>confdefs.h <<\_ACEOF
31984#define UAM_PGP 1
31985_ACEOF
31986
31987			compile_pgp=yes
31988			{ echo "$as_me:$LINENO: result: yes" >&5
31989echo "${ECHO_T}yes" >&6; }
31990		else
31991			{ echo "$as_me:$LINENO: result: no" >&5
31992echo "${ECHO_T}no" >&6; }
31993		fi
31994	fi
31995
31996else
31997
31998		{ echo "$as_me:$LINENO: result: no" >&5
31999echo "${ECHO_T}no" >&6; }
32000
32001
32002fi
32003
32004
32005
32006{ echo "$as_me:$LINENO: checking whether the Kerberos IV UAM should be build" >&5
32007echo $ECHO_N "checking whether the Kerberos IV UAM should be build... $ECHO_C" >&6; }
32008# Check whether --enable-krb4-uam was given.
32009if test "${enable_krb4_uam+set}" = set; then
32010  enableval=$enable_krb4_uam;
32011	if test "$enableval" = "yes"; then
32012
32013cat >>confdefs.h <<\_ACEOF
32014#define UAM_KRB4 1
32015_ACEOF
32016
32017		compile_kerberos=yes
32018		{ echo "$as_me:$LINENO: result: yes" >&5
32019echo "${ECHO_T}yes" >&6; }
32020	else
32021		{ echo "$as_me:$LINENO: result: no" >&5
32022echo "${ECHO_T}no" >&6; }
32023	fi
32024
32025else
32026
32027		{ echo "$as_me:$LINENO: result: no" >&5
32028echo "${ECHO_T}no" >&6; }
32029
32030
32031fi
32032
32033
32034
32035netatalk_cv_build_krb5_uam=no
32036# Check whether --enable-krbV-uam was given.
32037if test "${enable_krbV_uam+set}" = set; then
32038  enableval=$enable_krbV_uam;
32039		if test x"$enableval" = x"yes"; then
32040
32041	FOUND_GSSAPI=no
32042	GSSAPI_LIBS=""
32043	GSSAPI_CFLAGS=""
32044
32045
32046# Check whether --with-gssapi was given.
32047if test "${with_gssapi+set}" = set; then
32048  withval=$with_gssapi; compilegssapi=$withval
32049else
32050  compilegssapi=auto
32051
32052fi
32053
32054
32055	if test x"$compilegssapi" != x"no"; then
32056
32057                if test "x$compilegssapi" != "xyes" -a "x$compilegssapi" != "xauto"; then
32058            		GSSAPI_CFLAGS="-I$withval/include"
32059            		GSSAPI_CPPFLAGS="-I$withval/include"
32060            		GSSAPI_LDFLAGS="-L$withval/${atalk_libname}"
32061            		FOUND_GSSAPI=yes
32062			{ echo "$as_me:$LINENO: checking checking for GSSAPI support in" >&5
32063echo $ECHO_N "checking checking for GSSAPI support in... $ECHO_C" >&6; }
32064			{ echo "$as_me:$LINENO: result: $compilegssapi" >&5
32065echo "${ECHO_T}$compilegssapi" >&6; }
32066                fi
32067
32068
32069  	  # Do no harm to the values of CFLAGS and LIBS while testing for
32070	  # Kerberos support.
32071
32072		ac_save_CFLAGS=$CFLAGS
32073		ac_save_CPPFLAGS=$CPPFLAGS
32074		ac_save_LDFLAGS=$LDFLAGS
32075		ac_save_LIBS=$LIBS
32076
32077	if test x$FOUND_GSSAPI = x"no"; then
32078	  #################################################
32079	  # check for krb5-config from recent MIT and Heimdal kerberos 5
32080	  # Extract the first word of "krb5-config", so it can be a program name with args.
32081set dummy krb5-config; ac_word=$2
32082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
32083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32084if test "${ac_cv_path_KRB5_CONFIG+set}" = set; then
32085  echo $ECHO_N "(cached) $ECHO_C" >&6
32086else
32087  case $KRB5_CONFIG in
32088  [\\/]* | ?:[\\/]*)
32089  ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
32090  ;;
32091  *)
32092  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32093for as_dir in $PATH
32094do
32095  IFS=$as_save_IFS
32096  test -z "$as_dir" && as_dir=.
32097  for ac_exec_ext in '' $ac_executable_extensions; do
32098  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32099    ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32101    break 2
32102  fi
32103done
32104done
32105IFS=$as_save_IFS
32106
32107  ;;
32108esac
32109fi
32110KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
32111if test -n "$KRB5_CONFIG"; then
32112  { echo "$as_me:$LINENO: result: $KRB5_CONFIG" >&5
32113echo "${ECHO_T}$KRB5_CONFIG" >&6; }
32114else
32115  { echo "$as_me:$LINENO: result: no" >&5
32116echo "${ECHO_T}no" >&6; }
32117fi
32118
32119
32120	  { echo "$as_me:$LINENO: checking for working krb5-config" >&5
32121echo $ECHO_N "checking for working krb5-config... $ECHO_C" >&6; }
32122	  if test -x "$KRB5_CONFIG"; then
32123	    ac_save_CFLAGS=$CFLAGS
32124	    CFLAGS="";export CFLAGS
32125	    ac_save_LDFLAGS=$LDFLAGS
32126	    LDFLAGS="";export LDFLAGS
32127	    GSSAPI_LIBS="`$KRB5_CONFIG --libs gssapi`"
32128	    GSSAPI_CFLAGS="`$KRB5_CONFIG --cflags | sed s/@INCLUDE_des@//`"
32129	    GSSAPI_CPPFLAGS="`$KRB5_CONFIG --cflags | sed s/@INCLUDE_des@//`"
32130	    CFLAGS=$ac_save_CFLAGS;export CFLAGS
32131	    LDFLAGS=$ac_save_LDFLAGS;export LDFLAGS
32132	    FOUND_GSSAPI=yes
32133	    { echo "$as_me:$LINENO: result: yes" >&5
32134echo "${ECHO_T}yes" >&6; }
32135	  else
32136	    { echo "$as_me:$LINENO: result: no. Fallback to previous krb5 detection strategy" >&5
32137echo "${ECHO_T}no. Fallback to previous krb5 detection strategy" >&6; }
32138	  fi
32139	fi
32140
32141	if test x$FOUND_GSSAPI = x"no"; then
32142	#################################################
32143	# see if this box has the SuSE location for the heimdal krb implementation
32144	  { echo "$as_me:$LINENO: checking for /usr/include/heimdal" >&5
32145echo $ECHO_N "checking for /usr/include/heimdal... $ECHO_C" >&6; }
32146	  if test -d /usr/include/heimdal; then
32147	    if test -f /usr/lib/heimdal/lib/libkrb5.a; then
32148		GSSAPI_CFLAGS="-I/usr/include/heimdal"
32149		GSSAPI_CPPFLAGS="-I/usr/include/heimdal"
32150		GSSAPI_LDFLAGS="-L/usr/lib/heimdal/lib"
32151		{ echo "$as_me:$LINENO: result: yes" >&5
32152echo "${ECHO_T}yes" >&6; }
32153            	FOUND_GSSAPI=yes
32154	    else
32155		GSSAPI_CFLAGS="-I/usr/include/heimdal"
32156		GSSAPI_CPPFLAGS="-I/usr/include/heimdal"
32157		{ echo "$as_me:$LINENO: result: yes" >&5
32158echo "${ECHO_T}yes" >&6; }
32159            	FOUND_GSSAPI=yes
32160	    fi
32161	  else
32162	    { echo "$as_me:$LINENO: result: no" >&5
32163echo "${ECHO_T}no" >&6; }
32164	  fi
32165	fi
32166
32167	if test x$FOUND_GSSAPI = x"no"; then
32168	#################################################
32169	# see if this box has the RedHat location for kerberos
32170	  { echo "$as_me:$LINENO: checking for /usr/kerberos" >&5
32171echo $ECHO_N "checking for /usr/kerberos... $ECHO_C" >&6; }
32172	  if test -d /usr/kerberos -a -f /usr/kerberos/lib/libkrb5.a; then
32173		GSSAPI_LDFLAGS="-L/usr/kerberos/lib"
32174		GSSAPI_CFLAGS="-I/usr/kerberos/include"
32175		GSSAPI_CPPFLAGS="-I/usr/kerberos/include"
32176		{ echo "$as_me:$LINENO: result: yes" >&5
32177echo "${ECHO_T}yes" >&6; }
32178	  else
32179		{ echo "$as_me:$LINENO: result: no" >&5
32180echo "${ECHO_T}no" >&6; }
32181	  fi
32182	fi
32183
32184	CFLAGS="$CFLAGS $GSSAPI_CFLAGS"
32185	CPPFLAGS="$CPPFLAGS $GSSAPI_CPPFLAGS"
32186	LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
32187	LIBS="$GSSAPI_LIBS"
32188
32189
32190	# check for gssapi headers
32191
32192	gss_headers_found=no
32193
32194
32195
32196
32197for ac_header in gssapi.h gssapi/gssapi_generic.h gssapi/gssapi.h gssapi/gssapi_krb5.h
32198do
32199as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32201  { echo "$as_me:$LINENO: checking for $ac_header" >&5
32202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32204  echo $ECHO_N "(cached) $ECHO_C" >&6
32205fi
32206ac_res=`eval echo '${'$as_ac_Header'}'`
32207	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32208echo "${ECHO_T}$ac_res" >&6; }
32209else
32210  # Is the header compilable?
32211{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32212echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32213cat >conftest.$ac_ext <<_ACEOF
32214/* confdefs.h.  */
32215_ACEOF
32216cat confdefs.h >>conftest.$ac_ext
32217cat >>conftest.$ac_ext <<_ACEOF
32218/* end confdefs.h.  */
32219$ac_includes_default
32220#include <$ac_header>
32221_ACEOF
32222rm -f conftest.$ac_objext
32223if { (ac_try="$ac_compile"
32224case "(($ac_try" in
32225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32226  *) ac_try_echo=$ac_try;;
32227esac
32228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32229  (eval "$ac_compile") 2>conftest.er1
32230  ac_status=$?
32231  grep -v '^ *+' conftest.er1 >conftest.err
32232  rm -f conftest.er1
32233  cat conftest.err >&5
32234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32235  (exit $ac_status); } && {
32236	 test -z "$ac_c_werror_flag" ||
32237	 test ! -s conftest.err
32238       } && test -s conftest.$ac_objext; then
32239  ac_header_compiler=yes
32240else
32241  echo "$as_me: failed program was:" >&5
32242sed 's/^/| /' conftest.$ac_ext >&5
32243
32244	ac_header_compiler=no
32245fi
32246
32247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32248{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32249echo "${ECHO_T}$ac_header_compiler" >&6; }
32250
32251# Is the header present?
32252{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32253echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32254cat >conftest.$ac_ext <<_ACEOF
32255/* confdefs.h.  */
32256_ACEOF
32257cat confdefs.h >>conftest.$ac_ext
32258cat >>conftest.$ac_ext <<_ACEOF
32259/* end confdefs.h.  */
32260#include <$ac_header>
32261_ACEOF
32262if { (ac_try="$ac_cpp conftest.$ac_ext"
32263case "(($ac_try" in
32264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32265  *) ac_try_echo=$ac_try;;
32266esac
32267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32268  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32269  ac_status=$?
32270  grep -v '^ *+' conftest.er1 >conftest.err
32271  rm -f conftest.er1
32272  cat conftest.err >&5
32273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274  (exit $ac_status); } >/dev/null && {
32275	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32276	 test ! -s conftest.err
32277       }; then
32278  ac_header_preproc=yes
32279else
32280  echo "$as_me: failed program was:" >&5
32281sed 's/^/| /' conftest.$ac_ext >&5
32282
32283  ac_header_preproc=no
32284fi
32285
32286rm -f conftest.err conftest.$ac_ext
32287{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32288echo "${ECHO_T}$ac_header_preproc" >&6; }
32289
32290# So?  What about this header?
32291case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32292  yes:no: )
32293    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32294echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32295    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32296echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32297    ac_header_preproc=yes
32298    ;;
32299  no:yes:* )
32300    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32301echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32302    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32303echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32304    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32305echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32306    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32307echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32308    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32309echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32310    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32311echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32312
32313    ;;
32314esac
32315{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32318  echo $ECHO_N "(cached) $ECHO_C" >&6
32319else
32320  eval "$as_ac_Header=\$ac_header_preproc"
32321fi
32322ac_res=`eval echo '${'$as_ac_Header'}'`
32323	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32324echo "${ECHO_T}$ac_res" >&6; }
32325
32326fi
32327if test `eval echo '${'$as_ac_Header'}'` = yes; then
32328  cat >>confdefs.h <<_ACEOF
32329#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32330_ACEOF
32331 gss_headers_found=yes
32332fi
32333
32334done
32335
32336	if test x"$gss_headers_found" = x"no"; then
32337		{ { echo "$as_me:$LINENO: error: GSSAPI installation not found, headers missing" >&5
32338echo "$as_me: error: GSSAPI installation not found, headers missing" >&2;}
32339   { (exit 1); exit 1; }; }
32340	fi
32341
32342	# check for libs
32343
32344
32345{ echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi" >&5
32346echo $ECHO_N "checking for gss_display_status in -lgssapi... $ECHO_C" >&6; }
32347if test "${ac_cv_lib_gssapi_gss_display_status+set}" = set; then
32348  echo $ECHO_N "(cached) $ECHO_C" >&6
32349else
32350  ac_check_lib_save_LIBS=$LIBS
32351LIBS="-lgssapi  $LIBS"
32352cat >conftest.$ac_ext <<_ACEOF
32353/* confdefs.h.  */
32354_ACEOF
32355cat confdefs.h >>conftest.$ac_ext
32356cat >>conftest.$ac_ext <<_ACEOF
32357/* end confdefs.h.  */
32358
32359/* Override any GCC internal prototype to avoid an error.
32360   Use char because int might match the return type of a GCC
32361   builtin and then its argument prototype would still apply.  */
32362#ifdef __cplusplus
32363extern "C"
32364#endif
32365char gss_display_status ();
32366int
32367main ()
32368{
32369return gss_display_status ();
32370  ;
32371  return 0;
32372}
32373_ACEOF
32374rm -f conftest.$ac_objext conftest$ac_exeext
32375if { (ac_try="$ac_link"
32376case "(($ac_try" in
32377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32378  *) ac_try_echo=$ac_try;;
32379esac
32380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32381  (eval "$ac_link") 2>conftest.er1
32382  ac_status=$?
32383  grep -v '^ *+' conftest.er1 >conftest.err
32384  rm -f conftest.er1
32385  cat conftest.err >&5
32386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387  (exit $ac_status); } && {
32388	 test -z "$ac_c_werror_flag" ||
32389	 test ! -s conftest.err
32390       } && test -s conftest$ac_exeext &&
32391       $as_test_x conftest$ac_exeext; then
32392  ac_cv_lib_gssapi_gss_display_status=yes
32393else
32394  echo "$as_me: failed program was:" >&5
32395sed 's/^/| /' conftest.$ac_ext >&5
32396
32397	ac_cv_lib_gssapi_gss_display_status=no
32398fi
32399
32400rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32401      conftest$ac_exeext conftest.$ac_ext
32402LIBS=$ac_check_lib_save_LIBS
32403fi
32404{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_display_status" >&5
32405echo "${ECHO_T}$ac_cv_lib_gssapi_gss_display_status" >&6; }
32406if test $ac_cv_lib_gssapi_gss_display_status = yes; then
32407  cat >>confdefs.h <<_ACEOF
32408#define HAVE_LIBGSSAPI 1
32409_ACEOF
32410
32411  LIBS="-lgssapi $LIBS"
32412
32413fi
32414
32415
32416{ echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi_krb5" >&5
32417echo $ECHO_N "checking for gss_display_status in -lgssapi_krb5... $ECHO_C" >&6; }
32418if test "${ac_cv_lib_gssapi_krb5_gss_display_status+set}" = set; then
32419  echo $ECHO_N "(cached) $ECHO_C" >&6
32420else
32421  ac_check_lib_save_LIBS=$LIBS
32422LIBS="-lgssapi_krb5  $LIBS"
32423cat >conftest.$ac_ext <<_ACEOF
32424/* confdefs.h.  */
32425_ACEOF
32426cat confdefs.h >>conftest.$ac_ext
32427cat >>conftest.$ac_ext <<_ACEOF
32428/* end confdefs.h.  */
32429
32430/* Override any GCC internal prototype to avoid an error.
32431   Use char because int might match the return type of a GCC
32432   builtin and then its argument prototype would still apply.  */
32433#ifdef __cplusplus
32434extern "C"
32435#endif
32436char gss_display_status ();
32437int
32438main ()
32439{
32440return gss_display_status ();
32441  ;
32442  return 0;
32443}
32444_ACEOF
32445rm -f conftest.$ac_objext conftest$ac_exeext
32446if { (ac_try="$ac_link"
32447case "(($ac_try" in
32448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32449  *) ac_try_echo=$ac_try;;
32450esac
32451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32452  (eval "$ac_link") 2>conftest.er1
32453  ac_status=$?
32454  grep -v '^ *+' conftest.er1 >conftest.err
32455  rm -f conftest.er1
32456  cat conftest.err >&5
32457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458  (exit $ac_status); } && {
32459	 test -z "$ac_c_werror_flag" ||
32460	 test ! -s conftest.err
32461       } && test -s conftest$ac_exeext &&
32462       $as_test_x conftest$ac_exeext; then
32463  ac_cv_lib_gssapi_krb5_gss_display_status=yes
32464else
32465  echo "$as_me: failed program was:" >&5
32466sed 's/^/| /' conftest.$ac_ext >&5
32467
32468	ac_cv_lib_gssapi_krb5_gss_display_status=no
32469fi
32470
32471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32472      conftest$ac_exeext conftest.$ac_ext
32473LIBS=$ac_check_lib_save_LIBS
32474fi
32475{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_display_status" >&5
32476echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_display_status" >&6; }
32477if test $ac_cv_lib_gssapi_krb5_gss_display_status = yes; then
32478  cat >>confdefs.h <<_ACEOF
32479#define HAVE_LIBGSSAPI_KRB5 1
32480_ACEOF
32481
32482  LIBS="-lgssapi_krb5 $LIBS"
32483
32484fi
32485
32486
32487{ echo "$as_me:$LINENO: checking for gss_display_status in -lgss" >&5
32488echo $ECHO_N "checking for gss_display_status in -lgss... $ECHO_C" >&6; }
32489if test "${ac_cv_lib_gss_gss_display_status+set}" = set; then
32490  echo $ECHO_N "(cached) $ECHO_C" >&6
32491else
32492  ac_check_lib_save_LIBS=$LIBS
32493LIBS="-lgss  $LIBS"
32494cat >conftest.$ac_ext <<_ACEOF
32495/* confdefs.h.  */
32496_ACEOF
32497cat confdefs.h >>conftest.$ac_ext
32498cat >>conftest.$ac_ext <<_ACEOF
32499/* end confdefs.h.  */
32500
32501/* Override any GCC internal prototype to avoid an error.
32502   Use char because int might match the return type of a GCC
32503   builtin and then its argument prototype would still apply.  */
32504#ifdef __cplusplus
32505extern "C"
32506#endif
32507char gss_display_status ();
32508int
32509main ()
32510{
32511return gss_display_status ();
32512  ;
32513  return 0;
32514}
32515_ACEOF
32516rm -f conftest.$ac_objext conftest$ac_exeext
32517if { (ac_try="$ac_link"
32518case "(($ac_try" in
32519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32520  *) ac_try_echo=$ac_try;;
32521esac
32522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32523  (eval "$ac_link") 2>conftest.er1
32524  ac_status=$?
32525  grep -v '^ *+' conftest.er1 >conftest.err
32526  rm -f conftest.er1
32527  cat conftest.err >&5
32528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529  (exit $ac_status); } && {
32530	 test -z "$ac_c_werror_flag" ||
32531	 test ! -s conftest.err
32532       } && test -s conftest$ac_exeext &&
32533       $as_test_x conftest$ac_exeext; then
32534  ac_cv_lib_gss_gss_display_status=yes
32535else
32536  echo "$as_me: failed program was:" >&5
32537sed 's/^/| /' conftest.$ac_ext >&5
32538
32539	ac_cv_lib_gss_gss_display_status=no
32540fi
32541
32542rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32543      conftest$ac_exeext conftest.$ac_ext
32544LIBS=$ac_check_lib_save_LIBS
32545fi
32546{ echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_display_status" >&5
32547echo "${ECHO_T}$ac_cv_lib_gss_gss_display_status" >&6; }
32548if test $ac_cv_lib_gss_gss_display_status = yes; then
32549  cat >>confdefs.h <<_ACEOF
32550#define HAVE_LIBGSS 1
32551_ACEOF
32552
32553  LIBS="-lgss $LIBS"
32554
32555fi
32556
32557
32558	# check for functions
32559
32560  	{ echo "$as_me:$LINENO: checking for gss_acquire_cred" >&5
32561echo $ECHO_N "checking for gss_acquire_cred... $ECHO_C" >&6; }
32562if test "${ac_cv_func_gss_acquire_cred+set}" = set; then
32563  echo $ECHO_N "(cached) $ECHO_C" >&6
32564else
32565  cat >conftest.$ac_ext <<_ACEOF
32566/* confdefs.h.  */
32567_ACEOF
32568cat confdefs.h >>conftest.$ac_ext
32569cat >>conftest.$ac_ext <<_ACEOF
32570/* end confdefs.h.  */
32571/* Define gss_acquire_cred to an innocuous variant, in case <limits.h> declares gss_acquire_cred.
32572   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32573#define gss_acquire_cred innocuous_gss_acquire_cred
32574
32575/* System header to define __stub macros and hopefully few prototypes,
32576    which can conflict with char gss_acquire_cred (); below.
32577    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32578    <limits.h> exists even on freestanding compilers.  */
32579
32580#ifdef __STDC__
32581# include <limits.h>
32582#else
32583# include <assert.h>
32584#endif
32585
32586#undef gss_acquire_cred
32587
32588/* Override any GCC internal prototype to avoid an error.
32589   Use char because int might match the return type of a GCC
32590   builtin and then its argument prototype would still apply.  */
32591#ifdef __cplusplus
32592extern "C"
32593#endif
32594char gss_acquire_cred ();
32595/* The GNU C library defines this for functions which it implements
32596    to always fail with ENOSYS.  Some functions are actually named
32597    something starting with __ and the normal name is an alias.  */
32598#if defined __stub_gss_acquire_cred || defined __stub___gss_acquire_cred
32599choke me
32600#endif
32601
32602int
32603main ()
32604{
32605return gss_acquire_cred ();
32606  ;
32607  return 0;
32608}
32609_ACEOF
32610rm -f conftest.$ac_objext conftest$ac_exeext
32611if { (ac_try="$ac_link"
32612case "(($ac_try" in
32613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32614  *) ac_try_echo=$ac_try;;
32615esac
32616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32617  (eval "$ac_link") 2>conftest.er1
32618  ac_status=$?
32619  grep -v '^ *+' conftest.er1 >conftest.err
32620  rm -f conftest.er1
32621  cat conftest.err >&5
32622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623  (exit $ac_status); } && {
32624	 test -z "$ac_c_werror_flag" ||
32625	 test ! -s conftest.err
32626       } && test -s conftest$ac_exeext &&
32627       $as_test_x conftest$ac_exeext; then
32628  ac_cv_func_gss_acquire_cred=yes
32629else
32630  echo "$as_me: failed program was:" >&5
32631sed 's/^/| /' conftest.$ac_ext >&5
32632
32633	ac_cv_func_gss_acquire_cred=no
32634fi
32635
32636rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32637      conftest$ac_exeext conftest.$ac_ext
32638fi
32639{ echo "$as_me:$LINENO: result: $ac_cv_func_gss_acquire_cred" >&5
32640echo "${ECHO_T}$ac_cv_func_gss_acquire_cred" >&6; }
32641if test $ac_cv_func_gss_acquire_cred = yes; then
32642  :
32643else
32644  { { echo "$as_me:$LINENO: error: GSSAPI: required function gss_acquire_cred missing" >&5
32645echo "$as_me: error: GSSAPI: required function gss_acquire_cred missing" >&2;}
32646   { (exit 1); exit 1; }; }
32647fi
32648
32649
32650	# Heimdal/MIT compatibility fix
32651	if test "$ac_cv_header_gssapi_h" = "yes"; then
32652	    cat >conftest.$ac_ext <<_ACEOF
32653/* confdefs.h.  */
32654_ACEOF
32655cat confdefs.h >>conftest.$ac_ext
32656cat >>conftest.$ac_ext <<_ACEOF
32657/* end confdefs.h.  */
32658#include <gssapi.h>
32659
32660_ACEOF
32661if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32662  $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
32663
32664cat >>confdefs.h <<\_ACEOF
32665#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1
32666_ACEOF
32667
32668fi
32669rm -f conftest*
32670
32671	else
32672	    cat >conftest.$ac_ext <<_ACEOF
32673/* confdefs.h.  */
32674_ACEOF
32675cat confdefs.h >>conftest.$ac_ext
32676cat >>conftest.$ac_ext <<_ACEOF
32677/* end confdefs.h.  */
32678#include <gssapi/gssapi.h>
32679
32680_ACEOF
32681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32682  $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
32683
32684cat >>confdefs.h <<\_ACEOF
32685#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1
32686_ACEOF
32687
32688fi
32689rm -f conftest*
32690
32691	fi
32692
32693
32694	{ echo "$as_me:$LINENO: checking whether GSSAPI support is used" >&5
32695echo $ECHO_N "checking whether GSSAPI support is used... $ECHO_C" >&6; }
32696	if test x"$ac_cv_func_gss_acquire_cred" = x"yes"; then
32697
32698cat >>confdefs.h <<\_ACEOF
32699#define HAVE_GSSAPI 1
32700_ACEOF
32701
32702		{ echo "$as_me:$LINENO: result: yes" >&5
32703echo "${ECHO_T}yes" >&6; }
32704		GSSAPI_LIBS="$LDFLAGS $LIBS"
32705	else
32706		{ echo "$as_me:$LINENO: result: no" >&5
32707echo "${ECHO_T}no" >&6; }
32708		if test x"$compilegssapi" = x"yes"; then
32709			{ { echo "$as_me:$LINENO: error: GSSAPI installation not found" >&5
32710echo "$as_me: error: GSSAPI installation not found" >&2;}
32711   { (exit 1); exit 1; }; }
32712		fi
32713        	GSSAPI_LIBS=""
32714	fi
32715
32716        LIBS="$ac_save_LIBS"
32717        CFLAGS="$ac_save_CFLAGS"
32718        LDFLAGS="$ac_save_LDFLAGS"
32719        CPPFLAGS="$ac_save_CPPFLAGS"
32720	fi
32721
32722        if test x"$ac_cv_func_gss_acquire_cred" = x"yes"; then
32723
32724				netatalk_cv_build_krb5_uam=yes
32725
32726        else
32727
32728				{ { echo "$as_me:$LINENO: error: need GSSAPI to build Kerberos V UAM" >&5
32729echo "$as_me: error: need GSSAPI to build Kerberos V UAM" >&2;}
32730   { (exit 1); exit 1; }; }
32731
32732        fi
32733
32734
32735
32736
32737
32738
32739		fi
32740
32741
32742
32743fi
32744
32745
32746{ echo "$as_me:$LINENO: checking whether Kerberos V UAM should be build" >&5
32747echo $ECHO_N "checking whether Kerberos V UAM should be build... $ECHO_C" >&6; }
32748if test x"$netatalk_cv_build_krb5_uam" = x"yes"; then
32749	{ echo "$as_me:$LINENO: result: yes" >&5
32750echo "${ECHO_T}yes" >&6; }
32751else
32752	{ echo "$as_me:$LINENO: result: no" >&5
32753echo "${ECHO_T}no" >&6; }
32754fi
32755 if test x"$netatalk_cv_build_krb5_uam" = x"yes"; then
32756  USE_GSSAPI_TRUE=
32757  USE_GSSAPI_FALSE='#'
32758else
32759  USE_GSSAPI_TRUE='#'
32760  USE_GSSAPI_FALSE=
32761fi
32762
32763
32764
32765{ echo "$as_me:$LINENO: checking whether configuration files should be overwritten" >&5
32766echo $ECHO_N "checking whether configuration files should be overwritten... $ECHO_C" >&6; }
32767# Check whether --enable-overwrite was given.
32768if test "${enable_overwrite+set}" = set; then
32769  enableval=$enable_overwrite; OVERWRITE_CONFIG="${enable_overwrite}"
32770else
32771  OVERWRITE_CONFIG="no"
32772
32773fi
32774
32775{ echo "$as_me:$LINENO: result: $OVERWRITE_CONFIG" >&5
32776echo "${ECHO_T}$OVERWRITE_CONFIG" >&6; }
32777
32778{ echo "$as_me:$LINENO: checking for LDAP (necessary for client-side ACL visibility)" >&5
32779echo $ECHO_N "checking for LDAP (necessary for client-side ACL visibility)... $ECHO_C" >&6; }
32780
32781# Check whether --with-ldap was given.
32782if test "${with_ldap+set}" = set; then
32783  withval=$with_ldap;  case "$withval" in
32784      yes|no)
32785          with_ldap="$withval"
32786		  ;;
32787      *)
32788          with_ldap=auto
32789          ;;
32790      esac
32791fi
32792
32793{ echo "$as_me:$LINENO: result: $with_ldap" >&5
32794echo "${ECHO_T}$with_ldap" >&6; }
32795
32796if test x"$with_ldap" != x"no" ; then
32797   	if test "${ac_cv_header_ldap_h+set}" = set; then
32798  { echo "$as_me:$LINENO: checking for ldap.h" >&5
32799echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
32800if test "${ac_cv_header_ldap_h+set}" = set; then
32801  echo $ECHO_N "(cached) $ECHO_C" >&6
32802fi
32803{ echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
32804echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
32805else
32806  # Is the header compilable?
32807{ echo "$as_me:$LINENO: checking ldap.h usability" >&5
32808echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6; }
32809cat >conftest.$ac_ext <<_ACEOF
32810/* confdefs.h.  */
32811_ACEOF
32812cat confdefs.h >>conftest.$ac_ext
32813cat >>conftest.$ac_ext <<_ACEOF
32814/* end confdefs.h.  */
32815$ac_includes_default
32816#include <ldap.h>
32817_ACEOF
32818rm -f conftest.$ac_objext
32819if { (ac_try="$ac_compile"
32820case "(($ac_try" in
32821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822  *) ac_try_echo=$ac_try;;
32823esac
32824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825  (eval "$ac_compile") 2>conftest.er1
32826  ac_status=$?
32827  grep -v '^ *+' conftest.er1 >conftest.err
32828  rm -f conftest.er1
32829  cat conftest.err >&5
32830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831  (exit $ac_status); } && {
32832	 test -z "$ac_c_werror_flag" ||
32833	 test ! -s conftest.err
32834       } && test -s conftest.$ac_objext; then
32835  ac_header_compiler=yes
32836else
32837  echo "$as_me: failed program was:" >&5
32838sed 's/^/| /' conftest.$ac_ext >&5
32839
32840	ac_header_compiler=no
32841fi
32842
32843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32844{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32845echo "${ECHO_T}$ac_header_compiler" >&6; }
32846
32847# Is the header present?
32848{ echo "$as_me:$LINENO: checking ldap.h presence" >&5
32849echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6; }
32850cat >conftest.$ac_ext <<_ACEOF
32851/* confdefs.h.  */
32852_ACEOF
32853cat confdefs.h >>conftest.$ac_ext
32854cat >>conftest.$ac_ext <<_ACEOF
32855/* end confdefs.h.  */
32856#include <ldap.h>
32857_ACEOF
32858if { (ac_try="$ac_cpp conftest.$ac_ext"
32859case "(($ac_try" in
32860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32861  *) ac_try_echo=$ac_try;;
32862esac
32863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32864  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32865  ac_status=$?
32866  grep -v '^ *+' conftest.er1 >conftest.err
32867  rm -f conftest.er1
32868  cat conftest.err >&5
32869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32870  (exit $ac_status); } >/dev/null && {
32871	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32872	 test ! -s conftest.err
32873       }; then
32874  ac_header_preproc=yes
32875else
32876  echo "$as_me: failed program was:" >&5
32877sed 's/^/| /' conftest.$ac_ext >&5
32878
32879  ac_header_preproc=no
32880fi
32881
32882rm -f conftest.err conftest.$ac_ext
32883{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32884echo "${ECHO_T}$ac_header_preproc" >&6; }
32885
32886# So?  What about this header?
32887case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32888  yes:no: )
32889    { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
32890echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32891    { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
32892echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
32893    ac_header_preproc=yes
32894    ;;
32895  no:yes:* )
32896    { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
32897echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
32898    { echo "$as_me:$LINENO: WARNING: ldap.h:     check for missing prerequisite headers?" >&5
32899echo "$as_me: WARNING: ldap.h:     check for missing prerequisite headers?" >&2;}
32900    { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
32901echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
32902    { echo "$as_me:$LINENO: WARNING: ldap.h:     section \"Present But Cannot Be Compiled\"" >&5
32903echo "$as_me: WARNING: ldap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32904    { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
32905echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
32906    { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
32907echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
32908
32909    ;;
32910esac
32911{ echo "$as_me:$LINENO: checking for ldap.h" >&5
32912echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
32913if test "${ac_cv_header_ldap_h+set}" = set; then
32914  echo $ECHO_N "(cached) $ECHO_C" >&6
32915else
32916  ac_cv_header_ldap_h=$ac_header_preproc
32917fi
32918{ echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
32919echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
32920
32921fi
32922if test $ac_cv_header_ldap_h = yes; then
32923  with_ldap=yes
32924else
32925   if test x"$with_ldap" = x"yes" ; then
32926            { { echo "$as_me:$LINENO: error: Missing LDAP headers" >&5
32927echo "$as_me: error: Missing LDAP headers" >&2;}
32928   { (exit 1); exit 1; }; }
32929        fi
32930		with_ldap=no
32931
32932fi
32933
32934
32935	{ echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
32936echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6; }
32937if test "${ac_cv_lib_ldap_ldap_init+set}" = set; then
32938  echo $ECHO_N "(cached) $ECHO_C" >&6
32939else
32940  ac_check_lib_save_LIBS=$LIBS
32941LIBS="-lldap  $LIBS"
32942cat >conftest.$ac_ext <<_ACEOF
32943/* confdefs.h.  */
32944_ACEOF
32945cat confdefs.h >>conftest.$ac_ext
32946cat >>conftest.$ac_ext <<_ACEOF
32947/* end confdefs.h.  */
32948
32949/* Override any GCC internal prototype to avoid an error.
32950   Use char because int might match the return type of a GCC
32951   builtin and then its argument prototype would still apply.  */
32952#ifdef __cplusplus
32953extern "C"
32954#endif
32955char ldap_init ();
32956int
32957main ()
32958{
32959return ldap_init ();
32960  ;
32961  return 0;
32962}
32963_ACEOF
32964rm -f conftest.$ac_objext conftest$ac_exeext
32965if { (ac_try="$ac_link"
32966case "(($ac_try" in
32967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32968  *) ac_try_echo=$ac_try;;
32969esac
32970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32971  (eval "$ac_link") 2>conftest.er1
32972  ac_status=$?
32973  grep -v '^ *+' conftest.er1 >conftest.err
32974  rm -f conftest.er1
32975  cat conftest.err >&5
32976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32977  (exit $ac_status); } && {
32978	 test -z "$ac_c_werror_flag" ||
32979	 test ! -s conftest.err
32980       } && test -s conftest$ac_exeext &&
32981       $as_test_x conftest$ac_exeext; then
32982  ac_cv_lib_ldap_ldap_init=yes
32983else
32984  echo "$as_me: failed program was:" >&5
32985sed 's/^/| /' conftest.$ac_ext >&5
32986
32987	ac_cv_lib_ldap_ldap_init=no
32988fi
32989
32990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32991      conftest$ac_exeext conftest.$ac_ext
32992LIBS=$ac_check_lib_save_LIBS
32993fi
32994{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_init" >&5
32995echo "${ECHO_T}$ac_cv_lib_ldap_ldap_init" >&6; }
32996if test $ac_cv_lib_ldap_ldap_init = yes; then
32997  with_ldap=yes
32998else
32999   if test x"$with_ldap" = x"yes" ; then
33000            { { echo "$as_me:$LINENO: error: Missing LDAP library" >&5
33001echo "$as_me: error: Missing LDAP library" >&2;}
33002   { (exit 1); exit 1; }; }
33003        fi
33004		with_ldap=no
33005
33006fi
33007
33008fi
33009
33010if test x"$with_ldap" = x"yes"; then
33011
33012cat >>confdefs.h <<\_ACEOF
33013#define HAVE_LDAP 1
33014_ACEOF
33015
33016fi
33017
33018{ echo "$as_me:$LINENO: checking whether to support ACLs" >&5
33019echo $ECHO_N "checking whether to support ACLs... $ECHO_C" >&6; }
33020
33021# Check whether --with-acls was given.
33022if test "${with_acls+set}" = set; then
33023  withval=$with_acls;  case "$withval" in
33024      yes|no)
33025          with_acl_support="$withval"
33026		  ;;
33027      *)
33028          with_acl_support=auto
33029          ;;
33030      esac
33031else
33032  with_acl_support=auto
33033fi
33034
33035{ echo "$as_me:$LINENO: result: $with_acl_support" >&5
33036echo "${ECHO_T}$with_acl_support" >&6; }
33037
33038if test x"$with_acl_support" = x"no"; then
33039	{ echo "$as_me:$LINENO: result: Disabling ACL support" >&5
33040echo "${ECHO_T}Disabling ACL support" >&6; }
33041
33042cat >>confdefs.h <<\_ACEOF
33043#define HAVE_NO_ACLS 1
33044_ACEOF
33045
33046else
33047    with_acl_support=yes
33048fi
33049
33050if test x"$with_acl_support" = x"yes" ; then
33051	{ echo "$as_me:$LINENO: checking whether ACL support is available:" >&5
33052echo "$as_me: checking whether ACL support is available:" >&6;}
33053	case "$host_os" in
33054	*sysv5*)
33055		{ echo "$as_me:$LINENO: Using UnixWare ACLs" >&5
33056echo "$as_me: Using UnixWare ACLs" >&6;}
33057
33058cat >>confdefs.h <<\_ACEOF
33059#define HAVE_UNIXWARE_ACLS 1
33060_ACEOF
33061
33062		;;
33063	*solaris*)
33064		{ echo "$as_me:$LINENO: Using solaris ACLs" >&5
33065echo "$as_me: Using solaris ACLs" >&6;}
33066
33067cat >>confdefs.h <<\_ACEOF
33068#define HAVE_SOLARIS_ACLS 1
33069_ACEOF
33070
33071		ACL_LIBS="$ACL_LIBS -lsec"
33072		;;
33073	*hpux*)
33074		{ echo "$as_me:$LINENO: Using HPUX ACLs" >&5
33075echo "$as_me: Using HPUX ACLs" >&6;}
33076
33077cat >>confdefs.h <<\_ACEOF
33078#define HAVE_HPUX_ACLS 1
33079_ACEOF
33080
33081		;;
33082	*irix*)
33083		{ echo "$as_me:$LINENO: Using IRIX ACLs" >&5
33084echo "$as_me: Using IRIX ACLs" >&6;}
33085
33086cat >>confdefs.h <<\_ACEOF
33087#define HAVE_IRIX_ACLS 1
33088_ACEOF
33089
33090		;;
33091	*aix*)
33092		{ echo "$as_me:$LINENO: Using AIX ACLs" >&5
33093echo "$as_me: Using AIX ACLs" >&6;}
33094
33095cat >>confdefs.h <<\_ACEOF
33096#define HAVE_AIX_ACLS 1
33097_ACEOF
33098
33099		;;
33100	*osf*)
33101		{ echo "$as_me:$LINENO: Using Tru64 ACLs" >&5
33102echo "$as_me: Using Tru64 ACLs" >&6;}
33103
33104cat >>confdefs.h <<\_ACEOF
33105#define HAVE_TRU64_ACLS 1
33106_ACEOF
33107
33108		ACL_LIBS="$ACL_LIBS -lpacl"
33109		;;
33110	*darwin*)
33111		{ echo "$as_me:$LINENO: ACLs on Darwin currently not supported" >&5
33112echo "$as_me: ACLs on Darwin currently not supported" >&6;}
33113
33114cat >>confdefs.h <<\_ACEOF
33115#define HAVE_NO_ACLS 1
33116_ACEOF
33117
33118		;;
33119	*)
33120		{ echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
33121echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
33122if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
33123  echo $ECHO_N "(cached) $ECHO_C" >&6
33124else
33125  ac_check_lib_save_LIBS=$LIBS
33126LIBS="-lacl  $LIBS"
33127cat >conftest.$ac_ext <<_ACEOF
33128/* confdefs.h.  */
33129_ACEOF
33130cat confdefs.h >>conftest.$ac_ext
33131cat >>conftest.$ac_ext <<_ACEOF
33132/* end confdefs.h.  */
33133
33134/* Override any GCC internal prototype to avoid an error.
33135   Use char because int might match the return type of a GCC
33136   builtin and then its argument prototype would still apply.  */
33137#ifdef __cplusplus
33138extern "C"
33139#endif
33140char acl_get_file ();
33141int
33142main ()
33143{
33144return acl_get_file ();
33145  ;
33146  return 0;
33147}
33148_ACEOF
33149rm -f conftest.$ac_objext conftest$ac_exeext
33150if { (ac_try="$ac_link"
33151case "(($ac_try" in
33152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33153  *) ac_try_echo=$ac_try;;
33154esac
33155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33156  (eval "$ac_link") 2>conftest.er1
33157  ac_status=$?
33158  grep -v '^ *+' conftest.er1 >conftest.err
33159  rm -f conftest.er1
33160  cat conftest.err >&5
33161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33162  (exit $ac_status); } && {
33163	 test -z "$ac_c_werror_flag" ||
33164	 test ! -s conftest.err
33165       } && test -s conftest$ac_exeext &&
33166       $as_test_x conftest$ac_exeext; then
33167  ac_cv_lib_acl_acl_get_file=yes
33168else
33169  echo "$as_me: failed program was:" >&5
33170sed 's/^/| /' conftest.$ac_ext >&5
33171
33172	ac_cv_lib_acl_acl_get_file=no
33173fi
33174
33175rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33176      conftest$ac_exeext conftest.$ac_ext
33177LIBS=$ac_check_lib_save_LIBS
33178fi
33179{ echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33180echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33181if test $ac_cv_lib_acl_acl_get_file = yes; then
33182  ACL_LIBS="$ACL_LIBS -lacl"
33183fi
33184
33185		case "$host_os" in
33186		*linux*)
33187			{ echo "$as_me:$LINENO: checking for getxattr in -lattr" >&5
33188echo $ECHO_N "checking for getxattr in -lattr... $ECHO_C" >&6; }
33189if test "${ac_cv_lib_attr_getxattr+set}" = set; then
33190  echo $ECHO_N "(cached) $ECHO_C" >&6
33191else
33192  ac_check_lib_save_LIBS=$LIBS
33193LIBS="-lattr  $LIBS"
33194cat >conftest.$ac_ext <<_ACEOF
33195/* confdefs.h.  */
33196_ACEOF
33197cat confdefs.h >>conftest.$ac_ext
33198cat >>conftest.$ac_ext <<_ACEOF
33199/* end confdefs.h.  */
33200
33201/* Override any GCC internal prototype to avoid an error.
33202   Use char because int might match the return type of a GCC
33203   builtin and then its argument prototype would still apply.  */
33204#ifdef __cplusplus
33205extern "C"
33206#endif
33207char getxattr ();
33208int
33209main ()
33210{
33211return getxattr ();
33212  ;
33213  return 0;
33214}
33215_ACEOF
33216rm -f conftest.$ac_objext conftest$ac_exeext
33217if { (ac_try="$ac_link"
33218case "(($ac_try" in
33219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33220  *) ac_try_echo=$ac_try;;
33221esac
33222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33223  (eval "$ac_link") 2>conftest.er1
33224  ac_status=$?
33225  grep -v '^ *+' conftest.er1 >conftest.err
33226  rm -f conftest.er1
33227  cat conftest.err >&5
33228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229  (exit $ac_status); } && {
33230	 test -z "$ac_c_werror_flag" ||
33231	 test ! -s conftest.err
33232       } && test -s conftest$ac_exeext &&
33233       $as_test_x conftest$ac_exeext; then
33234  ac_cv_lib_attr_getxattr=yes
33235else
33236  echo "$as_me: failed program was:" >&5
33237sed 's/^/| /' conftest.$ac_ext >&5
33238
33239	ac_cv_lib_attr_getxattr=no
33240fi
33241
33242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33243      conftest$ac_exeext conftest.$ac_ext
33244LIBS=$ac_check_lib_save_LIBS
33245fi
33246{ echo "$as_me:$LINENO: result: $ac_cv_lib_attr_getxattr" >&5
33247echo "${ECHO_T}$ac_cv_lib_attr_getxattr" >&6; }
33248if test $ac_cv_lib_attr_getxattr = yes; then
33249  ACL_LIBS="$ACL_LIBS -lattr"
33250fi
33251
33252			;;
33253		esac
33254		{ echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
33255echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6; }
33256if test "${netatalk_cv_HAVE_POSIX_ACLS+set}" = set; then
33257  echo $ECHO_N "(cached) $ECHO_C" >&6
33258else
33259
33260			acl_LIBS=$LIBS
33261			LIBS="$LIBS $ACL_LIBS"
33262			cat >conftest.$ac_ext <<_ACEOF
33263/* confdefs.h.  */
33264_ACEOF
33265cat confdefs.h >>conftest.$ac_ext
33266cat >>conftest.$ac_ext <<_ACEOF
33267/* end confdefs.h.  */
33268
33269				#include <sys/types.h>
33270				#include <sys/acl.h>
33271
33272int
33273main ()
33274{
33275
33276				acl_t acl;
33277				int entry_id;
33278				acl_entry_t *entry_p;
33279				return acl_get_entry(acl, entry_id, entry_p);
33280
33281  ;
33282  return 0;
33283}
33284_ACEOF
33285rm -f conftest.$ac_objext conftest$ac_exeext
33286if { (ac_try="$ac_link"
33287case "(($ac_try" in
33288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33289  *) ac_try_echo=$ac_try;;
33290esac
33291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33292  (eval "$ac_link") 2>conftest.er1
33293  ac_status=$?
33294  grep -v '^ *+' conftest.er1 >conftest.err
33295  rm -f conftest.er1
33296  cat conftest.err >&5
33297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298  (exit $ac_status); } && {
33299	 test -z "$ac_c_werror_flag" ||
33300	 test ! -s conftest.err
33301       } && test -s conftest$ac_exeext &&
33302       $as_test_x conftest$ac_exeext; then
33303  netatalk_cv_HAVE_POSIX_ACLS=yes
33304else
33305  echo "$as_me: failed program was:" >&5
33306sed 's/^/| /' conftest.$ac_ext >&5
33307
33308	netatalk_cv_HAVE_POSIX_ACLS=no
33309                with_acl_support=no
33310fi
33311
33312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33313      conftest$ac_exeext conftest.$ac_ext
33314			LIBS=$acl_LIBS
33315
33316fi
33317{ echo "$as_me:$LINENO: result: $netatalk_cv_HAVE_POSIX_ACLS" >&5
33318echo "${ECHO_T}$netatalk_cv_HAVE_POSIX_ACLS" >&6; }
33319		if test x"$netatalk_cv_HAVE_POSIX_ACLS" = x"yes"; then
33320			{ echo "$as_me:$LINENO: Using POSIX ACLs" >&5
33321echo "$as_me: Using POSIX ACLs" >&6;}
33322
33323cat >>confdefs.h <<\_ACEOF
33324#define HAVE_POSIX_ACLS 1
33325_ACEOF
33326
33327			{ echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
33328echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6; }
33329if test "${netatalk_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
33330  echo $ECHO_N "(cached) $ECHO_C" >&6
33331else
33332
33333				acl_LIBS=$LIBS
33334				LIBS="$LIBS $ACL_LIBS"
33335				cat >conftest.$ac_ext <<_ACEOF
33336/* confdefs.h.  */
33337_ACEOF
33338cat confdefs.h >>conftest.$ac_ext
33339cat >>conftest.$ac_ext <<_ACEOF
33340/* end confdefs.h.  */
33341
33342					#include <sys/types.h>
33343					#include <sys/acl.h>
33344
33345int
33346main ()
33347{
33348
33349					acl_permset_t permset_d;
33350					acl_perm_t perm;
33351					return acl_get_perm_np(permset_d, perm);
33352
33353  ;
33354  return 0;
33355}
33356_ACEOF
33357rm -f conftest.$ac_objext conftest$ac_exeext
33358if { (ac_try="$ac_link"
33359case "(($ac_try" in
33360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33361  *) ac_try_echo=$ac_try;;
33362esac
33363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33364  (eval "$ac_link") 2>conftest.er1
33365  ac_status=$?
33366  grep -v '^ *+' conftest.er1 >conftest.err
33367  rm -f conftest.er1
33368  cat conftest.err >&5
33369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370  (exit $ac_status); } && {
33371	 test -z "$ac_c_werror_flag" ||
33372	 test ! -s conftest.err
33373       } && test -s conftest$ac_exeext &&
33374       $as_test_x conftest$ac_exeext; then
33375  netatalk_cv_HAVE_ACL_GET_PERM_NP=yes
33376else
33377  echo "$as_me: failed program was:" >&5
33378sed 's/^/| /' conftest.$ac_ext >&5
33379
33380	netatalk_cv_HAVE_ACL_GET_PERM_NP=no
33381fi
33382
33383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33384      conftest$ac_exeext conftest.$ac_ext
33385				LIBS=$acl_LIBS
33386
33387fi
33388{ echo "$as_me:$LINENO: result: $netatalk_cv_HAVE_ACL_GET_PERM_NP" >&5
33389echo "${ECHO_T}$netatalk_cv_HAVE_ACL_GET_PERM_NP" >&6; }
33390			if test x"netatalk_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
33391
33392cat >>confdefs.h <<\_ACEOF
33393#define HAVE_ACL_GET_PERM_NP 1
33394_ACEOF
33395
33396			fi
33397
33398			{ echo "$as_me:$LINENO: checking for acl_from_mode" >&5
33399echo $ECHO_N "checking for acl_from_mode... $ECHO_C" >&6; }
33400if test "${netatalk_cv_HAVE_ACL_FROM_MODE+set}" = set; then
33401  echo $ECHO_N "(cached) $ECHO_C" >&6
33402else
33403
33404				acl_LIBS=$LIBS
33405				LIBS="$LIBS $ACL_LIBS"
33406
33407for ac_func in acl_from_mode
33408do
33409as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33410{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33411echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33412if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33413  echo $ECHO_N "(cached) $ECHO_C" >&6
33414else
33415  cat >conftest.$ac_ext <<_ACEOF
33416/* confdefs.h.  */
33417_ACEOF
33418cat confdefs.h >>conftest.$ac_ext
33419cat >>conftest.$ac_ext <<_ACEOF
33420/* end confdefs.h.  */
33421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33422   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33423#define $ac_func innocuous_$ac_func
33424
33425/* System header to define __stub macros and hopefully few prototypes,
33426    which can conflict with char $ac_func (); below.
33427    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33428    <limits.h> exists even on freestanding compilers.  */
33429
33430#ifdef __STDC__
33431# include <limits.h>
33432#else
33433# include <assert.h>
33434#endif
33435
33436#undef $ac_func
33437
33438/* Override any GCC internal prototype to avoid an error.
33439   Use char because int might match the return type of a GCC
33440   builtin and then its argument prototype would still apply.  */
33441#ifdef __cplusplus
33442extern "C"
33443#endif
33444char $ac_func ();
33445/* The GNU C library defines this for functions which it implements
33446    to always fail with ENOSYS.  Some functions are actually named
33447    something starting with __ and the normal name is an alias.  */
33448#if defined __stub_$ac_func || defined __stub___$ac_func
33449choke me
33450#endif
33451
33452int
33453main ()
33454{
33455return $ac_func ();
33456  ;
33457  return 0;
33458}
33459_ACEOF
33460rm -f conftest.$ac_objext conftest$ac_exeext
33461if { (ac_try="$ac_link"
33462case "(($ac_try" in
33463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464  *) ac_try_echo=$ac_try;;
33465esac
33466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467  (eval "$ac_link") 2>conftest.er1
33468  ac_status=$?
33469  grep -v '^ *+' conftest.er1 >conftest.err
33470  rm -f conftest.er1
33471  cat conftest.err >&5
33472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473  (exit $ac_status); } && {
33474	 test -z "$ac_c_werror_flag" ||
33475	 test ! -s conftest.err
33476       } && test -s conftest$ac_exeext &&
33477       $as_test_x conftest$ac_exeext; then
33478  eval "$as_ac_var=yes"
33479else
33480  echo "$as_me: failed program was:" >&5
33481sed 's/^/| /' conftest.$ac_ext >&5
33482
33483	eval "$as_ac_var=no"
33484fi
33485
33486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33487      conftest$ac_exeext conftest.$ac_ext
33488fi
33489ac_res=`eval echo '${'$as_ac_var'}'`
33490	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33491echo "${ECHO_T}$ac_res" >&6; }
33492if test `eval echo '${'$as_ac_var'}'` = yes; then
33493  cat >>confdefs.h <<_ACEOF
33494#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33495_ACEOF
33496 netatalk_cv_HAVE_ACL_FROM_MODE=yes
33497else
33498  netatalk_cv_HAVE_ACL_FROM_MODE=no
33499fi
33500done
33501
33502				LIBS=$acl_LIBS
33503
33504fi
33505{ echo "$as_me:$LINENO: result: $netatalk_cv_HAVE_ACL_FROM_MODE" >&5
33506echo "${ECHO_T}$netatalk_cv_HAVE_ACL_FROM_MODE" >&6; }
33507			if test x"netatalk_cv_HAVE_ACL_FROM_MODE" = x"yes"; then
33508
33509cat >>confdefs.h <<\_ACEOF
33510#define HAVE_ACL_FROM_MODE 1
33511_ACEOF
33512
33513			fi
33514
33515
33516		else
33517			{ echo "$as_me:$LINENO: ACL support is not avaliable" >&5
33518echo "$as_me: ACL support is not avaliable" >&6;}
33519
33520cat >>confdefs.h <<\_ACEOF
33521#define HAVE_NO_ACLS 1
33522_ACEOF
33523
33524		fi
33525		;;
33526    esac
33527fi
33528
33529if test x"$with_acl_support" = x"yes" ; then
33530
33531for ac_header in acl/libacl.h
33532do
33533as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33535  { echo "$as_me:$LINENO: checking for $ac_header" >&5
33536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33538  echo $ECHO_N "(cached) $ECHO_C" >&6
33539fi
33540ac_res=`eval echo '${'$as_ac_Header'}'`
33541	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33542echo "${ECHO_T}$ac_res" >&6; }
33543else
33544  # Is the header compilable?
33545{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33546echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33547cat >conftest.$ac_ext <<_ACEOF
33548/* confdefs.h.  */
33549_ACEOF
33550cat confdefs.h >>conftest.$ac_ext
33551cat >>conftest.$ac_ext <<_ACEOF
33552/* end confdefs.h.  */
33553$ac_includes_default
33554#include <$ac_header>
33555_ACEOF
33556rm -f conftest.$ac_objext
33557if { (ac_try="$ac_compile"
33558case "(($ac_try" in
33559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33560  *) ac_try_echo=$ac_try;;
33561esac
33562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33563  (eval "$ac_compile") 2>conftest.er1
33564  ac_status=$?
33565  grep -v '^ *+' conftest.er1 >conftest.err
33566  rm -f conftest.er1
33567  cat conftest.err >&5
33568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33569  (exit $ac_status); } && {
33570	 test -z "$ac_c_werror_flag" ||
33571	 test ! -s conftest.err
33572       } && test -s conftest.$ac_objext; then
33573  ac_header_compiler=yes
33574else
33575  echo "$as_me: failed program was:" >&5
33576sed 's/^/| /' conftest.$ac_ext >&5
33577
33578	ac_header_compiler=no
33579fi
33580
33581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33582{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33583echo "${ECHO_T}$ac_header_compiler" >&6; }
33584
33585# Is the header present?
33586{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33587echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33588cat >conftest.$ac_ext <<_ACEOF
33589/* confdefs.h.  */
33590_ACEOF
33591cat confdefs.h >>conftest.$ac_ext
33592cat >>conftest.$ac_ext <<_ACEOF
33593/* end confdefs.h.  */
33594#include <$ac_header>
33595_ACEOF
33596if { (ac_try="$ac_cpp conftest.$ac_ext"
33597case "(($ac_try" in
33598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33599  *) ac_try_echo=$ac_try;;
33600esac
33601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33602  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33603  ac_status=$?
33604  grep -v '^ *+' conftest.er1 >conftest.err
33605  rm -f conftest.er1
33606  cat conftest.err >&5
33607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608  (exit $ac_status); } >/dev/null && {
33609	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33610	 test ! -s conftest.err
33611       }; then
33612  ac_header_preproc=yes
33613else
33614  echo "$as_me: failed program was:" >&5
33615sed 's/^/| /' conftest.$ac_ext >&5
33616
33617  ac_header_preproc=no
33618fi
33619
33620rm -f conftest.err conftest.$ac_ext
33621{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33622echo "${ECHO_T}$ac_header_preproc" >&6; }
33623
33624# So?  What about this header?
33625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33626  yes:no: )
33627    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33629    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33631    ac_header_preproc=yes
33632    ;;
33633  no:yes:* )
33634    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33636    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33637echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33638    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33640    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33641echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33642    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33644    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33646
33647    ;;
33648esac
33649{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33652  echo $ECHO_N "(cached) $ECHO_C" >&6
33653else
33654  eval "$as_ac_Header=\$ac_header_preproc"
33655fi
33656ac_res=`eval echo '${'$as_ac_Header'}'`
33657	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33658echo "${ECHO_T}$ac_res" >&6; }
33659
33660fi
33661if test `eval echo '${'$as_ac_Header'}'` = yes; then
33662  cat >>confdefs.h <<_ACEOF
33663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33664_ACEOF
33665
33666fi
33667
33668done
33669
33670
33671cat >>confdefs.h <<\_ACEOF
33672#define HAVE_ACLS 1
33673_ACEOF
33674
33675
33676fi
33677
33678neta_cv_eas="ad"
33679neta_cv_eas_sys_found=no
33680neta_cv_eas_sys_not_found=no
33681
33682
33683
33684
33685
33686
33687
33688for ac_header in sys/attributes.h attr/xattr.h sys/xattr.h sys/extattr.h sys/uio.h sys/ea.h
33689do
33690as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33691if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33692  { echo "$as_me:$LINENO: checking for $ac_header" >&5
33693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33695  echo $ECHO_N "(cached) $ECHO_C" >&6
33696fi
33697ac_res=`eval echo '${'$as_ac_Header'}'`
33698	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33699echo "${ECHO_T}$ac_res" >&6; }
33700else
33701  # Is the header compilable?
33702{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33703echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33704cat >conftest.$ac_ext <<_ACEOF
33705/* confdefs.h.  */
33706_ACEOF
33707cat confdefs.h >>conftest.$ac_ext
33708cat >>conftest.$ac_ext <<_ACEOF
33709/* end confdefs.h.  */
33710$ac_includes_default
33711#include <$ac_header>
33712_ACEOF
33713rm -f conftest.$ac_objext
33714if { (ac_try="$ac_compile"
33715case "(($ac_try" in
33716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33717  *) ac_try_echo=$ac_try;;
33718esac
33719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33720  (eval "$ac_compile") 2>conftest.er1
33721  ac_status=$?
33722  grep -v '^ *+' conftest.er1 >conftest.err
33723  rm -f conftest.er1
33724  cat conftest.err >&5
33725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726  (exit $ac_status); } && {
33727	 test -z "$ac_c_werror_flag" ||
33728	 test ! -s conftest.err
33729       } && test -s conftest.$ac_objext; then
33730  ac_header_compiler=yes
33731else
33732  echo "$as_me: failed program was:" >&5
33733sed 's/^/| /' conftest.$ac_ext >&5
33734
33735	ac_header_compiler=no
33736fi
33737
33738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33739{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33740echo "${ECHO_T}$ac_header_compiler" >&6; }
33741
33742# Is the header present?
33743{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33744echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33745cat >conftest.$ac_ext <<_ACEOF
33746/* confdefs.h.  */
33747_ACEOF
33748cat confdefs.h >>conftest.$ac_ext
33749cat >>conftest.$ac_ext <<_ACEOF
33750/* end confdefs.h.  */
33751#include <$ac_header>
33752_ACEOF
33753if { (ac_try="$ac_cpp conftest.$ac_ext"
33754case "(($ac_try" in
33755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33756  *) ac_try_echo=$ac_try;;
33757esac
33758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33759  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33760  ac_status=$?
33761  grep -v '^ *+' conftest.er1 >conftest.err
33762  rm -f conftest.er1
33763  cat conftest.err >&5
33764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33765  (exit $ac_status); } >/dev/null && {
33766	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33767	 test ! -s conftest.err
33768       }; then
33769  ac_header_preproc=yes
33770else
33771  echo "$as_me: failed program was:" >&5
33772sed 's/^/| /' conftest.$ac_ext >&5
33773
33774  ac_header_preproc=no
33775fi
33776
33777rm -f conftest.err conftest.$ac_ext
33778{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33779echo "${ECHO_T}$ac_header_preproc" >&6; }
33780
33781# So?  What about this header?
33782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33783  yes:no: )
33784    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33786    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33788    ac_header_preproc=yes
33789    ;;
33790  no:yes:* )
33791    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33793    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33794echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33795    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33797    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33798echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33799    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33801    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33803
33804    ;;
33805esac
33806{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33808if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33809  echo $ECHO_N "(cached) $ECHO_C" >&6
33810else
33811  eval "$as_ac_Header=\$ac_header_preproc"
33812fi
33813ac_res=`eval echo '${'$as_ac_Header'}'`
33814	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33815echo "${ECHO_T}$ac_res" >&6; }
33816
33817fi
33818if test `eval echo '${'$as_ac_Header'}'` = yes; then
33819  cat >>confdefs.h <<_ACEOF
33820#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33821_ACEOF
33822
33823fi
33824
33825done
33826
33827
33828case "$this_os" in
33829
33830  *osf*)
33831	{ echo "$as_me:$LINENO: checking for library containing getproplist" >&5
33832echo $ECHO_N "checking for library containing getproplist... $ECHO_C" >&6; }
33833if test "${ac_cv_search_getproplist+set}" = set; then
33834  echo $ECHO_N "(cached) $ECHO_C" >&6
33835else
33836  ac_func_search_save_LIBS=$LIBS
33837cat >conftest.$ac_ext <<_ACEOF
33838/* confdefs.h.  */
33839_ACEOF
33840cat confdefs.h >>conftest.$ac_ext
33841cat >>conftest.$ac_ext <<_ACEOF
33842/* end confdefs.h.  */
33843
33844/* Override any GCC internal prototype to avoid an error.
33845   Use char because int might match the return type of a GCC
33846   builtin and then its argument prototype would still apply.  */
33847#ifdef __cplusplus
33848extern "C"
33849#endif
33850char getproplist ();
33851int
33852main ()
33853{
33854return getproplist ();
33855  ;
33856  return 0;
33857}
33858_ACEOF
33859for ac_lib in '' proplist; do
33860  if test -z "$ac_lib"; then
33861    ac_res="none required"
33862  else
33863    ac_res=-l$ac_lib
33864    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33865  fi
33866  rm -f conftest.$ac_objext conftest$ac_exeext
33867if { (ac_try="$ac_link"
33868case "(($ac_try" in
33869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33870  *) ac_try_echo=$ac_try;;
33871esac
33872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33873  (eval "$ac_link") 2>conftest.er1
33874  ac_status=$?
33875  grep -v '^ *+' conftest.er1 >conftest.err
33876  rm -f conftest.er1
33877  cat conftest.err >&5
33878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879  (exit $ac_status); } && {
33880	 test -z "$ac_c_werror_flag" ||
33881	 test ! -s conftest.err
33882       } && test -s conftest$ac_exeext &&
33883       $as_test_x conftest$ac_exeext; then
33884  ac_cv_search_getproplist=$ac_res
33885else
33886  echo "$as_me: failed program was:" >&5
33887sed 's/^/| /' conftest.$ac_ext >&5
33888
33889
33890fi
33891
33892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33893      conftest$ac_exeext
33894  if test "${ac_cv_search_getproplist+set}" = set; then
33895  break
33896fi
33897done
33898if test "${ac_cv_search_getproplist+set}" = set; then
33899  :
33900else
33901  ac_cv_search_getproplist=no
33902fi
33903rm conftest.$ac_ext
33904LIBS=$ac_func_search_save_LIBS
33905fi
33906{ echo "$as_me:$LINENO: result: $ac_cv_search_getproplist" >&5
33907echo "${ECHO_T}$ac_cv_search_getproplist" >&6; }
33908ac_res=$ac_cv_search_getproplist
33909if test "$ac_res" != no; then
33910  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33911
33912fi
33913
33914
33915
33916
33917
33918for ac_func in getproplist fgetproplist setproplist fsetproplist
33919do
33920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33921{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33923if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33924  echo $ECHO_N "(cached) $ECHO_C" >&6
33925else
33926  cat >conftest.$ac_ext <<_ACEOF
33927/* confdefs.h.  */
33928_ACEOF
33929cat confdefs.h >>conftest.$ac_ext
33930cat >>conftest.$ac_ext <<_ACEOF
33931/* end confdefs.h.  */
33932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33933   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33934#define $ac_func innocuous_$ac_func
33935
33936/* System header to define __stub macros and hopefully few prototypes,
33937    which can conflict with char $ac_func (); below.
33938    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33939    <limits.h> exists even on freestanding compilers.  */
33940
33941#ifdef __STDC__
33942# include <limits.h>
33943#else
33944# include <assert.h>
33945#endif
33946
33947#undef $ac_func
33948
33949/* Override any GCC internal prototype to avoid an error.
33950   Use char because int might match the return type of a GCC
33951   builtin and then its argument prototype would still apply.  */
33952#ifdef __cplusplus
33953extern "C"
33954#endif
33955char $ac_func ();
33956/* The GNU C library defines this for functions which it implements
33957    to always fail with ENOSYS.  Some functions are actually named
33958    something starting with __ and the normal name is an alias.  */
33959#if defined __stub_$ac_func || defined __stub___$ac_func
33960choke me
33961#endif
33962
33963int
33964main ()
33965{
33966return $ac_func ();
33967  ;
33968  return 0;
33969}
33970_ACEOF
33971rm -f conftest.$ac_objext conftest$ac_exeext
33972if { (ac_try="$ac_link"
33973case "(($ac_try" in
33974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33975  *) ac_try_echo=$ac_try;;
33976esac
33977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33978  (eval "$ac_link") 2>conftest.er1
33979  ac_status=$?
33980  grep -v '^ *+' conftest.er1 >conftest.err
33981  rm -f conftest.er1
33982  cat conftest.err >&5
33983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33984  (exit $ac_status); } && {
33985	 test -z "$ac_c_werror_flag" ||
33986	 test ! -s conftest.err
33987       } && test -s conftest$ac_exeext &&
33988       $as_test_x conftest$ac_exeext; then
33989  eval "$as_ac_var=yes"
33990else
33991  echo "$as_me: failed program was:" >&5
33992sed 's/^/| /' conftest.$ac_ext >&5
33993
33994	eval "$as_ac_var=no"
33995fi
33996
33997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33998      conftest$ac_exeext conftest.$ac_ext
33999fi
34000ac_res=`eval echo '${'$as_ac_var'}'`
34001	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34002echo "${ECHO_T}$ac_res" >&6; }
34003if test `eval echo '${'$as_ac_var'}'` = yes; then
34004  cat >>confdefs.h <<_ACEOF
34005#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34006_ACEOF
34007 neta_cv_eas_sys_found=yes
34008else
34009  neta_cv_eas_sys_not_found=yes
34010fi
34011done
34012
34013
34014
34015
34016
34017for ac_func in delproplist fdelproplist add_proplist_entry get_proplist_entry
34018do
34019as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34020{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34021echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34022if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34023  echo $ECHO_N "(cached) $ECHO_C" >&6
34024else
34025  cat >conftest.$ac_ext <<_ACEOF
34026/* confdefs.h.  */
34027_ACEOF
34028cat confdefs.h >>conftest.$ac_ext
34029cat >>conftest.$ac_ext <<_ACEOF
34030/* end confdefs.h.  */
34031/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34032   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34033#define $ac_func innocuous_$ac_func
34034
34035/* System header to define __stub macros and hopefully few prototypes,
34036    which can conflict with char $ac_func (); below.
34037    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34038    <limits.h> exists even on freestanding compilers.  */
34039
34040#ifdef __STDC__
34041# include <limits.h>
34042#else
34043# include <assert.h>
34044#endif
34045
34046#undef $ac_func
34047
34048/* Override any GCC internal prototype to avoid an error.
34049   Use char because int might match the return type of a GCC
34050   builtin and then its argument prototype would still apply.  */
34051#ifdef __cplusplus
34052extern "C"
34053#endif
34054char $ac_func ();
34055/* The GNU C library defines this for functions which it implements
34056    to always fail with ENOSYS.  Some functions are actually named
34057    something starting with __ and the normal name is an alias.  */
34058#if defined __stub_$ac_func || defined __stub___$ac_func
34059choke me
34060#endif
34061
34062int
34063main ()
34064{
34065return $ac_func ();
34066  ;
34067  return 0;
34068}
34069_ACEOF
34070rm -f conftest.$ac_objext conftest$ac_exeext
34071if { (ac_try="$ac_link"
34072case "(($ac_try" in
34073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34074  *) ac_try_echo=$ac_try;;
34075esac
34076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34077  (eval "$ac_link") 2>conftest.er1
34078  ac_status=$?
34079  grep -v '^ *+' conftest.er1 >conftest.err
34080  rm -f conftest.er1
34081  cat conftest.err >&5
34082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083  (exit $ac_status); } && {
34084	 test -z "$ac_c_werror_flag" ||
34085	 test ! -s conftest.err
34086       } && test -s conftest$ac_exeext &&
34087       $as_test_x conftest$ac_exeext; then
34088  eval "$as_ac_var=yes"
34089else
34090  echo "$as_me: failed program was:" >&5
34091sed 's/^/| /' conftest.$ac_ext >&5
34092
34093	eval "$as_ac_var=no"
34094fi
34095
34096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34097      conftest$ac_exeext conftest.$ac_ext
34098fi
34099ac_res=`eval echo '${'$as_ac_var'}'`
34100	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34101echo "${ECHO_T}$ac_res" >&6; }
34102if test `eval echo '${'$as_ac_var'}'` = yes; then
34103  cat >>confdefs.h <<_ACEOF
34104#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34105_ACEOF
34106
34107else
34108  neta_cv_eas_sys_not_found=yes
34109fi
34110done
34111
34112
34113for ac_func in sizeof_proplist_entry
34114do
34115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34116{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34118if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34119  echo $ECHO_N "(cached) $ECHO_C" >&6
34120else
34121  cat >conftest.$ac_ext <<_ACEOF
34122/* confdefs.h.  */
34123_ACEOF
34124cat confdefs.h >>conftest.$ac_ext
34125cat >>conftest.$ac_ext <<_ACEOF
34126/* end confdefs.h.  */
34127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34128   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34129#define $ac_func innocuous_$ac_func
34130
34131/* System header to define __stub macros and hopefully few prototypes,
34132    which can conflict with char $ac_func (); below.
34133    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34134    <limits.h> exists even on freestanding compilers.  */
34135
34136#ifdef __STDC__
34137# include <limits.h>
34138#else
34139# include <assert.h>
34140#endif
34141
34142#undef $ac_func
34143
34144/* Override any GCC internal prototype to avoid an error.
34145   Use char because int might match the return type of a GCC
34146   builtin and then its argument prototype would still apply.  */
34147#ifdef __cplusplus
34148extern "C"
34149#endif
34150char $ac_func ();
34151/* The GNU C library defines this for functions which it implements
34152    to always fail with ENOSYS.  Some functions are actually named
34153    something starting with __ and the normal name is an alias.  */
34154#if defined __stub_$ac_func || defined __stub___$ac_func
34155choke me
34156#endif
34157
34158int
34159main ()
34160{
34161return $ac_func ();
34162  ;
34163  return 0;
34164}
34165_ACEOF
34166rm -f conftest.$ac_objext conftest$ac_exeext
34167if { (ac_try="$ac_link"
34168case "(($ac_try" in
34169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34170  *) ac_try_echo=$ac_try;;
34171esac
34172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34173  (eval "$ac_link") 2>conftest.er1
34174  ac_status=$?
34175  grep -v '^ *+' conftest.er1 >conftest.err
34176  rm -f conftest.er1
34177  cat conftest.err >&5
34178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179  (exit $ac_status); } && {
34180	 test -z "$ac_c_werror_flag" ||
34181	 test ! -s conftest.err
34182       } && test -s conftest$ac_exeext &&
34183       $as_test_x conftest$ac_exeext; then
34184  eval "$as_ac_var=yes"
34185else
34186  echo "$as_me: failed program was:" >&5
34187sed 's/^/| /' conftest.$ac_ext >&5
34188
34189	eval "$as_ac_var=no"
34190fi
34191
34192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34193      conftest$ac_exeext conftest.$ac_ext
34194fi
34195ac_res=`eval echo '${'$as_ac_var'}'`
34196	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34197echo "${ECHO_T}$ac_res" >&6; }
34198if test `eval echo '${'$as_ac_var'}'` = yes; then
34199  cat >>confdefs.h <<_ACEOF
34200#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34201_ACEOF
34202
34203else
34204  neta_cv_eas_sys_not_found=yes
34205fi
34206done
34207
34208  ;;
34209
34210  *solaris*)
34211
34212for ac_func in attropen
34213do
34214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34215{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34217if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34218  echo $ECHO_N "(cached) $ECHO_C" >&6
34219else
34220  cat >conftest.$ac_ext <<_ACEOF
34221/* confdefs.h.  */
34222_ACEOF
34223cat confdefs.h >>conftest.$ac_ext
34224cat >>conftest.$ac_ext <<_ACEOF
34225/* end confdefs.h.  */
34226/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34227   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34228#define $ac_func innocuous_$ac_func
34229
34230/* System header to define __stub macros and hopefully few prototypes,
34231    which can conflict with char $ac_func (); below.
34232    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34233    <limits.h> exists even on freestanding compilers.  */
34234
34235#ifdef __STDC__
34236# include <limits.h>
34237#else
34238# include <assert.h>
34239#endif
34240
34241#undef $ac_func
34242
34243/* Override any GCC internal prototype to avoid an error.
34244   Use char because int might match the return type of a GCC
34245   builtin and then its argument prototype would still apply.  */
34246#ifdef __cplusplus
34247extern "C"
34248#endif
34249char $ac_func ();
34250/* The GNU C library defines this for functions which it implements
34251    to always fail with ENOSYS.  Some functions are actually named
34252    something starting with __ and the normal name is an alias.  */
34253#if defined __stub_$ac_func || defined __stub___$ac_func
34254choke me
34255#endif
34256
34257int
34258main ()
34259{
34260return $ac_func ();
34261  ;
34262  return 0;
34263}
34264_ACEOF
34265rm -f conftest.$ac_objext conftest$ac_exeext
34266if { (ac_try="$ac_link"
34267case "(($ac_try" in
34268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34269  *) ac_try_echo=$ac_try;;
34270esac
34271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34272  (eval "$ac_link") 2>conftest.er1
34273  ac_status=$?
34274  grep -v '^ *+' conftest.er1 >conftest.err
34275  rm -f conftest.er1
34276  cat conftest.err >&5
34277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34278  (exit $ac_status); } && {
34279	 test -z "$ac_c_werror_flag" ||
34280	 test ! -s conftest.err
34281       } && test -s conftest$ac_exeext &&
34282       $as_test_x conftest$ac_exeext; then
34283  eval "$as_ac_var=yes"
34284else
34285  echo "$as_me: failed program was:" >&5
34286sed 's/^/| /' conftest.$ac_ext >&5
34287
34288	eval "$as_ac_var=no"
34289fi
34290
34291rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34292      conftest$ac_exeext conftest.$ac_ext
34293fi
34294ac_res=`eval echo '${'$as_ac_var'}'`
34295	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34296echo "${ECHO_T}$ac_res" >&6; }
34297if test `eval echo '${'$as_ac_var'}'` = yes; then
34298  cat >>confdefs.h <<_ACEOF
34299#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34300_ACEOF
34301 neta_cv_eas_sys_found=yes
34302else
34303  neta_cv_eas_sys_not_found=yes
34304fi
34305done
34306
34307  ;;
34308
34309  'freebsd')
34310
34311
34312
34313for ac_func in extattr_delete_fd extattr_delete_file extattr_delete_link
34314do
34315as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34316{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34317echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34318if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34319  echo $ECHO_N "(cached) $ECHO_C" >&6
34320else
34321  cat >conftest.$ac_ext <<_ACEOF
34322/* confdefs.h.  */
34323_ACEOF
34324cat confdefs.h >>conftest.$ac_ext
34325cat >>conftest.$ac_ext <<_ACEOF
34326/* end confdefs.h.  */
34327/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34328   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34329#define $ac_func innocuous_$ac_func
34330
34331/* System header to define __stub macros and hopefully few prototypes,
34332    which can conflict with char $ac_func (); below.
34333    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34334    <limits.h> exists even on freestanding compilers.  */
34335
34336#ifdef __STDC__
34337# include <limits.h>
34338#else
34339# include <assert.h>
34340#endif
34341
34342#undef $ac_func
34343
34344/* Override any GCC internal prototype to avoid an error.
34345   Use char because int might match the return type of a GCC
34346   builtin and then its argument prototype would still apply.  */
34347#ifdef __cplusplus
34348extern "C"
34349#endif
34350char $ac_func ();
34351/* The GNU C library defines this for functions which it implements
34352    to always fail with ENOSYS.  Some functions are actually named
34353    something starting with __ and the normal name is an alias.  */
34354#if defined __stub_$ac_func || defined __stub___$ac_func
34355choke me
34356#endif
34357
34358int
34359main ()
34360{
34361return $ac_func ();
34362  ;
34363  return 0;
34364}
34365_ACEOF
34366rm -f conftest.$ac_objext conftest$ac_exeext
34367if { (ac_try="$ac_link"
34368case "(($ac_try" in
34369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34370  *) ac_try_echo=$ac_try;;
34371esac
34372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34373  (eval "$ac_link") 2>conftest.er1
34374  ac_status=$?
34375  grep -v '^ *+' conftest.er1 >conftest.err
34376  rm -f conftest.er1
34377  cat conftest.err >&5
34378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34379  (exit $ac_status); } && {
34380	 test -z "$ac_c_werror_flag" ||
34381	 test ! -s conftest.err
34382       } && test -s conftest$ac_exeext &&
34383       $as_test_x conftest$ac_exeext; then
34384  eval "$as_ac_var=yes"
34385else
34386  echo "$as_me: failed program was:" >&5
34387sed 's/^/| /' conftest.$ac_ext >&5
34388
34389	eval "$as_ac_var=no"
34390fi
34391
34392rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34393      conftest$ac_exeext conftest.$ac_ext
34394fi
34395ac_res=`eval echo '${'$as_ac_var'}'`
34396	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34397echo "${ECHO_T}$ac_res" >&6; }
34398if test `eval echo '${'$as_ac_var'}'` = yes; then
34399  cat >>confdefs.h <<_ACEOF
34400#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34401_ACEOF
34402 neta_cv_eas_sys_found=yes
34403else
34404  neta_cv_eas_sys_not_found=yes
34405fi
34406done
34407
34408
34409
34410
34411for ac_func in extattr_get_fd extattr_get_file extattr_get_link
34412do
34413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34414{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34416if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34417  echo $ECHO_N "(cached) $ECHO_C" >&6
34418else
34419  cat >conftest.$ac_ext <<_ACEOF
34420/* confdefs.h.  */
34421_ACEOF
34422cat confdefs.h >>conftest.$ac_ext
34423cat >>conftest.$ac_ext <<_ACEOF
34424/* end confdefs.h.  */
34425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34426   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34427#define $ac_func innocuous_$ac_func
34428
34429/* System header to define __stub macros and hopefully few prototypes,
34430    which can conflict with char $ac_func (); below.
34431    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34432    <limits.h> exists even on freestanding compilers.  */
34433
34434#ifdef __STDC__
34435# include <limits.h>
34436#else
34437# include <assert.h>
34438#endif
34439
34440#undef $ac_func
34441
34442/* Override any GCC internal prototype to avoid an error.
34443   Use char because int might match the return type of a GCC
34444   builtin and then its argument prototype would still apply.  */
34445#ifdef __cplusplus
34446extern "C"
34447#endif
34448char $ac_func ();
34449/* The GNU C library defines this for functions which it implements
34450    to always fail with ENOSYS.  Some functions are actually named
34451    something starting with __ and the normal name is an alias.  */
34452#if defined __stub_$ac_func || defined __stub___$ac_func
34453choke me
34454#endif
34455
34456int
34457main ()
34458{
34459return $ac_func ();
34460  ;
34461  return 0;
34462}
34463_ACEOF
34464rm -f conftest.$ac_objext conftest$ac_exeext
34465if { (ac_try="$ac_link"
34466case "(($ac_try" in
34467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34468  *) ac_try_echo=$ac_try;;
34469esac
34470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34471  (eval "$ac_link") 2>conftest.er1
34472  ac_status=$?
34473  grep -v '^ *+' conftest.er1 >conftest.err
34474  rm -f conftest.er1
34475  cat conftest.err >&5
34476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477  (exit $ac_status); } && {
34478	 test -z "$ac_c_werror_flag" ||
34479	 test ! -s conftest.err
34480       } && test -s conftest$ac_exeext &&
34481       $as_test_x conftest$ac_exeext; then
34482  eval "$as_ac_var=yes"
34483else
34484  echo "$as_me: failed program was:" >&5
34485sed 's/^/| /' conftest.$ac_ext >&5
34486
34487	eval "$as_ac_var=no"
34488fi
34489
34490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34491      conftest$ac_exeext conftest.$ac_ext
34492fi
34493ac_res=`eval echo '${'$as_ac_var'}'`
34494	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34495echo "${ECHO_T}$ac_res" >&6; }
34496if test `eval echo '${'$as_ac_var'}'` = yes; then
34497  cat >>confdefs.h <<_ACEOF
34498#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34499_ACEOF
34500
34501else
34502  neta_cv_eas_sys_not_found=yes
34503fi
34504done
34505
34506
34507
34508
34509for ac_func in extattr_list_fd extattr_list_file extattr_list_link
34510do
34511as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34512{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34513echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34514if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34515  echo $ECHO_N "(cached) $ECHO_C" >&6
34516else
34517  cat >conftest.$ac_ext <<_ACEOF
34518/* confdefs.h.  */
34519_ACEOF
34520cat confdefs.h >>conftest.$ac_ext
34521cat >>conftest.$ac_ext <<_ACEOF
34522/* end confdefs.h.  */
34523/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34524   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34525#define $ac_func innocuous_$ac_func
34526
34527/* System header to define __stub macros and hopefully few prototypes,
34528    which can conflict with char $ac_func (); below.
34529    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34530    <limits.h> exists even on freestanding compilers.  */
34531
34532#ifdef __STDC__
34533# include <limits.h>
34534#else
34535# include <assert.h>
34536#endif
34537
34538#undef $ac_func
34539
34540/* Override any GCC internal prototype to avoid an error.
34541   Use char because int might match the return type of a GCC
34542   builtin and then its argument prototype would still apply.  */
34543#ifdef __cplusplus
34544extern "C"
34545#endif
34546char $ac_func ();
34547/* The GNU C library defines this for functions which it implements
34548    to always fail with ENOSYS.  Some functions are actually named
34549    something starting with __ and the normal name is an alias.  */
34550#if defined __stub_$ac_func || defined __stub___$ac_func
34551choke me
34552#endif
34553
34554int
34555main ()
34556{
34557return $ac_func ();
34558  ;
34559  return 0;
34560}
34561_ACEOF
34562rm -f conftest.$ac_objext conftest$ac_exeext
34563if { (ac_try="$ac_link"
34564case "(($ac_try" in
34565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34566  *) ac_try_echo=$ac_try;;
34567esac
34568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34569  (eval "$ac_link") 2>conftest.er1
34570  ac_status=$?
34571  grep -v '^ *+' conftest.er1 >conftest.err
34572  rm -f conftest.er1
34573  cat conftest.err >&5
34574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34575  (exit $ac_status); } && {
34576	 test -z "$ac_c_werror_flag" ||
34577	 test ! -s conftest.err
34578       } && test -s conftest$ac_exeext &&
34579       $as_test_x conftest$ac_exeext; then
34580  eval "$as_ac_var=yes"
34581else
34582  echo "$as_me: failed program was:" >&5
34583sed 's/^/| /' conftest.$ac_ext >&5
34584
34585	eval "$as_ac_var=no"
34586fi
34587
34588rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34589      conftest$ac_exeext conftest.$ac_ext
34590fi
34591ac_res=`eval echo '${'$as_ac_var'}'`
34592	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34593echo "${ECHO_T}$ac_res" >&6; }
34594if test `eval echo '${'$as_ac_var'}'` = yes; then
34595  cat >>confdefs.h <<_ACEOF
34596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34597_ACEOF
34598
34599else
34600  neta_cv_eas_sys_not_found=yes
34601fi
34602done
34603
34604
34605
34606
34607for ac_func in extattr_set_fd extattr_set_file extattr_set_link
34608do
34609as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34610{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34611echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34612if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34613  echo $ECHO_N "(cached) $ECHO_C" >&6
34614else
34615  cat >conftest.$ac_ext <<_ACEOF
34616/* confdefs.h.  */
34617_ACEOF
34618cat confdefs.h >>conftest.$ac_ext
34619cat >>conftest.$ac_ext <<_ACEOF
34620/* end confdefs.h.  */
34621/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34622   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34623#define $ac_func innocuous_$ac_func
34624
34625/* System header to define __stub macros and hopefully few prototypes,
34626    which can conflict with char $ac_func (); below.
34627    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34628    <limits.h> exists even on freestanding compilers.  */
34629
34630#ifdef __STDC__
34631# include <limits.h>
34632#else
34633# include <assert.h>
34634#endif
34635
34636#undef $ac_func
34637
34638/* Override any GCC internal prototype to avoid an error.
34639   Use char because int might match the return type of a GCC
34640   builtin and then its argument prototype would still apply.  */
34641#ifdef __cplusplus
34642extern "C"
34643#endif
34644char $ac_func ();
34645/* The GNU C library defines this for functions which it implements
34646    to always fail with ENOSYS.  Some functions are actually named
34647    something starting with __ and the normal name is an alias.  */
34648#if defined __stub_$ac_func || defined __stub___$ac_func
34649choke me
34650#endif
34651
34652int
34653main ()
34654{
34655return $ac_func ();
34656  ;
34657  return 0;
34658}
34659_ACEOF
34660rm -f conftest.$ac_objext conftest$ac_exeext
34661if { (ac_try="$ac_link"
34662case "(($ac_try" in
34663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34664  *) ac_try_echo=$ac_try;;
34665esac
34666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34667  (eval "$ac_link") 2>conftest.er1
34668  ac_status=$?
34669  grep -v '^ *+' conftest.er1 >conftest.err
34670  rm -f conftest.er1
34671  cat conftest.err >&5
34672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34673  (exit $ac_status); } && {
34674	 test -z "$ac_c_werror_flag" ||
34675	 test ! -s conftest.err
34676       } && test -s conftest$ac_exeext &&
34677       $as_test_x conftest$ac_exeext; then
34678  eval "$as_ac_var=yes"
34679else
34680  echo "$as_me: failed program was:" >&5
34681sed 's/^/| /' conftest.$ac_ext >&5
34682
34683	eval "$as_ac_var=no"
34684fi
34685
34686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34687      conftest$ac_exeext conftest.$ac_ext
34688fi
34689ac_res=`eval echo '${'$as_ac_var'}'`
34690	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34691echo "${ECHO_T}$ac_res" >&6; }
34692if test `eval echo '${'$as_ac_var'}'` = yes; then
34693  cat >>confdefs.h <<_ACEOF
34694#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34695_ACEOF
34696
34697else
34698  neta_cv_eas_sys_not_found=yes
34699fi
34700done
34701
34702  ;;
34703
34704  *freebsd4* | *dragonfly* )
34705
34706cat >>confdefs.h <<\_ACEOF
34707#define BROKEN_EXTATTR 1
34708_ACEOF
34709
34710  ;;
34711
34712  *)
34713	{ echo "$as_me:$LINENO: checking for library containing getxattr" >&5
34714echo $ECHO_N "checking for library containing getxattr... $ECHO_C" >&6; }
34715if test "${ac_cv_search_getxattr+set}" = set; then
34716  echo $ECHO_N "(cached) $ECHO_C" >&6
34717else
34718  ac_func_search_save_LIBS=$LIBS
34719cat >conftest.$ac_ext <<_ACEOF
34720/* confdefs.h.  */
34721_ACEOF
34722cat confdefs.h >>conftest.$ac_ext
34723cat >>conftest.$ac_ext <<_ACEOF
34724/* end confdefs.h.  */
34725
34726/* Override any GCC internal prototype to avoid an error.
34727   Use char because int might match the return type of a GCC
34728   builtin and then its argument prototype would still apply.  */
34729#ifdef __cplusplus
34730extern "C"
34731#endif
34732char getxattr ();
34733int
34734main ()
34735{
34736return getxattr ();
34737  ;
34738  return 0;
34739}
34740_ACEOF
34741for ac_lib in '' attr; do
34742  if test -z "$ac_lib"; then
34743    ac_res="none required"
34744  else
34745    ac_res=-l$ac_lib
34746    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
34747  fi
34748  rm -f conftest.$ac_objext conftest$ac_exeext
34749if { (ac_try="$ac_link"
34750case "(($ac_try" in
34751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34752  *) ac_try_echo=$ac_try;;
34753esac
34754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34755  (eval "$ac_link") 2>conftest.er1
34756  ac_status=$?
34757  grep -v '^ *+' conftest.er1 >conftest.err
34758  rm -f conftest.er1
34759  cat conftest.err >&5
34760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34761  (exit $ac_status); } && {
34762	 test -z "$ac_c_werror_flag" ||
34763	 test ! -s conftest.err
34764       } && test -s conftest$ac_exeext &&
34765       $as_test_x conftest$ac_exeext; then
34766  ac_cv_search_getxattr=$ac_res
34767else
34768  echo "$as_me: failed program was:" >&5
34769sed 's/^/| /' conftest.$ac_ext >&5
34770
34771
34772fi
34773
34774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34775      conftest$ac_exeext
34776  if test "${ac_cv_search_getxattr+set}" = set; then
34777  break
34778fi
34779done
34780if test "${ac_cv_search_getxattr+set}" = set; then
34781  :
34782else
34783  ac_cv_search_getxattr=no
34784fi
34785rm conftest.$ac_ext
34786LIBS=$ac_func_search_save_LIBS
34787fi
34788{ echo "$as_me:$LINENO: result: $ac_cv_search_getxattr" >&5
34789echo "${ECHO_T}$ac_cv_search_getxattr" >&6; }
34790ac_res=$ac_cv_search_getxattr
34791if test "$ac_res" != no; then
34792  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34793
34794fi
34795
34796
34797    if test "x$neta_cv_eas_sys_found" != "xyes" ; then
34798
34799
34800
34801
34802
34803for ac_func in getxattr lgetxattr fgetxattr listxattr llistxattr
34804do
34805as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34806{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34807echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34808if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34809  echo $ECHO_N "(cached) $ECHO_C" >&6
34810else
34811  cat >conftest.$ac_ext <<_ACEOF
34812/* confdefs.h.  */
34813_ACEOF
34814cat confdefs.h >>conftest.$ac_ext
34815cat >>conftest.$ac_ext <<_ACEOF
34816/* end confdefs.h.  */
34817/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34818   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34819#define $ac_func innocuous_$ac_func
34820
34821/* System header to define __stub macros and hopefully few prototypes,
34822    which can conflict with char $ac_func (); below.
34823    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34824    <limits.h> exists even on freestanding compilers.  */
34825
34826#ifdef __STDC__
34827# include <limits.h>
34828#else
34829# include <assert.h>
34830#endif
34831
34832#undef $ac_func
34833
34834/* Override any GCC internal prototype to avoid an error.
34835   Use char because int might match the return type of a GCC
34836   builtin and then its argument prototype would still apply.  */
34837#ifdef __cplusplus
34838extern "C"
34839#endif
34840char $ac_func ();
34841/* The GNU C library defines this for functions which it implements
34842    to always fail with ENOSYS.  Some functions are actually named
34843    something starting with __ and the normal name is an alias.  */
34844#if defined __stub_$ac_func || defined __stub___$ac_func
34845choke me
34846#endif
34847
34848int
34849main ()
34850{
34851return $ac_func ();
34852  ;
34853  return 0;
34854}
34855_ACEOF
34856rm -f conftest.$ac_objext conftest$ac_exeext
34857if { (ac_try="$ac_link"
34858case "(($ac_try" in
34859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34860  *) ac_try_echo=$ac_try;;
34861esac
34862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34863  (eval "$ac_link") 2>conftest.er1
34864  ac_status=$?
34865  grep -v '^ *+' conftest.er1 >conftest.err
34866  rm -f conftest.er1
34867  cat conftest.err >&5
34868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869  (exit $ac_status); } && {
34870	 test -z "$ac_c_werror_flag" ||
34871	 test ! -s conftest.err
34872       } && test -s conftest$ac_exeext &&
34873       $as_test_x conftest$ac_exeext; then
34874  eval "$as_ac_var=yes"
34875else
34876  echo "$as_me: failed program was:" >&5
34877sed 's/^/| /' conftest.$ac_ext >&5
34878
34879	eval "$as_ac_var=no"
34880fi
34881
34882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34883      conftest$ac_exeext conftest.$ac_ext
34884fi
34885ac_res=`eval echo '${'$as_ac_var'}'`
34886	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34887echo "${ECHO_T}$ac_res" >&6; }
34888if test `eval echo '${'$as_ac_var'}'` = yes; then
34889  cat >>confdefs.h <<_ACEOF
34890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34891_ACEOF
34892 neta_cv_eas_sys_found=yes
34893else
34894  neta_cv_eas_sys_not_found=yes
34895fi
34896done
34897
34898
34899
34900
34901
34902for ac_func in flistxattr removexattr lremovexattr fremovexattr
34903do
34904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34905{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34907if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34908  echo $ECHO_N "(cached) $ECHO_C" >&6
34909else
34910  cat >conftest.$ac_ext <<_ACEOF
34911/* confdefs.h.  */
34912_ACEOF
34913cat confdefs.h >>conftest.$ac_ext
34914cat >>conftest.$ac_ext <<_ACEOF
34915/* end confdefs.h.  */
34916/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34917   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34918#define $ac_func innocuous_$ac_func
34919
34920/* System header to define __stub macros and hopefully few prototypes,
34921    which can conflict with char $ac_func (); below.
34922    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34923    <limits.h> exists even on freestanding compilers.  */
34924
34925#ifdef __STDC__
34926# include <limits.h>
34927#else
34928# include <assert.h>
34929#endif
34930
34931#undef $ac_func
34932
34933/* Override any GCC internal prototype to avoid an error.
34934   Use char because int might match the return type of a GCC
34935   builtin and then its argument prototype would still apply.  */
34936#ifdef __cplusplus
34937extern "C"
34938#endif
34939char $ac_func ();
34940/* The GNU C library defines this for functions which it implements
34941    to always fail with ENOSYS.  Some functions are actually named
34942    something starting with __ and the normal name is an alias.  */
34943#if defined __stub_$ac_func || defined __stub___$ac_func
34944choke me
34945#endif
34946
34947int
34948main ()
34949{
34950return $ac_func ();
34951  ;
34952  return 0;
34953}
34954_ACEOF
34955rm -f conftest.$ac_objext conftest$ac_exeext
34956if { (ac_try="$ac_link"
34957case "(($ac_try" in
34958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34959  *) ac_try_echo=$ac_try;;
34960esac
34961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34962  (eval "$ac_link") 2>conftest.er1
34963  ac_status=$?
34964  grep -v '^ *+' conftest.er1 >conftest.err
34965  rm -f conftest.er1
34966  cat conftest.err >&5
34967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968  (exit $ac_status); } && {
34969	 test -z "$ac_c_werror_flag" ||
34970	 test ! -s conftest.err
34971       } && test -s conftest$ac_exeext &&
34972       $as_test_x conftest$ac_exeext; then
34973  eval "$as_ac_var=yes"
34974else
34975  echo "$as_me: failed program was:" >&5
34976sed 's/^/| /' conftest.$ac_ext >&5
34977
34978	eval "$as_ac_var=no"
34979fi
34980
34981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34982      conftest$ac_exeext conftest.$ac_ext
34983fi
34984ac_res=`eval echo '${'$as_ac_var'}'`
34985	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34986echo "${ECHO_T}$ac_res" >&6; }
34987if test `eval echo '${'$as_ac_var'}'` = yes; then
34988  cat >>confdefs.h <<_ACEOF
34989#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34990_ACEOF
34991
34992else
34993  neta_cv_eas_sys_not_found=yes
34994fi
34995done
34996
34997
34998
34999
35000for ac_func in setxattr lsetxattr fsetxattr
35001do
35002as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35003{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35004echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35005if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35006  echo $ECHO_N "(cached) $ECHO_C" >&6
35007else
35008  cat >conftest.$ac_ext <<_ACEOF
35009/* confdefs.h.  */
35010_ACEOF
35011cat confdefs.h >>conftest.$ac_ext
35012cat >>conftest.$ac_ext <<_ACEOF
35013/* end confdefs.h.  */
35014/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35015   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35016#define $ac_func innocuous_$ac_func
35017
35018/* System header to define __stub macros and hopefully few prototypes,
35019    which can conflict with char $ac_func (); below.
35020    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35021    <limits.h> exists even on freestanding compilers.  */
35022
35023#ifdef __STDC__
35024# include <limits.h>
35025#else
35026# include <assert.h>
35027#endif
35028
35029#undef $ac_func
35030
35031/* Override any GCC internal prototype to avoid an error.
35032   Use char because int might match the return type of a GCC
35033   builtin and then its argument prototype would still apply.  */
35034#ifdef __cplusplus
35035extern "C"
35036#endif
35037char $ac_func ();
35038/* The GNU C library defines this for functions which it implements
35039    to always fail with ENOSYS.  Some functions are actually named
35040    something starting with __ and the normal name is an alias.  */
35041#if defined __stub_$ac_func || defined __stub___$ac_func
35042choke me
35043#endif
35044
35045int
35046main ()
35047{
35048return $ac_func ();
35049  ;
35050  return 0;
35051}
35052_ACEOF
35053rm -f conftest.$ac_objext conftest$ac_exeext
35054if { (ac_try="$ac_link"
35055case "(($ac_try" in
35056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35057  *) ac_try_echo=$ac_try;;
35058esac
35059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35060  (eval "$ac_link") 2>conftest.er1
35061  ac_status=$?
35062  grep -v '^ *+' conftest.er1 >conftest.err
35063  rm -f conftest.er1
35064  cat conftest.err >&5
35065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066  (exit $ac_status); } && {
35067	 test -z "$ac_c_werror_flag" ||
35068	 test ! -s conftest.err
35069       } && test -s conftest$ac_exeext &&
35070       $as_test_x conftest$ac_exeext; then
35071  eval "$as_ac_var=yes"
35072else
35073  echo "$as_me: failed program was:" >&5
35074sed 's/^/| /' conftest.$ac_ext >&5
35075
35076	eval "$as_ac_var=no"
35077fi
35078
35079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35080      conftest$ac_exeext conftest.$ac_ext
35081fi
35082ac_res=`eval echo '${'$as_ac_var'}'`
35083	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35084echo "${ECHO_T}$ac_res" >&6; }
35085if test `eval echo '${'$as_ac_var'}'` = yes; then
35086  cat >>confdefs.h <<_ACEOF
35087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35088_ACEOF
35089
35090else
35091  neta_cv_eas_sys_not_found=yes
35092fi
35093done
35094
35095    fi
35096
35097    if test "x$neta_cv_eas_sys_found" != "xyes" ; then
35098
35099
35100
35101
35102
35103
35104for ac_func in getea fgetea lgetea listea flistea llistea
35105do
35106as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35107{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35108echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35109if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35110  echo $ECHO_N "(cached) $ECHO_C" >&6
35111else
35112  cat >conftest.$ac_ext <<_ACEOF
35113/* confdefs.h.  */
35114_ACEOF
35115cat confdefs.h >>conftest.$ac_ext
35116cat >>conftest.$ac_ext <<_ACEOF
35117/* end confdefs.h.  */
35118/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35119   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35120#define $ac_func innocuous_$ac_func
35121
35122/* System header to define __stub macros and hopefully few prototypes,
35123    which can conflict with char $ac_func (); below.
35124    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35125    <limits.h> exists even on freestanding compilers.  */
35126
35127#ifdef __STDC__
35128# include <limits.h>
35129#else
35130# include <assert.h>
35131#endif
35132
35133#undef $ac_func
35134
35135/* Override any GCC internal prototype to avoid an error.
35136   Use char because int might match the return type of a GCC
35137   builtin and then its argument prototype would still apply.  */
35138#ifdef __cplusplus
35139extern "C"
35140#endif
35141char $ac_func ();
35142/* The GNU C library defines this for functions which it implements
35143    to always fail with ENOSYS.  Some functions are actually named
35144    something starting with __ and the normal name is an alias.  */
35145#if defined __stub_$ac_func || defined __stub___$ac_func
35146choke me
35147#endif
35148
35149int
35150main ()
35151{
35152return $ac_func ();
35153  ;
35154  return 0;
35155}
35156_ACEOF
35157rm -f conftest.$ac_objext conftest$ac_exeext
35158if { (ac_try="$ac_link"
35159case "(($ac_try" in
35160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35161  *) ac_try_echo=$ac_try;;
35162esac
35163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35164  (eval "$ac_link") 2>conftest.er1
35165  ac_status=$?
35166  grep -v '^ *+' conftest.er1 >conftest.err
35167  rm -f conftest.er1
35168  cat conftest.err >&5
35169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35170  (exit $ac_status); } && {
35171	 test -z "$ac_c_werror_flag" ||
35172	 test ! -s conftest.err
35173       } && test -s conftest$ac_exeext &&
35174       $as_test_x conftest$ac_exeext; then
35175  eval "$as_ac_var=yes"
35176else
35177  echo "$as_me: failed program was:" >&5
35178sed 's/^/| /' conftest.$ac_ext >&5
35179
35180	eval "$as_ac_var=no"
35181fi
35182
35183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35184      conftest$ac_exeext conftest.$ac_ext
35185fi
35186ac_res=`eval echo '${'$as_ac_var'}'`
35187	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35188echo "${ECHO_T}$ac_res" >&6; }
35189if test `eval echo '${'$as_ac_var'}'` = yes; then
35190  cat >>confdefs.h <<_ACEOF
35191#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35192_ACEOF
35193 neta_cv_eas_sys_found=yes
35194else
35195  neta_cv_eas_sys_not_found=yes
35196fi
35197done
35198
35199
35200
35201
35202
35203
35204
35205for ac_func in removeea fremoveea lremoveea setea fsetea lsetea
35206do
35207as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35208{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35210if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35211  echo $ECHO_N "(cached) $ECHO_C" >&6
35212else
35213  cat >conftest.$ac_ext <<_ACEOF
35214/* confdefs.h.  */
35215_ACEOF
35216cat confdefs.h >>conftest.$ac_ext
35217cat >>conftest.$ac_ext <<_ACEOF
35218/* end confdefs.h.  */
35219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35220   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35221#define $ac_func innocuous_$ac_func
35222
35223/* System header to define __stub macros and hopefully few prototypes,
35224    which can conflict with char $ac_func (); below.
35225    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35226    <limits.h> exists even on freestanding compilers.  */
35227
35228#ifdef __STDC__
35229# include <limits.h>
35230#else
35231# include <assert.h>
35232#endif
35233
35234#undef $ac_func
35235
35236/* Override any GCC internal prototype to avoid an error.
35237   Use char because int might match the return type of a GCC
35238   builtin and then its argument prototype would still apply.  */
35239#ifdef __cplusplus
35240extern "C"
35241#endif
35242char $ac_func ();
35243/* The GNU C library defines this for functions which it implements
35244    to always fail with ENOSYS.  Some functions are actually named
35245    something starting with __ and the normal name is an alias.  */
35246#if defined __stub_$ac_func || defined __stub___$ac_func
35247choke me
35248#endif
35249
35250int
35251main ()
35252{
35253return $ac_func ();
35254  ;
35255  return 0;
35256}
35257_ACEOF
35258rm -f conftest.$ac_objext conftest$ac_exeext
35259if { (ac_try="$ac_link"
35260case "(($ac_try" in
35261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35262  *) ac_try_echo=$ac_try;;
35263esac
35264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35265  (eval "$ac_link") 2>conftest.er1
35266  ac_status=$?
35267  grep -v '^ *+' conftest.er1 >conftest.err
35268  rm -f conftest.er1
35269  cat conftest.err >&5
35270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35271  (exit $ac_status); } && {
35272	 test -z "$ac_c_werror_flag" ||
35273	 test ! -s conftest.err
35274       } && test -s conftest$ac_exeext &&
35275       $as_test_x conftest$ac_exeext; then
35276  eval "$as_ac_var=yes"
35277else
35278  echo "$as_me: failed program was:" >&5
35279sed 's/^/| /' conftest.$ac_ext >&5
35280
35281	eval "$as_ac_var=no"
35282fi
35283
35284rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35285      conftest$ac_exeext conftest.$ac_ext
35286fi
35287ac_res=`eval echo '${'$as_ac_var'}'`
35288	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35289echo "${ECHO_T}$ac_res" >&6; }
35290if test `eval echo '${'$as_ac_var'}'` = yes; then
35291  cat >>confdefs.h <<_ACEOF
35292#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35293_ACEOF
35294
35295else
35296  neta_cv_eas_sys_not_found=yes
35297fi
35298done
35299
35300    fi
35301
35302    if test "x$neta_cv_eas_sys_found" != "xyes" ; then
35303
35304
35305
35306
35307for ac_func in attr_get attr_list attr_set attr_remove
35308do
35309as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35310{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35311echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35312if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35313  echo $ECHO_N "(cached) $ECHO_C" >&6
35314else
35315  cat >conftest.$ac_ext <<_ACEOF
35316/* confdefs.h.  */
35317_ACEOF
35318cat confdefs.h >>conftest.$ac_ext
35319cat >>conftest.$ac_ext <<_ACEOF
35320/* end confdefs.h.  */
35321/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35322   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35323#define $ac_func innocuous_$ac_func
35324
35325/* System header to define __stub macros and hopefully few prototypes,
35326    which can conflict with char $ac_func (); below.
35327    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35328    <limits.h> exists even on freestanding compilers.  */
35329
35330#ifdef __STDC__
35331# include <limits.h>
35332#else
35333# include <assert.h>
35334#endif
35335
35336#undef $ac_func
35337
35338/* Override any GCC internal prototype to avoid an error.
35339   Use char because int might match the return type of a GCC
35340   builtin and then its argument prototype would still apply.  */
35341#ifdef __cplusplus
35342extern "C"
35343#endif
35344char $ac_func ();
35345/* The GNU C library defines this for functions which it implements
35346    to always fail with ENOSYS.  Some functions are actually named
35347    something starting with __ and the normal name is an alias.  */
35348#if defined __stub_$ac_func || defined __stub___$ac_func
35349choke me
35350#endif
35351
35352int
35353main ()
35354{
35355return $ac_func ();
35356  ;
35357  return 0;
35358}
35359_ACEOF
35360rm -f conftest.$ac_objext conftest$ac_exeext
35361if { (ac_try="$ac_link"
35362case "(($ac_try" in
35363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35364  *) ac_try_echo=$ac_try;;
35365esac
35366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35367  (eval "$ac_link") 2>conftest.er1
35368  ac_status=$?
35369  grep -v '^ *+' conftest.er1 >conftest.err
35370  rm -f conftest.er1
35371  cat conftest.err >&5
35372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35373  (exit $ac_status); } && {
35374	 test -z "$ac_c_werror_flag" ||
35375	 test ! -s conftest.err
35376       } && test -s conftest$ac_exeext &&
35377       $as_test_x conftest$ac_exeext; then
35378  eval "$as_ac_var=yes"
35379else
35380  echo "$as_me: failed program was:" >&5
35381sed 's/^/| /' conftest.$ac_ext >&5
35382
35383	eval "$as_ac_var=no"
35384fi
35385
35386rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35387      conftest$ac_exeext conftest.$ac_ext
35388fi
35389ac_res=`eval echo '${'$as_ac_var'}'`
35390	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35391echo "${ECHO_T}$ac_res" >&6; }
35392if test `eval echo '${'$as_ac_var'}'` = yes; then
35393  cat >>confdefs.h <<_ACEOF
35394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35395_ACEOF
35396
35397else
35398  neta_cv_eas_sys_not_found=yes
35399fi
35400done
35401
35402
35403
35404
35405
35406for ac_func in attr_getf attr_listf attr_setf attr_removef
35407do
35408as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35409{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35411if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35412  echo $ECHO_N "(cached) $ECHO_C" >&6
35413else
35414  cat >conftest.$ac_ext <<_ACEOF
35415/* confdefs.h.  */
35416_ACEOF
35417cat confdefs.h >>conftest.$ac_ext
35418cat >>conftest.$ac_ext <<_ACEOF
35419/* end confdefs.h.  */
35420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35421   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35422#define $ac_func innocuous_$ac_func
35423
35424/* System header to define __stub macros and hopefully few prototypes,
35425    which can conflict with char $ac_func (); below.
35426    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35427    <limits.h> exists even on freestanding compilers.  */
35428
35429#ifdef __STDC__
35430# include <limits.h>
35431#else
35432# include <assert.h>
35433#endif
35434
35435#undef $ac_func
35436
35437/* Override any GCC internal prototype to avoid an error.
35438   Use char because int might match the return type of a GCC
35439   builtin and then its argument prototype would still apply.  */
35440#ifdef __cplusplus
35441extern "C"
35442#endif
35443char $ac_func ();
35444/* The GNU C library defines this for functions which it implements
35445    to always fail with ENOSYS.  Some functions are actually named
35446    something starting with __ and the normal name is an alias.  */
35447#if defined __stub_$ac_func || defined __stub___$ac_func
35448choke me
35449#endif
35450
35451int
35452main ()
35453{
35454return $ac_func ();
35455  ;
35456  return 0;
35457}
35458_ACEOF
35459rm -f conftest.$ac_objext conftest$ac_exeext
35460if { (ac_try="$ac_link"
35461case "(($ac_try" in
35462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35463  *) ac_try_echo=$ac_try;;
35464esac
35465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35466  (eval "$ac_link") 2>conftest.er1
35467  ac_status=$?
35468  grep -v '^ *+' conftest.er1 >conftest.err
35469  rm -f conftest.er1
35470  cat conftest.err >&5
35471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35472  (exit $ac_status); } && {
35473	 test -z "$ac_c_werror_flag" ||
35474	 test ! -s conftest.err
35475       } && test -s conftest$ac_exeext &&
35476       $as_test_x conftest$ac_exeext; then
35477  eval "$as_ac_var=yes"
35478else
35479  echo "$as_me: failed program was:" >&5
35480sed 's/^/| /' conftest.$ac_ext >&5
35481
35482	eval "$as_ac_var=no"
35483fi
35484
35485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35486      conftest$ac_exeext conftest.$ac_ext
35487fi
35488ac_res=`eval echo '${'$as_ac_var'}'`
35489	       { echo "$as_me:$LINENO: result: $ac_res" >&5
35490echo "${ECHO_T}$ac_res" >&6; }
35491if test `eval echo '${'$as_ac_var'}'` = yes; then
35492  cat >>confdefs.h <<_ACEOF
35493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35494_ACEOF
35495
35496else
35497  neta_cv_eas_sys_not_found=yes
35498fi
35499done
35500
35501    fi
35502  ;;
35503esac
35504
35505# Do xattr functions take additional options like on Darwin?
35506if test x"$ac_cv_func_getxattr" = x"yes" ; then
35507	{ echo "$as_me:$LINENO: checking whether xattr interface takes additional options" >&5
35508echo $ECHO_N "checking whether xattr interface takes additional options... $ECHO_C" >&6; }
35509if test "${smb_attr_cv_xattr_add_opt+set}" = set; then
35510  echo $ECHO_N "(cached) $ECHO_C" >&6
35511else
35512
35513		old_LIBS=$LIBS
35514		LIBS="$LIBS $ACL_LIBS"
35515		cat >conftest.$ac_ext <<_ACEOF
35516/* confdefs.h.  */
35517_ACEOF
35518cat confdefs.h >>conftest.$ac_ext
35519cat >>conftest.$ac_ext <<_ACEOF
35520/* end confdefs.h.  */
35521
35522			#include <sys/types.h>
35523			#if HAVE_ATTR_XATTR_H
35524			#include <attr/xattr.h>
35525			#elif HAVE_SYS_XATTR_H
35526			#include <sys/xattr.h>
35527			#endif
35528
35529int
35530main ()
35531{
35532
35533			getxattr(0, 0, 0, 0, 0, 0);
35534
35535  ;
35536  return 0;
35537}
35538_ACEOF
35539rm -f conftest.$ac_objext
35540if { (ac_try="$ac_compile"
35541case "(($ac_try" in
35542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35543  *) ac_try_echo=$ac_try;;
35544esac
35545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35546  (eval "$ac_compile") 2>conftest.er1
35547  ac_status=$?
35548  grep -v '^ *+' conftest.er1 >conftest.err
35549  rm -f conftest.er1
35550  cat conftest.err >&5
35551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35552  (exit $ac_status); } && {
35553	 test -z "$ac_c_werror_flag" ||
35554	 test ! -s conftest.err
35555       } && test -s conftest.$ac_objext; then
35556  smb_attr_cv_xattr_add_opt=yes
35557else
35558  echo "$as_me: failed program was:" >&5
35559sed 's/^/| /' conftest.$ac_ext >&5
35560
35561	smb_attr_cv_xattr_add_opt=no;LIBS=$old_LIBS
35562fi
35563
35564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35565
35566fi
35567{ echo "$as_me:$LINENO: result: $smb_attr_cv_xattr_add_opt" >&5
35568echo "${ECHO_T}$smb_attr_cv_xattr_add_opt" >&6; }
35569	if test x"$smb_attr_cv_xattr_add_opt" = x"yes"; then
35570
35571cat >>confdefs.h <<\_ACEOF
35572#define XATTR_ADD_OPT 1
35573_ACEOF
35574
35575	fi
35576fi
35577
35578if test "x$neta_cv_eas_sys_found" = "xyes" ; then
35579   if test "x$neta_cv_eas_sys_not_found" != "xyes" ; then
35580      neta_cv_eas="$neta_cv_eas | sys"
35581   fi
35582fi
35583
35584cat >>confdefs.h <<_ACEOF
35585#define EA_MODULES "$neta_cv_eas"
35586_ACEOF
35587
35588
35589{ echo "$as_me:$LINENO: checking if the realpath function allows a NULL argument" >&5
35590echo $ECHO_N "checking if the realpath function allows a NULL argument... $ECHO_C" >&6; }
35591if test "${neta_cv_REALPATH_TAKES_NULL+set}" = set; then
35592  echo $ECHO_N "(cached) $ECHO_C" >&6
35593else
35594
35595        if test "$cross_compiling" = yes; then
35596  neta_cv_REALPATH_TAKES_NULL=cross
35597
35598else
35599  cat >conftest.$ac_ext <<_ACEOF
35600/* confdefs.h.  */
35601_ACEOF
35602cat confdefs.h >>conftest.$ac_ext
35603cat >>conftest.$ac_ext <<_ACEOF
35604/* end confdefs.h.  */
35605
35606            #include <stdio.h>
35607            #include <limits.h>
35608            #include <signal.h>
35609
35610            void exit_on_core(int ignored) {
35611                 exit(1);
35612            }
35613
35614            main() {
35615                char *newpath;
35616                signal(SIGSEGV, exit_on_core);
35617                newpath = realpath("/tmp", NULL);
35618                exit((newpath != NULL) ? 0 : 1);
35619            }
35620_ACEOF
35621rm -f conftest$ac_exeext
35622if { (ac_try="$ac_link"
35623case "(($ac_try" in
35624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35625  *) ac_try_echo=$ac_try;;
35626esac
35627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35628  (eval "$ac_link") 2>&5
35629  ac_status=$?
35630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35631  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35632  { (case "(($ac_try" in
35633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35634  *) ac_try_echo=$ac_try;;
35635esac
35636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35637  (eval "$ac_try") 2>&5
35638  ac_status=$?
35639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35640  (exit $ac_status); }; }; then
35641  neta_cv_REALPATH_TAKES_NULL=yes
35642else
35643  echo "$as_me: program exited with status $ac_status" >&5
35644echo "$as_me: failed program was:" >&5
35645sed 's/^/| /' conftest.$ac_ext >&5
35646
35647( exit $ac_status )
35648neta_cv_REALPATH_TAKES_NULL=no
35649fi
35650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35651fi
35652
35653
35654
35655
35656fi
35657{ echo "$as_me:$LINENO: result: $neta_cv_REALPATH_TAKES_NULL" >&5
35658echo "${ECHO_T}$neta_cv_REALPATH_TAKES_NULL" >&6; }
35659
35660if test x"$neta_cv_REALPATH_TAKES_NULL" = x"yes"; then
35661
35662cat >>confdefs.h <<\_ACEOF
35663#define REALPATH_TAKES_NULL 1
35664_ACEOF
35665
35666fi
35667
35668
35669
35670# Check whether --with-webmin was given.
35671if test "${with_webmin+set}" = set; then
35672  withval=$with_webmin; if test "x$withval" = "xyes"; then
35673            webminpath="$PKGCONFDIR"
35674        elif test "x$withval" = "xno"; then
35675            webminpath=""
35676        else
35677            webminpath="$withval"
35678        fi
35679
35680fi
35681
35682
35683
35684# Check whether --with-webminuser was given.
35685if test "${with_webminuser+set}" = set; then
35686  withval=$with_webminuser; if test "x$withval" = "xyes"; then
35687            webminuser=""
35688        elif test "x$withval" = "xno"; then
35689            webminuser=""
35690        else
35691            webminuser="$withval"
35692        fi
35693
35694fi
35695
35696
35697
35698# Check whether --with-webminversion was given.
35699if test "${with_webminversion+set}" = set; then
35700  withval=$with_webminversion; if test "x$withval" = "xyes"; then
35701            webminversion="1.490"
35702        elif test "x$withval" = "xno"; then
35703            webminversions="1.490"
35704        else
35705            webminversion="$withval"
35706        fi
35707
35708fi
35709
35710
35711
35712# Check whether --with-webminpass was given.
35713if test "${with_webminpass+set}" = set; then
35714  withval=$with_webminpass; if test "x$withval" = "xyes"; then
35715            webminpass=""
35716        elif test "x$withval" = "xno"; then
35717            webminpass=""
35718        else
35719            webminpass="$withval"
35720        fi
35721
35722fi
35723
35724
35725
35726# Check whether --with-webminport was given.
35727if test "${with_webminport+set}" = set; then
35728  withval=$with_webminport; if test "x$withval" = "xyes"; then
35729            webminport=""
35730        elif test "x$withval" = "xno"; then
35731            webminport=""
35732        else
35733            webminport="$withval"
35734        fi
35735
35736fi
35737
35738
35739    { echo "$as_me:$LINENO: checking if webmin administration shall be installed" >&5
35740echo $ECHO_N "checking if webmin administration shall be installed... $ECHO_C" >&6; }
35741    if test "x$webminpath" != "x" &&
35742            test "x$webminuser" != "x" &&
35743            test "x$webminpass" != "x" &&
35744            test "x$webminport" != "x" &&
35745            test "x$webminversion" != "x"; then
35746        { echo "$as_me:$LINENO: result: yes" >&5
35747echo "${ECHO_T}yes" >&6; }
35748        { echo "$as_me:$LINENO: checking if neccessary Perl module 'Net::SSLeay' is installed" >&5
35749echo $ECHO_N "checking if neccessary Perl module 'Net::SSLeay' is installed... $ECHO_C" >&6; }
35750        $ac_cv_path_PERL -e 'use Net::SSLeay' >/dev/null 2>/dev/null
35751		if test "$?" != "0" ; then
35752            { echo "$as_me:$LINENO: result: no" >&5
35753echo "${ECHO_T}no" >&6; }
35754            webminpath=""
35755        else
35756            { echo "$as_me:$LINENO: result: yes" >&5
35757echo "${ECHO_T}yes" >&6; }
35758            { echo "$as_me:$LINENO: Installing Webmin in \"$webminpath/webmin\"" >&5
35759echo "$as_me: Installing Webmin in \"$webminpath/webmin\"" >&6;}
35760        fi
35761    else
35762        { echo "$as_me:$LINENO: result: no" >&5
35763echo "${ECHO_T}no" >&6; }
35764    fi
35765
35766    WEBMIN_PATH=$webminpath
35767
35768    WEBMIN_VERSION=$webminversion
35769
35770    WEBMIN_USER=$webminuser
35771
35772    WEBMIN_PASS=$webminpass
35773
35774    WEBMIN_PORT=$webminport
35775
35776
35777
35778
35779
35780
35781
35782
35783 if test x$solaris_module = xyes; then
35784  SOLARIS_MODULE_TRUE=
35785  SOLARIS_MODULE_FALSE='#'
35786else
35787  SOLARIS_MODULE_TRUE='#'
35788  SOLARIS_MODULE_FALSE=
35789fi
35790
35791 if test x$compile_timelord = xyes; then
35792  COMPILE_TIMELORD_TRUE=
35793  COMPILE_TIMELORD_FALSE='#'
35794else
35795  COMPILE_TIMELORD_TRUE='#'
35796  COMPILE_TIMELORD_FALSE=
35797fi
35798
35799 if test x$compile_a2boot = xyes; then
35800  COMPILE_A2BOOT_TRUE=
35801  COMPILE_A2BOOT_FALSE='#'
35802else
35803  COMPILE_A2BOOT_TRUE='#'
35804  COMPILE_A2BOOT_FALSE=
35805fi
35806
35807 if test x$neta_cv_have_libgcrypt = xyes; then
35808  HAVE_LIBGCRYPT_TRUE=
35809  HAVE_LIBGCRYPT_FALSE='#'
35810else
35811  HAVE_LIBGCRYPT_TRUE='#'
35812  HAVE_LIBGCRYPT_FALSE=
35813fi
35814
35815 if test x$neta_cv_have_openssl = xyes; then
35816  HAVE_OPENSSL_TRUE=
35817  HAVE_OPENSSL_FALSE='#'
35818else
35819  HAVE_OPENSSL_TRUE='#'
35820  HAVE_OPENSSL_FALSE=
35821fi
35822
35823 if test x"$with_acl_support" = x"yes"; then
35824  HAVE_ACLS_TRUE=
35825  HAVE_ACLS_FALSE='#'
35826else
35827  HAVE_ACLS_TRUE='#'
35828  HAVE_ACLS_FALSE=
35829fi
35830
35831 if test x"$with_ldap" = x"yes"; then
35832  HAVE_LDAP_TRUE=
35833  HAVE_LDAP_FALSE='#'
35834else
35835  HAVE_LDAP_TRUE='#'
35836  HAVE_LDAP_FALSE=
35837fi
35838
35839 if test x$neta_cv_compile_dhx = xyes; then
35840  USE_DHX_TRUE=
35841  USE_DHX_FALSE='#'
35842else
35843  USE_DHX_TRUE='#'
35844  USE_DHX_FALSE=
35845fi
35846
35847 if test x$neta_cv_compile_dhx2 = xyes; then
35848  USE_DHX2_TRUE=
35849  USE_DHX2_FALSE='#'
35850else
35851  USE_DHX2_TRUE='#'
35852  USE_DHX2_FALSE=
35853fi
35854
35855 if test x$neta_cv_have_openssl = xyes; then
35856  USE_RANDNUM_TRUE=
35857  USE_RANDNUM_FALSE='#'
35858else
35859  USE_RANDNUM_TRUE='#'
35860  USE_RANDNUM_FALSE=
35861fi
35862
35863 if test x$compile_kerberos = xyes; then
35864  USE_KERBEROS_TRUE=
35865  USE_KERBEROS_FALSE='#'
35866else
35867  USE_KERBEROS_TRUE='#'
35868  USE_KERBEROS_FALSE=
35869fi
35870
35871 if test x$use_pam_so = xyes; then
35872  USE_PAM_SO_TRUE=
35873  USE_PAM_SO_FALSE='#'
35874else
35875  USE_PAM_SO_TRUE='#'
35876  USE_PAM_SO_FALSE=
35877fi
35878
35879 if test x$netatalk_cv_install_pam = xyes; then
35880  USE_PAM_TRUE=
35881  USE_PAM_FALSE='#'
35882else
35883  USE_PAM_TRUE='#'
35884  USE_PAM_FALSE=
35885fi
35886
35887 if test x$compile_pam = xyes; then
35888  BUILD_PAM_TRUE=
35889  BUILD_PAM_FALSE='#'
35890else
35891  BUILD_PAM_TRUE='#'
35892  BUILD_PAM_FALSE=
35893fi
35894
35895 if test x$compile_pgp = xyes; then
35896  USE_PGP_TRUE=
35897  USE_PGP_FALSE='#'
35898else
35899  USE_PGP_TRUE='#'
35900  USE_PGP_FALSE=
35901fi
35902
35903 if test x$neta_cv_have_libgcrypt != xyes && test x$neta_cv_have_openssl != xyes; then
35904  DEFAULT_HOOK_TRUE=
35905  DEFAULT_HOOK_FALSE='#'
35906else
35907  DEFAULT_HOOK_TRUE='#'
35908  DEFAULT_HOOK_FALSE=
35909fi
35910
35911 if test x$sysv_style = xcobalt; then
35912  USE_COBALT_TRUE=
35913  USE_COBALT_FALSE='#'
35914else
35915  USE_COBALT_TRUE='#'
35916  USE_COBALT_FALSE=
35917fi
35918
35919 if test x$sysv_style = xnetbsd; then
35920  USE_NETBSD_TRUE=
35921  USE_NETBSD_FALSE='#'
35922else
35923  USE_NETBSD_TRUE='#'
35924  USE_NETBSD_FALSE=
35925fi
35926
35927 if test x$sysv_style = xredhat; then
35928  USE_REDHAT_TRUE=
35929  USE_REDHAT_FALSE='#'
35930else
35931  USE_REDHAT_TRUE='#'
35932  USE_REDHAT_FALSE=
35933fi
35934
35935 if test x$sysv_style = xsuse; then
35936  USE_SUSE_TRUE=
35937  USE_SUSE_FALSE='#'
35938else
35939  USE_SUSE_TRUE='#'
35940  USE_SUSE_FALSE=
35941fi
35942
35943 if test x$shadowpw = xyes; then
35944  USE_SHADOWPW_TRUE=
35945  USE_SHADOWPW_FALSE='#'
35946else
35947  USE_SHADOWPW_TRUE='#'
35948  USE_SHADOWPW_FALSE=
35949fi
35950
35951 if test x$sysv_style = xtru64; then
35952  USE_TRU64_TRUE=
35953  USE_TRU64_FALSE='#'
35954else
35955  USE_TRU64_TRUE='#'
35956  USE_TRU64_FALSE=
35957fi
35958
35959 if test x$sysv_style = xsolaris; then
35960  USE_SOLARIS_TRUE=
35961  USE_SOLARIS_FALSE='#'
35962else
35963  USE_SOLARIS_TRUE='#'
35964  USE_SOLARIS_FALSE=
35965fi
35966
35967 if test x$sysv_style = xgentoo; then
35968  USE_GENTOO_TRUE=
35969  USE_GENTOO_FALSE='#'
35970else
35971  USE_GENTOO_TRUE='#'
35972  USE_GENTOO_FALSE=
35973fi
35974
35975 if test x$sysv_style = xdebian; then
35976  USE_DEBIAN_TRUE=
35977  USE_DEBIAN_FALSE='#'
35978else
35979  USE_DEBIAN_TRUE='#'
35980  USE_DEBIAN_FALSE=
35981fi
35982
35983 if test x$sysv_style = x; then
35984  USE_UNDEF_TRUE=
35985  USE_UNDEF_FALSE='#'
35986else
35987  USE_UNDEF_TRUE='#'
35988  USE_UNDEF_FALSE=
35989fi
35990
35991 if test x$bdb_required = xyes; then
35992  USE_BDB_TRUE=
35993  USE_BDB_FALSE='#'
35994else
35995  USE_BDB_TRUE='#'
35996  USE_BDB_FALSE=
35997fi
35998
35999 if test x$netatalk_cv_ddp_enabled = xyes; then
36000  USE_APPLETALK_TRUE=
36001  USE_APPLETALK_FALSE='#'
36002else
36003  USE_APPLETALK_TRUE='#'
36004  USE_APPLETALK_FALSE=
36005fi
36006
36007 if test x"$ac_neta_haveatfuncs" = x"yes"; then
36008  HAVE_ATFUNCS_TRUE=
36009  HAVE_ATFUNCS_FALSE='#'
36010else
36011  HAVE_ATFUNCS_TRUE='#'
36012  HAVE_ATFUNCS_FALSE=
36013fi
36014
36015
36016
36017ac_config_files="$ac_config_files Makefile bin/Makefile bin/ad/Makefile bin/adv1tov2/Makefile bin/aecho/Makefile bin/afppasswd/Makefile bin/cnid/Makefile bin/cnid/cnid2_create bin/getzones/Makefile bin/megatron/Makefile bin/misc/Makefile bin/nbp/Makefile bin/pap/Makefile bin/psorder/Makefile bin/uniconv/Makefile config/Makefile config/pam/Makefile contrib/Makefile contrib/macusers/Makefile contrib/macusers/macusers contrib/printing/Makefile contrib/shell_utils/Makefile contrib/shell_utils/afpd-mtab.pl contrib/shell_utils/apple_dump contrib/shell_utils/asip-status.pl contrib/timelord/Makefile contrib/a2boot/Makefile distrib/Makefile distrib/config/Makefile distrib/config/netatalk-config distrib/initscripts/Makefile distrib/m4/Makefile doc/Makefile etc/Makefile etc/afpd/Makefile etc/atalkd/Makefile etc/cnid_dbd/Makefile etc/uams/Makefile etc/uams/uams_krb4/Makefile etc/papd/Makefile etc/psf/Makefile include/Makefile include/atalk/Makefile libatalk/Makefile libatalk/acl/Makefile libatalk/adouble/Makefile libatalk/asp/Makefile libatalk/atp/Makefile libatalk/bstring/Makefile libatalk/cnid/Makefile libatalk/cnid/cdb/Makefile libatalk/cnid/last/Makefile libatalk/cnid/dbd/Makefile libatalk/cnid/tdb/Makefile libatalk/compat/Makefile libatalk/dsi/Makefile libatalk/nbp/Makefile libatalk/netddp/Makefile libatalk/util/Makefile libatalk/tdb/Makefile libatalk/unicode/Makefile libatalk/unicode/charsets/Makefile libatalk/vfs/Makefile macros/Makefile man/Makefile man/man1/Makefile man/man3/Makefile man/man4/Makefile man/man5/Makefile man/man8/Makefile sys/Makefile sys/generic/Makefile sys/generic/sys/Makefile sys/netatalk/Makefile sys/netbsd/Makefile sys/netbsd/netatalk/Makefile sys/solaris/Makefile sys/sunos/Makefile sys/ultrix/Makefile test/Makefile test/afpd/Makefile"
36018
36019ac_config_commands="$ac_config_commands default"
36020
36021cat >confcache <<\_ACEOF
36022# This file is a shell script that caches the results of configure
36023# tests run on this system so they can be shared between configure
36024# scripts and configure runs, see configure's option --config-cache.
36025# It is not useful on other systems.  If it contains results you don't
36026# want to keep, you may remove or edit it.
36027#
36028# config.status only pays attention to the cache file if you give it
36029# the --recheck option to rerun configure.
36030#
36031# `ac_cv_env_foo' variables (set or unset) will be overridden when
36032# loading this file, other *unset* `ac_cv_foo' will be assigned the
36033# following values.
36034
36035_ACEOF
36036
36037# The following way of writing the cache mishandles newlines in values,
36038# but we know of no workaround that is simple, portable, and efficient.
36039# So, we kill variables containing newlines.
36040# Ultrix sh set writes to stderr and can't be redirected directly,
36041# and sets the high bit in the cache file unless we assign to the vars.
36042(
36043  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36044    eval ac_val=\$$ac_var
36045    case $ac_val in #(
36046    *${as_nl}*)
36047      case $ac_var in #(
36048      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
36049echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
36050      esac
36051      case $ac_var in #(
36052      _ | IFS | as_nl) ;; #(
36053      *) $as_unset $ac_var ;;
36054      esac ;;
36055    esac
36056  done
36057
36058  (set) 2>&1 |
36059    case $as_nl`(ac_space=' '; set) 2>&1` in #(
36060    *${as_nl}ac_space=\ *)
36061      # `set' does not quote correctly, so add quotes (double-quote
36062      # substitution turns \\\\ into \\, and sed turns \\ into \).
36063      sed -n \
36064	"s/'/'\\\\''/g;
36065	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36066      ;; #(
36067    *)
36068      # `set' quotes correctly as required by POSIX, so do not add quotes.
36069      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36070      ;;
36071    esac |
36072    sort
36073) |
36074  sed '
36075     /^ac_cv_env_/b end
36076     t clear
36077     :clear
36078     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36079     t end
36080     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36081     :end' >>confcache
36082if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36083  if test -w "$cache_file"; then
36084    test "x$cache_file" != "x/dev/null" &&
36085      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
36086echo "$as_me: updating cache $cache_file" >&6;}
36087    cat confcache >$cache_file
36088  else
36089    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
36090echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36091  fi
36092fi
36093rm -f confcache
36094
36095test "x$prefix" = xNONE && prefix=$ac_default_prefix
36096# Let make expand exec_prefix.
36097test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36098
36099DEFS=-DHAVE_CONFIG_H
36100
36101ac_libobjs=
36102ac_ltlibobjs=
36103for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36104  # 1. Remove the extension, and $U if already installed.
36105  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36106  ac_i=`echo "$ac_i" | sed "$ac_script"`
36107  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
36108  #    will be set to the directory where LIBOBJS objects are built.
36109  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36110  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
36111done
36112LIBOBJS=$ac_libobjs
36113
36114LTLIBOBJS=$ac_ltlibobjs
36115
36116
36117if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
36118  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
36119Usually this means the macro was only invoked conditionally." >&5
36120echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
36121Usually this means the macro was only invoked conditionally." >&2;}
36122   { (exit 1); exit 1; }; }
36123fi
36124if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36125  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
36126Usually this means the macro was only invoked conditionally." >&5
36127echo "$as_me: error: conditional \"AMDEP\" was never defined.
36128Usually this means the macro was only invoked conditionally." >&2;}
36129   { (exit 1); exit 1; }; }
36130fi
36131if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36132  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
36133Usually this means the macro was only invoked conditionally." >&5
36134echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
36135Usually this means the macro was only invoked conditionally." >&2;}
36136   { (exit 1); exit 1; }; }
36137fi
36138if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36139  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
36140Usually this means the macro was only invoked conditionally." >&5
36141echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
36142Usually this means the macro was only invoked conditionally." >&2;}
36143   { (exit 1); exit 1; }; }
36144fi
36145if test -z "${BUILD_DBD_DAEMON_TRUE}" && test -z "${BUILD_DBD_DAEMON_FALSE}"; then
36146  { { echo "$as_me:$LINENO: error: conditional \"BUILD_DBD_DAEMON\" was never defined.
36147Usually this means the macro was only invoked conditionally." >&5
36148echo "$as_me: error: conditional \"BUILD_DBD_DAEMON\" was never defined.
36149Usually this means the macro was only invoked conditionally." >&2;}
36150   { (exit 1); exit 1; }; }
36151fi
36152if test -z "${USE_CDB_BACKEND_TRUE}" && test -z "${USE_CDB_BACKEND_FALSE}"; then
36153  { { echo "$as_me:$LINENO: error: conditional \"USE_CDB_BACKEND\" was never defined.
36154Usually this means the macro was only invoked conditionally." >&5
36155echo "$as_me: error: conditional \"USE_CDB_BACKEND\" was never defined.
36156Usually this means the macro was only invoked conditionally." >&2;}
36157   { (exit 1); exit 1; }; }
36158fi
36159if test -z "${USE_LAST_BACKEND_TRUE}" && test -z "${USE_LAST_BACKEND_FALSE}"; then
36160  { { echo "$as_me:$LINENO: error: conditional \"USE_LAST_BACKEND\" was never defined.
36161Usually this means the macro was only invoked conditionally." >&5
36162echo "$as_me: error: conditional \"USE_LAST_BACKEND\" was never defined.
36163Usually this means the macro was only invoked conditionally." >&2;}
36164   { (exit 1); exit 1; }; }
36165fi
36166if test -z "${USE_TDB_BACKEND_TRUE}" && test -z "${USE_TDB_BACKEND_FALSE}"; then
36167  { { echo "$as_me:$LINENO: error: conditional \"USE_TDB_BACKEND\" was never defined.
36168Usually this means the macro was only invoked conditionally." >&5
36169echo "$as_me: error: conditional \"USE_TDB_BACKEND\" was never defined.
36170Usually this means the macro was only invoked conditionally." >&2;}
36171   { (exit 1); exit 1; }; }
36172fi
36173if test -z "${USE_SPOOLDIR_TRUE}" && test -z "${USE_SPOOLDIR_FALSE}"; then
36174  { { echo "$as_me:$LINENO: error: conditional \"USE_SPOOLDIR\" was never defined.
36175Usually this means the macro was only invoked conditionally." >&5
36176echo "$as_me: error: conditional \"USE_SPOOLDIR\" was never defined.
36177Usually this means the macro was only invoked conditionally." >&2;}
36178   { (exit 1); exit 1; }; }
36179fi
36180if test -z "${USE_GSSAPI_TRUE}" && test -z "${USE_GSSAPI_FALSE}"; then
36181  { { echo "$as_me:$LINENO: error: conditional \"USE_GSSAPI\" was never defined.
36182Usually this means the macro was only invoked conditionally." >&5
36183echo "$as_me: error: conditional \"USE_GSSAPI\" was never defined.
36184Usually this means the macro was only invoked conditionally." >&2;}
36185   { (exit 1); exit 1; }; }
36186fi
36187if test -z "${SOLARIS_MODULE_TRUE}" && test -z "${SOLARIS_MODULE_FALSE}"; then
36188  { { echo "$as_me:$LINENO: error: conditional \"SOLARIS_MODULE\" was never defined.
36189Usually this means the macro was only invoked conditionally." >&5
36190echo "$as_me: error: conditional \"SOLARIS_MODULE\" was never defined.
36191Usually this means the macro was only invoked conditionally." >&2;}
36192   { (exit 1); exit 1; }; }
36193fi
36194if test -z "${COMPILE_TIMELORD_TRUE}" && test -z "${COMPILE_TIMELORD_FALSE}"; then
36195  { { echo "$as_me:$LINENO: error: conditional \"COMPILE_TIMELORD\" was never defined.
36196Usually this means the macro was only invoked conditionally." >&5
36197echo "$as_me: error: conditional \"COMPILE_TIMELORD\" was never defined.
36198Usually this means the macro was only invoked conditionally." >&2;}
36199   { (exit 1); exit 1; }; }
36200fi
36201if test -z "${COMPILE_A2BOOT_TRUE}" && test -z "${COMPILE_A2BOOT_FALSE}"; then
36202  { { echo "$as_me:$LINENO: error: conditional \"COMPILE_A2BOOT\" was never defined.
36203Usually this means the macro was only invoked conditionally." >&5
36204echo "$as_me: error: conditional \"COMPILE_A2BOOT\" was never defined.
36205Usually this means the macro was only invoked conditionally." >&2;}
36206   { (exit 1); exit 1; }; }
36207fi
36208if test -z "${HAVE_LIBGCRYPT_TRUE}" && test -z "${HAVE_LIBGCRYPT_FALSE}"; then
36209  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGCRYPT\" was never defined.
36210Usually this means the macro was only invoked conditionally." >&5
36211echo "$as_me: error: conditional \"HAVE_LIBGCRYPT\" was never defined.
36212Usually this means the macro was only invoked conditionally." >&2;}
36213   { (exit 1); exit 1; }; }
36214fi
36215if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
36216  { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined.
36217Usually this means the macro was only invoked conditionally." >&5
36218echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
36219Usually this means the macro was only invoked conditionally." >&2;}
36220   { (exit 1); exit 1; }; }
36221fi
36222if test -z "${HAVE_ACLS_TRUE}" && test -z "${HAVE_ACLS_FALSE}"; then
36223  { { echo "$as_me:$LINENO: error: conditional \"HAVE_ACLS\" was never defined.
36224Usually this means the macro was only invoked conditionally." >&5
36225echo "$as_me: error: conditional \"HAVE_ACLS\" was never defined.
36226Usually this means the macro was only invoked conditionally." >&2;}
36227   { (exit 1); exit 1; }; }
36228fi
36229if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
36230  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LDAP\" was never defined.
36231Usually this means the macro was only invoked conditionally." >&5
36232echo "$as_me: error: conditional \"HAVE_LDAP\" was never defined.
36233Usually this means the macro was only invoked conditionally." >&2;}
36234   { (exit 1); exit 1; }; }
36235fi
36236if test -z "${USE_DHX_TRUE}" && test -z "${USE_DHX_FALSE}"; then
36237  { { echo "$as_me:$LINENO: error: conditional \"USE_DHX\" was never defined.
36238Usually this means the macro was only invoked conditionally." >&5
36239echo "$as_me: error: conditional \"USE_DHX\" was never defined.
36240Usually this means the macro was only invoked conditionally." >&2;}
36241   { (exit 1); exit 1; }; }
36242fi
36243if test -z "${USE_DHX2_TRUE}" && test -z "${USE_DHX2_FALSE}"; then
36244  { { echo "$as_me:$LINENO: error: conditional \"USE_DHX2\" was never defined.
36245Usually this means the macro was only invoked conditionally." >&5
36246echo "$as_me: error: conditional \"USE_DHX2\" was never defined.
36247Usually this means the macro was only invoked conditionally." >&2;}
36248   { (exit 1); exit 1; }; }
36249fi
36250if test -z "${USE_RANDNUM_TRUE}" && test -z "${USE_RANDNUM_FALSE}"; then
36251  { { echo "$as_me:$LINENO: error: conditional \"USE_RANDNUM\" was never defined.
36252Usually this means the macro was only invoked conditionally." >&5
36253echo "$as_me: error: conditional \"USE_RANDNUM\" was never defined.
36254Usually this means the macro was only invoked conditionally." >&2;}
36255   { (exit 1); exit 1; }; }
36256fi
36257if test -z "${USE_KERBEROS_TRUE}" && test -z "${USE_KERBEROS_FALSE}"; then
36258  { { echo "$as_me:$LINENO: error: conditional \"USE_KERBEROS\" was never defined.
36259Usually this means the macro was only invoked conditionally." >&5
36260echo "$as_me: error: conditional \"USE_KERBEROS\" was never defined.
36261Usually this means the macro was only invoked conditionally." >&2;}
36262   { (exit 1); exit 1; }; }
36263fi
36264if test -z "${USE_PAM_SO_TRUE}" && test -z "${USE_PAM_SO_FALSE}"; then
36265  { { echo "$as_me:$LINENO: error: conditional \"USE_PAM_SO\" was never defined.
36266Usually this means the macro was only invoked conditionally." >&5
36267echo "$as_me: error: conditional \"USE_PAM_SO\" was never defined.
36268Usually this means the macro was only invoked conditionally." >&2;}
36269   { (exit 1); exit 1; }; }
36270fi
36271if test -z "${USE_PAM_TRUE}" && test -z "${USE_PAM_FALSE}"; then
36272  { { echo "$as_me:$LINENO: error: conditional \"USE_PAM\" was never defined.
36273Usually this means the macro was only invoked conditionally." >&5
36274echo "$as_me: error: conditional \"USE_PAM\" was never defined.
36275Usually this means the macro was only invoked conditionally." >&2;}
36276   { (exit 1); exit 1; }; }
36277fi
36278if test -z "${BUILD_PAM_TRUE}" && test -z "${BUILD_PAM_FALSE}"; then
36279  { { echo "$as_me:$LINENO: error: conditional \"BUILD_PAM\" was never defined.
36280Usually this means the macro was only invoked conditionally." >&5
36281echo "$as_me: error: conditional \"BUILD_PAM\" was never defined.
36282Usually this means the macro was only invoked conditionally." >&2;}
36283   { (exit 1); exit 1; }; }
36284fi
36285if test -z "${USE_PGP_TRUE}" && test -z "${USE_PGP_FALSE}"; then
36286  { { echo "$as_me:$LINENO: error: conditional \"USE_PGP\" was never defined.
36287Usually this means the macro was only invoked conditionally." >&5
36288echo "$as_me: error: conditional \"USE_PGP\" was never defined.
36289Usually this means the macro was only invoked conditionally." >&2;}
36290   { (exit 1); exit 1; }; }
36291fi
36292if test -z "${DEFAULT_HOOK_TRUE}" && test -z "${DEFAULT_HOOK_FALSE}"; then
36293  { { echo "$as_me:$LINENO: error: conditional \"DEFAULT_HOOK\" was never defined.
36294Usually this means the macro was only invoked conditionally." >&5
36295echo "$as_me: error: conditional \"DEFAULT_HOOK\" was never defined.
36296Usually this means the macro was only invoked conditionally." >&2;}
36297   { (exit 1); exit 1; }; }
36298fi
36299if test -z "${USE_COBALT_TRUE}" && test -z "${USE_COBALT_FALSE}"; then
36300  { { echo "$as_me:$LINENO: error: conditional \"USE_COBALT\" was never defined.
36301Usually this means the macro was only invoked conditionally." >&5
36302echo "$as_me: error: conditional \"USE_COBALT\" was never defined.
36303Usually this means the macro was only invoked conditionally." >&2;}
36304   { (exit 1); exit 1; }; }
36305fi
36306if test -z "${USE_NETBSD_TRUE}" && test -z "${USE_NETBSD_FALSE}"; then
36307  { { echo "$as_me:$LINENO: error: conditional \"USE_NETBSD\" was never defined.
36308Usually this means the macro was only invoked conditionally." >&5
36309echo "$as_me: error: conditional \"USE_NETBSD\" was never defined.
36310Usually this means the macro was only invoked conditionally." >&2;}
36311   { (exit 1); exit 1; }; }
36312fi
36313if test -z "${USE_REDHAT_TRUE}" && test -z "${USE_REDHAT_FALSE}"; then
36314  { { echo "$as_me:$LINENO: error: conditional \"USE_REDHAT\" was never defined.
36315Usually this means the macro was only invoked conditionally." >&5
36316echo "$as_me: error: conditional \"USE_REDHAT\" was never defined.
36317Usually this means the macro was only invoked conditionally." >&2;}
36318   { (exit 1); exit 1; }; }
36319fi
36320if test -z "${USE_SUSE_TRUE}" && test -z "${USE_SUSE_FALSE}"; then
36321  { { echo "$as_me:$LINENO: error: conditional \"USE_SUSE\" was never defined.
36322Usually this means the macro was only invoked conditionally." >&5
36323echo "$as_me: error: conditional \"USE_SUSE\" was never defined.
36324Usually this means the macro was only invoked conditionally." >&2;}
36325   { (exit 1); exit 1; }; }
36326fi
36327if test -z "${USE_SHADOWPW_TRUE}" && test -z "${USE_SHADOWPW_FALSE}"; then
36328  { { echo "$as_me:$LINENO: error: conditional \"USE_SHADOWPW\" was never defined.
36329Usually this means the macro was only invoked conditionally." >&5
36330echo "$as_me: error: conditional \"USE_SHADOWPW\" was never defined.
36331Usually this means the macro was only invoked conditionally." >&2;}
36332   { (exit 1); exit 1; }; }
36333fi
36334if test -z "${USE_TRU64_TRUE}" && test -z "${USE_TRU64_FALSE}"; then
36335  { { echo "$as_me:$LINENO: error: conditional \"USE_TRU64\" was never defined.
36336Usually this means the macro was only invoked conditionally." >&5
36337echo "$as_me: error: conditional \"USE_TRU64\" was never defined.
36338Usually this means the macro was only invoked conditionally." >&2;}
36339   { (exit 1); exit 1; }; }
36340fi
36341if test -z "${USE_SOLARIS_TRUE}" && test -z "${USE_SOLARIS_FALSE}"; then
36342  { { echo "$as_me:$LINENO: error: conditional \"USE_SOLARIS\" was never defined.
36343Usually this means the macro was only invoked conditionally." >&5
36344echo "$as_me: error: conditional \"USE_SOLARIS\" was never defined.
36345Usually this means the macro was only invoked conditionally." >&2;}
36346   { (exit 1); exit 1; }; }
36347fi
36348if test -z "${USE_GENTOO_TRUE}" && test -z "${USE_GENTOO_FALSE}"; then
36349  { { echo "$as_me:$LINENO: error: conditional \"USE_GENTOO\" was never defined.
36350Usually this means the macro was only invoked conditionally." >&5
36351echo "$as_me: error: conditional \"USE_GENTOO\" was never defined.
36352Usually this means the macro was only invoked conditionally." >&2;}
36353   { (exit 1); exit 1; }; }
36354fi
36355if test -z "${USE_DEBIAN_TRUE}" && test -z "${USE_DEBIAN_FALSE}"; then
36356  { { echo "$as_me:$LINENO: error: conditional \"USE_DEBIAN\" was never defined.
36357Usually this means the macro was only invoked conditionally." >&5
36358echo "$as_me: error: conditional \"USE_DEBIAN\" was never defined.
36359Usually this means the macro was only invoked conditionally." >&2;}
36360   { (exit 1); exit 1; }; }
36361fi
36362if test -z "${USE_UNDEF_TRUE}" && test -z "${USE_UNDEF_FALSE}"; then
36363  { { echo "$as_me:$LINENO: error: conditional \"USE_UNDEF\" was never defined.
36364Usually this means the macro was only invoked conditionally." >&5
36365echo "$as_me: error: conditional \"USE_UNDEF\" was never defined.
36366Usually this means the macro was only invoked conditionally." >&2;}
36367   { (exit 1); exit 1; }; }
36368fi
36369if test -z "${USE_BDB_TRUE}" && test -z "${USE_BDB_FALSE}"; then
36370  { { echo "$as_me:$LINENO: error: conditional \"USE_BDB\" was never defined.
36371Usually this means the macro was only invoked conditionally." >&5
36372echo "$as_me: error: conditional \"USE_BDB\" was never defined.
36373Usually this means the macro was only invoked conditionally." >&2;}
36374   { (exit 1); exit 1; }; }
36375fi
36376if test -z "${USE_APPLETALK_TRUE}" && test -z "${USE_APPLETALK_FALSE}"; then
36377  { { echo "$as_me:$LINENO: error: conditional \"USE_APPLETALK\" was never defined.
36378Usually this means the macro was only invoked conditionally." >&5
36379echo "$as_me: error: conditional \"USE_APPLETALK\" was never defined.
36380Usually this means the macro was only invoked conditionally." >&2;}
36381   { (exit 1); exit 1; }; }
36382fi
36383if test -z "${HAVE_ATFUNCS_TRUE}" && test -z "${HAVE_ATFUNCS_FALSE}"; then
36384  { { echo "$as_me:$LINENO: error: conditional \"HAVE_ATFUNCS\" was never defined.
36385Usually this means the macro was only invoked conditionally." >&5
36386echo "$as_me: error: conditional \"HAVE_ATFUNCS\" was never defined.
36387Usually this means the macro was only invoked conditionally." >&2;}
36388   { (exit 1); exit 1; }; }
36389fi
36390
36391: ${CONFIG_STATUS=./config.status}
36392ac_clean_files_save=$ac_clean_files
36393ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36394{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
36395echo "$as_me: creating $CONFIG_STATUS" >&6;}
36396cat >$CONFIG_STATUS <<_ACEOF
36397#! $SHELL
36398# Generated by $as_me.
36399# Run this file to recreate the current configuration.
36400# Compiler output produced by configure, useful for debugging
36401# configure, is in config.log if it exists.
36402
36403debug=false
36404ac_cs_recheck=false
36405ac_cs_silent=false
36406SHELL=\${CONFIG_SHELL-$SHELL}
36407_ACEOF
36408
36409cat >>$CONFIG_STATUS <<\_ACEOF
36410## --------------------- ##
36411## M4sh Initialization.  ##
36412## --------------------- ##
36413
36414# Be more Bourne compatible
36415DUALCASE=1; export DUALCASE # for MKS sh
36416if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
36417  emulate sh
36418  NULLCMD=:
36419  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
36420  # is contrary to our usage.  Disable this feature.
36421  alias -g '${1+"$@"}'='"$@"'
36422  setopt NO_GLOB_SUBST
36423else
36424  case `(set -o) 2>/dev/null` in
36425  *posix*) set -o posix ;;
36426esac
36427
36428fi
36429
36430
36431
36432
36433# PATH needs CR
36434# Avoid depending upon Character Ranges.
36435as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36436as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36437as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36438as_cr_digits='0123456789'
36439as_cr_alnum=$as_cr_Letters$as_cr_digits
36440
36441# The user is always right.
36442if test "${PATH_SEPARATOR+set}" != set; then
36443  echo "#! /bin/sh" >conf$$.sh
36444  echo  "exit 0"   >>conf$$.sh
36445  chmod +x conf$$.sh
36446  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36447    PATH_SEPARATOR=';'
36448  else
36449    PATH_SEPARATOR=:
36450  fi
36451  rm -f conf$$.sh
36452fi
36453
36454# Support unset when possible.
36455if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36456  as_unset=unset
36457else
36458  as_unset=false
36459fi
36460
36461
36462# IFS
36463# We need space, tab and new line, in precisely that order.  Quoting is
36464# there to prevent editors from complaining about space-tab.
36465# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36466# splitting by setting IFS to empty value.)
36467as_nl='
36468'
36469IFS=" ""	$as_nl"
36470
36471# Find who we are.  Look in the path if we contain no directory separator.
36472case $0 in
36473  *[\\/]* ) as_myself=$0 ;;
36474  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36475for as_dir in $PATH
36476do
36477  IFS=$as_save_IFS
36478  test -z "$as_dir" && as_dir=.
36479  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36480done
36481IFS=$as_save_IFS
36482
36483     ;;
36484esac
36485# We did not find ourselves, most probably we were run as `sh COMMAND'
36486# in which case we are not to be found in the path.
36487if test "x$as_myself" = x; then
36488  as_myself=$0
36489fi
36490if test ! -f "$as_myself"; then
36491  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36492  { (exit 1); exit 1; }
36493fi
36494
36495# Work around bugs in pre-3.0 UWIN ksh.
36496for as_var in ENV MAIL MAILPATH
36497do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
36498done
36499PS1='$ '
36500PS2='> '
36501PS4='+ '
36502
36503# NLS nuisances.
36504for as_var in \
36505  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
36506  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
36507  LC_TELEPHONE LC_TIME
36508do
36509  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
36510    eval $as_var=C; export $as_var
36511  else
36512    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
36513  fi
36514done
36515
36516# Required to use basename.
36517if expr a : '\(a\)' >/dev/null 2>&1 &&
36518   test "X`expr 00001 : '.*\(...\)'`" = X001; then
36519  as_expr=expr
36520else
36521  as_expr=false
36522fi
36523
36524if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36525  as_basename=basename
36526else
36527  as_basename=false
36528fi
36529
36530
36531# Name of the executable.
36532as_me=`$as_basename -- "$0" ||
36533$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36534	 X"$0" : 'X\(//\)$' \| \
36535	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36536echo X/"$0" |
36537    sed '/^.*\/\([^/][^/]*\)\/*$/{
36538	    s//\1/
36539	    q
36540	  }
36541	  /^X\/\(\/\/\)$/{
36542	    s//\1/
36543	    q
36544	  }
36545	  /^X\/\(\/\).*/{
36546	    s//\1/
36547	    q
36548	  }
36549	  s/.*/./; q'`
36550
36551# CDPATH.
36552$as_unset CDPATH
36553
36554
36555
36556  as_lineno_1=$LINENO
36557  as_lineno_2=$LINENO
36558  test "x$as_lineno_1" != "x$as_lineno_2" &&
36559  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
36560
36561  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36562  # uniformly replaced by the line number.  The first 'sed' inserts a
36563  # line-number line after each line using $LINENO; the second 'sed'
36564  # does the real work.  The second script uses 'N' to pair each
36565  # line-number line with the line containing $LINENO, and appends
36566  # trailing '-' during substitution so that $LINENO is not a special
36567  # case at line end.
36568  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
36569  # scripts with optimization help from Paolo Bonzini.  Blame Lee
36570  # E. McMahon (1931-1989) for sed's syntax.  :-)
36571  sed -n '
36572    p
36573    /[$]LINENO/=
36574  ' <$as_myself |
36575    sed '
36576      s/[$]LINENO.*/&-/
36577      t lineno
36578      b
36579      :lineno
36580      N
36581      :loop
36582      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
36583      t loop
36584      s/-\n.*//
36585    ' >$as_me.lineno &&
36586  chmod +x "$as_me.lineno" ||
36587    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
36588   { (exit 1); exit 1; }; }
36589
36590  # Don't try to exec as it changes $[0], causing all sort of problems
36591  # (the dirname of $[0] is not the place where we might find the
36592  # original and so on.  Autoconf is especially sensitive to this).
36593  . "./$as_me.lineno"
36594  # Exit status is that of the last command.
36595  exit
36596}
36597
36598
36599if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36600  as_dirname=dirname
36601else
36602  as_dirname=false
36603fi
36604
36605ECHO_C= ECHO_N= ECHO_T=
36606case `echo -n x` in
36607-n*)
36608  case `echo 'x\c'` in
36609  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
36610  *)   ECHO_C='\c';;
36611  esac;;
36612*)
36613  ECHO_N='-n';;
36614esac
36615
36616if expr a : '\(a\)' >/dev/null 2>&1 &&
36617   test "X`expr 00001 : '.*\(...\)'`" = X001; then
36618  as_expr=expr
36619else
36620  as_expr=false
36621fi
36622
36623rm -f conf$$ conf$$.exe conf$$.file
36624if test -d conf$$.dir; then
36625  rm -f conf$$.dir/conf$$.file
36626else
36627  rm -f conf$$.dir
36628  mkdir conf$$.dir
36629fi
36630echo >conf$$.file
36631if ln -s conf$$.file conf$$ 2>/dev/null; then
36632  as_ln_s='ln -s'
36633  # ... but there are two gotchas:
36634  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36635  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36636  # In both cases, we have to default to `cp -p'.
36637  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36638    as_ln_s='cp -p'
36639elif ln conf$$.file conf$$ 2>/dev/null; then
36640  as_ln_s=ln
36641else
36642  as_ln_s='cp -p'
36643fi
36644rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36645rmdir conf$$.dir 2>/dev/null
36646
36647if mkdir -p . 2>/dev/null; then
36648  as_mkdir_p=:
36649else
36650  test -d ./-p && rmdir ./-p
36651  as_mkdir_p=false
36652fi
36653
36654if test -x / >/dev/null 2>&1; then
36655  as_test_x='test -x'
36656else
36657  if ls -dL / >/dev/null 2>&1; then
36658    as_ls_L_option=L
36659  else
36660    as_ls_L_option=
36661  fi
36662  as_test_x='
36663    eval sh -c '\''
36664      if test -d "$1"; then
36665        test -d "$1/.";
36666      else
36667	case $1 in
36668        -*)set "./$1";;
36669	esac;
36670	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
36671	???[sx]*):;;*)false;;esac;fi
36672    '\'' sh
36673  '
36674fi
36675as_executable_p=$as_test_x
36676
36677# Sed expression to map a string onto a valid CPP name.
36678as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36679
36680# Sed expression to map a string onto a valid variable name.
36681as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36682
36683
36684exec 6>&1
36685
36686# Save the log message, to keep $[0] and so on meaningful, and to
36687# report actual input values of CONFIG_FILES etc. instead of their
36688# values after options handling.
36689ac_log="
36690This file was extended by $as_me, which was
36691generated by GNU Autoconf 2.61.  Invocation command line was
36692
36693  CONFIG_FILES    = $CONFIG_FILES
36694  CONFIG_HEADERS  = $CONFIG_HEADERS
36695  CONFIG_LINKS    = $CONFIG_LINKS
36696  CONFIG_COMMANDS = $CONFIG_COMMANDS
36697  $ $0 $@
36698
36699on `(hostname || uname -n) 2>/dev/null | sed 1q`
36700"
36701
36702_ACEOF
36703
36704cat >>$CONFIG_STATUS <<_ACEOF
36705# Files that config.status was made for.
36706config_files="$ac_config_files"
36707config_headers="$ac_config_headers"
36708config_commands="$ac_config_commands"
36709
36710_ACEOF
36711
36712cat >>$CONFIG_STATUS <<\_ACEOF
36713ac_cs_usage="\
36714\`$as_me' instantiates files from templates according to the
36715current configuration.
36716
36717Usage: $0 [OPTIONS] [FILE]...
36718
36719  -h, --help       print this help, then exit
36720  -V, --version    print version number and configuration settings, then exit
36721  -q, --quiet      do not print progress messages
36722  -d, --debug      don't remove temporary files
36723      --recheck    update $as_me by reconfiguring in the same conditions
36724  --file=FILE[:TEMPLATE]
36725		   instantiate the configuration file FILE
36726  --header=FILE[:TEMPLATE]
36727		   instantiate the configuration header FILE
36728
36729Configuration files:
36730$config_files
36731
36732Configuration headers:
36733$config_headers
36734
36735Configuration commands:
36736$config_commands
36737
36738Report bugs to <bug-autoconf@gnu.org>."
36739
36740_ACEOF
36741cat >>$CONFIG_STATUS <<_ACEOF
36742ac_cs_version="\\
36743config.status
36744configured by $0, generated by GNU Autoconf 2.61,
36745  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
36746
36747Copyright (C) 2006 Free Software Foundation, Inc.
36748This config.status script is free software; the Free Software Foundation
36749gives unlimited permission to copy, distribute and modify it."
36750
36751ac_pwd='$ac_pwd'
36752srcdir='$srcdir'
36753INSTALL='$INSTALL'
36754MKDIR_P='$MKDIR_P'
36755_ACEOF
36756
36757cat >>$CONFIG_STATUS <<\_ACEOF
36758# If no file are specified by the user, then we need to provide default
36759# value.  By we need to know if files were specified by the user.
36760ac_need_defaults=:
36761while test $# != 0
36762do
36763  case $1 in
36764  --*=*)
36765    ac_option=`expr "X$1" : 'X\([^=]*\)='`
36766    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36767    ac_shift=:
36768    ;;
36769  *)
36770    ac_option=$1
36771    ac_optarg=$2
36772    ac_shift=shift
36773    ;;
36774  esac
36775
36776  case $ac_option in
36777  # Handling of the options.
36778  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36779    ac_cs_recheck=: ;;
36780  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36781    echo "$ac_cs_version"; exit ;;
36782  --debug | --debu | --deb | --de | --d | -d )
36783    debug=: ;;
36784  --file | --fil | --fi | --f )
36785    $ac_shift
36786    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36787    ac_need_defaults=false;;
36788  --header | --heade | --head | --hea )
36789    $ac_shift
36790    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36791    ac_need_defaults=false;;
36792  --he | --h)
36793    # Conflict between --help and --header
36794    { echo "$as_me: error: ambiguous option: $1
36795Try \`$0 --help' for more information." >&2
36796   { (exit 1); exit 1; }; };;
36797  --help | --hel | -h )
36798    echo "$ac_cs_usage"; exit ;;
36799  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36800  | -silent | --silent | --silen | --sile | --sil | --si | --s)
36801    ac_cs_silent=: ;;
36802
36803  # This is an error.
36804  -*) { echo "$as_me: error: unrecognized option: $1
36805Try \`$0 --help' for more information." >&2
36806   { (exit 1); exit 1; }; } ;;
36807
36808  *) ac_config_targets="$ac_config_targets $1"
36809     ac_need_defaults=false ;;
36810
36811  esac
36812  shift
36813done
36814
36815ac_configure_extra_args=
36816
36817if $ac_cs_silent; then
36818  exec 6>/dev/null
36819  ac_configure_extra_args="$ac_configure_extra_args --silent"
36820fi
36821
36822_ACEOF
36823cat >>$CONFIG_STATUS <<_ACEOF
36824if \$ac_cs_recheck; then
36825  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36826  CONFIG_SHELL=$SHELL
36827  export CONFIG_SHELL
36828  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36829fi
36830
36831_ACEOF
36832cat >>$CONFIG_STATUS <<\_ACEOF
36833exec 5>>config.log
36834{
36835  echo
36836  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36837## Running $as_me. ##
36838_ASBOX
36839  echo "$ac_log"
36840} >&5
36841
36842_ACEOF
36843cat >>$CONFIG_STATUS <<_ACEOF
36844#
36845# INIT-COMMANDS
36846#
36847AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36848
36849_ACEOF
36850
36851cat >>$CONFIG_STATUS <<\_ACEOF
36852
36853# Handling of arguments.
36854for ac_config_target in $ac_config_targets
36855do
36856  case $ac_config_target in
36857    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
36858    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36859    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36860    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
36861    "bin/ad/Makefile") CONFIG_FILES="$CONFIG_FILES bin/ad/Makefile" ;;
36862    "bin/adv1tov2/Makefile") CONFIG_FILES="$CONFIG_FILES bin/adv1tov2/Makefile" ;;
36863    "bin/aecho/Makefile") CONFIG_FILES="$CONFIG_FILES bin/aecho/Makefile" ;;
36864    "bin/afppasswd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/afppasswd/Makefile" ;;
36865    "bin/cnid/Makefile") CONFIG_FILES="$CONFIG_FILES bin/cnid/Makefile" ;;
36866    "bin/cnid/cnid2_create") CONFIG_FILES="$CONFIG_FILES bin/cnid/cnid2_create" ;;
36867    "bin/getzones/Makefile") CONFIG_FILES="$CONFIG_FILES bin/getzones/Makefile" ;;
36868    "bin/megatron/Makefile") CONFIG_FILES="$CONFIG_FILES bin/megatron/Makefile" ;;
36869    "bin/misc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/misc/Makefile" ;;
36870    "bin/nbp/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nbp/Makefile" ;;
36871    "bin/pap/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pap/Makefile" ;;
36872    "bin/psorder/Makefile") CONFIG_FILES="$CONFIG_FILES bin/psorder/Makefile" ;;
36873    "bin/uniconv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/uniconv/Makefile" ;;
36874    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
36875    "config/pam/Makefile") CONFIG_FILES="$CONFIG_FILES config/pam/Makefile" ;;
36876    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
36877    "contrib/macusers/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/macusers/Makefile" ;;
36878    "contrib/macusers/macusers") CONFIG_FILES="$CONFIG_FILES contrib/macusers/macusers" ;;
36879    "contrib/printing/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/printing/Makefile" ;;
36880    "contrib/shell_utils/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/Makefile" ;;
36881    "contrib/shell_utils/afpd-mtab.pl") CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/afpd-mtab.pl" ;;
36882    "contrib/shell_utils/apple_dump") CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/apple_dump" ;;
36883    "contrib/shell_utils/asip-status.pl") CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/asip-status.pl" ;;
36884    "contrib/timelord/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/timelord/Makefile" ;;
36885    "contrib/a2boot/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/a2boot/Makefile" ;;
36886    "distrib/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
36887    "distrib/config/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/config/Makefile" ;;
36888    "distrib/config/netatalk-config") CONFIG_FILES="$CONFIG_FILES distrib/config/netatalk-config" ;;
36889    "distrib/initscripts/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/initscripts/Makefile" ;;
36890    "distrib/m4/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/m4/Makefile" ;;
36891    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
36892    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
36893    "etc/afpd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/afpd/Makefile" ;;
36894    "etc/atalkd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/atalkd/Makefile" ;;
36895    "etc/cnid_dbd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/cnid_dbd/Makefile" ;;
36896    "etc/uams/Makefile") CONFIG_FILES="$CONFIG_FILES etc/uams/Makefile" ;;
36897    "etc/uams/uams_krb4/Makefile") CONFIG_FILES="$CONFIG_FILES etc/uams/uams_krb4/Makefile" ;;
36898    "etc/papd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/papd/Makefile" ;;
36899    "etc/psf/Makefile") CONFIG_FILES="$CONFIG_FILES etc/psf/Makefile" ;;
36900    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
36901    "include/atalk/Makefile") CONFIG_FILES="$CONFIG_FILES include/atalk/Makefile" ;;
36902    "libatalk/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/Makefile" ;;
36903    "libatalk/acl/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/acl/Makefile" ;;
36904    "libatalk/adouble/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/adouble/Makefile" ;;
36905    "libatalk/asp/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/asp/Makefile" ;;
36906    "libatalk/atp/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/atp/Makefile" ;;
36907    "libatalk/bstring/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/bstring/Makefile" ;;
36908    "libatalk/cnid/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/cnid/Makefile" ;;
36909    "libatalk/cnid/cdb/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/cnid/cdb/Makefile" ;;
36910    "libatalk/cnid/last/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/cnid/last/Makefile" ;;
36911    "libatalk/cnid/dbd/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/cnid/dbd/Makefile" ;;
36912    "libatalk/cnid/tdb/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/cnid/tdb/Makefile" ;;
36913    "libatalk/compat/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/compat/Makefile" ;;
36914    "libatalk/dsi/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/dsi/Makefile" ;;
36915    "libatalk/nbp/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/nbp/Makefile" ;;
36916    "libatalk/netddp/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/netddp/Makefile" ;;
36917    "libatalk/util/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/util/Makefile" ;;
36918    "libatalk/tdb/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/tdb/Makefile" ;;
36919    "libatalk/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/unicode/Makefile" ;;
36920    "libatalk/unicode/charsets/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/unicode/charsets/Makefile" ;;
36921    "libatalk/vfs/Makefile") CONFIG_FILES="$CONFIG_FILES libatalk/vfs/Makefile" ;;
36922    "macros/Makefile") CONFIG_FILES="$CONFIG_FILES macros/Makefile" ;;
36923    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
36924    "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
36925    "man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES man/man3/Makefile" ;;
36926    "man/man4/Makefile") CONFIG_FILES="$CONFIG_FILES man/man4/Makefile" ;;
36927    "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
36928    "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
36929    "sys/Makefile") CONFIG_FILES="$CONFIG_FILES sys/Makefile" ;;
36930    "sys/generic/Makefile") CONFIG_FILES="$CONFIG_FILES sys/generic/Makefile" ;;
36931    "sys/generic/sys/Makefile") CONFIG_FILES="$CONFIG_FILES sys/generic/sys/Makefile" ;;
36932    "sys/netatalk/Makefile") CONFIG_FILES="$CONFIG_FILES sys/netatalk/Makefile" ;;
36933    "sys/netbsd/Makefile") CONFIG_FILES="$CONFIG_FILES sys/netbsd/Makefile" ;;
36934    "sys/netbsd/netatalk/Makefile") CONFIG_FILES="$CONFIG_FILES sys/netbsd/netatalk/Makefile" ;;
36935    "sys/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES sys/solaris/Makefile" ;;
36936    "sys/sunos/Makefile") CONFIG_FILES="$CONFIG_FILES sys/sunos/Makefile" ;;
36937    "sys/ultrix/Makefile") CONFIG_FILES="$CONFIG_FILES sys/ultrix/Makefile" ;;
36938    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
36939    "test/afpd/Makefile") CONFIG_FILES="$CONFIG_FILES test/afpd/Makefile" ;;
36940    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36941
36942  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36943echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36944   { (exit 1); exit 1; }; };;
36945  esac
36946done
36947
36948
36949# If the user did not use the arguments to specify the items to instantiate,
36950# then the envvar interface is used.  Set only those that are not.
36951# We use the long form for the default assignment because of an extremely
36952# bizarre bug on SunOS 4.1.3.
36953if $ac_need_defaults; then
36954  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36955  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36956  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36957fi
36958
36959# Have a temporary directory for convenience.  Make it in the build tree
36960# simply because there is no reason against having it here, and in addition,
36961# creating and moving files from /tmp can sometimes cause problems.
36962# Hook for its removal unless debugging.
36963# Note that there is a small window in which the directory will not be cleaned:
36964# after its creation but before its name has been assigned to `$tmp'.
36965$debug ||
36966{
36967  tmp=
36968  trap 'exit_status=$?
36969  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36970' 0
36971  trap '{ (exit 1); exit 1; }' 1 2 13 15
36972}
36973# Create a (secure) tmp directory for tmp files.
36974
36975{
36976  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36977  test -n "$tmp" && test -d "$tmp"
36978}  ||
36979{
36980  tmp=./conf$$-$RANDOM
36981  (umask 077 && mkdir "$tmp")
36982} ||
36983{
36984   echo "$me: cannot create a temporary directory in ." >&2
36985   { (exit 1); exit 1; }
36986}
36987
36988#
36989# Set up the sed scripts for CONFIG_FILES section.
36990#
36991
36992# No need to generate the scripts if there are no CONFIG_FILES.
36993# This happens for instance when ./config.status config.h
36994if test -n "$CONFIG_FILES"; then
36995
36996_ACEOF
36997
36998
36999
37000ac_delim='%!_!# '
37001for ac_last_try in false false false false false :; do
37002  cat >conf$$subs.sed <<_ACEOF
37003GREP!$GREP$ac_delim
37004PERL!$PERL$ac_delim
37005PS!$PS$ac_delim
37006SHELL!$SHELL$ac_delim
37007PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
37008PACKAGE_NAME!$PACKAGE_NAME$ac_delim
37009PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
37010PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
37011PACKAGE_STRING!$PACKAGE_STRING$ac_delim
37012PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
37013exec_prefix!$exec_prefix$ac_delim
37014prefix!$prefix$ac_delim
37015program_transform_name!$program_transform_name$ac_delim
37016bindir!$bindir$ac_delim
37017sbindir!$sbindir$ac_delim
37018libexecdir!$libexecdir$ac_delim
37019datarootdir!$datarootdir$ac_delim
37020datadir!$datadir$ac_delim
37021sysconfdir!$sysconfdir$ac_delim
37022sharedstatedir!$sharedstatedir$ac_delim
37023localstatedir!$localstatedir$ac_delim
37024includedir!$includedir$ac_delim
37025oldincludedir!$oldincludedir$ac_delim
37026docdir!$docdir$ac_delim
37027infodir!$infodir$ac_delim
37028htmldir!$htmldir$ac_delim
37029dvidir!$dvidir$ac_delim
37030pdfdir!$pdfdir$ac_delim
37031psdir!$psdir$ac_delim
37032libdir!$libdir$ac_delim
37033localedir!$localedir$ac_delim
37034mandir!$mandir$ac_delim
37035DEFS!$DEFS$ac_delim
37036ECHO_C!$ECHO_C$ac_delim
37037ECHO_N!$ECHO_N$ac_delim
37038ECHO_T!$ECHO_T$ac_delim
37039LIBS!$LIBS$ac_delim
37040build_alias!$build_alias$ac_delim
37041host_alias!$host_alias$ac_delim
37042target_alias!$target_alias$ac_delim
37043NETATALK_VERSION!$NETATALK_VERSION$ac_delim
37044build!$build$ac_delim
37045build_cpu!$build_cpu$ac_delim
37046build_vendor!$build_vendor$ac_delim
37047build_os!$build_os$ac_delim
37048host!$host$ac_delim
37049host_cpu!$host_cpu$ac_delim
37050host_vendor!$host_vendor$ac_delim
37051host_os!$host_os$ac_delim
37052target!$target$ac_delim
37053target_cpu!$target_cpu$ac_delim
37054target_vendor!$target_vendor$ac_delim
37055target_os!$target_os$ac_delim
37056INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
37057INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
37058INSTALL_DATA!$INSTALL_DATA$ac_delim
37059am__isrc!$am__isrc$ac_delim
37060CYGPATH_W!$CYGPATH_W$ac_delim
37061PACKAGE!$PACKAGE$ac_delim
37062VERSION!$VERSION$ac_delim
37063ACLOCAL!$ACLOCAL$ac_delim
37064AUTOCONF!$AUTOCONF$ac_delim
37065AUTOMAKE!$AUTOMAKE$ac_delim
37066AUTOHEADER!$AUTOHEADER$ac_delim
37067MAKEINFO!$MAKEINFO$ac_delim
37068install_sh!$install_sh$ac_delim
37069STRIP!$STRIP$ac_delim
37070INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
37071mkdir_p!$mkdir_p$ac_delim
37072AWK!$AWK$ac_delim
37073SET_MAKE!$SET_MAKE$ac_delim
37074am__leading_dot!$am__leading_dot$ac_delim
37075AMTAR!$AMTAR$ac_delim
37076am__tar!$am__tar$ac_delim
37077am__untar!$am__untar$ac_delim
37078MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
37079MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
37080MAINT!$MAINT$ac_delim
37081CC!$CC$ac_delim
37082CFLAGS!$CFLAGS$ac_delim
37083LDFLAGS!$LDFLAGS$ac_delim
37084CPPFLAGS!$CPPFLAGS$ac_delim
37085ac_ct_CC!$ac_ct_CC$ac_delim
37086EXEEXT!$EXEEXT$ac_delim
37087OBJEXT!$OBJEXT$ac_delim
37088DEPDIR!$DEPDIR$ac_delim
37089am__include!$am__include$ac_delim
37090am__quote!$am__quote$ac_delim
37091AMDEP_TRUE!$AMDEP_TRUE$ac_delim
37092AMDEP_FALSE!$AMDEP_FALSE$ac_delim
37093AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
37094CCDEPMODE!$CCDEPMODE$ac_delim
37095am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
37096am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
37097LN_S!$LN_S$ac_delim
37098SED!$SED$ac_delim
37099EGREP!$EGREP$ac_delim
37100_ACEOF
37101
37102  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
37103    break
37104  elif $ac_last_try; then
37105    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
37106echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
37107   { (exit 1); exit 1; }; }
37108  else
37109    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37110  fi
37111done
37112
37113ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
37114if test -n "$ac_eof"; then
37115  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
37116  ac_eof=`expr $ac_eof + 1`
37117fi
37118
37119cat >>$CONFIG_STATUS <<_ACEOF
37120cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
37121/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37122_ACEOF
37123sed '
37124s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
37125s/^/s,@/; s/!/@,|#_!!_#|/
37126:n
37127t n
37128s/'"$ac_delim"'$/,g/; t
37129s/$/\\/; p
37130N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
37131' >>$CONFIG_STATUS <conf$$subs.sed
37132rm -f conf$$subs.sed
37133cat >>$CONFIG_STATUS <<_ACEOF
37134CEOF$ac_eof
37135_ACEOF
37136
37137
37138ac_delim='%!_!# '
37139for ac_last_try in false false false false false :; do
37140  cat >conf$$subs.sed <<_ACEOF
37141ECHO!$ECHO$ac_delim
37142AR!$AR$ac_delim
37143RANLIB!$RANLIB$ac_delim
37144DSYMUTIL!$DSYMUTIL$ac_delim
37145NMEDIT!$NMEDIT$ac_delim
37146CPP!$CPP$ac_delim
37147CXX!$CXX$ac_delim
37148CXXFLAGS!$CXXFLAGS$ac_delim
37149ac_ct_CXX!$ac_ct_CXX$ac_delim
37150CXXDEPMODE!$CXXDEPMODE$ac_delim
37151am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
37152am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
37153CXXCPP!$CXXCPP$ac_delim
37154F77!$F77$ac_delim
37155FFLAGS!$FFLAGS$ac_delim
37156ac_ct_F77!$ac_ct_F77$ac_delim
37157LIBTOOL!$LIBTOOL$ac_delim
37158LIBADD_DL!$LIBADD_DL$ac_delim
37159LIBOBJS!$LIBOBJS$ac_delim
37160PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
37161AFS_LIBS!$AFS_LIBS$ac_delim
37162AFS_CFLAGS!$AFS_CFLAGS$ac_delim
37163PKGCONFDIR!$PKGCONFDIR$ac_delim
37164SERVERTEXT!$SERVERTEXT$ac_delim
37165ICONV_CFLAGS!$ICONV_CFLAGS$ac_delim
37166ICONV_LIBS!$ICONV_LIBS$ac_delim
37167BUILD_DBD_DAEMON_TRUE!$BUILD_DBD_DAEMON_TRUE$ac_delim
37168BUILD_DBD_DAEMON_FALSE!$BUILD_DBD_DAEMON_FALSE$ac_delim
37169USE_CDB_BACKEND_TRUE!$USE_CDB_BACKEND_TRUE$ac_delim
37170USE_CDB_BACKEND_FALSE!$USE_CDB_BACKEND_FALSE$ac_delim
37171USE_LAST_BACKEND_TRUE!$USE_LAST_BACKEND_TRUE$ac_delim
37172USE_LAST_BACKEND_FALSE!$USE_LAST_BACKEND_FALSE$ac_delim
37173USE_TDB_BACKEND_TRUE!$USE_TDB_BACKEND_TRUE$ac_delim
37174USE_TDB_BACKEND_FALSE!$USE_TDB_BACKEND_FALSE$ac_delim
37175DEFAULT_CNID_SCHEME!$DEFAULT_CNID_SCHEME$ac_delim
37176compiled_backends!$compiled_backends$ac_delim
37177QUOTA_LIBS!$QUOTA_LIBS$ac_delim
37178SLP_LIBS!$SLP_LIBS$ac_delim
37179SLP_CFLAGS!$SLP_CFLAGS$ac_delim
37180PKG_CONFIG!$PKG_CONFIG$ac_delim
37181AVAHI_CFLAGS!$AVAHI_CFLAGS$ac_delim
37182AVAHI_LIBS!$AVAHI_LIBS$ac_delim
37183AVAHI_TPOLL_CFLAGS!$AVAHI_TPOLL_CFLAGS$ac_delim
37184AVAHI_TPOLL_LIBS!$AVAHI_TPOLL_LIBS$ac_delim
37185ZEROCONF_LIBS!$ZEROCONF_LIBS$ac_delim
37186ZEROCONF_CFLAGS!$ZEROCONF_CFLAGS$ac_delim
37187PAMDIR!$PAMDIR$ac_delim
37188PAM_CFLAGS!$PAM_CFLAGS$ac_delim
37189PAM_LIBS!$PAM_LIBS$ac_delim
37190PAM_DIRECTIVE!$PAM_DIRECTIVE$ac_delim
37191PAM_AUTH!$PAM_AUTH$ac_delim
37192PAM_ACCOUNT!$PAM_ACCOUNT$ac_delim
37193PAM_PASSWORD!$PAM_PASSWORD$ac_delim
37194PAM_SESSION!$PAM_SESSION$ac_delim
37195WRAP_LIBS!$WRAP_LIBS$ac_delim
37196CUPS_CONFIG!$CUPS_CONFIG$ac_delim
37197CUPS_CFLAGS!$CUPS_CFLAGS$ac_delim
37198CUPS_LDFLAGS!$CUPS_LDFLAGS$ac_delim
37199CUPS_LIBS!$CUPS_LIBS$ac_delim
37200USE_SPOOLDIR_TRUE!$USE_SPOOLDIR_TRUE$ac_delim
37201USE_SPOOLDIR_FALSE!$USE_SPOOLDIR_FALSE$ac_delim
37202SPOOLDIR!$SPOOLDIR$ac_delim
37203UAMS_PATH!$UAMS_PATH$ac_delim
37204COMPILE_KERNEL_GCC!$COMPILE_KERNEL_GCC$ac_delim
37205COMPILE_64BIT_KMODULE!$COMPILE_64BIT_KMODULE$ac_delim
37206KCFLAGS!$KCFLAGS$ac_delim
37207KLDFLAGS!$KLDFLAGS$ac_delim
37208LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
37209LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
37210LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
37211SSL_CFLAGS!$SSL_CFLAGS$ac_delim
37212SSL_LIBS!$SSL_LIBS$ac_delim
37213BDB_CFLAGS!$BDB_CFLAGS$ac_delim
37214BDB_LIBS!$BDB_LIBS$ac_delim
37215BDB_BIN!$BDB_BIN$ac_delim
37216BDB_PATH!$BDB_PATH$ac_delim
37217CRYPT_LIBS!$CRYPT_LIBS$ac_delim
37218KRB5_CONFIG!$KRB5_CONFIG$ac_delim
37219GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
37220GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
37221USE_GSSAPI_TRUE!$USE_GSSAPI_TRUE$ac_delim
37222USE_GSSAPI_FALSE!$USE_GSSAPI_FALSE$ac_delim
37223ACL_LIBS!$ACL_LIBS$ac_delim
37224WEBMIN_PATH!$WEBMIN_PATH$ac_delim
37225WEBMIN_VERSION!$WEBMIN_VERSION$ac_delim
37226WEBMIN_USER!$WEBMIN_USER$ac_delim
37227WEBMIN_PASS!$WEBMIN_PASS$ac_delim
37228WEBMIN_PORT!$WEBMIN_PORT$ac_delim
37229OVERWRITE_CONFIG!$OVERWRITE_CONFIG$ac_delim
37230SOLARIS_MODULE_TRUE!$SOLARIS_MODULE_TRUE$ac_delim
37231SOLARIS_MODULE_FALSE!$SOLARIS_MODULE_FALSE$ac_delim
37232COMPILE_TIMELORD_TRUE!$COMPILE_TIMELORD_TRUE$ac_delim
37233COMPILE_TIMELORD_FALSE!$COMPILE_TIMELORD_FALSE$ac_delim
37234COMPILE_A2BOOT_TRUE!$COMPILE_A2BOOT_TRUE$ac_delim
37235COMPILE_A2BOOT_FALSE!$COMPILE_A2BOOT_FALSE$ac_delim
37236HAVE_LIBGCRYPT_TRUE!$HAVE_LIBGCRYPT_TRUE$ac_delim
37237HAVE_LIBGCRYPT_FALSE!$HAVE_LIBGCRYPT_FALSE$ac_delim
37238_ACEOF
37239
37240  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
37241    break
37242  elif $ac_last_try; then
37243    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
37244echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
37245   { (exit 1); exit 1; }; }
37246  else
37247    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37248  fi
37249done
37250
37251ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
37252if test -n "$ac_eof"; then
37253  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
37254  ac_eof=`expr $ac_eof + 1`
37255fi
37256
37257cat >>$CONFIG_STATUS <<_ACEOF
37258cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
37259/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37260_ACEOF
37261sed '
37262s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
37263s/^/s,@/; s/!/@,|#_!!_#|/
37264:n
37265t n
37266s/'"$ac_delim"'$/,g/; t
37267s/$/\\/; p
37268N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
37269' >>$CONFIG_STATUS <conf$$subs.sed
37270rm -f conf$$subs.sed
37271cat >>$CONFIG_STATUS <<_ACEOF
37272CEOF$ac_eof
37273_ACEOF
37274
37275
37276ac_delim='%!_!# '
37277for ac_last_try in false false false false false :; do
37278  cat >conf$$subs.sed <<_ACEOF
37279HAVE_OPENSSL_TRUE!$HAVE_OPENSSL_TRUE$ac_delim
37280HAVE_OPENSSL_FALSE!$HAVE_OPENSSL_FALSE$ac_delim
37281HAVE_ACLS_TRUE!$HAVE_ACLS_TRUE$ac_delim
37282HAVE_ACLS_FALSE!$HAVE_ACLS_FALSE$ac_delim
37283HAVE_LDAP_TRUE!$HAVE_LDAP_TRUE$ac_delim
37284HAVE_LDAP_FALSE!$HAVE_LDAP_FALSE$ac_delim
37285USE_DHX_TRUE!$USE_DHX_TRUE$ac_delim
37286USE_DHX_FALSE!$USE_DHX_FALSE$ac_delim
37287USE_DHX2_TRUE!$USE_DHX2_TRUE$ac_delim
37288USE_DHX2_FALSE!$USE_DHX2_FALSE$ac_delim
37289USE_RANDNUM_TRUE!$USE_RANDNUM_TRUE$ac_delim
37290USE_RANDNUM_FALSE!$USE_RANDNUM_FALSE$ac_delim
37291USE_KERBEROS_TRUE!$USE_KERBEROS_TRUE$ac_delim
37292USE_KERBEROS_FALSE!$USE_KERBEROS_FALSE$ac_delim
37293USE_PAM_SO_TRUE!$USE_PAM_SO_TRUE$ac_delim
37294USE_PAM_SO_FALSE!$USE_PAM_SO_FALSE$ac_delim
37295USE_PAM_TRUE!$USE_PAM_TRUE$ac_delim
37296USE_PAM_FALSE!$USE_PAM_FALSE$ac_delim
37297BUILD_PAM_TRUE!$BUILD_PAM_TRUE$ac_delim
37298BUILD_PAM_FALSE!$BUILD_PAM_FALSE$ac_delim
37299USE_PGP_TRUE!$USE_PGP_TRUE$ac_delim
37300USE_PGP_FALSE!$USE_PGP_FALSE$ac_delim
37301DEFAULT_HOOK_TRUE!$DEFAULT_HOOK_TRUE$ac_delim
37302DEFAULT_HOOK_FALSE!$DEFAULT_HOOK_FALSE$ac_delim
37303USE_COBALT_TRUE!$USE_COBALT_TRUE$ac_delim
37304USE_COBALT_FALSE!$USE_COBALT_FALSE$ac_delim
37305USE_NETBSD_TRUE!$USE_NETBSD_TRUE$ac_delim
37306USE_NETBSD_FALSE!$USE_NETBSD_FALSE$ac_delim
37307USE_REDHAT_TRUE!$USE_REDHAT_TRUE$ac_delim
37308USE_REDHAT_FALSE!$USE_REDHAT_FALSE$ac_delim
37309USE_SUSE_TRUE!$USE_SUSE_TRUE$ac_delim
37310USE_SUSE_FALSE!$USE_SUSE_FALSE$ac_delim
37311USE_SHADOWPW_TRUE!$USE_SHADOWPW_TRUE$ac_delim
37312USE_SHADOWPW_FALSE!$USE_SHADOWPW_FALSE$ac_delim
37313USE_TRU64_TRUE!$USE_TRU64_TRUE$ac_delim
37314USE_TRU64_FALSE!$USE_TRU64_FALSE$ac_delim
37315USE_SOLARIS_TRUE!$USE_SOLARIS_TRUE$ac_delim
37316USE_SOLARIS_FALSE!$USE_SOLARIS_FALSE$ac_delim
37317USE_GENTOO_TRUE!$USE_GENTOO_TRUE$ac_delim
37318USE_GENTOO_FALSE!$USE_GENTOO_FALSE$ac_delim
37319USE_DEBIAN_TRUE!$USE_DEBIAN_TRUE$ac_delim
37320USE_DEBIAN_FALSE!$USE_DEBIAN_FALSE$ac_delim
37321USE_UNDEF_TRUE!$USE_UNDEF_TRUE$ac_delim
37322USE_UNDEF_FALSE!$USE_UNDEF_FALSE$ac_delim
37323USE_BDB_TRUE!$USE_BDB_TRUE$ac_delim
37324USE_BDB_FALSE!$USE_BDB_FALSE$ac_delim
37325USE_APPLETALK_TRUE!$USE_APPLETALK_TRUE$ac_delim
37326USE_APPLETALK_FALSE!$USE_APPLETALK_FALSE$ac_delim
37327HAVE_ATFUNCS_TRUE!$HAVE_ATFUNCS_TRUE$ac_delim
37328HAVE_ATFUNCS_FALSE!$HAVE_ATFUNCS_FALSE$ac_delim
37329LTLIBOBJS!$LTLIBOBJS$ac_delim
37330_ACEOF
37331
37332  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
37333    break
37334  elif $ac_last_try; then
37335    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
37336echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
37337   { (exit 1); exit 1; }; }
37338  else
37339    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37340  fi
37341done
37342
37343ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
37344if test -n "$ac_eof"; then
37345  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
37346  ac_eof=`expr $ac_eof + 1`
37347fi
37348
37349cat >>$CONFIG_STATUS <<_ACEOF
37350cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
37351/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
37352_ACEOF
37353sed '
37354s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
37355s/^/s,@/; s/!/@,|#_!!_#|/
37356:n
37357t n
37358s/'"$ac_delim"'$/,g/; t
37359s/$/\\/; p
37360N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
37361' >>$CONFIG_STATUS <conf$$subs.sed
37362rm -f conf$$subs.sed
37363cat >>$CONFIG_STATUS <<_ACEOF
37364:end
37365s/|#_!!_#|//g
37366CEOF$ac_eof
37367_ACEOF
37368
37369
37370# VPATH may cause trouble with some makes, so we remove $(srcdir),
37371# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
37372# trailing colons and then remove the whole line if VPATH becomes empty
37373# (actually we leave an empty line to preserve line numbers).
37374if test "x$srcdir" = x.; then
37375  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
37376s/:*\$(srcdir):*/:/
37377s/:*\${srcdir}:*/:/
37378s/:*@srcdir@:*/:/
37379s/^\([^=]*=[	 ]*\):*/\1/
37380s/:*$//
37381s/^[^=]*=[	 ]*$//
37382}'
37383fi
37384
37385cat >>$CONFIG_STATUS <<\_ACEOF
37386fi # test -n "$CONFIG_FILES"
37387
37388
37389for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
37390do
37391  case $ac_tag in
37392  :[FHLC]) ac_mode=$ac_tag; continue;;
37393  esac
37394  case $ac_mode$ac_tag in
37395  :[FHL]*:*);;
37396  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
37397echo "$as_me: error: Invalid tag $ac_tag." >&2;}
37398   { (exit 1); exit 1; }; };;
37399  :[FH]-) ac_tag=-:-;;
37400  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37401  esac
37402  ac_save_IFS=$IFS
37403  IFS=:
37404  set x $ac_tag
37405  IFS=$ac_save_IFS
37406  shift
37407  ac_file=$1
37408  shift
37409
37410  case $ac_mode in
37411  :L) ac_source=$1;;
37412  :[FH])
37413    ac_file_inputs=
37414    for ac_f
37415    do
37416      case $ac_f in
37417      -) ac_f="$tmp/stdin";;
37418      *) # Look for the file first in the build tree, then in the source tree
37419	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
37420	 # because $ac_f cannot contain `:'.
37421	 test -f "$ac_f" ||
37422	   case $ac_f in
37423	   [\\/$]*) false;;
37424	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37425	   esac ||
37426	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
37427echo "$as_me: error: cannot find input file: $ac_f" >&2;}
37428   { (exit 1); exit 1; }; };;
37429      esac
37430      ac_file_inputs="$ac_file_inputs $ac_f"
37431    done
37432
37433    # Let's still pretend it is `configure' which instantiates (i.e., don't
37434    # use $as_me), people would be surprised to read:
37435    #    /* config.h.  Generated by config.status.  */
37436    configure_input="Generated from "`IFS=:
37437	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
37438    if test x"$ac_file" != x-; then
37439      configure_input="$ac_file.  $configure_input"
37440      { echo "$as_me:$LINENO: creating $ac_file" >&5
37441echo "$as_me: creating $ac_file" >&6;}
37442    fi
37443
37444    case $ac_tag in
37445    *:-:* | *:-) cat >"$tmp/stdin";;
37446    esac
37447    ;;
37448  esac
37449
37450  ac_dir=`$as_dirname -- "$ac_file" ||
37451$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37452	 X"$ac_file" : 'X\(//\)[^/]' \| \
37453	 X"$ac_file" : 'X\(//\)$' \| \
37454	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37455echo X"$ac_file" |
37456    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37457	    s//\1/
37458	    q
37459	  }
37460	  /^X\(\/\/\)[^/].*/{
37461	    s//\1/
37462	    q
37463	  }
37464	  /^X\(\/\/\)$/{
37465	    s//\1/
37466	    q
37467	  }
37468	  /^X\(\/\).*/{
37469	    s//\1/
37470	    q
37471	  }
37472	  s/.*/./; q'`
37473  { as_dir="$ac_dir"
37474  case $as_dir in #(
37475  -*) as_dir=./$as_dir;;
37476  esac
37477  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
37478    as_dirs=
37479    while :; do
37480      case $as_dir in #(
37481      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
37482      *) as_qdir=$as_dir;;
37483      esac
37484      as_dirs="'$as_qdir' $as_dirs"
37485      as_dir=`$as_dirname -- "$as_dir" ||
37486$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37487	 X"$as_dir" : 'X\(//\)[^/]' \| \
37488	 X"$as_dir" : 'X\(//\)$' \| \
37489	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37490echo X"$as_dir" |
37491    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37492	    s//\1/
37493	    q
37494	  }
37495	  /^X\(\/\/\)[^/].*/{
37496	    s//\1/
37497	    q
37498	  }
37499	  /^X\(\/\/\)$/{
37500	    s//\1/
37501	    q
37502	  }
37503	  /^X\(\/\).*/{
37504	    s//\1/
37505	    q
37506	  }
37507	  s/.*/./; q'`
37508      test -d "$as_dir" && break
37509    done
37510    test -z "$as_dirs" || eval "mkdir $as_dirs"
37511  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
37512echo "$as_me: error: cannot create directory $as_dir" >&2;}
37513   { (exit 1); exit 1; }; }; }
37514  ac_builddir=.
37515
37516case "$ac_dir" in
37517.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37518*)
37519  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37520  # A ".." for each directory in $ac_dir_suffix.
37521  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
37522  case $ac_top_builddir_sub in
37523  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37524  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37525  esac ;;
37526esac
37527ac_abs_top_builddir=$ac_pwd
37528ac_abs_builddir=$ac_pwd$ac_dir_suffix
37529# for backward compatibility:
37530ac_top_builddir=$ac_top_build_prefix
37531
37532case $srcdir in
37533  .)  # We are building in place.
37534    ac_srcdir=.
37535    ac_top_srcdir=$ac_top_builddir_sub
37536    ac_abs_top_srcdir=$ac_pwd ;;
37537  [\\/]* | ?:[\\/]* )  # Absolute name.
37538    ac_srcdir=$srcdir$ac_dir_suffix;
37539    ac_top_srcdir=$srcdir
37540    ac_abs_top_srcdir=$srcdir ;;
37541  *) # Relative name.
37542    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37543    ac_top_srcdir=$ac_top_build_prefix$srcdir
37544    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37545esac
37546ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37547
37548
37549  case $ac_mode in
37550  :F)
37551  #
37552  # CONFIG_FILE
37553  #
37554
37555  case $INSTALL in
37556  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37557  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37558  esac
37559  ac_MKDIR_P=$MKDIR_P
37560  case $MKDIR_P in
37561  [\\/$]* | ?:[\\/]* ) ;;
37562  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37563  esac
37564_ACEOF
37565
37566cat >>$CONFIG_STATUS <<\_ACEOF
37567# If the template does not know about datarootdir, expand it.
37568# FIXME: This hack should be removed a few years after 2.60.
37569ac_datarootdir_hack=; ac_datarootdir_seen=
37570
37571case `sed -n '/datarootdir/ {
37572  p
37573  q
37574}
37575/@datadir@/p
37576/@docdir@/p
37577/@infodir@/p
37578/@localedir@/p
37579/@mandir@/p
37580' $ac_file_inputs` in
37581*datarootdir*) ac_datarootdir_seen=yes;;
37582*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
37583  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
37584echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37585_ACEOF
37586cat >>$CONFIG_STATUS <<_ACEOF
37587  ac_datarootdir_hack='
37588  s&@datadir@&$datadir&g
37589  s&@docdir@&$docdir&g
37590  s&@infodir@&$infodir&g
37591  s&@localedir@&$localedir&g
37592  s&@mandir@&$mandir&g
37593    s&\\\${datarootdir}&$datarootdir&g' ;;
37594esac
37595_ACEOF
37596
37597# Neutralize VPATH when `$srcdir' = `.'.
37598# Shell code in configure.ac might set extrasub.
37599# FIXME: do we really want to maintain this feature?
37600cat >>$CONFIG_STATUS <<_ACEOF
37601  sed "$ac_vpsub
37602$extrasub
37603_ACEOF
37604cat >>$CONFIG_STATUS <<\_ACEOF
37605:t
37606/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37607s&@configure_input@&$configure_input&;t t
37608s&@top_builddir@&$ac_top_builddir_sub&;t t
37609s&@srcdir@&$ac_srcdir&;t t
37610s&@abs_srcdir@&$ac_abs_srcdir&;t t
37611s&@top_srcdir@&$ac_top_srcdir&;t t
37612s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37613s&@builddir@&$ac_builddir&;t t
37614s&@abs_builddir@&$ac_abs_builddir&;t t
37615s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37616s&@INSTALL@&$ac_INSTALL&;t t
37617s&@MKDIR_P@&$ac_MKDIR_P&;t t
37618$ac_datarootdir_hack
37619" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
37620
37621test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
37622  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
37623  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
37624  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37625which seems to be undefined.  Please make sure it is defined." >&5
37626echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37627which seems to be undefined.  Please make sure it is defined." >&2;}
37628
37629  rm -f "$tmp/stdin"
37630  case $ac_file in
37631  -) cat "$tmp/out"; rm -f "$tmp/out";;
37632  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
37633  esac
37634 ;;
37635  :H)
37636  #
37637  # CONFIG_HEADER
37638  #
37639_ACEOF
37640
37641# Transform confdefs.h into a sed script `conftest.defines', that
37642# substitutes the proper values into config.h.in to produce config.h.
37643rm -f conftest.defines conftest.tail
37644# First, append a space to every undef/define line, to ease matching.
37645echo 's/$/ /' >conftest.defines
37646# Then, protect against being on the right side of a sed subst, or in
37647# an unquoted here document, in config.status.  If some macros were
37648# called several times there might be several #defines for the same
37649# symbol, which is useless.  But do not sort them, since the last
37650# AC_DEFINE must be honored.
37651ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37652# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
37653# NAME is the cpp macro being defined, VALUE is the value it is being given.
37654# PARAMS is the parameter list in the macro definition--in most cases, it's
37655# just an empty string.
37656ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
37657ac_dB='\\)[	 (].*,\\1define\\2'
37658ac_dC=' '
37659ac_dD=' ,'
37660
37661uniq confdefs.h |
37662  sed -n '
37663	t rset
37664	:rset
37665	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
37666	t ok
37667	d
37668	:ok
37669	s/[\\&,]/\\&/g
37670	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
37671	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
37672  ' >>conftest.defines
37673
37674# Remove the space that was appended to ease matching.
37675# Then replace #undef with comments.  This is necessary, for
37676# example, in the case of _POSIX_SOURCE, which is predefined and required
37677# on some systems where configure will not decide to define it.
37678# (The regexp can be short, since the line contains either #define or #undef.)
37679echo 's/ $//
37680s,^[	 #]*u.*,/* & */,' >>conftest.defines
37681
37682# Break up conftest.defines:
37683ac_max_sed_lines=50
37684
37685# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
37686# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
37687# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
37688# et cetera.
37689ac_in='$ac_file_inputs'
37690ac_out='"$tmp/out1"'
37691ac_nxt='"$tmp/out2"'
37692
37693while :
37694do
37695  # Write a here document:
37696    cat >>$CONFIG_STATUS <<_ACEOF
37697    # First, check the format of the line:
37698    cat >"\$tmp/defines.sed" <<\\CEOF
37699/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
37700/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
37701b
37702:def
37703_ACEOF
37704  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
37705  echo 'CEOF
37706    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
37707  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
37708  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
37709  grep . conftest.tail >/dev/null || break
37710  rm -f conftest.defines
37711  mv conftest.tail conftest.defines
37712done
37713rm -f conftest.defines conftest.tail
37714
37715echo "ac_result=$ac_in" >>$CONFIG_STATUS
37716cat >>$CONFIG_STATUS <<\_ACEOF
37717  if test x"$ac_file" != x-; then
37718    echo "/* $configure_input  */" >"$tmp/config.h"
37719    cat "$ac_result" >>"$tmp/config.h"
37720    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
37721      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37722echo "$as_me: $ac_file is unchanged" >&6;}
37723    else
37724      rm -f $ac_file
37725      mv "$tmp/config.h" $ac_file
37726    fi
37727  else
37728    echo "/* $configure_input  */"
37729    cat "$ac_result"
37730  fi
37731  rm -f "$tmp/out12"
37732# Compute $ac_file's index in $config_headers.
37733_am_arg=$ac_file
37734_am_stamp_count=1
37735for _am_header in $config_headers :; do
37736  case $_am_header in
37737    $_am_arg | $_am_arg:* )
37738      break ;;
37739    * )
37740      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37741  esac
37742done
37743echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37744$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37745	 X"$_am_arg" : 'X\(//\)[^/]' \| \
37746	 X"$_am_arg" : 'X\(//\)$' \| \
37747	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37748echo X"$_am_arg" |
37749    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37750	    s//\1/
37751	    q
37752	  }
37753	  /^X\(\/\/\)[^/].*/{
37754	    s//\1/
37755	    q
37756	  }
37757	  /^X\(\/\/\)$/{
37758	    s//\1/
37759	    q
37760	  }
37761	  /^X\(\/\).*/{
37762	    s//\1/
37763	    q
37764	  }
37765	  s/.*/./; q'`/stamp-h$_am_stamp_count
37766 ;;
37767
37768  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
37769echo "$as_me: executing $ac_file commands" >&6;}
37770 ;;
37771  esac
37772
37773
37774  case $ac_file$ac_mode in
37775    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
37776  # Strip MF so we end up with the name of the file.
37777  mf=`echo "$mf" | sed -e 's/:.*$//'`
37778  # Check whether this is an Automake generated Makefile or not.
37779  # We used to match only the files named `Makefile.in', but
37780  # some people rename them; so instead we look at the file content.
37781  # Grep'ing the first line is not enough: some people post-process
37782  # each Makefile.in and add a new line on top of each file to say so.
37783  # Grep'ing the whole file is not good either: AIX grep has a line
37784  # limit of 2048, but all sed's we know have understand at least 4000.
37785  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37786    dirpart=`$as_dirname -- "$mf" ||
37787$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37788	 X"$mf" : 'X\(//\)[^/]' \| \
37789	 X"$mf" : 'X\(//\)$' \| \
37790	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37791echo X"$mf" |
37792    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37793	    s//\1/
37794	    q
37795	  }
37796	  /^X\(\/\/\)[^/].*/{
37797	    s//\1/
37798	    q
37799	  }
37800	  /^X\(\/\/\)$/{
37801	    s//\1/
37802	    q
37803	  }
37804	  /^X\(\/\).*/{
37805	    s//\1/
37806	    q
37807	  }
37808	  s/.*/./; q'`
37809  else
37810    continue
37811  fi
37812  # Extract the definition of DEPDIR, am__include, and am__quote
37813  # from the Makefile without running `make'.
37814  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37815  test -z "$DEPDIR" && continue
37816  am__include=`sed -n 's/^am__include = //p' < "$mf"`
37817  test -z "am__include" && continue
37818  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37819  # When using ansi2knr, U may be empty or an underscore; expand it
37820  U=`sed -n 's/^U = //p' < "$mf"`
37821  # Find all dependency output files, they are included files with
37822  # $(DEPDIR) in their names.  We invoke sed twice because it is the
37823  # simplest approach to changing $(DEPDIR) to its actual value in the
37824  # expansion.
37825  for file in `sed -n "
37826    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37827       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37828    # Make sure the directory exists.
37829    test -f "$dirpart/$file" && continue
37830    fdir=`$as_dirname -- "$file" ||
37831$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37832	 X"$file" : 'X\(//\)[^/]' \| \
37833	 X"$file" : 'X\(//\)$' \| \
37834	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37835echo X"$file" |
37836    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37837	    s//\1/
37838	    q
37839	  }
37840	  /^X\(\/\/\)[^/].*/{
37841	    s//\1/
37842	    q
37843	  }
37844	  /^X\(\/\/\)$/{
37845	    s//\1/
37846	    q
37847	  }
37848	  /^X\(\/\).*/{
37849	    s//\1/
37850	    q
37851	  }
37852	  s/.*/./; q'`
37853    { as_dir=$dirpart/$fdir
37854  case $as_dir in #(
37855  -*) as_dir=./$as_dir;;
37856  esac
37857  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
37858    as_dirs=
37859    while :; do
37860      case $as_dir in #(
37861      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
37862      *) as_qdir=$as_dir;;
37863      esac
37864      as_dirs="'$as_qdir' $as_dirs"
37865      as_dir=`$as_dirname -- "$as_dir" ||
37866$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37867	 X"$as_dir" : 'X\(//\)[^/]' \| \
37868	 X"$as_dir" : 'X\(//\)$' \| \
37869	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37870echo X"$as_dir" |
37871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37872	    s//\1/
37873	    q
37874	  }
37875	  /^X\(\/\/\)[^/].*/{
37876	    s//\1/
37877	    q
37878	  }
37879	  /^X\(\/\/\)$/{
37880	    s//\1/
37881	    q
37882	  }
37883	  /^X\(\/\).*/{
37884	    s//\1/
37885	    q
37886	  }
37887	  s/.*/./; q'`
37888      test -d "$as_dir" && break
37889    done
37890    test -z "$as_dirs" || eval "mkdir $as_dirs"
37891  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
37892echo "$as_me: error: cannot create directory $as_dir" >&2;}
37893   { (exit 1); exit 1; }; }; }
37894    # echo "creating $dirpart/$file"
37895    echo '# dummy' > "$dirpart/$file"
37896  done
37897done
37898 ;;
37899    "default":C) chmod a+x distrib/config/netatalk-config contrib/shell_utils/apple_*
37900 ;;
37901
37902  esac
37903done # for ac_tag
37904
37905
37906{ (exit 0); exit 0; }
37907_ACEOF
37908chmod +x $CONFIG_STATUS
37909ac_clean_files=$ac_clean_files_save
37910
37911
37912# configure is writing to config.log, and then calls config.status.
37913# config.status does its own redirection, appending to config.log.
37914# Unfortunately, on DOS this fails, as config.log is still kept open
37915# by configure, so config.status won't be able to write to it; its
37916# output is simply discarded.  So we exec the FD to /dev/null,
37917# effectively closing config.log, so it can be properly (re)opened and
37918# appended to by config.status.  When coming back to configure, we
37919# need to make the FD available again.
37920if test "$no_create" != yes; then
37921  ac_cs_success=:
37922  ac_config_status_args=
37923  test "$silent" = yes &&
37924    ac_config_status_args="$ac_config_status_args --quiet"
37925  exec 5>/dev/null
37926  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37927  exec 5>>config.log
37928  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37929  # would make configure fail if this is the last instruction.
37930  $ac_cs_success || { (exit 1); exit 1; }
37931fi
37932
37933
37934
37935
37936	{ echo "$as_me:$LINENO: result: Using libraries:" >&5
37937echo "${ECHO_T}Using libraries:" >&6; }
37938	{ echo "$as_me:$LINENO: result:     LIBS = $LIBS" >&5
37939echo "${ECHO_T}    LIBS = $LIBS" >&6; }
37940	{ echo "$as_me:$LINENO: result:     CFLAGS = $CFLAGS" >&5
37941echo "${ECHO_T}    CFLAGS = $CFLAGS" >&6; }
37942	if test x"$neta_cv_have_openssl" = x"yes"; then
37943		{ echo "$as_me:$LINENO: result:     SSL:" >&5
37944echo "${ECHO_T}    SSL:" >&6; }
37945		{ echo "$as_me:$LINENO: result:         LIBS   = $SSL_LIBS" >&5
37946echo "${ECHO_T}        LIBS   = $SSL_LIBS" >&6; }
37947		{ echo "$as_me:$LINENO: result:         CFLAGS = $SSL_CFLAGS" >&5
37948echo "${ECHO_T}        CFLAGS = $SSL_CFLAGS" >&6; }
37949	fi
37950        if test x"$neta_cv_have_libgcrypt" = x"yes"; then
37951                { echo "$as_me:$LINENO: result:     LIBGCRYPT:" >&5
37952echo "${ECHO_T}    LIBGCRYPT:" >&6; }
37953                { echo "$as_me:$LINENO: result:         LIBS   = $LIBGCRYPT_LIBS" >&5
37954echo "${ECHO_T}        LIBS   = $LIBGCRYPT_LIBS" >&6; }
37955                { echo "$as_me:$LINENO: result:         CFLAGS = $LIBGCRYPT_CFLAGS" >&5
37956echo "${ECHO_T}        CFLAGS = $LIBGCRYPT_CFLAGS" >&6; }
37957        fi
37958	if test x"$netatalk_cv_use_pam" = x"yes"; then
37959		{ echo "$as_me:$LINENO: result:     PAM:" >&5
37960echo "${ECHO_T}    PAM:" >&6; }
37961		{ echo "$as_me:$LINENO: result:         LIBS   = $PAM_LIBS" >&5
37962echo "${ECHO_T}        LIBS   = $PAM_LIBS" >&6; }
37963		{ echo "$as_me:$LINENO: result:         CFLAGS = $PAM_CFLAGS" >&5
37964echo "${ECHO_T}        CFLAGS = $PAM_CFLAGS" >&6; }
37965	fi
37966	if test x"$netatalk_cv_use_pam" = x"yes"; then
37967		{ echo "$as_me:$LINENO: result:     WRAP:" >&5
37968echo "${ECHO_T}    WRAP:" >&6; }
37969		{ echo "$as_me:$LINENO: result:         LIBS   = $WRAP_LIBS" >&5
37970echo "${ECHO_T}        LIBS   = $WRAP_LIBS" >&6; }
37971		{ echo "$as_me:$LINENO: result:         CFLAGS = $WRAP_CFLAGS" >&5
37972echo "${ECHO_T}        CFLAGS = $WRAP_CFLAGS" >&6; }
37973	fi
37974	if test x"$bdb_required" = x"yes"; then
37975		{ echo "$as_me:$LINENO: result:     BDB:" >&5
37976echo "${ECHO_T}    BDB:" >&6; }
37977		{ echo "$as_me:$LINENO: result:         LIBS   = $BDB_LIBS" >&5
37978echo "${ECHO_T}        LIBS   = $BDB_LIBS" >&6; }
37979		{ echo "$as_me:$LINENO: result:         CFLAGS = $BDB_CFLAGS" >&5
37980echo "${ECHO_T}        CFLAGS = $BDB_CFLAGS" >&6; }
37981	fi
37982	if test x"$netatalk_cv_build_krb5_uam" = x"yes"; then
37983		{ echo "$as_me:$LINENO: result:     GSSAPI:" >&5
37984echo "${ECHO_T}    GSSAPI:" >&6; }
37985		{ echo "$as_me:$LINENO: result:         LIBS   = $GSSAPI_LIBS" >&5
37986echo "${ECHO_T}        LIBS   = $GSSAPI_LIBS" >&6; }
37987		{ echo "$as_me:$LINENO: result:         CFLAGS = $GSSAPI_CFLAGS" >&5
37988echo "${ECHO_T}        CFLAGS = $GSSAPI_CFLAGS" >&6; }
37989	fi
37990	if test x"$netatalk_cv_srvloc" = x"yes"; then
37991		{ echo "$as_me:$LINENO: result:     SRVLOC:" >&5
37992echo "${ECHO_T}    SRVLOC:" >&6; }
37993		{ echo "$as_me:$LINENO: result:         LIBS   = $SLP_LIBS" >&5
37994echo "${ECHO_T}        LIBS   = $SLP_LIBS" >&6; }
37995		{ echo "$as_me:$LINENO: result:         CFLAGS = $SLP_CFLAGS" >&5
37996echo "${ECHO_T}        CFLAGS = $SLP_CFLAGS" >&6; }
37997	fi
37998	if test x"$netatalk_cv_use_cups" = x"yes"; then
37999		{ echo "$as_me:$LINENO: result:     CUPS:" >&5
38000echo "${ECHO_T}    CUPS:" >&6; }
38001		{ echo "$as_me:$LINENO: result:         LIBS   = $CUPS_LIBS" >&5
38002echo "${ECHO_T}        LIBS   = $CUPS_LIBS" >&6; }
38003		{ echo "$as_me:$LINENO: result:         CFLAGS = $CUPS_CFLAGS" >&5
38004echo "${ECHO_T}        CFLAGS = $CUPS_CFLAGS" >&6; }
38005	fi
38006
38007
38008
38009	{ echo "$as_me:$LINENO: result: Configure summary:" >&5
38010echo "${ECHO_T}Configure summary:" >&6; }
38011	{ echo "$as_me:$LINENO: result:     Install style:" >&5
38012echo "${ECHO_T}    Install style:" >&6; }
38013	if test "x$sysv_style" != "x"; then
38014		{ echo "$as_me:$LINENO: result:          $sysv_style" >&5
38015echo "${ECHO_T}         $sysv_style" >&6; }
38016	else
38017		{ echo "$as_me:$LINENO: result:          none" >&5
38018echo "${ECHO_T}         none" >&6; }
38019	fi
38020	{ echo "$as_me:$LINENO: result:     AFP:" >&5
38021echo "${ECHO_T}    AFP:" >&6; }
38022	{ echo "$as_me:$LINENO: result:          AFP 3.x calls activated: $afp3" >&5
38023echo "${ECHO_T}         AFP 3.x calls activated: $afp3" >&6; }
38024	if test "x$afp3" = "xyes"; then
38025		{ echo "$as_me:$LINENO: result:          Large file support (>2GB) for AFP3: $wx_largefile" >&5
38026echo "${ECHO_T}         Large file support (>2GB) for AFP3: $wx_largefile" >&6; }
38027	fi
38028	{ echo "$as_me:$LINENO: result:          Extended Attributes: $neta_cv_eas" >&5
38029echo "${ECHO_T}         Extended Attributes: $neta_cv_eas" >&6; }
38030	{ echo "$as_me:$LINENO: result:     CNID:" >&5
38031echo "${ECHO_T}    CNID:" >&6; }
38032	{ echo "$as_me:$LINENO: result:          backends: $compiled_backends" >&5
38033echo "${ECHO_T}         backends: $compiled_backends" >&6; }
38034	{ echo "$as_me:$LINENO: result:     UAMS:" >&5
38035echo "${ECHO_T}    UAMS:" >&6; }
38036	uams_using_options=""
38037	if test x"$netatalk_cv_use_pam" != x"no"; then
38038        	uams_using_options="PAM"
38039	fi
38040	if test "x$netatalk_cv_use_shadowpw" = "xyes"; then
38041        	uams_using_options="$uams_using_options SHADOW"
38042	fi
38043	if test "x$neta_cv_compile_dhx" = "xyes"; then
38044		{ echo "$as_me:$LINENO: result:          DHX     ($uams_using_options)" >&5
38045echo "${ECHO_T}         DHX     ($uams_using_options)" >&6; }
38046	fi
38047        if test "x$neta_cv_compile_dhx2" = "xyes"; then
38048                { echo "$as_me:$LINENO: result:          DHX2    ($uams_using_options)" >&5
38049echo "${ECHO_T}         DHX2    ($uams_using_options)" >&6; }
38050        fi
38051	if test "x$neta_cv_have_openssl" = "xyes"; then
38052		{ echo "$as_me:$LINENO: result:          RANDNUM ($uams_using_options)" >&5
38053echo "${ECHO_T}         RANDNUM ($uams_using_options)" >&6; }
38054	fi
38055	if test x"$netatalk_cv_build_krb5_uam" = x"yes"; then
38056		{ echo "$as_me:$LINENO: result:          Kerberos V" >&5
38057echo "${ECHO_T}         Kerberos V" >&6; }
38058	fi
38059	if test x"$compile_kerberos" = x"yes"; then
38060		{ echo "$as_me:$LINENO: result:          Kerberos IV" >&5
38061echo "${ECHO_T}         Kerberos IV" >&6; }
38062	fi
38063	if test x"$compile_pgp" = x"yes"; then
38064		{ echo "$as_me:$LINENO: result:          PGP" >&5
38065echo "${ECHO_T}         PGP" >&6; }
38066	fi
38067	{ echo "$as_me:$LINENO: result:          passwd  ($uams_using_options)" >&5
38068echo "${ECHO_T}         passwd  ($uams_using_options)" >&6; }
38069	{ echo "$as_me:$LINENO: result:          guest" >&5
38070echo "${ECHO_T}         guest" >&6; }
38071	{ echo "$as_me:$LINENO: result:     Options:" >&5
38072echo "${ECHO_T}    Options:" >&6; }
38073	{ echo "$as_me:$LINENO: result:          DDP (AppleTalk) support: $netatalk_cv_ddp_enabled" >&5
38074echo "${ECHO_T}         DDP (AppleTalk) support: $netatalk_cv_ddp_enabled" >&6; }
38075	{ echo "$as_me:$LINENO: result:          CUPS support:            $netatalk_cv_use_cups" >&5
38076echo "${ECHO_T}         CUPS support:            $netatalk_cv_use_cups" >&6; }
38077	{ echo "$as_me:$LINENO: result:          SLP support:             $netatalk_cv_srvloc" >&5
38078echo "${ECHO_T}         SLP support:             $netatalk_cv_srvloc" >&6; }
38079	{ echo "$as_me:$LINENO: result:          Zeroconf support:        $netatalk_cv_zeroconf" >&5
38080echo "${ECHO_T}         Zeroconf support:        $netatalk_cv_zeroconf" >&6; }
38081	{ echo "$as_me:$LINENO: result:          tcp wrapper support:     $netatalk_cv_tcpwrap" >&5
38082echo "${ECHO_T}         tcp wrapper support:     $netatalk_cv_tcpwrap" >&6; }
38083	{ echo "$as_me:$LINENO: result:          quota support:           $netatalk_cv_quotasupport" >&5
38084echo "${ECHO_T}         quota support:           $netatalk_cv_quotasupport" >&6; }
38085	{ echo "$as_me:$LINENO: result:          admin group support:     $netatalk_cv_admin_group" >&5
38086echo "${ECHO_T}         admin group support:     $netatalk_cv_admin_group" >&6; }
38087	{ echo "$as_me:$LINENO: result:          valid shell check:       $netatalk_cv_use_shellcheck" >&5
38088echo "${ECHO_T}         valid shell check:       $netatalk_cv_use_shellcheck" >&6; }
38089	{ echo "$as_me:$LINENO: result:          cracklib support:        $netatalk_cv_with_cracklib" >&5
38090echo "${ECHO_T}         cracklib support:        $netatalk_cv_with_cracklib" >&6; }
38091	{ echo "$as_me:$LINENO: result:          dropbox kludge:          $netatalk_cv_dropkludge" >&5
38092echo "${ECHO_T}         dropbox kludge:          $netatalk_cv_dropkludge" >&6; }
38093	{ echo "$as_me:$LINENO: result:          force volume uid/gid:    $netatalk_cv_force_uidgid" >&5
38094echo "${ECHO_T}         force volume uid/gid:    $netatalk_cv_force_uidgid" >&6; }
38095	{ echo "$as_me:$LINENO: result:          Apple 2 boot support:    $compile_a2boot" >&5
38096echo "${ECHO_T}         Apple 2 boot support:    $compile_a2boot" >&6; }
38097	{ echo "$as_me:$LINENO: result:          ACL support:             $with_acl_support" >&5
38098echo "${ECHO_T}         ACL support:             $with_acl_support" >&6; }
38099	if test x"$use_pam_so" = x"yes" -a x"$netatalk_cv_install_pam" = x"no"; then
38100		{ echo "$as_me:$LINENO: result: " >&5
38101echo "${ECHO_T}" >&6; }
38102		{ echo "$as_me:$LINENO: WARNING:  PAM support was configured for your system, but the netatalk PAM configuration file" >&5
38103echo "$as_me: WARNING:  PAM support was configured for your system, but the netatalk PAM configuration file" >&2;}
38104		{ echo "$as_me:$LINENO: WARNING:  cannot be installed. Please install the config/netatalk.pamd file manually." >&5
38105echo "$as_me: WARNING:  cannot be installed. Please install the config/netatalk.pamd file manually." >&2;}
38106		{ echo "$as_me:$LINENO: WARNING:  If you're running Solaris or BSD you'll have to edit /etc/pam.conf to get PAM working." >&5
38107echo "$as_me: WARNING:  If you're running Solaris or BSD you'll have to edit /etc/pam.conf to get PAM working." >&2;}
38108		{ echo "$as_me:$LINENO: WARNING:  You can also re-run configure and specify --without-pam to disable PAM support." >&5
38109echo "$as_me: WARNING:  You can also re-run configure and specify --without-pam to disable PAM support." >&2;}
38110	fi
38111
38112
38113