1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for cfengine 3.19.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    PATH=/empty FPATH=/empty; export PATH FPATH
205    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='cfengine'
589PACKAGE_TARNAME='cfengine'
590PACKAGE_VERSION='3.19.0'
591PACKAGE_STRING='cfengine 3.19.0'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="libpromises/generic_agent.c"
596: "${AR_FLAGS=cr}"
597# Factoring default headers for most tests.
598ac_includes_default="\
599#include <stdio.h>
600#ifdef HAVE_SYS_TYPES_H
601# include <sys/types.h>
602#endif
603#ifdef HAVE_SYS_STAT_H
604# include <sys/stat.h>
605#endif
606#ifdef STDC_HEADERS
607# include <stdlib.h>
608# include <stddef.h>
609#else
610# ifdef HAVE_STDLIB_H
611#  include <stdlib.h>
612# endif
613#endif
614#ifdef HAVE_STRING_H
615# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616#  include <memory.h>
617# endif
618# include <string.h>
619#endif
620#ifdef HAVE_STRINGS_H
621# include <strings.h>
622#endif
623#ifdef HAVE_INTTYPES_H
624# include <inttypes.h>
625#endif
626#ifdef HAVE_STDINT_H
627# include <stdint.h>
628#endif
629#ifdef HAVE_UNISTD_H
630# include <unistd.h>
631#endif"
632
633ac_config_libobj_dir=libntech/libcompat
634ac_header_list=
635enable_option_checking=no
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639subdirs
640post_macros
641ENABLE_COVERAGE_FALSE
642ENABLE_COVERAGE_TRUE
643LCOV_GENHTML
644LCOV
645HOSTNAME
646WITH_SELINUX_FALSE
647WITH_SELINUX_TRUE
648OS_ENVIRONMENT_PATH
649WITH_SYSTEMD_SERVICE_FALSE
650WITH_SYSTEMD_SERVICE_TRUE
651SYSTEMD_SERVICE_PATH
652systemctl
653WITH_INIT_D_SCRIPT_FALSE
654WITH_INIT_D_SCRIPT_TRUE
655INIT_D_PATH
656statedir
657piddir
658logdir
659inputdir
660masterdir
661workdir
662XNU_FALSE
663XNU_TRUE
664NETBSD_FALSE
665NETBSD_TRUE
666HPUX_FALSE
667HPUX_TRUE
668AIX_FALSE
669AIX_TRUE
670CYGWIN_FALSE
671CYGWIN_TRUE
672NT_FALSE
673NT_TRUE
674SOLARIS_FALSE
675SOLARIS_TRUE
676MACOSX_FALSE
677MACOSX_TRUE
678LINUX_FALSE
679LINUX_TRUE
680FREEBSD_FALSE
681FREEBSD_TRUE
682CORE_LIBS
683CORE_LDFLAGS
684CORE_CFLAGS
685CORE_CPPFLAGS
686hw_cv_func_rename_proper
687hw_cv_func_stat_proper
688hw_cv_func_mkdir_proper
689hw_cv_func_ctime_proper
690HAVE_USERS_PROMISE_DEPS_FALSE
691HAVE_USERS_PROMISE_DEPS_TRUE
692PAM_LIBS
693PAM_LDFLAGS
694PAM_CFLAGS
695PAM_CPPFLAGS
696PAM_PATH
697GETLOADAVG_LIBS
698KMEM_GROUP
699NEED_SETGID
700LIBOBJS
701HAVE_AVAHI_COMMON_FALSE
702HAVE_AVAHI_COMMON_TRUE
703HAVE_AVAHI_CLIENT_FALSE
704HAVE_AVAHI_CLIENT_TRUE
705HAVE_LIBXML2_FALSE
706HAVE_LIBXML2_TRUE
707LIBXML2_LIBS
708LIBXML2_LDFLAGS
709LIBXML2_CFLAGS
710LIBXML2_CPPFLAGS
711LIBXML2_PATH
712LIBYAML_LIBS
713LIBYAML_LDFLAGS
714LIBYAML_CFLAGS
715LIBYAML_CPPFLAGS
716LIBYAML_PATH
717HAVE_LIBCURL_FALSE
718HAVE_LIBCURL_TRUE
719LIBCURL_LIBS
720LIBCURL_LDFLAGS
721LIBCURL_CFLAGS
722LIBCURL_CPPFLAGS
723LIBCURL_PATH
724LIBACL_LIBS
725LIBACL_LDFLAGS
726LIBACL_CFLAGS
727LIBACL_CPPFLAGS
728LIBACL_PATH
729LIBVIRT_LIBS
730LIBVIRT_LDFLAGS
731LIBVIRT_CFLAGS
732LIBVIRT_CPPFLAGS
733LIBVIRT_PATH
734SYSTEMD_SOCKET_LIBS
735SYSTEMD_SOCKET_LDFLAGS
736SYSTEMD_SOCKET_CFLAGS
737SYSTEMD_SOCKET_CPPFLAGS
738SYSTEMD_SOCKET_PATH
739PCRE_LIBS
740PCRE_LDFLAGS
741PCRE_CFLAGS
742PCRE_CPPFLAGS
743PCRE_PATH
744OPENSSL_LIBS
745OPENSSL_LDFLAGS
746OPENSSL_CFLAGS
747OPENSSL_CPPFLAGS
748OPENSSL_PATH
749LMDB_LIBS
750LMDB_LDFLAGS
751LMDB_CFLAGS
752LMDB_CPPFLAGS
753LMDB_PATH
754TOKYOCABINET_LIBS
755TOKYOCABINET_LDFLAGS
756TOKYOCABINET_CFLAGS
757TOKYOCABINET_CPPFLAGS
758TOKYOCABINET_PATH
759QDBM_LIBS
760QDBM_LDFLAGS
761QDBM_CFLAGS
762QDBM_CPPFLAGS
763QDBM_PATH
764MYSQL_LIBS
765MYSQL_LDFLAGS
766MYSQL_CFLAGS
767MYSQL_CPPFLAGS
768MYSQL_PATH
769POSTGRESQL_LIBS
770POSTGRESQL_LDFLAGS
771POSTGRESQL_CFLAGS
772POSTGRESQL_CPPFLAGS
773POSTGRESQL_PATH
774NDEBUG_FALSE
775NDEBUG_TRUE
776WINDOWS_FALSE
777WINDOWS_TRUE
778projlibdir
779enable_builtin_extensions
780BUILTIN_EXTENSIONS_FALSE
781BUILTIN_EXTENSIONS_TRUE
782PTHREAD_CFLAGS
783PTHREAD_LIBS
784PTHREAD_CC
785acx_pthread_config
786CROSS_COMPILING_FALSE
787CROSS_COMPILING_TRUE
788GETCONF
789PERL
790YFLAGS
791YACC
792LEXLIB
793LEX_OUTPUT_ROOT
794LEX
795LT_SYS_LIBRARY_PATH
796OTOOL64
797OTOOL
798LIPO
799NMEDIT
800DSYMUTIL
801MANIFEST_TOOL
802RANLIB
803ac_ct_AR
804AR
805DLLTOOL
806OBJDUMP
807LN_S
808NM
809ac_ct_DUMPBIN
810DUMPBIN
811LD
812FGREP
813EGREP
814GREP
815SED
816LIBTOOL
817CPP
818am__fastdepCC_FALSE
819am__fastdepCC_TRUE
820CCDEPMODE
821am__nodep
822AMDEPBACKSLASH
823AMDEP_FALSE
824AMDEP_TRUE
825am__quote
826am__include
827DEPDIR
828OBJEXT
829EXEEXT
830ac_ct_CC
831CPPFLAGS
832LDFLAGS
833CFLAGS
834CC
835MAINT
836MAINTAINER_MODE_FALSE
837MAINTAINER_MODE_TRUE
838AM_BACKSLASH
839AM_DEFAULT_VERBOSITY
840AM_DEFAULT_V
841AM_V
842am__untar
843am__tar
844AMTAR
845am__leading_dot
846SET_MAKE
847AWK
848mkdir_p
849MKDIR_P
850INSTALL_STRIP_PROGRAM
851STRIP
852install_sh
853AUTOHEADER
854AUTOMAKE
855AUTOCONF
856ACLOCAL
857VERSION
858PACKAGE
859CYGPATH_W
860am__isrc
861INSTALL_DATA
862INSTALL_SCRIPT
863INSTALL_PROGRAM
864MAKEINFO
865target_os
866target_vendor
867target_cpu
868target
869host_os
870host_vendor
871host_cpu
872host
873build_os
874build_vendor
875build_cpu
876build
877target_alias
878host_alias
879build_alias
880LIBS
881ECHO_T
882ECHO_N
883ECHO_C
884DEFS
885mandir
886localedir
887libdir
888psdir
889pdfdir
890dvidir
891htmldir
892infodir
893docdir
894oldincludedir
895includedir
896runstatedir
897localstatedir
898sharedstatedir
899sysconfdir
900datadir
901datarootdir
902libexecdir
903sbindir
904bindir
905program_transform_name
906prefix
907exec_prefix
908PACKAGE_URL
909PACKAGE_BUGREPORT
910PACKAGE_STRING
911PACKAGE_VERSION
912PACKAGE_TARNAME
913PACKAGE_NAME
914PATH_SEPARATOR
915SHELL'
916ac_subst_files=''
917ac_user_opts='
918enable_option_checking
919enable_silent_rules
920enable_maintainer_mode
921enable_dependency_tracking
922enable_static
923enable_shared
924with_pic
925enable_fast_install
926with_aix_soname
927with_gnu_ld
928with_sysroot
929enable_libtool_lock
930with_pthreads
931enable_builtin_extensions
932enable_fhs
933enable_debug
934with_sql
935with_postgresql
936with_mysql
937with_qdbm
938with_tokyocabinet
939with_lmdb
940with_openssl
941with_pcre
942with_systemd_socket
943with_libvirt
944with_libacl
945with_libcurl
946with_libyaml
947with_libxml2
948with_avahi
949enable_largefile
950with_pam
951enable_selinux
952with_workdir
953with_masterdir
954with_inputdir
955with_datadir
956with_logdir
957with_piddir
958with_statedir
959with_shell
960with_init_script
961with_systemd_service
962with_environment_path
963with_selinux_policy
964enable_coverage
965'
966      ac_precious_vars='build_alias
967host_alias
968target_alias
969CC
970CFLAGS
971LDFLAGS
972LIBS
973CPPFLAGS
974CPP
975LT_SYS_LIBRARY_PATH
976YACC
977YFLAGS'
978ac_subdirs_all='libntech'
979
980# Initialize some variables set by options.
981ac_init_help=
982ac_init_version=false
983ac_unrecognized_opts=
984ac_unrecognized_sep=
985# The variables have the same names as the options, with
986# dashes changed to underlines.
987cache_file=/dev/null
988exec_prefix=NONE
989no_create=
990no_recursion=
991prefix=NONE
992program_prefix=NONE
993program_suffix=NONE
994program_transform_name=s,x,x,
995silent=
996site=
997srcdir=
998verbose=
999x_includes=NONE
1000x_libraries=NONE
1001
1002# Installation directory options.
1003# These are left unexpanded so users can "make install exec_prefix=/foo"
1004# and all the variables that are supposed to be based on exec_prefix
1005# by default will actually change.
1006# Use braces instead of parens because sh, perl, etc. also accept them.
1007# (The list follows the same order as the GNU Coding Standards.)
1008bindir='${exec_prefix}/bin'
1009sbindir='${exec_prefix}/sbin'
1010libexecdir='${exec_prefix}/libexec'
1011datarootdir='${prefix}/share'
1012datadir='${datarootdir}'
1013sysconfdir='${prefix}/etc'
1014sharedstatedir='${prefix}/com'
1015localstatedir='${prefix}/var'
1016runstatedir='${localstatedir}/run'
1017includedir='${prefix}/include'
1018oldincludedir='/usr/include'
1019docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1020infodir='${datarootdir}/info'
1021htmldir='${docdir}'
1022dvidir='${docdir}'
1023pdfdir='${docdir}'
1024psdir='${docdir}'
1025libdir='${exec_prefix}/lib'
1026localedir='${datarootdir}/locale'
1027mandir='${datarootdir}/man'
1028
1029ac_prev=
1030ac_dashdash=
1031for ac_option
1032do
1033  # If the previous option needs an argument, assign it.
1034  if test -n "$ac_prev"; then
1035    eval $ac_prev=\$ac_option
1036    ac_prev=
1037    continue
1038  fi
1039
1040  case $ac_option in
1041  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1042  *=)   ac_optarg= ;;
1043  *)    ac_optarg=yes ;;
1044  esac
1045
1046  # Accept the important Cygnus configure options, so we can diagnose typos.
1047
1048  case $ac_dashdash$ac_option in
1049  --)
1050    ac_dashdash=yes ;;
1051
1052  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1053    ac_prev=bindir ;;
1054  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1055    bindir=$ac_optarg ;;
1056
1057  -build | --build | --buil | --bui | --bu)
1058    ac_prev=build_alias ;;
1059  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1060    build_alias=$ac_optarg ;;
1061
1062  -cache-file | --cache-file | --cache-fil | --cache-fi \
1063  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1064    ac_prev=cache_file ;;
1065  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1066  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1067    cache_file=$ac_optarg ;;
1068
1069  --config-cache | -C)
1070    cache_file=config.cache ;;
1071
1072  -datadir | --datadir | --datadi | --datad)
1073    ac_prev=datadir ;;
1074  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1075    datadir=$ac_optarg ;;
1076
1077  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1078  | --dataroo | --dataro | --datar)
1079    ac_prev=datarootdir ;;
1080  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1081  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1082    datarootdir=$ac_optarg ;;
1083
1084  -disable-* | --disable-*)
1085    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1086    # Reject names that are not valid shell variable names.
1087    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088      as_fn_error $? "invalid feature name: $ac_useropt"
1089    ac_useropt_orig=$ac_useropt
1090    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091    case $ac_user_opts in
1092      *"
1093"enable_$ac_useropt"
1094"*) ;;
1095      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1096	 ac_unrecognized_sep=', ';;
1097    esac
1098    eval enable_$ac_useropt=no ;;
1099
1100  -docdir | --docdir | --docdi | --doc | --do)
1101    ac_prev=docdir ;;
1102  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1103    docdir=$ac_optarg ;;
1104
1105  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1106    ac_prev=dvidir ;;
1107  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1108    dvidir=$ac_optarg ;;
1109
1110  -enable-* | --enable-*)
1111    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1112    # Reject names that are not valid shell variable names.
1113    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114      as_fn_error $? "invalid feature name: $ac_useropt"
1115    ac_useropt_orig=$ac_useropt
1116    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117    case $ac_user_opts in
1118      *"
1119"enable_$ac_useropt"
1120"*) ;;
1121      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1122	 ac_unrecognized_sep=', ';;
1123    esac
1124    eval enable_$ac_useropt=\$ac_optarg ;;
1125
1126  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1127  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1128  | --exec | --exe | --ex)
1129    ac_prev=exec_prefix ;;
1130  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1131  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1132  | --exec=* | --exe=* | --ex=*)
1133    exec_prefix=$ac_optarg ;;
1134
1135  -gas | --gas | --ga | --g)
1136    # Obsolete; use --with-gas.
1137    with_gas=yes ;;
1138
1139  -help | --help | --hel | --he | -h)
1140    ac_init_help=long ;;
1141  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1142    ac_init_help=recursive ;;
1143  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1144    ac_init_help=short ;;
1145
1146  -host | --host | --hos | --ho)
1147    ac_prev=host_alias ;;
1148  -host=* | --host=* | --hos=* | --ho=*)
1149    host_alias=$ac_optarg ;;
1150
1151  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1152    ac_prev=htmldir ;;
1153  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1154  | --ht=*)
1155    htmldir=$ac_optarg ;;
1156
1157  -includedir | --includedir | --includedi | --included | --include \
1158  | --includ | --inclu | --incl | --inc)
1159    ac_prev=includedir ;;
1160  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1161  | --includ=* | --inclu=* | --incl=* | --inc=*)
1162    includedir=$ac_optarg ;;
1163
1164  -infodir | --infodir | --infodi | --infod | --info | --inf)
1165    ac_prev=infodir ;;
1166  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1167    infodir=$ac_optarg ;;
1168
1169  -libdir | --libdir | --libdi | --libd)
1170    ac_prev=libdir ;;
1171  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1172    libdir=$ac_optarg ;;
1173
1174  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1175  | --libexe | --libex | --libe)
1176    ac_prev=libexecdir ;;
1177  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1178  | --libexe=* | --libex=* | --libe=*)
1179    libexecdir=$ac_optarg ;;
1180
1181  -localedir | --localedir | --localedi | --localed | --locale)
1182    ac_prev=localedir ;;
1183  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1184    localedir=$ac_optarg ;;
1185
1186  -localstatedir | --localstatedir | --localstatedi | --localstated \
1187  | --localstate | --localstat | --localsta | --localst | --locals)
1188    ac_prev=localstatedir ;;
1189  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1190  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1191    localstatedir=$ac_optarg ;;
1192
1193  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1194    ac_prev=mandir ;;
1195  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1196    mandir=$ac_optarg ;;
1197
1198  -nfp | --nfp | --nf)
1199    # Obsolete; use --without-fp.
1200    with_fp=no ;;
1201
1202  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1203  | --no-cr | --no-c | -n)
1204    no_create=yes ;;
1205
1206  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1207  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1208    no_recursion=yes ;;
1209
1210  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1211  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1212  | --oldin | --oldi | --old | --ol | --o)
1213    ac_prev=oldincludedir ;;
1214  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1215  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1216  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1217    oldincludedir=$ac_optarg ;;
1218
1219  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1220    ac_prev=prefix ;;
1221  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1222    prefix=$ac_optarg ;;
1223
1224  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1225  | --program-pre | --program-pr | --program-p)
1226    ac_prev=program_prefix ;;
1227  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1228  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1229    program_prefix=$ac_optarg ;;
1230
1231  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1232  | --program-suf | --program-su | --program-s)
1233    ac_prev=program_suffix ;;
1234  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1235  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1236    program_suffix=$ac_optarg ;;
1237
1238  -program-transform-name | --program-transform-name \
1239  | --program-transform-nam | --program-transform-na \
1240  | --program-transform-n | --program-transform- \
1241  | --program-transform | --program-transfor \
1242  | --program-transfo | --program-transf \
1243  | --program-trans | --program-tran \
1244  | --progr-tra | --program-tr | --program-t)
1245    ac_prev=program_transform_name ;;
1246  -program-transform-name=* | --program-transform-name=* \
1247  | --program-transform-nam=* | --program-transform-na=* \
1248  | --program-transform-n=* | --program-transform-=* \
1249  | --program-transform=* | --program-transfor=* \
1250  | --program-transfo=* | --program-transf=* \
1251  | --program-trans=* | --program-tran=* \
1252  | --progr-tra=* | --program-tr=* | --program-t=*)
1253    program_transform_name=$ac_optarg ;;
1254
1255  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1256    ac_prev=pdfdir ;;
1257  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1258    pdfdir=$ac_optarg ;;
1259
1260  -psdir | --psdir | --psdi | --psd | --ps)
1261    ac_prev=psdir ;;
1262  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1263    psdir=$ac_optarg ;;
1264
1265  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266  | -silent | --silent | --silen | --sile | --sil)
1267    silent=yes ;;
1268
1269  -runstatedir | --runstatedir | --runstatedi | --runstated \
1270  | --runstate | --runstat | --runsta | --runst | --runs \
1271  | --run | --ru | --r)
1272    ac_prev=runstatedir ;;
1273  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1274  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1275  | --run=* | --ru=* | --r=*)
1276    runstatedir=$ac_optarg ;;
1277
1278  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1279    ac_prev=sbindir ;;
1280  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1281  | --sbi=* | --sb=*)
1282    sbindir=$ac_optarg ;;
1283
1284  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1285  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1286  | --sharedst | --shareds | --shared | --share | --shar \
1287  | --sha | --sh)
1288    ac_prev=sharedstatedir ;;
1289  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1290  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1291  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1292  | --sha=* | --sh=*)
1293    sharedstatedir=$ac_optarg ;;
1294
1295  -site | --site | --sit)
1296    ac_prev=site ;;
1297  -site=* | --site=* | --sit=*)
1298    site=$ac_optarg ;;
1299
1300  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1301    ac_prev=srcdir ;;
1302  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1303    srcdir=$ac_optarg ;;
1304
1305  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1306  | --syscon | --sysco | --sysc | --sys | --sy)
1307    ac_prev=sysconfdir ;;
1308  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1309  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1310    sysconfdir=$ac_optarg ;;
1311
1312  -target | --target | --targe | --targ | --tar | --ta | --t)
1313    ac_prev=target_alias ;;
1314  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1315    target_alias=$ac_optarg ;;
1316
1317  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1318    verbose=yes ;;
1319
1320  -version | --version | --versio | --versi | --vers | -V)
1321    ac_init_version=: ;;
1322
1323  -with-* | --with-*)
1324    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1325    # Reject names that are not valid shell variable names.
1326    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1327      as_fn_error $? "invalid package name: $ac_useropt"
1328    ac_useropt_orig=$ac_useropt
1329    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330    case $ac_user_opts in
1331      *"
1332"with_$ac_useropt"
1333"*) ;;
1334      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1335	 ac_unrecognized_sep=', ';;
1336    esac
1337    eval with_$ac_useropt=\$ac_optarg ;;
1338
1339  -without-* | --without-*)
1340    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1341    # Reject names that are not valid shell variable names.
1342    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1343      as_fn_error $? "invalid package name: $ac_useropt"
1344    ac_useropt_orig=$ac_useropt
1345    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1346    case $ac_user_opts in
1347      *"
1348"with_$ac_useropt"
1349"*) ;;
1350      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1351	 ac_unrecognized_sep=', ';;
1352    esac
1353    eval with_$ac_useropt=no ;;
1354
1355  --x)
1356    # Obsolete; use --with-x.
1357    with_x=yes ;;
1358
1359  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1360  | --x-incl | --x-inc | --x-in | --x-i)
1361    ac_prev=x_includes ;;
1362  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1363  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1364    x_includes=$ac_optarg ;;
1365
1366  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1367  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1368    ac_prev=x_libraries ;;
1369  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1370  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1371    x_libraries=$ac_optarg ;;
1372
1373  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1374Try \`$0 --help' for more information"
1375    ;;
1376
1377  *=*)
1378    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1379    # Reject names that are not valid shell variable names.
1380    case $ac_envvar in #(
1381      '' | [0-9]* | *[!_$as_cr_alnum]* )
1382      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1383    esac
1384    eval $ac_envvar=\$ac_optarg
1385    export $ac_envvar ;;
1386
1387  *)
1388    # FIXME: should be removed in autoconf 3.0.
1389    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1390    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1391      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1392    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1393    ;;
1394
1395  esac
1396done
1397
1398if test -n "$ac_prev"; then
1399  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1400  as_fn_error $? "missing argument to $ac_option"
1401fi
1402
1403if test -n "$ac_unrecognized_opts"; then
1404  case $enable_option_checking in
1405    no) ;;
1406    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1407    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1408  esac
1409fi
1410
1411# Check all directory arguments for consistency.
1412for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1413		datadir sysconfdir sharedstatedir localstatedir includedir \
1414		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1415		libdir localedir mandir runstatedir
1416do
1417  eval ac_val=\$$ac_var
1418  # Remove trailing slashes.
1419  case $ac_val in
1420    */ )
1421      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1422      eval $ac_var=\$ac_val;;
1423  esac
1424  # Be sure to have absolute directory names.
1425  case $ac_val in
1426    [\\/$]* | ?:[\\/]* )  continue;;
1427    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1428  esac
1429  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1430done
1431
1432# There might be people who depend on the old broken behavior: `$host'
1433# used to hold the argument of --host etc.
1434# FIXME: To remove some day.
1435build=$build_alias
1436host=$host_alias
1437target=$target_alias
1438
1439# FIXME: To remove some day.
1440if test "x$host_alias" != x; then
1441  if test "x$build_alias" = x; then
1442    cross_compiling=maybe
1443  elif test "x$build_alias" != "x$host_alias"; then
1444    cross_compiling=yes
1445  fi
1446fi
1447
1448ac_tool_prefix=
1449test -n "$host_alias" && ac_tool_prefix=$host_alias-
1450
1451test "$silent" = yes && exec 6>/dev/null
1452
1453
1454ac_pwd=`pwd` && test -n "$ac_pwd" &&
1455ac_ls_di=`ls -di .` &&
1456ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1457  as_fn_error $? "working directory cannot be determined"
1458test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1459  as_fn_error $? "pwd does not report name of working directory"
1460
1461
1462# Find the source files, if location was not specified.
1463if test -z "$srcdir"; then
1464  ac_srcdir_defaulted=yes
1465  # Try the directory containing this script, then the parent directory.
1466  ac_confdir=`$as_dirname -- "$as_myself" ||
1467$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1468	 X"$as_myself" : 'X\(//\)[^/]' \| \
1469	 X"$as_myself" : 'X\(//\)$' \| \
1470	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1471$as_echo X"$as_myself" |
1472    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1473	    s//\1/
1474	    q
1475	  }
1476	  /^X\(\/\/\)[^/].*/{
1477	    s//\1/
1478	    q
1479	  }
1480	  /^X\(\/\/\)$/{
1481	    s//\1/
1482	    q
1483	  }
1484	  /^X\(\/\).*/{
1485	    s//\1/
1486	    q
1487	  }
1488	  s/.*/./; q'`
1489  srcdir=$ac_confdir
1490  if test ! -r "$srcdir/$ac_unique_file"; then
1491    srcdir=..
1492  fi
1493else
1494  ac_srcdir_defaulted=no
1495fi
1496if test ! -r "$srcdir/$ac_unique_file"; then
1497  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1498  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1499fi
1500ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1501ac_abs_confdir=`(
1502	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1503	pwd)`
1504# When building in place, set srcdir=.
1505if test "$ac_abs_confdir" = "$ac_pwd"; then
1506  srcdir=.
1507fi
1508# Remove unnecessary trailing slashes from srcdir.
1509# Double slashes in file names in object file debugging info
1510# mess up M-x gdb in Emacs.
1511case $srcdir in
1512*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1513esac
1514for ac_var in $ac_precious_vars; do
1515  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1516  eval ac_env_${ac_var}_value=\$${ac_var}
1517  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1518  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1519done
1520
1521#
1522# Report the --help message.
1523#
1524if test "$ac_init_help" = "long"; then
1525  # Omit some internal or obsolete options to make the list less imposing.
1526  # This message is too long to be a string in the A/UX 3.1 sh.
1527  cat <<_ACEOF
1528\`configure' configures cfengine 3.19.0 to adapt to many kinds of systems.
1529
1530Usage: $0 [OPTION]... [VAR=VALUE]...
1531
1532To assign environment variables (e.g., CC, CFLAGS...), specify them as
1533VAR=VALUE.  See below for descriptions of some of the useful variables.
1534
1535Defaults for the options are specified in brackets.
1536
1537Configuration:
1538  -h, --help              display this help and exit
1539      --help=short        display options specific to this package
1540      --help=recursive    display the short help of all the included packages
1541  -V, --version           display version information and exit
1542  -q, --quiet, --silent   do not print \`checking ...' messages
1543      --cache-file=FILE   cache test results in FILE [disabled]
1544  -C, --config-cache      alias for \`--cache-file=config.cache'
1545  -n, --no-create         do not create output files
1546      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1547
1548Installation directories:
1549  --prefix=PREFIX         install architecture-independent files in PREFIX
1550                          [$ac_default_prefix]
1551  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1552                          [PREFIX]
1553
1554By default, \`make install' will install all the files in
1555\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1556an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1557for instance \`--prefix=\$HOME'.
1558
1559For better control, use the options below.
1560
1561Fine tuning of the installation directories:
1562  --bindir=DIR            user executables [EPREFIX/bin]
1563  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1564  --libexecdir=DIR        program executables [EPREFIX/libexec]
1565  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1566  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1567  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1568  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1569  --libdir=DIR            object code libraries [EPREFIX/lib]
1570  --includedir=DIR        C header files [PREFIX/include]
1571  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1572  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1573  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1574  --infodir=DIR           info documentation [DATAROOTDIR/info]
1575  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1576  --mandir=DIR            man documentation [DATAROOTDIR/man]
1577  --docdir=DIR            documentation root [DATAROOTDIR/doc/cfengine]
1578  --htmldir=DIR           html documentation [DOCDIR]
1579  --dvidir=DIR            dvi documentation [DOCDIR]
1580  --pdfdir=DIR            pdf documentation [DOCDIR]
1581  --psdir=DIR             ps documentation [DOCDIR]
1582_ACEOF
1583
1584  cat <<\_ACEOF
1585
1586Program names:
1587  --program-prefix=PREFIX            prepend PREFIX to installed program names
1588  --program-suffix=SUFFIX            append SUFFIX to installed program names
1589  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1590
1591System types:
1592  --build=BUILD     configure for building on BUILD [guessed]
1593  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1594  --target=TARGET   configure for building compilers for TARGET [HOST]
1595_ACEOF
1596fi
1597
1598if test -n "$ac_init_help"; then
1599  case $ac_init_help in
1600     short | recursive ) echo "Configuration of cfengine 3.19.0:";;
1601   esac
1602  cat <<\_ACEOF
1603
1604Optional Features:
1605  --disable-option-checking  ignore unrecognized --enable/--with options
1606  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1607  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1608  --enable-silent-rules   less verbose build output (undo: "make V=1")
1609  --disable-silent-rules  verbose build output (undo: "make V=0")
1610  --disable-maintainer-mode
1611                          disable make rules and dependencies not useful (and
1612                          sometimes confusing) to the casual installer
1613  --enable-dependency-tracking
1614                          do not reject slow dependency extractors
1615  --disable-dependency-tracking
1616                          speeds up one-time build
1617  --enable-static[=PKGS]  build static libraries [default=no]
1618  --enable-shared[=PKGS]  build shared libraries [default=yes]
1619  --enable-fast-install[=PKGS]
1620                          optimize for fast installation [default=yes]
1621  --disable-libtool-lock  avoid locking (might break parallel builds)
1622  Build binaries with builtin extensions
1623
1624  --enable-fhs            Enable FHS compliance. Defaults to custom CFEngine
1625                          files layout
1626  --enable-debug          Enable debugging
1627  --disable-largefile     omit support for large files
1628  --enable-selinux        Deprecated. SELinux support is always enabled
1629  --enable-coverage       Enable code coverage
1630
1631Optional Packages:
1632  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1633  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1634  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1635                          both]
1636  --with-aix-soname=aix|svr4|both
1637                          shared library versioning (aka "SONAME") variant to
1638                          provide on AIX, [default=aix].
1639  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1640  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1641                          compiler's sysroot if not specified).
1642  --with-pthreads[=PATH]  Specify path to pthreads, if not the part of
1643                          operating system
1644  --with-sql[=PATH]       Enable SQL database connectors (deprecated, use
1645                          --with[[out]]-postgresql and --with[[out]]-mysql
1646                          instead)
1647
1648  --with-postgresql[=PATH]
1649                          Enable PostgreSQL connector
1650
1651  --with-mysql[=PATH]     Enable MySQL connector
1652
1653  --with-qdbm[=PATH]      use QDBM to store runtime data
1654  --with-tokyocabinet[=PATH]
1655                          use Tokyo Cabinet to store runtime data
1656  --with-lmdb[=PATH]      use Lightning MDB to store runtime data
1657  --with-openssl[=PATH]   Specify OpenSSL path
1658  --with-pcre[=PATH]      Specify PCRE path
1659  --with-systemd-socket[=PATH]
1660                          support systemd socket activation
1661  --with-libvirt[=PATH]   support virtual machine management
1662  --with-libacl[=PATH]    Specify libacl path
1663  --with-libcurl[=PATH]   Specify libcurl path
1664  --with-libyaml[=PATH]   Specify libyaml path
1665  --with-libxml2[=PATH]   Specify libxml2 path
1666
1667  --with-avahi[=yes/no/check]
1668                          Compile with Avahi support [default=no]
1669  --with-pam              Compile with PAM support
1670  --with-workdir=WORKDIR  default for internal (trusted) working directory
1671  --with-masterdir=MASTERDIR  default for internal masterfiles directory
1672  --with-inputdir=INPUTDIR  default for internal inputs directory
1673  --with-datadir=DATADIR  default for internal data directory
1674  --with-logdir=LOGDIR  default for internal log directory
1675  --with-piddir=LOGDIR  default for internal pid directory
1676  --with-statedir=STATEDIR  default for internal state directory
1677  --with-shell=PATH       Specify path to POSIX-compatible shell (if not
1678                          /bin/sh)
1679  --with-init-script=PATH Install init.d script in given path. The default is
1680                          no, but if specified, the default path is platform
1681                          specific.
1682  --with-systemd-service=PATH
1683                          Install systemd service file in given path. The
1684                          default is no, but if specified, the default path is
1685                          /usr/lib/systemd/system.
1686  --with-environment-path=PATH
1687                          Specifies the location of the environment files for
1688                          the platform. Currently used only by systemd.
1689  --with-selinux-policy   Whether to build and install SELinux policy
1690                          (default: no)
1691
1692Some influential environment variables:
1693  CC          C compiler command
1694  CFLAGS      C compiler flags
1695  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1696              nonstandard directory <lib dir>
1697  LIBS        libraries to pass to the linker, e.g. -l<library>
1698  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1699              you have headers in a nonstandard directory <include dir>
1700  CPP         C preprocessor
1701  LT_SYS_LIBRARY_PATH
1702              User-defined run-time library search path.
1703  YACC        The `Yet Another Compiler Compiler' implementation to use.
1704              Defaults to the first program found out of: `bison -y', `byacc',
1705              `yacc'.
1706  YFLAGS      The list of arguments that will be passed by default to $YACC.
1707              This script will default YFLAGS to the empty string to avoid a
1708              default value of `-d' given by some make applications.
1709
1710Use these variables to override the choices made by `configure' or to help
1711it to find libraries and programs with nonstandard names/locations.
1712
1713Report bugs to the package provider.
1714_ACEOF
1715ac_status=$?
1716fi
1717
1718if test "$ac_init_help" = "recursive"; then
1719  # If there are subdirs, report their specific --help.
1720  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1721    test -d "$ac_dir" ||
1722      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1723      continue
1724    ac_builddir=.
1725
1726case "$ac_dir" in
1727.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728*)
1729  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1730  # A ".." for each directory in $ac_dir_suffix.
1731  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1732  case $ac_top_builddir_sub in
1733  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1735  esac ;;
1736esac
1737ac_abs_top_builddir=$ac_pwd
1738ac_abs_builddir=$ac_pwd$ac_dir_suffix
1739# for backward compatibility:
1740ac_top_builddir=$ac_top_build_prefix
1741
1742case $srcdir in
1743  .)  # We are building in place.
1744    ac_srcdir=.
1745    ac_top_srcdir=$ac_top_builddir_sub
1746    ac_abs_top_srcdir=$ac_pwd ;;
1747  [\\/]* | ?:[\\/]* )  # Absolute name.
1748    ac_srcdir=$srcdir$ac_dir_suffix;
1749    ac_top_srcdir=$srcdir
1750    ac_abs_top_srcdir=$srcdir ;;
1751  *) # Relative name.
1752    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1753    ac_top_srcdir=$ac_top_build_prefix$srcdir
1754    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1755esac
1756ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1757
1758    cd "$ac_dir" || { ac_status=$?; continue; }
1759    # Check for guested configure.
1760    if test -f "$ac_srcdir/configure.gnu"; then
1761      echo &&
1762      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1763    elif test -f "$ac_srcdir/configure"; then
1764      echo &&
1765      $SHELL "$ac_srcdir/configure" --help=recursive
1766    else
1767      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1768    fi || ac_status=$?
1769    cd "$ac_pwd" || { ac_status=$?; break; }
1770  done
1771fi
1772
1773test -n "$ac_init_help" && exit $ac_status
1774if $ac_init_version; then
1775  cat <<\_ACEOF
1776cfengine configure 3.19.0
1777generated by GNU Autoconf 2.69
1778
1779Copyright (C) 2012 Free Software Foundation, Inc.
1780This configure script is free software; the Free Software Foundation
1781gives unlimited permission to copy, distribute and modify it.
1782_ACEOF
1783  exit
1784fi
1785
1786## ------------------------ ##
1787## Autoconf initialization. ##
1788## ------------------------ ##
1789
1790# ac_fn_c_try_compile LINENO
1791# --------------------------
1792# Try to compile conftest.$ac_ext, and return whether this succeeded.
1793ac_fn_c_try_compile ()
1794{
1795  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796  rm -f conftest.$ac_objext
1797  if { { ac_try="$ac_compile"
1798case "(($ac_try" in
1799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800  *) ac_try_echo=$ac_try;;
1801esac
1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803$as_echo "$ac_try_echo"; } >&5
1804  (eval "$ac_compile") 2>conftest.err
1805  ac_status=$?
1806  if test -s conftest.err; then
1807    grep -v '^ *+' conftest.err >conftest.er1
1808    cat conftest.er1 >&5
1809    mv -f conftest.er1 conftest.err
1810  fi
1811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812  test $ac_status = 0; } && {
1813	 test -z "$ac_c_werror_flag" ||
1814	 test ! -s conftest.err
1815       } && test -s conftest.$ac_objext; then :
1816  ac_retval=0
1817else
1818  $as_echo "$as_me: failed program was:" >&5
1819sed 's/^/| /' conftest.$ac_ext >&5
1820
1821	ac_retval=1
1822fi
1823  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824  as_fn_set_status $ac_retval
1825
1826} # ac_fn_c_try_compile
1827
1828# ac_fn_c_try_cpp LINENO
1829# ----------------------
1830# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1831ac_fn_c_try_cpp ()
1832{
1833  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834  if { { ac_try="$ac_cpp conftest.$ac_ext"
1835case "(($ac_try" in
1836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837  *) ac_try_echo=$ac_try;;
1838esac
1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840$as_echo "$ac_try_echo"; } >&5
1841  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1842  ac_status=$?
1843  if test -s conftest.err; then
1844    grep -v '^ *+' conftest.err >conftest.er1
1845    cat conftest.er1 >&5
1846    mv -f conftest.er1 conftest.err
1847  fi
1848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849  test $ac_status = 0; } > conftest.i && {
1850	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1851	 test ! -s conftest.err
1852       }; then :
1853  ac_retval=0
1854else
1855  $as_echo "$as_me: failed program was:" >&5
1856sed 's/^/| /' conftest.$ac_ext >&5
1857
1858    ac_retval=1
1859fi
1860  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861  as_fn_set_status $ac_retval
1862
1863} # ac_fn_c_try_cpp
1864
1865# ac_fn_c_try_link LINENO
1866# -----------------------
1867# Try to link conftest.$ac_ext, and return whether this succeeded.
1868ac_fn_c_try_link ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  rm -f conftest.$ac_objext conftest$ac_exeext
1872  if { { ac_try="$ac_link"
1873case "(($ac_try" in
1874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875  *) ac_try_echo=$ac_try;;
1876esac
1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878$as_echo "$ac_try_echo"; } >&5
1879  (eval "$ac_link") 2>conftest.err
1880  ac_status=$?
1881  if test -s conftest.err; then
1882    grep -v '^ *+' conftest.err >conftest.er1
1883    cat conftest.er1 >&5
1884    mv -f conftest.er1 conftest.err
1885  fi
1886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887  test $ac_status = 0; } && {
1888	 test -z "$ac_c_werror_flag" ||
1889	 test ! -s conftest.err
1890       } && test -s conftest$ac_exeext && {
1891	 test "$cross_compiling" = yes ||
1892	 test -x conftest$ac_exeext
1893       }; then :
1894  ac_retval=0
1895else
1896  $as_echo "$as_me: failed program was:" >&5
1897sed 's/^/| /' conftest.$ac_ext >&5
1898
1899	ac_retval=1
1900fi
1901  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1902  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1903  # interfere with the next link command; also delete a directory that is
1904  # left behind by Apple's compiler.  We do this before executing the actions.
1905  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907  as_fn_set_status $ac_retval
1908
1909} # ac_fn_c_try_link
1910
1911# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1912# -------------------------------------------------------
1913# Tests whether HEADER exists and can be compiled using the include files in
1914# INCLUDES, setting the cache variable VAR accordingly.
1915ac_fn_c_check_header_compile ()
1916{
1917  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if eval \${$3+:} false; then :
1921  $as_echo_n "(cached) " >&6
1922else
1923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h.  */
1925$4
1926#include <$2>
1927_ACEOF
1928if ac_fn_c_try_compile "$LINENO"; then :
1929  eval "$3=yes"
1930else
1931  eval "$3=no"
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934fi
1935eval ac_res=\$$3
1936	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940} # ac_fn_c_check_header_compile
1941
1942# ac_fn_c_try_run LINENO
1943# ----------------------
1944# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1945# that executables *can* be run.
1946ac_fn_c_try_run ()
1947{
1948  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949  if { { ac_try="$ac_link"
1950case "(($ac_try" in
1951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952  *) ac_try_echo=$ac_try;;
1953esac
1954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955$as_echo "$ac_try_echo"; } >&5
1956  (eval "$ac_link") 2>&5
1957  ac_status=$?
1958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1960  { { case "(($ac_try" in
1961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962  *) ac_try_echo=$ac_try;;
1963esac
1964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965$as_echo "$ac_try_echo"; } >&5
1966  (eval "$ac_try") 2>&5
1967  ac_status=$?
1968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969  test $ac_status = 0; }; }; then :
1970  ac_retval=0
1971else
1972  $as_echo "$as_me: program exited with status $ac_status" >&5
1973       $as_echo "$as_me: failed program was:" >&5
1974sed 's/^/| /' conftest.$ac_ext >&5
1975
1976       ac_retval=$ac_status
1977fi
1978  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980  as_fn_set_status $ac_retval
1981
1982} # ac_fn_c_try_run
1983
1984# ac_fn_c_check_func LINENO FUNC VAR
1985# ----------------------------------
1986# Tests whether FUNC exists, setting the cache variable VAR accordingly
1987ac_fn_c_check_func ()
1988{
1989  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991$as_echo_n "checking for $2... " >&6; }
1992if eval \${$3+:} false; then :
1993  $as_echo_n "(cached) " >&6
1994else
1995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996/* end confdefs.h.  */
1997/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1998   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1999#define $2 innocuous_$2
2000
2001/* System header to define __stub macros and hopefully few prototypes,
2002    which can conflict with char $2 (); below.
2003    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2004    <limits.h> exists even on freestanding compilers.  */
2005
2006#ifdef __STDC__
2007# include <limits.h>
2008#else
2009# include <assert.h>
2010#endif
2011
2012#undef $2
2013
2014/* Override any GCC internal prototype to avoid an error.
2015   Use char because int might match the return type of a GCC
2016   builtin and then its argument prototype would still apply.  */
2017#ifdef __cplusplus
2018extern "C"
2019#endif
2020char $2 ();
2021/* The GNU C library defines this for functions which it implements
2022    to always fail with ENOSYS.  Some functions are actually named
2023    something starting with __ and the normal name is an alias.  */
2024#if defined __stub_$2 || defined __stub___$2
2025choke me
2026#endif
2027
2028int
2029main ()
2030{
2031return $2 ();
2032  ;
2033  return 0;
2034}
2035_ACEOF
2036if ac_fn_c_try_link "$LINENO"; then :
2037  eval "$3=yes"
2038else
2039  eval "$3=no"
2040fi
2041rm -f core conftest.err conftest.$ac_objext \
2042    conftest$ac_exeext conftest.$ac_ext
2043fi
2044eval ac_res=\$$3
2045	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046$as_echo "$ac_res" >&6; }
2047  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048
2049} # ac_fn_c_check_func
2050
2051# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2052# -------------------------------------------------------
2053# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2054# the include files in INCLUDES and setting the cache variable VAR
2055# accordingly.
2056ac_fn_c_check_header_mongrel ()
2057{
2058  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059  if eval \${$3+:} false; then :
2060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061$as_echo_n "checking for $2... " >&6; }
2062if eval \${$3+:} false; then :
2063  $as_echo_n "(cached) " >&6
2064fi
2065eval ac_res=\$$3
2066	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067$as_echo "$ac_res" >&6; }
2068else
2069  # Is the header compilable?
2070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2071$as_echo_n "checking $2 usability... " >&6; }
2072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073/* end confdefs.h.  */
2074$4
2075#include <$2>
2076_ACEOF
2077if ac_fn_c_try_compile "$LINENO"; then :
2078  ac_header_compiler=yes
2079else
2080  ac_header_compiler=no
2081fi
2082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2084$as_echo "$ac_header_compiler" >&6; }
2085
2086# Is the header present?
2087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2088$as_echo_n "checking $2 presence... " >&6; }
2089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h.  */
2091#include <$2>
2092_ACEOF
2093if ac_fn_c_try_cpp "$LINENO"; then :
2094  ac_header_preproc=yes
2095else
2096  ac_header_preproc=no
2097fi
2098rm -f conftest.err conftest.i conftest.$ac_ext
2099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2100$as_echo "$ac_header_preproc" >&6; }
2101
2102# So?  What about this header?
2103case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2104  yes:no: )
2105    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2106$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2107    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2108$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2109    ;;
2110  no:yes:* )
2111    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2112$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2113    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2114$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2115    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2116$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2117    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2118$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2119    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2120$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2121    ;;
2122esac
2123  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124$as_echo_n "checking for $2... " >&6; }
2125if eval \${$3+:} false; then :
2126  $as_echo_n "(cached) " >&6
2127else
2128  eval "$3=\$ac_header_compiler"
2129fi
2130eval ac_res=\$$3
2131	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132$as_echo "$ac_res" >&6; }
2133fi
2134  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135
2136} # ac_fn_c_check_header_mongrel
2137
2138# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2139# ---------------------------------------------
2140# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2141# accordingly.
2142ac_fn_c_check_decl ()
2143{
2144  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145  as_decl_name=`echo $2|sed 's/ *(.*//'`
2146  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2148$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2149if eval \${$3+:} false; then :
2150  $as_echo_n "(cached) " >&6
2151else
2152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h.  */
2154$4
2155int
2156main ()
2157{
2158#ifndef $as_decl_name
2159#ifdef __cplusplus
2160  (void) $as_decl_use;
2161#else
2162  (void) $as_decl_name;
2163#endif
2164#endif
2165
2166  ;
2167  return 0;
2168}
2169_ACEOF
2170if ac_fn_c_try_compile "$LINENO"; then :
2171  eval "$3=yes"
2172else
2173  eval "$3=no"
2174fi
2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176fi
2177eval ac_res=\$$3
2178	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179$as_echo "$ac_res" >&6; }
2180  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181
2182} # ac_fn_c_check_decl
2183
2184# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2185# -------------------------------------------
2186# Tests whether TYPE exists after having included INCLUDES, setting cache
2187# variable VAR accordingly.
2188ac_fn_c_check_type ()
2189{
2190  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192$as_echo_n "checking for $2... " >&6; }
2193if eval \${$3+:} false; then :
2194  $as_echo_n "(cached) " >&6
2195else
2196  eval "$3=no"
2197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198/* end confdefs.h.  */
2199$4
2200int
2201main ()
2202{
2203if (sizeof ($2))
2204	 return 0;
2205  ;
2206  return 0;
2207}
2208_ACEOF
2209if ac_fn_c_try_compile "$LINENO"; then :
2210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211/* end confdefs.h.  */
2212$4
2213int
2214main ()
2215{
2216if (sizeof (($2)))
2217	    return 0;
2218  ;
2219  return 0;
2220}
2221_ACEOF
2222if ac_fn_c_try_compile "$LINENO"; then :
2223
2224else
2225  eval "$3=yes"
2226fi
2227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228fi
2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230fi
2231eval ac_res=\$$3
2232	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233$as_echo "$ac_res" >&6; }
2234  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235
2236} # ac_fn_c_check_type
2237
2238# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2239# ----------------------------------------------------
2240# Tries to find if the field MEMBER exists in type AGGR, after including
2241# INCLUDES, setting cache variable VAR accordingly.
2242ac_fn_c_check_member ()
2243{
2244  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2246$as_echo_n "checking for $2.$3... " >&6; }
2247if eval \${$4+:} false; then :
2248  $as_echo_n "(cached) " >&6
2249else
2250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251/* end confdefs.h.  */
2252$5
2253int
2254main ()
2255{
2256static $2 ac_aggr;
2257if (ac_aggr.$3)
2258return 0;
2259  ;
2260  return 0;
2261}
2262_ACEOF
2263if ac_fn_c_try_compile "$LINENO"; then :
2264  eval "$4=yes"
2265else
2266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267/* end confdefs.h.  */
2268$5
2269int
2270main ()
2271{
2272static $2 ac_aggr;
2273if (sizeof ac_aggr.$3)
2274return 0;
2275  ;
2276  return 0;
2277}
2278_ACEOF
2279if ac_fn_c_try_compile "$LINENO"; then :
2280  eval "$4=yes"
2281else
2282  eval "$4=no"
2283fi
2284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285fi
2286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287fi
2288eval ac_res=\$$4
2289	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290$as_echo "$ac_res" >&6; }
2291  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2292
2293} # ac_fn_c_check_member
2294cat >config.log <<_ACEOF
2295This file contains any messages produced by compilers while
2296running configure, to aid debugging if configure makes a mistake.
2297
2298It was created by cfengine $as_me 3.19.0, which was
2299generated by GNU Autoconf 2.69.  Invocation command line was
2300
2301  $ $0 $@
2302
2303_ACEOF
2304exec 5>>config.log
2305{
2306cat <<_ASUNAME
2307## --------- ##
2308## Platform. ##
2309## --------- ##
2310
2311hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2312uname -m = `(uname -m) 2>/dev/null || echo unknown`
2313uname -r = `(uname -r) 2>/dev/null || echo unknown`
2314uname -s = `(uname -s) 2>/dev/null || echo unknown`
2315uname -v = `(uname -v) 2>/dev/null || echo unknown`
2316
2317/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2318/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2319
2320/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2321/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2322/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2323/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2324/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2325/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2326/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2327
2328_ASUNAME
2329
2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331for as_dir in $PATH
2332do
2333  IFS=$as_save_IFS
2334  test -z "$as_dir" && as_dir=.
2335    $as_echo "PATH: $as_dir"
2336  done
2337IFS=$as_save_IFS
2338
2339} >&5
2340
2341cat >&5 <<_ACEOF
2342
2343
2344## ----------- ##
2345## Core tests. ##
2346## ----------- ##
2347
2348_ACEOF
2349
2350
2351# Keep a trace of the command line.
2352# Strip out --no-create and --no-recursion so they do not pile up.
2353# Strip out --silent because we don't want to record it for future runs.
2354# Also quote any args containing shell meta-characters.
2355# Make two passes to allow for proper duplicate-argument suppression.
2356ac_configure_args=
2357ac_configure_args0=
2358ac_configure_args1=
2359ac_must_keep_next=false
2360for ac_pass in 1 2
2361do
2362  for ac_arg
2363  do
2364    case $ac_arg in
2365    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2366    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2367    | -silent | --silent | --silen | --sile | --sil)
2368      continue ;;
2369    *\'*)
2370      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2371    esac
2372    case $ac_pass in
2373    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2374    2)
2375      as_fn_append ac_configure_args1 " '$ac_arg'"
2376      if test $ac_must_keep_next = true; then
2377	ac_must_keep_next=false # Got value, back to normal.
2378      else
2379	case $ac_arg in
2380	  *=* | --config-cache | -C | -disable-* | --disable-* \
2381	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2382	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2383	  | -with-* | --with-* | -without-* | --without-* | --x)
2384	    case "$ac_configure_args0 " in
2385	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2386	    esac
2387	    ;;
2388	  -* ) ac_must_keep_next=true ;;
2389	esac
2390      fi
2391      as_fn_append ac_configure_args " '$ac_arg'"
2392      ;;
2393    esac
2394  done
2395done
2396{ ac_configure_args0=; unset ac_configure_args0;}
2397{ ac_configure_args1=; unset ac_configure_args1;}
2398
2399# When interrupted or exit'd, cleanup temporary files, and complete
2400# config.log.  We remove comments because anyway the quotes in there
2401# would cause problems or look ugly.
2402# WARNING: Use '\'' to represent an apostrophe within the trap.
2403# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2404trap 'exit_status=$?
2405  # Save into config.log some information that might help in debugging.
2406  {
2407    echo
2408
2409    $as_echo "## ---------------- ##
2410## Cache variables. ##
2411## ---------------- ##"
2412    echo
2413    # The following way of writing the cache mishandles newlines in values,
2414(
2415  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2416    eval ac_val=\$$ac_var
2417    case $ac_val in #(
2418    *${as_nl}*)
2419      case $ac_var in #(
2420      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2421$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2422      esac
2423      case $ac_var in #(
2424      _ | IFS | as_nl) ;; #(
2425      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2426      *) { eval $ac_var=; unset $ac_var;} ;;
2427      esac ;;
2428    esac
2429  done
2430  (set) 2>&1 |
2431    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2432    *${as_nl}ac_space=\ *)
2433      sed -n \
2434	"s/'\''/'\''\\\\'\'''\''/g;
2435	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2436      ;; #(
2437    *)
2438      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2439      ;;
2440    esac |
2441    sort
2442)
2443    echo
2444
2445    $as_echo "## ----------------- ##
2446## Output variables. ##
2447## ----------------- ##"
2448    echo
2449    for ac_var in $ac_subst_vars
2450    do
2451      eval ac_val=\$$ac_var
2452      case $ac_val in
2453      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2454      esac
2455      $as_echo "$ac_var='\''$ac_val'\''"
2456    done | sort
2457    echo
2458
2459    if test -n "$ac_subst_files"; then
2460      $as_echo "## ------------------- ##
2461## File substitutions. ##
2462## ------------------- ##"
2463      echo
2464      for ac_var in $ac_subst_files
2465      do
2466	eval ac_val=\$$ac_var
2467	case $ac_val in
2468	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2469	esac
2470	$as_echo "$ac_var='\''$ac_val'\''"
2471      done | sort
2472      echo
2473    fi
2474
2475    if test -s confdefs.h; then
2476      $as_echo "## ----------- ##
2477## confdefs.h. ##
2478## ----------- ##"
2479      echo
2480      cat confdefs.h
2481      echo
2482    fi
2483    test "$ac_signal" != 0 &&
2484      $as_echo "$as_me: caught signal $ac_signal"
2485    $as_echo "$as_me: exit $exit_status"
2486  } >&5
2487  rm -f core *.core core.conftest.* &&
2488    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2489    exit $exit_status
2490' 0
2491for ac_signal in 1 2 13 15; do
2492  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2493done
2494ac_signal=0
2495
2496# confdefs.h avoids OS command line length limits that DEFS can exceed.
2497rm -f -r conftest* confdefs.h
2498
2499$as_echo "/* confdefs.h */" > confdefs.h
2500
2501# Predefined preprocessor variables.
2502
2503cat >>confdefs.h <<_ACEOF
2504#define PACKAGE_NAME "$PACKAGE_NAME"
2505_ACEOF
2506
2507cat >>confdefs.h <<_ACEOF
2508#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2509_ACEOF
2510
2511cat >>confdefs.h <<_ACEOF
2512#define PACKAGE_VERSION "$PACKAGE_VERSION"
2513_ACEOF
2514
2515cat >>confdefs.h <<_ACEOF
2516#define PACKAGE_STRING "$PACKAGE_STRING"
2517_ACEOF
2518
2519cat >>confdefs.h <<_ACEOF
2520#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2521_ACEOF
2522
2523cat >>confdefs.h <<_ACEOF
2524#define PACKAGE_URL "$PACKAGE_URL"
2525_ACEOF
2526
2527
2528# Let the site file select an alternate cache file if it wants to.
2529# Prefer an explicitly selected file to automatically selected ones.
2530ac_site_file1=NONE
2531ac_site_file2=NONE
2532if test -n "$CONFIG_SITE"; then
2533  # We do not want a PATH search for config.site.
2534  case $CONFIG_SITE in #((
2535    -*)  ac_site_file1=./$CONFIG_SITE;;
2536    */*) ac_site_file1=$CONFIG_SITE;;
2537    *)   ac_site_file1=./$CONFIG_SITE;;
2538  esac
2539elif test "x$prefix" != xNONE; then
2540  ac_site_file1=$prefix/share/config.site
2541  ac_site_file2=$prefix/etc/config.site
2542else
2543  ac_site_file1=$ac_default_prefix/share/config.site
2544  ac_site_file2=$ac_default_prefix/etc/config.site
2545fi
2546for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2547do
2548  test "x$ac_site_file" = xNONE && continue
2549  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2550    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2551$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2552    sed 's/^/| /' "$ac_site_file" >&5
2553    . "$ac_site_file" \
2554      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556as_fn_error $? "failed to load site script $ac_site_file
2557See \`config.log' for more details" "$LINENO" 5; }
2558  fi
2559done
2560
2561if test -r "$cache_file"; then
2562  # Some versions of bash will fail to source /dev/null (special files
2563  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2564  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2565    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2566$as_echo "$as_me: loading cache $cache_file" >&6;}
2567    case $cache_file in
2568      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2569      *)                      . "./$cache_file";;
2570    esac
2571  fi
2572else
2573  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2574$as_echo "$as_me: creating cache $cache_file" >&6;}
2575  >$cache_file
2576fi
2577
2578as_fn_append ac_header_list " sys/sysmacros.h"
2579# Check that the precious variables saved in the cache have kept the same
2580# value.
2581ac_cache_corrupted=false
2582for ac_var in $ac_precious_vars; do
2583  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2584  eval ac_new_set=\$ac_env_${ac_var}_set
2585  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2586  eval ac_new_val=\$ac_env_${ac_var}_value
2587  case $ac_old_set,$ac_new_set in
2588    set,)
2589      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2590$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2591      ac_cache_corrupted=: ;;
2592    ,set)
2593      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2594$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2595      ac_cache_corrupted=: ;;
2596    ,);;
2597    *)
2598      if test "x$ac_old_val" != "x$ac_new_val"; then
2599	# differences in whitespace do not lead to failure.
2600	ac_old_val_w=`echo x $ac_old_val`
2601	ac_new_val_w=`echo x $ac_new_val`
2602	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2603	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2604$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2605	  ac_cache_corrupted=:
2606	else
2607	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2608$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2609	  eval $ac_var=\$ac_old_val
2610	fi
2611	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2612$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2613	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2614$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2615      fi;;
2616  esac
2617  # Pass precious variables to config.status.
2618  if test "$ac_new_set" = set; then
2619    case $ac_new_val in
2620    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2621    *) ac_arg=$ac_var=$ac_new_val ;;
2622    esac
2623    case " $ac_configure_args " in
2624      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2625      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2626    esac
2627  fi
2628done
2629if $ac_cache_corrupted; then
2630  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2632  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2633$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2634  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2635fi
2636## -------------------- ##
2637## Main body of script. ##
2638## -------------------- ##
2639
2640ac_ext=c
2641ac_cpp='$CPP $CPPFLAGS'
2642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645
2646
2647
2648ac_aux_dir=
2649for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2650  if test -f "$ac_dir/install-sh"; then
2651    ac_aux_dir=$ac_dir
2652    ac_install_sh="$ac_aux_dir/install-sh -c"
2653    break
2654  elif test -f "$ac_dir/install.sh"; then
2655    ac_aux_dir=$ac_dir
2656    ac_install_sh="$ac_aux_dir/install.sh -c"
2657    break
2658  elif test -f "$ac_dir/shtool"; then
2659    ac_aux_dir=$ac_dir
2660    ac_install_sh="$ac_aux_dir/shtool install -c"
2661    break
2662  fi
2663done
2664if test -z "$ac_aux_dir"; then
2665  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2666fi
2667
2668# These three variables are undocumented and unsupported,
2669# and are intended to be withdrawn in a future Autoconf release.
2670# They can cause serious problems if a builder's source tree is in a directory
2671# whose full name contains unusual characters.
2672ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2673ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2674ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2675
2676
2677# Make sure we can run config.sub.
2678$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2679  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2680
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2682$as_echo_n "checking build system type... " >&6; }
2683if ${ac_cv_build+:} false; then :
2684  $as_echo_n "(cached) " >&6
2685else
2686  ac_build_alias=$build_alias
2687test "x$ac_build_alias" = x &&
2688  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2689test "x$ac_build_alias" = x &&
2690  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2691ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2692  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2693
2694fi
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2696$as_echo "$ac_cv_build" >&6; }
2697case $ac_cv_build in
2698*-*-*) ;;
2699*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2700esac
2701build=$ac_cv_build
2702ac_save_IFS=$IFS; IFS='-'
2703set x $ac_cv_build
2704shift
2705build_cpu=$1
2706build_vendor=$2
2707shift; shift
2708# Remember, the first character of IFS is used to create $*,
2709# except with old shells:
2710build_os=$*
2711IFS=$ac_save_IFS
2712case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2713
2714
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2716$as_echo_n "checking host system type... " >&6; }
2717if ${ac_cv_host+:} false; then :
2718  $as_echo_n "(cached) " >&6
2719else
2720  if test "x$host_alias" = x; then
2721  ac_cv_host=$ac_cv_build
2722else
2723  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2724    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2725fi
2726
2727fi
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2729$as_echo "$ac_cv_host" >&6; }
2730case $ac_cv_host in
2731*-*-*) ;;
2732*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2733esac
2734host=$ac_cv_host
2735ac_save_IFS=$IFS; IFS='-'
2736set x $ac_cv_host
2737shift
2738host_cpu=$1
2739host_vendor=$2
2740shift; shift
2741# Remember, the first character of IFS is used to create $*,
2742# except with old shells:
2743host_os=$*
2744IFS=$ac_save_IFS
2745case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2746
2747
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2749$as_echo_n "checking target system type... " >&6; }
2750if ${ac_cv_target+:} false; then :
2751  $as_echo_n "(cached) " >&6
2752else
2753  if test "x$target_alias" = x; then
2754  ac_cv_target=$ac_cv_host
2755else
2756  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2757    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2758fi
2759
2760fi
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2762$as_echo "$ac_cv_target" >&6; }
2763case $ac_cv_target in
2764*-*-*) ;;
2765*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2766esac
2767target=$ac_cv_target
2768ac_save_IFS=$IFS; IFS='-'
2769set x $ac_cv_target
2770shift
2771target_cpu=$1
2772target_vendor=$2
2773shift; shift
2774# Remember, the first character of IFS is used to create $*,
2775# except with old shells:
2776target_os=$*
2777IFS=$ac_save_IFS
2778case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2779
2780
2781# The aliases save the names the user supplied, while $host etc.
2782# will get canonicalized.
2783test -n "$target_alias" &&
2784  test "$program_prefix$program_suffix$program_transform_name" = \
2785    NONENONEs,x,x, &&
2786  program_prefix=${target_alias}-
2787
2788# Extract the first word of "makeinfo", so it can be a program name with args.
2789set dummy makeinfo; ac_word=$2
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791$as_echo_n "checking for $ac_word... " >&6; }
2792if ${ac_cv_prog_MAKEINFO+:} false; then :
2793  $as_echo_n "(cached) " >&6
2794else
2795  if test -n "$MAKEINFO"; then
2796  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801  IFS=$as_save_IFS
2802  test -z "$as_dir" && as_dir=.
2803    for ac_exec_ext in '' $ac_executable_extensions; do
2804  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805    ac_cv_prog_MAKEINFO="makeinfo"
2806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807    break 2
2808  fi
2809done
2810  done
2811IFS=$as_save_IFS
2812
2813fi
2814fi
2815MAKEINFO=$ac_cv_prog_MAKEINFO
2816if test -n "$MAKEINFO"; then
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
2818$as_echo "$MAKEINFO" >&6; }
2819else
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821$as_echo "no" >&6; }
2822fi
2823
2824
2825
2826
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking automake version" >&5
2828$as_echo_n "checking automake version... " >&6; }
2829
2830
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 1.15" >&5
2832$as_echo "1.15" >&6; }
2833
2834
2835am__api_version='1.15'
2836
2837# Find a good install program.  We prefer a C program (faster),
2838# so one script is as good as another.  But avoid the broken or
2839# incompatible versions:
2840# SysV /etc/install, /usr/sbin/install
2841# SunOS /usr/etc/install
2842# IRIX /sbin/install
2843# AIX /bin/install
2844# AmigaOS /C/install, which installs bootblocks on floppy discs
2845# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2846# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2847# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2848# OS/2's system install, which has a completely different semantic
2849# ./install, which can be erroneously created by make from ./install.sh.
2850# Reject install programs that cannot install multiple files.
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2852$as_echo_n "checking for a BSD-compatible install... " >&6; }
2853if test -z "$INSTALL"; then
2854if ${ac_cv_path_install+:} false; then :
2855  $as_echo_n "(cached) " >&6
2856else
2857  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860  IFS=$as_save_IFS
2861  test -z "$as_dir" && as_dir=.
2862    # Account for people who put trailing slashes in PATH elements.
2863case $as_dir/ in #((
2864  ./ | .// | /[cC]/* | \
2865  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2866  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2867  /usr/ucb/* ) ;;
2868  *)
2869    # OSF1 and SCO ODT 3.0 have their own names for install.
2870    # Don't use installbsd from OSF since it installs stuff as root
2871    # by default.
2872    for ac_prog in ginstall scoinst install; do
2873      for ac_exec_ext in '' $ac_executable_extensions; do
2874	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2875	  if test $ac_prog = install &&
2876	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2877	    # AIX install.  It has an incompatible calling convention.
2878	    :
2879	  elif test $ac_prog = install &&
2880	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2881	    # program-specific install script used by HP pwplus--don't use.
2882	    :
2883	  else
2884	    rm -rf conftest.one conftest.two conftest.dir
2885	    echo one > conftest.one
2886	    echo two > conftest.two
2887	    mkdir conftest.dir
2888	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2889	      test -s conftest.one && test -s conftest.two &&
2890	      test -s conftest.dir/conftest.one &&
2891	      test -s conftest.dir/conftest.two
2892	    then
2893	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2894	      break 3
2895	    fi
2896	  fi
2897	fi
2898      done
2899    done
2900    ;;
2901esac
2902
2903  done
2904IFS=$as_save_IFS
2905
2906rm -rf conftest.one conftest.two conftest.dir
2907
2908fi
2909  if test "${ac_cv_path_install+set}" = set; then
2910    INSTALL=$ac_cv_path_install
2911  else
2912    # As a last resort, use the slow shell script.  Don't cache a
2913    # value for INSTALL within a source directory, because that will
2914    # break other packages using the cache if that directory is
2915    # removed, or if the value is a relative name.
2916    INSTALL=$ac_install_sh
2917  fi
2918fi
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2920$as_echo "$INSTALL" >&6; }
2921
2922# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2923# It thinks the first close brace ends the variable substitution.
2924test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2925
2926test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2927
2928test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2929
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2931$as_echo_n "checking whether build environment is sane... " >&6; }
2932# Reject unsafe characters in $srcdir or the absolute working directory
2933# name.  Accept space and tab only in the latter.
2934am_lf='
2935'
2936case `pwd` in
2937  *[\\\"\#\$\&\'\`$am_lf]*)
2938    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2939esac
2940case $srcdir in
2941  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2942    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2943esac
2944
2945# Do 'set' in a subshell so we don't clobber the current shell's
2946# arguments.  Must try -L first in case configure is actually a
2947# symlink; some systems play weird games with the mod time of symlinks
2948# (eg FreeBSD returns the mod time of the symlink's containing
2949# directory).
2950if (
2951   am_has_slept=no
2952   for am_try in 1 2; do
2953     echo "timestamp, slept: $am_has_slept" > conftest.file
2954     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2955     if test "$*" = "X"; then
2956	# -L didn't work.
2957	set X `ls -t "$srcdir/configure" conftest.file`
2958     fi
2959     if test "$*" != "X $srcdir/configure conftest.file" \
2960	&& test "$*" != "X conftest.file $srcdir/configure"; then
2961
2962	# If neither matched, then we have a broken ls.  This can happen
2963	# if, for instance, CONFIG_SHELL is bash and it inherits a
2964	# broken ls alias from the environment.  This has actually
2965	# happened.  Such a system could not be considered "sane".
2966	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2967  alias in your environment" "$LINENO" 5
2968     fi
2969     if test "$2" = conftest.file || test $am_try -eq 2; then
2970       break
2971     fi
2972     # Just in case.
2973     sleep 1
2974     am_has_slept=yes
2975   done
2976   test "$2" = conftest.file
2977   )
2978then
2979   # Ok.
2980   :
2981else
2982   as_fn_error $? "newly created file is older than distributed files!
2983Check your system clock" "$LINENO" 5
2984fi
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2986$as_echo "yes" >&6; }
2987# If we didn't sleep, we still need to ensure time stamps of config.status and
2988# generated files are strictly newer.
2989am_sleep_pid=
2990if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2991  ( sleep 1 ) &
2992  am_sleep_pid=$!
2993fi
2994
2995rm -f conftest.file
2996
2997test "$program_prefix" != NONE &&
2998  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2999# Use a double $ so make ignores it.
3000test "$program_suffix" != NONE &&
3001  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3002# Double any \ or $.
3003# By default was `s,x,x', remove it if useless.
3004ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3005program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3006
3007# Expand $ac_aux_dir to an absolute path.
3008am_aux_dir=`cd "$ac_aux_dir" && pwd`
3009
3010if test x"${MISSING+set}" != xset; then
3011  case $am_aux_dir in
3012  *\ * | *\	*)
3013    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3014  *)
3015    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3016  esac
3017fi
3018# Use eval to expand $SHELL
3019if eval "$MISSING --is-lightweight"; then
3020  am_missing_run="$MISSING "
3021else
3022  am_missing_run=
3023  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3024$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3025fi
3026
3027if test x"${install_sh+set}" != xset; then
3028  case $am_aux_dir in
3029  *\ * | *\	*)
3030    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3031  *)
3032    install_sh="\${SHELL} $am_aux_dir/install-sh"
3033  esac
3034fi
3035
3036# Installed binaries are usually stripped using 'strip' when the user
3037# run "make install-strip".  However 'strip' might not be the right
3038# tool to use in cross-compilation environments, therefore Automake
3039# will honor the 'STRIP' environment variable to overrule this program.
3040if test "$cross_compiling" != no; then
3041  if test -n "$ac_tool_prefix"; then
3042  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3043set dummy ${ac_tool_prefix}strip; ac_word=$2
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045$as_echo_n "checking for $ac_word... " >&6; }
3046if ${ac_cv_prog_STRIP+:} false; then :
3047  $as_echo_n "(cached) " >&6
3048else
3049  if test -n "$STRIP"; then
3050  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3051else
3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055  IFS=$as_save_IFS
3056  test -z "$as_dir" && as_dir=.
3057    for ac_exec_ext in '' $ac_executable_extensions; do
3058  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061    break 2
3062  fi
3063done
3064  done
3065IFS=$as_save_IFS
3066
3067fi
3068fi
3069STRIP=$ac_cv_prog_STRIP
3070if test -n "$STRIP"; then
3071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3072$as_echo "$STRIP" >&6; }
3073else
3074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075$as_echo "no" >&6; }
3076fi
3077
3078
3079fi
3080if test -z "$ac_cv_prog_STRIP"; then
3081  ac_ct_STRIP=$STRIP
3082  # Extract the first word of "strip", so it can be a program name with args.
3083set dummy strip; ac_word=$2
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085$as_echo_n "checking for $ac_word... " >&6; }
3086if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3087  $as_echo_n "(cached) " >&6
3088else
3089  if test -n "$ac_ct_STRIP"; then
3090  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3091else
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095  IFS=$as_save_IFS
3096  test -z "$as_dir" && as_dir=.
3097    for ac_exec_ext in '' $ac_executable_extensions; do
3098  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099    ac_cv_prog_ac_ct_STRIP="strip"
3100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101    break 2
3102  fi
3103done
3104  done
3105IFS=$as_save_IFS
3106
3107fi
3108fi
3109ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3110if test -n "$ac_ct_STRIP"; then
3111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3112$as_echo "$ac_ct_STRIP" >&6; }
3113else
3114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115$as_echo "no" >&6; }
3116fi
3117
3118  if test "x$ac_ct_STRIP" = x; then
3119    STRIP=":"
3120  else
3121    case $cross_compiling:$ac_tool_warned in
3122yes:)
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3125ac_tool_warned=yes ;;
3126esac
3127    STRIP=$ac_ct_STRIP
3128  fi
3129else
3130  STRIP="$ac_cv_prog_STRIP"
3131fi
3132
3133fi
3134INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3135
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3137$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3138if test -z "$MKDIR_P"; then
3139  if ${ac_cv_path_mkdir+:} false; then :
3140  $as_echo_n "(cached) " >&6
3141else
3142  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3144do
3145  IFS=$as_save_IFS
3146  test -z "$as_dir" && as_dir=.
3147    for ac_prog in mkdir gmkdir; do
3148	 for ac_exec_ext in '' $ac_executable_extensions; do
3149	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3150	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3151	     'mkdir (GNU coreutils) '* | \
3152	     'mkdir (coreutils) '* | \
3153	     'mkdir (fileutils) '4.1*)
3154	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3155	       break 3;;
3156	   esac
3157	 done
3158       done
3159  done
3160IFS=$as_save_IFS
3161
3162fi
3163
3164  test -d ./--version && rmdir ./--version
3165  if test "${ac_cv_path_mkdir+set}" = set; then
3166    MKDIR_P="$ac_cv_path_mkdir -p"
3167  else
3168    # As a last resort, use the slow shell script.  Don't cache a
3169    # value for MKDIR_P within a source directory, because that will
3170    # break other packages using the cache if that directory is
3171    # removed, or if the value is a relative name.
3172    MKDIR_P="$ac_install_sh -d"
3173  fi
3174fi
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3176$as_echo "$MKDIR_P" >&6; }
3177
3178
3179for ac_prog in gawk mawk nawk awk
3180do
3181  # Extract the first word of "$ac_prog", so it can be a program name with args.
3182set dummy $ac_prog; ac_word=$2
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184$as_echo_n "checking for $ac_word... " >&6; }
3185if ${ac_cv_prog_AWK+:} false; then :
3186  $as_echo_n "(cached) " >&6
3187else
3188  if test -n "$AWK"; then
3189  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3190else
3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192for as_dir in $PATH
3193do
3194  IFS=$as_save_IFS
3195  test -z "$as_dir" && as_dir=.
3196    for ac_exec_ext in '' $ac_executable_extensions; do
3197  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198    ac_cv_prog_AWK="$ac_prog"
3199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200    break 2
3201  fi
3202done
3203  done
3204IFS=$as_save_IFS
3205
3206fi
3207fi
3208AWK=$ac_cv_prog_AWK
3209if test -n "$AWK"; then
3210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3211$as_echo "$AWK" >&6; }
3212else
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214$as_echo "no" >&6; }
3215fi
3216
3217
3218  test -n "$AWK" && break
3219done
3220
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3222$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3223set x ${MAKE-make}
3224ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3225if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3226  $as_echo_n "(cached) " >&6
3227else
3228  cat >conftest.make <<\_ACEOF
3229SHELL = /bin/sh
3230all:
3231	@echo '@@@%%%=$(MAKE)=@@@%%%'
3232_ACEOF
3233# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3234case `${MAKE-make} -f conftest.make 2>/dev/null` in
3235  *@@@%%%=?*=@@@%%%*)
3236    eval ac_cv_prog_make_${ac_make}_set=yes;;
3237  *)
3238    eval ac_cv_prog_make_${ac_make}_set=no;;
3239esac
3240rm -f conftest.make
3241fi
3242if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3244$as_echo "yes" >&6; }
3245  SET_MAKE=
3246else
3247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248$as_echo "no" >&6; }
3249  SET_MAKE="MAKE=${MAKE-make}"
3250fi
3251
3252rm -rf .tst 2>/dev/null
3253mkdir .tst 2>/dev/null
3254if test -d .tst; then
3255  am__leading_dot=.
3256else
3257  am__leading_dot=_
3258fi
3259rmdir .tst 2>/dev/null
3260
3261# Check whether --enable-silent-rules was given.
3262if test "${enable_silent_rules+set}" = set; then :
3263  enableval=$enable_silent_rules;
3264fi
3265
3266case $enable_silent_rules in # (((
3267  yes) AM_DEFAULT_VERBOSITY=0;;
3268   no) AM_DEFAULT_VERBOSITY=1;;
3269    *) AM_DEFAULT_VERBOSITY=1;;
3270esac
3271am_make=${MAKE-make}
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3273$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3274if ${am_cv_make_support_nested_variables+:} false; then :
3275  $as_echo_n "(cached) " >&6
3276else
3277  if $as_echo 'TRUE=$(BAR$(V))
3278BAR0=false
3279BAR1=true
3280V=1
3281am__doit:
3282	@$(TRUE)
3283.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3284  am_cv_make_support_nested_variables=yes
3285else
3286  am_cv_make_support_nested_variables=no
3287fi
3288fi
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3290$as_echo "$am_cv_make_support_nested_variables" >&6; }
3291if test $am_cv_make_support_nested_variables = yes; then
3292    AM_V='$(V)'
3293  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3294else
3295  AM_V=$AM_DEFAULT_VERBOSITY
3296  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3297fi
3298AM_BACKSLASH='\'
3299
3300if test "`cd $srcdir && pwd`" != "`pwd`"; then
3301  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3302  # is not polluted with repeated "-I."
3303  am__isrc=' -I$(srcdir)'
3304  # test to see if srcdir already configured
3305  if test -f $srcdir/config.status; then
3306    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3307  fi
3308fi
3309
3310# test whether we have cygpath
3311if test -z "$CYGPATH_W"; then
3312  if (cygpath --version) >/dev/null 2>/dev/null; then
3313    CYGPATH_W='cygpath -w'
3314  else
3315    CYGPATH_W=echo
3316  fi
3317fi
3318
3319
3320# Define the identity of the package.
3321 PACKAGE='cfengine'
3322 VERSION='3.19.0'
3323
3324
3325cat >>confdefs.h <<_ACEOF
3326#define PACKAGE "$PACKAGE"
3327_ACEOF
3328
3329
3330cat >>confdefs.h <<_ACEOF
3331#define VERSION "$VERSION"
3332_ACEOF
3333
3334# Some tools Automake needs.
3335
3336ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3337
3338
3339AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3340
3341
3342AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3343
3344
3345AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3346
3347
3348MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3349
3350# For better backward compatibility.  To be removed once Automake 1.9.x
3351# dies out for good.  For more background, see:
3352# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3353# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3354mkdir_p='$(MKDIR_P)'
3355
3356# We need awk for the "check" target (and possibly the TAP driver).  The
3357# system "awk" is bad on some platforms.
3358# Always define AMTAR for backward compatibility.  Yes, it's still used
3359# in the wild :-(  We should find a proper way to deprecate it ...
3360AMTAR='$${TAR-tar}'
3361
3362
3363# We'll loop over all known methods to create a tar archive until one works.
3364_am_tools='gnutar plaintar pax cpio none'
3365
3366# The POSIX 1988 'ustar' format is defined with fixed-size fields.
3367      # There is notably a 21 bits limit for the UID and the GID.  In fact,
3368      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3369      # and bug#13588).
3370      am_max_uid=2097151 # 2^21 - 1
3371      am_max_gid=$am_max_uid
3372      # The $UID and $GID variables are not portable, so we need to resort
3373      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3374      # below are definitely unexpected, so allow the users to see them
3375      # (that is, avoid stderr redirection).
3376      am_uid=`id -u || echo unknown`
3377      am_gid=`id -g || echo unknown`
3378      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3379$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3380      if test $am_uid -le $am_max_uid; then
3381         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3382$as_echo "yes" >&6; }
3383      else
3384         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385$as_echo "no" >&6; }
3386         _am_tools=none
3387      fi
3388      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3389$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3390      if test $am_gid -le $am_max_gid; then
3391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3392$as_echo "yes" >&6; }
3393      else
3394        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395$as_echo "no" >&6; }
3396        _am_tools=none
3397      fi
3398
3399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3400$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3401
3402  # Go ahead even if we have the value already cached.  We do so because we
3403  # need to set the values for the 'am__tar' and 'am__untar' variables.
3404  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3405
3406  for _am_tool in $_am_tools; do
3407    case $_am_tool in
3408    gnutar)
3409      for _am_tar in tar gnutar gtar; do
3410        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3411   ($_am_tar --version) >&5 2>&5
3412   ac_status=$?
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); } && break
3415      done
3416
3417      # Work around CFEngine redmine #6925 by using --hard-dereference.
3418      { echo "$as_me:$LINENO: $_am_tar --hard-dereference  2>&1 | grep 'unrecognized option'" >&5
3419   ($_am_tar --hard-dereference  2>&1 | grep 'unrecognized option') >&5 2>&5
3420   ac_status=$?
3421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422   (exit $ac_status); }
3423      # Check if --hard-dereference is supported by this version of GNU Tar
3424      if test "$ac_status" -eq 0; then
3425        _am_gnutar_hard_dereference=false
3426        am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3427        am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3428      else
3429        _am_gnutar_hard_dereference=true
3430        am__tar="$_am_tar --format=ustar --hard-dereference -chf - "'"$$tardir"'
3431        am__tar_="$_am_tar --format=ustar --hard-dereference -chf - "'"$tardir"'
3432      fi
3433
3434      am__untar="$_am_tar -xf -"
3435      ;;
3436    plaintar)
3437      # Must skip GNU tar: if it does not support --format= it doesn't create
3438      # ustar tarball either.
3439      (tar --version) >/dev/null 2>&1 && continue
3440      am__tar='tar chf - "$$tardir"'
3441      am__tar_='tar chf - "$tardir"'
3442      am__untar='tar xf -'
3443      ;;
3444    pax)
3445      am__tar='pax -L -x ustar -w "$$tardir"'
3446      am__tar_='pax -L -x ustar -w "$tardir"'
3447      am__untar='pax -r'
3448      ;;
3449    cpio)
3450      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3451      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3452      am__untar='cpio -i -H ustar -d'
3453      ;;
3454    none)
3455      am__tar=false
3456      am__tar_=false
3457      am__untar=false
3458      ;;
3459    esac
3460
3461    # If the value was cached, stop now.  We just wanted to have am__tar
3462    # and am__untar set.
3463    test -n "${am_cv_prog_tar_ustar}" && break
3464
3465    # tar/untar a dummy directory, and stop if the command works.
3466    rm -rf conftest.dir
3467    mkdir conftest.dir
3468    echo GrepMe > conftest.dir/file
3469    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3470   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3471   ac_status=$?
3472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); }
3474    rm -rf conftest.dir
3475    if test -s conftest.tar; then
3476      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3477   ($am__untar <conftest.tar) >&5 2>&5
3478   ac_status=$?
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); }
3481      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3482   (cat conftest.dir/file) >&5 2>&5
3483   ac_status=$?
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); }
3486      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3487    fi
3488  done
3489  rm -rf conftest.dir
3490
3491  if ${am_cv_prog_tar_ustar+:} false; then :
3492  $as_echo_n "(cached) " >&6
3493else
3494  am_cv_prog_tar_ustar=$_am_tool
3495fi
3496
3497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3498$as_echo "$am_cv_prog_tar_ustar" >&6; }
3499
3500  if test $_am_tool = gnutar; then
3501    # We've checked already, so we're just printing here
3502    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNU tar supports --hard-dereference" >&5
3503$as_echo_n "checking if GNU tar supports --hard-dereference... " >&6; }
3504    if test x$_am_gnutar_hard_dereference = xtrue; then
3505      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3506$as_echo "yes" >&6; }
3507    else
3508      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509$as_echo "no" >&6; }
3510    fi
3511  fi
3512
3513
3514
3515
3516
3517
3518# POSIX will say in a future version that running "rm -f" with no argument
3519# is OK; and we want to be able to make that assumption in our Makefile
3520# recipes.  So use an aggressive probe to check that the usage we want is
3521# actually supported "in the wild" to an acceptable degree.
3522# See automake bug#10828.
3523# To make any issue more visible, cause the running configure to be aborted
3524# by default if the 'rm' program in use doesn't match our expectations; the
3525# user can still override this though.
3526if rm -f && rm -fr && rm -rf; then : OK; else
3527  cat >&2 <<'END'
3528Oops!
3529
3530Your 'rm' program seems unable to run without file operands specified
3531on the command line, even when the '-f' option is present.  This is contrary
3532to the behaviour of most rm programs out there, and not conforming with
3533the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3534
3535Please tell bug-automake@gnu.org about your system, including the value
3536of your $PATH and any error possibly output before this message.  This
3537can help us improve future automake versions.
3538
3539END
3540  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3541    echo 'Configuration will proceed anyway, since you have set the' >&2
3542    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3543    echo >&2
3544  else
3545    cat >&2 <<'END'
3546Aborting the configuration process, to ensure you take notice of the issue.
3547
3548You can download and install GNU coreutils to get an 'rm' implementation
3549that behaves properly: <http://www.gnu.org/software/coreutils/>.
3550
3551If you want to complete the configuration process using your problematic
3552'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3553to "yes", and re-run configure.
3554
3555END
3556    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3557  fi
3558fi
3559
3560
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3562$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3563    # Check whether --enable-maintainer-mode was given.
3564if test "${enable_maintainer_mode+set}" = set; then :
3565  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3566else
3567  USE_MAINTAINER_MODE=yes
3568fi
3569
3570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3571$as_echo "$USE_MAINTAINER_MODE" >&6; }
3572   if test $USE_MAINTAINER_MODE = yes; then
3573  MAINTAINER_MODE_TRUE=
3574  MAINTAINER_MODE_FALSE='#'
3575else
3576  MAINTAINER_MODE_TRUE='#'
3577  MAINTAINER_MODE_FALSE=
3578fi
3579
3580  MAINT=$MAINTAINER_MODE_TRUE
3581
3582
3583
3584
3585
3586cfengine_version=3.19.0
3587
3588
3589
3590
3591
3592if test -n "$RELEASE"; then :
3593
3594cat >>confdefs.h <<_ACEOF
3595#define RELEASE "$RELEASE"
3596_ACEOF
3597
3598else
3599
3600$as_echo "#define RELEASE \"1\"" >>confdefs.h
3601
3602fi
3603
3604
3605$as_echo "#define BUILD_YEAR 2021" >>confdefs.h
3606
3607
3608
3609cat >>confdefs.h <<_ACEOF
3610#define ABS_TOP_SRCDIR "`cd -- "$srcdir"; pwd`"
3611_ACEOF
3612
3613
3614# Check whether --enable-silent-rules was given.
3615if test "${enable_silent_rules+set}" = set; then :
3616  enableval=$enable_silent_rules;
3617fi
3618
3619case $enable_silent_rules in # (((
3620  yes) AM_DEFAULT_VERBOSITY=0;;
3621   no) AM_DEFAULT_VERBOSITY=1;;
3622    *) AM_DEFAULT_VERBOSITY=0;;
3623esac
3624am_make=${MAKE-make}
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3626$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3627if ${am_cv_make_support_nested_variables+:} false; then :
3628  $as_echo_n "(cached) " >&6
3629else
3630  if $as_echo 'TRUE=$(BAR$(V))
3631BAR0=false
3632BAR1=true
3633V=1
3634am__doit:
3635	@$(TRUE)
3636.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3637  am_cv_make_support_nested_variables=yes
3638else
3639  am_cv_make_support_nested_variables=no
3640fi
3641fi
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3643$as_echo "$am_cv_make_support_nested_variables" >&6; }
3644if test $am_cv_make_support_nested_variables = yes; then
3645    AM_V='$(V)'
3646  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3647else
3648  AM_V=$AM_DEFAULT_VERBOSITY
3649  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3650fi
3651AM_BACKSLASH='\'
3652
3653
3654ac_config_headers="$ac_config_headers config.h"
3655
3656
3657
3658
3659
3660
3661
3662
3663ENV_CFLAGS="$CFLAGS"
3664
3665
3666ac_ext=c
3667ac_cpp='$CPP $CPPFLAGS'
3668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670ac_compiler_gnu=$ac_cv_c_compiler_gnu
3671if test -n "$ac_tool_prefix"; then
3672  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3673set dummy ${ac_tool_prefix}gcc; ac_word=$2
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3675$as_echo_n "checking for $ac_word... " >&6; }
3676if ${ac_cv_prog_CC+:} false; then :
3677  $as_echo_n "(cached) " >&6
3678else
3679  if test -n "$CC"; then
3680  ac_cv_prog_CC="$CC" # Let the user override the test.
3681else
3682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683for as_dir in $PATH
3684do
3685  IFS=$as_save_IFS
3686  test -z "$as_dir" && as_dir=.
3687    for ac_exec_ext in '' $ac_executable_extensions; do
3688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3689    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3691    break 2
3692  fi
3693done
3694  done
3695IFS=$as_save_IFS
3696
3697fi
3698fi
3699CC=$ac_cv_prog_CC
3700if test -n "$CC"; then
3701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3702$as_echo "$CC" >&6; }
3703else
3704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705$as_echo "no" >&6; }
3706fi
3707
3708
3709fi
3710if test -z "$ac_cv_prog_CC"; then
3711  ac_ct_CC=$CC
3712  # Extract the first word of "gcc", so it can be a program name with args.
3713set dummy gcc; ac_word=$2
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715$as_echo_n "checking for $ac_word... " >&6; }
3716if ${ac_cv_prog_ac_ct_CC+:} false; then :
3717  $as_echo_n "(cached) " >&6
3718else
3719  if test -n "$ac_ct_CC"; then
3720  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3721else
3722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723for as_dir in $PATH
3724do
3725  IFS=$as_save_IFS
3726  test -z "$as_dir" && as_dir=.
3727    for ac_exec_ext in '' $ac_executable_extensions; do
3728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729    ac_cv_prog_ac_ct_CC="gcc"
3730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731    break 2
3732  fi
3733done
3734  done
3735IFS=$as_save_IFS
3736
3737fi
3738fi
3739ac_ct_CC=$ac_cv_prog_ac_ct_CC
3740if test -n "$ac_ct_CC"; then
3741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3742$as_echo "$ac_ct_CC" >&6; }
3743else
3744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745$as_echo "no" >&6; }
3746fi
3747
3748  if test "x$ac_ct_CC" = x; then
3749    CC=""
3750  else
3751    case $cross_compiling:$ac_tool_warned in
3752yes:)
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3755ac_tool_warned=yes ;;
3756esac
3757    CC=$ac_ct_CC
3758  fi
3759else
3760  CC="$ac_cv_prog_CC"
3761fi
3762
3763if test -z "$CC"; then
3764          if test -n "$ac_tool_prefix"; then
3765    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3766set dummy ${ac_tool_prefix}cc; ac_word=$2
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3768$as_echo_n "checking for $ac_word... " >&6; }
3769if ${ac_cv_prog_CC+:} false; then :
3770  $as_echo_n "(cached) " >&6
3771else
3772  if test -n "$CC"; then
3773  ac_cv_prog_CC="$CC" # Let the user override the test.
3774else
3775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776for as_dir in $PATH
3777do
3778  IFS=$as_save_IFS
3779  test -z "$as_dir" && as_dir=.
3780    for ac_exec_ext in '' $ac_executable_extensions; do
3781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3782    ac_cv_prog_CC="${ac_tool_prefix}cc"
3783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3784    break 2
3785  fi
3786done
3787  done
3788IFS=$as_save_IFS
3789
3790fi
3791fi
3792CC=$ac_cv_prog_CC
3793if test -n "$CC"; then
3794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3795$as_echo "$CC" >&6; }
3796else
3797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798$as_echo "no" >&6; }
3799fi
3800
3801
3802  fi
3803fi
3804if test -z "$CC"; then
3805  # Extract the first word of "cc", so it can be a program name with args.
3806set dummy cc; ac_word=$2
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3808$as_echo_n "checking for $ac_word... " >&6; }
3809if ${ac_cv_prog_CC+:} false; then :
3810  $as_echo_n "(cached) " >&6
3811else
3812  if test -n "$CC"; then
3813  ac_cv_prog_CC="$CC" # Let the user override the test.
3814else
3815  ac_prog_rejected=no
3816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817for as_dir in $PATH
3818do
3819  IFS=$as_save_IFS
3820  test -z "$as_dir" && as_dir=.
3821    for ac_exec_ext in '' $ac_executable_extensions; do
3822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3823    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3824       ac_prog_rejected=yes
3825       continue
3826     fi
3827    ac_cv_prog_CC="cc"
3828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829    break 2
3830  fi
3831done
3832  done
3833IFS=$as_save_IFS
3834
3835if test $ac_prog_rejected = yes; then
3836  # We found a bogon in the path, so make sure we never use it.
3837  set dummy $ac_cv_prog_CC
3838  shift
3839  if test $# != 0; then
3840    # We chose a different compiler from the bogus one.
3841    # However, it has the same basename, so the bogon will be chosen
3842    # first if we set CC to just the basename; use the full file name.
3843    shift
3844    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3845  fi
3846fi
3847fi
3848fi
3849CC=$ac_cv_prog_CC
3850if test -n "$CC"; then
3851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3852$as_echo "$CC" >&6; }
3853else
3854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855$as_echo "no" >&6; }
3856fi
3857
3858
3859fi
3860if test -z "$CC"; then
3861  if test -n "$ac_tool_prefix"; then
3862  for ac_prog in cl.exe
3863  do
3864    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3865set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867$as_echo_n "checking for $ac_word... " >&6; }
3868if ${ac_cv_prog_CC+:} false; then :
3869  $as_echo_n "(cached) " >&6
3870else
3871  if test -n "$CC"; then
3872  ac_cv_prog_CC="$CC" # Let the user override the test.
3873else
3874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875for as_dir in $PATH
3876do
3877  IFS=$as_save_IFS
3878  test -z "$as_dir" && as_dir=.
3879    for ac_exec_ext in '' $ac_executable_extensions; do
3880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3881    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3883    break 2
3884  fi
3885done
3886  done
3887IFS=$as_save_IFS
3888
3889fi
3890fi
3891CC=$ac_cv_prog_CC
3892if test -n "$CC"; then
3893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3894$as_echo "$CC" >&6; }
3895else
3896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897$as_echo "no" >&6; }
3898fi
3899
3900
3901    test -n "$CC" && break
3902  done
3903fi
3904if test -z "$CC"; then
3905  ac_ct_CC=$CC
3906  for ac_prog in cl.exe
3907do
3908  # Extract the first word of "$ac_prog", so it can be a program name with args.
3909set dummy $ac_prog; ac_word=$2
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911$as_echo_n "checking for $ac_word... " >&6; }
3912if ${ac_cv_prog_ac_ct_CC+:} false; then :
3913  $as_echo_n "(cached) " >&6
3914else
3915  if test -n "$ac_ct_CC"; then
3916  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3917else
3918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919for as_dir in $PATH
3920do
3921  IFS=$as_save_IFS
3922  test -z "$as_dir" && as_dir=.
3923    for ac_exec_ext in '' $ac_executable_extensions; do
3924  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925    ac_cv_prog_ac_ct_CC="$ac_prog"
3926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927    break 2
3928  fi
3929done
3930  done
3931IFS=$as_save_IFS
3932
3933fi
3934fi
3935ac_ct_CC=$ac_cv_prog_ac_ct_CC
3936if test -n "$ac_ct_CC"; then
3937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3938$as_echo "$ac_ct_CC" >&6; }
3939else
3940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941$as_echo "no" >&6; }
3942fi
3943
3944
3945  test -n "$ac_ct_CC" && break
3946done
3947
3948  if test "x$ac_ct_CC" = x; then
3949    CC=""
3950  else
3951    case $cross_compiling:$ac_tool_warned in
3952yes:)
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3955ac_tool_warned=yes ;;
3956esac
3957    CC=$ac_ct_CC
3958  fi
3959fi
3960
3961fi
3962
3963
3964test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3966as_fn_error $? "no acceptable C compiler found in \$PATH
3967See \`config.log' for more details" "$LINENO" 5; }
3968
3969# Provide some information about the compiler.
3970$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3971set X $ac_compile
3972ac_compiler=$2
3973for ac_option in --version -v -V -qversion; do
3974  { { ac_try="$ac_compiler $ac_option >&5"
3975case "(($ac_try" in
3976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977  *) ac_try_echo=$ac_try;;
3978esac
3979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980$as_echo "$ac_try_echo"; } >&5
3981  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3982  ac_status=$?
3983  if test -s conftest.err; then
3984    sed '10a\
3985... rest of stderr output deleted ...
3986         10q' conftest.err >conftest.er1
3987    cat conftest.er1 >&5
3988  fi
3989  rm -f conftest.er1 conftest.err
3990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3991  test $ac_status = 0; }
3992done
3993
3994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995/* end confdefs.h.  */
3996
3997int
3998main ()
3999{
4000
4001  ;
4002  return 0;
4003}
4004_ACEOF
4005ac_clean_files_save=$ac_clean_files
4006ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4007# Try to create an executable without -o first, disregard a.out.
4008# It will help us diagnose broken compilers, and finding out an intuition
4009# of exeext.
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4011$as_echo_n "checking whether the C compiler works... " >&6; }
4012ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4013
4014# The possible output files:
4015ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4016
4017ac_rmfiles=
4018for ac_file in $ac_files
4019do
4020  case $ac_file in
4021    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4022    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4023  esac
4024done
4025rm -f $ac_rmfiles
4026
4027if { { ac_try="$ac_link_default"
4028case "(($ac_try" in
4029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030  *) ac_try_echo=$ac_try;;
4031esac
4032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033$as_echo "$ac_try_echo"; } >&5
4034  (eval "$ac_link_default") 2>&5
4035  ac_status=$?
4036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037  test $ac_status = 0; }; then :
4038  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4039# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4040# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4041# so that the user can short-circuit this test for compilers unknown to
4042# Autoconf.
4043for ac_file in $ac_files ''
4044do
4045  test -f "$ac_file" || continue
4046  case $ac_file in
4047    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4048	;;
4049    [ab].out )
4050	# We found the default executable, but exeext='' is most
4051	# certainly right.
4052	break;;
4053    *.* )
4054	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4055	then :; else
4056	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4057	fi
4058	# We set ac_cv_exeext here because the later test for it is not
4059	# safe: cross compilers may not add the suffix if given an `-o'
4060	# argument, so we may need to know it at that point already.
4061	# Even if this section looks crufty: it has the advantage of
4062	# actually working.
4063	break;;
4064    * )
4065	break;;
4066  esac
4067done
4068test "$ac_cv_exeext" = no && ac_cv_exeext=
4069
4070else
4071  ac_file=''
4072fi
4073if test -z "$ac_file"; then :
4074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075$as_echo "no" >&6; }
4076$as_echo "$as_me: failed program was:" >&5
4077sed 's/^/| /' conftest.$ac_ext >&5
4078
4079{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4081as_fn_error 77 "C compiler cannot create executables
4082See \`config.log' for more details" "$LINENO" 5; }
4083else
4084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4085$as_echo "yes" >&6; }
4086fi
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4088$as_echo_n "checking for C compiler default output file name... " >&6; }
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4090$as_echo "$ac_file" >&6; }
4091ac_exeext=$ac_cv_exeext
4092
4093rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4094ac_clean_files=$ac_clean_files_save
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4096$as_echo_n "checking for suffix of executables... " >&6; }
4097if { { ac_try="$ac_link"
4098case "(($ac_try" in
4099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100  *) ac_try_echo=$ac_try;;
4101esac
4102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103$as_echo "$ac_try_echo"; } >&5
4104  (eval "$ac_link") 2>&5
4105  ac_status=$?
4106  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107  test $ac_status = 0; }; then :
4108  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4109# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4110# work properly (i.e., refer to `conftest.exe'), while it won't with
4111# `rm'.
4112for ac_file in conftest.exe conftest conftest.*; do
4113  test -f "$ac_file" || continue
4114  case $ac_file in
4115    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4116    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4117	  break;;
4118    * ) break;;
4119  esac
4120done
4121else
4122  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4124as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4125See \`config.log' for more details" "$LINENO" 5; }
4126fi
4127rm -f conftest conftest$ac_cv_exeext
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4129$as_echo "$ac_cv_exeext" >&6; }
4130
4131rm -f conftest.$ac_ext
4132EXEEXT=$ac_cv_exeext
4133ac_exeext=$EXEEXT
4134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135/* end confdefs.h.  */
4136#include <stdio.h>
4137int
4138main ()
4139{
4140FILE *f = fopen ("conftest.out", "w");
4141 return ferror (f) || fclose (f) != 0;
4142
4143  ;
4144  return 0;
4145}
4146_ACEOF
4147ac_clean_files="$ac_clean_files conftest.out"
4148# Check that the compiler produces executables we can run.  If not, either
4149# the compiler is broken, or we cross compile.
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4151$as_echo_n "checking whether we are cross compiling... " >&6; }
4152if test "$cross_compiling" != yes; then
4153  { { ac_try="$ac_link"
4154case "(($ac_try" in
4155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156  *) ac_try_echo=$ac_try;;
4157esac
4158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4159$as_echo "$ac_try_echo"; } >&5
4160  (eval "$ac_link") 2>&5
4161  ac_status=$?
4162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4163  test $ac_status = 0; }
4164  if { ac_try='./conftest$ac_cv_exeext'
4165  { { case "(($ac_try" in
4166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167  *) ac_try_echo=$ac_try;;
4168esac
4169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4170$as_echo "$ac_try_echo"; } >&5
4171  (eval "$ac_try") 2>&5
4172  ac_status=$?
4173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4174  test $ac_status = 0; }; }; then
4175    cross_compiling=no
4176  else
4177    if test "$cross_compiling" = maybe; then
4178	cross_compiling=yes
4179    else
4180	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4182as_fn_error $? "cannot run C compiled programs.
4183If you meant to cross compile, use \`--host'.
4184See \`config.log' for more details" "$LINENO" 5; }
4185    fi
4186  fi
4187fi
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4189$as_echo "$cross_compiling" >&6; }
4190
4191rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4192ac_clean_files=$ac_clean_files_save
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4194$as_echo_n "checking for suffix of object files... " >&6; }
4195if ${ac_cv_objext+:} false; then :
4196  $as_echo_n "(cached) " >&6
4197else
4198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199/* end confdefs.h.  */
4200
4201int
4202main ()
4203{
4204
4205  ;
4206  return 0;
4207}
4208_ACEOF
4209rm -f conftest.o conftest.obj
4210if { { ac_try="$ac_compile"
4211case "(($ac_try" in
4212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213  *) ac_try_echo=$ac_try;;
4214esac
4215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4216$as_echo "$ac_try_echo"; } >&5
4217  (eval "$ac_compile") 2>&5
4218  ac_status=$?
4219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4220  test $ac_status = 0; }; then :
4221  for ac_file in conftest.o conftest.obj conftest.*; do
4222  test -f "$ac_file" || continue;
4223  case $ac_file in
4224    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4225    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4226       break;;
4227  esac
4228done
4229else
4230  $as_echo "$as_me: failed program was:" >&5
4231sed 's/^/| /' conftest.$ac_ext >&5
4232
4233{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4235as_fn_error $? "cannot compute suffix of object files: cannot compile
4236See \`config.log' for more details" "$LINENO" 5; }
4237fi
4238rm -f conftest.$ac_cv_objext conftest.$ac_ext
4239fi
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4241$as_echo "$ac_cv_objext" >&6; }
4242OBJEXT=$ac_cv_objext
4243ac_objext=$OBJEXT
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4245$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4246if ${ac_cv_c_compiler_gnu+:} false; then :
4247  $as_echo_n "(cached) " >&6
4248else
4249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250/* end confdefs.h.  */
4251
4252int
4253main ()
4254{
4255#ifndef __GNUC__
4256       choke me
4257#endif
4258
4259  ;
4260  return 0;
4261}
4262_ACEOF
4263if ac_fn_c_try_compile "$LINENO"; then :
4264  ac_compiler_gnu=yes
4265else
4266  ac_compiler_gnu=no
4267fi
4268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269ac_cv_c_compiler_gnu=$ac_compiler_gnu
4270
4271fi
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4273$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4274if test $ac_compiler_gnu = yes; then
4275  GCC=yes
4276else
4277  GCC=
4278fi
4279ac_test_CFLAGS=${CFLAGS+set}
4280ac_save_CFLAGS=$CFLAGS
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4282$as_echo_n "checking whether $CC accepts -g... " >&6; }
4283if ${ac_cv_prog_cc_g+:} false; then :
4284  $as_echo_n "(cached) " >&6
4285else
4286  ac_save_c_werror_flag=$ac_c_werror_flag
4287   ac_c_werror_flag=yes
4288   ac_cv_prog_cc_g=no
4289   CFLAGS="-g"
4290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291/* end confdefs.h.  */
4292
4293int
4294main ()
4295{
4296
4297  ;
4298  return 0;
4299}
4300_ACEOF
4301if ac_fn_c_try_compile "$LINENO"; then :
4302  ac_cv_prog_cc_g=yes
4303else
4304  CFLAGS=""
4305      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306/* end confdefs.h.  */
4307
4308int
4309main ()
4310{
4311
4312  ;
4313  return 0;
4314}
4315_ACEOF
4316if ac_fn_c_try_compile "$LINENO"; then :
4317
4318else
4319  ac_c_werror_flag=$ac_save_c_werror_flag
4320	 CFLAGS="-g"
4321	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322/* end confdefs.h.  */
4323
4324int
4325main ()
4326{
4327
4328  ;
4329  return 0;
4330}
4331_ACEOF
4332if ac_fn_c_try_compile "$LINENO"; then :
4333  ac_cv_prog_cc_g=yes
4334fi
4335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336fi
4337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338fi
4339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340   ac_c_werror_flag=$ac_save_c_werror_flag
4341fi
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4343$as_echo "$ac_cv_prog_cc_g" >&6; }
4344if test "$ac_test_CFLAGS" = set; then
4345  CFLAGS=$ac_save_CFLAGS
4346elif test $ac_cv_prog_cc_g = yes; then
4347  if test "$GCC" = yes; then
4348    CFLAGS="-g -O2"
4349  else
4350    CFLAGS="-g"
4351  fi
4352else
4353  if test "$GCC" = yes; then
4354    CFLAGS="-O2"
4355  else
4356    CFLAGS=
4357  fi
4358fi
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4360$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4361if ${ac_cv_prog_cc_c89+:} false; then :
4362  $as_echo_n "(cached) " >&6
4363else
4364  ac_cv_prog_cc_c89=no
4365ac_save_CC=$CC
4366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367/* end confdefs.h.  */
4368#include <stdarg.h>
4369#include <stdio.h>
4370struct stat;
4371/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4372struct buf { int x; };
4373FILE * (*rcsopen) (struct buf *, struct stat *, int);
4374static char *e (p, i)
4375     char **p;
4376     int i;
4377{
4378  return p[i];
4379}
4380static char *f (char * (*g) (char **, int), char **p, ...)
4381{
4382  char *s;
4383  va_list v;
4384  va_start (v,p);
4385  s = g (p, va_arg (v,int));
4386  va_end (v);
4387  return s;
4388}
4389
4390/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4391   function prototypes and stuff, but not '\xHH' hex character constants.
4392   These don't provoke an error unfortunately, instead are silently treated
4393   as 'x'.  The following induces an error, until -std is added to get
4394   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4395   array size at least.  It's necessary to write '\x00'==0 to get something
4396   that's true only with -std.  */
4397int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4398
4399/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4400   inside strings and character constants.  */
4401#define FOO(x) 'x'
4402int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4403
4404int test (int i, double x);
4405struct s1 {int (*f) (int a);};
4406struct s2 {int (*f) (double a);};
4407int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4408int argc;
4409char **argv;
4410int
4411main ()
4412{
4413return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4414  ;
4415  return 0;
4416}
4417_ACEOF
4418for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4419	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4420do
4421  CC="$ac_save_CC $ac_arg"
4422  if ac_fn_c_try_compile "$LINENO"; then :
4423  ac_cv_prog_cc_c89=$ac_arg
4424fi
4425rm -f core conftest.err conftest.$ac_objext
4426  test "x$ac_cv_prog_cc_c89" != "xno" && break
4427done
4428rm -f conftest.$ac_ext
4429CC=$ac_save_CC
4430
4431fi
4432# AC_CACHE_VAL
4433case "x$ac_cv_prog_cc_c89" in
4434  x)
4435    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4436$as_echo "none needed" >&6; } ;;
4437  xno)
4438    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4439$as_echo "unsupported" >&6; } ;;
4440  *)
4441    CC="$CC $ac_cv_prog_cc_c89"
4442    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4443$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4444esac
4445if test "x$ac_cv_prog_cc_c89" != xno; then :
4446
4447fi
4448
4449ac_ext=c
4450ac_cpp='$CPP $CPPFLAGS'
4451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454
4455ac_ext=c
4456ac_cpp='$CPP $CPPFLAGS'
4457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4461$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4462if ${am_cv_prog_cc_c_o+:} false; then :
4463  $as_echo_n "(cached) " >&6
4464else
4465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466/* end confdefs.h.  */
4467
4468int
4469main ()
4470{
4471
4472  ;
4473  return 0;
4474}
4475_ACEOF
4476  # Make sure it works both with $CC and with simple cc.
4477  # Following AC_PROG_CC_C_O, we do the test twice because some
4478  # compilers refuse to overwrite an existing .o file with -o,
4479  # though they will create one.
4480  am_cv_prog_cc_c_o=yes
4481  for am_i in 1 2; do
4482    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4483   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4484   ac_status=$?
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); } \
4487         && test -f conftest2.$ac_objext; then
4488      : OK
4489    else
4490      am_cv_prog_cc_c_o=no
4491      break
4492    fi
4493  done
4494  rm -f core conftest*
4495  unset am_i
4496fi
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4498$as_echo "$am_cv_prog_cc_c_o" >&6; }
4499if test "$am_cv_prog_cc_c_o" != yes; then
4500   # Losing compiler, so override with the script.
4501   # FIXME: It is wrong to rewrite CC.
4502   # But if we don't then we get into trouble of one sort or another.
4503   # A longer-term fix would be to have automake use am__CC in this case,
4504   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4505   CC="$am_aux_dir/compile $CC"
4506fi
4507ac_ext=c
4508ac_cpp='$CPP $CPPFLAGS'
4509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511ac_compiler_gnu=$ac_cv_c_compiler_gnu
4512
4513DEPDIR="${am__leading_dot}deps"
4514
4515ac_config_commands="$ac_config_commands depfiles"
4516
4517
4518am_make=${MAKE-make}
4519cat > confinc << 'END'
4520am__doit:
4521	@echo this is the am__doit target
4522.PHONY: am__doit
4523END
4524# If we don't find an include directive, just comment out the code.
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4526$as_echo_n "checking for style of include used by $am_make... " >&6; }
4527am__include="#"
4528am__quote=
4529_am_result=none
4530# First try GNU make style include.
4531echo "include confinc" > confmf
4532# Ignore all kinds of additional output from 'make'.
4533case `$am_make -s -f confmf 2> /dev/null` in #(
4534*the\ am__doit\ target*)
4535  am__include=include
4536  am__quote=
4537  _am_result=GNU
4538  ;;
4539esac
4540# Now try BSD make style include.
4541if test "$am__include" = "#"; then
4542   echo '.include "confinc"' > confmf
4543   case `$am_make -s -f confmf 2> /dev/null` in #(
4544   *the\ am__doit\ target*)
4545     am__include=.include
4546     am__quote="\""
4547     _am_result=BSD
4548     ;;
4549   esac
4550fi
4551
4552
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4554$as_echo "$_am_result" >&6; }
4555rm -f confinc confmf
4556
4557# Check whether --enable-dependency-tracking was given.
4558if test "${enable_dependency_tracking+set}" = set; then :
4559  enableval=$enable_dependency_tracking;
4560fi
4561
4562if test "x$enable_dependency_tracking" != xno; then
4563  am_depcomp="$ac_aux_dir/depcomp"
4564  AMDEPBACKSLASH='\'
4565  am__nodep='_no'
4566fi
4567 if test "x$enable_dependency_tracking" != xno; then
4568  AMDEP_TRUE=
4569  AMDEP_FALSE='#'
4570else
4571  AMDEP_TRUE='#'
4572  AMDEP_FALSE=
4573fi
4574
4575
4576
4577depcc="$CC"   am_compiler_list=
4578
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4580$as_echo_n "checking dependency style of $depcc... " >&6; }
4581if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4582  $as_echo_n "(cached) " >&6
4583else
4584  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4585  # We make a subdir and do the tests there.  Otherwise we can end up
4586  # making bogus files that we don't know about and never remove.  For
4587  # instance it was reported that on HP-UX the gcc test will end up
4588  # making a dummy file named 'D' -- because '-MD' means "put the output
4589  # in D".
4590  rm -rf conftest.dir
4591  mkdir conftest.dir
4592  # Copy depcomp to subdir because otherwise we won't find it if we're
4593  # using a relative directory.
4594  cp "$am_depcomp" conftest.dir
4595  cd conftest.dir
4596  # We will build objects and dependencies in a subdirectory because
4597  # it helps to detect inapplicable dependency modes.  For instance
4598  # both Tru64's cc and ICC support -MD to output dependencies as a
4599  # side effect of compilation, but ICC will put the dependencies in
4600  # the current directory while Tru64 will put them in the object
4601  # directory.
4602  mkdir sub
4603
4604  am_cv_CC_dependencies_compiler_type=none
4605  if test "$am_compiler_list" = ""; then
4606     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4607  fi
4608  am__universal=false
4609  case " $depcc " in #(
4610     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4611     esac
4612
4613  for depmode in $am_compiler_list; do
4614    # Setup a source with many dependencies, because some compilers
4615    # like to wrap large dependency lists on column 80 (with \), and
4616    # we should not choose a depcomp mode which is confused by this.
4617    #
4618    # We need to recreate these files for each test, as the compiler may
4619    # overwrite some of them when testing with obscure command lines.
4620    # This happens at least with the AIX C compiler.
4621    : > sub/conftest.c
4622    for i in 1 2 3 4 5 6; do
4623      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4624      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4625      # Solaris 10 /bin/sh.
4626      echo '/* dummy */' > sub/conftst$i.h
4627    done
4628    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4629
4630    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4631    # mode.  It turns out that the SunPro C++ compiler does not properly
4632    # handle '-M -o', and we need to detect this.  Also, some Intel
4633    # versions had trouble with output in subdirs.
4634    am__obj=sub/conftest.${OBJEXT-o}
4635    am__minus_obj="-o $am__obj"
4636    case $depmode in
4637    gcc)
4638      # This depmode causes a compiler race in universal mode.
4639      test "$am__universal" = false || continue
4640      ;;
4641    nosideeffect)
4642      # After this tag, mechanisms are not by side-effect, so they'll
4643      # only be used when explicitly requested.
4644      if test "x$enable_dependency_tracking" = xyes; then
4645	continue
4646      else
4647	break
4648      fi
4649      ;;
4650    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4651      # This compiler won't grok '-c -o', but also, the minuso test has
4652      # not run yet.  These depmodes are late enough in the game, and
4653      # so weak that their functioning should not be impacted.
4654      am__obj=conftest.${OBJEXT-o}
4655      am__minus_obj=
4656      ;;
4657    none) break ;;
4658    esac
4659    if depmode=$depmode \
4660       source=sub/conftest.c object=$am__obj \
4661       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4662       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4663         >/dev/null 2>conftest.err &&
4664       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4665       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4666       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4667       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4668      # icc doesn't choke on unknown options, it will just issue warnings
4669      # or remarks (even with -Werror).  So we grep stderr for any message
4670      # that says an option was ignored or not supported.
4671      # When given -MP, icc 7.0 and 7.1 complain thusly:
4672      #   icc: Command line warning: ignoring option '-M'; no argument required
4673      # The diagnosis changed in icc 8.0:
4674      #   icc: Command line remark: option '-MP' not supported
4675      if (grep 'ignoring option' conftest.err ||
4676          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4677        am_cv_CC_dependencies_compiler_type=$depmode
4678        break
4679      fi
4680    fi
4681  done
4682
4683  cd ..
4684  rm -rf conftest.dir
4685else
4686  am_cv_CC_dependencies_compiler_type=none
4687fi
4688
4689fi
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4691$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4692CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4693
4694 if
4695  test "x$enable_dependency_tracking" != xno \
4696  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4697  am__fastdepCC_TRUE=
4698  am__fastdepCC_FALSE='#'
4699else
4700  am__fastdepCC_TRUE='#'
4701  am__fastdepCC_FALSE=
4702fi
4703
4704
4705
4706
4707
4708#
4709#  Copyright 2021 Northern.tech AS
4710#
4711#  This file is part of CFEngine 3 - written and maintained by Northern.tech AS.
4712#
4713#  This program is free software; you can redistribute it and/or modify it
4714#  under the terms of the GNU General Public License as published by the
4715#  Free Software Foundation; version 3.
4716#
4717#  This program is distributed in the hope that it will be useful,
4718#  but WITHOUT ANY WARRANTY; without even the implied warranty of
4719#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4720#  GNU General Public License for more details.
4721#
4722# You should have received a copy of the GNU General Public License
4723# along with this program; if not, write to the Free Software
4724# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
4725#
4726# To the extent this program is licensed as part of the Enterprise
4727# versions of CFEngine, the applicable Commercial Open Source License
4728# (COSL) may apply to this file if you as a licensee so wish it. See
4729# included file COSL.txt.
4730#
4731
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX aC" >&5
4733$as_echo_n "checking for HP-UX aC... " >&6; }
4734
4735ac_ext=c
4736ac_cpp='$CPP $CPPFLAGS'
4737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739ac_compiler_gnu=$ac_cv_c_compiler_gnu
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4741$as_echo_n "checking how to run the C preprocessor... " >&6; }
4742# On Suns, sometimes $CPP names a directory.
4743if test -n "$CPP" && test -d "$CPP"; then
4744  CPP=
4745fi
4746if test -z "$CPP"; then
4747  if ${ac_cv_prog_CPP+:} false; then :
4748  $as_echo_n "(cached) " >&6
4749else
4750      # Double quotes because CPP needs to be expanded
4751    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4752    do
4753      ac_preproc_ok=false
4754for ac_c_preproc_warn_flag in '' yes
4755do
4756  # Use a header file that comes with gcc, so configuring glibc
4757  # with a fresh cross-compiler works.
4758  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4759  # <limits.h> exists even on freestanding compilers.
4760  # On the NeXT, cc -E runs the code through the compiler's parser,
4761  # not just through cpp. "Syntax error" is here to catch this case.
4762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763/* end confdefs.h.  */
4764#ifdef __STDC__
4765# include <limits.h>
4766#else
4767# include <assert.h>
4768#endif
4769		     Syntax error
4770_ACEOF
4771if ac_fn_c_try_cpp "$LINENO"; then :
4772
4773else
4774  # Broken: fails on valid input.
4775continue
4776fi
4777rm -f conftest.err conftest.i conftest.$ac_ext
4778
4779  # OK, works on sane cases.  Now check whether nonexistent headers
4780  # can be detected and how.
4781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h.  */
4783#include <ac_nonexistent.h>
4784_ACEOF
4785if ac_fn_c_try_cpp "$LINENO"; then :
4786  # Broken: success on invalid input.
4787continue
4788else
4789  # Passes both tests.
4790ac_preproc_ok=:
4791break
4792fi
4793rm -f conftest.err conftest.i conftest.$ac_ext
4794
4795done
4796# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4797rm -f conftest.i conftest.err conftest.$ac_ext
4798if $ac_preproc_ok; then :
4799  break
4800fi
4801
4802    done
4803    ac_cv_prog_CPP=$CPP
4804
4805fi
4806  CPP=$ac_cv_prog_CPP
4807else
4808  ac_cv_prog_CPP=$CPP
4809fi
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4811$as_echo "$CPP" >&6; }
4812ac_preproc_ok=false
4813for ac_c_preproc_warn_flag in '' yes
4814do
4815  # Use a header file that comes with gcc, so configuring glibc
4816  # with a fresh cross-compiler works.
4817  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4818  # <limits.h> exists even on freestanding compilers.
4819  # On the NeXT, cc -E runs the code through the compiler's parser,
4820  # not just through cpp. "Syntax error" is here to catch this case.
4821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822/* end confdefs.h.  */
4823#ifdef __STDC__
4824# include <limits.h>
4825#else
4826# include <assert.h>
4827#endif
4828		     Syntax error
4829_ACEOF
4830if ac_fn_c_try_cpp "$LINENO"; then :
4831
4832else
4833  # Broken: fails on valid input.
4834continue
4835fi
4836rm -f conftest.err conftest.i conftest.$ac_ext
4837
4838  # OK, works on sane cases.  Now check whether nonexistent headers
4839  # can be detected and how.
4840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841/* end confdefs.h.  */
4842#include <ac_nonexistent.h>
4843_ACEOF
4844if ac_fn_c_try_cpp "$LINENO"; then :
4845  # Broken: success on invalid input.
4846continue
4847else
4848  # Passes both tests.
4849ac_preproc_ok=:
4850break
4851fi
4852rm -f conftest.err conftest.i conftest.$ac_ext
4853
4854done
4855# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4856rm -f conftest.i conftest.err conftest.$ac_ext
4857if $ac_preproc_ok; then :
4858
4859else
4860  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4862as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4863See \`config.log' for more details" "$LINENO" 5; }
4864fi
4865
4866ac_ext=c
4867ac_cpp='$CPP $CPPFLAGS'
4868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870ac_compiler_gnu=$ac_cv_c_compiler_gnu
4871
4872
4873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874/* end confdefs.h.  */
4875
4876#if defined __HP_cc
4877#This is HP-UX ANSI C
4878#endif
4879
4880_ACEOF
4881if ac_fn_c_try_cpp "$LINENO"; then :
4882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883$as_echo "no" >&6; }
4884else
4885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4886$as_echo "yes" >&6; }
4887CFLAGS="$CFLAGS -Agcc"
4888CPPFLAGS="$CPPFLAGS -Agcc"
4889HP_UX_AC=yes
4890fi
4891rm -f conftest.err conftest.i conftest.$ac_ext
4892
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC specific compile flags" >&5
4894$as_echo_n "checking for GCC specific compile flags... " >&6; }
4895if test x"$GCC" = "xyes" && test x"$HP_UX_AC" != x"yes"; then
4896    CFLAGS="$CFLAGS -g -Wall"
4897    CPPFLAGS="$CPPFLAGS -std=gnu99"
4898    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4899$as_echo "yes" >&6; }
4900
4901    save_CFLAGS="$CFLAGS"
4902    CFLAGS="$CFLAGS -Wno-pointer-sign"
4903    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-pointer-sign" >&5
4904$as_echo_n "checking for -Wno-pointer-sign... " >&6; }
4905    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h.  */
4907int main() {}
4908_ACEOF
4909if ac_fn_c_try_compile "$LINENO"; then :
4910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4911$as_echo "yes" >&6; }
4912else
4913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914$as_echo "no" >&6; }
4915     CFLAGS="$save_CFLAGS"
4916fi
4917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918
4919    save_CFLAGS="$CFLAGS"
4920    CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
4921    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror=implicit-function-declaration" >&5
4922$as_echo_n "checking for -Werror=implicit-function-declaration... " >&6; }
4923    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924/* end confdefs.h.  */
4925int main() {}
4926_ACEOF
4927if ac_fn_c_try_compile "$LINENO"; then :
4928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4929$as_echo "yes" >&6; }
4930else
4931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932$as_echo "no" >&6; }
4933     CFLAGS="$save_CFLAGS"
4934fi
4935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936
4937    save_CFLAGS="$CFLAGS"
4938    CFLAGS="$CFLAGS -Wunused-parameter"
4939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wunused-parameter" >&5
4940$as_echo_n "checking for -Wunused-parameter... " >&6; }
4941    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942/* end confdefs.h.  */
4943int main() {}
4944_ACEOF
4945if ac_fn_c_try_compile "$LINENO"; then :
4946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4947$as_echo "yes" >&6; }
4948else
4949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950$as_echo "no" >&6; }
4951     CFLAGS="$save_CFLAGS"
4952fi
4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954
4955                            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-duplicate-decl-specifier" >&5
4956$as_echo_n "checking for -Wno-duplicate-decl-specifier... " >&6; }
4957    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958/* end confdefs.h.  */
4959#ifndef __clang__
4960# error Not a clang
4961#endif
4962int main() {}
4963_ACEOF
4964if ac_fn_c_try_compile "$LINENO"; then :
4965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4966$as_echo "yes" >&6; }
4967     CFLAGS="$save_CFLAGS -Wno-duplicate-decl-specifier"
4968else
4969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970$as_echo "no" >&6; }
4971fi
4972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973else
4974    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975$as_echo "no" >&6; }
4976fi
4977
4978
4979# Use either new LT_INIT or old AC_DISABLE_STATIC/AC_PROG_LIBTOOL macros
4980case `pwd` in
4981  *\ * | *\	*)
4982    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4983$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4984esac
4985
4986
4987
4988macro_version='2.4.6'
4989macro_revision='2.4.6'
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003ltmain=$ac_aux_dir/ltmain.sh
5004
5005# Backslashify metacharacters that are still active within
5006# double-quoted strings.
5007sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5008
5009# Same as above, but do not quote variable references.
5010double_quote_subst='s/\(["`\\]\)/\\\1/g'
5011
5012# Sed substitution to delay expansion of an escaped shell variable in a
5013# double_quote_subst'ed string.
5014delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5015
5016# Sed substitution to delay expansion of an escaped single quote.
5017delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5018
5019# Sed substitution to avoid accidental globbing in evaled expressions
5020no_glob_subst='s/\*/\\\*/g'
5021
5022ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5023ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5024ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5025
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5027$as_echo_n "checking how to print strings... " >&6; }
5028# Test print first, because it will be a builtin if present.
5029if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5030   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5031  ECHO='print -r --'
5032elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5033  ECHO='printf %s\n'
5034else
5035  # Use this function as a fallback that always works.
5036  func_fallback_echo ()
5037  {
5038    eval 'cat <<_LTECHO_EOF
5039$1
5040_LTECHO_EOF'
5041  }
5042  ECHO='func_fallback_echo'
5043fi
5044
5045# func_echo_all arg...
5046# Invoke $ECHO with all args, space-separated.
5047func_echo_all ()
5048{
5049    $ECHO ""
5050}
5051
5052case $ECHO in
5053  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5054$as_echo "printf" >&6; } ;;
5055  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5056$as_echo "print -r" >&6; } ;;
5057  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5058$as_echo "cat" >&6; } ;;
5059esac
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5075$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5076if ${ac_cv_path_SED+:} false; then :
5077  $as_echo_n "(cached) " >&6
5078else
5079            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5080     for ac_i in 1 2 3 4 5 6 7; do
5081       ac_script="$ac_script$as_nl$ac_script"
5082     done
5083     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5084     { ac_script=; unset ac_script;}
5085     if test -z "$SED"; then
5086  ac_path_SED_found=false
5087  # Loop through the user's path and test for each of PROGNAME-LIST
5088  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089for as_dir in $PATH
5090do
5091  IFS=$as_save_IFS
5092  test -z "$as_dir" && as_dir=.
5093    for ac_prog in sed gsed; do
5094    for ac_exec_ext in '' $ac_executable_extensions; do
5095      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5096      as_fn_executable_p "$ac_path_SED" || continue
5097# Check for GNU ac_path_SED and select it if it is found.
5098  # Check for GNU $ac_path_SED
5099case `"$ac_path_SED" --version 2>&1` in
5100*GNU*)
5101  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5102*)
5103  ac_count=0
5104  $as_echo_n 0123456789 >"conftest.in"
5105  while :
5106  do
5107    cat "conftest.in" "conftest.in" >"conftest.tmp"
5108    mv "conftest.tmp" "conftest.in"
5109    cp "conftest.in" "conftest.nl"
5110    $as_echo '' >> "conftest.nl"
5111    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5112    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5113    as_fn_arith $ac_count + 1 && ac_count=$as_val
5114    if test $ac_count -gt ${ac_path_SED_max-0}; then
5115      # Best one so far, save it but keep looking for a better one
5116      ac_cv_path_SED="$ac_path_SED"
5117      ac_path_SED_max=$ac_count
5118    fi
5119    # 10*(2^10) chars as input seems more than enough
5120    test $ac_count -gt 10 && break
5121  done
5122  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5123esac
5124
5125      $ac_path_SED_found && break 3
5126    done
5127  done
5128  done
5129IFS=$as_save_IFS
5130  if test -z "$ac_cv_path_SED"; then
5131    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5132  fi
5133else
5134  ac_cv_path_SED=$SED
5135fi
5136
5137fi
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5139$as_echo "$ac_cv_path_SED" >&6; }
5140 SED="$ac_cv_path_SED"
5141  rm -f conftest.sed
5142
5143test -z "$SED" && SED=sed
5144Xsed="$SED -e 1s/^X//"
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5157$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5158if ${ac_cv_path_GREP+:} false; then :
5159  $as_echo_n "(cached) " >&6
5160else
5161  if test -z "$GREP"; then
5162  ac_path_GREP_found=false
5163  # Loop through the user's path and test for each of PROGNAME-LIST
5164  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5166do
5167  IFS=$as_save_IFS
5168  test -z "$as_dir" && as_dir=.
5169    for ac_prog in grep ggrep; do
5170    for ac_exec_ext in '' $ac_executable_extensions; do
5171      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5172      as_fn_executable_p "$ac_path_GREP" || continue
5173# Check for GNU ac_path_GREP and select it if it is found.
5174  # Check for GNU $ac_path_GREP
5175case `"$ac_path_GREP" --version 2>&1` in
5176*GNU*)
5177  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5178*)
5179  ac_count=0
5180  $as_echo_n 0123456789 >"conftest.in"
5181  while :
5182  do
5183    cat "conftest.in" "conftest.in" >"conftest.tmp"
5184    mv "conftest.tmp" "conftest.in"
5185    cp "conftest.in" "conftest.nl"
5186    $as_echo 'GREP' >> "conftest.nl"
5187    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5188    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5189    as_fn_arith $ac_count + 1 && ac_count=$as_val
5190    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5191      # Best one so far, save it but keep looking for a better one
5192      ac_cv_path_GREP="$ac_path_GREP"
5193      ac_path_GREP_max=$ac_count
5194    fi
5195    # 10*(2^10) chars as input seems more than enough
5196    test $ac_count -gt 10 && break
5197  done
5198  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5199esac
5200
5201      $ac_path_GREP_found && break 3
5202    done
5203  done
5204  done
5205IFS=$as_save_IFS
5206  if test -z "$ac_cv_path_GREP"; then
5207    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5208  fi
5209else
5210  ac_cv_path_GREP=$GREP
5211fi
5212
5213fi
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5215$as_echo "$ac_cv_path_GREP" >&6; }
5216 GREP="$ac_cv_path_GREP"
5217
5218
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5220$as_echo_n "checking for egrep... " >&6; }
5221if ${ac_cv_path_EGREP+:} false; then :
5222  $as_echo_n "(cached) " >&6
5223else
5224  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5225   then ac_cv_path_EGREP="$GREP -E"
5226   else
5227     if test -z "$EGREP"; then
5228  ac_path_EGREP_found=false
5229  # Loop through the user's path and test for each of PROGNAME-LIST
5230  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5232do
5233  IFS=$as_save_IFS
5234  test -z "$as_dir" && as_dir=.
5235    for ac_prog in egrep; do
5236    for ac_exec_ext in '' $ac_executable_extensions; do
5237      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5238      as_fn_executable_p "$ac_path_EGREP" || continue
5239# Check for GNU ac_path_EGREP and select it if it is found.
5240  # Check for GNU $ac_path_EGREP
5241case `"$ac_path_EGREP" --version 2>&1` in
5242*GNU*)
5243  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5244*)
5245  ac_count=0
5246  $as_echo_n 0123456789 >"conftest.in"
5247  while :
5248  do
5249    cat "conftest.in" "conftest.in" >"conftest.tmp"
5250    mv "conftest.tmp" "conftest.in"
5251    cp "conftest.in" "conftest.nl"
5252    $as_echo 'EGREP' >> "conftest.nl"
5253    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5254    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5255    as_fn_arith $ac_count + 1 && ac_count=$as_val
5256    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5257      # Best one so far, save it but keep looking for a better one
5258      ac_cv_path_EGREP="$ac_path_EGREP"
5259      ac_path_EGREP_max=$ac_count
5260    fi
5261    # 10*(2^10) chars as input seems more than enough
5262    test $ac_count -gt 10 && break
5263  done
5264  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5265esac
5266
5267      $ac_path_EGREP_found && break 3
5268    done
5269  done
5270  done
5271IFS=$as_save_IFS
5272  if test -z "$ac_cv_path_EGREP"; then
5273    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5274  fi
5275else
5276  ac_cv_path_EGREP=$EGREP
5277fi
5278
5279   fi
5280fi
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5282$as_echo "$ac_cv_path_EGREP" >&6; }
5283 EGREP="$ac_cv_path_EGREP"
5284
5285
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5287$as_echo_n "checking for fgrep... " >&6; }
5288if ${ac_cv_path_FGREP+:} false; then :
5289  $as_echo_n "(cached) " >&6
5290else
5291  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5292   then ac_cv_path_FGREP="$GREP -F"
5293   else
5294     if test -z "$FGREP"; then
5295  ac_path_FGREP_found=false
5296  # Loop through the user's path and test for each of PROGNAME-LIST
5297  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5299do
5300  IFS=$as_save_IFS
5301  test -z "$as_dir" && as_dir=.
5302    for ac_prog in fgrep; do
5303    for ac_exec_ext in '' $ac_executable_extensions; do
5304      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5305      as_fn_executable_p "$ac_path_FGREP" || continue
5306# Check for GNU ac_path_FGREP and select it if it is found.
5307  # Check for GNU $ac_path_FGREP
5308case `"$ac_path_FGREP" --version 2>&1` in
5309*GNU*)
5310  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5311*)
5312  ac_count=0
5313  $as_echo_n 0123456789 >"conftest.in"
5314  while :
5315  do
5316    cat "conftest.in" "conftest.in" >"conftest.tmp"
5317    mv "conftest.tmp" "conftest.in"
5318    cp "conftest.in" "conftest.nl"
5319    $as_echo 'FGREP' >> "conftest.nl"
5320    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5321    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5322    as_fn_arith $ac_count + 1 && ac_count=$as_val
5323    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5324      # Best one so far, save it but keep looking for a better one
5325      ac_cv_path_FGREP="$ac_path_FGREP"
5326      ac_path_FGREP_max=$ac_count
5327    fi
5328    # 10*(2^10) chars as input seems more than enough
5329    test $ac_count -gt 10 && break
5330  done
5331  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5332esac
5333
5334      $ac_path_FGREP_found && break 3
5335    done
5336  done
5337  done
5338IFS=$as_save_IFS
5339  if test -z "$ac_cv_path_FGREP"; then
5340    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5341  fi
5342else
5343  ac_cv_path_FGREP=$FGREP
5344fi
5345
5346   fi
5347fi
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5349$as_echo "$ac_cv_path_FGREP" >&6; }
5350 FGREP="$ac_cv_path_FGREP"
5351
5352
5353test -z "$GREP" && GREP=grep
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373# Check whether --with-gnu-ld was given.
5374if test "${with_gnu_ld+set}" = set; then :
5375  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5376else
5377  with_gnu_ld=no
5378fi
5379
5380ac_prog=ld
5381if test yes = "$GCC"; then
5382  # Check if gcc -print-prog-name=ld gives a path.
5383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5384$as_echo_n "checking for ld used by $CC... " >&6; }
5385  case $host in
5386  *-*-mingw*)
5387    # gcc leaves a trailing carriage return, which upsets mingw
5388    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5389  *)
5390    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5391  esac
5392  case $ac_prog in
5393    # Accept absolute paths.
5394    [\\/]* | ?:[\\/]*)
5395      re_direlt='/[^/][^/]*/\.\./'
5396      # Canonicalize the pathname of ld
5397      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5398      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5399	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5400      done
5401      test -z "$LD" && LD=$ac_prog
5402      ;;
5403  "")
5404    # If it fails, then pretend we aren't using GCC.
5405    ac_prog=ld
5406    ;;
5407  *)
5408    # If it is relative, then search for the first ld in PATH.
5409    with_gnu_ld=unknown
5410    ;;
5411  esac
5412elif test yes = "$with_gnu_ld"; then
5413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5414$as_echo_n "checking for GNU ld... " >&6; }
5415else
5416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5417$as_echo_n "checking for non-GNU ld... " >&6; }
5418fi
5419if ${lt_cv_path_LD+:} false; then :
5420  $as_echo_n "(cached) " >&6
5421else
5422  if test -z "$LD"; then
5423  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5424  for ac_dir in $PATH; do
5425    IFS=$lt_save_ifs
5426    test -z "$ac_dir" && ac_dir=.
5427    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5428      lt_cv_path_LD=$ac_dir/$ac_prog
5429      # Check to see if the program is GNU ld.  I'd rather use --version,
5430      # but apparently some variants of GNU ld only accept -v.
5431      # Break only if it was the GNU/non-GNU ld that we prefer.
5432      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5433      *GNU* | *'with BFD'*)
5434	test no != "$with_gnu_ld" && break
5435	;;
5436      *)
5437	test yes != "$with_gnu_ld" && break
5438	;;
5439      esac
5440    fi
5441  done
5442  IFS=$lt_save_ifs
5443else
5444  lt_cv_path_LD=$LD # Let the user override the test with a path.
5445fi
5446fi
5447
5448LD=$lt_cv_path_LD
5449if test -n "$LD"; then
5450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5451$as_echo "$LD" >&6; }
5452else
5453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454$as_echo "no" >&6; }
5455fi
5456test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5458$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5459if ${lt_cv_prog_gnu_ld+:} false; then :
5460  $as_echo_n "(cached) " >&6
5461else
5462  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5463case `$LD -v 2>&1 </dev/null` in
5464*GNU* | *'with BFD'*)
5465  lt_cv_prog_gnu_ld=yes
5466  ;;
5467*)
5468  lt_cv_prog_gnu_ld=no
5469  ;;
5470esac
5471fi
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5473$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5474with_gnu_ld=$lt_cv_prog_gnu_ld
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5485$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5486if ${lt_cv_path_NM+:} false; then :
5487  $as_echo_n "(cached) " >&6
5488else
5489  if test -n "$NM"; then
5490  # Let the user override the test.
5491  lt_cv_path_NM=$NM
5492else
5493  lt_nm_to_check=${ac_tool_prefix}nm
5494  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5495    lt_nm_to_check="$lt_nm_to_check nm"
5496  fi
5497  for lt_tmp_nm in $lt_nm_to_check; do
5498    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5499    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5500      IFS=$lt_save_ifs
5501      test -z "$ac_dir" && ac_dir=.
5502      tmp_nm=$ac_dir/$lt_tmp_nm
5503      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5504	# Check to see if the nm accepts a BSD-compat flag.
5505	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5506	#   nm: unknown option "B" ignored
5507	# Tru64's nm complains that /dev/null is an invalid object file
5508	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5509	case $build_os in
5510	mingw*) lt_bad_file=conftest.nm/nofile ;;
5511	*) lt_bad_file=/dev/null ;;
5512	esac
5513	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5514	*$lt_bad_file* | *'Invalid file or object type'*)
5515	  lt_cv_path_NM="$tmp_nm -B"
5516	  break 2
5517	  ;;
5518	*)
5519	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5520	  */dev/null*)
5521	    lt_cv_path_NM="$tmp_nm -p"
5522	    break 2
5523	    ;;
5524	  *)
5525	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5526	    continue # so that we can try to find one that supports BSD flags
5527	    ;;
5528	  esac
5529	  ;;
5530	esac
5531      fi
5532    done
5533    IFS=$lt_save_ifs
5534  done
5535  : ${lt_cv_path_NM=no}
5536fi
5537fi
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5539$as_echo "$lt_cv_path_NM" >&6; }
5540if test no != "$lt_cv_path_NM"; then
5541  NM=$lt_cv_path_NM
5542else
5543  # Didn't find any BSD compatible name lister, look for dumpbin.
5544  if test -n "$DUMPBIN"; then :
5545    # Let the user override the test.
5546  else
5547    if test -n "$ac_tool_prefix"; then
5548  for ac_prog in dumpbin "link -dump"
5549  do
5550    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5551set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553$as_echo_n "checking for $ac_word... " >&6; }
5554if ${ac_cv_prog_DUMPBIN+:} false; then :
5555  $as_echo_n "(cached) " >&6
5556else
5557  if test -n "$DUMPBIN"; then
5558  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5559else
5560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561for as_dir in $PATH
5562do
5563  IFS=$as_save_IFS
5564  test -z "$as_dir" && as_dir=.
5565    for ac_exec_ext in '' $ac_executable_extensions; do
5566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5567    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5569    break 2
5570  fi
5571done
5572  done
5573IFS=$as_save_IFS
5574
5575fi
5576fi
5577DUMPBIN=$ac_cv_prog_DUMPBIN
5578if test -n "$DUMPBIN"; then
5579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5580$as_echo "$DUMPBIN" >&6; }
5581else
5582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583$as_echo "no" >&6; }
5584fi
5585
5586
5587    test -n "$DUMPBIN" && break
5588  done
5589fi
5590if test -z "$DUMPBIN"; then
5591  ac_ct_DUMPBIN=$DUMPBIN
5592  for ac_prog in dumpbin "link -dump"
5593do
5594  # Extract the first word of "$ac_prog", so it can be a program name with args.
5595set dummy $ac_prog; ac_word=$2
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597$as_echo_n "checking for $ac_word... " >&6; }
5598if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5599  $as_echo_n "(cached) " >&6
5600else
5601  if test -n "$ac_ct_DUMPBIN"; then
5602  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5603else
5604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605for as_dir in $PATH
5606do
5607  IFS=$as_save_IFS
5608  test -z "$as_dir" && as_dir=.
5609    for ac_exec_ext in '' $ac_executable_extensions; do
5610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613    break 2
5614  fi
5615done
5616  done
5617IFS=$as_save_IFS
5618
5619fi
5620fi
5621ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5622if test -n "$ac_ct_DUMPBIN"; then
5623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5624$as_echo "$ac_ct_DUMPBIN" >&6; }
5625else
5626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627$as_echo "no" >&6; }
5628fi
5629
5630
5631  test -n "$ac_ct_DUMPBIN" && break
5632done
5633
5634  if test "x$ac_ct_DUMPBIN" = x; then
5635    DUMPBIN=":"
5636  else
5637    case $cross_compiling:$ac_tool_warned in
5638yes:)
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5641ac_tool_warned=yes ;;
5642esac
5643    DUMPBIN=$ac_ct_DUMPBIN
5644  fi
5645fi
5646
5647    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5648    *COFF*)
5649      DUMPBIN="$DUMPBIN -symbols -headers"
5650      ;;
5651    *)
5652      DUMPBIN=:
5653      ;;
5654    esac
5655  fi
5656
5657  if test : != "$DUMPBIN"; then
5658    NM=$DUMPBIN
5659  fi
5660fi
5661test -z "$NM" && NM=nm
5662
5663
5664
5665
5666
5667
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5669$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5670if ${lt_cv_nm_interface+:} false; then :
5671  $as_echo_n "(cached) " >&6
5672else
5673  lt_cv_nm_interface="BSD nm"
5674  echo "int some_variable = 0;" > conftest.$ac_ext
5675  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5676  (eval "$ac_compile" 2>conftest.err)
5677  cat conftest.err >&5
5678  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5679  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5680  cat conftest.err >&5
5681  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5682  cat conftest.out >&5
5683  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5684    lt_cv_nm_interface="MS dumpbin"
5685  fi
5686  rm -f conftest*
5687fi
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5689$as_echo "$lt_cv_nm_interface" >&6; }
5690
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5692$as_echo_n "checking whether ln -s works... " >&6; }
5693LN_S=$as_ln_s
5694if test "$LN_S" = "ln -s"; then
5695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696$as_echo "yes" >&6; }
5697else
5698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5699$as_echo "no, using $LN_S" >&6; }
5700fi
5701
5702# find the maximum length of command line arguments
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5704$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5705if ${lt_cv_sys_max_cmd_len+:} false; then :
5706  $as_echo_n "(cached) " >&6
5707else
5708    i=0
5709  teststring=ABCD
5710
5711  case $build_os in
5712  msdosdjgpp*)
5713    # On DJGPP, this test can blow up pretty badly due to problems in libc
5714    # (any single argument exceeding 2000 bytes causes a buffer overrun
5715    # during glob expansion).  Even if it were fixed, the result of this
5716    # check would be larger than it should be.
5717    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5718    ;;
5719
5720  gnu*)
5721    # Under GNU Hurd, this test is not required because there is
5722    # no limit to the length of command line arguments.
5723    # Libtool will interpret -1 as no limit whatsoever
5724    lt_cv_sys_max_cmd_len=-1;
5725    ;;
5726
5727  cygwin* | mingw* | cegcc*)
5728    # On Win9x/ME, this test blows up -- it succeeds, but takes
5729    # about 5 minutes as the teststring grows exponentially.
5730    # Worse, since 9x/ME are not pre-emptively multitasking,
5731    # you end up with a "frozen" computer, even though with patience
5732    # the test eventually succeeds (with a max line length of 256k).
5733    # Instead, let's just punt: use the minimum linelength reported by
5734    # all of the supported platforms: 8192 (on NT/2K/XP).
5735    lt_cv_sys_max_cmd_len=8192;
5736    ;;
5737
5738  mint*)
5739    # On MiNT this can take a long time and run out of memory.
5740    lt_cv_sys_max_cmd_len=8192;
5741    ;;
5742
5743  amigaos*)
5744    # On AmigaOS with pdksh, this test takes hours, literally.
5745    # So we just punt and use a minimum line length of 8192.
5746    lt_cv_sys_max_cmd_len=8192;
5747    ;;
5748
5749  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5750    # This has been around since 386BSD, at least.  Likely further.
5751    if test -x /sbin/sysctl; then
5752      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5753    elif test -x /usr/sbin/sysctl; then
5754      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5755    else
5756      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5757    fi
5758    # And add a safety zone
5759    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5760    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5761    ;;
5762
5763  interix*)
5764    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5765    lt_cv_sys_max_cmd_len=196608
5766    ;;
5767
5768  os2*)
5769    # The test takes a long time on OS/2.
5770    lt_cv_sys_max_cmd_len=8192
5771    ;;
5772
5773  osf*)
5774    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5775    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5776    # nice to cause kernel panics so lets avoid the loop below.
5777    # First set a reasonable default.
5778    lt_cv_sys_max_cmd_len=16384
5779    #
5780    if test -x /sbin/sysconfig; then
5781      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5782        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5783      esac
5784    fi
5785    ;;
5786  sco3.2v5*)
5787    lt_cv_sys_max_cmd_len=102400
5788    ;;
5789  sysv5* | sco5v6* | sysv4.2uw2*)
5790    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5791    if test -n "$kargmax"; then
5792      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5793    else
5794      lt_cv_sys_max_cmd_len=32768
5795    fi
5796    ;;
5797  *)
5798    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5799    if test -n "$lt_cv_sys_max_cmd_len" && \
5800       test undefined != "$lt_cv_sys_max_cmd_len"; then
5801      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5802      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5803    else
5804      # Make teststring a little bigger before we do anything with it.
5805      # a 1K string should be a reasonable start.
5806      for i in 1 2 3 4 5 6 7 8; do
5807        teststring=$teststring$teststring
5808      done
5809      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5810      # If test is not a shell built-in, we'll probably end up computing a
5811      # maximum length that is only half of the actual maximum length, but
5812      # we can't tell.
5813      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5814	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5815	      test 17 != "$i" # 1/2 MB should be enough
5816      do
5817        i=`expr $i + 1`
5818        teststring=$teststring$teststring
5819      done
5820      # Only check the string length outside the loop.
5821      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5822      teststring=
5823      # Add a significant safety factor because C++ compilers can tack on
5824      # massive amounts of additional arguments before passing them to the
5825      # linker.  It appears as though 1/2 is a usable value.
5826      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5827    fi
5828    ;;
5829  esac
5830
5831fi
5832
5833if test -n "$lt_cv_sys_max_cmd_len"; then
5834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5835$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5836else
5837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5838$as_echo "none" >&6; }
5839fi
5840max_cmd_len=$lt_cv_sys_max_cmd_len
5841
5842
5843
5844
5845
5846
5847: ${CP="cp -f"}
5848: ${MV="mv -f"}
5849: ${RM="rm -f"}
5850
5851if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5852  lt_unset=unset
5853else
5854  lt_unset=false
5855fi
5856
5857
5858
5859
5860
5861# test EBCDIC or ASCII
5862case `echo X|tr X '\101'` in
5863 A) # ASCII based system
5864    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5865  lt_SP2NL='tr \040 \012'
5866  lt_NL2SP='tr \015\012 \040\040'
5867  ;;
5868 *) # EBCDIC based system
5869  lt_SP2NL='tr \100 \n'
5870  lt_NL2SP='tr \r\n \100\100'
5871  ;;
5872esac
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5883$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5884if ${lt_cv_to_host_file_cmd+:} false; then :
5885  $as_echo_n "(cached) " >&6
5886else
5887  case $host in
5888  *-*-mingw* )
5889    case $build in
5890      *-*-mingw* ) # actually msys
5891        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5892        ;;
5893      *-*-cygwin* )
5894        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5895        ;;
5896      * ) # otherwise, assume *nix
5897        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5898        ;;
5899    esac
5900    ;;
5901  *-*-cygwin* )
5902    case $build in
5903      *-*-mingw* ) # actually msys
5904        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5905        ;;
5906      *-*-cygwin* )
5907        lt_cv_to_host_file_cmd=func_convert_file_noop
5908        ;;
5909      * ) # otherwise, assume *nix
5910        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5911        ;;
5912    esac
5913    ;;
5914  * ) # unhandled hosts (and "normal" native builds)
5915    lt_cv_to_host_file_cmd=func_convert_file_noop
5916    ;;
5917esac
5918
5919fi
5920
5921to_host_file_cmd=$lt_cv_to_host_file_cmd
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5923$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5924
5925
5926
5927
5928
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5930$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5931if ${lt_cv_to_tool_file_cmd+:} false; then :
5932  $as_echo_n "(cached) " >&6
5933else
5934  #assume ordinary cross tools, or native build.
5935lt_cv_to_tool_file_cmd=func_convert_file_noop
5936case $host in
5937  *-*-mingw* )
5938    case $build in
5939      *-*-mingw* ) # actually msys
5940        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5941        ;;
5942    esac
5943    ;;
5944esac
5945
5946fi
5947
5948to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5950$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5951
5952
5953
5954
5955
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5957$as_echo_n "checking for $LD option to reload object files... " >&6; }
5958if ${lt_cv_ld_reload_flag+:} false; then :
5959  $as_echo_n "(cached) " >&6
5960else
5961  lt_cv_ld_reload_flag='-r'
5962fi
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5964$as_echo "$lt_cv_ld_reload_flag" >&6; }
5965reload_flag=$lt_cv_ld_reload_flag
5966case $reload_flag in
5967"" | " "*) ;;
5968*) reload_flag=" $reload_flag" ;;
5969esac
5970reload_cmds='$LD$reload_flag -o $output$reload_objs'
5971case $host_os in
5972  cygwin* | mingw* | pw32* | cegcc*)
5973    if test yes != "$GCC"; then
5974      reload_cmds=false
5975    fi
5976    ;;
5977  darwin*)
5978    if test yes = "$GCC"; then
5979      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5980    else
5981      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5982    fi
5983    ;;
5984esac
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994if test -n "$ac_tool_prefix"; then
5995  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5996set dummy ${ac_tool_prefix}objdump; ac_word=$2
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998$as_echo_n "checking for $ac_word... " >&6; }
5999if ${ac_cv_prog_OBJDUMP+:} false; then :
6000  $as_echo_n "(cached) " >&6
6001else
6002  if test -n "$OBJDUMP"; then
6003  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6004else
6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006for as_dir in $PATH
6007do
6008  IFS=$as_save_IFS
6009  test -z "$as_dir" && as_dir=.
6010    for ac_exec_ext in '' $ac_executable_extensions; do
6011  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6012    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014    break 2
6015  fi
6016done
6017  done
6018IFS=$as_save_IFS
6019
6020fi
6021fi
6022OBJDUMP=$ac_cv_prog_OBJDUMP
6023if test -n "$OBJDUMP"; then
6024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6025$as_echo "$OBJDUMP" >&6; }
6026else
6027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028$as_echo "no" >&6; }
6029fi
6030
6031
6032fi
6033if test -z "$ac_cv_prog_OBJDUMP"; then
6034  ac_ct_OBJDUMP=$OBJDUMP
6035  # Extract the first word of "objdump", so it can be a program name with args.
6036set dummy objdump; ac_word=$2
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038$as_echo_n "checking for $ac_word... " >&6; }
6039if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6040  $as_echo_n "(cached) " >&6
6041else
6042  if test -n "$ac_ct_OBJDUMP"; then
6043  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6044else
6045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046for as_dir in $PATH
6047do
6048  IFS=$as_save_IFS
6049  test -z "$as_dir" && as_dir=.
6050    for ac_exec_ext in '' $ac_executable_extensions; do
6051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054    break 2
6055  fi
6056done
6057  done
6058IFS=$as_save_IFS
6059
6060fi
6061fi
6062ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6063if test -n "$ac_ct_OBJDUMP"; then
6064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6065$as_echo "$ac_ct_OBJDUMP" >&6; }
6066else
6067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068$as_echo "no" >&6; }
6069fi
6070
6071  if test "x$ac_ct_OBJDUMP" = x; then
6072    OBJDUMP="false"
6073  else
6074    case $cross_compiling:$ac_tool_warned in
6075yes:)
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6078ac_tool_warned=yes ;;
6079esac
6080    OBJDUMP=$ac_ct_OBJDUMP
6081  fi
6082else
6083  OBJDUMP="$ac_cv_prog_OBJDUMP"
6084fi
6085
6086test -z "$OBJDUMP" && OBJDUMP=objdump
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6097$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6098if ${lt_cv_deplibs_check_method+:} false; then :
6099  $as_echo_n "(cached) " >&6
6100else
6101  lt_cv_file_magic_cmd='$MAGIC_CMD'
6102lt_cv_file_magic_test_file=
6103lt_cv_deplibs_check_method='unknown'
6104# Need to set the preceding variable on all platforms that support
6105# interlibrary dependencies.
6106# 'none' -- dependencies not supported.
6107# 'unknown' -- same as none, but documents that we really don't know.
6108# 'pass_all' -- all dependencies passed with no checks.
6109# 'test_compile' -- check by making test program.
6110# 'file_magic [[regex]]' -- check by looking for files in library path
6111# that responds to the $file_magic_cmd with a given extended regex.
6112# If you have 'file' or equivalent on your system and you're not sure
6113# whether 'pass_all' will *always* work, you probably want this one.
6114
6115case $host_os in
6116aix[4-9]*)
6117  lt_cv_deplibs_check_method=pass_all
6118  ;;
6119
6120beos*)
6121  lt_cv_deplibs_check_method=pass_all
6122  ;;
6123
6124bsdi[45]*)
6125  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6126  lt_cv_file_magic_cmd='/usr/bin/file -L'
6127  lt_cv_file_magic_test_file=/shlib/libc.so
6128  ;;
6129
6130cygwin*)
6131  # func_win32_libid is a shell function defined in ltmain.sh
6132  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6133  lt_cv_file_magic_cmd='func_win32_libid'
6134  ;;
6135
6136mingw* | pw32*)
6137  # Base MSYS/MinGW do not provide the 'file' command needed by
6138  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6139  # unless we find 'file', for example because we are cross-compiling.
6140  if ( file / ) >/dev/null 2>&1; then
6141    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6142    lt_cv_file_magic_cmd='func_win32_libid'
6143  else
6144    # Keep this pattern in sync with the one in func_win32_libid.
6145    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6146    lt_cv_file_magic_cmd='$OBJDUMP -f'
6147  fi
6148  ;;
6149
6150cegcc*)
6151  # use the weaker test based on 'objdump'. See mingw*.
6152  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6153  lt_cv_file_magic_cmd='$OBJDUMP -f'
6154  ;;
6155
6156darwin* | rhapsody*)
6157  lt_cv_deplibs_check_method=pass_all
6158  ;;
6159
6160freebsd* | dragonfly*)
6161  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6162    case $host_cpu in
6163    i*86 )
6164      # Not sure whether the presence of OpenBSD here was a mistake.
6165      # Let's accept both of them until this is cleared up.
6166      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6167      lt_cv_file_magic_cmd=/usr/bin/file
6168      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6169      ;;
6170    esac
6171  else
6172    lt_cv_deplibs_check_method=pass_all
6173  fi
6174  ;;
6175
6176haiku*)
6177  lt_cv_deplibs_check_method=pass_all
6178  ;;
6179
6180hpux10.20* | hpux11*)
6181  lt_cv_file_magic_cmd=/usr/bin/file
6182  case $host_cpu in
6183  ia64*)
6184    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6185    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6186    ;;
6187  hppa*64*)
6188    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6189    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6190    ;;
6191  *)
6192    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6193    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6194    ;;
6195  esac
6196  ;;
6197
6198interix[3-9]*)
6199  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6200  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6201  ;;
6202
6203irix5* | irix6* | nonstopux*)
6204  case $LD in
6205  *-32|*"-32 ") libmagic=32-bit;;
6206  *-n32|*"-n32 ") libmagic=N32;;
6207  *-64|*"-64 ") libmagic=64-bit;;
6208  *) libmagic=never-match;;
6209  esac
6210  lt_cv_deplibs_check_method=pass_all
6211  ;;
6212
6213# This must be glibc/ELF.
6214linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6215  lt_cv_deplibs_check_method=pass_all
6216  ;;
6217
6218netbsd* | netbsdelf*-gnu)
6219  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6220    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6221  else
6222    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6223  fi
6224  ;;
6225
6226newos6*)
6227  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6228  lt_cv_file_magic_cmd=/usr/bin/file
6229  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6230  ;;
6231
6232*nto* | *qnx*)
6233  lt_cv_deplibs_check_method=pass_all
6234  ;;
6235
6236openbsd* | bitrig*)
6237  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6238    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6239  else
6240    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6241  fi
6242  ;;
6243
6244osf3* | osf4* | osf5*)
6245  lt_cv_deplibs_check_method=pass_all
6246  ;;
6247
6248rdos*)
6249  lt_cv_deplibs_check_method=pass_all
6250  ;;
6251
6252solaris*)
6253  lt_cv_deplibs_check_method=pass_all
6254  ;;
6255
6256sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6257  lt_cv_deplibs_check_method=pass_all
6258  ;;
6259
6260sysv4 | sysv4.3*)
6261  case $host_vendor in
6262  motorola)
6263    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]'
6264    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6265    ;;
6266  ncr)
6267    lt_cv_deplibs_check_method=pass_all
6268    ;;
6269  sequent)
6270    lt_cv_file_magic_cmd='/bin/file'
6271    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6272    ;;
6273  sni)
6274    lt_cv_file_magic_cmd='/bin/file'
6275    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6276    lt_cv_file_magic_test_file=/lib/libc.so
6277    ;;
6278  siemens)
6279    lt_cv_deplibs_check_method=pass_all
6280    ;;
6281  pc)
6282    lt_cv_deplibs_check_method=pass_all
6283    ;;
6284  esac
6285  ;;
6286
6287tpf*)
6288  lt_cv_deplibs_check_method=pass_all
6289  ;;
6290os2*)
6291  lt_cv_deplibs_check_method=pass_all
6292  ;;
6293esac
6294
6295fi
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6297$as_echo "$lt_cv_deplibs_check_method" >&6; }
6298
6299file_magic_glob=
6300want_nocaseglob=no
6301if test "$build" = "$host"; then
6302  case $host_os in
6303  mingw* | pw32*)
6304    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6305      want_nocaseglob=yes
6306    else
6307      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6308    fi
6309    ;;
6310  esac
6311fi
6312
6313file_magic_cmd=$lt_cv_file_magic_cmd
6314deplibs_check_method=$lt_cv_deplibs_check_method
6315test -z "$deplibs_check_method" && deplibs_check_method=unknown
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338if test -n "$ac_tool_prefix"; then
6339  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6340set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342$as_echo_n "checking for $ac_word... " >&6; }
6343if ${ac_cv_prog_DLLTOOL+:} false; then :
6344  $as_echo_n "(cached) " >&6
6345else
6346  if test -n "$DLLTOOL"; then
6347  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6348else
6349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352  IFS=$as_save_IFS
6353  test -z "$as_dir" && as_dir=.
6354    for ac_exec_ext in '' $ac_executable_extensions; do
6355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358    break 2
6359  fi
6360done
6361  done
6362IFS=$as_save_IFS
6363
6364fi
6365fi
6366DLLTOOL=$ac_cv_prog_DLLTOOL
6367if test -n "$DLLTOOL"; then
6368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6369$as_echo "$DLLTOOL" >&6; }
6370else
6371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372$as_echo "no" >&6; }
6373fi
6374
6375
6376fi
6377if test -z "$ac_cv_prog_DLLTOOL"; then
6378  ac_ct_DLLTOOL=$DLLTOOL
6379  # Extract the first word of "dlltool", so it can be a program name with args.
6380set dummy dlltool; ac_word=$2
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382$as_echo_n "checking for $ac_word... " >&6; }
6383if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6384  $as_echo_n "(cached) " >&6
6385else
6386  if test -n "$ac_ct_DLLTOOL"; then
6387  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6388else
6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390for as_dir in $PATH
6391do
6392  IFS=$as_save_IFS
6393  test -z "$as_dir" && as_dir=.
6394    for ac_exec_ext in '' $ac_executable_extensions; do
6395  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398    break 2
6399  fi
6400done
6401  done
6402IFS=$as_save_IFS
6403
6404fi
6405fi
6406ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6407if test -n "$ac_ct_DLLTOOL"; then
6408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6409$as_echo "$ac_ct_DLLTOOL" >&6; }
6410else
6411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412$as_echo "no" >&6; }
6413fi
6414
6415  if test "x$ac_ct_DLLTOOL" = x; then
6416    DLLTOOL="false"
6417  else
6418    case $cross_compiling:$ac_tool_warned in
6419yes:)
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6422ac_tool_warned=yes ;;
6423esac
6424    DLLTOOL=$ac_ct_DLLTOOL
6425  fi
6426else
6427  DLLTOOL="$ac_cv_prog_DLLTOOL"
6428fi
6429
6430test -z "$DLLTOOL" && DLLTOOL=dlltool
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6442$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6443if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6444  $as_echo_n "(cached) " >&6
6445else
6446  lt_cv_sharedlib_from_linklib_cmd='unknown'
6447
6448case $host_os in
6449cygwin* | mingw* | pw32* | cegcc*)
6450  # two different shell functions defined in ltmain.sh;
6451  # decide which one to use based on capabilities of $DLLTOOL
6452  case `$DLLTOOL --help 2>&1` in
6453  *--identify-strict*)
6454    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6455    ;;
6456  *)
6457    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6458    ;;
6459  esac
6460  ;;
6461*)
6462  # fallback: assume linklib IS sharedlib
6463  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6464  ;;
6465esac
6466
6467fi
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6469$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6470sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6471test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6472
6473
6474
6475
6476
6477
6478
6479if test -n "$ac_tool_prefix"; then
6480  for ac_prog in ar
6481  do
6482    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6483set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485$as_echo_n "checking for $ac_word... " >&6; }
6486if ${ac_cv_prog_AR+:} false; then :
6487  $as_echo_n "(cached) " >&6
6488else
6489  if test -n "$AR"; then
6490  ac_cv_prog_AR="$AR" # Let the user override the test.
6491else
6492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493for as_dir in $PATH
6494do
6495  IFS=$as_save_IFS
6496  test -z "$as_dir" && as_dir=.
6497    for ac_exec_ext in '' $ac_executable_extensions; do
6498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501    break 2
6502  fi
6503done
6504  done
6505IFS=$as_save_IFS
6506
6507fi
6508fi
6509AR=$ac_cv_prog_AR
6510if test -n "$AR"; then
6511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6512$as_echo "$AR" >&6; }
6513else
6514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515$as_echo "no" >&6; }
6516fi
6517
6518
6519    test -n "$AR" && break
6520  done
6521fi
6522if test -z "$AR"; then
6523  ac_ct_AR=$AR
6524  for ac_prog in ar
6525do
6526  # Extract the first word of "$ac_prog", so it can be a program name with args.
6527set dummy $ac_prog; ac_word=$2
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529$as_echo_n "checking for $ac_word... " >&6; }
6530if ${ac_cv_prog_ac_ct_AR+:} false; then :
6531  $as_echo_n "(cached) " >&6
6532else
6533  if test -n "$ac_ct_AR"; then
6534  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6535else
6536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537for as_dir in $PATH
6538do
6539  IFS=$as_save_IFS
6540  test -z "$as_dir" && as_dir=.
6541    for ac_exec_ext in '' $ac_executable_extensions; do
6542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6543    ac_cv_prog_ac_ct_AR="$ac_prog"
6544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545    break 2
6546  fi
6547done
6548  done
6549IFS=$as_save_IFS
6550
6551fi
6552fi
6553ac_ct_AR=$ac_cv_prog_ac_ct_AR
6554if test -n "$ac_ct_AR"; then
6555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6556$as_echo "$ac_ct_AR" >&6; }
6557else
6558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559$as_echo "no" >&6; }
6560fi
6561
6562
6563  test -n "$ac_ct_AR" && break
6564done
6565
6566  if test "x$ac_ct_AR" = x; then
6567    AR="false"
6568  else
6569    case $cross_compiling:$ac_tool_warned in
6570yes:)
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6573ac_tool_warned=yes ;;
6574esac
6575    AR=$ac_ct_AR
6576  fi
6577fi
6578
6579: ${AR=ar}
6580: ${AR_FLAGS=cru}
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6593$as_echo_n "checking for archiver @FILE support... " >&6; }
6594if ${lt_cv_ar_at_file+:} false; then :
6595  $as_echo_n "(cached) " >&6
6596else
6597  lt_cv_ar_at_file=no
6598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599/* end confdefs.h.  */
6600
6601int
6602main ()
6603{
6604
6605  ;
6606  return 0;
6607}
6608_ACEOF
6609if ac_fn_c_try_compile "$LINENO"; then :
6610  echo conftest.$ac_objext > conftest.lst
6611      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6612      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6613  (eval $lt_ar_try) 2>&5
6614  ac_status=$?
6615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616  test $ac_status = 0; }
6617      if test 0 -eq "$ac_status"; then
6618	# Ensure the archiver fails upon bogus file names.
6619	rm -f conftest.$ac_objext libconftest.a
6620	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6621  (eval $lt_ar_try) 2>&5
6622  ac_status=$?
6623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624  test $ac_status = 0; }
6625	if test 0 -ne "$ac_status"; then
6626          lt_cv_ar_at_file=@
6627        fi
6628      fi
6629      rm -f conftest.* libconftest.a
6630
6631fi
6632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633
6634fi
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6636$as_echo "$lt_cv_ar_at_file" >&6; }
6637
6638if test no = "$lt_cv_ar_at_file"; then
6639  archiver_list_spec=
6640else
6641  archiver_list_spec=$lt_cv_ar_at_file
6642fi
6643
6644
6645
6646
6647
6648
6649
6650if test -n "$ac_tool_prefix"; then
6651  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6652set dummy ${ac_tool_prefix}strip; ac_word=$2
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654$as_echo_n "checking for $ac_word... " >&6; }
6655if ${ac_cv_prog_STRIP+:} false; then :
6656  $as_echo_n "(cached) " >&6
6657else
6658  if test -n "$STRIP"; then
6659  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6660else
6661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662for as_dir in $PATH
6663do
6664  IFS=$as_save_IFS
6665  test -z "$as_dir" && as_dir=.
6666    for ac_exec_ext in '' $ac_executable_extensions; do
6667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670    break 2
6671  fi
6672done
6673  done
6674IFS=$as_save_IFS
6675
6676fi
6677fi
6678STRIP=$ac_cv_prog_STRIP
6679if test -n "$STRIP"; then
6680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6681$as_echo "$STRIP" >&6; }
6682else
6683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684$as_echo "no" >&6; }
6685fi
6686
6687
6688fi
6689if test -z "$ac_cv_prog_STRIP"; then
6690  ac_ct_STRIP=$STRIP
6691  # Extract the first word of "strip", so it can be a program name with args.
6692set dummy strip; ac_word=$2
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694$as_echo_n "checking for $ac_word... " >&6; }
6695if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6696  $as_echo_n "(cached) " >&6
6697else
6698  if test -n "$ac_ct_STRIP"; then
6699  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6700else
6701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702for as_dir in $PATH
6703do
6704  IFS=$as_save_IFS
6705  test -z "$as_dir" && as_dir=.
6706    for ac_exec_ext in '' $ac_executable_extensions; do
6707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708    ac_cv_prog_ac_ct_STRIP="strip"
6709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710    break 2
6711  fi
6712done
6713  done
6714IFS=$as_save_IFS
6715
6716fi
6717fi
6718ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6719if test -n "$ac_ct_STRIP"; then
6720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6721$as_echo "$ac_ct_STRIP" >&6; }
6722else
6723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724$as_echo "no" >&6; }
6725fi
6726
6727  if test "x$ac_ct_STRIP" = x; then
6728    STRIP=":"
6729  else
6730    case $cross_compiling:$ac_tool_warned in
6731yes:)
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6734ac_tool_warned=yes ;;
6735esac
6736    STRIP=$ac_ct_STRIP
6737  fi
6738else
6739  STRIP="$ac_cv_prog_STRIP"
6740fi
6741
6742test -z "$STRIP" && STRIP=:
6743
6744
6745
6746
6747
6748
6749if test -n "$ac_tool_prefix"; then
6750  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6751set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753$as_echo_n "checking for $ac_word... " >&6; }
6754if ${ac_cv_prog_RANLIB+:} false; then :
6755  $as_echo_n "(cached) " >&6
6756else
6757  if test -n "$RANLIB"; then
6758  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6759else
6760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763  IFS=$as_save_IFS
6764  test -z "$as_dir" && as_dir=.
6765    for ac_exec_ext in '' $ac_executable_extensions; do
6766  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6767    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769    break 2
6770  fi
6771done
6772  done
6773IFS=$as_save_IFS
6774
6775fi
6776fi
6777RANLIB=$ac_cv_prog_RANLIB
6778if test -n "$RANLIB"; then
6779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6780$as_echo "$RANLIB" >&6; }
6781else
6782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783$as_echo "no" >&6; }
6784fi
6785
6786
6787fi
6788if test -z "$ac_cv_prog_RANLIB"; then
6789  ac_ct_RANLIB=$RANLIB
6790  # Extract the first word of "ranlib", so it can be a program name with args.
6791set dummy ranlib; ac_word=$2
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793$as_echo_n "checking for $ac_word... " >&6; }
6794if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6795  $as_echo_n "(cached) " >&6
6796else
6797  if test -n "$ac_ct_RANLIB"; then
6798  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803  IFS=$as_save_IFS
6804  test -z "$as_dir" && as_dir=.
6805    for ac_exec_ext in '' $ac_executable_extensions; do
6806  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807    ac_cv_prog_ac_ct_RANLIB="ranlib"
6808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809    break 2
6810  fi
6811done
6812  done
6813IFS=$as_save_IFS
6814
6815fi
6816fi
6817ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6818if test -n "$ac_ct_RANLIB"; then
6819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6820$as_echo "$ac_ct_RANLIB" >&6; }
6821else
6822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823$as_echo "no" >&6; }
6824fi
6825
6826  if test "x$ac_ct_RANLIB" = x; then
6827    RANLIB=":"
6828  else
6829    case $cross_compiling:$ac_tool_warned in
6830yes:)
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6833ac_tool_warned=yes ;;
6834esac
6835    RANLIB=$ac_ct_RANLIB
6836  fi
6837else
6838  RANLIB="$ac_cv_prog_RANLIB"
6839fi
6840
6841test -z "$RANLIB" && RANLIB=:
6842
6843
6844
6845
6846
6847
6848# Determine commands to create old-style static archives.
6849old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6850old_postinstall_cmds='chmod 644 $oldlib'
6851old_postuninstall_cmds=
6852
6853if test -n "$RANLIB"; then
6854  case $host_os in
6855  bitrig* | openbsd*)
6856    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6857    ;;
6858  *)
6859    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6860    ;;
6861  esac
6862  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6863fi
6864
6865case $host_os in
6866  darwin*)
6867    lock_old_archive_extraction=yes ;;
6868  *)
6869    lock_old_archive_extraction=no ;;
6870esac
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910# If no C compiler was specified, use CC.
6911LTCC=${LTCC-"$CC"}
6912
6913# If no C compiler flags were specified, use CFLAGS.
6914LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6915
6916# Allow CC to be a program name with arguments.
6917compiler=$CC
6918
6919
6920# Check for command to grab the raw symbol name followed by C symbol from nm.
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6922$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6923if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6924  $as_echo_n "(cached) " >&6
6925else
6926
6927# These are sane defaults that work on at least a few old systems.
6928# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6929
6930# Character class describing NM global symbol codes.
6931symcode='[BCDEGRST]'
6932
6933# Regexp to match symbols that can be accessed directly from C.
6934sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6935
6936# Define system-specific variables.
6937case $host_os in
6938aix*)
6939  symcode='[BCDT]'
6940  ;;
6941cygwin* | mingw* | pw32* | cegcc*)
6942  symcode='[ABCDGISTW]'
6943  ;;
6944hpux*)
6945  if test ia64 = "$host_cpu"; then
6946    symcode='[ABCDEGRST]'
6947  fi
6948  ;;
6949irix* | nonstopux*)
6950  symcode='[BCDEGRST]'
6951  ;;
6952osf*)
6953  symcode='[BCDEGQRST]'
6954  ;;
6955solaris*)
6956  symcode='[BDRT]'
6957  ;;
6958sco3.2v5*)
6959  symcode='[DT]'
6960  ;;
6961sysv4.2uw2*)
6962  symcode='[DT]'
6963  ;;
6964sysv5* | sco5v6* | unixware* | OpenUNIX*)
6965  symcode='[ABDT]'
6966  ;;
6967sysv4)
6968  symcode='[DFNSTU]'
6969  ;;
6970esac
6971
6972# If we're using GNU nm, then use its standard symbol codes.
6973case `$NM -V 2>&1` in
6974*GNU* | *'with BFD'*)
6975  symcode='[ABCDGIRSTW]' ;;
6976esac
6977
6978if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6979  # Gets list of data symbols to import.
6980  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6981  # Adjust the below global symbol transforms to fixup imported variables.
6982  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6983  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6984  lt_c_name_lib_hook="\
6985  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6986  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6987else
6988  # Disable hooks by default.
6989  lt_cv_sys_global_symbol_to_import=
6990  lt_cdecl_hook=
6991  lt_c_name_hook=
6992  lt_c_name_lib_hook=
6993fi
6994
6995# Transform an extracted symbol line into a proper C declaration.
6996# Some systems (esp. on ia64) link data and code symbols differently,
6997# so use this general approach.
6998lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6999$lt_cdecl_hook\
7000" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7001" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7002
7003# Transform an extracted symbol line into symbol name and symbol address
7004lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7005$lt_c_name_hook\
7006" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7007" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7008
7009# Transform an extracted symbol line into symbol name with lib prefix and
7010# symbol address.
7011lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7012$lt_c_name_lib_hook\
7013" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7014" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7015" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7016
7017# Handle CRLF in mingw tool chain
7018opt_cr=
7019case $build_os in
7020mingw*)
7021  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7022  ;;
7023esac
7024
7025# Try without a prefix underscore, then with it.
7026for ac_symprfx in "" "_"; do
7027
7028  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7029  symxfrm="\\1 $ac_symprfx\\2 \\2"
7030
7031  # Write the raw and C identifiers.
7032  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7033    # Fake it for dumpbin and say T for any non-static function,
7034    # D for any global variable and I for any imported variable.
7035    # Also find C++ and __fastcall symbols from MSVC++,
7036    # which start with @ or ?.
7037    lt_cv_sys_global_symbol_pipe="$AWK '"\
7038"     {last_section=section; section=\$ 3};"\
7039"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7040"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7041"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7042"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7043"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7044"     \$ 0!~/External *\|/{next};"\
7045"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7046"     {if(hide[section]) next};"\
7047"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7048"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7049"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7050"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7051"     ' prfx=^$ac_symprfx"
7052  else
7053    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7054  fi
7055  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7056
7057  # Check to see that the pipe works correctly.
7058  pipe_works=no
7059
7060  rm -f conftest*
7061  cat > conftest.$ac_ext <<_LT_EOF
7062#ifdef __cplusplus
7063extern "C" {
7064#endif
7065char nm_test_var;
7066void nm_test_func(void);
7067void nm_test_func(void){}
7068#ifdef __cplusplus
7069}
7070#endif
7071int main(){nm_test_var='a';nm_test_func();return(0);}
7072_LT_EOF
7073
7074  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7075  (eval $ac_compile) 2>&5
7076  ac_status=$?
7077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7078  test $ac_status = 0; }; then
7079    # Now try to grab the symbols.
7080    nlist=conftest.nm
7081    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7082  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7083  ac_status=$?
7084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7085  test $ac_status = 0; } && test -s "$nlist"; then
7086      # Try sorting and uniquifying the output.
7087      if sort "$nlist" | uniq > "$nlist"T; then
7088	mv -f "$nlist"T "$nlist"
7089      else
7090	rm -f "$nlist"T
7091      fi
7092
7093      # Make sure that we snagged all the symbols we need.
7094      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7095	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7096	  cat <<_LT_EOF > conftest.$ac_ext
7097/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7098#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7099/* DATA imports from DLLs on WIN32 can't be const, because runtime
7100   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7101# define LT_DLSYM_CONST
7102#elif defined __osf__
7103/* This system does not cope well with relocations in const data.  */
7104# define LT_DLSYM_CONST
7105#else
7106# define LT_DLSYM_CONST const
7107#endif
7108
7109#ifdef __cplusplus
7110extern "C" {
7111#endif
7112
7113_LT_EOF
7114	  # Now generate the symbol file.
7115	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7116
7117	  cat <<_LT_EOF >> conftest.$ac_ext
7118
7119/* The mapping between symbol names and symbols.  */
7120LT_DLSYM_CONST struct {
7121  const char *name;
7122  void       *address;
7123}
7124lt__PROGRAM__LTX_preloaded_symbols[] =
7125{
7126  { "@PROGRAM@", (void *) 0 },
7127_LT_EOF
7128	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7129	  cat <<\_LT_EOF >> conftest.$ac_ext
7130  {0, (void *) 0}
7131};
7132
7133/* This works around a problem in FreeBSD linker */
7134#ifdef FREEBSD_WORKAROUND
7135static const void *lt_preloaded_setup() {
7136  return lt__PROGRAM__LTX_preloaded_symbols;
7137}
7138#endif
7139
7140#ifdef __cplusplus
7141}
7142#endif
7143_LT_EOF
7144	  # Now try linking the two files.
7145	  mv conftest.$ac_objext conftstm.$ac_objext
7146	  lt_globsym_save_LIBS=$LIBS
7147	  lt_globsym_save_CFLAGS=$CFLAGS
7148	  LIBS=conftstm.$ac_objext
7149	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7150	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7151  (eval $ac_link) 2>&5
7152  ac_status=$?
7153  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7154  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7155	    pipe_works=yes
7156	  fi
7157	  LIBS=$lt_globsym_save_LIBS
7158	  CFLAGS=$lt_globsym_save_CFLAGS
7159	else
7160	  echo "cannot find nm_test_func in $nlist" >&5
7161	fi
7162      else
7163	echo "cannot find nm_test_var in $nlist" >&5
7164      fi
7165    else
7166      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7167    fi
7168  else
7169    echo "$progname: failed program was:" >&5
7170    cat conftest.$ac_ext >&5
7171  fi
7172  rm -rf conftest* conftst*
7173
7174  # Do not use the global_symbol_pipe unless it works.
7175  if test yes = "$pipe_works"; then
7176    break
7177  else
7178    lt_cv_sys_global_symbol_pipe=
7179  fi
7180done
7181
7182fi
7183
7184if test -z "$lt_cv_sys_global_symbol_pipe"; then
7185  lt_cv_sys_global_symbol_to_cdecl=
7186fi
7187if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7189$as_echo "failed" >&6; }
7190else
7191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7192$as_echo "ok" >&6; }
7193fi
7194
7195# Response file support.
7196if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7197  nm_file_list_spec='@'
7198elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7199  nm_file_list_spec='@'
7200fi
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7239$as_echo_n "checking for sysroot... " >&6; }
7240
7241# Check whether --with-sysroot was given.
7242if test "${with_sysroot+set}" = set; then :
7243  withval=$with_sysroot;
7244else
7245  with_sysroot=no
7246fi
7247
7248
7249lt_sysroot=
7250case $with_sysroot in #(
7251 yes)
7252   if test yes = "$GCC"; then
7253     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7254   fi
7255   ;; #(
7256 /*)
7257   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7258   ;; #(
7259 no|'')
7260   ;; #(
7261 *)
7262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7263$as_echo "$with_sysroot" >&6; }
7264   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7265   ;;
7266esac
7267
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7269$as_echo "${lt_sysroot:-no}" >&6; }
7270
7271
7272
7273
7274
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7276$as_echo_n "checking for a working dd... " >&6; }
7277if ${ac_cv_path_lt_DD+:} false; then :
7278  $as_echo_n "(cached) " >&6
7279else
7280  printf 0123456789abcdef0123456789abcdef >conftest.i
7281cat conftest.i conftest.i >conftest2.i
7282: ${lt_DD:=$DD}
7283if test -z "$lt_DD"; then
7284  ac_path_lt_DD_found=false
7285  # Loop through the user's path and test for each of PROGNAME-LIST
7286  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287for as_dir in $PATH
7288do
7289  IFS=$as_save_IFS
7290  test -z "$as_dir" && as_dir=.
7291    for ac_prog in dd; do
7292    for ac_exec_ext in '' $ac_executable_extensions; do
7293      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7294      as_fn_executable_p "$ac_path_lt_DD" || continue
7295if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7296  cmp -s conftest.i conftest.out \
7297  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7298fi
7299      $ac_path_lt_DD_found && break 3
7300    done
7301  done
7302  done
7303IFS=$as_save_IFS
7304  if test -z "$ac_cv_path_lt_DD"; then
7305    :
7306  fi
7307else
7308  ac_cv_path_lt_DD=$lt_DD
7309fi
7310
7311rm -f conftest.i conftest2.i conftest.out
7312fi
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7314$as_echo "$ac_cv_path_lt_DD" >&6; }
7315
7316
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7318$as_echo_n "checking how to truncate binary pipes... " >&6; }
7319if ${lt_cv_truncate_bin+:} false; then :
7320  $as_echo_n "(cached) " >&6
7321else
7322  printf 0123456789abcdef0123456789abcdef >conftest.i
7323cat conftest.i conftest.i >conftest2.i
7324lt_cv_truncate_bin=
7325if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7326  cmp -s conftest.i conftest.out \
7327  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7328fi
7329rm -f conftest.i conftest2.i conftest.out
7330test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7331fi
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7333$as_echo "$lt_cv_truncate_bin" >&6; }
7334
7335
7336
7337
7338
7339
7340
7341# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7342func_cc_basename ()
7343{
7344    for cc_temp in $*""; do
7345      case $cc_temp in
7346        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7347        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7348        \-*) ;;
7349        *) break;;
7350      esac
7351    done
7352    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7353}
7354
7355# Check whether --enable-libtool-lock was given.
7356if test "${enable_libtool_lock+set}" = set; then :
7357  enableval=$enable_libtool_lock;
7358fi
7359
7360test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7361
7362# Some flags need to be propagated to the compiler or linker for good
7363# libtool support.
7364case $host in
7365ia64-*-hpux*)
7366  # Find out what ABI is being produced by ac_compile, and set mode
7367  # options accordingly.
7368  echo 'int i;' > conftest.$ac_ext
7369  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7370  (eval $ac_compile) 2>&5
7371  ac_status=$?
7372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7373  test $ac_status = 0; }; then
7374    case `/usr/bin/file conftest.$ac_objext` in
7375      *ELF-32*)
7376	HPUX_IA64_MODE=32
7377	;;
7378      *ELF-64*)
7379	HPUX_IA64_MODE=64
7380	;;
7381    esac
7382  fi
7383  rm -rf conftest*
7384  ;;
7385*-*-irix6*)
7386  # Find out what ABI is being produced by ac_compile, and set linker
7387  # options accordingly.
7388  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7389  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7390  (eval $ac_compile) 2>&5
7391  ac_status=$?
7392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393  test $ac_status = 0; }; then
7394    if test yes = "$lt_cv_prog_gnu_ld"; then
7395      case `/usr/bin/file conftest.$ac_objext` in
7396	*32-bit*)
7397	  LD="${LD-ld} -melf32bsmip"
7398	  ;;
7399	*N32*)
7400	  LD="${LD-ld} -melf32bmipn32"
7401	  ;;
7402	*64-bit*)
7403	  LD="${LD-ld} -melf64bmip"
7404	;;
7405      esac
7406    else
7407      case `/usr/bin/file conftest.$ac_objext` in
7408	*32-bit*)
7409	  LD="${LD-ld} -32"
7410	  ;;
7411	*N32*)
7412	  LD="${LD-ld} -n32"
7413	  ;;
7414	*64-bit*)
7415	  LD="${LD-ld} -64"
7416	  ;;
7417      esac
7418    fi
7419  fi
7420  rm -rf conftest*
7421  ;;
7422
7423mips64*-*linux*)
7424  # Find out what ABI is being produced by ac_compile, and set linker
7425  # options accordingly.
7426  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7427  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7428  (eval $ac_compile) 2>&5
7429  ac_status=$?
7430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431  test $ac_status = 0; }; then
7432    emul=elf
7433    case `/usr/bin/file conftest.$ac_objext` in
7434      *32-bit*)
7435	emul="${emul}32"
7436	;;
7437      *64-bit*)
7438	emul="${emul}64"
7439	;;
7440    esac
7441    case `/usr/bin/file conftest.$ac_objext` in
7442      *MSB*)
7443	emul="${emul}btsmip"
7444	;;
7445      *LSB*)
7446	emul="${emul}ltsmip"
7447	;;
7448    esac
7449    case `/usr/bin/file conftest.$ac_objext` in
7450      *N32*)
7451	emul="${emul}n32"
7452	;;
7453    esac
7454    LD="${LD-ld} -m $emul"
7455  fi
7456  rm -rf conftest*
7457  ;;
7458
7459x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7460s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7461  # Find out what ABI is being produced by ac_compile, and set linker
7462  # options accordingly.  Note that the listed cases only cover the
7463  # situations where additional linker options are needed (such as when
7464  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7465  # vice versa); the common cases where no linker options are needed do
7466  # not appear in the list.
7467  echo 'int i;' > conftest.$ac_ext
7468  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7469  (eval $ac_compile) 2>&5
7470  ac_status=$?
7471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472  test $ac_status = 0; }; then
7473    case `/usr/bin/file conftest.o` in
7474      *32-bit*)
7475	case $host in
7476	  x86_64-*kfreebsd*-gnu)
7477	    LD="${LD-ld} -m elf_i386_fbsd"
7478	    ;;
7479	  x86_64-*linux*)
7480	    case `/usr/bin/file conftest.o` in
7481	      *x86-64*)
7482		LD="${LD-ld} -m elf32_x86_64"
7483		;;
7484	      *)
7485		LD="${LD-ld} -m elf_i386"
7486		;;
7487	    esac
7488	    ;;
7489	  powerpc64le-*linux*)
7490	    LD="${LD-ld} -m elf32lppclinux"
7491	    ;;
7492	  powerpc64-*linux*)
7493	    LD="${LD-ld} -m elf32ppclinux"
7494	    ;;
7495	  s390x-*linux*)
7496	    LD="${LD-ld} -m elf_s390"
7497	    ;;
7498	  sparc64-*linux*)
7499	    LD="${LD-ld} -m elf32_sparc"
7500	    ;;
7501	esac
7502	;;
7503      *64-bit*)
7504	case $host in
7505	  x86_64-*kfreebsd*-gnu)
7506	    LD="${LD-ld} -m elf_x86_64_fbsd"
7507	    ;;
7508	  x86_64-*linux*)
7509	    LD="${LD-ld} -m elf_x86_64"
7510	    ;;
7511	  powerpcle-*linux*)
7512	    LD="${LD-ld} -m elf64lppc"
7513	    ;;
7514	  powerpc-*linux*)
7515	    LD="${LD-ld} -m elf64ppc"
7516	    ;;
7517	  s390*-*linux*|s390*-*tpf*)
7518	    LD="${LD-ld} -m elf64_s390"
7519	    ;;
7520	  sparc*-*linux*)
7521	    LD="${LD-ld} -m elf64_sparc"
7522	    ;;
7523	esac
7524	;;
7525    esac
7526  fi
7527  rm -rf conftest*
7528  ;;
7529
7530*-*-sco3.2v5*)
7531  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7532  SAVE_CFLAGS=$CFLAGS
7533  CFLAGS="$CFLAGS -belf"
7534  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7535$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7536if ${lt_cv_cc_needs_belf+:} false; then :
7537  $as_echo_n "(cached) " >&6
7538else
7539  ac_ext=c
7540ac_cpp='$CPP $CPPFLAGS'
7541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7543ac_compiler_gnu=$ac_cv_c_compiler_gnu
7544
7545     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546/* end confdefs.h.  */
7547
7548int
7549main ()
7550{
7551
7552  ;
7553  return 0;
7554}
7555_ACEOF
7556if ac_fn_c_try_link "$LINENO"; then :
7557  lt_cv_cc_needs_belf=yes
7558else
7559  lt_cv_cc_needs_belf=no
7560fi
7561rm -f core conftest.err conftest.$ac_objext \
7562    conftest$ac_exeext conftest.$ac_ext
7563     ac_ext=c
7564ac_cpp='$CPP $CPPFLAGS'
7565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7567ac_compiler_gnu=$ac_cv_c_compiler_gnu
7568
7569fi
7570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7571$as_echo "$lt_cv_cc_needs_belf" >&6; }
7572  if test yes != "$lt_cv_cc_needs_belf"; then
7573    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7574    CFLAGS=$SAVE_CFLAGS
7575  fi
7576  ;;
7577*-*solaris*)
7578  # Find out what ABI is being produced by ac_compile, and set linker
7579  # options accordingly.
7580  echo 'int i;' > conftest.$ac_ext
7581  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7582  (eval $ac_compile) 2>&5
7583  ac_status=$?
7584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585  test $ac_status = 0; }; then
7586    case `/usr/bin/file conftest.o` in
7587    *64-bit*)
7588      case $lt_cv_prog_gnu_ld in
7589      yes*)
7590        case $host in
7591        i?86-*-solaris*|x86_64-*-solaris*)
7592          LD="${LD-ld} -m elf_x86_64"
7593          ;;
7594        sparc*-*-solaris*)
7595          LD="${LD-ld} -m elf64_sparc"
7596          ;;
7597        esac
7598        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7599        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7600          LD=${LD-ld}_sol2
7601        fi
7602        ;;
7603      *)
7604	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7605	  LD="${LD-ld} -64"
7606	fi
7607	;;
7608      esac
7609      ;;
7610    esac
7611  fi
7612  rm -rf conftest*
7613  ;;
7614esac
7615
7616need_locks=$enable_libtool_lock
7617
7618if test -n "$ac_tool_prefix"; then
7619  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7620set dummy ${ac_tool_prefix}mt; ac_word=$2
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622$as_echo_n "checking for $ac_word... " >&6; }
7623if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7624  $as_echo_n "(cached) " >&6
7625else
7626  if test -n "$MANIFEST_TOOL"; then
7627  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7628else
7629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630for as_dir in $PATH
7631do
7632  IFS=$as_save_IFS
7633  test -z "$as_dir" && as_dir=.
7634    for ac_exec_ext in '' $ac_executable_extensions; do
7635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638    break 2
7639  fi
7640done
7641  done
7642IFS=$as_save_IFS
7643
7644fi
7645fi
7646MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7647if test -n "$MANIFEST_TOOL"; then
7648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7649$as_echo "$MANIFEST_TOOL" >&6; }
7650else
7651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652$as_echo "no" >&6; }
7653fi
7654
7655
7656fi
7657if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7658  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7659  # Extract the first word of "mt", so it can be a program name with args.
7660set dummy mt; ac_word=$2
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662$as_echo_n "checking for $ac_word... " >&6; }
7663if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7664  $as_echo_n "(cached) " >&6
7665else
7666  if test -n "$ac_ct_MANIFEST_TOOL"; then
7667  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7668else
7669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670for as_dir in $PATH
7671do
7672  IFS=$as_save_IFS
7673  test -z "$as_dir" && as_dir=.
7674    for ac_exec_ext in '' $ac_executable_extensions; do
7675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678    break 2
7679  fi
7680done
7681  done
7682IFS=$as_save_IFS
7683
7684fi
7685fi
7686ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7687if test -n "$ac_ct_MANIFEST_TOOL"; then
7688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7689$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7690else
7691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692$as_echo "no" >&6; }
7693fi
7694
7695  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7696    MANIFEST_TOOL=":"
7697  else
7698    case $cross_compiling:$ac_tool_warned in
7699yes:)
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7702ac_tool_warned=yes ;;
7703esac
7704    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7705  fi
7706else
7707  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7708fi
7709
7710test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7712$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7713if ${lt_cv_path_mainfest_tool+:} false; then :
7714  $as_echo_n "(cached) " >&6
7715else
7716  lt_cv_path_mainfest_tool=no
7717  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7718  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7719  cat conftest.err >&5
7720  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7721    lt_cv_path_mainfest_tool=yes
7722  fi
7723  rm -f conftest*
7724fi
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7726$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7727if test yes != "$lt_cv_path_mainfest_tool"; then
7728  MANIFEST_TOOL=:
7729fi
7730
7731
7732
7733
7734
7735
7736  case $host_os in
7737    rhapsody* | darwin*)
7738    if test -n "$ac_tool_prefix"; then
7739  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7740set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742$as_echo_n "checking for $ac_word... " >&6; }
7743if ${ac_cv_prog_DSYMUTIL+:} false; then :
7744  $as_echo_n "(cached) " >&6
7745else
7746  if test -n "$DSYMUTIL"; then
7747  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7748else
7749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750for as_dir in $PATH
7751do
7752  IFS=$as_save_IFS
7753  test -z "$as_dir" && as_dir=.
7754    for ac_exec_ext in '' $ac_executable_extensions; do
7755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7756    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758    break 2
7759  fi
7760done
7761  done
7762IFS=$as_save_IFS
7763
7764fi
7765fi
7766DSYMUTIL=$ac_cv_prog_DSYMUTIL
7767if test -n "$DSYMUTIL"; then
7768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7769$as_echo "$DSYMUTIL" >&6; }
7770else
7771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772$as_echo "no" >&6; }
7773fi
7774
7775
7776fi
7777if test -z "$ac_cv_prog_DSYMUTIL"; then
7778  ac_ct_DSYMUTIL=$DSYMUTIL
7779  # Extract the first word of "dsymutil", so it can be a program name with args.
7780set dummy dsymutil; ac_word=$2
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782$as_echo_n "checking for $ac_word... " >&6; }
7783if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7784  $as_echo_n "(cached) " >&6
7785else
7786  if test -n "$ac_ct_DSYMUTIL"; then
7787  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7788else
7789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790for as_dir in $PATH
7791do
7792  IFS=$as_save_IFS
7793  test -z "$as_dir" && as_dir=.
7794    for ac_exec_ext in '' $ac_executable_extensions; do
7795  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7796    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798    break 2
7799  fi
7800done
7801  done
7802IFS=$as_save_IFS
7803
7804fi
7805fi
7806ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7807if test -n "$ac_ct_DSYMUTIL"; then
7808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7809$as_echo "$ac_ct_DSYMUTIL" >&6; }
7810else
7811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812$as_echo "no" >&6; }
7813fi
7814
7815  if test "x$ac_ct_DSYMUTIL" = x; then
7816    DSYMUTIL=":"
7817  else
7818    case $cross_compiling:$ac_tool_warned in
7819yes:)
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7822ac_tool_warned=yes ;;
7823esac
7824    DSYMUTIL=$ac_ct_DSYMUTIL
7825  fi
7826else
7827  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7828fi
7829
7830    if test -n "$ac_tool_prefix"; then
7831  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7832set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834$as_echo_n "checking for $ac_word... " >&6; }
7835if ${ac_cv_prog_NMEDIT+:} false; then :
7836  $as_echo_n "(cached) " >&6
7837else
7838  if test -n "$NMEDIT"; then
7839  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7840else
7841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844  IFS=$as_save_IFS
7845  test -z "$as_dir" && as_dir=.
7846    for ac_exec_ext in '' $ac_executable_extensions; do
7847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850    break 2
7851  fi
7852done
7853  done
7854IFS=$as_save_IFS
7855
7856fi
7857fi
7858NMEDIT=$ac_cv_prog_NMEDIT
7859if test -n "$NMEDIT"; then
7860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7861$as_echo "$NMEDIT" >&6; }
7862else
7863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864$as_echo "no" >&6; }
7865fi
7866
7867
7868fi
7869if test -z "$ac_cv_prog_NMEDIT"; then
7870  ac_ct_NMEDIT=$NMEDIT
7871  # Extract the first word of "nmedit", so it can be a program name with args.
7872set dummy nmedit; ac_word=$2
7873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874$as_echo_n "checking for $ac_word... " >&6; }
7875if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7876  $as_echo_n "(cached) " >&6
7877else
7878  if test -n "$ac_ct_NMEDIT"; then
7879  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7880else
7881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882for as_dir in $PATH
7883do
7884  IFS=$as_save_IFS
7885  test -z "$as_dir" && as_dir=.
7886    for ac_exec_ext in '' $ac_executable_extensions; do
7887  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7888    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890    break 2
7891  fi
7892done
7893  done
7894IFS=$as_save_IFS
7895
7896fi
7897fi
7898ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7899if test -n "$ac_ct_NMEDIT"; then
7900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7901$as_echo "$ac_ct_NMEDIT" >&6; }
7902else
7903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904$as_echo "no" >&6; }
7905fi
7906
7907  if test "x$ac_ct_NMEDIT" = x; then
7908    NMEDIT=":"
7909  else
7910    case $cross_compiling:$ac_tool_warned in
7911yes:)
7912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7914ac_tool_warned=yes ;;
7915esac
7916    NMEDIT=$ac_ct_NMEDIT
7917  fi
7918else
7919  NMEDIT="$ac_cv_prog_NMEDIT"
7920fi
7921
7922    if test -n "$ac_tool_prefix"; then
7923  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7924set dummy ${ac_tool_prefix}lipo; ac_word=$2
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926$as_echo_n "checking for $ac_word... " >&6; }
7927if ${ac_cv_prog_LIPO+:} false; then :
7928  $as_echo_n "(cached) " >&6
7929else
7930  if test -n "$LIPO"; then
7931  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7932else
7933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934for as_dir in $PATH
7935do
7936  IFS=$as_save_IFS
7937  test -z "$as_dir" && as_dir=.
7938    for ac_exec_ext in '' $ac_executable_extensions; do
7939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7940    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942    break 2
7943  fi
7944done
7945  done
7946IFS=$as_save_IFS
7947
7948fi
7949fi
7950LIPO=$ac_cv_prog_LIPO
7951if test -n "$LIPO"; then
7952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7953$as_echo "$LIPO" >&6; }
7954else
7955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956$as_echo "no" >&6; }
7957fi
7958
7959
7960fi
7961if test -z "$ac_cv_prog_LIPO"; then
7962  ac_ct_LIPO=$LIPO
7963  # Extract the first word of "lipo", so it can be a program name with args.
7964set dummy lipo; ac_word=$2
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966$as_echo_n "checking for $ac_word... " >&6; }
7967if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7968  $as_echo_n "(cached) " >&6
7969else
7970  if test -n "$ac_ct_LIPO"; then
7971  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7972else
7973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974for as_dir in $PATH
7975do
7976  IFS=$as_save_IFS
7977  test -z "$as_dir" && as_dir=.
7978    for ac_exec_ext in '' $ac_executable_extensions; do
7979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7980    ac_cv_prog_ac_ct_LIPO="lipo"
7981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7982    break 2
7983  fi
7984done
7985  done
7986IFS=$as_save_IFS
7987
7988fi
7989fi
7990ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7991if test -n "$ac_ct_LIPO"; then
7992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7993$as_echo "$ac_ct_LIPO" >&6; }
7994else
7995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996$as_echo "no" >&6; }
7997fi
7998
7999  if test "x$ac_ct_LIPO" = x; then
8000    LIPO=":"
8001  else
8002    case $cross_compiling:$ac_tool_warned in
8003yes:)
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8006ac_tool_warned=yes ;;
8007esac
8008    LIPO=$ac_ct_LIPO
8009  fi
8010else
8011  LIPO="$ac_cv_prog_LIPO"
8012fi
8013
8014    if test -n "$ac_tool_prefix"; then
8015  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8016set dummy ${ac_tool_prefix}otool; ac_word=$2
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018$as_echo_n "checking for $ac_word... " >&6; }
8019if ${ac_cv_prog_OTOOL+:} false; then :
8020  $as_echo_n "(cached) " >&6
8021else
8022  if test -n "$OTOOL"; then
8023  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8024else
8025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026for as_dir in $PATH
8027do
8028  IFS=$as_save_IFS
8029  test -z "$as_dir" && as_dir=.
8030    for ac_exec_ext in '' $ac_executable_extensions; do
8031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034    break 2
8035  fi
8036done
8037  done
8038IFS=$as_save_IFS
8039
8040fi
8041fi
8042OTOOL=$ac_cv_prog_OTOOL
8043if test -n "$OTOOL"; then
8044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8045$as_echo "$OTOOL" >&6; }
8046else
8047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048$as_echo "no" >&6; }
8049fi
8050
8051
8052fi
8053if test -z "$ac_cv_prog_OTOOL"; then
8054  ac_ct_OTOOL=$OTOOL
8055  # Extract the first word of "otool", so it can be a program name with args.
8056set dummy otool; ac_word=$2
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058$as_echo_n "checking for $ac_word... " >&6; }
8059if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8060  $as_echo_n "(cached) " >&6
8061else
8062  if test -n "$ac_ct_OTOOL"; then
8063  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8064else
8065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066for as_dir in $PATH
8067do
8068  IFS=$as_save_IFS
8069  test -z "$as_dir" && as_dir=.
8070    for ac_exec_ext in '' $ac_executable_extensions; do
8071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8072    ac_cv_prog_ac_ct_OTOOL="otool"
8073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074    break 2
8075  fi
8076done
8077  done
8078IFS=$as_save_IFS
8079
8080fi
8081fi
8082ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8083if test -n "$ac_ct_OTOOL"; then
8084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8085$as_echo "$ac_ct_OTOOL" >&6; }
8086else
8087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088$as_echo "no" >&6; }
8089fi
8090
8091  if test "x$ac_ct_OTOOL" = x; then
8092    OTOOL=":"
8093  else
8094    case $cross_compiling:$ac_tool_warned in
8095yes:)
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8098ac_tool_warned=yes ;;
8099esac
8100    OTOOL=$ac_ct_OTOOL
8101  fi
8102else
8103  OTOOL="$ac_cv_prog_OTOOL"
8104fi
8105
8106    if test -n "$ac_tool_prefix"; then
8107  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8108set dummy ${ac_tool_prefix}otool64; ac_word=$2
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110$as_echo_n "checking for $ac_word... " >&6; }
8111if ${ac_cv_prog_OTOOL64+:} false; then :
8112  $as_echo_n "(cached) " >&6
8113else
8114  if test -n "$OTOOL64"; then
8115  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8116else
8117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118for as_dir in $PATH
8119do
8120  IFS=$as_save_IFS
8121  test -z "$as_dir" && as_dir=.
8122    for ac_exec_ext in '' $ac_executable_extensions; do
8123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126    break 2
8127  fi
8128done
8129  done
8130IFS=$as_save_IFS
8131
8132fi
8133fi
8134OTOOL64=$ac_cv_prog_OTOOL64
8135if test -n "$OTOOL64"; then
8136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8137$as_echo "$OTOOL64" >&6; }
8138else
8139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140$as_echo "no" >&6; }
8141fi
8142
8143
8144fi
8145if test -z "$ac_cv_prog_OTOOL64"; then
8146  ac_ct_OTOOL64=$OTOOL64
8147  # Extract the first word of "otool64", so it can be a program name with args.
8148set dummy otool64; ac_word=$2
8149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8150$as_echo_n "checking for $ac_word... " >&6; }
8151if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8152  $as_echo_n "(cached) " >&6
8153else
8154  if test -n "$ac_ct_OTOOL64"; then
8155  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8156else
8157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158for as_dir in $PATH
8159do
8160  IFS=$as_save_IFS
8161  test -z "$as_dir" && as_dir=.
8162    for ac_exec_ext in '' $ac_executable_extensions; do
8163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8164    ac_cv_prog_ac_ct_OTOOL64="otool64"
8165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8166    break 2
8167  fi
8168done
8169  done
8170IFS=$as_save_IFS
8171
8172fi
8173fi
8174ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8175if test -n "$ac_ct_OTOOL64"; then
8176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8177$as_echo "$ac_ct_OTOOL64" >&6; }
8178else
8179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180$as_echo "no" >&6; }
8181fi
8182
8183  if test "x$ac_ct_OTOOL64" = x; then
8184    OTOOL64=":"
8185  else
8186    case $cross_compiling:$ac_tool_warned in
8187yes:)
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8190ac_tool_warned=yes ;;
8191esac
8192    OTOOL64=$ac_ct_OTOOL64
8193  fi
8194else
8195  OTOOL64="$ac_cv_prog_OTOOL64"
8196fi
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8225$as_echo_n "checking for -single_module linker flag... " >&6; }
8226if ${lt_cv_apple_cc_single_mod+:} false; then :
8227  $as_echo_n "(cached) " >&6
8228else
8229  lt_cv_apple_cc_single_mod=no
8230      if test -z "$LT_MULTI_MODULE"; then
8231	# By default we will add the -single_module flag. You can override
8232	# by either setting the environment variable LT_MULTI_MODULE
8233	# non-empty at configure time, or by adding -multi_module to the
8234	# link flags.
8235	rm -rf libconftest.dylib*
8236	echo "int foo(void){return 1;}" > conftest.c
8237	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8238-dynamiclib -Wl,-single_module conftest.c" >&5
8239	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8240	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8241        _lt_result=$?
8242	# If there is a non-empty error log, and "single_module"
8243	# appears in it, assume the flag caused a linker warning
8244        if test -s conftest.err && $GREP single_module conftest.err; then
8245	  cat conftest.err >&5
8246	# Otherwise, if the output was created with a 0 exit code from
8247	# the compiler, it worked.
8248	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8249	  lt_cv_apple_cc_single_mod=yes
8250	else
8251	  cat conftest.err >&5
8252	fi
8253	rm -rf libconftest.dylib*
8254	rm -f conftest.*
8255      fi
8256fi
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8258$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8259
8260    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8261$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8262if ${lt_cv_ld_exported_symbols_list+:} false; then :
8263  $as_echo_n "(cached) " >&6
8264else
8265  lt_cv_ld_exported_symbols_list=no
8266      save_LDFLAGS=$LDFLAGS
8267      echo "_main" > conftest.sym
8268      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8269      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270/* end confdefs.h.  */
8271
8272int
8273main ()
8274{
8275
8276  ;
8277  return 0;
8278}
8279_ACEOF
8280if ac_fn_c_try_link "$LINENO"; then :
8281  lt_cv_ld_exported_symbols_list=yes
8282else
8283  lt_cv_ld_exported_symbols_list=no
8284fi
8285rm -f core conftest.err conftest.$ac_objext \
8286    conftest$ac_exeext conftest.$ac_ext
8287	LDFLAGS=$save_LDFLAGS
8288
8289fi
8290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8291$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8292
8293    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8294$as_echo_n "checking for -force_load linker flag... " >&6; }
8295if ${lt_cv_ld_force_load+:} false; then :
8296  $as_echo_n "(cached) " >&6
8297else
8298  lt_cv_ld_force_load=no
8299      cat > conftest.c << _LT_EOF
8300int forced_loaded() { return 2;}
8301_LT_EOF
8302      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8303      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8304      echo "$AR cru libconftest.a conftest.o" >&5
8305      $AR cru libconftest.a conftest.o 2>&5
8306      echo "$RANLIB libconftest.a" >&5
8307      $RANLIB libconftest.a 2>&5
8308      cat > conftest.c << _LT_EOF
8309int main() { return 0;}
8310_LT_EOF
8311      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8312      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8313      _lt_result=$?
8314      if test -s conftest.err && $GREP force_load conftest.err; then
8315	cat conftest.err >&5
8316      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8317	lt_cv_ld_force_load=yes
8318      else
8319	cat conftest.err >&5
8320      fi
8321        rm -f conftest.err libconftest.a conftest conftest.c
8322        rm -rf conftest.dSYM
8323
8324fi
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8326$as_echo "$lt_cv_ld_force_load" >&6; }
8327    case $host_os in
8328    rhapsody* | darwin1.[012])
8329      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8330    darwin1.*)
8331      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8332    darwin*) # darwin 5.x on
8333      # if running on 10.5 or later, the deployment target defaults
8334      # to the OS version, if on x86, and 10.4, the deployment
8335      # target defaults to 10.4. Don't you love it?
8336      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8337	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8338	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8339	10.[012][,.]*)
8340	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8341	10.*)
8342	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8343      esac
8344    ;;
8345  esac
8346    if test yes = "$lt_cv_apple_cc_single_mod"; then
8347      _lt_dar_single_mod='$single_module'
8348    fi
8349    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8350      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8351    else
8352      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8353    fi
8354    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8355      _lt_dsymutil='~$DSYMUTIL $lib || :'
8356    else
8357      _lt_dsymutil=
8358    fi
8359    ;;
8360  esac
8361
8362# func_munge_path_list VARIABLE PATH
8363# -----------------------------------
8364# VARIABLE is name of variable containing _space_ separated list of
8365# directories to be munged by the contents of PATH, which is string
8366# having a format:
8367# "DIR[:DIR]:"
8368#       string "DIR[ DIR]" will be prepended to VARIABLE
8369# ":DIR[:DIR]"
8370#       string "DIR[ DIR]" will be appended to VARIABLE
8371# "DIRP[:DIRP]::[DIRA:]DIRA"
8372#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8373#       "DIRA[ DIRA]" will be appended to VARIABLE
8374# "DIR[:DIR]"
8375#       VARIABLE will be replaced by "DIR[ DIR]"
8376func_munge_path_list ()
8377{
8378    case x$2 in
8379    x)
8380        ;;
8381    *:)
8382        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8383        ;;
8384    x:*)
8385        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8386        ;;
8387    *::*)
8388        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8389        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8390        ;;
8391    *)
8392        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8393        ;;
8394    esac
8395}
8396
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8398$as_echo_n "checking for ANSI C header files... " >&6; }
8399if ${ac_cv_header_stdc+:} false; then :
8400  $as_echo_n "(cached) " >&6
8401else
8402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403/* end confdefs.h.  */
8404#include <stdlib.h>
8405#include <stdarg.h>
8406#include <string.h>
8407#include <float.h>
8408
8409int
8410main ()
8411{
8412
8413  ;
8414  return 0;
8415}
8416_ACEOF
8417if ac_fn_c_try_compile "$LINENO"; then :
8418  ac_cv_header_stdc=yes
8419else
8420  ac_cv_header_stdc=no
8421fi
8422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423
8424if test $ac_cv_header_stdc = yes; then
8425  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427/* end confdefs.h.  */
8428#include <string.h>
8429
8430_ACEOF
8431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8432  $EGREP "memchr" >/dev/null 2>&1; then :
8433
8434else
8435  ac_cv_header_stdc=no
8436fi
8437rm -f conftest*
8438
8439fi
8440
8441if test $ac_cv_header_stdc = yes; then
8442  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444/* end confdefs.h.  */
8445#include <stdlib.h>
8446
8447_ACEOF
8448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8449  $EGREP "free" >/dev/null 2>&1; then :
8450
8451else
8452  ac_cv_header_stdc=no
8453fi
8454rm -f conftest*
8455
8456fi
8457
8458if test $ac_cv_header_stdc = yes; then
8459  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8460  if test "$cross_compiling" = yes; then :
8461  :
8462else
8463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464/* end confdefs.h.  */
8465#include <ctype.h>
8466#include <stdlib.h>
8467#if ((' ' & 0x0FF) == 0x020)
8468# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8469# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8470#else
8471# define ISLOWER(c) \
8472		   (('a' <= (c) && (c) <= 'i') \
8473		     || ('j' <= (c) && (c) <= 'r') \
8474		     || ('s' <= (c) && (c) <= 'z'))
8475# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8476#endif
8477
8478#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8479int
8480main ()
8481{
8482  int i;
8483  for (i = 0; i < 256; i++)
8484    if (XOR (islower (i), ISLOWER (i))
8485	|| toupper (i) != TOUPPER (i))
8486      return 2;
8487  return 0;
8488}
8489_ACEOF
8490if ac_fn_c_try_run "$LINENO"; then :
8491
8492else
8493  ac_cv_header_stdc=no
8494fi
8495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8496  conftest.$ac_objext conftest.beam conftest.$ac_ext
8497fi
8498
8499fi
8500fi
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8502$as_echo "$ac_cv_header_stdc" >&6; }
8503if test $ac_cv_header_stdc = yes; then
8504
8505$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8506
8507fi
8508
8509# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8510for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8511		  inttypes.h stdint.h unistd.h
8512do :
8513  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8514ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8515"
8516if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8517  cat >>confdefs.h <<_ACEOF
8518#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8519_ACEOF
8520
8521fi
8522
8523done
8524
8525
8526for ac_header in dlfcn.h
8527do :
8528  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8529"
8530if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8531  cat >>confdefs.h <<_ACEOF
8532#define HAVE_DLFCN_H 1
8533_ACEOF
8534
8535fi
8536
8537done
8538
8539
8540
8541
8542
8543# Set options
8544# Check whether --enable-static was given.
8545if test "${enable_static+set}" = set; then :
8546  enableval=$enable_static; p=${PACKAGE-default}
8547    case $enableval in
8548    yes) enable_static=yes ;;
8549    no) enable_static=no ;;
8550    *)
8551     enable_static=no
8552      # Look at the argument we got.  We use all the common list separators.
8553      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8554      for pkg in $enableval; do
8555	IFS=$lt_save_ifs
8556	if test "X$pkg" = "X$p"; then
8557	  enable_static=yes
8558	fi
8559      done
8560      IFS=$lt_save_ifs
8561      ;;
8562    esac
8563else
8564  enable_static=no
8565fi
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576        enable_dlopen=no
8577
8578
8579  enable_win32_dll=no
8580
8581
8582            # Check whether --enable-shared was given.
8583if test "${enable_shared+set}" = set; then :
8584  enableval=$enable_shared; p=${PACKAGE-default}
8585    case $enableval in
8586    yes) enable_shared=yes ;;
8587    no) enable_shared=no ;;
8588    *)
8589      enable_shared=no
8590      # Look at the argument we got.  We use all the common list separators.
8591      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8592      for pkg in $enableval; do
8593	IFS=$lt_save_ifs
8594	if test "X$pkg" = "X$p"; then
8595	  enable_shared=yes
8596	fi
8597      done
8598      IFS=$lt_save_ifs
8599      ;;
8600    esac
8601else
8602  enable_shared=yes
8603fi
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615# Check whether --with-pic was given.
8616if test "${with_pic+set}" = set; then :
8617  withval=$with_pic; lt_p=${PACKAGE-default}
8618    case $withval in
8619    yes|no) pic_mode=$withval ;;
8620    *)
8621      pic_mode=default
8622      # Look at the argument we got.  We use all the common list separators.
8623      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8624      for lt_pkg in $withval; do
8625	IFS=$lt_save_ifs
8626	if test "X$lt_pkg" = "X$lt_p"; then
8627	  pic_mode=yes
8628	fi
8629      done
8630      IFS=$lt_save_ifs
8631      ;;
8632    esac
8633else
8634  pic_mode=default
8635fi
8636
8637
8638
8639
8640
8641
8642
8643
8644  # Check whether --enable-fast-install was given.
8645if test "${enable_fast_install+set}" = set; then :
8646  enableval=$enable_fast_install; p=${PACKAGE-default}
8647    case $enableval in
8648    yes) enable_fast_install=yes ;;
8649    no) enable_fast_install=no ;;
8650    *)
8651      enable_fast_install=no
8652      # Look at the argument we got.  We use all the common list separators.
8653      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8654      for pkg in $enableval; do
8655	IFS=$lt_save_ifs
8656	if test "X$pkg" = "X$p"; then
8657	  enable_fast_install=yes
8658	fi
8659      done
8660      IFS=$lt_save_ifs
8661      ;;
8662    esac
8663else
8664  enable_fast_install=yes
8665fi
8666
8667
8668
8669
8670
8671
8672
8673
8674  shared_archive_member_spec=
8675case $host,$enable_shared in
8676power*-*-aix[5-9]*,yes)
8677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8678$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8679
8680# Check whether --with-aix-soname was given.
8681if test "${with_aix_soname+set}" = set; then :
8682  withval=$with_aix_soname; case $withval in
8683    aix|svr4|both)
8684      ;;
8685    *)
8686      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8687      ;;
8688    esac
8689    lt_cv_with_aix_soname=$with_aix_soname
8690else
8691  if ${lt_cv_with_aix_soname+:} false; then :
8692  $as_echo_n "(cached) " >&6
8693else
8694  lt_cv_with_aix_soname=aix
8695fi
8696
8697    with_aix_soname=$lt_cv_with_aix_soname
8698fi
8699
8700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8701$as_echo "$with_aix_soname" >&6; }
8702  if test aix != "$with_aix_soname"; then
8703    # For the AIX way of multilib, we name the shared archive member
8704    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8705    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8706    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8707    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8708    if test 64 = "${OBJECT_MODE-32}"; then
8709      shared_archive_member_spec=shr_64
8710    else
8711      shared_archive_member_spec=shr
8712    fi
8713  fi
8714  ;;
8715*)
8716  with_aix_soname=aix
8717  ;;
8718esac
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729# This can be used to rebuild libtool when needed
8730LIBTOOL_DEPS=$ltmain
8731
8732# Always use our own libtool.
8733LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764test -z "$LN_S" && LN_S="ln -s"
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779if test -n "${ZSH_VERSION+set}"; then
8780   setopt NO_GLOB_SUBST
8781fi
8782
8783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8784$as_echo_n "checking for objdir... " >&6; }
8785if ${lt_cv_objdir+:} false; then :
8786  $as_echo_n "(cached) " >&6
8787else
8788  rm -f .libs 2>/dev/null
8789mkdir .libs 2>/dev/null
8790if test -d .libs; then
8791  lt_cv_objdir=.libs
8792else
8793  # MS-DOS does not allow filenames that begin with a dot.
8794  lt_cv_objdir=_libs
8795fi
8796rmdir .libs 2>/dev/null
8797fi
8798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8799$as_echo "$lt_cv_objdir" >&6; }
8800objdir=$lt_cv_objdir
8801
8802
8803
8804
8805
8806cat >>confdefs.h <<_ACEOF
8807#define LT_OBJDIR "$lt_cv_objdir/"
8808_ACEOF
8809
8810
8811
8812
8813case $host_os in
8814aix3*)
8815  # AIX sometimes has problems with the GCC collect2 program.  For some
8816  # reason, if we set the COLLECT_NAMES environment variable, the problems
8817  # vanish in a puff of smoke.
8818  if test set != "${COLLECT_NAMES+set}"; then
8819    COLLECT_NAMES=
8820    export COLLECT_NAMES
8821  fi
8822  ;;
8823esac
8824
8825# Global variables:
8826ofile=libtool
8827can_build_shared=yes
8828
8829# All known linkers require a '.a' archive for static linking (except MSVC,
8830# which needs '.lib').
8831libext=a
8832
8833with_gnu_ld=$lt_cv_prog_gnu_ld
8834
8835old_CC=$CC
8836old_CFLAGS=$CFLAGS
8837
8838# Set sane defaults for various variables
8839test -z "$CC" && CC=cc
8840test -z "$LTCC" && LTCC=$CC
8841test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8842test -z "$LD" && LD=ld
8843test -z "$ac_objext" && ac_objext=o
8844
8845func_cc_basename $compiler
8846cc_basename=$func_cc_basename_result
8847
8848
8849# Only perform the check for file, if the check method requires it
8850test -z "$MAGIC_CMD" && MAGIC_CMD=file
8851case $deplibs_check_method in
8852file_magic*)
8853  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8854    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8855$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8856if ${lt_cv_path_MAGIC_CMD+:} false; then :
8857  $as_echo_n "(cached) " >&6
8858else
8859  case $MAGIC_CMD in
8860[\\/*] |  ?:[\\/]*)
8861  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8862  ;;
8863*)
8864  lt_save_MAGIC_CMD=$MAGIC_CMD
8865  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8866  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8867  for ac_dir in $ac_dummy; do
8868    IFS=$lt_save_ifs
8869    test -z "$ac_dir" && ac_dir=.
8870    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8871      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8872      if test -n "$file_magic_test_file"; then
8873	case $deplibs_check_method in
8874	"file_magic "*)
8875	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8876	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8877	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8878	    $EGREP "$file_magic_regex" > /dev/null; then
8879	    :
8880	  else
8881	    cat <<_LT_EOF 1>&2
8882
8883*** Warning: the command libtool uses to detect shared libraries,
8884*** $file_magic_cmd, produces output that libtool cannot recognize.
8885*** The result is that libtool may fail to recognize shared libraries
8886*** as such.  This will affect the creation of libtool libraries that
8887*** depend on shared libraries, but programs linked with such libtool
8888*** libraries will work regardless of this problem.  Nevertheless, you
8889*** may want to report the problem to your system manager and/or to
8890*** bug-libtool@gnu.org
8891
8892_LT_EOF
8893	  fi ;;
8894	esac
8895      fi
8896      break
8897    fi
8898  done
8899  IFS=$lt_save_ifs
8900  MAGIC_CMD=$lt_save_MAGIC_CMD
8901  ;;
8902esac
8903fi
8904
8905MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8906if test -n "$MAGIC_CMD"; then
8907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8908$as_echo "$MAGIC_CMD" >&6; }
8909else
8910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911$as_echo "no" >&6; }
8912fi
8913
8914
8915
8916
8917
8918if test -z "$lt_cv_path_MAGIC_CMD"; then
8919  if test -n "$ac_tool_prefix"; then
8920    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8921$as_echo_n "checking for file... " >&6; }
8922if ${lt_cv_path_MAGIC_CMD+:} false; then :
8923  $as_echo_n "(cached) " >&6
8924else
8925  case $MAGIC_CMD in
8926[\\/*] |  ?:[\\/]*)
8927  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8928  ;;
8929*)
8930  lt_save_MAGIC_CMD=$MAGIC_CMD
8931  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8932  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8933  for ac_dir in $ac_dummy; do
8934    IFS=$lt_save_ifs
8935    test -z "$ac_dir" && ac_dir=.
8936    if test -f "$ac_dir/file"; then
8937      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8938      if test -n "$file_magic_test_file"; then
8939	case $deplibs_check_method in
8940	"file_magic "*)
8941	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8942	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8943	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8944	    $EGREP "$file_magic_regex" > /dev/null; then
8945	    :
8946	  else
8947	    cat <<_LT_EOF 1>&2
8948
8949*** Warning: the command libtool uses to detect shared libraries,
8950*** $file_magic_cmd, produces output that libtool cannot recognize.
8951*** The result is that libtool may fail to recognize shared libraries
8952*** as such.  This will affect the creation of libtool libraries that
8953*** depend on shared libraries, but programs linked with such libtool
8954*** libraries will work regardless of this problem.  Nevertheless, you
8955*** may want to report the problem to your system manager and/or to
8956*** bug-libtool@gnu.org
8957
8958_LT_EOF
8959	  fi ;;
8960	esac
8961      fi
8962      break
8963    fi
8964  done
8965  IFS=$lt_save_ifs
8966  MAGIC_CMD=$lt_save_MAGIC_CMD
8967  ;;
8968esac
8969fi
8970
8971MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8972if test -n "$MAGIC_CMD"; then
8973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8974$as_echo "$MAGIC_CMD" >&6; }
8975else
8976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8977$as_echo "no" >&6; }
8978fi
8979
8980
8981  else
8982    MAGIC_CMD=:
8983  fi
8984fi
8985
8986  fi
8987  ;;
8988esac
8989
8990# Use C for the default configuration in the libtool script
8991
8992lt_save_CC=$CC
8993ac_ext=c
8994ac_cpp='$CPP $CPPFLAGS'
8995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997ac_compiler_gnu=$ac_cv_c_compiler_gnu
8998
8999
9000# Source file extension for C test sources.
9001ac_ext=c
9002
9003# Object file extension for compiled C test sources.
9004objext=o
9005objext=$objext
9006
9007# Code to be used in simple compile tests
9008lt_simple_compile_test_code="int some_variable = 0;"
9009
9010# Code to be used in simple link tests
9011lt_simple_link_test_code='int main(){return(0);}'
9012
9013
9014
9015
9016
9017
9018
9019# If no C compiler was specified, use CC.
9020LTCC=${LTCC-"$CC"}
9021
9022# If no C compiler flags were specified, use CFLAGS.
9023LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9024
9025# Allow CC to be a program name with arguments.
9026compiler=$CC
9027
9028# Save the default compiler, since it gets overwritten when the other
9029# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9030compiler_DEFAULT=$CC
9031
9032# save warnings/boilerplate of simple test code
9033ac_outfile=conftest.$ac_objext
9034echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9035eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9036_lt_compiler_boilerplate=`cat conftest.err`
9037$RM conftest*
9038
9039ac_outfile=conftest.$ac_objext
9040echo "$lt_simple_link_test_code" >conftest.$ac_ext
9041eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9042_lt_linker_boilerplate=`cat conftest.err`
9043$RM -r conftest*
9044
9045
9046## CAVEAT EMPTOR:
9047## There is no encapsulation within the following macros, do not change
9048## the running order or otherwise move them around unless you know exactly
9049## what you are doing...
9050if test -n "$compiler"; then
9051
9052lt_prog_compiler_no_builtin_flag=
9053
9054if test yes = "$GCC"; then
9055  case $cc_basename in
9056  nvcc*)
9057    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9058  *)
9059    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9060  esac
9061
9062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9063$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9064if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9065  $as_echo_n "(cached) " >&6
9066else
9067  lt_cv_prog_compiler_rtti_exceptions=no
9068   ac_outfile=conftest.$ac_objext
9069   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9070   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9071   # Insert the option either (1) after the last *FLAGS variable, or
9072   # (2) before a word containing "conftest.", or (3) at the end.
9073   # Note that $ac_compile itself does not contain backslashes and begins
9074   # with a dollar sign (not a hyphen), so the echo should work correctly.
9075   # The option is referenced via a variable to avoid confusing sed.
9076   lt_compile=`echo "$ac_compile" | $SED \
9077   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9078   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9079   -e 's:$: $lt_compiler_flag:'`
9080   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9081   (eval "$lt_compile" 2>conftest.err)
9082   ac_status=$?
9083   cat conftest.err >&5
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   if (exit $ac_status) && test -s "$ac_outfile"; then
9086     # The compiler can only warn and ignore the option if not recognized
9087     # So say no if there are warnings other than the usual output.
9088     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9089     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9090     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9091       lt_cv_prog_compiler_rtti_exceptions=yes
9092     fi
9093   fi
9094   $RM conftest*
9095
9096fi
9097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9098$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9099
9100if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9101    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9102else
9103    :
9104fi
9105
9106fi
9107
9108
9109
9110
9111
9112
9113  lt_prog_compiler_wl=
9114lt_prog_compiler_pic=
9115lt_prog_compiler_static=
9116
9117
9118  if test yes = "$GCC"; then
9119    lt_prog_compiler_wl='-Wl,'
9120    lt_prog_compiler_static='-static'
9121
9122    case $host_os in
9123      aix*)
9124      # All AIX code is PIC.
9125      if test ia64 = "$host_cpu"; then
9126	# AIX 5 now supports IA64 processor
9127	lt_prog_compiler_static='-Bstatic'
9128      fi
9129      lt_prog_compiler_pic='-fPIC'
9130      ;;
9131
9132    amigaos*)
9133      case $host_cpu in
9134      powerpc)
9135            # see comment about AmigaOS4 .so support
9136            lt_prog_compiler_pic='-fPIC'
9137        ;;
9138      m68k)
9139            # FIXME: we need at least 68020 code to build shared libraries, but
9140            # adding the '-m68020' flag to GCC prevents building anything better,
9141            # like '-m68040'.
9142            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9143        ;;
9144      esac
9145      ;;
9146
9147    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9148      # PIC is the default for these OSes.
9149      ;;
9150
9151    mingw* | cygwin* | pw32* | os2* | cegcc*)
9152      # This hack is so that the source file can tell whether it is being
9153      # built for inclusion in a dll (and should export symbols for example).
9154      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9155      # (--disable-auto-import) libraries
9156      lt_prog_compiler_pic='-DDLL_EXPORT'
9157      case $host_os in
9158      os2*)
9159	lt_prog_compiler_static='$wl-static'
9160	;;
9161      esac
9162      ;;
9163
9164    darwin* | rhapsody*)
9165      # PIC is the default on this platform
9166      # Common symbols not allowed in MH_DYLIB files
9167      lt_prog_compiler_pic='-fno-common'
9168      ;;
9169
9170    haiku*)
9171      # PIC is the default for Haiku.
9172      # The "-static" flag exists, but is broken.
9173      lt_prog_compiler_static=
9174      ;;
9175
9176    hpux*)
9177      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9178      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9179      # sets the default TLS model and affects inlining.
9180      case $host_cpu in
9181      hppa*64*)
9182	# +Z the default
9183	;;
9184      *)
9185	lt_prog_compiler_pic='-fPIC'
9186	;;
9187      esac
9188      ;;
9189
9190    interix[3-9]*)
9191      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9192      # Instead, we relocate shared libraries at runtime.
9193      ;;
9194
9195    msdosdjgpp*)
9196      # Just because we use GCC doesn't mean we suddenly get shared libraries
9197      # on systems that don't support them.
9198      lt_prog_compiler_can_build_shared=no
9199      enable_shared=no
9200      ;;
9201
9202    *nto* | *qnx*)
9203      # QNX uses GNU C++, but need to define -shared option too, otherwise
9204      # it will coredump.
9205      lt_prog_compiler_pic='-fPIC -shared'
9206      ;;
9207
9208    sysv4*MP*)
9209      if test -d /usr/nec; then
9210	lt_prog_compiler_pic=-Kconform_pic
9211      fi
9212      ;;
9213
9214    *)
9215      lt_prog_compiler_pic='-fPIC'
9216      ;;
9217    esac
9218
9219    case $cc_basename in
9220    nvcc*) # Cuda Compiler Driver 2.2
9221      lt_prog_compiler_wl='-Xlinker '
9222      if test -n "$lt_prog_compiler_pic"; then
9223        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9224      fi
9225      ;;
9226    esac
9227  else
9228    # PORTME Check for flag to pass linker flags through the system compiler.
9229    case $host_os in
9230    aix*)
9231      lt_prog_compiler_wl='-Wl,'
9232      if test ia64 = "$host_cpu"; then
9233	# AIX 5 now supports IA64 processor
9234	lt_prog_compiler_static='-Bstatic'
9235      else
9236	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9237      fi
9238      ;;
9239
9240    darwin* | rhapsody*)
9241      # PIC is the default on this platform
9242      # Common symbols not allowed in MH_DYLIB files
9243      lt_prog_compiler_pic='-fno-common'
9244      case $cc_basename in
9245      nagfor*)
9246        # NAG Fortran compiler
9247        lt_prog_compiler_wl='-Wl,-Wl,,'
9248        lt_prog_compiler_pic='-PIC'
9249        lt_prog_compiler_static='-Bstatic'
9250        ;;
9251      esac
9252      ;;
9253
9254    mingw* | cygwin* | pw32* | os2* | cegcc*)
9255      # This hack is so that the source file can tell whether it is being
9256      # built for inclusion in a dll (and should export symbols for example).
9257      lt_prog_compiler_pic='-DDLL_EXPORT'
9258      case $host_os in
9259      os2*)
9260	lt_prog_compiler_static='$wl-static'
9261	;;
9262      esac
9263      ;;
9264
9265    hpux9* | hpux10* | hpux11*)
9266      lt_prog_compiler_wl='-Wl,'
9267      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9268      # not for PA HP-UX.
9269      case $host_cpu in
9270      hppa*64*|ia64*)
9271	# +Z the default
9272	;;
9273      *)
9274	lt_prog_compiler_pic='+Z'
9275	;;
9276      esac
9277      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9278      lt_prog_compiler_static='$wl-a ${wl}archive'
9279      ;;
9280
9281    irix5* | irix6* | nonstopux*)
9282      lt_prog_compiler_wl='-Wl,'
9283      # PIC (with -KPIC) is the default.
9284      lt_prog_compiler_static='-non_shared'
9285      ;;
9286
9287    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9288      case $cc_basename in
9289      # old Intel for x86_64, which still supported -KPIC.
9290      ecc*)
9291	lt_prog_compiler_wl='-Wl,'
9292	lt_prog_compiler_pic='-KPIC'
9293	lt_prog_compiler_static='-static'
9294        ;;
9295      # icc used to be incompatible with GCC.
9296      # ICC 10 doesn't accept -KPIC any more.
9297      icc* | ifort*)
9298	lt_prog_compiler_wl='-Wl,'
9299	lt_prog_compiler_pic='-fPIC'
9300	lt_prog_compiler_static='-static'
9301        ;;
9302      # Lahey Fortran 8.1.
9303      lf95*)
9304	lt_prog_compiler_wl='-Wl,'
9305	lt_prog_compiler_pic='--shared'
9306	lt_prog_compiler_static='--static'
9307	;;
9308      nagfor*)
9309	# NAG Fortran compiler
9310	lt_prog_compiler_wl='-Wl,-Wl,,'
9311	lt_prog_compiler_pic='-PIC'
9312	lt_prog_compiler_static='-Bstatic'
9313	;;
9314      tcc*)
9315	# Fabrice Bellard et al's Tiny C Compiler
9316	lt_prog_compiler_wl='-Wl,'
9317	lt_prog_compiler_pic='-fPIC'
9318	lt_prog_compiler_static='-static'
9319	;;
9320      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9321        # Portland Group compilers (*not* the Pentium gcc compiler,
9322	# which looks to be a dead project)
9323	lt_prog_compiler_wl='-Wl,'
9324	lt_prog_compiler_pic='-fpic'
9325	lt_prog_compiler_static='-Bstatic'
9326        ;;
9327      ccc*)
9328        lt_prog_compiler_wl='-Wl,'
9329        # All Alpha code is PIC.
9330        lt_prog_compiler_static='-non_shared'
9331        ;;
9332      xl* | bgxl* | bgf* | mpixl*)
9333	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9334	lt_prog_compiler_wl='-Wl,'
9335	lt_prog_compiler_pic='-qpic'
9336	lt_prog_compiler_static='-qstaticlink'
9337	;;
9338      *)
9339	case `$CC -V 2>&1 | sed 5q` in
9340	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9341	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9342	  lt_prog_compiler_pic='-KPIC'
9343	  lt_prog_compiler_static='-Bstatic'
9344	  lt_prog_compiler_wl=''
9345	  ;;
9346	*Sun\ F* | *Sun*Fortran*)
9347	  lt_prog_compiler_pic='-KPIC'
9348	  lt_prog_compiler_static='-Bstatic'
9349	  lt_prog_compiler_wl='-Qoption ld '
9350	  ;;
9351	*Sun\ C*)
9352	  # Sun C 5.9
9353	  lt_prog_compiler_pic='-KPIC'
9354	  lt_prog_compiler_static='-Bstatic'
9355	  lt_prog_compiler_wl='-Wl,'
9356	  ;;
9357        *Intel*\ [CF]*Compiler*)
9358	  lt_prog_compiler_wl='-Wl,'
9359	  lt_prog_compiler_pic='-fPIC'
9360	  lt_prog_compiler_static='-static'
9361	  ;;
9362	*Portland\ Group*)
9363	  lt_prog_compiler_wl='-Wl,'
9364	  lt_prog_compiler_pic='-fpic'
9365	  lt_prog_compiler_static='-Bstatic'
9366	  ;;
9367	esac
9368	;;
9369      esac
9370      ;;
9371
9372    newsos6)
9373      lt_prog_compiler_pic='-KPIC'
9374      lt_prog_compiler_static='-Bstatic'
9375      ;;
9376
9377    *nto* | *qnx*)
9378      # QNX uses GNU C++, but need to define -shared option too, otherwise
9379      # it will coredump.
9380      lt_prog_compiler_pic='-fPIC -shared'
9381      ;;
9382
9383    osf3* | osf4* | osf5*)
9384      lt_prog_compiler_wl='-Wl,'
9385      # All OSF/1 code is PIC.
9386      lt_prog_compiler_static='-non_shared'
9387      ;;
9388
9389    rdos*)
9390      lt_prog_compiler_static='-non_shared'
9391      ;;
9392
9393    solaris*)
9394      lt_prog_compiler_pic='-KPIC'
9395      lt_prog_compiler_static='-Bstatic'
9396      case $cc_basename in
9397      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9398	lt_prog_compiler_wl='-Qoption ld ';;
9399      *)
9400	lt_prog_compiler_wl='-Wl,';;
9401      esac
9402      ;;
9403
9404    sunos4*)
9405      lt_prog_compiler_wl='-Qoption ld '
9406      lt_prog_compiler_pic='-PIC'
9407      lt_prog_compiler_static='-Bstatic'
9408      ;;
9409
9410    sysv4 | sysv4.2uw2* | sysv4.3*)
9411      lt_prog_compiler_wl='-Wl,'
9412      lt_prog_compiler_pic='-KPIC'
9413      lt_prog_compiler_static='-Bstatic'
9414      ;;
9415
9416    sysv4*MP*)
9417      if test -d /usr/nec; then
9418	lt_prog_compiler_pic='-Kconform_pic'
9419	lt_prog_compiler_static='-Bstatic'
9420      fi
9421      ;;
9422
9423    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9424      lt_prog_compiler_wl='-Wl,'
9425      lt_prog_compiler_pic='-KPIC'
9426      lt_prog_compiler_static='-Bstatic'
9427      ;;
9428
9429    unicos*)
9430      lt_prog_compiler_wl='-Wl,'
9431      lt_prog_compiler_can_build_shared=no
9432      ;;
9433
9434    uts4*)
9435      lt_prog_compiler_pic='-pic'
9436      lt_prog_compiler_static='-Bstatic'
9437      ;;
9438
9439    *)
9440      lt_prog_compiler_can_build_shared=no
9441      ;;
9442    esac
9443  fi
9444
9445case $host_os in
9446  # For platforms that do not support PIC, -DPIC is meaningless:
9447  *djgpp*)
9448    lt_prog_compiler_pic=
9449    ;;
9450  *)
9451    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9452    ;;
9453esac
9454
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9456$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9457if ${lt_cv_prog_compiler_pic+:} false; then :
9458  $as_echo_n "(cached) " >&6
9459else
9460  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9461fi
9462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9463$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9464lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9465
9466#
9467# Check to make sure the PIC flag actually works.
9468#
9469if test -n "$lt_prog_compiler_pic"; then
9470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9471$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9472if ${lt_cv_prog_compiler_pic_works+:} false; then :
9473  $as_echo_n "(cached) " >&6
9474else
9475  lt_cv_prog_compiler_pic_works=no
9476   ac_outfile=conftest.$ac_objext
9477   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9478   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9479   # Insert the option either (1) after the last *FLAGS variable, or
9480   # (2) before a word containing "conftest.", or (3) at the end.
9481   # Note that $ac_compile itself does not contain backslashes and begins
9482   # with a dollar sign (not a hyphen), so the echo should work correctly.
9483   # The option is referenced via a variable to avoid confusing sed.
9484   lt_compile=`echo "$ac_compile" | $SED \
9485   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9486   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9487   -e 's:$: $lt_compiler_flag:'`
9488   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9489   (eval "$lt_compile" 2>conftest.err)
9490   ac_status=$?
9491   cat conftest.err >&5
9492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493   if (exit $ac_status) && test -s "$ac_outfile"; then
9494     # The compiler can only warn and ignore the option if not recognized
9495     # So say no if there are warnings other than the usual output.
9496     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9497     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9498     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9499       lt_cv_prog_compiler_pic_works=yes
9500     fi
9501   fi
9502   $RM conftest*
9503
9504fi
9505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9506$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9507
9508if test yes = "$lt_cv_prog_compiler_pic_works"; then
9509    case $lt_prog_compiler_pic in
9510     "" | " "*) ;;
9511     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9512     esac
9513else
9514    lt_prog_compiler_pic=
9515     lt_prog_compiler_can_build_shared=no
9516fi
9517
9518fi
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530#
9531# Check to make sure the static flag actually works.
9532#
9533wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9535$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9536if ${lt_cv_prog_compiler_static_works+:} false; then :
9537  $as_echo_n "(cached) " >&6
9538else
9539  lt_cv_prog_compiler_static_works=no
9540   save_LDFLAGS=$LDFLAGS
9541   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9542   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9543   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9544     # The linker can only warn and ignore the option if not recognized
9545     # So say no if there are warnings
9546     if test -s conftest.err; then
9547       # Append any errors to the config.log.
9548       cat conftest.err 1>&5
9549       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9550       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9551       if diff conftest.exp conftest.er2 >/dev/null; then
9552         lt_cv_prog_compiler_static_works=yes
9553       fi
9554     else
9555       lt_cv_prog_compiler_static_works=yes
9556     fi
9557   fi
9558   $RM -r conftest*
9559   LDFLAGS=$save_LDFLAGS
9560
9561fi
9562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9563$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9564
9565if test yes = "$lt_cv_prog_compiler_static_works"; then
9566    :
9567else
9568    lt_prog_compiler_static=
9569fi
9570
9571
9572
9573
9574
9575
9576
9577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9578$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9579if ${lt_cv_prog_compiler_c_o+:} false; then :
9580  $as_echo_n "(cached) " >&6
9581else
9582  lt_cv_prog_compiler_c_o=no
9583   $RM -r conftest 2>/dev/null
9584   mkdir conftest
9585   cd conftest
9586   mkdir out
9587   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9588
9589   lt_compiler_flag="-o out/conftest2.$ac_objext"
9590   # Insert the option either (1) after the last *FLAGS variable, or
9591   # (2) before a word containing "conftest.", or (3) at the end.
9592   # Note that $ac_compile itself does not contain backslashes and begins
9593   # with a dollar sign (not a hyphen), so the echo should work correctly.
9594   lt_compile=`echo "$ac_compile" | $SED \
9595   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9596   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9597   -e 's:$: $lt_compiler_flag:'`
9598   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9599   (eval "$lt_compile" 2>out/conftest.err)
9600   ac_status=$?
9601   cat out/conftest.err >&5
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9604   then
9605     # The compiler can only warn and ignore the option if not recognized
9606     # So say no if there are warnings
9607     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9608     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9609     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9610       lt_cv_prog_compiler_c_o=yes
9611     fi
9612   fi
9613   chmod u+w . 2>&5
9614   $RM conftest*
9615   # SGI C++ compiler will create directory out/ii_files/ for
9616   # template instantiation
9617   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9618   $RM out/* && rmdir out
9619   cd ..
9620   $RM -r conftest
9621   $RM conftest*
9622
9623fi
9624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9625$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9626
9627
9628
9629
9630
9631
9632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9633$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9634if ${lt_cv_prog_compiler_c_o+:} false; then :
9635  $as_echo_n "(cached) " >&6
9636else
9637  lt_cv_prog_compiler_c_o=no
9638   $RM -r conftest 2>/dev/null
9639   mkdir conftest
9640   cd conftest
9641   mkdir out
9642   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9643
9644   lt_compiler_flag="-o out/conftest2.$ac_objext"
9645   # Insert the option either (1) after the last *FLAGS variable, or
9646   # (2) before a word containing "conftest.", or (3) at the end.
9647   # Note that $ac_compile itself does not contain backslashes and begins
9648   # with a dollar sign (not a hyphen), so the echo should work correctly.
9649   lt_compile=`echo "$ac_compile" | $SED \
9650   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9651   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9652   -e 's:$: $lt_compiler_flag:'`
9653   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9654   (eval "$lt_compile" 2>out/conftest.err)
9655   ac_status=$?
9656   cat out/conftest.err >&5
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9659   then
9660     # The compiler can only warn and ignore the option if not recognized
9661     # So say no if there are warnings
9662     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9663     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9664     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9665       lt_cv_prog_compiler_c_o=yes
9666     fi
9667   fi
9668   chmod u+w . 2>&5
9669   $RM conftest*
9670   # SGI C++ compiler will create directory out/ii_files/ for
9671   # template instantiation
9672   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9673   $RM out/* && rmdir out
9674   cd ..
9675   $RM -r conftest
9676   $RM conftest*
9677
9678fi
9679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9680$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9681
9682
9683
9684
9685hard_links=nottested
9686if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9687  # do not overwrite the value of need_locks provided by the user
9688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9689$as_echo_n "checking if we can lock with hard links... " >&6; }
9690  hard_links=yes
9691  $RM conftest*
9692  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9693  touch conftest.a
9694  ln conftest.a conftest.b 2>&5 || hard_links=no
9695  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9697$as_echo "$hard_links" >&6; }
9698  if test no = "$hard_links"; then
9699    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9700$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9701    need_locks=warn
9702  fi
9703else
9704  need_locks=no
9705fi
9706
9707
9708
9709
9710
9711
9712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9713$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9714
9715  runpath_var=
9716  allow_undefined_flag=
9717  always_export_symbols=no
9718  archive_cmds=
9719  archive_expsym_cmds=
9720  compiler_needs_object=no
9721  enable_shared_with_static_runtimes=no
9722  export_dynamic_flag_spec=
9723  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9724  hardcode_automatic=no
9725  hardcode_direct=no
9726  hardcode_direct_absolute=no
9727  hardcode_libdir_flag_spec=
9728  hardcode_libdir_separator=
9729  hardcode_minus_L=no
9730  hardcode_shlibpath_var=unsupported
9731  inherit_rpath=no
9732  link_all_deplibs=unknown
9733  module_cmds=
9734  module_expsym_cmds=
9735  old_archive_from_new_cmds=
9736  old_archive_from_expsyms_cmds=
9737  thread_safe_flag_spec=
9738  whole_archive_flag_spec=
9739  # include_expsyms should be a list of space-separated symbols to be *always*
9740  # included in the symbol list
9741  include_expsyms=
9742  # exclude_expsyms can be an extended regexp of symbols to exclude
9743  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9744  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9745  # as well as any symbol that contains 'd'.
9746  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9747  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9748  # platforms (ab)use it in PIC code, but their linkers get confused if
9749  # the symbol is explicitly referenced.  Since portable code cannot
9750  # rely on this symbol name, it's probably fine to never include it in
9751  # preloaded symbol tables.
9752  # Exclude shared library initialization/finalization symbols.
9753  extract_expsyms_cmds=
9754
9755  case $host_os in
9756  cygwin* | mingw* | pw32* | cegcc*)
9757    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9758    # When not using gcc, we currently assume that we are using
9759    # Microsoft Visual C++.
9760    if test yes != "$GCC"; then
9761      with_gnu_ld=no
9762    fi
9763    ;;
9764  interix*)
9765    # we just hope/assume this is gcc and not c89 (= MSVC++)
9766    with_gnu_ld=yes
9767    ;;
9768  openbsd* | bitrig*)
9769    with_gnu_ld=no
9770    ;;
9771  linux* | k*bsd*-gnu | gnu*)
9772    link_all_deplibs=no
9773    ;;
9774  esac
9775
9776  ld_shlibs=yes
9777
9778  # On some targets, GNU ld is compatible enough with the native linker
9779  # that we're better off using the native interface for both.
9780  lt_use_gnu_ld_interface=no
9781  if test yes = "$with_gnu_ld"; then
9782    case $host_os in
9783      aix*)
9784	# The AIX port of GNU ld has always aspired to compatibility
9785	# with the native linker.  However, as the warning in the GNU ld
9786	# block says, versions before 2.19.5* couldn't really create working
9787	# shared libraries, regardless of the interface used.
9788	case `$LD -v 2>&1` in
9789	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9790	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9791	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9792	  *)
9793	    lt_use_gnu_ld_interface=yes
9794	    ;;
9795	esac
9796	;;
9797      *)
9798	lt_use_gnu_ld_interface=yes
9799	;;
9800    esac
9801  fi
9802
9803  if test yes = "$lt_use_gnu_ld_interface"; then
9804    # If archive_cmds runs LD, not CC, wlarc should be empty
9805    wlarc='$wl'
9806
9807    # Set some defaults for GNU ld with shared library support. These
9808    # are reset later if shared libraries are not supported. Putting them
9809    # here allows them to be overridden if necessary.
9810    runpath_var=LD_RUN_PATH
9811    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9812    export_dynamic_flag_spec='$wl--export-dynamic'
9813    # ancient GNU ld didn't support --whole-archive et. al.
9814    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9815      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9816    else
9817      whole_archive_flag_spec=
9818    fi
9819    supports_anon_versioning=no
9820    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9821      *GNU\ gold*) supports_anon_versioning=yes ;;
9822      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9823      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9824      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9825      *\ 2.11.*) ;; # other 2.11 versions
9826      *) supports_anon_versioning=yes ;;
9827    esac
9828
9829    # See if GNU ld supports shared libraries.
9830    case $host_os in
9831    aix[3-9]*)
9832      # On AIX/PPC, the GNU linker is very broken
9833      if test ia64 != "$host_cpu"; then
9834	ld_shlibs=no
9835	cat <<_LT_EOF 1>&2
9836
9837*** Warning: the GNU linker, at least up to release 2.19, is reported
9838*** to be unable to reliably create shared libraries on AIX.
9839*** Therefore, libtool is disabling shared libraries support.  If you
9840*** really care for shared libraries, you may want to install binutils
9841*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9842*** You will then need to restart the configuration process.
9843
9844_LT_EOF
9845      fi
9846      ;;
9847
9848    amigaos*)
9849      case $host_cpu in
9850      powerpc)
9851            # see comment about AmigaOS4 .so support
9852            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9853            archive_expsym_cmds=''
9854        ;;
9855      m68k)
9856            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)'
9857            hardcode_libdir_flag_spec='-L$libdir'
9858            hardcode_minus_L=yes
9859        ;;
9860      esac
9861      ;;
9862
9863    beos*)
9864      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9865	allow_undefined_flag=unsupported
9866	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9867	# support --undefined.  This deserves some investigation.  FIXME
9868	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9869      else
9870	ld_shlibs=no
9871      fi
9872      ;;
9873
9874    cygwin* | mingw* | pw32* | cegcc*)
9875      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9876      # as there is no search path for DLLs.
9877      hardcode_libdir_flag_spec='-L$libdir'
9878      export_dynamic_flag_spec='$wl--export-all-symbols'
9879      allow_undefined_flag=unsupported
9880      always_export_symbols=no
9881      enable_shared_with_static_runtimes=yes
9882      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9883      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9884
9885      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9886        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9887	# If the export-symbols file already is a .def file, use it as
9888	# is; otherwise, prepend EXPORTS...
9889	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9890          cp $export_symbols $output_objdir/$soname.def;
9891        else
9892          echo EXPORTS > $output_objdir/$soname.def;
9893          cat $export_symbols >> $output_objdir/$soname.def;
9894        fi~
9895        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9896      else
9897	ld_shlibs=no
9898      fi
9899      ;;
9900
9901    haiku*)
9902      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9903      link_all_deplibs=yes
9904      ;;
9905
9906    os2*)
9907      hardcode_libdir_flag_spec='-L$libdir'
9908      hardcode_minus_L=yes
9909      allow_undefined_flag=unsupported
9910      shrext_cmds=.dll
9911      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9912	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9913	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9914	$ECHO EXPORTS >> $output_objdir/$libname.def~
9915	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9916	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9917	emximp -o $lib $output_objdir/$libname.def'
9918      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9919	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9920	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9921	$ECHO EXPORTS >> $output_objdir/$libname.def~
9922	prefix_cmds="$SED"~
9923	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9924	  prefix_cmds="$prefix_cmds -e 1d";
9925	fi~
9926	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9927	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9928	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9929	emximp -o $lib $output_objdir/$libname.def'
9930      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9931      enable_shared_with_static_runtimes=yes
9932      ;;
9933
9934    interix[3-9]*)
9935      hardcode_direct=no
9936      hardcode_shlibpath_var=no
9937      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9938      export_dynamic_flag_spec='$wl-E'
9939      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9940      # Instead, shared libraries are loaded at an image base (0x10000000 by
9941      # default) and relocated if they conflict, which is a slow very memory
9942      # consuming and fragmenting process.  To avoid this, we pick a random,
9943      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9944      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9945      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9946      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'
9947      ;;
9948
9949    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9950      tmp_diet=no
9951      if test linux-dietlibc = "$host_os"; then
9952	case $cc_basename in
9953	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9954	esac
9955      fi
9956      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9957	 && test no = "$tmp_diet"
9958      then
9959	tmp_addflag=' $pic_flag'
9960	tmp_sharedflag='-shared'
9961	case $cc_basename,$host_cpu in
9962        pgcc*)				# Portland Group C compiler
9963	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9964	  tmp_addflag=' $pic_flag'
9965	  ;;
9966	pgf77* | pgf90* | pgf95* | pgfortran*)
9967					# Portland Group f77 and f90 compilers
9968	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9969	  tmp_addflag=' $pic_flag -Mnomain' ;;
9970	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9971	  tmp_addflag=' -i_dynamic' ;;
9972	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9973	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9974	ifc* | ifort*)			# Intel Fortran compiler
9975	  tmp_addflag=' -nofor_main' ;;
9976	lf95*)				# Lahey Fortran 8.1
9977	  whole_archive_flag_spec=
9978	  tmp_sharedflag='--shared' ;;
9979        nagfor*)                        # NAGFOR 5.3
9980          tmp_sharedflag='-Wl,-shared' ;;
9981	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9982	  tmp_sharedflag='-qmkshrobj'
9983	  tmp_addflag= ;;
9984	nvcc*)	# Cuda Compiler Driver 2.2
9985	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9986	  compiler_needs_object=yes
9987	  ;;
9988	esac
9989	case `$CC -V 2>&1 | sed 5q` in
9990	*Sun\ C*)			# Sun C 5.9
9991	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9992	  compiler_needs_object=yes
9993	  tmp_sharedflag='-G' ;;
9994	*Sun\ F*)			# Sun Fortran 8.3
9995	  tmp_sharedflag='-G' ;;
9996	esac
9997	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9998
9999        if test yes = "$supports_anon_versioning"; then
10000          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10001            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10002            echo "local: *; };" >> $output_objdir/$libname.ver~
10003            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10004        fi
10005
10006	case $cc_basename in
10007	tcc*)
10008	  export_dynamic_flag_spec='-rdynamic'
10009	  ;;
10010	xlf* | bgf* | bgxlf* | mpixlf*)
10011	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10012	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10013	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10014	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10015	  if test yes = "$supports_anon_versioning"; then
10016	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10017              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10018              echo "local: *; };" >> $output_objdir/$libname.ver~
10019              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10020	  fi
10021	  ;;
10022	esac
10023      else
10024        ld_shlibs=no
10025      fi
10026      ;;
10027
10028    netbsd* | netbsdelf*-gnu)
10029      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10030	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10031	wlarc=
10032      else
10033	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10034	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10035      fi
10036      ;;
10037
10038    solaris*)
10039      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10040	ld_shlibs=no
10041	cat <<_LT_EOF 1>&2
10042
10043*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10044*** create shared libraries on Solaris systems.  Therefore, libtool
10045*** is disabling shared libraries support.  We urge you to upgrade GNU
10046*** binutils to release 2.9.1 or newer.  Another option is to modify
10047*** your PATH or compiler configuration so that the native linker is
10048*** used, and then restart.
10049
10050_LT_EOF
10051      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10052	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10053	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10054      else
10055	ld_shlibs=no
10056      fi
10057      ;;
10058
10059    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10060      case `$LD -v 2>&1` in
10061        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10062	ld_shlibs=no
10063	cat <<_LT_EOF 1>&2
10064
10065*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10066*** reliably create shared libraries on SCO systems.  Therefore, libtool
10067*** is disabling shared libraries support.  We urge you to upgrade GNU
10068*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10069*** your PATH or compiler configuration so that the native linker is
10070*** used, and then restart.
10071
10072_LT_EOF
10073	;;
10074	*)
10075	  # For security reasons, it is highly recommended that you always
10076	  # use absolute paths for naming shared libraries, and exclude the
10077	  # DT_RUNPATH tag from executables and libraries.  But doing so
10078	  # requires that you compile everything twice, which is a pain.
10079	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10080	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10081	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10082	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10083	  else
10084	    ld_shlibs=no
10085	  fi
10086	;;
10087      esac
10088      ;;
10089
10090    sunos4*)
10091      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10092      wlarc=
10093      hardcode_direct=yes
10094      hardcode_shlibpath_var=no
10095      ;;
10096
10097    *)
10098      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10099	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10100	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10101      else
10102	ld_shlibs=no
10103      fi
10104      ;;
10105    esac
10106
10107    if test no = "$ld_shlibs"; then
10108      runpath_var=
10109      hardcode_libdir_flag_spec=
10110      export_dynamic_flag_spec=
10111      whole_archive_flag_spec=
10112    fi
10113  else
10114    # PORTME fill in a description of your system's linker (not GNU ld)
10115    case $host_os in
10116    aix3*)
10117      allow_undefined_flag=unsupported
10118      always_export_symbols=yes
10119      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'
10120      # Note: this linker hardcodes the directories in LIBPATH if there
10121      # are no directories specified by -L.
10122      hardcode_minus_L=yes
10123      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10124	# Neither direct hardcoding nor static linking is supported with a
10125	# broken collect2.
10126	hardcode_direct=unsupported
10127      fi
10128      ;;
10129
10130    aix[4-9]*)
10131      if test ia64 = "$host_cpu"; then
10132	# On IA64, the linker does run time linking by default, so we don't
10133	# have to do anything special.
10134	aix_use_runtimelinking=no
10135	exp_sym_flag='-Bexport'
10136	no_entry_flag=
10137      else
10138	# If we're using GNU nm, then we don't want the "-C" option.
10139	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10140	# Without the "-l" option, or with the "-B" option, AIX nm treats
10141	# weak defined symbols like other global defined symbols, whereas
10142	# GNU nm marks them as "W".
10143	# While the 'weak' keyword is ignored in the Export File, we need
10144	# it in the Import File for the 'aix-soname' feature, so we have
10145	# to replace the "-B" option with "-P" for AIX nm.
10146	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10147	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10148	else
10149	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10150	fi
10151	aix_use_runtimelinking=no
10152
10153	# Test if we are trying to use run time linking or normal
10154	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10155	# have runtime linking enabled, and use it for executables.
10156	# For shared libraries, we enable/disable runtime linking
10157	# depending on the kind of the shared library created -
10158	# when "with_aix_soname,aix_use_runtimelinking" is:
10159	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10160	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10161	#            lib.a           static archive
10162	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10163	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10164	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10165	#            lib.a(lib.so.V) shared, rtl:no
10166	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10167	#            lib.a           static archive
10168	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10169	  for ld_flag in $LDFLAGS; do
10170	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10171	    aix_use_runtimelinking=yes
10172	    break
10173	  fi
10174	  done
10175	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10176	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10177	    # so we don't have lib.a shared libs to link our executables.
10178	    # We have to force runtime linking in this case.
10179	    aix_use_runtimelinking=yes
10180	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10181	  fi
10182	  ;;
10183	esac
10184
10185	exp_sym_flag='-bexport'
10186	no_entry_flag='-bnoentry'
10187      fi
10188
10189      # When large executables or shared objects are built, AIX ld can
10190      # have problems creating the table of contents.  If linking a library
10191      # or program results in "error TOC overflow" add -mminimal-toc to
10192      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10193      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10194
10195      archive_cmds=''
10196      hardcode_direct=yes
10197      hardcode_direct_absolute=yes
10198      hardcode_libdir_separator=':'
10199      link_all_deplibs=yes
10200      file_list_spec='$wl-f,'
10201      case $with_aix_soname,$aix_use_runtimelinking in
10202      aix,*) ;; # traditional, no import file
10203      svr4,* | *,yes) # use import file
10204	# The Import File defines what to hardcode.
10205	hardcode_direct=no
10206	hardcode_direct_absolute=no
10207	;;
10208      esac
10209
10210      if test yes = "$GCC"; then
10211	case $host_os in aix4.[012]|aix4.[012].*)
10212	# We only want to do this on AIX 4.2 and lower, the check
10213	# below for broken collect2 doesn't work under 4.3+
10214	  collect2name=`$CC -print-prog-name=collect2`
10215	  if test -f "$collect2name" &&
10216	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10217	  then
10218	  # We have reworked collect2
10219	  :
10220	  else
10221	  # We have old collect2
10222	  hardcode_direct=unsupported
10223	  # It fails to find uninstalled libraries when the uninstalled
10224	  # path is not listed in the libpath.  Setting hardcode_minus_L
10225	  # to unsupported forces relinking
10226	  hardcode_minus_L=yes
10227	  hardcode_libdir_flag_spec='-L$libdir'
10228	  hardcode_libdir_separator=
10229	  fi
10230	  ;;
10231	esac
10232	shared_flag='-shared'
10233	if test yes = "$aix_use_runtimelinking"; then
10234	  shared_flag="$shared_flag "'$wl-G'
10235	fi
10236	# Need to ensure runtime linking is disabled for the traditional
10237	# shared library, or the linker may eventually find shared libraries
10238	# /with/ Import File - we do not want to mix them.
10239	shared_flag_aix='-shared'
10240	shared_flag_svr4='-shared $wl-G'
10241      else
10242	# not using gcc
10243	if test ia64 = "$host_cpu"; then
10244	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10245	# chokes on -Wl,-G. The following line is correct:
10246	  shared_flag='-G'
10247	else
10248	  if test yes = "$aix_use_runtimelinking"; then
10249	    shared_flag='$wl-G'
10250	  else
10251	    shared_flag='$wl-bM:SRE'
10252	  fi
10253	  shared_flag_aix='$wl-bM:SRE'
10254	  shared_flag_svr4='$wl-G'
10255	fi
10256      fi
10257
10258      export_dynamic_flag_spec='$wl-bexpall'
10259      # It seems that -bexpall does not export symbols beginning with
10260      # underscore (_), so it is better to generate a list of symbols to export.
10261      always_export_symbols=yes
10262      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10263	# Warning - without using the other runtime loading flags (-brtl),
10264	# -berok will link without error, but may produce a broken library.
10265	allow_undefined_flag='-berok'
10266        # Determine the default libpath from the value encoded in an
10267        # empty executable.
10268        if test set = "${lt_cv_aix_libpath+set}"; then
10269  aix_libpath=$lt_cv_aix_libpath
10270else
10271  if ${lt_cv_aix_libpath_+:} false; then :
10272  $as_echo_n "(cached) " >&6
10273else
10274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275/* end confdefs.h.  */
10276
10277int
10278main ()
10279{
10280
10281  ;
10282  return 0;
10283}
10284_ACEOF
10285if ac_fn_c_try_link "$LINENO"; then :
10286
10287  lt_aix_libpath_sed='
10288      /Import File Strings/,/^$/ {
10289	  /^0/ {
10290	      s/^0  *\([^ ]*\) *$/\1/
10291	      p
10292	  }
10293      }'
10294  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10295  # Check for a 64-bit object if we didn't find anything.
10296  if test -z "$lt_cv_aix_libpath_"; then
10297    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10298  fi
10299fi
10300rm -f core conftest.err conftest.$ac_objext \
10301    conftest$ac_exeext conftest.$ac_ext
10302  if test -z "$lt_cv_aix_libpath_"; then
10303    lt_cv_aix_libpath_=/usr/lib:/lib
10304  fi
10305
10306fi
10307
10308  aix_libpath=$lt_cv_aix_libpath_
10309fi
10310
10311        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10312        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10313      else
10314	if test ia64 = "$host_cpu"; then
10315	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10316	  allow_undefined_flag="-z nodefs"
10317	  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"
10318	else
10319	 # Determine the default libpath from the value encoded in an
10320	 # empty executable.
10321	 if test set = "${lt_cv_aix_libpath+set}"; then
10322  aix_libpath=$lt_cv_aix_libpath
10323else
10324  if ${lt_cv_aix_libpath_+:} false; then :
10325  $as_echo_n "(cached) " >&6
10326else
10327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328/* end confdefs.h.  */
10329
10330int
10331main ()
10332{
10333
10334  ;
10335  return 0;
10336}
10337_ACEOF
10338if ac_fn_c_try_link "$LINENO"; then :
10339
10340  lt_aix_libpath_sed='
10341      /Import File Strings/,/^$/ {
10342	  /^0/ {
10343	      s/^0  *\([^ ]*\) *$/\1/
10344	      p
10345	  }
10346      }'
10347  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10348  # Check for a 64-bit object if we didn't find anything.
10349  if test -z "$lt_cv_aix_libpath_"; then
10350    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10351  fi
10352fi
10353rm -f core conftest.err conftest.$ac_objext \
10354    conftest$ac_exeext conftest.$ac_ext
10355  if test -z "$lt_cv_aix_libpath_"; then
10356    lt_cv_aix_libpath_=/usr/lib:/lib
10357  fi
10358
10359fi
10360
10361  aix_libpath=$lt_cv_aix_libpath_
10362fi
10363
10364	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10365	  # Warning - without using the other run time loading flags,
10366	  # -berok will link without error, but may produce a broken library.
10367	  no_undefined_flag=' $wl-bernotok'
10368	  allow_undefined_flag=' $wl-berok'
10369	  if test yes = "$with_gnu_ld"; then
10370	    # We only use this code for GNU lds that support --whole-archive.
10371	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10372	  else
10373	    # Exported symbols can be pulled into shared objects from archives
10374	    whole_archive_flag_spec='$convenience'
10375	  fi
10376	  archive_cmds_need_lc=yes
10377	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10378	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10379	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10380	  if test svr4 != "$with_aix_soname"; then
10381	    # This is similar to how AIX traditionally builds its shared libraries.
10382	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10383	  fi
10384	  if test aix != "$with_aix_soname"; then
10385	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10386	  else
10387	    # used by -dlpreopen to get the symbols
10388	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10389	  fi
10390	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10391	fi
10392      fi
10393      ;;
10394
10395    amigaos*)
10396      case $host_cpu in
10397      powerpc)
10398            # see comment about AmigaOS4 .so support
10399            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10400            archive_expsym_cmds=''
10401        ;;
10402      m68k)
10403            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)'
10404            hardcode_libdir_flag_spec='-L$libdir'
10405            hardcode_minus_L=yes
10406        ;;
10407      esac
10408      ;;
10409
10410    bsdi[45]*)
10411      export_dynamic_flag_spec=-rdynamic
10412      ;;
10413
10414    cygwin* | mingw* | pw32* | cegcc*)
10415      # When not using gcc, we currently assume that we are using
10416      # Microsoft Visual C++.
10417      # hardcode_libdir_flag_spec is actually meaningless, as there is
10418      # no search path for DLLs.
10419      case $cc_basename in
10420      cl*)
10421	# Native MSVC
10422	hardcode_libdir_flag_spec=' '
10423	allow_undefined_flag=unsupported
10424	always_export_symbols=yes
10425	file_list_spec='@'
10426	# Tell ltmain to make .lib files, not .a files.
10427	libext=lib
10428	# Tell ltmain to make .dll files, not .so files.
10429	shrext_cmds=.dll
10430	# FIXME: Setting linknames here is a bad hack.
10431	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10432	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10433            cp "$export_symbols" "$output_objdir/$soname.def";
10434            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10435          else
10436            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10437          fi~
10438          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10439          linknames='
10440	# The linker will not automatically build a static lib if we build a DLL.
10441	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10442	enable_shared_with_static_runtimes=yes
10443	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10444	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10445	# Don't use ranlib
10446	old_postinstall_cmds='chmod 644 $oldlib'
10447	postlink_cmds='lt_outputfile="@OUTPUT@"~
10448          lt_tool_outputfile="@TOOL_OUTPUT@"~
10449          case $lt_outputfile in
10450            *.exe|*.EXE) ;;
10451            *)
10452              lt_outputfile=$lt_outputfile.exe
10453              lt_tool_outputfile=$lt_tool_outputfile.exe
10454              ;;
10455          esac~
10456          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10457            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10458            $RM "$lt_outputfile.manifest";
10459          fi'
10460	;;
10461      *)
10462	# Assume MSVC wrapper
10463	hardcode_libdir_flag_spec=' '
10464	allow_undefined_flag=unsupported
10465	# Tell ltmain to make .lib files, not .a files.
10466	libext=lib
10467	# Tell ltmain to make .dll files, not .so files.
10468	shrext_cmds=.dll
10469	# FIXME: Setting linknames here is a bad hack.
10470	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10471	# The linker will automatically build a .lib file if we build a DLL.
10472	old_archive_from_new_cmds='true'
10473	# FIXME: Should let the user specify the lib program.
10474	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10475	enable_shared_with_static_runtimes=yes
10476	;;
10477      esac
10478      ;;
10479
10480    darwin* | rhapsody*)
10481
10482
10483  archive_cmds_need_lc=no
10484  hardcode_direct=no
10485  hardcode_automatic=yes
10486  hardcode_shlibpath_var=unsupported
10487  if test yes = "$lt_cv_ld_force_load"; then
10488    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10489
10490  else
10491    whole_archive_flag_spec=''
10492  fi
10493  link_all_deplibs=yes
10494  allow_undefined_flag=$_lt_dar_allow_undefined
10495  case $cc_basename in
10496     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10497     *) _lt_dar_can_shared=$GCC ;;
10498  esac
10499  if test yes = "$_lt_dar_can_shared"; then
10500    output_verbose_link_cmd=func_echo_all
10501    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10502    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10503    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"
10504    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"
10505
10506  else
10507  ld_shlibs=no
10508  fi
10509
10510      ;;
10511
10512    dgux*)
10513      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10514      hardcode_libdir_flag_spec='-L$libdir'
10515      hardcode_shlibpath_var=no
10516      ;;
10517
10518    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10519    # support.  Future versions do this automatically, but an explicit c++rt0.o
10520    # does not break anything, and helps significantly (at the cost of a little
10521    # extra space).
10522    freebsd2.2*)
10523      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10524      hardcode_libdir_flag_spec='-R$libdir'
10525      hardcode_direct=yes
10526      hardcode_shlibpath_var=no
10527      ;;
10528
10529    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10530    freebsd2.*)
10531      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10532      hardcode_direct=yes
10533      hardcode_minus_L=yes
10534      hardcode_shlibpath_var=no
10535      ;;
10536
10537    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10538    freebsd* | dragonfly*)
10539      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10540      hardcode_libdir_flag_spec='-R$libdir'
10541      hardcode_direct=yes
10542      hardcode_shlibpath_var=no
10543      ;;
10544
10545    hpux9*)
10546      if test yes = "$GCC"; then
10547	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10548      else
10549	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10550      fi
10551      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10552      hardcode_libdir_separator=:
10553      hardcode_direct=yes
10554
10555      # hardcode_minus_L: Not really in the search PATH,
10556      # but as the default location of the library.
10557      hardcode_minus_L=yes
10558      export_dynamic_flag_spec='$wl-E'
10559      ;;
10560
10561    hpux10*)
10562      if test yes,no = "$GCC,$with_gnu_ld"; then
10563	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10564      else
10565	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10566      fi
10567      if test no = "$with_gnu_ld"; then
10568	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10569	hardcode_libdir_separator=:
10570	hardcode_direct=yes
10571	hardcode_direct_absolute=yes
10572	export_dynamic_flag_spec='$wl-E'
10573	# hardcode_minus_L: Not really in the search PATH,
10574	# but as the default location of the library.
10575	hardcode_minus_L=yes
10576      fi
10577      ;;
10578
10579    hpux11*)
10580      if test yes,no = "$GCC,$with_gnu_ld"; then
10581	case $host_cpu in
10582	hppa*64*)
10583	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10584	  ;;
10585	ia64*)
10586	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10587	  ;;
10588	*)
10589	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10590	  ;;
10591	esac
10592      else
10593	case $host_cpu in
10594	hppa*64*)
10595	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10596	  ;;
10597	ia64*)
10598	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10599	  ;;
10600	*)
10601
10602	  # Older versions of the 11.00 compiler do not understand -b yet
10603	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10604	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10605$as_echo_n "checking if $CC understands -b... " >&6; }
10606if ${lt_cv_prog_compiler__b+:} false; then :
10607  $as_echo_n "(cached) " >&6
10608else
10609  lt_cv_prog_compiler__b=no
10610   save_LDFLAGS=$LDFLAGS
10611   LDFLAGS="$LDFLAGS -b"
10612   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10613   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10614     # The linker can only warn and ignore the option if not recognized
10615     # So say no if there are warnings
10616     if test -s conftest.err; then
10617       # Append any errors to the config.log.
10618       cat conftest.err 1>&5
10619       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10620       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10621       if diff conftest.exp conftest.er2 >/dev/null; then
10622         lt_cv_prog_compiler__b=yes
10623       fi
10624     else
10625       lt_cv_prog_compiler__b=yes
10626     fi
10627   fi
10628   $RM -r conftest*
10629   LDFLAGS=$save_LDFLAGS
10630
10631fi
10632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10633$as_echo "$lt_cv_prog_compiler__b" >&6; }
10634
10635if test yes = "$lt_cv_prog_compiler__b"; then
10636    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10637else
10638    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10639fi
10640
10641	  ;;
10642	esac
10643      fi
10644      if test no = "$with_gnu_ld"; then
10645	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10646	hardcode_libdir_separator=:
10647
10648	case $host_cpu in
10649	hppa*64*|ia64*)
10650	  hardcode_direct=no
10651	  hardcode_shlibpath_var=no
10652	  ;;
10653	*)
10654	  hardcode_direct=yes
10655	  hardcode_direct_absolute=yes
10656	  export_dynamic_flag_spec='$wl-E'
10657
10658	  # hardcode_minus_L: Not really in the search PATH,
10659	  # but as the default location of the library.
10660	  hardcode_minus_L=yes
10661	  ;;
10662	esac
10663      fi
10664      ;;
10665
10666    irix5* | irix6* | nonstopux*)
10667      if test yes = "$GCC"; then
10668	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10669	# Try to use the -exported_symbol ld option, if it does not
10670	# work, assume that -exports_file does not work either and
10671	# implicitly export all symbols.
10672	# This should be the same for all languages, so no per-tag cache variable.
10673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10674$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10675if ${lt_cv_irix_exported_symbol+:} false; then :
10676  $as_echo_n "(cached) " >&6
10677else
10678  save_LDFLAGS=$LDFLAGS
10679	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10680	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681/* end confdefs.h.  */
10682int foo (void) { return 0; }
10683_ACEOF
10684if ac_fn_c_try_link "$LINENO"; then :
10685  lt_cv_irix_exported_symbol=yes
10686else
10687  lt_cv_irix_exported_symbol=no
10688fi
10689rm -f core conftest.err conftest.$ac_objext \
10690    conftest$ac_exeext conftest.$ac_ext
10691           LDFLAGS=$save_LDFLAGS
10692fi
10693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10694$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10695	if test yes = "$lt_cv_irix_exported_symbol"; then
10696          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10697	fi
10698	link_all_deplibs=no
10699      else
10700	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10701	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10702      fi
10703      archive_cmds_need_lc='no'
10704      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10705      hardcode_libdir_separator=:
10706      inherit_rpath=yes
10707      link_all_deplibs=yes
10708      ;;
10709
10710    linux*)
10711      case $cc_basename in
10712      tcc*)
10713	# Fabrice Bellard et al's Tiny C Compiler
10714	ld_shlibs=yes
10715	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10716	;;
10717      esac
10718      ;;
10719
10720    netbsd* | netbsdelf*-gnu)
10721      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10722	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10723      else
10724	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10725      fi
10726      hardcode_libdir_flag_spec='-R$libdir'
10727      hardcode_direct=yes
10728      hardcode_shlibpath_var=no
10729      ;;
10730
10731    newsos6)
10732      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10733      hardcode_direct=yes
10734      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10735      hardcode_libdir_separator=:
10736      hardcode_shlibpath_var=no
10737      ;;
10738
10739    *nto* | *qnx*)
10740      ;;
10741
10742    openbsd* | bitrig*)
10743      if test -f /usr/libexec/ld.so; then
10744	hardcode_direct=yes
10745	hardcode_shlibpath_var=no
10746	hardcode_direct_absolute=yes
10747	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10748	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10749	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10750	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10751	  export_dynamic_flag_spec='$wl-E'
10752	else
10753	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10754	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10755	fi
10756      else
10757	ld_shlibs=no
10758      fi
10759      ;;
10760
10761    os2*)
10762      hardcode_libdir_flag_spec='-L$libdir'
10763      hardcode_minus_L=yes
10764      allow_undefined_flag=unsupported
10765      shrext_cmds=.dll
10766      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10767	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10768	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10769	$ECHO EXPORTS >> $output_objdir/$libname.def~
10770	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10771	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10772	emximp -o $lib $output_objdir/$libname.def'
10773      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10774	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10775	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10776	$ECHO EXPORTS >> $output_objdir/$libname.def~
10777	prefix_cmds="$SED"~
10778	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10779	  prefix_cmds="$prefix_cmds -e 1d";
10780	fi~
10781	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10782	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10783	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10784	emximp -o $lib $output_objdir/$libname.def'
10785      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10786      enable_shared_with_static_runtimes=yes
10787      ;;
10788
10789    osf3*)
10790      if test yes = "$GCC"; then
10791	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10792	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10793      else
10794	allow_undefined_flag=' -expect_unresolved \*'
10795	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10796      fi
10797      archive_cmds_need_lc='no'
10798      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10799      hardcode_libdir_separator=:
10800      ;;
10801
10802    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10803      if test yes = "$GCC"; then
10804	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10805	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10806	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10807      else
10808	allow_undefined_flag=' -expect_unresolved \*'
10809	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10810	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10811          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10812
10813	# Both c and cxx compiler support -rpath directly
10814	hardcode_libdir_flag_spec='-rpath $libdir'
10815      fi
10816      archive_cmds_need_lc='no'
10817      hardcode_libdir_separator=:
10818      ;;
10819
10820    solaris*)
10821      no_undefined_flag=' -z defs'
10822      if test yes = "$GCC"; then
10823	wlarc='$wl'
10824	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10825	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10826          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10827      else
10828	case `$CC -V 2>&1` in
10829	*"Compilers 5.0"*)
10830	  wlarc=''
10831	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10832	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10833            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10834	  ;;
10835	*)
10836	  wlarc='$wl'
10837	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10838	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10839            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10840	  ;;
10841	esac
10842      fi
10843      hardcode_libdir_flag_spec='-R$libdir'
10844      hardcode_shlibpath_var=no
10845      case $host_os in
10846      solaris2.[0-5] | solaris2.[0-5].*) ;;
10847      *)
10848	# The compiler driver will combine and reorder linker options,
10849	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10850	# but is careful enough not to reorder.
10851	# Supported since Solaris 2.6 (maybe 2.5.1?)
10852	if test yes = "$GCC"; then
10853	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10854	else
10855	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10856	fi
10857	;;
10858      esac
10859      link_all_deplibs=yes
10860      ;;
10861
10862    sunos4*)
10863      if test sequent = "$host_vendor"; then
10864	# Use $CC to link under sequent, because it throws in some extra .o
10865	# files that make .init and .fini sections work.
10866	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10867      else
10868	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10869      fi
10870      hardcode_libdir_flag_spec='-L$libdir'
10871      hardcode_direct=yes
10872      hardcode_minus_L=yes
10873      hardcode_shlibpath_var=no
10874      ;;
10875
10876    sysv4)
10877      case $host_vendor in
10878	sni)
10879	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10880	  hardcode_direct=yes # is this really true???
10881	;;
10882	siemens)
10883	  ## LD is ld it makes a PLAMLIB
10884	  ## CC just makes a GrossModule.
10885	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10886	  reload_cmds='$CC -r -o $output$reload_objs'
10887	  hardcode_direct=no
10888        ;;
10889	motorola)
10890	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10891	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10892	;;
10893      esac
10894      runpath_var='LD_RUN_PATH'
10895      hardcode_shlibpath_var=no
10896      ;;
10897
10898    sysv4.3*)
10899      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10900      hardcode_shlibpath_var=no
10901      export_dynamic_flag_spec='-Bexport'
10902      ;;
10903
10904    sysv4*MP*)
10905      if test -d /usr/nec; then
10906	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10907	hardcode_shlibpath_var=no
10908	runpath_var=LD_RUN_PATH
10909	hardcode_runpath_var=yes
10910	ld_shlibs=yes
10911      fi
10912      ;;
10913
10914    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10915      no_undefined_flag='$wl-z,text'
10916      archive_cmds_need_lc=no
10917      hardcode_shlibpath_var=no
10918      runpath_var='LD_RUN_PATH'
10919
10920      if test yes = "$GCC"; then
10921	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10922	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10923      else
10924	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10925	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10926      fi
10927      ;;
10928
10929    sysv5* | sco3.2v5* | sco5v6*)
10930      # Note: We CANNOT use -z defs as we might desire, because we do not
10931      # link with -lc, and that would cause any symbols used from libc to
10932      # always be unresolved, which means just about no library would
10933      # ever link correctly.  If we're not using GNU ld we use -z text
10934      # though, which does catch some bad symbols but isn't as heavy-handed
10935      # as -z defs.
10936      no_undefined_flag='$wl-z,text'
10937      allow_undefined_flag='$wl-z,nodefs'
10938      archive_cmds_need_lc=no
10939      hardcode_shlibpath_var=no
10940      hardcode_libdir_flag_spec='$wl-R,$libdir'
10941      hardcode_libdir_separator=':'
10942      link_all_deplibs=yes
10943      export_dynamic_flag_spec='$wl-Bexport'
10944      runpath_var='LD_RUN_PATH'
10945
10946      if test yes = "$GCC"; then
10947	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949      else
10950	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10952      fi
10953      ;;
10954
10955    uts4*)
10956      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10957      hardcode_libdir_flag_spec='-L$libdir'
10958      hardcode_shlibpath_var=no
10959      ;;
10960
10961    *)
10962      ld_shlibs=no
10963      ;;
10964    esac
10965
10966    if test sni = "$host_vendor"; then
10967      case $host in
10968      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10969	export_dynamic_flag_spec='$wl-Blargedynsym'
10970	;;
10971      esac
10972    fi
10973  fi
10974
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10976$as_echo "$ld_shlibs" >&6; }
10977test no = "$ld_shlibs" && can_build_shared=no
10978
10979with_gnu_ld=$with_gnu_ld
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995#
10996# Do we need to explicitly link libc?
10997#
10998case "x$archive_cmds_need_lc" in
10999x|xyes)
11000  # Assume -lc should be added
11001  archive_cmds_need_lc=yes
11002
11003  if test yes,yes = "$GCC,$enable_shared"; then
11004    case $archive_cmds in
11005    *'~'*)
11006      # FIXME: we may have to deal with multi-command sequences.
11007      ;;
11008    '$CC '*)
11009      # Test whether the compiler implicitly links with -lc since on some
11010      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11011      # to ld, don't add -lc before -lgcc.
11012      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11013$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11014if ${lt_cv_archive_cmds_need_lc+:} false; then :
11015  $as_echo_n "(cached) " >&6
11016else
11017  $RM conftest*
11018	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11019
11020	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11021  (eval $ac_compile) 2>&5
11022  ac_status=$?
11023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11024  test $ac_status = 0; } 2>conftest.err; then
11025	  soname=conftest
11026	  lib=conftest
11027	  libobjs=conftest.$ac_objext
11028	  deplibs=
11029	  wl=$lt_prog_compiler_wl
11030	  pic_flag=$lt_prog_compiler_pic
11031	  compiler_flags=-v
11032	  linker_flags=-v
11033	  verstring=
11034	  output_objdir=.
11035	  libname=conftest
11036	  lt_save_allow_undefined_flag=$allow_undefined_flag
11037	  allow_undefined_flag=
11038	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11039  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11040  ac_status=$?
11041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11042  test $ac_status = 0; }
11043	  then
11044	    lt_cv_archive_cmds_need_lc=no
11045	  else
11046	    lt_cv_archive_cmds_need_lc=yes
11047	  fi
11048	  allow_undefined_flag=$lt_save_allow_undefined_flag
11049	else
11050	  cat conftest.err 1>&5
11051	fi
11052	$RM conftest*
11053
11054fi
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11056$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11057      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11058      ;;
11059    esac
11060  fi
11061  ;;
11062esac
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11216$as_echo_n "checking dynamic linker characteristics... " >&6; }
11217
11218if test yes = "$GCC"; then
11219  case $host_os in
11220    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11221    *) lt_awk_arg='/^libraries:/' ;;
11222  esac
11223  case $host_os in
11224    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11225    *) lt_sed_strip_eq='s|=/|/|g' ;;
11226  esac
11227  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11228  case $lt_search_path_spec in
11229  *\;*)
11230    # if the path contains ";" then we assume it to be the separator
11231    # otherwise default to the standard path separator (i.e. ":") - it is
11232    # assumed that no part of a normal pathname contains ";" but that should
11233    # okay in the real world where ";" in dirpaths is itself problematic.
11234    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11235    ;;
11236  *)
11237    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11238    ;;
11239  esac
11240  # Ok, now we have the path, separated by spaces, we can step through it
11241  # and add multilib dir if necessary...
11242  lt_tmp_lt_search_path_spec=
11243  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11244  # ...but if some path component already ends with the multilib dir we assume
11245  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11246  case "$lt_multi_os_dir; $lt_search_path_spec " in
11247  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11248    lt_multi_os_dir=
11249    ;;
11250  esac
11251  for lt_sys_path in $lt_search_path_spec; do
11252    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11253      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11254    elif test -n "$lt_multi_os_dir"; then
11255      test -d "$lt_sys_path" && \
11256	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11257    fi
11258  done
11259  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11260BEGIN {RS = " "; FS = "/|\n";} {
11261  lt_foo = "";
11262  lt_count = 0;
11263  for (lt_i = NF; lt_i > 0; lt_i--) {
11264    if ($lt_i != "" && $lt_i != ".") {
11265      if ($lt_i == "..") {
11266        lt_count++;
11267      } else {
11268        if (lt_count == 0) {
11269          lt_foo = "/" $lt_i lt_foo;
11270        } else {
11271          lt_count--;
11272        }
11273      }
11274    }
11275  }
11276  if (lt_foo != "") { lt_freq[lt_foo]++; }
11277  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11278}'`
11279  # AWK program above erroneously prepends '/' to C:/dos/paths
11280  # for these hosts.
11281  case $host_os in
11282    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11283      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11284  esac
11285  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11286else
11287  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11288fi
11289library_names_spec=
11290libname_spec='lib$name'
11291soname_spec=
11292shrext_cmds=.so
11293postinstall_cmds=
11294postuninstall_cmds=
11295finish_cmds=
11296finish_eval=
11297shlibpath_var=
11298shlibpath_overrides_runpath=unknown
11299version_type=none
11300dynamic_linker="$host_os ld.so"
11301sys_lib_dlsearch_path_spec="/lib /usr/lib"
11302need_lib_prefix=unknown
11303hardcode_into_libs=no
11304
11305# when you set need_version to no, make sure it does not cause -set_version
11306# flags to be left without arguments
11307need_version=unknown
11308
11309
11310
11311case $host_os in
11312aix3*)
11313  version_type=linux # correct to gnu/linux during the next big refactor
11314  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11315  shlibpath_var=LIBPATH
11316
11317  # AIX 3 has no versioning support, so we append a major version to the name.
11318  soname_spec='$libname$release$shared_ext$major'
11319  ;;
11320
11321aix[4-9]*)
11322  version_type=linux # correct to gnu/linux during the next big refactor
11323  need_lib_prefix=no
11324  need_version=no
11325  hardcode_into_libs=yes
11326  if test ia64 = "$host_cpu"; then
11327    # AIX 5 supports IA64
11328    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11329    shlibpath_var=LD_LIBRARY_PATH
11330  else
11331    # With GCC up to 2.95.x, collect2 would create an import file
11332    # for dependence libraries.  The import file would start with
11333    # the line '#! .'.  This would cause the generated library to
11334    # depend on '.', always an invalid library.  This was fixed in
11335    # development snapshots of GCC prior to 3.0.
11336    case $host_os in
11337      aix4 | aix4.[01] | aix4.[01].*)
11338      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11339	   echo ' yes '
11340	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11341	:
11342      else
11343	can_build_shared=no
11344      fi
11345      ;;
11346    esac
11347    # Using Import Files as archive members, it is possible to support
11348    # filename-based versioning of shared library archives on AIX. While
11349    # this would work for both with and without runtime linking, it will
11350    # prevent static linking of such archives. So we do filename-based
11351    # shared library versioning with .so extension only, which is used
11352    # when both runtime linking and shared linking is enabled.
11353    # Unfortunately, runtime linking may impact performance, so we do
11354    # not want this to be the default eventually. Also, we use the
11355    # versioned .so libs for executables only if there is the -brtl
11356    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11357    # To allow for filename-based versioning support, we need to create
11358    # libNAME.so.V as an archive file, containing:
11359    # *) an Import File, referring to the versioned filename of the
11360    #    archive as well as the shared archive member, telling the
11361    #    bitwidth (32 or 64) of that shared object, and providing the
11362    #    list of exported symbols of that shared object, eventually
11363    #    decorated with the 'weak' keyword
11364    # *) the shared object with the F_LOADONLY flag set, to really avoid
11365    #    it being seen by the linker.
11366    # At run time we better use the real file rather than another symlink,
11367    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11368
11369    case $with_aix_soname,$aix_use_runtimelinking in
11370    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11371    # soname into executable. Probably we can add versioning support to
11372    # collect2, so additional links can be useful in future.
11373    aix,yes) # traditional libtool
11374      dynamic_linker='AIX unversionable lib.so'
11375      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11376      # instead of lib<name>.a to let people know that these are not
11377      # typical AIX shared libraries.
11378      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11379      ;;
11380    aix,no) # traditional AIX only
11381      dynamic_linker='AIX lib.a(lib.so.V)'
11382      # We preserve .a as extension for shared libraries through AIX4.2
11383      # and later when we are not doing run time linking.
11384      library_names_spec='$libname$release.a $libname.a'
11385      soname_spec='$libname$release$shared_ext$major'
11386      ;;
11387    svr4,*) # full svr4 only
11388      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11389      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11390      # We do not specify a path in Import Files, so LIBPATH fires.
11391      shlibpath_overrides_runpath=yes
11392      ;;
11393    *,yes) # both, prefer svr4
11394      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11395      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11396      # unpreferred sharedlib libNAME.a needs extra handling
11397      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11398      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11399      # We do not specify a path in Import Files, so LIBPATH fires.
11400      shlibpath_overrides_runpath=yes
11401      ;;
11402    *,no) # both, prefer aix
11403      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11404      library_names_spec='$libname$release.a $libname.a'
11405      soname_spec='$libname$release$shared_ext$major'
11406      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11407      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11408      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11409      ;;
11410    esac
11411    shlibpath_var=LIBPATH
11412  fi
11413  ;;
11414
11415amigaos*)
11416  case $host_cpu in
11417  powerpc)
11418    # Since July 2007 AmigaOS4 officially supports .so libraries.
11419    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11420    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11421    ;;
11422  m68k)
11423    library_names_spec='$libname.ixlibrary $libname.a'
11424    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11425    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11426    ;;
11427  esac
11428  ;;
11429
11430beos*)
11431  library_names_spec='$libname$shared_ext'
11432  dynamic_linker="$host_os ld.so"
11433  shlibpath_var=LIBRARY_PATH
11434  ;;
11435
11436bsdi[45]*)
11437  version_type=linux # correct to gnu/linux during the next big refactor
11438  need_version=no
11439  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11440  soname_spec='$libname$release$shared_ext$major'
11441  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11442  shlibpath_var=LD_LIBRARY_PATH
11443  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11444  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11445  # the default ld.so.conf also contains /usr/contrib/lib and
11446  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11447  # libtool to hard-code these into programs
11448  ;;
11449
11450cygwin* | mingw* | pw32* | cegcc*)
11451  version_type=windows
11452  shrext_cmds=.dll
11453  need_version=no
11454  need_lib_prefix=no
11455
11456  case $GCC,$cc_basename in
11457  yes,*)
11458    # gcc
11459    library_names_spec='$libname.dll.a'
11460    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11461    postinstall_cmds='base_file=`basename \$file`~
11462      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11463      dldir=$destdir/`dirname \$dlpath`~
11464      test -d \$dldir || mkdir -p \$dldir~
11465      $install_prog $dir/$dlname \$dldir/$dlname~
11466      chmod a+x \$dldir/$dlname~
11467      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11468        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11469      fi'
11470    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11471      dlpath=$dir/\$dldll~
11472       $RM \$dlpath'
11473    shlibpath_overrides_runpath=yes
11474
11475    case $host_os in
11476    cygwin*)
11477      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11478      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11479
11480      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11481      ;;
11482    mingw* | cegcc*)
11483      # MinGW DLLs use traditional 'lib' prefix
11484      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11485      ;;
11486    pw32*)
11487      # pw32 DLLs use 'pw' prefix rather than 'lib'
11488      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11489      ;;
11490    esac
11491    dynamic_linker='Win32 ld.exe'
11492    ;;
11493
11494  *,cl*)
11495    # Native MSVC
11496    libname_spec='$name'
11497    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11498    library_names_spec='$libname.dll.lib'
11499
11500    case $build_os in
11501    mingw*)
11502      sys_lib_search_path_spec=
11503      lt_save_ifs=$IFS
11504      IFS=';'
11505      for lt_path in $LIB
11506      do
11507        IFS=$lt_save_ifs
11508        # Let DOS variable expansion print the short 8.3 style file name.
11509        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11510        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11511      done
11512      IFS=$lt_save_ifs
11513      # Convert to MSYS style.
11514      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11515      ;;
11516    cygwin*)
11517      # Convert to unix form, then to dos form, then back to unix form
11518      # but this time dos style (no spaces!) so that the unix form looks
11519      # like /cygdrive/c/PROGRA~1:/cygdr...
11520      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11521      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11522      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11523      ;;
11524    *)
11525      sys_lib_search_path_spec=$LIB
11526      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11527        # It is most probably a Windows format PATH.
11528        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11529      else
11530        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11531      fi
11532      # FIXME: find the short name or the path components, as spaces are
11533      # common. (e.g. "Program Files" -> "PROGRA~1")
11534      ;;
11535    esac
11536
11537    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11538    postinstall_cmds='base_file=`basename \$file`~
11539      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11540      dldir=$destdir/`dirname \$dlpath`~
11541      test -d \$dldir || mkdir -p \$dldir~
11542      $install_prog $dir/$dlname \$dldir/$dlname'
11543    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11544      dlpath=$dir/\$dldll~
11545       $RM \$dlpath'
11546    shlibpath_overrides_runpath=yes
11547    dynamic_linker='Win32 link.exe'
11548    ;;
11549
11550  *)
11551    # Assume MSVC wrapper
11552    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11553    dynamic_linker='Win32 ld.exe'
11554    ;;
11555  esac
11556  # FIXME: first we should search . and the directory the executable is in
11557  shlibpath_var=PATH
11558  ;;
11559
11560darwin* | rhapsody*)
11561  dynamic_linker="$host_os dyld"
11562  version_type=darwin
11563  need_lib_prefix=no
11564  need_version=no
11565  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11566  soname_spec='$libname$release$major$shared_ext'
11567  shlibpath_overrides_runpath=yes
11568  shlibpath_var=DYLD_LIBRARY_PATH
11569  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11570
11571  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11572  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11573  ;;
11574
11575dgux*)
11576  version_type=linux # correct to gnu/linux during the next big refactor
11577  need_lib_prefix=no
11578  need_version=no
11579  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11580  soname_spec='$libname$release$shared_ext$major'
11581  shlibpath_var=LD_LIBRARY_PATH
11582  ;;
11583
11584freebsd* | dragonfly*)
11585  # DragonFly does not have aout.  When/if they implement a new
11586  # versioning mechanism, adjust this.
11587  if test -x /usr/bin/objformat; then
11588    objformat=`/usr/bin/objformat`
11589  else
11590    case $host_os in
11591    freebsd[23].*) objformat=aout ;;
11592    *) objformat=elf ;;
11593    esac
11594  fi
11595  version_type=freebsd-$objformat
11596  case $version_type in
11597    freebsd-elf*)
11598      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11599      soname_spec='$libname$release$shared_ext$major'
11600      need_version=no
11601      need_lib_prefix=no
11602      ;;
11603    freebsd-*)
11604      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11605      need_version=yes
11606      ;;
11607  esac
11608  shlibpath_var=LD_LIBRARY_PATH
11609  case $host_os in
11610  freebsd2.*)
11611    shlibpath_overrides_runpath=yes
11612    ;;
11613  freebsd3.[01]* | freebsdelf3.[01]*)
11614    shlibpath_overrides_runpath=yes
11615    hardcode_into_libs=yes
11616    ;;
11617  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11618  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11619    shlibpath_overrides_runpath=no
11620    hardcode_into_libs=yes
11621    ;;
11622  *) # from 4.6 on, and DragonFly
11623    shlibpath_overrides_runpath=yes
11624    hardcode_into_libs=yes
11625    ;;
11626  esac
11627  ;;
11628
11629haiku*)
11630  version_type=linux # correct to gnu/linux during the next big refactor
11631  need_lib_prefix=no
11632  need_version=no
11633  dynamic_linker="$host_os runtime_loader"
11634  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11635  soname_spec='$libname$release$shared_ext$major'
11636  shlibpath_var=LIBRARY_PATH
11637  shlibpath_overrides_runpath=no
11638  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11639  hardcode_into_libs=yes
11640  ;;
11641
11642hpux9* | hpux10* | hpux11*)
11643  # Give a soname corresponding to the major version so that dld.sl refuses to
11644  # link against other versions.
11645  version_type=sunos
11646  need_lib_prefix=no
11647  need_version=no
11648  case $host_cpu in
11649  ia64*)
11650    shrext_cmds='.so'
11651    hardcode_into_libs=yes
11652    dynamic_linker="$host_os dld.so"
11653    shlibpath_var=LD_LIBRARY_PATH
11654    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11655    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11656    soname_spec='$libname$release$shared_ext$major'
11657    if test 32 = "$HPUX_IA64_MODE"; then
11658      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11659      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11660    else
11661      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11662      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11663    fi
11664    ;;
11665  hppa*64*)
11666    shrext_cmds='.sl'
11667    hardcode_into_libs=yes
11668    dynamic_linker="$host_os dld.sl"
11669    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11670    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11671    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11672    soname_spec='$libname$release$shared_ext$major'
11673    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11674    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11675    ;;
11676  *)
11677    shrext_cmds='.sl'
11678    dynamic_linker="$host_os dld.sl"
11679    shlibpath_var=SHLIB_PATH
11680    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11681    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11682    soname_spec='$libname$release$shared_ext$major'
11683    ;;
11684  esac
11685  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11686  postinstall_cmds='chmod 555 $lib'
11687  # or fails outright, so override atomically:
11688  install_override_mode=555
11689  ;;
11690
11691interix[3-9]*)
11692  version_type=linux # correct to gnu/linux during the next big refactor
11693  need_lib_prefix=no
11694  need_version=no
11695  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11696  soname_spec='$libname$release$shared_ext$major'
11697  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11698  shlibpath_var=LD_LIBRARY_PATH
11699  shlibpath_overrides_runpath=no
11700  hardcode_into_libs=yes
11701  ;;
11702
11703irix5* | irix6* | nonstopux*)
11704  case $host_os in
11705    nonstopux*) version_type=nonstopux ;;
11706    *)
11707	if test yes = "$lt_cv_prog_gnu_ld"; then
11708		version_type=linux # correct to gnu/linux during the next big refactor
11709	else
11710		version_type=irix
11711	fi ;;
11712  esac
11713  need_lib_prefix=no
11714  need_version=no
11715  soname_spec='$libname$release$shared_ext$major'
11716  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11717  case $host_os in
11718  irix5* | nonstopux*)
11719    libsuff= shlibsuff=
11720    ;;
11721  *)
11722    case $LD in # libtool.m4 will add one of these switches to LD
11723    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11724      libsuff= shlibsuff= libmagic=32-bit;;
11725    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11726      libsuff=32 shlibsuff=N32 libmagic=N32;;
11727    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11728      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11729    *) libsuff= shlibsuff= libmagic=never-match;;
11730    esac
11731    ;;
11732  esac
11733  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11734  shlibpath_overrides_runpath=no
11735  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11736  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11737  hardcode_into_libs=yes
11738  ;;
11739
11740# No shared lib support for Linux oldld, aout, or coff.
11741linux*oldld* | linux*aout* | linux*coff*)
11742  dynamic_linker=no
11743  ;;
11744
11745linux*android*)
11746  version_type=none # Android doesn't support versioned libraries.
11747  need_lib_prefix=no
11748  need_version=no
11749  library_names_spec='$libname$release$shared_ext'
11750  soname_spec='$libname$release$shared_ext'
11751  finish_cmds=
11752  shlibpath_var=LD_LIBRARY_PATH
11753  shlibpath_overrides_runpath=yes
11754
11755  # This implies no fast_install, which is unacceptable.
11756  # Some rework will be needed to allow for fast_install
11757  # before this can be enabled.
11758  hardcode_into_libs=yes
11759
11760  dynamic_linker='Android linker'
11761  # Don't embed -rpath directories since the linker doesn't support them.
11762  hardcode_libdir_flag_spec='-L$libdir'
11763  ;;
11764
11765# This must be glibc/ELF.
11766linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11767  version_type=linux # correct to gnu/linux during the next big refactor
11768  need_lib_prefix=no
11769  need_version=no
11770  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11771  soname_spec='$libname$release$shared_ext$major'
11772  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11773  shlibpath_var=LD_LIBRARY_PATH
11774  shlibpath_overrides_runpath=no
11775
11776  # Some binutils ld are patched to set DT_RUNPATH
11777  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11778  $as_echo_n "(cached) " >&6
11779else
11780  lt_cv_shlibpath_overrides_runpath=no
11781    save_LDFLAGS=$LDFLAGS
11782    save_libdir=$libdir
11783    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11784	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11785    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786/* end confdefs.h.  */
11787
11788int
11789main ()
11790{
11791
11792  ;
11793  return 0;
11794}
11795_ACEOF
11796if ac_fn_c_try_link "$LINENO"; then :
11797  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11798  lt_cv_shlibpath_overrides_runpath=yes
11799fi
11800fi
11801rm -f core conftest.err conftest.$ac_objext \
11802    conftest$ac_exeext conftest.$ac_ext
11803    LDFLAGS=$save_LDFLAGS
11804    libdir=$save_libdir
11805
11806fi
11807
11808  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11809
11810  # This implies no fast_install, which is unacceptable.
11811  # Some rework will be needed to allow for fast_install
11812  # before this can be enabled.
11813  hardcode_into_libs=yes
11814
11815  # Ideally, we could use ldconfig to report *all* directores which are
11816  # searched for libraries, however this is still not possible.  Aside from not
11817  # being certain /sbin/ldconfig is available, command
11818  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11819  # even though it is searched at run-time.  Try to do the best guess by
11820  # appending ld.so.conf contents (and includes) to the search path.
11821  if test -f /etc/ld.so.conf; then
11822    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11823    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11824  fi
11825
11826  # We used to test for /lib/ld.so.1 and disable shared libraries on
11827  # powerpc, because MkLinux only supported shared libraries with the
11828  # GNU dynamic linker.  Since this was broken with cross compilers,
11829  # most powerpc-linux boxes support dynamic linking these days and
11830  # people can always --disable-shared, the test was removed, and we
11831  # assume the GNU/Linux dynamic linker is in use.
11832  dynamic_linker='GNU/Linux ld.so'
11833  ;;
11834
11835netbsdelf*-gnu)
11836  version_type=linux
11837  need_lib_prefix=no
11838  need_version=no
11839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11840  soname_spec='${libname}${release}${shared_ext}$major'
11841  shlibpath_var=LD_LIBRARY_PATH
11842  shlibpath_overrides_runpath=no
11843  hardcode_into_libs=yes
11844  dynamic_linker='NetBSD ld.elf_so'
11845  ;;
11846
11847netbsd*)
11848  version_type=sunos
11849  need_lib_prefix=no
11850  need_version=no
11851  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11852    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11853    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11854    dynamic_linker='NetBSD (a.out) ld.so'
11855  else
11856    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11857    soname_spec='$libname$release$shared_ext$major'
11858    dynamic_linker='NetBSD ld.elf_so'
11859  fi
11860  shlibpath_var=LD_LIBRARY_PATH
11861  shlibpath_overrides_runpath=yes
11862  hardcode_into_libs=yes
11863  ;;
11864
11865newsos6)
11866  version_type=linux # correct to gnu/linux during the next big refactor
11867  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11868  shlibpath_var=LD_LIBRARY_PATH
11869  shlibpath_overrides_runpath=yes
11870  ;;
11871
11872*nto* | *qnx*)
11873  version_type=qnx
11874  need_lib_prefix=no
11875  need_version=no
11876  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11877  soname_spec='$libname$release$shared_ext$major'
11878  shlibpath_var=LD_LIBRARY_PATH
11879  shlibpath_overrides_runpath=no
11880  hardcode_into_libs=yes
11881  dynamic_linker='ldqnx.so'
11882  ;;
11883
11884openbsd* | bitrig*)
11885  version_type=sunos
11886  sys_lib_dlsearch_path_spec=/usr/lib
11887  need_lib_prefix=no
11888  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11889    need_version=no
11890  else
11891    need_version=yes
11892  fi
11893  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11894  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11895  shlibpath_var=LD_LIBRARY_PATH
11896  shlibpath_overrides_runpath=yes
11897  ;;
11898
11899os2*)
11900  libname_spec='$name'
11901  version_type=windows
11902  shrext_cmds=.dll
11903  need_version=no
11904  need_lib_prefix=no
11905  # OS/2 can only load a DLL with a base name of 8 characters or less.
11906  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11907    v=$($ECHO $release$versuffix | tr -d .-);
11908    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11909    $ECHO $n$v`$shared_ext'
11910  library_names_spec='${libname}_dll.$libext'
11911  dynamic_linker='OS/2 ld.exe'
11912  shlibpath_var=BEGINLIBPATH
11913  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11914  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11915  postinstall_cmds='base_file=`basename \$file`~
11916    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11917    dldir=$destdir/`dirname \$dlpath`~
11918    test -d \$dldir || mkdir -p \$dldir~
11919    $install_prog $dir/$dlname \$dldir/$dlname~
11920    chmod a+x \$dldir/$dlname~
11921    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11922      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11923    fi'
11924  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11925    dlpath=$dir/\$dldll~
11926    $RM \$dlpath'
11927  ;;
11928
11929osf3* | osf4* | osf5*)
11930  version_type=osf
11931  need_lib_prefix=no
11932  need_version=no
11933  soname_spec='$libname$release$shared_ext$major'
11934  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11935  shlibpath_var=LD_LIBRARY_PATH
11936  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11937  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11938  ;;
11939
11940rdos*)
11941  dynamic_linker=no
11942  ;;
11943
11944solaris*)
11945  version_type=linux # correct to gnu/linux during the next big refactor
11946  need_lib_prefix=no
11947  need_version=no
11948  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11949  soname_spec='$libname$release$shared_ext$major'
11950  shlibpath_var=LD_LIBRARY_PATH
11951  shlibpath_overrides_runpath=yes
11952  hardcode_into_libs=yes
11953  # ldd complains unless libraries are executable
11954  postinstall_cmds='chmod +x $lib'
11955  ;;
11956
11957sunos4*)
11958  version_type=sunos
11959  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11960  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11961  shlibpath_var=LD_LIBRARY_PATH
11962  shlibpath_overrides_runpath=yes
11963  if test yes = "$with_gnu_ld"; then
11964    need_lib_prefix=no
11965  fi
11966  need_version=yes
11967  ;;
11968
11969sysv4 | sysv4.3*)
11970  version_type=linux # correct to gnu/linux during the next big refactor
11971  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11972  soname_spec='$libname$release$shared_ext$major'
11973  shlibpath_var=LD_LIBRARY_PATH
11974  case $host_vendor in
11975    sni)
11976      shlibpath_overrides_runpath=no
11977      need_lib_prefix=no
11978      runpath_var=LD_RUN_PATH
11979      ;;
11980    siemens)
11981      need_lib_prefix=no
11982      ;;
11983    motorola)
11984      need_lib_prefix=no
11985      need_version=no
11986      shlibpath_overrides_runpath=no
11987      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11988      ;;
11989  esac
11990  ;;
11991
11992sysv4*MP*)
11993  if test -d /usr/nec; then
11994    version_type=linux # correct to gnu/linux during the next big refactor
11995    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11996    soname_spec='$libname$shared_ext.$major'
11997    shlibpath_var=LD_LIBRARY_PATH
11998  fi
11999  ;;
12000
12001sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12002  version_type=sco
12003  need_lib_prefix=no
12004  need_version=no
12005  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12006  soname_spec='$libname$release$shared_ext$major'
12007  shlibpath_var=LD_LIBRARY_PATH
12008  shlibpath_overrides_runpath=yes
12009  hardcode_into_libs=yes
12010  if test yes = "$with_gnu_ld"; then
12011    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12012  else
12013    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12014    case $host_os in
12015      sco3.2v5*)
12016        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12017	;;
12018    esac
12019  fi
12020  sys_lib_dlsearch_path_spec='/usr/lib'
12021  ;;
12022
12023tpf*)
12024  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12025  version_type=linux # correct to gnu/linux during the next big refactor
12026  need_lib_prefix=no
12027  need_version=no
12028  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12029  shlibpath_var=LD_LIBRARY_PATH
12030  shlibpath_overrides_runpath=no
12031  hardcode_into_libs=yes
12032  ;;
12033
12034uts4*)
12035  version_type=linux # correct to gnu/linux during the next big refactor
12036  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12037  soname_spec='$libname$release$shared_ext$major'
12038  shlibpath_var=LD_LIBRARY_PATH
12039  ;;
12040
12041*)
12042  dynamic_linker=no
12043  ;;
12044esac
12045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12046$as_echo "$dynamic_linker" >&6; }
12047test no = "$dynamic_linker" && can_build_shared=no
12048
12049variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12050if test yes = "$GCC"; then
12051  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12052fi
12053
12054if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12055  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12056fi
12057
12058if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12059  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12060fi
12061
12062# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12063configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12064
12065# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12066func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12067
12068# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12069configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12168$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12169hardcode_action=
12170if test -n "$hardcode_libdir_flag_spec" ||
12171   test -n "$runpath_var" ||
12172   test yes = "$hardcode_automatic"; then
12173
12174  # We can hardcode non-existent directories.
12175  if test no != "$hardcode_direct" &&
12176     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12177     # have to relink, otherwise we might link with an installed library
12178     # when we should be linking with a yet-to-be-installed one
12179     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12180     test no != "$hardcode_minus_L"; then
12181    # Linking always hardcodes the temporary library directory.
12182    hardcode_action=relink
12183  else
12184    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12185    hardcode_action=immediate
12186  fi
12187else
12188  # We cannot hardcode anything, or else we can only hardcode existing
12189  # directories.
12190  hardcode_action=unsupported
12191fi
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12193$as_echo "$hardcode_action" >&6; }
12194
12195if test relink = "$hardcode_action" ||
12196   test yes = "$inherit_rpath"; then
12197  # Fast installation is not supported
12198  enable_fast_install=no
12199elif test yes = "$shlibpath_overrides_runpath" ||
12200     test no = "$enable_shared"; then
12201  # Fast installation is not necessary
12202  enable_fast_install=needless
12203fi
12204
12205
12206
12207
12208
12209
12210  if test yes != "$enable_dlopen"; then
12211  enable_dlopen=unknown
12212  enable_dlopen_self=unknown
12213  enable_dlopen_self_static=unknown
12214else
12215  lt_cv_dlopen=no
12216  lt_cv_dlopen_libs=
12217
12218  case $host_os in
12219  beos*)
12220    lt_cv_dlopen=load_add_on
12221    lt_cv_dlopen_libs=
12222    lt_cv_dlopen_self=yes
12223    ;;
12224
12225  mingw* | pw32* | cegcc*)
12226    lt_cv_dlopen=LoadLibrary
12227    lt_cv_dlopen_libs=
12228    ;;
12229
12230  cygwin*)
12231    lt_cv_dlopen=dlopen
12232    lt_cv_dlopen_libs=
12233    ;;
12234
12235  darwin*)
12236    # if libdl is installed we need to link against it
12237    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12238$as_echo_n "checking for dlopen in -ldl... " >&6; }
12239if ${ac_cv_lib_dl_dlopen+:} false; then :
12240  $as_echo_n "(cached) " >&6
12241else
12242  ac_check_lib_save_LIBS=$LIBS
12243LIBS="-ldl  $LIBS"
12244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245/* end confdefs.h.  */
12246
12247/* Override any GCC internal prototype to avoid an error.
12248   Use char because int might match the return type of a GCC
12249   builtin and then its argument prototype would still apply.  */
12250#ifdef __cplusplus
12251extern "C"
12252#endif
12253char dlopen ();
12254int
12255main ()
12256{
12257return dlopen ();
12258  ;
12259  return 0;
12260}
12261_ACEOF
12262if ac_fn_c_try_link "$LINENO"; then :
12263  ac_cv_lib_dl_dlopen=yes
12264else
12265  ac_cv_lib_dl_dlopen=no
12266fi
12267rm -f core conftest.err conftest.$ac_objext \
12268    conftest$ac_exeext conftest.$ac_ext
12269LIBS=$ac_check_lib_save_LIBS
12270fi
12271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12272$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12273if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12274  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12275else
12276
12277    lt_cv_dlopen=dyld
12278    lt_cv_dlopen_libs=
12279    lt_cv_dlopen_self=yes
12280
12281fi
12282
12283    ;;
12284
12285  tpf*)
12286    # Don't try to run any link tests for TPF.  We know it's impossible
12287    # because TPF is a cross-compiler, and we know how we open DSOs.
12288    lt_cv_dlopen=dlopen
12289    lt_cv_dlopen_libs=
12290    lt_cv_dlopen_self=no
12291    ;;
12292
12293  *)
12294    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12295if test "x$ac_cv_func_shl_load" = xyes; then :
12296  lt_cv_dlopen=shl_load
12297else
12298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12299$as_echo_n "checking for shl_load in -ldld... " >&6; }
12300if ${ac_cv_lib_dld_shl_load+:} false; then :
12301  $as_echo_n "(cached) " >&6
12302else
12303  ac_check_lib_save_LIBS=$LIBS
12304LIBS="-ldld  $LIBS"
12305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306/* end confdefs.h.  */
12307
12308/* Override any GCC internal prototype to avoid an error.
12309   Use char because int might match the return type of a GCC
12310   builtin and then its argument prototype would still apply.  */
12311#ifdef __cplusplus
12312extern "C"
12313#endif
12314char shl_load ();
12315int
12316main ()
12317{
12318return shl_load ();
12319  ;
12320  return 0;
12321}
12322_ACEOF
12323if ac_fn_c_try_link "$LINENO"; then :
12324  ac_cv_lib_dld_shl_load=yes
12325else
12326  ac_cv_lib_dld_shl_load=no
12327fi
12328rm -f core conftest.err conftest.$ac_objext \
12329    conftest$ac_exeext conftest.$ac_ext
12330LIBS=$ac_check_lib_save_LIBS
12331fi
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12333$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12334if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12335  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12336else
12337  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12338if test "x$ac_cv_func_dlopen" = xyes; then :
12339  lt_cv_dlopen=dlopen
12340else
12341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12342$as_echo_n "checking for dlopen in -ldl... " >&6; }
12343if ${ac_cv_lib_dl_dlopen+:} false; then :
12344  $as_echo_n "(cached) " >&6
12345else
12346  ac_check_lib_save_LIBS=$LIBS
12347LIBS="-ldl  $LIBS"
12348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349/* end confdefs.h.  */
12350
12351/* Override any GCC internal prototype to avoid an error.
12352   Use char because int might match the return type of a GCC
12353   builtin and then its argument prototype would still apply.  */
12354#ifdef __cplusplus
12355extern "C"
12356#endif
12357char dlopen ();
12358int
12359main ()
12360{
12361return dlopen ();
12362  ;
12363  return 0;
12364}
12365_ACEOF
12366if ac_fn_c_try_link "$LINENO"; then :
12367  ac_cv_lib_dl_dlopen=yes
12368else
12369  ac_cv_lib_dl_dlopen=no
12370fi
12371rm -f core conftest.err conftest.$ac_objext \
12372    conftest$ac_exeext conftest.$ac_ext
12373LIBS=$ac_check_lib_save_LIBS
12374fi
12375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12376$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12377if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12378  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12379else
12380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12381$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12382if ${ac_cv_lib_svld_dlopen+:} false; then :
12383  $as_echo_n "(cached) " >&6
12384else
12385  ac_check_lib_save_LIBS=$LIBS
12386LIBS="-lsvld  $LIBS"
12387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388/* end confdefs.h.  */
12389
12390/* Override any GCC internal prototype to avoid an error.
12391   Use char because int might match the return type of a GCC
12392   builtin and then its argument prototype would still apply.  */
12393#ifdef __cplusplus
12394extern "C"
12395#endif
12396char dlopen ();
12397int
12398main ()
12399{
12400return dlopen ();
12401  ;
12402  return 0;
12403}
12404_ACEOF
12405if ac_fn_c_try_link "$LINENO"; then :
12406  ac_cv_lib_svld_dlopen=yes
12407else
12408  ac_cv_lib_svld_dlopen=no
12409fi
12410rm -f core conftest.err conftest.$ac_objext \
12411    conftest$ac_exeext conftest.$ac_ext
12412LIBS=$ac_check_lib_save_LIBS
12413fi
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12415$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12416if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12417  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12418else
12419  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12420$as_echo_n "checking for dld_link in -ldld... " >&6; }
12421if ${ac_cv_lib_dld_dld_link+:} false; then :
12422  $as_echo_n "(cached) " >&6
12423else
12424  ac_check_lib_save_LIBS=$LIBS
12425LIBS="-ldld  $LIBS"
12426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12427/* end confdefs.h.  */
12428
12429/* Override any GCC internal prototype to avoid an error.
12430   Use char because int might match the return type of a GCC
12431   builtin and then its argument prototype would still apply.  */
12432#ifdef __cplusplus
12433extern "C"
12434#endif
12435char dld_link ();
12436int
12437main ()
12438{
12439return dld_link ();
12440  ;
12441  return 0;
12442}
12443_ACEOF
12444if ac_fn_c_try_link "$LINENO"; then :
12445  ac_cv_lib_dld_dld_link=yes
12446else
12447  ac_cv_lib_dld_dld_link=no
12448fi
12449rm -f core conftest.err conftest.$ac_objext \
12450    conftest$ac_exeext conftest.$ac_ext
12451LIBS=$ac_check_lib_save_LIBS
12452fi
12453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12454$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12455if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12456  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12457fi
12458
12459
12460fi
12461
12462
12463fi
12464
12465
12466fi
12467
12468
12469fi
12470
12471
12472fi
12473
12474    ;;
12475  esac
12476
12477  if test no = "$lt_cv_dlopen"; then
12478    enable_dlopen=no
12479  else
12480    enable_dlopen=yes
12481  fi
12482
12483  case $lt_cv_dlopen in
12484  dlopen)
12485    save_CPPFLAGS=$CPPFLAGS
12486    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12487
12488    save_LDFLAGS=$LDFLAGS
12489    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12490
12491    save_LIBS=$LIBS
12492    LIBS="$lt_cv_dlopen_libs $LIBS"
12493
12494    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12495$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12496if ${lt_cv_dlopen_self+:} false; then :
12497  $as_echo_n "(cached) " >&6
12498else
12499  	  if test yes = "$cross_compiling"; then :
12500  lt_cv_dlopen_self=cross
12501else
12502  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12503  lt_status=$lt_dlunknown
12504  cat > conftest.$ac_ext <<_LT_EOF
12505#line $LINENO "configure"
12506#include "confdefs.h"
12507
12508#if HAVE_DLFCN_H
12509#include <dlfcn.h>
12510#endif
12511
12512#include <stdio.h>
12513
12514#ifdef RTLD_GLOBAL
12515#  define LT_DLGLOBAL		RTLD_GLOBAL
12516#else
12517#  ifdef DL_GLOBAL
12518#    define LT_DLGLOBAL		DL_GLOBAL
12519#  else
12520#    define LT_DLGLOBAL		0
12521#  endif
12522#endif
12523
12524/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12525   find out it does not work in some platform. */
12526#ifndef LT_DLLAZY_OR_NOW
12527#  ifdef RTLD_LAZY
12528#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12529#  else
12530#    ifdef DL_LAZY
12531#      define LT_DLLAZY_OR_NOW		DL_LAZY
12532#    else
12533#      ifdef RTLD_NOW
12534#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12535#      else
12536#        ifdef DL_NOW
12537#          define LT_DLLAZY_OR_NOW	DL_NOW
12538#        else
12539#          define LT_DLLAZY_OR_NOW	0
12540#        endif
12541#      endif
12542#    endif
12543#  endif
12544#endif
12545
12546/* When -fvisibility=hidden is used, assume the code has been annotated
12547   correspondingly for the symbols needed.  */
12548#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12549int fnord () __attribute__((visibility("default")));
12550#endif
12551
12552int fnord () { return 42; }
12553int main ()
12554{
12555  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12556  int status = $lt_dlunknown;
12557
12558  if (self)
12559    {
12560      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12561      else
12562        {
12563	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12564          else puts (dlerror ());
12565	}
12566      /* dlclose (self); */
12567    }
12568  else
12569    puts (dlerror ());
12570
12571  return status;
12572}
12573_LT_EOF
12574  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12575  (eval $ac_link) 2>&5
12576  ac_status=$?
12577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12578  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12579    (./conftest; exit; ) >&5 2>/dev/null
12580    lt_status=$?
12581    case x$lt_status in
12582      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12583      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12584      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12585    esac
12586  else :
12587    # compilation failed
12588    lt_cv_dlopen_self=no
12589  fi
12590fi
12591rm -fr conftest*
12592
12593
12594fi
12595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12596$as_echo "$lt_cv_dlopen_self" >&6; }
12597
12598    if test yes = "$lt_cv_dlopen_self"; then
12599      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12600      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12601$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12602if ${lt_cv_dlopen_self_static+:} false; then :
12603  $as_echo_n "(cached) " >&6
12604else
12605  	  if test yes = "$cross_compiling"; then :
12606  lt_cv_dlopen_self_static=cross
12607else
12608  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12609  lt_status=$lt_dlunknown
12610  cat > conftest.$ac_ext <<_LT_EOF
12611#line $LINENO "configure"
12612#include "confdefs.h"
12613
12614#if HAVE_DLFCN_H
12615#include <dlfcn.h>
12616#endif
12617
12618#include <stdio.h>
12619
12620#ifdef RTLD_GLOBAL
12621#  define LT_DLGLOBAL		RTLD_GLOBAL
12622#else
12623#  ifdef DL_GLOBAL
12624#    define LT_DLGLOBAL		DL_GLOBAL
12625#  else
12626#    define LT_DLGLOBAL		0
12627#  endif
12628#endif
12629
12630/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12631   find out it does not work in some platform. */
12632#ifndef LT_DLLAZY_OR_NOW
12633#  ifdef RTLD_LAZY
12634#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12635#  else
12636#    ifdef DL_LAZY
12637#      define LT_DLLAZY_OR_NOW		DL_LAZY
12638#    else
12639#      ifdef RTLD_NOW
12640#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12641#      else
12642#        ifdef DL_NOW
12643#          define LT_DLLAZY_OR_NOW	DL_NOW
12644#        else
12645#          define LT_DLLAZY_OR_NOW	0
12646#        endif
12647#      endif
12648#    endif
12649#  endif
12650#endif
12651
12652/* When -fvisibility=hidden is used, assume the code has been annotated
12653   correspondingly for the symbols needed.  */
12654#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12655int fnord () __attribute__((visibility("default")));
12656#endif
12657
12658int fnord () { return 42; }
12659int main ()
12660{
12661  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12662  int status = $lt_dlunknown;
12663
12664  if (self)
12665    {
12666      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12667      else
12668        {
12669	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12670          else puts (dlerror ());
12671	}
12672      /* dlclose (self); */
12673    }
12674  else
12675    puts (dlerror ());
12676
12677  return status;
12678}
12679_LT_EOF
12680  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12681  (eval $ac_link) 2>&5
12682  ac_status=$?
12683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12684  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12685    (./conftest; exit; ) >&5 2>/dev/null
12686    lt_status=$?
12687    case x$lt_status in
12688      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12689      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12690      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12691    esac
12692  else :
12693    # compilation failed
12694    lt_cv_dlopen_self_static=no
12695  fi
12696fi
12697rm -fr conftest*
12698
12699
12700fi
12701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12702$as_echo "$lt_cv_dlopen_self_static" >&6; }
12703    fi
12704
12705    CPPFLAGS=$save_CPPFLAGS
12706    LDFLAGS=$save_LDFLAGS
12707    LIBS=$save_LIBS
12708    ;;
12709  esac
12710
12711  case $lt_cv_dlopen_self in
12712  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12713  *) enable_dlopen_self=unknown ;;
12714  esac
12715
12716  case $lt_cv_dlopen_self_static in
12717  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12718  *) enable_dlopen_self_static=unknown ;;
12719  esac
12720fi
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738striplib=
12739old_striplib=
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12741$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12742if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12743  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12744  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12746$as_echo "yes" >&6; }
12747else
12748# FIXME - insert some real tests, host_os isn't really good enough
12749  case $host_os in
12750  darwin*)
12751    if test -n "$STRIP"; then
12752      striplib="$STRIP -x"
12753      old_striplib="$STRIP -S"
12754      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12755$as_echo "yes" >&6; }
12756    else
12757      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758$as_echo "no" >&6; }
12759    fi
12760    ;;
12761  *)
12762    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763$as_echo "no" >&6; }
12764    ;;
12765  esac
12766fi
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779  # Report what library types will actually be built
12780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12781$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12783$as_echo "$can_build_shared" >&6; }
12784
12785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12786$as_echo_n "checking whether to build shared libraries... " >&6; }
12787  test no = "$can_build_shared" && enable_shared=no
12788
12789  # On AIX, shared libraries and static libraries use the same namespace, and
12790  # are all built from PIC.
12791  case $host_os in
12792  aix3*)
12793    test yes = "$enable_shared" && enable_static=no
12794    if test -n "$RANLIB"; then
12795      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12796      postinstall_cmds='$RANLIB $lib'
12797    fi
12798    ;;
12799
12800  aix[4-9]*)
12801    if test ia64 != "$host_cpu"; then
12802      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12803      yes,aix,yes) ;;			# shared object as lib.so file only
12804      yes,svr4,*) ;;			# shared object as lib.so archive member only
12805      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12806      esac
12807    fi
12808    ;;
12809  esac
12810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12811$as_echo "$enable_shared" >&6; }
12812
12813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12814$as_echo_n "checking whether to build static libraries... " >&6; }
12815  # Make sure either enable_shared or enable_static is yes.
12816  test yes = "$enable_shared" || enable_static=yes
12817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12818$as_echo "$enable_static" >&6; }
12819
12820
12821
12822
12823fi
12824ac_ext=c
12825ac_cpp='$CPP $CPPFLAGS'
12826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12828ac_compiler_gnu=$ac_cv_c_compiler_gnu
12829
12830CC=$lt_save_CC
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846        ac_config_commands="$ac_config_commands libtool"
12847
12848
12849
12850
12851# Only expand once:
12852
12853
12854
12855for ac_prog in flex lex
12856do
12857  # Extract the first word of "$ac_prog", so it can be a program name with args.
12858set dummy $ac_prog; ac_word=$2
12859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860$as_echo_n "checking for $ac_word... " >&6; }
12861if ${ac_cv_prog_LEX+:} false; then :
12862  $as_echo_n "(cached) " >&6
12863else
12864  if test -n "$LEX"; then
12865  ac_cv_prog_LEX="$LEX" # Let the user override the test.
12866else
12867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868for as_dir in $PATH
12869do
12870  IFS=$as_save_IFS
12871  test -z "$as_dir" && as_dir=.
12872    for ac_exec_ext in '' $ac_executable_extensions; do
12873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12874    ac_cv_prog_LEX="$ac_prog"
12875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12876    break 2
12877  fi
12878done
12879  done
12880IFS=$as_save_IFS
12881
12882fi
12883fi
12884LEX=$ac_cv_prog_LEX
12885if test -n "$LEX"; then
12886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12887$as_echo "$LEX" >&6; }
12888else
12889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890$as_echo "no" >&6; }
12891fi
12892
12893
12894  test -n "$LEX" && break
12895done
12896test -n "$LEX" || LEX=":"
12897
12898if test "x$LEX" != "x:"; then
12899  cat >conftest.l <<_ACEOF
12900%%
12901a { ECHO; }
12902b { REJECT; }
12903c { yymore (); }
12904d { yyless (1); }
12905e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
12906    yyless ((input () != 0)); }
12907f { unput (yytext[0]); }
12908. { BEGIN INITIAL; }
12909%%
12910#ifdef YYTEXT_POINTER
12911extern char *yytext;
12912#endif
12913int
12914main (void)
12915{
12916  return ! yylex () + ! yywrap ();
12917}
12918_ACEOF
12919{ { ac_try="$LEX conftest.l"
12920case "(($ac_try" in
12921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922  *) ac_try_echo=$ac_try;;
12923esac
12924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12925$as_echo "$ac_try_echo"; } >&5
12926  (eval "$LEX conftest.l") 2>&5
12927  ac_status=$?
12928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12929  test $ac_status = 0; }
12930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12931$as_echo_n "checking lex output file root... " >&6; }
12932if ${ac_cv_prog_lex_root+:} false; then :
12933  $as_echo_n "(cached) " >&6
12934else
12935
12936if test -f lex.yy.c; then
12937  ac_cv_prog_lex_root=lex.yy
12938elif test -f lexyy.c; then
12939  ac_cv_prog_lex_root=lexyy
12940else
12941  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12942fi
12943fi
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12945$as_echo "$ac_cv_prog_lex_root" >&6; }
12946LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12947
12948if test -z "${LEXLIB+set}"; then
12949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12950$as_echo_n "checking lex library... " >&6; }
12951if ${ac_cv_lib_lex+:} false; then :
12952  $as_echo_n "(cached) " >&6
12953else
12954
12955    ac_save_LIBS=$LIBS
12956    ac_cv_lib_lex='none needed'
12957    for ac_lib in '' -lfl -ll; do
12958      LIBS="$ac_lib $ac_save_LIBS"
12959      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12960/* end confdefs.h.  */
12961`cat $LEX_OUTPUT_ROOT.c`
12962_ACEOF
12963if ac_fn_c_try_link "$LINENO"; then :
12964  ac_cv_lib_lex=$ac_lib
12965fi
12966rm -f core conftest.err conftest.$ac_objext \
12967    conftest$ac_exeext conftest.$ac_ext
12968      test "$ac_cv_lib_lex" != 'none needed' && break
12969    done
12970    LIBS=$ac_save_LIBS
12971
12972fi
12973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12974$as_echo "$ac_cv_lib_lex" >&6; }
12975  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12976fi
12977
12978
12979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12980$as_echo_n "checking whether yytext is a pointer... " >&6; }
12981if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12982  $as_echo_n "(cached) " >&6
12983else
12984  # POSIX says lex can declare yytext either as a pointer or an array; the
12985# default is implementation-dependent.  Figure out which it is, since
12986# not all implementations provide the %pointer and %array declarations.
12987ac_cv_prog_lex_yytext_pointer=no
12988ac_save_LIBS=$LIBS
12989LIBS="$LEXLIB $ac_save_LIBS"
12990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991/* end confdefs.h.  */
12992
12993  #define YYTEXT_POINTER 1
12994`cat $LEX_OUTPUT_ROOT.c`
12995_ACEOF
12996if ac_fn_c_try_link "$LINENO"; then :
12997  ac_cv_prog_lex_yytext_pointer=yes
12998fi
12999rm -f core conftest.err conftest.$ac_objext \
13000    conftest$ac_exeext conftest.$ac_ext
13001LIBS=$ac_save_LIBS
13002
13003fi
13004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13005$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13006if test $ac_cv_prog_lex_yytext_pointer = yes; then
13007
13008$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13009
13010fi
13011rm -f conftest.l $LEX_OUTPUT_ROOT.c
13012
13013fi
13014if test "$LEX" = :; then
13015  LEX=${am_missing_run}flex
13016fi
13017for ac_prog in 'bison -y' byacc
13018do
13019  # Extract the first word of "$ac_prog", so it can be a program name with args.
13020set dummy $ac_prog; ac_word=$2
13021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13022$as_echo_n "checking for $ac_word... " >&6; }
13023if ${ac_cv_prog_YACC+:} false; then :
13024  $as_echo_n "(cached) " >&6
13025else
13026  if test -n "$YACC"; then
13027  ac_cv_prog_YACC="$YACC" # Let the user override the test.
13028else
13029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13030for as_dir in $PATH
13031do
13032  IFS=$as_save_IFS
13033  test -z "$as_dir" && as_dir=.
13034    for ac_exec_ext in '' $ac_executable_extensions; do
13035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13036    ac_cv_prog_YACC="$ac_prog"
13037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13038    break 2
13039  fi
13040done
13041  done
13042IFS=$as_save_IFS
13043
13044fi
13045fi
13046YACC=$ac_cv_prog_YACC
13047if test -n "$YACC"; then
13048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13049$as_echo "$YACC" >&6; }
13050else
13051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052$as_echo "no" >&6; }
13053fi
13054
13055
13056  test -n "$YACC" && break
13057done
13058test -n "$YACC" || YACC="yacc"
13059
13060
13061# Extract the first word of "perl", so it can be a program name with args.
13062set dummy perl; ac_word=$2
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064$as_echo_n "checking for $ac_word... " >&6; }
13065if ${ac_cv_path_PERL+:} false; then :
13066  $as_echo_n "(cached) " >&6
13067else
13068  case $PERL in
13069  [\\/]* | ?:[\\/]*)
13070  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13071  ;;
13072  *)
13073  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074for as_dir in $PATH
13075do
13076  IFS=$as_save_IFS
13077  test -z "$as_dir" && as_dir=.
13078    for ac_exec_ext in '' $ac_executable_extensions; do
13079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13080    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13082    break 2
13083  fi
13084done
13085  done
13086IFS=$as_save_IFS
13087
13088  ;;
13089esac
13090fi
13091PERL=$ac_cv_path_PERL
13092if test -n "$PERL"; then
13093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13094$as_echo "$PERL" >&6; }
13095else
13096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097$as_echo "no" >&6; }
13098fi
13099
13100
13101
13102# Extract the first word of "getconf", so it can be a program name with args.
13103set dummy getconf; ac_word=$2
13104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13105$as_echo_n "checking for $ac_word... " >&6; }
13106if ${ac_cv_path_GETCONF+:} false; then :
13107  $as_echo_n "(cached) " >&6
13108else
13109  case $GETCONF in
13110  [\\/]* | ?:[\\/]*)
13111  ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
13112  ;;
13113  *)
13114  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13115as_dummy="$PATH:$prefix/bin:/usr/bin:/usr/local/bin:/sw/bin"
13116for as_dir in $as_dummy
13117do
13118  IFS=$as_save_IFS
13119  test -z "$as_dir" && as_dir=.
13120    for ac_exec_ext in '' $ac_executable_extensions; do
13121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13122    ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
13123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13124    break 2
13125  fi
13126done
13127  done
13128IFS=$as_save_IFS
13129
13130  test -z "$ac_cv_path_GETCONF" && ac_cv_path_GETCONF="false"
13131  ;;
13132esac
13133fi
13134GETCONF=$ac_cv_path_GETCONF
13135if test -n "$GETCONF"; then
13136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
13137$as_echo "$GETCONF" >&6; }
13138else
13139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140$as_echo "no" >&6; }
13141fi
13142
13143
13144 if test "x$cross_compiling" = "xyes"; then
13145  CROSS_COMPILING_TRUE=
13146  CROSS_COMPILING_FALSE='#'
13147else
13148  CROSS_COMPILING_TRUE='#'
13149  CROSS_COMPILING_FALSE=
13150fi
13151
13152
13153
13154
13155
13156# Check whether --with-pthreads was given.
13157if test "${with_pthreads+set}" = set; then :
13158  withval=$with_pthreads;
13159fi
13160
13161
13162if test "x$with_pthreads" != x && test "x$with_pthreads" != "xyes" && test "x$with_pthreads" != "xno"; then
13163   LIBS="$LIBS -L$with_pthreads/lib"
13164   CPPFLAGS="-I$with_pthreads/include $CPPFLAGS"
13165fi
13166
13167
13168
13169
13170ac_ext=c
13171ac_cpp='$CPP $CPPFLAGS'
13172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13174ac_compiler_gnu=$ac_cv_c_compiler_gnu
13175
13176acx_pthread_ok=no
13177
13178# We used to check for pthread.h first, but this fails if pthread.h
13179# requires special compiler flags (e.g. on True64 or Sequent).
13180# It gets checked for in the link test anyway.
13181
13182# First of all, check if the user has set any of the PTHREAD_LIBS,
13183# etcetera environment variables, and if threads linking works using
13184# them:
13185if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13186        save_CFLAGS="$CFLAGS"
13187        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13188        save_LIBS="$LIBS"
13189        LIBS="$PTHREAD_LIBS $LIBS"
13190        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13191$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
13192        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193/* end confdefs.h.  */
13194
13195/* Override any GCC internal prototype to avoid an error.
13196   Use char because int might match the return type of a GCC
13197   builtin and then its argument prototype would still apply.  */
13198#ifdef __cplusplus
13199extern "C"
13200#endif
13201char pthread_join ();
13202int
13203main ()
13204{
13205return pthread_join ();
13206  ;
13207  return 0;
13208}
13209_ACEOF
13210if ac_fn_c_try_link "$LINENO"; then :
13211  acx_pthread_ok=yes
13212fi
13213rm -f core conftest.err conftest.$ac_objext \
13214    conftest$ac_exeext conftest.$ac_ext
13215        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
13216$as_echo "$acx_pthread_ok" >&6; }
13217        if test x"$acx_pthread_ok" = xno; then
13218                PTHREAD_LIBS=""
13219                PTHREAD_CFLAGS=""
13220        fi
13221        LIBS="$save_LIBS"
13222        CFLAGS="$save_CFLAGS"
13223fi
13224
13225# We must check for the threads library under a number of different
13226# names; the ordering is very important because some systems
13227# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13228# libraries is broken (non-POSIX).
13229
13230# Create a list of thread flags to try.  Items starting with a "-" are
13231# C compiler flags, and other items are library names, except for "none"
13232# which indicates that we try without any flags at all, and "pthread-config"
13233# which is a program returning the flags for the Pth emulation library.
13234
13235acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config pthreadGC2"
13236
13237# The ordering *is* (sometimes) important.  Some notes on the
13238# individual items follow:
13239
13240# pthreads: AIX (must check this before -lpthread)
13241# none: in case threads are in libc; should be tried before -Kthread and
13242#       other compiler flags to prevent continual compiler warnings
13243# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13244# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13245# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13246# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13247# -pthreads: Solaris/gcc
13248# -mthreads: Mingw32/gcc, Lynx/gcc
13249# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13250#      doesn't hurt to check since this sometimes defines pthreads too;
13251#      also defines -D_REENTRANT)
13252#      ... -mt is also the pthreads flag for HP/aCC
13253# pthread: Linux, etcetera
13254# --thread-safe: KAI C++
13255# pthread-config: use pthread-config program (for GNU Pth library)
13256
13257case "${host_cpu}-${host_os}" in
13258        *solaris*)
13259
13260        # On Solaris (at least, for some versions), libc contains stubbed
13261        # (non-functional) versions of the pthreads routines, so link-based
13262        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
13263        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
13264        # a function called by this macro, so we could check for that, but
13265        # who knows whether they'll stub that too in a future libc.)  So,
13266        # we'll just look for -pthreads and -lpthread first:
13267
13268        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
13269        ;;
13270esac
13271
13272if test x"$acx_pthread_ok" = xno; then
13273for flag in $acx_pthread_flags; do
13274
13275        case $flag in
13276                none)
13277                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13278$as_echo_n "checking whether pthreads work without any flags... " >&6; }
13279                ;;
13280
13281                -*)
13282                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
13283$as_echo_n "checking whether pthreads work with $flag... " >&6; }
13284                PTHREAD_CFLAGS="$flag"
13285                ;;
13286
13287		pthread-config)
13288		# Extract the first word of "pthread-config", so it can be a program name with args.
13289set dummy pthread-config; ac_word=$2
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13291$as_echo_n "checking for $ac_word... " >&6; }
13292if ${ac_cv_prog_acx_pthread_config+:} false; then :
13293  $as_echo_n "(cached) " >&6
13294else
13295  if test -n "$acx_pthread_config"; then
13296  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
13297else
13298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299for as_dir in $PATH
13300do
13301  IFS=$as_save_IFS
13302  test -z "$as_dir" && as_dir=.
13303    for ac_exec_ext in '' $ac_executable_extensions; do
13304  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13305    ac_cv_prog_acx_pthread_config="yes"
13306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13307    break 2
13308  fi
13309done
13310  done
13311IFS=$as_save_IFS
13312
13313  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
13314fi
13315fi
13316acx_pthread_config=$ac_cv_prog_acx_pthread_config
13317if test -n "$acx_pthread_config"; then
13318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
13319$as_echo "$acx_pthread_config" >&6; }
13320else
13321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322$as_echo "no" >&6; }
13323fi
13324
13325
13326		if test x"$acx_pthread_config" = xno; then continue; fi
13327		PTHREAD_CFLAGS="`pthread-config --cflags`"
13328		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13329		;;
13330
13331                *)
13332                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
13333$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
13334                PTHREAD_LIBS="-l$flag"
13335                ;;
13336        esac
13337
13338        save_LIBS="$LIBS"
13339        save_CFLAGS="$CFLAGS"
13340        LIBS="$PTHREAD_LIBS $LIBS"
13341        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13342
13343        # Check for various functions.  We must include pthread.h,
13344        # since some functions may be macros.  (On the Sequent, we
13345        # need a special flag -Kthread to make this header compile.)
13346        # We check for pthread_join because it is in -lpthread on IRIX
13347        # while pthread_create is in libc.  We check for pthread_attr_init
13348        # due to DEC craziness with -lpthreads.  We check for
13349        # pthread_cleanup_push because it is one of the few pthread
13350        # functions on Solaris that doesn't have a non-functional libc stub.
13351        # We try pthread_create on general principles.
13352        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13353/* end confdefs.h.  */
13354#include <pthread.h>
13355int
13356main ()
13357{
13358pthread_t th; pthread_join(th, 0);
13359                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
13360                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
13361  ;
13362  return 0;
13363}
13364_ACEOF
13365if ac_fn_c_try_link "$LINENO"; then :
13366  acx_pthread_ok=yes
13367fi
13368rm -f core conftest.err conftest.$ac_objext \
13369    conftest$ac_exeext conftest.$ac_ext
13370
13371        LIBS="$save_LIBS"
13372        CFLAGS="$save_CFLAGS"
13373
13374        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
13375$as_echo "$acx_pthread_ok" >&6; }
13376        if test "x$acx_pthread_ok" = xyes; then
13377                break;
13378        fi
13379
13380        PTHREAD_LIBS=""
13381        PTHREAD_CFLAGS=""
13382done
13383fi
13384
13385# Various other checks:
13386if test "x$acx_pthread_ok" = xyes; then
13387        save_LIBS="$LIBS"
13388        LIBS="$PTHREAD_LIBS $LIBS"
13389        save_CFLAGS="$CFLAGS"
13390        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13391
13392        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
13393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
13394$as_echo_n "checking for joinable pthread attribute... " >&6; }
13395	attr_name=unknown
13396	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
13397	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398/* end confdefs.h.  */
13399#include <pthread.h>
13400int
13401main ()
13402{
13403int attr=$attr; return attr;
13404  ;
13405  return 0;
13406}
13407_ACEOF
13408if ac_fn_c_try_link "$LINENO"; then :
13409  attr_name=$attr; break
13410fi
13411rm -f core conftest.err conftest.$ac_objext \
13412    conftest$ac_exeext conftest.$ac_ext
13413	done
13414        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
13415$as_echo "$attr_name" >&6; }
13416        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
13417
13418cat >>confdefs.h <<_ACEOF
13419#define PTHREAD_CREATE_JOINABLE $attr_name
13420_ACEOF
13421
13422        fi
13423
13424        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
13425$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
13426        flag=no
13427        case "${host_cpu}-${host_os}" in
13428            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
13429            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13430        esac
13431        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
13432$as_echo "${flag}" >&6; }
13433        if test "x$flag" != xno; then
13434            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13435        fi
13436
13437        LIBS="$save_LIBS"
13438        CFLAGS="$save_CFLAGS"
13439
13440        # More AIX lossage: must compile with xlc_r or cc_r
13441	if test x"$GCC" != xyes; then
13442          for ac_prog in xlc_r cc_r
13443do
13444  # Extract the first word of "$ac_prog", so it can be a program name with args.
13445set dummy $ac_prog; ac_word=$2
13446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13447$as_echo_n "checking for $ac_word... " >&6; }
13448if ${ac_cv_prog_PTHREAD_CC+:} false; then :
13449  $as_echo_n "(cached) " >&6
13450else
13451  if test -n "$PTHREAD_CC"; then
13452  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13453else
13454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13455for as_dir in $PATH
13456do
13457  IFS=$as_save_IFS
13458  test -z "$as_dir" && as_dir=.
13459    for ac_exec_ext in '' $ac_executable_extensions; do
13460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13461    ac_cv_prog_PTHREAD_CC="$ac_prog"
13462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13463    break 2
13464  fi
13465done
13466  done
13467IFS=$as_save_IFS
13468
13469fi
13470fi
13471PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13472if test -n "$PTHREAD_CC"; then
13473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
13474$as_echo "$PTHREAD_CC" >&6; }
13475else
13476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477$as_echo "no" >&6; }
13478fi
13479
13480
13481  test -n "$PTHREAD_CC" && break
13482done
13483test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
13484
13485        else
13486          PTHREAD_CC=$CC
13487	fi
13488else
13489        PTHREAD_CC="$CC"
13490fi
13491
13492
13493
13494
13495
13496# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13497if test x"$acx_pthread_ok" = xyes; then
13498
13499$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
13500
13501        :
13502else
13503        acx_pthread_ok=no
13504        as_fn_error $? "pthread-compatible library is required to build CFEngine" "$LINENO" 5
13505fi
13506ac_ext=c
13507ac_cpp='$CPP $CPPFLAGS'
13508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13510ac_compiler_gnu=$ac_cv_c_compiler_gnu
13511
13512
13513
13514CC="$PTHREAD_CC"
13515CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
13516LIBS="$PTHREAD_LIBS $LIBS"
13517
13518
13519# Check whether --enable-builtin-extensions was given.
13520if test "${enable_builtin_extensions+set}" = set; then :
13521  enableval=$enable_builtin_extensions;
13522else
13523
13524                  case ${target_os} in #(
13525  mingw*) :
13526    enable_builtin_extensions=yes ;; #(
13527  *) :
13528    enable_builtin_extensions=no ;;
13529esac
13530
13531fi
13532
13533 if test "x$enable_builtin_extensions" = "xyes"; then
13534  BUILTIN_EXTENSIONS_TRUE=
13535  BUILTIN_EXTENSIONS_FALSE='#'
13536else
13537  BUILTIN_EXTENSIONS_TRUE='#'
13538  BUILTIN_EXTENSIONS_FALSE=
13539fi
13540
13541if test "x$enable_builtin_extensions" = "xyes"; then :
13542
13543$as_echo "#define BUILTIN_EXTENSIONS 1" >>confdefs.h
13544
13545fi
13546
13547
13548
13549# Check whether --enable-fhs was given.
13550if test "${enable_fhs+set}" = set; then :
13551  enableval=$enable_fhs;
13552fi
13553
13554
13555#
13556# pkglibdir/pkgdatadir are not overridable, so use our own invention instead.
13557#
13558
13559if test x"$enable_fhs" = xyes; then :
13560
13561  projlibdir='${pkglibdir}'
13562  WORKDIR='${localstatedir}/lib/${PACKAGE}'
13563  MASTERDIR='default'
13564  INPUTDIR='default'
13565  DATADIR='default'
13566  LOGDIR='${localstatedir}/log/${PACKAGE}'
13567  PIDDIR='${runstatedir:-${localstatedir}/run}/${PACKAGE}'
13568  STATEDIR='default'
13569
13570else
13571
13572  if test x"$prefix" = xNONE || test x"$prefix" = x/var/cfengine; then
13573    prefix=/var/cfengine
13574    case "$target_os" in
13575      mingw*)
13576        WORKDIR=$(cmd /c "echo %PROGRAMFILES%\\Cfengine" | sed 's/\\/\\\\/g')
13577        MASTERDIR=default
13578        INPUTDIR=default
13579        DATADIR=default
13580        LOGDIR=$(cmd /c "echo %PROGRAMFILES%\\Cfengine" | sed 's/\\/\\\\/g')
13581        PIDDIR=$(cmd /c "echo %PROGRAMFILES%\\Cfengine" | sed 's/\\/\\\\/g')
13582        STATEDIR=default
13583      ;;
13584      *)
13585        WORKDIR=/var/cfengine
13586        MASTERDIR=default
13587        INPUTDIR=default
13588        DATADIR=default
13589        LOGDIR=/var/cfengine
13590        PIDDIR=/var/cfengine
13591        STATEDIR=default
13592      ;;
13593    esac
13594  else
13595    WORKDIR="${localstatedir}/${PACKAGE}"
13596    MASTERDIR="default"
13597    INPUTDIR="default"
13598    DATADIR="default"
13599    LOGDIR="${localstatedir}/${PACKAGE}"
13600    PIDDIR="${localstatedir}/${PACKAGE}"
13601    STATEDIR="default"
13602  fi
13603  bindir="${bindir:-${exec_prefix}/bin}"
13604  projlibdir='${libdir}'
13605
13606fi
13607
13608
13609
13610
13611case ${target_os} in #(
13612  mingw*) :
13613    # Disable printf format warnings, because our wrapper supports more
13614    # flags than vanilla Windows version, so they are false positives.
13615    CFLAGS="$CFLAGS -Wno-format" ;; #(
13616  *) :
13617     ;;
13618esac
13619
13620case ${target_os} in #(
13621  mingw*) :
13622     if true; then
13623  WINDOWS_TRUE=
13624  WINDOWS_FALSE='#'
13625else
13626  WINDOWS_TRUE='#'
13627  WINDOWS_FALSE=
13628fi
13629 ;; #(
13630  *) :
13631     if false; then
13632  WINDOWS_TRUE=
13633  WINDOWS_FALSE='#'
13634else
13635  WINDOWS_TRUE='#'
13636  WINDOWS_FALSE=
13637fi
13638 ;;
13639esac
13640
13641
13642# Check whether --enable-debug was given.
13643if test "${enable_debug+set}" = set; then :
13644  enableval=$enable_debug; debug=$enableval
13645else
13646  debug=no
13647fi
13648
13649 if test x"$debug" = x"no"; then
13650  NDEBUG_TRUE=
13651  NDEBUG_FALSE='#'
13652else
13653  NDEBUG_TRUE='#'
13654  NDEBUG_FALSE=
13655fi
13656
13657
13658
13659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug option" >&5
13660$as_echo_n "checking for debug option... " >&6; }
13661if test x"$debug" = x"yes"
13662then
13663    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13664$as_echo "yes" >&6; }
13665    CFLAGS="$CFLAGS -g3 -O0 $ENV_CFLAGS"
13666else
13667    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13668$as_echo "no" >&6; }
13669    CFLAGS="$CFLAGS -O2 -DNDEBUG $ENV_CFLAGS"
13670fi
13671
13672
13673
13674# TODO remove
13675
13676# Check whether --with-sql was given.
13677if test "${with_sql+set}" = set; then :
13678  withval=$with_sql; with_postgresql=$with_sql; with_mysql=$with_sql
13679fi
13680
13681
13682
13683
13684# Check whether --with-postgresql was given.
13685if test "${with_postgresql+set}" = set; then :
13686  withval=$with_postgresql;
13687else
13688  with_postgresql=check
13689fi
13690
13691
13692if test "x$with_postgresql" != "xno"
13693then
13694    if test "x$with_postgresql" != xyes && test "x$with_postgresql" != xcheck
13695    then
13696        PG_CONFIG=$with_postgresql/bin/pg_config
13697    else
13698        PG_CONFIG=pg_config
13699    fi
13700
13701    # pg_config is only for native builds
13702    if test "x$cross_compiling" = "xno"
13703    then
13704        if test x`which $PG_CONFIG` != x
13705        then
13706            pg_include_dir=`$PG_CONFIG --includedir`
13707            if test -n "$pg_include_dir"
13708            then
13709                POSTGRESQL_CPPFLAGS="-I$pg_include_dir"
13710            fi
13711        fi
13712    fi
13713
13714
13715
13716
13717  #
13718  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
13719  #
13720  if test "x$with_postgresql" != xyes &&
13721     test "x$with_postgresql" != xcheck &&
13722     test "x$with_postgresql" != x
13723  then
13724    test -z "$POSTGRESQL_PATH" && POSTGRESQL_PATH="$with_postgresql"
13725    if test "x$with_postgresql" != x/usr &&
13726       test "x$with_postgresql" != x/
13727    then
13728      test -z "$POSTGRESQL_CFLAGS" && POSTGRESQL_CFLAGS=""
13729      test -z "$POSTGRESQL_CPPFLAGS" && POSTGRESQL_CPPFLAGS="-I$with_postgresql/include"
13730      test -z "$POSTGRESQL_LDFLAGS" && POSTGRESQL_LDFLAGS="-L$with_postgresql/lib"
13731    fi
13732  else
13733    POSTGRESQL_PATH="default path"
13734  fi
13735
13736  #
13737  # Save old environment
13738  #
13739  save_CFLAGS="$CFLAGS"
13740  save_CPPFLAGS="$CPPFLAGS"
13741  save_LDFLAGS="$LDFLAGS"
13742  save_LIBS="$LIBS"
13743
13744  CFLAGS="$CFLAGS $POSTGRESQL_CFLAGS"
13745  CPPFLAGS="$CPPFLAGS $POSTGRESQL_CPPFLAGS"
13746  LDFLAGS="$LDFLAGS $POSTGRESQL_LDFLAGS"
13747
13748  #
13749  # Run checks passed as argument
13750  #
13751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in -lpq" >&5
13752$as_echo_n "checking for PQconnectdb in -lpq... " >&6; }
13753if ${ac_cv_lib_pq_PQconnectdb+:} false; then :
13754  $as_echo_n "(cached) " >&6
13755else
13756  ac_check_lib_save_LIBS=$LIBS
13757LIBS="-lpq  $LIBS"
13758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759/* end confdefs.h.  */
13760
13761/* Override any GCC internal prototype to avoid an error.
13762   Use char because int might match the return type of a GCC
13763   builtin and then its argument prototype would still apply.  */
13764#ifdef __cplusplus
13765extern "C"
13766#endif
13767char PQconnectdb ();
13768int
13769main ()
13770{
13771return PQconnectdb ();
13772  ;
13773  return 0;
13774}
13775_ACEOF
13776if ac_fn_c_try_link "$LINENO"; then :
13777  ac_cv_lib_pq_PQconnectdb=yes
13778else
13779  ac_cv_lib_pq_PQconnectdb=no
13780fi
13781rm -f core conftest.err conftest.$ac_objext \
13782    conftest$ac_exeext conftest.$ac_ext
13783LIBS=$ac_check_lib_save_LIBS
13784fi
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQconnectdb" >&5
13786$as_echo "$ac_cv_lib_pq_PQconnectdb" >&6; }
13787if test "x$ac_cv_lib_pq_PQconnectdb" = xyes; then :
13788  cat >>confdefs.h <<_ACEOF
13789#define HAVE_LIBPQ 1
13790_ACEOF
13791
13792  LIBS="-lpq $LIBS"
13793
13794else
13795  if test "x$with_postgresql" != xcheck; then
13796                as_fn_error $? "Cannot find PostgreSQL client library" "$LINENO" 5; fi
13797
13798fi
13799
13800         for ac_header in libpq-fe.h
13801do :
13802  ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
13803if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
13804  cat >>confdefs.h <<_ACEOF
13805#define HAVE_LIBPQ_FE_H 1
13806_ACEOF
13807
13808else
13809  if test "x$with_postgresql" != xcheck; then
13810                 as_fn_error $? "Cannot find PostgreSQL client library" "$LINENO" 5; fi
13811
13812fi
13813
13814done
13815
13816
13817
13818  #
13819  # Pick up any libraries added by tests
13820  #
13821  test -z "$POSTGRESQL_LIBS" && POSTGRESQL_LIBS="$LIBS"
13822
13823  #
13824  # libtool understands -R$path, but we are not using libtool in configure
13825  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
13826  #
13827  if test "x$with_postgresql" != xyes &&
13828     test "x$with_postgresql" != xcheck &&
13829     test "x$with_postgresql" != x/usr &&
13830     test "x$with_postgresql" != x/
13831  then
13832    POSTGRESQL_LDFLAGS="$POSTGRESQL_LDFLAGS -R$with_postgresql/lib"
13833  fi
13834
13835  #
13836  # Restore pristine environment
13837  #
13838  CFLAGS="$save_CFLAGS"
13839  CPPFLAGS="$save_CPPFLAGS"
13840  LDFLAGS="$save_LDFLAGS"
13841  LIBS="$save_LIBS"
13842
13843
13844
13845
13846
13847
13848
13849fi
13850
13851
13852
13853# Check whether --with-mysql was given.
13854if test "${with_mysql+set}" = set; then :
13855  withval=$with_mysql;
13856else
13857  with_mysql=check
13858fi
13859
13860
13861if test "x$with_mysql" != "xno"
13862then
13863    if test "x$with_mysql" != xyes &&
13864       test "x$with_mysql" != xcheck
13865    then
13866        MYSQL_CONFIG=$with_mysql/bin/mysql_config
13867    else
13868        MYSQL_CONFIG=mysql_config
13869    fi
13870
13871    # mysql_config is only for native builds
13872    if test "x$cross_compiling" = "xno"
13873    then
13874        if test x`which $MYSQL_CONFIG` != x
13875        then
13876            mysql_include_dir=`$MYSQL_CONFIG --include`
13877            if test -n "$mysql_include_dir"
13878            then
13879                MYSQL_CPPFLAGS="$mysql_include_dir"
13880            fi
13881        fi
13882    fi
13883
13884
13885
13886
13887  #
13888  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
13889  #
13890  if test "x$with_mysql" != xyes &&
13891     test "x$with_mysql" != xcheck &&
13892     test "x$with_mysql" != x
13893  then
13894    test -z "$MYSQL_PATH" && MYSQL_PATH="$with_mysql"
13895    if test "x$with_mysql" != x/usr &&
13896       test "x$with_mysql" != x/
13897    then
13898      test -z "$MYSQL_CFLAGS" && MYSQL_CFLAGS=""
13899      test -z "$MYSQL_CPPFLAGS" && MYSQL_CPPFLAGS="-I$with_mysql/include"
13900      test -z "$MYSQL_LDFLAGS" && MYSQL_LDFLAGS="-L$with_mysql/lib"
13901    fi
13902  else
13903    MYSQL_PATH="default path"
13904  fi
13905
13906  #
13907  # Save old environment
13908  #
13909  save_CFLAGS="$CFLAGS"
13910  save_CPPFLAGS="$CPPFLAGS"
13911  save_LDFLAGS="$LDFLAGS"
13912  save_LIBS="$LIBS"
13913
13914  CFLAGS="$CFLAGS $MYSQL_CFLAGS"
13915  CPPFLAGS="$CPPFLAGS $MYSQL_CPPFLAGS"
13916  LDFLAGS="$LDFLAGS $MYSQL_LDFLAGS"
13917
13918  #
13919  # Run checks passed as argument
13920  #
13921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_real_connect in -lmysqlclient" >&5
13922$as_echo_n "checking for mysql_real_connect in -lmysqlclient... " >&6; }
13923if ${ac_cv_lib_mysqlclient_mysql_real_connect+:} false; then :
13924  $as_echo_n "(cached) " >&6
13925else
13926  ac_check_lib_save_LIBS=$LIBS
13927LIBS="-lmysqlclient  $LIBS"
13928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929/* end confdefs.h.  */
13930
13931/* Override any GCC internal prototype to avoid an error.
13932   Use char because int might match the return type of a GCC
13933   builtin and then its argument prototype would still apply.  */
13934#ifdef __cplusplus
13935extern "C"
13936#endif
13937char mysql_real_connect ();
13938int
13939main ()
13940{
13941return mysql_real_connect ();
13942  ;
13943  return 0;
13944}
13945_ACEOF
13946if ac_fn_c_try_link "$LINENO"; then :
13947  ac_cv_lib_mysqlclient_mysql_real_connect=yes
13948else
13949  ac_cv_lib_mysqlclient_mysql_real_connect=no
13950fi
13951rm -f core conftest.err conftest.$ac_objext \
13952    conftest$ac_exeext conftest.$ac_ext
13953LIBS=$ac_check_lib_save_LIBS
13954fi
13955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_real_connect" >&5
13956$as_echo "$ac_cv_lib_mysqlclient_mysql_real_connect" >&6; }
13957if test "x$ac_cv_lib_mysqlclient_mysql_real_connect" = xyes; then :
13958  cat >>confdefs.h <<_ACEOF
13959#define HAVE_LIBMYSQLCLIENT 1
13960_ACEOF
13961
13962  LIBS="-lmysqlclient $LIBS"
13963
13964else
13965  if test "x$with_mysql" != xcheck; then
13966                as_fn_error $? "Cannot find MySQL client library" "$LINENO" 5; fi
13967
13968fi
13969
13970        for ac_header in mysql.h
13971do :
13972  ac_fn_c_check_header_mongrel "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default"
13973if test "x$ac_cv_header_mysql_h" = xyes; then :
13974  cat >>confdefs.h <<_ACEOF
13975#define HAVE_MYSQL_H 1
13976_ACEOF
13977
13978else
13979  if test "x$with_mysql" != xcheck; then
13980                as_fn_error $? "Cannot find MySQL clientlibrary" "$LINENO" 5; fi
13981
13982fi
13983
13984done
13985
13986        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_init in -lmysqlclient" >&5
13987$as_echo_n "checking for EVP_CIPHER_CTX_init in -lmysqlclient... " >&6; }
13988if ${ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init+:} false; then :
13989  $as_echo_n "(cached) " >&6
13990else
13991  ac_check_lib_save_LIBS=$LIBS
13992LIBS="-lmysqlclient  $LIBS"
13993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994/* end confdefs.h.  */
13995
13996/* Override any GCC internal prototype to avoid an error.
13997   Use char because int might match the return type of a GCC
13998   builtin and then its argument prototype would still apply.  */
13999#ifdef __cplusplus
14000extern "C"
14001#endif
14002char EVP_CIPHER_CTX_init ();
14003int
14004main ()
14005{
14006return EVP_CIPHER_CTX_init ();
14007  ;
14008  return 0;
14009}
14010_ACEOF
14011if ac_fn_c_try_link "$LINENO"; then :
14012  ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init=yes
14013else
14014  ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init=no
14015fi
14016rm -f core conftest.err conftest.$ac_objext \
14017    conftest$ac_exeext conftest.$ac_ext
14018LIBS=$ac_check_lib_save_LIBS
14019fi
14020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init" >&5
14021$as_echo "$ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init" >&6; }
14022if test "x$ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init" = xyes; then :
14023  as_fn_error $? "MySQL client library exports symbols clashing \
14024                with OpenSSL. Get the update from distribution provider, \
14025                recompile MySQL library or disable MySQL connector. See \
14026                http://bugs.mysql.com/bug.php?id=65055 for details." "$LINENO" 5
14027
14028
14029fi
14030
14031
14032
14033  #
14034  # Pick up any libraries added by tests
14035  #
14036  test -z "$MYSQL_LIBS" && MYSQL_LIBS="$LIBS"
14037
14038  #
14039  # libtool understands -R$path, but we are not using libtool in configure
14040  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
14041  #
14042  if test "x$with_mysql" != xyes &&
14043     test "x$with_mysql" != xcheck &&
14044     test "x$with_mysql" != x/usr &&
14045     test "x$with_mysql" != x/
14046  then
14047    MYSQL_LDFLAGS="$MYSQL_LDFLAGS -R$with_mysql/lib"
14048  fi
14049
14050  #
14051  # Restore pristine environment
14052  #
14053  CFLAGS="$save_CFLAGS"
14054  CPPFLAGS="$save_CPPFLAGS"
14055  LDFLAGS="$save_LDFLAGS"
14056  LIBS="$save_LIBS"
14057
14058
14059
14060
14061
14062
14063
14064fi
14065
14066
14067
14068
14069# Check whether --with-qdbm was given.
14070if test "${with_qdbm+set}" = set; then :
14071  withval=$with_qdbm;
14072fi
14073
14074if test -n "$with_qdbm" && test "x$with_qdbm" != "xno"; then :
14075  WITH_QDBM=1
14076else
14077  WITH_QDBM=0
14078fi
14079
14080if test $WITH_QDBM = 1; then
14081
14082
14083
14084  #
14085  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
14086  #
14087  if test "x$with_qdbm" != xyes &&
14088     test "x$with_qdbm" != xcheck &&
14089     test "x$with_qdbm" != x
14090  then
14091    test -z "$QDBM_PATH" && QDBM_PATH="$with_qdbm"
14092    if test "x$with_qdbm" != x/usr &&
14093       test "x$with_qdbm" != x/
14094    then
14095      test -z "$QDBM_CFLAGS" && QDBM_CFLAGS=""
14096      test -z "$QDBM_CPPFLAGS" && QDBM_CPPFLAGS="-I$with_qdbm/include"
14097      test -z "$QDBM_LDFLAGS" && QDBM_LDFLAGS="-L$with_qdbm/lib"
14098    fi
14099  else
14100    QDBM_PATH="default path"
14101  fi
14102
14103  #
14104  # Save old environment
14105  #
14106  save_CFLAGS="$CFLAGS"
14107  save_CPPFLAGS="$CPPFLAGS"
14108  save_LDFLAGS="$LDFLAGS"
14109  save_LIBS="$LIBS"
14110
14111  CFLAGS="$CFLAGS $QDBM_CFLAGS"
14112  CPPFLAGS="$CPPFLAGS $QDBM_CPPFLAGS"
14113  LDFLAGS="$LDFLAGS $QDBM_LDFLAGS"
14114
14115  #
14116  # Run checks passed as argument
14117  #
14118
14119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dpopen in -lqdbm" >&5
14120$as_echo_n "checking for dpopen in -lqdbm... " >&6; }
14121if ${ac_cv_lib_qdbm_dpopen+:} false; then :
14122  $as_echo_n "(cached) " >&6
14123else
14124  ac_check_lib_save_LIBS=$LIBS
14125LIBS="-lqdbm  $LIBS"
14126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127/* end confdefs.h.  */
14128
14129/* Override any GCC internal prototype to avoid an error.
14130   Use char because int might match the return type of a GCC
14131   builtin and then its argument prototype would still apply.  */
14132#ifdef __cplusplus
14133extern "C"
14134#endif
14135char dpopen ();
14136int
14137main ()
14138{
14139return dpopen ();
14140  ;
14141  return 0;
14142}
14143_ACEOF
14144if ac_fn_c_try_link "$LINENO"; then :
14145  ac_cv_lib_qdbm_dpopen=yes
14146else
14147  ac_cv_lib_qdbm_dpopen=no
14148fi
14149rm -f core conftest.err conftest.$ac_objext \
14150    conftest$ac_exeext conftest.$ac_ext
14151LIBS=$ac_check_lib_save_LIBS
14152fi
14153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qdbm_dpopen" >&5
14154$as_echo "$ac_cv_lib_qdbm_dpopen" >&6; }
14155if test "x$ac_cv_lib_qdbm_dpopen" = xyes; then :
14156  cat >>confdefs.h <<_ACEOF
14157#define HAVE_LIBQDBM 1
14158_ACEOF
14159
14160  LIBS="-lqdbm $LIBS"
14161
14162else
14163  as_fn_error $? "Cannot find QDBM" "$LINENO" 5
14164fi
14165
14166    for ac_header in qdbm/depot.h
14167do :
14168  ac_fn_c_check_header_mongrel "$LINENO" "qdbm/depot.h" "ac_cv_header_qdbm_depot_h" "$ac_includes_default"
14169if test "x$ac_cv_header_qdbm_depot_h" = xyes; then :
14170  cat >>confdefs.h <<_ACEOF
14171#define HAVE_QDBM_DEPOT_H 1
14172_ACEOF
14173
14174else
14175  as_fn_error $? "Cannot find QDBM" "$LINENO" 5
14176fi
14177
14178done
14179
14180
14181$as_echo "#define QDB 1" >>confdefs.h
14182
14183
14184
14185  #
14186  # Pick up any libraries added by tests
14187  #
14188  test -z "$QDBM_LIBS" && QDBM_LIBS="$LIBS"
14189
14190  #
14191  # libtool understands -R$path, but we are not using libtool in configure
14192  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
14193  #
14194  if test "x$with_qdbm" != xyes &&
14195     test "x$with_qdbm" != xcheck &&
14196     test "x$with_qdbm" != x/usr &&
14197     test "x$with_qdbm" != x/
14198  then
14199    QDBM_LDFLAGS="$QDBM_LDFLAGS -R$with_qdbm/lib"
14200  fi
14201
14202  #
14203  # Restore pristine environment
14204  #
14205  CFLAGS="$save_CFLAGS"
14206  CPPFLAGS="$save_CPPFLAGS"
14207  LDFLAGS="$save_LDFLAGS"
14208  LIBS="$save_LIBS"
14209
14210
14211
14212
14213
14214
14215
14216fi
14217
14218
14219
14220# Check whether --with-tokyocabinet was given.
14221if test "${with_tokyocabinet+set}" = set; then :
14222  withval=$with_tokyocabinet;
14223fi
14224
14225
14226if test $WITH_QDBM -eq 0 && test -n "$with_tokyocabinet" && test "x$with_tokyocabinet" != "xno"; then :
14227  WITH_TOKYO=1
14228else
14229  WITH_TOKYO=0
14230fi
14231
14232if test $WITH_TOKYO = 1; then
14233
14234
14235
14236  #
14237  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
14238  #
14239  if test "x$with_tokyocabinet" != xyes &&
14240     test "x$with_tokyocabinet" != xcheck &&
14241     test "x$with_tokyocabinet" != x
14242  then
14243    test -z "$TOKYOCABINET_PATH" && TOKYOCABINET_PATH="$with_tokyocabinet"
14244    if test "x$with_tokyocabinet" != x/usr &&
14245       test "x$with_tokyocabinet" != x/
14246    then
14247      test -z "$TOKYOCABINET_CFLAGS" && TOKYOCABINET_CFLAGS=""
14248      test -z "$TOKYOCABINET_CPPFLAGS" && TOKYOCABINET_CPPFLAGS="-I$with_tokyocabinet/include"
14249      test -z "$TOKYOCABINET_LDFLAGS" && TOKYOCABINET_LDFLAGS="-L$with_tokyocabinet/lib"
14250    fi
14251  else
14252    TOKYOCABINET_PATH="default path"
14253  fi
14254
14255  #
14256  # Save old environment
14257  #
14258  save_CFLAGS="$CFLAGS"
14259  save_CPPFLAGS="$CPPFLAGS"
14260  save_LDFLAGS="$LDFLAGS"
14261  save_LIBS="$LIBS"
14262
14263  CFLAGS="$CFLAGS $TOKYOCABINET_CFLAGS"
14264  CPPFLAGS="$CPPFLAGS $TOKYOCABINET_CPPFLAGS"
14265  LDFLAGS="$LDFLAGS $TOKYOCABINET_LDFLAGS"
14266
14267  #
14268  # Run checks passed as argument
14269  #
14270
14271    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tchdbnew in -ltokyocabinet" >&5
14272$as_echo_n "checking for tchdbnew in -ltokyocabinet... " >&6; }
14273if ${ac_cv_lib_tokyocabinet_tchdbnew+:} false; then :
14274  $as_echo_n "(cached) " >&6
14275else
14276  ac_check_lib_save_LIBS=$LIBS
14277LIBS="-ltokyocabinet  $LIBS"
14278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279/* end confdefs.h.  */
14280
14281/* Override any GCC internal prototype to avoid an error.
14282   Use char because int might match the return type of a GCC
14283   builtin and then its argument prototype would still apply.  */
14284#ifdef __cplusplus
14285extern "C"
14286#endif
14287char tchdbnew ();
14288int
14289main ()
14290{
14291return tchdbnew ();
14292  ;
14293  return 0;
14294}
14295_ACEOF
14296if ac_fn_c_try_link "$LINENO"; then :
14297  ac_cv_lib_tokyocabinet_tchdbnew=yes
14298else
14299  ac_cv_lib_tokyocabinet_tchdbnew=no
14300fi
14301rm -f core conftest.err conftest.$ac_objext \
14302    conftest$ac_exeext conftest.$ac_ext
14303LIBS=$ac_check_lib_save_LIBS
14304fi
14305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tokyocabinet_tchdbnew" >&5
14306$as_echo "$ac_cv_lib_tokyocabinet_tchdbnew" >&6; }
14307if test "x$ac_cv_lib_tokyocabinet_tchdbnew" = xyes; then :
14308  cat >>confdefs.h <<_ACEOF
14309#define HAVE_LIBTOKYOCABINET 1
14310_ACEOF
14311
14312  LIBS="-ltokyocabinet $LIBS"
14313
14314else
14315  as_fn_error $? "Cannot find Tokyo Cabinet" "$LINENO" 5
14316fi
14317
14318    for ac_header in tcutil.h
14319do :
14320  ac_fn_c_check_header_mongrel "$LINENO" "tcutil.h" "ac_cv_header_tcutil_h" "$ac_includes_default"
14321if test "x$ac_cv_header_tcutil_h" = xyes; then :
14322  cat >>confdefs.h <<_ACEOF
14323#define HAVE_TCUTIL_H 1
14324_ACEOF
14325
14326else
14327  as_fn_error $? "Cannot find Tokyo Cabinet" "$LINENO" 5
14328fi
14329
14330done
14331
14332    for ac_header in tchdb.h
14333do :
14334  ac_fn_c_check_header_mongrel "$LINENO" "tchdb.h" "ac_cv_header_tchdb_h" "$ac_includes_default"
14335if test "x$ac_cv_header_tchdb_h" = xyes; then :
14336  cat >>confdefs.h <<_ACEOF
14337#define HAVE_TCHDB_H 1
14338_ACEOF
14339
14340else
14341  as_fn_error $? "Cannot find Tokyo Cabinet" "$LINENO" 5
14342fi
14343
14344done
14345
14346
14347$as_echo "#define TCDB 1" >>confdefs.h
14348
14349
14350
14351  #
14352  # Pick up any libraries added by tests
14353  #
14354  test -z "$TOKYOCABINET_LIBS" && TOKYOCABINET_LIBS="$LIBS"
14355
14356  #
14357  # libtool understands -R$path, but we are not using libtool in configure
14358  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
14359  #
14360  if test "x$with_tokyocabinet" != xyes &&
14361     test "x$with_tokyocabinet" != xcheck &&
14362     test "x$with_tokyocabinet" != x/usr &&
14363     test "x$with_tokyocabinet" != x/
14364  then
14365    TOKYOCABINET_LDFLAGS="$TOKYOCABINET_LDFLAGS -R$with_tokyocabinet/lib"
14366  fi
14367
14368  #
14369  # Restore pristine environment
14370  #
14371  CFLAGS="$save_CFLAGS"
14372  CPPFLAGS="$save_CPPFLAGS"
14373  LDFLAGS="$save_LDFLAGS"
14374  LIBS="$save_LIBS"
14375
14376
14377
14378
14379
14380
14381
14382fi
14383
14384
14385
14386# Check whether --with-lmdb was given.
14387if test "${with_lmdb+set}" = set; then :
14388  withval=$with_lmdb;
14389fi
14390
14391
14392if test $WITH_TOKYO -eq 0 && test $WITH_QDBM -eq 0 && (! test -n "$with_lmdb" || test "x$with_lmdb" != "xno"); then :
14393  WITH_LMDB=1
14394else
14395  WITH_LMDB=0
14396fi
14397
14398if test $WITH_LMDB = 1; then
14399
14400
14401
14402  #
14403  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
14404  #
14405  if test "x$with_lmdb" != xyes &&
14406     test "x$with_lmdb" != xcheck &&
14407     test "x$with_lmdb" != x
14408  then
14409    test -z "$LMDB_PATH" && LMDB_PATH="$with_lmdb"
14410    if test "x$with_lmdb" != x/usr &&
14411       test "x$with_lmdb" != x/
14412    then
14413      test -z "$LMDB_CFLAGS" && LMDB_CFLAGS=""
14414      test -z "$LMDB_CPPFLAGS" && LMDB_CPPFLAGS="-I$with_lmdb/include"
14415      test -z "$LMDB_LDFLAGS" && LMDB_LDFLAGS="-L$with_lmdb/lib"
14416    fi
14417  else
14418    LMDB_PATH="default path"
14419  fi
14420
14421  #
14422  # Save old environment
14423  #
14424  save_CFLAGS="$CFLAGS"
14425  save_CPPFLAGS="$CPPFLAGS"
14426  save_LDFLAGS="$LDFLAGS"
14427  save_LIBS="$LIBS"
14428
14429  CFLAGS="$CFLAGS $LMDB_CFLAGS"
14430  CPPFLAGS="$CPPFLAGS $LMDB_CPPFLAGS"
14431  LDFLAGS="$LDFLAGS $LMDB_LDFLAGS"
14432
14433  #
14434  # Run checks passed as argument
14435  #
14436
14437    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_dbi_open in -llmdb" >&5
14438$as_echo_n "checking for mdb_dbi_open in -llmdb... " >&6; }
14439if ${ac_cv_lib_lmdb_mdb_dbi_open+:} false; then :
14440  $as_echo_n "(cached) " >&6
14441else
14442  ac_check_lib_save_LIBS=$LIBS
14443LIBS="-llmdb  $LIBS"
14444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445/* end confdefs.h.  */
14446
14447/* Override any GCC internal prototype to avoid an error.
14448   Use char because int might match the return type of a GCC
14449   builtin and then its argument prototype would still apply.  */
14450#ifdef __cplusplus
14451extern "C"
14452#endif
14453char mdb_dbi_open ();
14454int
14455main ()
14456{
14457return mdb_dbi_open ();
14458  ;
14459  return 0;
14460}
14461_ACEOF
14462if ac_fn_c_try_link "$LINENO"; then :
14463  ac_cv_lib_lmdb_mdb_dbi_open=yes
14464else
14465  ac_cv_lib_lmdb_mdb_dbi_open=no
14466fi
14467rm -f core conftest.err conftest.$ac_objext \
14468    conftest$ac_exeext conftest.$ac_ext
14469LIBS=$ac_check_lib_save_LIBS
14470fi
14471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lmdb_mdb_dbi_open" >&5
14472$as_echo "$ac_cv_lib_lmdb_mdb_dbi_open" >&6; }
14473if test "x$ac_cv_lib_lmdb_mdb_dbi_open" = xyes; then :
14474  cat >>confdefs.h <<_ACEOF
14475#define HAVE_LIBLMDB 1
14476_ACEOF
14477
14478  LIBS="-llmdb $LIBS"
14479
14480else
14481  as_fn_error $? "Cannot find Lightning MDB" "$LINENO" 5
14482fi
14483
14484    for ac_header in lmdb.h
14485do :
14486  ac_fn_c_check_header_mongrel "$LINENO" "lmdb.h" "ac_cv_header_lmdb_h" "$ac_includes_default"
14487if test "x$ac_cv_header_lmdb_h" = xyes; then :
14488  cat >>confdefs.h <<_ACEOF
14489#define HAVE_LMDB_H 1
14490_ACEOF
14491
14492else
14493  as_fn_error $? "Cannot find Lightning MDB" "$LINENO" 5
14494fi
14495
14496done
14497
14498
14499$as_echo "#define LMDB 1" >>confdefs.h
14500
14501
14502
14503  #
14504  # Pick up any libraries added by tests
14505  #
14506  test -z "$LMDB_LIBS" && LMDB_LIBS="$LIBS"
14507
14508  #
14509  # libtool understands -R$path, but we are not using libtool in configure
14510  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
14511  #
14512  if test "x$with_lmdb" != xyes &&
14513     test "x$with_lmdb" != xcheck &&
14514     test "x$with_lmdb" != x/usr &&
14515     test "x$with_lmdb" != x/
14516  then
14517    LMDB_LDFLAGS="$LMDB_LDFLAGS -R$with_lmdb/lib"
14518  fi
14519
14520  #
14521  # Restore pristine environment
14522  #
14523  CFLAGS="$save_CFLAGS"
14524  CPPFLAGS="$save_CPPFLAGS"
14525  LDFLAGS="$save_LDFLAGS"
14526  LIBS="$save_LIBS"
14527
14528
14529
14530
14531
14532
14533
14534fi
14535
14536if test $WITH_QDBM -eq 0 && test $WITH_TOKYO -eq 0 && test $WITH_LMDB -eq 0; then
14537   as_fn_error LMDB "Either Tokyo Cabinet" "$LINENO" 5
14538fi
14539
14540
14541
14542# Check whether --with-openssl was given.
14543if test "${with_openssl+set}" = set; then :
14544  withval=$with_openssl;
14545else
14546  with_openssl=yes
14547fi
14548
14549
14550if test x"$with_openssl" = xno ; then
14551    as_fn_error $? "This release of CFEngine requires OpenSSL >= 0.9.7" "$LINENO" 5
14552fi
14553
14554if  test -d /usr/local/Cellar/openssl/ && \
14555    test -d /usr/local/opt/openssl/ && \
14556    test "x$with_openssl" = "xyes" ; then
14557    with_openssl="/usr/local/opt/openssl"
14558    echo "OS X Homebrew detected"
14559    echo "Defaulting to: --with-openssl=$with_openssl"
14560fi
14561
14562
14563
14564
14565  #
14566  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
14567  #
14568  if test "x$with_openssl" != xyes &&
14569     test "x$with_openssl" != xcheck &&
14570     test "x$with_openssl" != x
14571  then
14572    test -z "$OPENSSL_PATH" && OPENSSL_PATH="$with_openssl"
14573    if test "x$with_openssl" != x/usr &&
14574       test "x$with_openssl" != x/
14575    then
14576      test -z "$OPENSSL_CFLAGS" && OPENSSL_CFLAGS=""
14577      test -z "$OPENSSL_CPPFLAGS" && OPENSSL_CPPFLAGS="-I$with_openssl/include"
14578      test -z "$OPENSSL_LDFLAGS" && OPENSSL_LDFLAGS="-L$with_openssl/lib"
14579    fi
14580  else
14581    OPENSSL_PATH="default path"
14582  fi
14583
14584  #
14585  # Save old environment
14586  #
14587  save_CFLAGS="$CFLAGS"
14588  save_CPPFLAGS="$CPPFLAGS"
14589  save_LDFLAGS="$LDFLAGS"
14590  save_LIBS="$LIBS"
14591
14592  CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
14593  CPPFLAGS="$CPPFLAGS $OPENSSL_CPPFLAGS"
14594  LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
14595
14596  #
14597  # Run checks passed as argument
14598  #
14599
14600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_generate_key_ex in -lcrypto" >&5
14601$as_echo_n "checking for RSA_generate_key_ex in -lcrypto... " >&6; }
14602if ${ac_cv_lib_crypto_RSA_generate_key_ex+:} false; then :
14603  $as_echo_n "(cached) " >&6
14604else
14605  ac_check_lib_save_LIBS=$LIBS
14606LIBS="-lcrypto  $LIBS"
14607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14608/* end confdefs.h.  */
14609
14610/* Override any GCC internal prototype to avoid an error.
14611   Use char because int might match the return type of a GCC
14612   builtin and then its argument prototype would still apply.  */
14613#ifdef __cplusplus
14614extern "C"
14615#endif
14616char RSA_generate_key_ex ();
14617int
14618main ()
14619{
14620return RSA_generate_key_ex ();
14621  ;
14622  return 0;
14623}
14624_ACEOF
14625if ac_fn_c_try_link "$LINENO"; then :
14626  ac_cv_lib_crypto_RSA_generate_key_ex=yes
14627else
14628  ac_cv_lib_crypto_RSA_generate_key_ex=no
14629fi
14630rm -f core conftest.err conftest.$ac_objext \
14631    conftest$ac_exeext conftest.$ac_ext
14632LIBS=$ac_check_lib_save_LIBS
14633fi
14634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_generate_key_ex" >&5
14635$as_echo "$ac_cv_lib_crypto_RSA_generate_key_ex" >&6; }
14636if test "x$ac_cv_lib_crypto_RSA_generate_key_ex" = xyes; then :
14637  cat >>confdefs.h <<_ACEOF
14638#define HAVE_LIBCRYPTO 1
14639_ACEOF
14640
14641  LIBS="-lcrypto $LIBS"
14642
14643fi
14644
14645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_free in -lssl" >&5
14646$as_echo_n "checking for SSL_free in -lssl... " >&6; }
14647if ${ac_cv_lib_ssl_SSL_free+:} false; then :
14648  $as_echo_n "(cached) " >&6
14649else
14650  ac_check_lib_save_LIBS=$LIBS
14651LIBS="-lssl  $LIBS"
14652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653/* end confdefs.h.  */
14654
14655/* Override any GCC internal prototype to avoid an error.
14656   Use char because int might match the return type of a GCC
14657   builtin and then its argument prototype would still apply.  */
14658#ifdef __cplusplus
14659extern "C"
14660#endif
14661char SSL_free ();
14662int
14663main ()
14664{
14665return SSL_free ();
14666  ;
14667  return 0;
14668}
14669_ACEOF
14670if ac_fn_c_try_link "$LINENO"; then :
14671  ac_cv_lib_ssl_SSL_free=yes
14672else
14673  ac_cv_lib_ssl_SSL_free=no
14674fi
14675rm -f core conftest.err conftest.$ac_objext \
14676    conftest$ac_exeext conftest.$ac_ext
14677LIBS=$ac_check_lib_save_LIBS
14678fi
14679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_free" >&5
14680$as_echo "$ac_cv_lib_ssl_SSL_free" >&6; }
14681if test "x$ac_cv_lib_ssl_SSL_free" = xyes; then :
14682  cat >>confdefs.h <<_ACEOF
14683#define HAVE_LIBSSL 1
14684_ACEOF
14685
14686  LIBS="-lssl $LIBS"
14687
14688fi
14689
14690   ac_fn_c_check_decl "$LINENO" "SSL_CTX_clear_options" "ac_cv_have_decl_SSL_CTX_clear_options" "#include <openssl/ssl.h>
14691"
14692if test "x$ac_cv_have_decl_SSL_CTX_clear_options" = xyes; then :
14693  ac_have_decl=1
14694else
14695  ac_have_decl=0
14696fi
14697
14698cat >>confdefs.h <<_ACEOF
14699#define HAVE_DECL_SSL_CTX_CLEAR_OPTIONS $ac_have_decl
14700_ACEOF
14701
14702   for ac_header in openssl/opensslv.h
14703do :
14704  ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
14705if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
14706  cat >>confdefs.h <<_ACEOF
14707#define HAVE_OPENSSL_OPENSSLV_H 1
14708_ACEOF
14709
14710else
14711  as_fn_error $? "Cannot find OpenSSL" "$LINENO" 5
14712fi
14713
14714done
14715
14716
14717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
14718$as_echo_n "checking for OpenSSL version... " >&6; }
14719
14720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721/* end confdefs.h.  */
14722
14723   #include <openssl/opensslv.h>
14724
14725   #if OPENSSL_VERSION_NUMBER < 0x0090602fL
14726   #This OpenSSL is too old
14727   #endif
14728
14729_ACEOF
14730if ac_fn_c_try_cpp "$LINENO"; then :
14731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
14732$as_echo "OK" >&6; }
14733else
14734  as_fn_error $? "This release of CFEngine requires OpenSSL >= 0.9.7" "$LINENO" 5
14735fi
14736rm -f conftest.err conftest.i conftest.$ac_ext
14737
14738   if test "x$ac_cv_lib_crypto_RSA_generate_key_ex" = "xyes" ; then
14739
14740$as_echo "#define OPENSSL_NO_DEPRECATED 1" >>confdefs.h
14741
14742   fi
14743
14744   if test "x$ac_cv_lib_crypto_RSA_generate_key_ex" = "xno" && \
14745      test "x$ac_cv_lib_crypto_RSA_generate_key" = "xno" ; then
14746      as_fn_error $? "Cannot find OpenSSL" "$LINENO" 5
14747   fi
14748
14749   ac_fn_c_check_decl "$LINENO" "SSL_OP_NO_TLSv1_1" "ac_cv_have_decl_SSL_OP_NO_TLSv1_1" "#include <openssl/ssl.h>
14750
14751"
14752if test "x$ac_cv_have_decl_SSL_OP_NO_TLSv1_1" = xyes; then :
14753
14754$as_echo "#define HAVE_TLS_1_1 1" >>confdefs.h
14755
14756fi
14757
14758   ac_fn_c_check_decl "$LINENO" "SSL_OP_NO_TLSv1_2" "ac_cv_have_decl_SSL_OP_NO_TLSv1_2" "#include <openssl/ssl.h>
14759
14760"
14761if test "x$ac_cv_have_decl_SSL_OP_NO_TLSv1_2" = xyes; then :
14762
14763$as_echo "#define HAVE_TLS_1_2 1" >>confdefs.h
14764
14765fi
14766
14767   ac_fn_c_check_decl "$LINENO" "SSL_OP_NO_TLSv1_3" "ac_cv_have_decl_SSL_OP_NO_TLSv1_3" "#include <openssl/ssl.h>
14768
14769"
14770if test "x$ac_cv_have_decl_SSL_OP_NO_TLSv1_3" = xyes; then :
14771
14772$as_echo "#define HAVE_TLS_1_3 1" >>confdefs.h
14773
14774fi
14775
14776
14777
14778  #
14779  # Pick up any libraries added by tests
14780  #
14781  test -z "$OPENSSL_LIBS" && OPENSSL_LIBS="$LIBS"
14782
14783  #
14784  # libtool understands -R$path, but we are not using libtool in configure
14785  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
14786  #
14787  if test "x$with_openssl" != xyes &&
14788     test "x$with_openssl" != xcheck &&
14789     test "x$with_openssl" != x/usr &&
14790     test "x$with_openssl" != x/
14791  then
14792    OPENSSL_LDFLAGS="$OPENSSL_LDFLAGS -R$with_openssl/lib"
14793  fi
14794
14795  #
14796  # Restore pristine environment
14797  #
14798  CFLAGS="$save_CFLAGS"
14799  CPPFLAGS="$save_CPPFLAGS"
14800  LDFLAGS="$save_LDFLAGS"
14801  LIBS="$save_LIBS"
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812# Check whether --with-pcre was given.
14813if test "${with_pcre+set}" = set; then :
14814  withval=$with_pcre;
14815else
14816  with_pcre=yes
14817fi
14818
14819
14820if test "x$with_pcre" = "xno"; then
14821   as_fn_error $? "PCRE is required" "$LINENO" 5
14822fi
14823
14824
14825
14826
14827  #
14828  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
14829  #
14830  if test "x$with_pcre" != xyes &&
14831     test "x$with_pcre" != xcheck &&
14832     test "x$with_pcre" != x
14833  then
14834    test -z "$PCRE_PATH" && PCRE_PATH="$with_pcre"
14835    if test "x$with_pcre" != x/usr &&
14836       test "x$with_pcre" != x/
14837    then
14838      test -z "$PCRE_CFLAGS" && PCRE_CFLAGS=""
14839      test -z "$PCRE_CPPFLAGS" && PCRE_CPPFLAGS="-I$with_pcre/include"
14840      test -z "$PCRE_LDFLAGS" && PCRE_LDFLAGS="-L$with_pcre/lib"
14841    fi
14842  else
14843    PCRE_PATH="default path"
14844  fi
14845
14846  #
14847  # Save old environment
14848  #
14849  save_CFLAGS="$CFLAGS"
14850  save_CPPFLAGS="$CPPFLAGS"
14851  save_LDFLAGS="$LDFLAGS"
14852  save_LIBS="$LIBS"
14853
14854  CFLAGS="$CFLAGS $PCRE_CFLAGS"
14855  CPPFLAGS="$CPPFLAGS $PCRE_CPPFLAGS"
14856  LDFLAGS="$LDFLAGS $PCRE_LDFLAGS"
14857
14858  #
14859  # Run checks passed as argument
14860  #
14861
14862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_exec in -lpcre" >&5
14863$as_echo_n "checking for pcre_exec in -lpcre... " >&6; }
14864if ${ac_cv_lib_pcre_pcre_exec+:} false; then :
14865  $as_echo_n "(cached) " >&6
14866else
14867  ac_check_lib_save_LIBS=$LIBS
14868LIBS="-lpcre  $LIBS"
14869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870/* end confdefs.h.  */
14871
14872/* Override any GCC internal prototype to avoid an error.
14873   Use char because int might match the return type of a GCC
14874   builtin and then its argument prototype would still apply.  */
14875#ifdef __cplusplus
14876extern "C"
14877#endif
14878char pcre_exec ();
14879int
14880main ()
14881{
14882return pcre_exec ();
14883  ;
14884  return 0;
14885}
14886_ACEOF
14887if ac_fn_c_try_link "$LINENO"; then :
14888  ac_cv_lib_pcre_pcre_exec=yes
14889else
14890  ac_cv_lib_pcre_pcre_exec=no
14891fi
14892rm -f core conftest.err conftest.$ac_objext \
14893    conftest$ac_exeext conftest.$ac_ext
14894LIBS=$ac_check_lib_save_LIBS
14895fi
14896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_exec" >&5
14897$as_echo "$ac_cv_lib_pcre_pcre_exec" >&6; }
14898if test "x$ac_cv_lib_pcre_pcre_exec" = xyes; then :
14899  cat >>confdefs.h <<_ACEOF
14900#define HAVE_LIBPCRE 1
14901_ACEOF
14902
14903  LIBS="-lpcre $LIBS"
14904
14905else
14906  as_fn_error $? "Cannot find PCRE" "$LINENO" 5
14907fi
14908
14909  for ac_header in pcre.h
14910do :
14911  ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
14912if test "x$ac_cv_header_pcre_h" = xyes; then :
14913  cat >>confdefs.h <<_ACEOF
14914#define HAVE_PCRE_H 1
14915_ACEOF
14916
14917else
14918  for ac_header in pcre/pcre.h
14919do :
14920  ac_fn_c_check_header_mongrel "$LINENO" "pcre/pcre.h" "ac_cv_header_pcre_pcre_h" "$ac_includes_default"
14921if test "x$ac_cv_header_pcre_pcre_h" = xyes; then :
14922  cat >>confdefs.h <<_ACEOF
14923#define HAVE_PCRE_PCRE_H 1
14924_ACEOF
14925 PCRE_CPPFLAGS="-Ipcre"
14926else
14927  as_fn_error $? "Cannot find PCRE" "$LINENO" 5
14928fi
14929
14930done
14931
14932fi
14933
14934done
14935
14936
14937
14938  #
14939  # Pick up any libraries added by tests
14940  #
14941  test -z "$PCRE_LIBS" && PCRE_LIBS="$LIBS"
14942
14943  #
14944  # libtool understands -R$path, but we are not using libtool in configure
14945  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
14946  #
14947  if test "x$with_pcre" != xyes &&
14948     test "x$with_pcre" != xcheck &&
14949     test "x$with_pcre" != x/usr &&
14950     test "x$with_pcre" != x/
14951  then
14952    PCRE_LDFLAGS="$PCRE_LDFLAGS -R$with_pcre/lib"
14953  fi
14954
14955  #
14956  # Restore pristine environment
14957  #
14958  CFLAGS="$save_CFLAGS"
14959  CPPFLAGS="$save_CPPFLAGS"
14960  LDFLAGS="$save_LDFLAGS"
14961  LIBS="$save_LIBS"
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972# Check whether --with-systemd-socket was given.
14973if test "${with_systemd_socket+set}" = set; then :
14974  withval=$with_systemd_socket;
14975else
14976  with_systemd_socket=check
14977fi
14978
14979
14980
14981if test "x$with_systemd_socket" != xno
14982then
14983
14984
14985
14986  #
14987  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
14988  #
14989  if test "x$with_systemd_socket" != xyes &&
14990     test "x$with_systemd_socket" != xcheck &&
14991     test "x$with_systemd_socket" != x
14992  then
14993    test -z "$SYSTEMD_SOCKET_PATH" && SYSTEMD_SOCKET_PATH="$with_systemd_socket"
14994    if test "x$with_systemd_socket" != x/usr &&
14995       test "x$with_systemd_socket" != x/
14996    then
14997      test -z "$SYSTEMD_SOCKET_CFLAGS" && SYSTEMD_SOCKET_CFLAGS=""
14998      test -z "$SYSTEMD_SOCKET_CPPFLAGS" && SYSTEMD_SOCKET_CPPFLAGS="-I$with_systemd_socket/include"
14999      test -z "$SYSTEMD_SOCKET_LDFLAGS" && SYSTEMD_SOCKET_LDFLAGS="-L$with_systemd_socket/lib"
15000    fi
15001  else
15002    SYSTEMD_SOCKET_PATH="default path"
15003  fi
15004
15005  #
15006  # Save old environment
15007  #
15008  save_CFLAGS="$CFLAGS"
15009  save_CPPFLAGS="$CPPFLAGS"
15010  save_LDFLAGS="$LDFLAGS"
15011  save_LIBS="$LIBS"
15012
15013  CFLAGS="$CFLAGS $SYSTEMD_SOCKET_CFLAGS"
15014  CPPFLAGS="$CPPFLAGS $SYSTEMD_SOCKET_CPPFLAGS"
15015  LDFLAGS="$LDFLAGS $SYSTEMD_SOCKET_LDFLAGS"
15016
15017  #
15018  # Run checks passed as argument
15019  #
15020
15021      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sd_listen_fds in -lsystemd" >&5
15022$as_echo_n "checking for sd_listen_fds in -lsystemd... " >&6; }
15023if ${ac_cv_lib_systemd_sd_listen_fds+:} false; then :
15024  $as_echo_n "(cached) " >&6
15025else
15026  ac_check_lib_save_LIBS=$LIBS
15027LIBS="-lsystemd  $LIBS"
15028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029/* end confdefs.h.  */
15030
15031/* Override any GCC internal prototype to avoid an error.
15032   Use char because int might match the return type of a GCC
15033   builtin and then its argument prototype would still apply.  */
15034#ifdef __cplusplus
15035extern "C"
15036#endif
15037char sd_listen_fds ();
15038int
15039main ()
15040{
15041return sd_listen_fds ();
15042  ;
15043  return 0;
15044}
15045_ACEOF
15046if ac_fn_c_try_link "$LINENO"; then :
15047  ac_cv_lib_systemd_sd_listen_fds=yes
15048else
15049  ac_cv_lib_systemd_sd_listen_fds=no
15050fi
15051rm -f core conftest.err conftest.$ac_objext \
15052    conftest$ac_exeext conftest.$ac_ext
15053LIBS=$ac_check_lib_save_LIBS
15054fi
15055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systemd_sd_listen_fds" >&5
15056$as_echo "$ac_cv_lib_systemd_sd_listen_fds" >&6; }
15057if test "x$ac_cv_lib_systemd_sd_listen_fds" = xyes; then :
15058  cat >>confdefs.h <<_ACEOF
15059#define HAVE_LIBSYSTEMD 1
15060_ACEOF
15061
15062  LIBS="-lsystemd $LIBS"
15063
15064else
15065  if test "x$with_systemd_socket" != xcheck; then as_fn_error $? "Cannot find systemd library" "$LINENO" 5; fi
15066fi
15067
15068      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sd_notify_barrier in -lsystemd" >&5
15069$as_echo_n "checking for sd_notify_barrier in -lsystemd... " >&6; }
15070if ${ac_cv_lib_systemd_sd_notify_barrier+:} false; then :
15071  $as_echo_n "(cached) " >&6
15072else
15073  ac_check_lib_save_LIBS=$LIBS
15074LIBS="-lsystemd  $LIBS"
15075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076/* end confdefs.h.  */
15077
15078/* Override any GCC internal prototype to avoid an error.
15079   Use char because int might match the return type of a GCC
15080   builtin and then its argument prototype would still apply.  */
15081#ifdef __cplusplus
15082extern "C"
15083#endif
15084char sd_notify_barrier ();
15085int
15086main ()
15087{
15088return sd_notify_barrier ();
15089  ;
15090  return 0;
15091}
15092_ACEOF
15093if ac_fn_c_try_link "$LINENO"; then :
15094  ac_cv_lib_systemd_sd_notify_barrier=yes
15095else
15096  ac_cv_lib_systemd_sd_notify_barrier=no
15097fi
15098rm -f core conftest.err conftest.$ac_objext \
15099    conftest$ac_exeext conftest.$ac_ext
15100LIBS=$ac_check_lib_save_LIBS
15101fi
15102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systemd_sd_notify_barrier" >&5
15103$as_echo "$ac_cv_lib_systemd_sd_notify_barrier" >&6; }
15104if test "x$ac_cv_lib_systemd_sd_notify_barrier" = xyes; then :
15105
15106$as_echo "#define HAVE_SD_NOTIFY_BARRIER 1" >>confdefs.h
15107
15108fi
15109
15110      for ac_header in systemd/sd-daemon.h
15111do :
15112  ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
15113if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
15114  cat >>confdefs.h <<_ACEOF
15115#define HAVE_SYSTEMD_SD_DAEMON_H 1
15116_ACEOF
15117
15118else
15119  if test "x$with_systemd_socket" != xcheck; then as_fn_error $? "Cannot find systemd headers" "$LINENO" 5; fi
15120fi
15121
15122done
15123
15124
15125
15126  #
15127  # Pick up any libraries added by tests
15128  #
15129  test -z "$SYSTEMD_SOCKET_LIBS" && SYSTEMD_SOCKET_LIBS="$LIBS"
15130
15131  #
15132  # libtool understands -R$path, but we are not using libtool in configure
15133  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
15134  #
15135  if test "x$with_systemd_socket" != xyes &&
15136     test "x$with_systemd_socket" != xcheck &&
15137     test "x$with_systemd_socket" != x/usr &&
15138     test "x$with_systemd_socket" != x/
15139  then
15140    SYSTEMD_SOCKET_LDFLAGS="$SYSTEMD_SOCKET_LDFLAGS -R$with_systemd_socket/lib"
15141  fi
15142
15143  #
15144  # Restore pristine environment
15145  #
15146  CFLAGS="$save_CFLAGS"
15147  CPPFLAGS="$save_CPPFLAGS"
15148  LDFLAGS="$save_LDFLAGS"
15149  LIBS="$save_LIBS"
15150
15151
15152
15153
15154
15155
15156
15157fi
15158
15159
15160
15161# Check whether --with-libvirt was given.
15162if test "${with_libvirt+set}" = set; then :
15163  withval=$with_libvirt;
15164else
15165  with_libvirt=check
15166fi
15167
15168
15169if test "x$with_libvirt" != xno
15170then
15171
15172
15173
15174  #
15175  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
15176  #
15177  if test "x$with_libvirt" != xyes &&
15178     test "x$with_libvirt" != xcheck &&
15179     test "x$with_libvirt" != x
15180  then
15181    test -z "$LIBVIRT_PATH" && LIBVIRT_PATH="$with_libvirt"
15182    if test "x$with_libvirt" != x/usr &&
15183       test "x$with_libvirt" != x/
15184    then
15185      test -z "$LIBVIRT_CFLAGS" && LIBVIRT_CFLAGS=""
15186      test -z "$LIBVIRT_CPPFLAGS" && LIBVIRT_CPPFLAGS="-I$with_libvirt/include"
15187      test -z "$LIBVIRT_LDFLAGS" && LIBVIRT_LDFLAGS="-L$with_libvirt/lib"
15188    fi
15189  else
15190    LIBVIRT_PATH="default path"
15191  fi
15192
15193  #
15194  # Save old environment
15195  #
15196  save_CFLAGS="$CFLAGS"
15197  save_CPPFLAGS="$CPPFLAGS"
15198  save_LDFLAGS="$LDFLAGS"
15199  save_LIBS="$LIBS"
15200
15201  CFLAGS="$CFLAGS $LIBVIRT_CFLAGS"
15202  CPPFLAGS="$CPPFLAGS $LIBVIRT_CPPFLAGS"
15203  LDFLAGS="$LDFLAGS $LIBVIRT_LDFLAGS"
15204
15205  #
15206  # Run checks passed as argument
15207  #
15208
15209      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for virConnectOpen in -lvirt" >&5
15210$as_echo_n "checking for virConnectOpen in -lvirt... " >&6; }
15211if ${ac_cv_lib_virt_virConnectOpen+:} false; then :
15212  $as_echo_n "(cached) " >&6
15213else
15214  ac_check_lib_save_LIBS=$LIBS
15215LIBS="-lvirt  $LIBS"
15216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15217/* end confdefs.h.  */
15218
15219/* Override any GCC internal prototype to avoid an error.
15220   Use char because int might match the return type of a GCC
15221   builtin and then its argument prototype would still apply.  */
15222#ifdef __cplusplus
15223extern "C"
15224#endif
15225char virConnectOpen ();
15226int
15227main ()
15228{
15229return virConnectOpen ();
15230  ;
15231  return 0;
15232}
15233_ACEOF
15234if ac_fn_c_try_link "$LINENO"; then :
15235  ac_cv_lib_virt_virConnectOpen=yes
15236else
15237  ac_cv_lib_virt_virConnectOpen=no
15238fi
15239rm -f core conftest.err conftest.$ac_objext \
15240    conftest$ac_exeext conftest.$ac_ext
15241LIBS=$ac_check_lib_save_LIBS
15242fi
15243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_virt_virConnectOpen" >&5
15244$as_echo "$ac_cv_lib_virt_virConnectOpen" >&6; }
15245if test "x$ac_cv_lib_virt_virConnectOpen" = xyes; then :
15246  cat >>confdefs.h <<_ACEOF
15247#define HAVE_LIBVIRT 1
15248_ACEOF
15249
15250  LIBS="-lvirt $LIBS"
15251
15252else
15253  if test "x$with_libvirt" != xcheck; then as_fn_error $? "Cannot find libvirt library" "$LINENO" 5; fi
15254fi
15255
15256      for ac_header in libvirt/libvirt.h
15257do :
15258  ac_fn_c_check_header_mongrel "$LINENO" "libvirt/libvirt.h" "ac_cv_header_libvirt_libvirt_h" "$ac_includes_default"
15259if test "x$ac_cv_header_libvirt_libvirt_h" = xyes; then :
15260  cat >>confdefs.h <<_ACEOF
15261#define HAVE_LIBVIRT_LIBVIRT_H 1
15262_ACEOF
15263
15264else
15265  if test "x$with_libvirt" != xcheck; then as_fn_error $? "Cannot find libvirt library headers" "$LINENO" 5; fi
15266fi
15267
15268done
15269
15270
15271
15272  #
15273  # Pick up any libraries added by tests
15274  #
15275  test -z "$LIBVIRT_LIBS" && LIBVIRT_LIBS="$LIBS"
15276
15277  #
15278  # libtool understands -R$path, but we are not using libtool in configure
15279  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
15280  #
15281  if test "x$with_libvirt" != xyes &&
15282     test "x$with_libvirt" != xcheck &&
15283     test "x$with_libvirt" != x/usr &&
15284     test "x$with_libvirt" != x/
15285  then
15286    LIBVIRT_LDFLAGS="$LIBVIRT_LDFLAGS -R$with_libvirt/lib"
15287  fi
15288
15289  #
15290  # Restore pristine environment
15291  #
15292  CFLAGS="$save_CFLAGS"
15293  CPPFLAGS="$save_CPPFLAGS"
15294  LDFLAGS="$save_LDFLAGS"
15295  LIBS="$save_LIBS"
15296
15297
15298
15299
15300
15301
15302
15303fi
15304
15305
15306
15307
15308# Check whether --with-libacl was given.
15309if test "${with_libacl+set}" = set; then :
15310  withval=$with_libacl;
15311else
15312  with_libacl=check
15313fi
15314
15315
15316if test "x$with_libacl" != xno
15317then
15318
15319
15320
15321  #
15322  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
15323  #
15324  if test "x$with_libacl" != xyes &&
15325     test "x$with_libacl" != xcheck &&
15326     test "x$with_libacl" != x
15327  then
15328    test -z "$LIBACL_PATH" && LIBACL_PATH="$with_libacl"
15329    if test "x$with_libacl" != x/usr &&
15330       test "x$with_libacl" != x/
15331    then
15332      test -z "$LIBACL_CFLAGS" && LIBACL_CFLAGS=""
15333      test -z "$LIBACL_CPPFLAGS" && LIBACL_CPPFLAGS="-I$with_libacl/include"
15334      test -z "$LIBACL_LDFLAGS" && LIBACL_LDFLAGS="-L$with_libacl/lib"
15335    fi
15336  else
15337    LIBACL_PATH="default path"
15338  fi
15339
15340  #
15341  # Save old environment
15342  #
15343  save_CFLAGS="$CFLAGS"
15344  save_CPPFLAGS="$CPPFLAGS"
15345  save_LDFLAGS="$LDFLAGS"
15346  save_LIBS="$LIBS"
15347
15348  CFLAGS="$CFLAGS $LIBACL_CFLAGS"
15349  CPPFLAGS="$CPPFLAGS $LIBACL_CPPFLAGS"
15350  LDFLAGS="$LDFLAGS $LIBACL_LDFLAGS"
15351
15352  #
15353  # Run checks passed as argument
15354  #
15355
15356    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_init in -lacl" >&5
15357$as_echo_n "checking for acl_init in -lacl... " >&6; }
15358if ${ac_cv_lib_acl_acl_init+:} false; then :
15359  $as_echo_n "(cached) " >&6
15360else
15361  ac_check_lib_save_LIBS=$LIBS
15362LIBS="-lacl  $LIBS"
15363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364/* end confdefs.h.  */
15365
15366/* Override any GCC internal prototype to avoid an error.
15367   Use char because int might match the return type of a GCC
15368   builtin and then its argument prototype would still apply.  */
15369#ifdef __cplusplus
15370extern "C"
15371#endif
15372char acl_init ();
15373int
15374main ()
15375{
15376return acl_init ();
15377  ;
15378  return 0;
15379}
15380_ACEOF
15381if ac_fn_c_try_link "$LINENO"; then :
15382  ac_cv_lib_acl_acl_init=yes
15383else
15384  ac_cv_lib_acl_acl_init=no
15385fi
15386rm -f core conftest.err conftest.$ac_objext \
15387    conftest$ac_exeext conftest.$ac_ext
15388LIBS=$ac_check_lib_save_LIBS
15389fi
15390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_init" >&5
15391$as_echo "$ac_cv_lib_acl_acl_init" >&6; }
15392if test "x$ac_cv_lib_acl_acl_init" = xyes; then :
15393  cat >>confdefs.h <<_ACEOF
15394#define HAVE_LIBACL 1
15395_ACEOF
15396
15397  LIBS="-lacl $LIBS"
15398
15399else
15400  if test "x$with_libacl" != xcheck; then as_fn_error $? "Cannot find libacl library" "$LINENO" 5; fi
15401fi
15402
15403    for ac_header in acl.h sys/acl.h acl/libacl.h
15404do :
15405  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15406ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15407if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15408  cat >>confdefs.h <<_ACEOF
15409#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15410_ACEOF
15411 libacl_header_found=yes
15412fi
15413
15414done
15415
15416    if test "x$libacl_header_found" != "xyes" && test "x$with_libacl" != xcheck;
15417    then
15418      as_fn_error $? "Cannot find libacl library headers" "$LINENO" 5;
15419    fi
15420
15421
15422  #
15423  # Pick up any libraries added by tests
15424  #
15425  test -z "$LIBACL_LIBS" && LIBACL_LIBS="$LIBS"
15426
15427  #
15428  # libtool understands -R$path, but we are not using libtool in configure
15429  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
15430  #
15431  if test "x$with_libacl" != xyes &&
15432     test "x$with_libacl" != xcheck &&
15433     test "x$with_libacl" != x/usr &&
15434     test "x$with_libacl" != x/
15435  then
15436    LIBACL_LDFLAGS="$LIBACL_LDFLAGS -R$with_libacl/lib"
15437  fi
15438
15439  #
15440  # Restore pristine environment
15441  #
15442  CFLAGS="$save_CFLAGS"
15443  CPPFLAGS="$save_CPPFLAGS"
15444  LDFLAGS="$save_LDFLAGS"
15445  LIBS="$save_LIBS"
15446
15447
15448
15449
15450
15451
15452
15453fi
15454
15455
15456
15457# Check whether --with-libcurl was given.
15458if test "${with_libcurl+set}" = set; then :
15459  withval=$with_libcurl;
15460else
15461  with_libcurl=check
15462fi
15463
15464
15465if test "x$with_libcurl" != xno
15466then
15467
15468
15469
15470  #
15471  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
15472  #
15473  if test "x$with_libcurl" != xyes &&
15474     test "x$with_libcurl" != xcheck &&
15475     test "x$with_libcurl" != x
15476  then
15477    test -z "$LIBCURL_PATH" && LIBCURL_PATH="$with_libcurl"
15478    if test "x$with_libcurl" != x/usr &&
15479       test "x$with_libcurl" != x/
15480    then
15481      test -z "$LIBCURL_CFLAGS" && LIBCURL_CFLAGS=""
15482      test -z "$LIBCURL_CPPFLAGS" && LIBCURL_CPPFLAGS="-I$with_libcurl/include"
15483      test -z "$LIBCURL_LDFLAGS" && LIBCURL_LDFLAGS="-L$with_libcurl/lib"
15484    fi
15485  else
15486    LIBCURL_PATH="default path"
15487  fi
15488
15489  #
15490  # Save old environment
15491  #
15492  save_CFLAGS="$CFLAGS"
15493  save_CPPFLAGS="$CPPFLAGS"
15494  save_LDFLAGS="$LDFLAGS"
15495  save_LIBS="$LIBS"
15496
15497  CFLAGS="$CFLAGS $LIBCURL_CFLAGS"
15498  CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
15499  LDFLAGS="$LDFLAGS $LIBCURL_LDFLAGS"
15500
15501  #
15502  # Run checks passed as argument
15503  #
15504
15505    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5
15506$as_echo_n "checking for curl_global_init in -lcurl... " >&6; }
15507if ${ac_cv_lib_curl_curl_global_init+:} false; then :
15508  $as_echo_n "(cached) " >&6
15509else
15510  ac_check_lib_save_LIBS=$LIBS
15511LIBS="-lcurl  $LIBS"
15512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15513/* end confdefs.h.  */
15514
15515/* Override any GCC internal prototype to avoid an error.
15516   Use char because int might match the return type of a GCC
15517   builtin and then its argument prototype would still apply.  */
15518#ifdef __cplusplus
15519extern "C"
15520#endif
15521char curl_global_init ();
15522int
15523main ()
15524{
15525return curl_global_init ();
15526  ;
15527  return 0;
15528}
15529_ACEOF
15530if ac_fn_c_try_link "$LINENO"; then :
15531  ac_cv_lib_curl_curl_global_init=yes
15532else
15533  ac_cv_lib_curl_curl_global_init=no
15534fi
15535rm -f core conftest.err conftest.$ac_objext \
15536    conftest$ac_exeext conftest.$ac_ext
15537LIBS=$ac_check_lib_save_LIBS
15538fi
15539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5
15540$as_echo "$ac_cv_lib_curl_curl_global_init" >&6; }
15541if test "x$ac_cv_lib_curl_curl_global_init" = xyes; then :
15542  cat >>confdefs.h <<_ACEOF
15543#define HAVE_LIBCURL 1
15544_ACEOF
15545
15546  LIBS="-lcurl $LIBS"
15547
15548else
15549    libcurl_lib_found=no;
15550         if test "x$with_libcurl" != xcheck;
15551         then
15552             as_fn_error $? "Cannot find libcurl library" "$LINENO" 5;
15553         fi
15554
15555fi
15556
15557    for ac_header in curl/curl.h
15558do :
15559  ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
15560if test "x$ac_cv_header_curl_curl_h" = xyes; then :
15561  cat >>confdefs.h <<_ACEOF
15562#define HAVE_CURL_CURL_H 1
15563_ACEOF
15564 libcurl_header_found=yes
15565else
15566  if test "x$with_libcurl" != xcheck; then as_fn_error $? "Cannot find libcurl header files" "$LINENO" 5; fi
15567fi
15568
15569done
15570
15571
15572
15573  #
15574  # Pick up any libraries added by tests
15575  #
15576  test -z "$LIBCURL_LIBS" && LIBCURL_LIBS="$LIBS"
15577
15578  #
15579  # libtool understands -R$path, but we are not using libtool in configure
15580  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
15581  #
15582  if test "x$with_libcurl" != xyes &&
15583     test "x$with_libcurl" != xcheck &&
15584     test "x$with_libcurl" != x/usr &&
15585     test "x$with_libcurl" != x/
15586  then
15587    LIBCURL_LDFLAGS="$LIBCURL_LDFLAGS -R$with_libcurl/lib"
15588  fi
15589
15590  #
15591  # Restore pristine environment
15592  #
15593  CFLAGS="$save_CFLAGS"
15594  CPPFLAGS="$save_CPPFLAGS"
15595  LDFLAGS="$save_LDFLAGS"
15596  LIBS="$save_LIBS"
15597
15598
15599
15600
15601
15602
15603
15604fi
15605
15606 if test "x$libcurl_lib_found" != xno && test "x$libcurl_header_found" = xyes; then
15607  HAVE_LIBCURL_TRUE=
15608  HAVE_LIBCURL_FALSE='#'
15609else
15610  HAVE_LIBCURL_TRUE='#'
15611  HAVE_LIBCURL_FALSE=
15612fi
15613
15614
15615
15616
15617# Check whether --with-libyaml was given.
15618if test "${with_libyaml+set}" = set; then :
15619  withval=$with_libyaml;
15620else
15621  with_libyaml=check
15622fi
15623
15624
15625if test "x$with_libyaml" != xno
15626then
15627
15628
15629
15630  #
15631  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
15632  #
15633  if test "x$with_libyaml" != xyes &&
15634     test "x$with_libyaml" != xcheck &&
15635     test "x$with_libyaml" != x
15636  then
15637    test -z "$LIBYAML_PATH" && LIBYAML_PATH="$with_libyaml"
15638    if test "x$with_libyaml" != x/usr &&
15639       test "x$with_libyaml" != x/
15640    then
15641      test -z "$LIBYAML_CFLAGS" && LIBYAML_CFLAGS=""
15642      test -z "$LIBYAML_CPPFLAGS" && LIBYAML_CPPFLAGS="-I$with_libyaml/include"
15643      test -z "$LIBYAML_LDFLAGS" && LIBYAML_LDFLAGS="-L$with_libyaml/lib"
15644    fi
15645  else
15646    LIBYAML_PATH="default path"
15647  fi
15648
15649  #
15650  # Save old environment
15651  #
15652  save_CFLAGS="$CFLAGS"
15653  save_CPPFLAGS="$CPPFLAGS"
15654  save_LDFLAGS="$LDFLAGS"
15655  save_LIBS="$LIBS"
15656
15657  CFLAGS="$CFLAGS $LIBYAML_CFLAGS"
15658  CPPFLAGS="$CPPFLAGS $LIBYAML_CPPFLAGS"
15659  LDFLAGS="$LDFLAGS $LIBYAML_LDFLAGS"
15660
15661  #
15662  # Run checks passed as argument
15663  #
15664
15665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaml_parser_initialize in -lyaml" >&5
15666$as_echo_n "checking for yaml_parser_initialize in -lyaml... " >&6; }
15667if ${ac_cv_lib_yaml_yaml_parser_initialize+:} false; then :
15668  $as_echo_n "(cached) " >&6
15669else
15670  ac_check_lib_save_LIBS=$LIBS
15671LIBS="-lyaml  $LIBS"
15672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15673/* end confdefs.h.  */
15674
15675/* Override any GCC internal prototype to avoid an error.
15676   Use char because int might match the return type of a GCC
15677   builtin and then its argument prototype would still apply.  */
15678#ifdef __cplusplus
15679extern "C"
15680#endif
15681char yaml_parser_initialize ();
15682int
15683main ()
15684{
15685return yaml_parser_initialize ();
15686  ;
15687  return 0;
15688}
15689_ACEOF
15690if ac_fn_c_try_link "$LINENO"; then :
15691  ac_cv_lib_yaml_yaml_parser_initialize=yes
15692else
15693  ac_cv_lib_yaml_yaml_parser_initialize=no
15694fi
15695rm -f core conftest.err conftest.$ac_objext \
15696    conftest$ac_exeext conftest.$ac_ext
15697LIBS=$ac_check_lib_save_LIBS
15698fi
15699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_yaml_yaml_parser_initialize" >&5
15700$as_echo "$ac_cv_lib_yaml_yaml_parser_initialize" >&6; }
15701if test "x$ac_cv_lib_yaml_yaml_parser_initialize" = xyes; then :
15702  cat >>confdefs.h <<_ACEOF
15703#define HAVE_LIBYAML 1
15704_ACEOF
15705
15706  LIBS="-lyaml $LIBS"
15707
15708else
15709  if test "x$with_libyaml" != xcheck; then as_fn_error $? "Cannot find libyaml library" "$LINENO" 5; fi
15710fi
15711
15712    for ac_header in yaml.h
15713do :
15714  ac_fn_c_check_header_mongrel "$LINENO" "yaml.h" "ac_cv_header_yaml_h" "$ac_includes_default"
15715if test "x$ac_cv_header_yaml_h" = xyes; then :
15716  cat >>confdefs.h <<_ACEOF
15717#define HAVE_YAML_H 1
15718_ACEOF
15719 libyaml_header_found=yes
15720else
15721  if test "x$with_libyaml" != xcheck; then as_fn_error $? "Cannot find libyaml header files" "$LINENO" 5; fi
15722fi
15723
15724done
15725
15726
15727
15728  #
15729  # Pick up any libraries added by tests
15730  #
15731  test -z "$LIBYAML_LIBS" && LIBYAML_LIBS="$LIBS"
15732
15733  #
15734  # libtool understands -R$path, but we are not using libtool in configure
15735  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
15736  #
15737  if test "x$with_libyaml" != xyes &&
15738     test "x$with_libyaml" != xcheck &&
15739     test "x$with_libyaml" != x/usr &&
15740     test "x$with_libyaml" != x/
15741  then
15742    LIBYAML_LDFLAGS="$LIBYAML_LDFLAGS -R$with_libyaml/lib"
15743  fi
15744
15745  #
15746  # Restore pristine environment
15747  #
15748  CFLAGS="$save_CFLAGS"
15749  CPPFLAGS="$save_CPPFLAGS"
15750  LDFLAGS="$save_LDFLAGS"
15751  LIBS="$save_LIBS"
15752
15753
15754
15755
15756
15757
15758
15759fi
15760
15761
15762
15763# Check whether --with-libxml2 was given.
15764if test "${with_libxml2+set}" = set; then :
15765  withval=$with_libxml2;
15766else
15767  with_libxml2=check
15768fi
15769
15770
15771if test "x$with_libxml2" != xno
15772then
15773    if test "x$with_libxml2" != xyes &&
15774       test "x$with_libxml2" != xcheck
15775    then
15776        XML2_CONFIG=$with_libxml2/bin/xml2-config
15777    else
15778        XML2_CONFIG=xml2-config
15779    fi
15780
15781    # xml2-config is only for native builds
15782    if test "x$cross_compiling" = "xno" && test x`which $XML2_CONFIG` != x
15783    then
15784        xml2_include_dir=`$XML2_CONFIG --cflags`
15785        if test -n "$xml2_include_dir"
15786        then
15787            LIBXML2_CPPFLAGS="$xml2_include_dir"
15788        fi
15789    else                # xml2-config not found
15790        # if a path, e.g. /var/cfengine was given, then we
15791        # must take into account that libxml2 includes are in
15792        # /var/cfengine/include/libxml2
15793        LIBXML2_CPPFLAGS=-I$with_libxml2/include/libxml2
15794    fi
15795
15796
15797
15798
15799  #
15800  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
15801  #
15802  if test "x$with_libxml2" != xyes &&
15803     test "x$with_libxml2" != xcheck &&
15804     test "x$with_libxml2" != x
15805  then
15806    test -z "$LIBXML2_PATH" && LIBXML2_PATH="$with_libxml2"
15807    if test "x$with_libxml2" != x/usr &&
15808       test "x$with_libxml2" != x/
15809    then
15810      test -z "$LIBXML2_CFLAGS" && LIBXML2_CFLAGS=""
15811      test -z "$LIBXML2_CPPFLAGS" && LIBXML2_CPPFLAGS="-I$with_libxml2/include"
15812      test -z "$LIBXML2_LDFLAGS" && LIBXML2_LDFLAGS="-L$with_libxml2/lib"
15813    fi
15814  else
15815    LIBXML2_PATH="default path"
15816  fi
15817
15818  #
15819  # Save old environment
15820  #
15821  save_CFLAGS="$CFLAGS"
15822  save_CPPFLAGS="$CPPFLAGS"
15823  save_LDFLAGS="$LDFLAGS"
15824  save_LIBS="$LIBS"
15825
15826  CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
15827  CPPFLAGS="$CPPFLAGS $LIBXML2_CPPFLAGS"
15828  LDFLAGS="$LDFLAGS $LIBXML2_LDFLAGS"
15829
15830  #
15831  # Run checks passed as argument
15832  #
15833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
15834$as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
15835if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
15836  $as_echo_n "(cached) " >&6
15837else
15838  ac_check_lib_save_LIBS=$LIBS
15839LIBS="-lxml2  $LIBS"
15840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841/* end confdefs.h.  */
15842
15843/* Override any GCC internal prototype to avoid an error.
15844   Use char because int might match the return type of a GCC
15845   builtin and then its argument prototype would still apply.  */
15846#ifdef __cplusplus
15847extern "C"
15848#endif
15849char xmlFirstElementChild ();
15850int
15851main ()
15852{
15853return xmlFirstElementChild ();
15854  ;
15855  return 0;
15856}
15857_ACEOF
15858if ac_fn_c_try_link "$LINENO"; then :
15859  ac_cv_lib_xml2_xmlFirstElementChild=yes
15860else
15861  ac_cv_lib_xml2_xmlFirstElementChild=no
15862fi
15863rm -f core conftest.err conftest.$ac_objext \
15864    conftest$ac_exeext conftest.$ac_ext
15865LIBS=$ac_check_lib_save_LIBS
15866fi
15867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
15868$as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
15869if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
15870  cat >>confdefs.h <<_ACEOF
15871#define HAVE_LIBXML2 1
15872_ACEOF
15873
15874  LIBS="-lxml2 $LIBS"
15875
15876else
15877  if test "x$with_libxml2" != xcheck; then
15878                as_fn_error $? "Cannotfind libxml2" "$LINENO" 5; fi
15879
15880fi
15881
15882        for ac_header in libxml/xmlwriter.h
15883do :
15884  ac_fn_c_check_header_mongrel "$LINENO" "libxml/xmlwriter.h" "ac_cv_header_libxml_xmlwriter_h" "$ac_includes_default"
15885if test "x$ac_cv_header_libxml_xmlwriter_h" = xyes; then :
15886  cat >>confdefs.h <<_ACEOF
15887#define HAVE_LIBXML_XMLWRITER_H 1
15888_ACEOF
15889 break
15890else
15891  if test "x$with_libxml2" != xcheck; then
15892                as_fn_error $? "Cannot find libxml2" "$LINENO" 5; fi
15893
15894fi
15895
15896done
15897
15898
15899
15900  #
15901  # Pick up any libraries added by tests
15902  #
15903  test -z "$LIBXML2_LIBS" && LIBXML2_LIBS="$LIBS"
15904
15905  #
15906  # libtool understands -R$path, but we are not using libtool in configure
15907  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
15908  #
15909  if test "x$with_libxml2" != xyes &&
15910     test "x$with_libxml2" != xcheck &&
15911     test "x$with_libxml2" != x/usr &&
15912     test "x$with_libxml2" != x/
15913  then
15914    LIBXML2_LDFLAGS="$LIBXML2_LDFLAGS -R$with_libxml2/lib"
15915  fi
15916
15917  #
15918  # Restore pristine environment
15919  #
15920  CFLAGS="$save_CFLAGS"
15921  CPPFLAGS="$save_CPPFLAGS"
15922  LDFLAGS="$save_LDFLAGS"
15923  LIBS="$save_LIBS"
15924
15925
15926
15927
15928
15929
15930
15931fi
15932
15933 if test "x$with_libxml2" != xno &&
15934     test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then
15935  HAVE_LIBXML2_TRUE=
15936  HAVE_LIBXML2_FALSE='#'
15937else
15938  HAVE_LIBXML2_TRUE='#'
15939  HAVE_LIBXML2_FALSE=
15940fi
15941
15942
15943
15944
15945# Check whether --with-avahi was given.
15946if test "${with_avahi+set}" = set; then :
15947  withval=$with_avahi;
15948else
15949  with_avahi=no
15950fi
15951
15952
15953if test "x$with_avahi" != xno
15954then
15955    for ac_header in avahi-client/client.h
15956do :
15957  ac_fn_c_check_header_mongrel "$LINENO" "avahi-client/client.h" "ac_cv_header_avahi_client_client_h" "$ac_includes_default"
15958if test "x$ac_cv_header_avahi_client_client_h" = xyes; then :
15959  cat >>confdefs.h <<_ACEOF
15960#define HAVE_AVAHI_CLIENT_CLIENT_H 1
15961_ACEOF
15962  if true; then
15963  HAVE_AVAHI_CLIENT_TRUE=
15964  HAVE_AVAHI_CLIENT_FALSE='#'
15965else
15966  HAVE_AVAHI_CLIENT_TRUE='#'
15967  HAVE_AVAHI_CLIENT_FALSE=
15968fi
15969
15970else
15971   if false; then
15972  HAVE_AVAHI_CLIENT_TRUE=
15973  HAVE_AVAHI_CLIENT_FALSE='#'
15974else
15975  HAVE_AVAHI_CLIENT_TRUE='#'
15976  HAVE_AVAHI_CLIENT_FALSE=
15977fi
15978
15979         test "x$with_avahi" != "xcheck" && as_fn_error $? "Cannot find avahi-client/client.h" "$LINENO" 5
15980fi
15981
15982done
15983
15984    for ac_header in avahi-common/address.h
15985do :
15986  ac_fn_c_check_header_mongrel "$LINENO" "avahi-common/address.h" "ac_cv_header_avahi_common_address_h" "$ac_includes_default"
15987if test "x$ac_cv_header_avahi_common_address_h" = xyes; then :
15988  cat >>confdefs.h <<_ACEOF
15989#define HAVE_AVAHI_COMMON_ADDRESS_H 1
15990_ACEOF
15991  if true; then
15992  HAVE_AVAHI_COMMON_TRUE=
15993  HAVE_AVAHI_COMMON_FALSE='#'
15994else
15995  HAVE_AVAHI_COMMON_TRUE='#'
15996  HAVE_AVAHI_COMMON_FALSE=
15997fi
15998
15999else
16000   if false; then
16001  HAVE_AVAHI_COMMON_TRUE=
16002  HAVE_AVAHI_COMMON_FALSE='#'
16003else
16004  HAVE_AVAHI_COMMON_TRUE='#'
16005  HAVE_AVAHI_COMMON_FALSE=
16006fi
16007
16008         test "x$with_avahi" != "xcheck" && as_fn_error $? "Cannot find avahi-common/address.h" "$LINENO" 5
16009fi
16010
16011done
16012
16013else
16014     if false; then
16015  HAVE_AVAHI_CLIENT_TRUE=
16016  HAVE_AVAHI_CLIENT_FALSE='#'
16017else
16018  HAVE_AVAHI_CLIENT_TRUE='#'
16019  HAVE_AVAHI_CLIENT_FALSE=
16020fi
16021
16022     if false; then
16023  HAVE_AVAHI_COMMON_TRUE=
16024  HAVE_AVAHI_COMMON_FALSE='#'
16025else
16026  HAVE_AVAHI_COMMON_TRUE='#'
16027  HAVE_AVAHI_COMMON_FALSE=
16028fi
16029
16030fi
16031
16032
16033
16034for ac_header in unistd.h stdlib.h sys/loadavg.h
16035do :
16036  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16037ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16038if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16039  cat >>confdefs.h <<_ACEOF
16040#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16041_ACEOF
16042
16043fi
16044
16045done
16046
16047for ac_header in sys/param.h sys/resource.h
16048do :
16049  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16050ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16051if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16052  cat >>confdefs.h <<_ACEOF
16053#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16054_ACEOF
16055
16056fi
16057
16058done
16059
16060
16061# sys/param.h is required for sys/mount.h on OpenBSD
16062for ac_header in sys/mount.h
16063do :
16064  ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default
16065#ifdef HAVE_SYS_PARAM_H
16066# include <sys/param.h>
16067#endif
16068
16069"
16070if test "x$ac_cv_header_sys_mount_h" = xyes; then :
16071  cat >>confdefs.h <<_ACEOF
16072#define HAVE_SYS_MOUNT_H 1
16073_ACEOF
16074
16075fi
16076
16077done
16078
16079
16080# Required on BSD to get struct sockaddr_dl (for retrieving MAC addresses from getifaddrs())
16081for ac_header in net/if_dl.h
16082do :
16083  ac_fn_c_check_header_mongrel "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
16084if test "x$ac_cv_header_net_if_dl_h" = xyes; then :
16085  cat >>confdefs.h <<_ACEOF
16086#define HAVE_NET_IF_DL_H 1
16087_ACEOF
16088
16089fi
16090
16091done
16092
16093
16094# Required on Solaris to get struct arpreq (for retrieving MAC addresses)
16095for ac_header in net/if_arp.h
16096do :
16097  ac_fn_c_check_header_compile "$LINENO" "net/if_arp.h" "ac_cv_header_net_if_arp_h" "$ac_includes_default
16098#include <sys/socket.h>
16099
16100"
16101if test "x$ac_cv_header_net_if_arp_h" = xyes; then :
16102  cat >>confdefs.h <<_ACEOF
16103#define HAVE_NET_IF_ARP_H 1
16104_ACEOF
16105
16106fi
16107
16108done
16109
16110
16111for ac_header in utime.h
16112do :
16113  ac_fn_c_check_header_mongrel "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
16114if test "x$ac_cv_header_utime_h" = xyes; then :
16115  cat >>confdefs.h <<_ACEOF
16116#define HAVE_UTIME_H 1
16117_ACEOF
16118
16119fi
16120
16121done
16122
16123for ac_header in time.h
16124do :
16125  ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
16126if test "x$ac_cv_header_time_h" = xyes; then :
16127  cat >>confdefs.h <<_ACEOF
16128#define HAVE_TIME_H 1
16129_ACEOF
16130
16131fi
16132
16133done
16134
16135for ac_header in sys/time.h
16136do :
16137  ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
16138if test "x$ac_cv_header_sys_time_h" = xyes; then :
16139  cat >>confdefs.h <<_ACEOF
16140#define HAVE_SYS_TIME_H 1
16141_ACEOF
16142
16143fi
16144
16145done
16146
16147for ac_header in malloc.h sys/malloc.h
16148do :
16149  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16150ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16151if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16152  cat >>confdefs.h <<_ACEOF
16153#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16154_ACEOF
16155
16156fi
16157
16158done
16159
16160for ac_header in vfs.h
16161do :
16162  ac_fn_c_check_header_mongrel "$LINENO" "vfs.h" "ac_cv_header_vfs_h" "$ac_includes_default"
16163if test "x$ac_cv_header_vfs_h" = xyes; then :
16164  cat >>confdefs.h <<_ACEOF
16165#define HAVE_VFS_H 1
16166_ACEOF
16167
16168fi
16169
16170done
16171
16172for ac_header in sys/vfs.h
16173do :
16174  ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
16175if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
16176  cat >>confdefs.h <<_ACEOF
16177#define HAVE_SYS_VFS_H 1
16178_ACEOF
16179
16180fi
16181
16182done
16183
16184for ac_header in sys/sockio.h
16185do :
16186  ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
16187if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
16188  cat >>confdefs.h <<_ACEOF
16189#define HAVE_SYS_SOCKIO_H 1
16190_ACEOF
16191
16192fi
16193
16194done
16195
16196for ac_header in sys/statvfs.h
16197do :
16198  ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
16199if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
16200  cat >>confdefs.h <<_ACEOF
16201#define HAVE_SYS_STATVFS_H 1
16202_ACEOF
16203
16204fi
16205
16206done
16207
16208for ac_header in sys/statfs.h
16209do :
16210  ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
16211if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
16212  cat >>confdefs.h <<_ACEOF
16213#define HAVE_SYS_STATFS_H 1
16214_ACEOF
16215
16216fi
16217
16218done
16219
16220for ac_header in fcntl.h
16221do :
16222  ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
16223if test "x$ac_cv_header_fcntl_h" = xyes; then :
16224  cat >>confdefs.h <<_ACEOF
16225#define HAVE_FCNTL_H 1
16226_ACEOF
16227
16228fi
16229
16230done
16231
16232for ac_header in sys/filesys.h
16233do :
16234  ac_fn_c_check_header_mongrel "$LINENO" "sys/filesys.h" "ac_cv_header_sys_filesys_h" "$ac_includes_default"
16235if test "x$ac_cv_header_sys_filesys_h" = xyes; then :
16236  cat >>confdefs.h <<_ACEOF
16237#define HAVE_SYS_FILESYS_H 1
16238_ACEOF
16239
16240fi
16241
16242done
16243
16244for ac_header in dustat.h
16245do :
16246  ac_fn_c_check_header_mongrel "$LINENO" "dustat.h" "ac_cv_header_dustat_h" "$ac_includes_default"
16247if test "x$ac_cv_header_dustat_h" = xyes; then :
16248  cat >>confdefs.h <<_ACEOF
16249#define HAVE_DUSTAT_H 1
16250_ACEOF
16251
16252fi
16253
16254done
16255
16256for ac_header in sys/systeminfo.h
16257do :
16258  ac_fn_c_check_header_mongrel "$LINENO" "sys/systeminfo.h" "ac_cv_header_sys_systeminfo_h" "$ac_includes_default"
16259if test "x$ac_cv_header_sys_systeminfo_h" = xyes; then :
16260  cat >>confdefs.h <<_ACEOF
16261#define HAVE_SYS_SYSTEMINFO_H 1
16262_ACEOF
16263
16264fi
16265
16266done
16267
16268for ac_header in ieeefp.h
16269do :
16270  ac_fn_c_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
16271if test "x$ac_cv_header_ieeefp_h" = xyes; then :
16272  cat >>confdefs.h <<_ACEOF
16273#define HAVE_IEEEFP_H 1
16274_ACEOF
16275
16276fi
16277
16278done
16279
16280for ac_header in winsock2.h
16281do :
16282  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
16283if test "x$ac_cv_header_winsock2_h" = xyes; then :
16284  cat >>confdefs.h <<_ACEOF
16285#define HAVE_WINSOCK2_H 1
16286_ACEOF
16287
16288fi
16289
16290done
16291
16292for ac_header in ws2tcpip.h
16293do :
16294  ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
16295if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
16296  cat >>confdefs.h <<_ACEOF
16297#define HAVE_WS2TCPIP_H 1
16298_ACEOF
16299
16300fi
16301
16302done
16303
16304for ac_header in zone.h
16305do :
16306  ac_fn_c_check_header_mongrel "$LINENO" "zone.h" "ac_cv_header_zone_h" "$ac_includes_default"
16307if test "x$ac_cv_header_zone_h" = xyes; then :
16308  cat >>confdefs.h <<_ACEOF
16309#define HAVE_ZONE_H 1
16310_ACEOF
16311
16312fi
16313
16314done
16315
16316for ac_header in sys/uio.h
16317do :
16318  ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
16319if test "x$ac_cv_header_sys_uio_h" = xyes; then :
16320  cat >>confdefs.h <<_ACEOF
16321#define HAVE_SYS_UIO_H 1
16322_ACEOF
16323
16324fi
16325
16326done
16327
16328
16329
16330
16331  for ac_header in $ac_header_list
16332do :
16333  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16334ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16335"
16336if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16337  cat >>confdefs.h <<_ACEOF
16338#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16339_ACEOF
16340
16341fi
16342
16343done
16344
16345
16346
16347 for ac_header in sys/types.h
16348do :
16349  ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
16350if test "x$ac_cv_header_sys_types_h" = xyes; then :
16351  cat >>confdefs.h <<_ACEOF
16352#define HAVE_SYS_TYPES_H 1
16353_ACEOF
16354
16355fi
16356
16357done
16358
16359for ac_header in sys/mpctl.h
16360do :
16361  ac_fn_c_check_header_mongrel "$LINENO" "sys/mpctl.h" "ac_cv_header_sys_mpctl_h" "$ac_includes_default"
16362if test "x$ac_cv_header_sys_mpctl_h" = xyes; then :
16363  cat >>confdefs.h <<_ACEOF
16364#define HAVE_SYS_MPCTL_H 1
16365_ACEOF
16366
16367fi
16368
16369done
16370 for ac_header in shadow.h
16371do :
16372  ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
16373if test "x$ac_cv_header_shadow_h" = xyes; then :
16374  cat >>confdefs.h <<_ACEOF
16375#define HAVE_SHADOW_H 1
16376_ACEOF
16377
16378fi
16379
16380done
16381
16382for ac_header in sys/jail.h
16383do :
16384  ac_fn_c_check_header_compile "$LINENO" "sys/jail.h" "ac_cv_header_sys_jail_h" "$ac_includes_default
16385#ifdef HAVE_SYS_PARAM_H
16386# include <sys/param.h>
16387#endif
16388
16389"
16390if test "x$ac_cv_header_sys_jail_h" = xyes; then :
16391  cat >>confdefs.h <<_ACEOF
16392#define HAVE_SYS_JAIL_H 1
16393_ACEOF
16394
16395fi
16396
16397done
16398
16399for ac_header in net/route.h netinet/in.h netinet/ip.h
16400do :
16401  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16402ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16403if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16404  cat >>confdefs.h <<_ACEOF
16405#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16406_ACEOF
16407
16408fi
16409
16410done
16411
16412
16413
16414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16415$as_echo_n "checking for ANSI C header files... " >&6; }
16416if ${ac_cv_header_stdc+:} false; then :
16417  $as_echo_n "(cached) " >&6
16418else
16419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16420/* end confdefs.h.  */
16421#include <stdlib.h>
16422#include <stdarg.h>
16423#include <string.h>
16424#include <float.h>
16425
16426int
16427main ()
16428{
16429
16430  ;
16431  return 0;
16432}
16433_ACEOF
16434if ac_fn_c_try_compile "$LINENO"; then :
16435  ac_cv_header_stdc=yes
16436else
16437  ac_cv_header_stdc=no
16438fi
16439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16440
16441if test $ac_cv_header_stdc = yes; then
16442  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16444/* end confdefs.h.  */
16445#include <string.h>
16446
16447_ACEOF
16448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16449  $EGREP "memchr" >/dev/null 2>&1; then :
16450
16451else
16452  ac_cv_header_stdc=no
16453fi
16454rm -f conftest*
16455
16456fi
16457
16458if test $ac_cv_header_stdc = yes; then
16459  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16461/* end confdefs.h.  */
16462#include <stdlib.h>
16463
16464_ACEOF
16465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16466  $EGREP "free" >/dev/null 2>&1; then :
16467
16468else
16469  ac_cv_header_stdc=no
16470fi
16471rm -f conftest*
16472
16473fi
16474
16475if test $ac_cv_header_stdc = yes; then
16476  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16477  if test "$cross_compiling" = yes; then :
16478  :
16479else
16480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16481/* end confdefs.h.  */
16482#include <ctype.h>
16483#include <stdlib.h>
16484#if ((' ' & 0x0FF) == 0x020)
16485# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16486# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16487#else
16488# define ISLOWER(c) \
16489		   (('a' <= (c) && (c) <= 'i') \
16490		     || ('j' <= (c) && (c) <= 'r') \
16491		     || ('s' <= (c) && (c) <= 'z'))
16492# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16493#endif
16494
16495#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16496int
16497main ()
16498{
16499  int i;
16500  for (i = 0; i < 256; i++)
16501    if (XOR (islower (i), ISLOWER (i))
16502	|| toupper (i) != TOUPPER (i))
16503      return 2;
16504  return 0;
16505}
16506_ACEOF
16507if ac_fn_c_try_run "$LINENO"; then :
16508
16509else
16510  ac_cv_header_stdc=no
16511fi
16512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16513  conftest.$ac_objext conftest.beam conftest.$ac_ext
16514fi
16515
16516fi
16517fi
16518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16519$as_echo "$ac_cv_header_stdc" >&6; }
16520if test $ac_cv_header_stdc = yes; then
16521
16522$as_echo "#define STDC_HEADERS 1" >>confdefs.h
16523
16524fi
16525
16526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16527$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16528if ${ac_cv_header_time+:} false; then :
16529  $as_echo_n "(cached) " >&6
16530else
16531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16532/* end confdefs.h.  */
16533#include <sys/types.h>
16534#include <sys/time.h>
16535#include <time.h>
16536
16537int
16538main ()
16539{
16540if ((struct tm *) 0)
16541return 0;
16542  ;
16543  return 0;
16544}
16545_ACEOF
16546if ac_fn_c_try_compile "$LINENO"; then :
16547  ac_cv_header_time=yes
16548else
16549  ac_cv_header_time=no
16550fi
16551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16552fi
16553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16554$as_echo "$ac_cv_header_time" >&6; }
16555if test $ac_cv_header_time = yes; then
16556
16557$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16558
16559fi
16560
16561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16562$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16563if ${ac_cv_header_sys_wait_h+:} false; then :
16564  $as_echo_n "(cached) " >&6
16565else
16566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567/* end confdefs.h.  */
16568#include <sys/types.h>
16569#include <sys/wait.h>
16570#ifndef WEXITSTATUS
16571# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16572#endif
16573#ifndef WIFEXITED
16574# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16575#endif
16576
16577int
16578main ()
16579{
16580  int s;
16581  wait (&s);
16582  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16583  ;
16584  return 0;
16585}
16586_ACEOF
16587if ac_fn_c_try_compile "$LINENO"; then :
16588  ac_cv_header_sys_wait_h=yes
16589else
16590  ac_cv_header_sys_wait_h=no
16591fi
16592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16593fi
16594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16595$as_echo "$ac_cv_header_sys_wait_h" >&6; }
16596if test $ac_cv_header_sys_wait_h = yes; then
16597
16598$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16599
16600fi
16601
16602ac_header_dirent=no
16603for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16604  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16606$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16607if eval \${$as_ac_Header+:} false; then :
16608  $as_echo_n "(cached) " >&6
16609else
16610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611/* end confdefs.h.  */
16612#include <sys/types.h>
16613#include <$ac_hdr>
16614
16615int
16616main ()
16617{
16618if ((DIR *) 0)
16619return 0;
16620  ;
16621  return 0;
16622}
16623_ACEOF
16624if ac_fn_c_try_compile "$LINENO"; then :
16625  eval "$as_ac_Header=yes"
16626else
16627  eval "$as_ac_Header=no"
16628fi
16629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16630fi
16631eval ac_res=\$$as_ac_Header
16632	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16633$as_echo "$ac_res" >&6; }
16634if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16635  cat >>confdefs.h <<_ACEOF
16636#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16637_ACEOF
16638
16639ac_header_dirent=$ac_hdr; break
16640fi
16641
16642done
16643# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16644if test $ac_header_dirent = dirent.h; then
16645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16646$as_echo_n "checking for library containing opendir... " >&6; }
16647if ${ac_cv_search_opendir+:} false; then :
16648  $as_echo_n "(cached) " >&6
16649else
16650  ac_func_search_save_LIBS=$LIBS
16651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652/* end confdefs.h.  */
16653
16654/* Override any GCC internal prototype to avoid an error.
16655   Use char because int might match the return type of a GCC
16656   builtin and then its argument prototype would still apply.  */
16657#ifdef __cplusplus
16658extern "C"
16659#endif
16660char opendir ();
16661int
16662main ()
16663{
16664return opendir ();
16665  ;
16666  return 0;
16667}
16668_ACEOF
16669for ac_lib in '' dir; do
16670  if test -z "$ac_lib"; then
16671    ac_res="none required"
16672  else
16673    ac_res=-l$ac_lib
16674    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16675  fi
16676  if ac_fn_c_try_link "$LINENO"; then :
16677  ac_cv_search_opendir=$ac_res
16678fi
16679rm -f core conftest.err conftest.$ac_objext \
16680    conftest$ac_exeext
16681  if ${ac_cv_search_opendir+:} false; then :
16682  break
16683fi
16684done
16685if ${ac_cv_search_opendir+:} false; then :
16686
16687else
16688  ac_cv_search_opendir=no
16689fi
16690rm conftest.$ac_ext
16691LIBS=$ac_func_search_save_LIBS
16692fi
16693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16694$as_echo "$ac_cv_search_opendir" >&6; }
16695ac_res=$ac_cv_search_opendir
16696if test "$ac_res" != no; then :
16697  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16698
16699fi
16700
16701else
16702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16703$as_echo_n "checking for library containing opendir... " >&6; }
16704if ${ac_cv_search_opendir+:} false; then :
16705  $as_echo_n "(cached) " >&6
16706else
16707  ac_func_search_save_LIBS=$LIBS
16708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709/* end confdefs.h.  */
16710
16711/* Override any GCC internal prototype to avoid an error.
16712   Use char because int might match the return type of a GCC
16713   builtin and then its argument prototype would still apply.  */
16714#ifdef __cplusplus
16715extern "C"
16716#endif
16717char opendir ();
16718int
16719main ()
16720{
16721return opendir ();
16722  ;
16723  return 0;
16724}
16725_ACEOF
16726for ac_lib in '' x; do
16727  if test -z "$ac_lib"; then
16728    ac_res="none required"
16729  else
16730    ac_res=-l$ac_lib
16731    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16732  fi
16733  if ac_fn_c_try_link "$LINENO"; then :
16734  ac_cv_search_opendir=$ac_res
16735fi
16736rm -f core conftest.err conftest.$ac_objext \
16737    conftest$ac_exeext
16738  if ${ac_cv_search_opendir+:} false; then :
16739  break
16740fi
16741done
16742if ${ac_cv_search_opendir+:} false; then :
16743
16744else
16745  ac_cv_search_opendir=no
16746fi
16747rm conftest.$ac_ext
16748LIBS=$ac_func_search_save_LIBS
16749fi
16750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16751$as_echo "$ac_cv_search_opendir" >&6; }
16752ac_res=$ac_cv_search_opendir
16753if test "$ac_res" != no; then :
16754  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16755
16756fi
16757
16758fi
16759
16760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16761$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16762if ${ac_cv_header_stdbool_h+:} false; then :
16763  $as_echo_n "(cached) " >&6
16764else
16765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766/* end confdefs.h.  */
16767
16768             #include <stdbool.h>
16769             #ifndef bool
16770              "error: bool is not defined"
16771             #endif
16772             #ifndef false
16773              "error: false is not defined"
16774             #endif
16775             #if false
16776              "error: false is not 0"
16777             #endif
16778             #ifndef true
16779              "error: true is not defined"
16780             #endif
16781             #if true != 1
16782              "error: true is not 1"
16783             #endif
16784             #ifndef __bool_true_false_are_defined
16785              "error: __bool_true_false_are_defined is not defined"
16786             #endif
16787
16788             struct s { _Bool s: 1; _Bool t; } s;
16789
16790             char a[true == 1 ? 1 : -1];
16791             char b[false == 0 ? 1 : -1];
16792             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16793             char d[(bool) 0.5 == true ? 1 : -1];
16794             /* See body of main program for 'e'.  */
16795             char f[(_Bool) 0.0 == false ? 1 : -1];
16796             char g[true];
16797             char h[sizeof (_Bool)];
16798             char i[sizeof s.t];
16799             enum { j = false, k = true, l = false * true, m = true * 256 };
16800             /* The following fails for
16801                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16802             _Bool n[m];
16803             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16804             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16805             /* Catch a bug in an HP-UX C compiler.  See
16806                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16807                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16808              */
16809             _Bool q = true;
16810             _Bool *pq = &q;
16811
16812int
16813main ()
16814{
16815
16816             bool e = &s;
16817             *pq |= q;
16818             *pq |= ! q;
16819             /* Refer to every declared value, to avoid compiler optimizations.  */
16820             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16821                     + !m + !n + !o + !p + !q + !pq);
16822
16823  ;
16824  return 0;
16825}
16826_ACEOF
16827if ac_fn_c_try_compile "$LINENO"; then :
16828  ac_cv_header_stdbool_h=yes
16829else
16830  ac_cv_header_stdbool_h=no
16831fi
16832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833fi
16834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16835$as_echo "$ac_cv_header_stdbool_h" >&6; }
16836   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16837if test "x$ac_cv_type__Bool" = xyes; then :
16838
16839cat >>confdefs.h <<_ACEOF
16840#define HAVE__BOOL 1
16841_ACEOF
16842
16843
16844fi
16845
16846
16847if test $ac_cv_header_stdbool_h = yes; then
16848
16849$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
16850
16851fi
16852
16853
16854
16855ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16856if test "x$ac_cv_type_mode_t" = xyes; then :
16857
16858else
16859
16860cat >>confdefs.h <<_ACEOF
16861#define mode_t int
16862_ACEOF
16863
16864fi
16865
16866ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16867if test "x$ac_cv_type_size_t" = xyes; then :
16868
16869else
16870
16871cat >>confdefs.h <<_ACEOF
16872#define size_t unsigned int
16873_ACEOF
16874
16875fi
16876
16877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16878$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
16879if ${ac_cv_type_uid_t+:} false; then :
16880  $as_echo_n "(cached) " >&6
16881else
16882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883/* end confdefs.h.  */
16884#include <sys/types.h>
16885
16886_ACEOF
16887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16888  $EGREP "uid_t" >/dev/null 2>&1; then :
16889  ac_cv_type_uid_t=yes
16890else
16891  ac_cv_type_uid_t=no
16892fi
16893rm -f conftest*
16894
16895fi
16896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16897$as_echo "$ac_cv_type_uid_t" >&6; }
16898if test $ac_cv_type_uid_t = no; then
16899
16900$as_echo "#define uid_t int" >>confdefs.h
16901
16902
16903$as_echo "#define gid_t int" >>confdefs.h
16904
16905fi
16906
16907ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16908if test "x$ac_cv_type_pid_t" = xyes; then :
16909
16910else
16911
16912cat >>confdefs.h <<_ACEOF
16913#define pid_t int
16914_ACEOF
16915
16916fi
16917
16918ac_fn_c_check_type "$LINENO" "clockid_t" "ac_cv_type_clockid_t" "
16919#ifdef HAVE_TIME_H
16920# include <time.h>
16921#endif
16922
16923"
16924if test "x$ac_cv_type_clockid_t" = xyes; then :
16925
16926cat >>confdefs.h <<_ACEOF
16927#define HAVE_CLOCKID_T 1
16928_ACEOF
16929
16930
16931fi
16932
16933
16934ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16935#ifdef HAVE_SYS_TYPES_H
16936# include <sys/types.h>
16937#endif
16938
16939#include <sys/socket.h>
16940
16941"
16942if test "x$ac_cv_type_socklen_t" = xyes; then :
16943
16944cat >>confdefs.h <<_ACEOF
16945#define HAVE_SOCKLEN_T 1
16946_ACEOF
16947
16948
16949fi
16950
16951
16952
16953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16954$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16955if ${ac_cv_c_const+:} false; then :
16956  $as_echo_n "(cached) " >&6
16957else
16958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959/* end confdefs.h.  */
16960
16961int
16962main ()
16963{
16964
16965#ifndef __cplusplus
16966  /* Ultrix mips cc rejects this sort of thing.  */
16967  typedef int charset[2];
16968  const charset cs = { 0, 0 };
16969  /* SunOS 4.1.1 cc rejects this.  */
16970  char const *const *pcpcc;
16971  char **ppc;
16972  /* NEC SVR4.0.2 mips cc rejects this.  */
16973  struct point {int x, y;};
16974  static struct point const zero = {0,0};
16975  /* AIX XL C 1.02.0.0 rejects this.
16976     It does not let you subtract one const X* pointer from another in
16977     an arm of an if-expression whose if-part is not a constant
16978     expression */
16979  const char *g = "string";
16980  pcpcc = &g + (g ? g-g : 0);
16981  /* HPUX 7.0 cc rejects these. */
16982  ++pcpcc;
16983  ppc = (char**) pcpcc;
16984  pcpcc = (char const *const *) ppc;
16985  { /* SCO 3.2v4 cc rejects this sort of thing.  */
16986    char tx;
16987    char *t = &tx;
16988    char const *s = 0 ? (char *) 0 : (char const *) 0;
16989
16990    *t++ = 0;
16991    if (s) return 0;
16992  }
16993  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16994    int x[] = {25, 17};
16995    const int *foo = &x[0];
16996    ++foo;
16997  }
16998  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16999    typedef const int *iptr;
17000    iptr p = 0;
17001    ++p;
17002  }
17003  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17004       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17005    struct s { int j; const int *ap[3]; } bx;
17006    struct s *b = &bx; b->j = 5;
17007  }
17008  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17009    const int foo = 10;
17010    if (!foo) return 0;
17011  }
17012  return !cs[0] && !zero.x;
17013#endif
17014
17015  ;
17016  return 0;
17017}
17018_ACEOF
17019if ac_fn_c_try_compile "$LINENO"; then :
17020  ac_cv_c_const=yes
17021else
17022  ac_cv_c_const=no
17023fi
17024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17025fi
17026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17027$as_echo "$ac_cv_c_const" >&6; }
17028if test $ac_cv_c_const = no; then
17029
17030$as_echo "#define const /**/" >>confdefs.h
17031
17032fi
17033
17034
17035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17036$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
17037if ${ac_cv_sys_largefile_source+:} false; then :
17038  $as_echo_n "(cached) " >&6
17039else
17040  while :; do
17041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17042/* end confdefs.h.  */
17043#include <sys/types.h> /* for off_t */
17044     #include <stdio.h>
17045int
17046main ()
17047{
17048int (*fp) (FILE *, off_t, int) = fseeko;
17049     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17050  ;
17051  return 0;
17052}
17053_ACEOF
17054if ac_fn_c_try_link "$LINENO"; then :
17055  ac_cv_sys_largefile_source=no; break
17056fi
17057rm -f core conftest.err conftest.$ac_objext \
17058    conftest$ac_exeext conftest.$ac_ext
17059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060/* end confdefs.h.  */
17061#define _LARGEFILE_SOURCE 1
17062#include <sys/types.h> /* for off_t */
17063     #include <stdio.h>
17064int
17065main ()
17066{
17067int (*fp) (FILE *, off_t, int) = fseeko;
17068     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17069  ;
17070  return 0;
17071}
17072_ACEOF
17073if ac_fn_c_try_link "$LINENO"; then :
17074  ac_cv_sys_largefile_source=1; break
17075fi
17076rm -f core conftest.err conftest.$ac_objext \
17077    conftest$ac_exeext conftest.$ac_ext
17078  ac_cv_sys_largefile_source=unknown
17079  break
17080done
17081fi
17082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
17083$as_echo "$ac_cv_sys_largefile_source" >&6; }
17084case $ac_cv_sys_largefile_source in #(
17085  no | unknown) ;;
17086  *)
17087cat >>confdefs.h <<_ACEOF
17088#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17089_ACEOF
17090;;
17091esac
17092rm -rf conftest*
17093
17094# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17095# in glibc 2.1.3, but that breaks too many other things.
17096# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17097if test $ac_cv_sys_largefile_source != unknown; then
17098
17099$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
17100
17101fi
17102
17103# Check whether --enable-largefile was given.
17104if test "${enable_largefile+set}" = set; then :
17105  enableval=$enable_largefile;
17106fi
17107
17108if test "$enable_largefile" != no; then
17109
17110  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17111$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17112if ${ac_cv_sys_largefile_CC+:} false; then :
17113  $as_echo_n "(cached) " >&6
17114else
17115  ac_cv_sys_largefile_CC=no
17116     if test "$GCC" != yes; then
17117       ac_save_CC=$CC
17118       while :; do
17119	 # IRIX 6.2 and later do not support large files by default,
17120	 # so use the C compiler's -n32 option if that helps.
17121	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17122/* end confdefs.h.  */
17123#include <sys/types.h>
17124 /* Check that off_t can represent 2**63 - 1 correctly.
17125    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17126    since some C++ compilers masquerading as C compilers
17127    incorrectly reject 9223372036854775807.  */
17128#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17129  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17130		       && LARGE_OFF_T % 2147483647 == 1)
17131		      ? 1 : -1];
17132int
17133main ()
17134{
17135
17136  ;
17137  return 0;
17138}
17139_ACEOF
17140	 if ac_fn_c_try_compile "$LINENO"; then :
17141  break
17142fi
17143rm -f core conftest.err conftest.$ac_objext
17144	 CC="$CC -n32"
17145	 if ac_fn_c_try_compile "$LINENO"; then :
17146  ac_cv_sys_largefile_CC=' -n32'; break
17147fi
17148rm -f core conftest.err conftest.$ac_objext
17149	 break
17150       done
17151       CC=$ac_save_CC
17152       rm -f conftest.$ac_ext
17153    fi
17154fi
17155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17156$as_echo "$ac_cv_sys_largefile_CC" >&6; }
17157  if test "$ac_cv_sys_largefile_CC" != no; then
17158    CC=$CC$ac_cv_sys_largefile_CC
17159  fi
17160
17161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17162$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17163if ${ac_cv_sys_file_offset_bits+:} false; then :
17164  $as_echo_n "(cached) " >&6
17165else
17166  while :; do
17167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17168/* end confdefs.h.  */
17169#include <sys/types.h>
17170 /* Check that off_t can represent 2**63 - 1 correctly.
17171    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17172    since some C++ compilers masquerading as C compilers
17173    incorrectly reject 9223372036854775807.  */
17174#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17175  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17176		       && LARGE_OFF_T % 2147483647 == 1)
17177		      ? 1 : -1];
17178int
17179main ()
17180{
17181
17182  ;
17183  return 0;
17184}
17185_ACEOF
17186if ac_fn_c_try_compile "$LINENO"; then :
17187  ac_cv_sys_file_offset_bits=no; break
17188fi
17189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191/* end confdefs.h.  */
17192#define _FILE_OFFSET_BITS 64
17193#include <sys/types.h>
17194 /* Check that off_t can represent 2**63 - 1 correctly.
17195    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17196    since some C++ compilers masquerading as C compilers
17197    incorrectly reject 9223372036854775807.  */
17198#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17199  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17200		       && LARGE_OFF_T % 2147483647 == 1)
17201		      ? 1 : -1];
17202int
17203main ()
17204{
17205
17206  ;
17207  return 0;
17208}
17209_ACEOF
17210if ac_fn_c_try_compile "$LINENO"; then :
17211  ac_cv_sys_file_offset_bits=64; break
17212fi
17213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17214  ac_cv_sys_file_offset_bits=unknown
17215  break
17216done
17217fi
17218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17219$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17220case $ac_cv_sys_file_offset_bits in #(
17221  no | unknown) ;;
17222  *)
17223cat >>confdefs.h <<_ACEOF
17224#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17225_ACEOF
17226;;
17227esac
17228rm -rf conftest*
17229  if test $ac_cv_sys_file_offset_bits = unknown; then
17230    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17231$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17232if ${ac_cv_sys_large_files+:} false; then :
17233  $as_echo_n "(cached) " >&6
17234else
17235  while :; do
17236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17237/* end confdefs.h.  */
17238#include <sys/types.h>
17239 /* Check that off_t can represent 2**63 - 1 correctly.
17240    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17241    since some C++ compilers masquerading as C compilers
17242    incorrectly reject 9223372036854775807.  */
17243#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17244  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17245		       && LARGE_OFF_T % 2147483647 == 1)
17246		      ? 1 : -1];
17247int
17248main ()
17249{
17250
17251  ;
17252  return 0;
17253}
17254_ACEOF
17255if ac_fn_c_try_compile "$LINENO"; then :
17256  ac_cv_sys_large_files=no; break
17257fi
17258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17260/* end confdefs.h.  */
17261#define _LARGE_FILES 1
17262#include <sys/types.h>
17263 /* Check that off_t can represent 2**63 - 1 correctly.
17264    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17265    since some C++ compilers masquerading as C compilers
17266    incorrectly reject 9223372036854775807.  */
17267#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17268  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17269		       && LARGE_OFF_T % 2147483647 == 1)
17270		      ? 1 : -1];
17271int
17272main ()
17273{
17274
17275  ;
17276  return 0;
17277}
17278_ACEOF
17279if ac_fn_c_try_compile "$LINENO"; then :
17280  ac_cv_sys_large_files=1; break
17281fi
17282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17283  ac_cv_sys_large_files=unknown
17284  break
17285done
17286fi
17287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17288$as_echo "$ac_cv_sys_large_files" >&6; }
17289case $ac_cv_sys_large_files in #(
17290  no | unknown) ;;
17291  *)
17292cat >>confdefs.h <<_ACEOF
17293#define _LARGE_FILES $ac_cv_sys_large_files
17294_ACEOF
17295;;
17296esac
17297rm -rf conftest*
17298  fi
17299
17300
17301fi
17302
17303ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17304if test "x$ac_cv_type_off_t" = xyes; then :
17305
17306else
17307
17308cat >>confdefs.h <<_ACEOF
17309#define off_t long int
17310_ACEOF
17311
17312fi
17313
17314
17315#
17316# AC_SYS_LARGEFILE correctly figures out necessary macros for large files, but
17317# on AIX there is a gotcha:
17318#
17319# Code generated by flex #includes <stdio.h> at the beginning of the file, which
17320# picks up 32-bit wide off_t. Then it #includes <config.h> which provides LFS
17321# macros, and finally it includes another system header, now with 64-bit wide
17322# off_t, which causes a conflict.
17323#
17324if test "x$ac_cv_sys_large_files" = x1; then
17325  CPPFLAGS="-D_LARGE_FILES=1 $CPPFLAGS"
17326fi
17327
17328
17329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
17330$as_echo_n "checking for sqrt in -lm... " >&6; }
17331if ${ac_cv_lib_m_sqrt+:} false; then :
17332  $as_echo_n "(cached) " >&6
17333else
17334  ac_check_lib_save_LIBS=$LIBS
17335LIBS="-lm  $LIBS"
17336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337/* end confdefs.h.  */
17338
17339/* Override any GCC internal prototype to avoid an error.
17340   Use char because int might match the return type of a GCC
17341   builtin and then its argument prototype would still apply.  */
17342#ifdef __cplusplus
17343extern "C"
17344#endif
17345char sqrt ();
17346int
17347main ()
17348{
17349return sqrt ();
17350  ;
17351  return 0;
17352}
17353_ACEOF
17354if ac_fn_c_try_link "$LINENO"; then :
17355  ac_cv_lib_m_sqrt=yes
17356else
17357  ac_cv_lib_m_sqrt=no
17358fi
17359rm -f core conftest.err conftest.$ac_objext \
17360    conftest$ac_exeext conftest.$ac_ext
17361LIBS=$ac_check_lib_save_LIBS
17362fi
17363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
17364$as_echo "$ac_cv_lib_m_sqrt" >&6; }
17365if test "x$ac_cv_lib_m_sqrt" = xyes; then :
17366  cat >>confdefs.h <<_ACEOF
17367#define HAVE_LIBM 1
17368_ACEOF
17369
17370  LIBS="-lm $LIBS"
17371
17372fi
17373
17374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
17375$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
17376if ${ac_cv_lib_rt_clock_gettime+:} false; then :
17377  $as_echo_n "(cached) " >&6
17378else
17379  ac_check_lib_save_LIBS=$LIBS
17380LIBS="-lrt  $LIBS"
17381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382/* end confdefs.h.  */
17383
17384/* Override any GCC internal prototype to avoid an error.
17385   Use char because int might match the return type of a GCC
17386   builtin and then its argument prototype would still apply.  */
17387#ifdef __cplusplus
17388extern "C"
17389#endif
17390char clock_gettime ();
17391int
17392main ()
17393{
17394return clock_gettime ();
17395  ;
17396  return 0;
17397}
17398_ACEOF
17399if ac_fn_c_try_link "$LINENO"; then :
17400  ac_cv_lib_rt_clock_gettime=yes
17401else
17402  ac_cv_lib_rt_clock_gettime=no
17403fi
17404rm -f core conftest.err conftest.$ac_objext \
17405    conftest$ac_exeext conftest.$ac_ext
17406LIBS=$ac_check_lib_save_LIBS
17407fi
17408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
17409$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
17410if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
17411  cat >>confdefs.h <<_ACEOF
17412#define HAVE_LIBRT 1
17413_ACEOF
17414
17415  LIBS="-lrt $LIBS"
17416
17417fi
17418
17419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17420$as_echo_n "checking for dlopen in -ldl... " >&6; }
17421if ${ac_cv_lib_dl_dlopen+:} false; then :
17422  $as_echo_n "(cached) " >&6
17423else
17424  ac_check_lib_save_LIBS=$LIBS
17425LIBS="-ldl  $LIBS"
17426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17427/* end confdefs.h.  */
17428
17429/* Override any GCC internal prototype to avoid an error.
17430   Use char because int might match the return type of a GCC
17431   builtin and then its argument prototype would still apply.  */
17432#ifdef __cplusplus
17433extern "C"
17434#endif
17435char dlopen ();
17436int
17437main ()
17438{
17439return dlopen ();
17440  ;
17441  return 0;
17442}
17443_ACEOF
17444if ac_fn_c_try_link "$LINENO"; then :
17445  ac_cv_lib_dl_dlopen=yes
17446else
17447  ac_cv_lib_dl_dlopen=no
17448fi
17449rm -f core conftest.err conftest.$ac_objext \
17450    conftest$ac_exeext conftest.$ac_ext
17451LIBS=$ac_check_lib_save_LIBS
17452fi
17453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17454$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17455if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17456  cat >>confdefs.h <<_ACEOF
17457#define HAVE_LIBDL 1
17458_ACEOF
17459
17460  LIBS="-ldl $LIBS"
17461
17462fi
17463
17464
17465
17466ac_fn_c_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "#include <time.h>
17467"
17468if test "x$ac_cv_have_decl_clock_gettime" = xyes; then :
17469  ac_have_decl=1
17470else
17471  ac_have_decl=0
17472fi
17473
17474cat >>confdefs.h <<_ACEOF
17475#define HAVE_DECL_CLOCK_GETTIME $ac_have_decl
17476_ACEOF
17477
17478ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
17479if test "x$ac_cv_func_clock_gettime" = xyes; then :
17480  $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17481
17482else
17483  case " $LIBOBJS " in
17484  *" clock_gettime.$ac_objext "* ) ;;
17485  *) LIBOBJS="$LIBOBJS clock_gettime.$ac_objext"
17486 ;;
17487esac
17488
17489fi
17490
17491
17492
17493ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
17494if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
17495  ac_have_decl=1
17496else
17497  ac_have_decl=0
17498fi
17499
17500cat >>confdefs.h <<_ACEOF
17501#define HAVE_DECL_UNSETENV $ac_have_decl
17502_ACEOF
17503
17504ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
17505if test "x$ac_cv_func_unsetenv" = xyes; then :
17506  $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
17507
17508else
17509  case " $LIBOBJS " in
17510  *" unsetenv.$ac_objext "* ) ;;
17511  *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
17512 ;;
17513esac
17514
17515fi
17516
17517
17518
17519ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
17520if test "x$ac_cv_have_decl_strnlen" = xyes; then :
17521  ac_have_decl=1
17522else
17523  ac_have_decl=0
17524fi
17525
17526cat >>confdefs.h <<_ACEOF
17527#define HAVE_DECL_STRNLEN $ac_have_decl
17528_ACEOF
17529
17530ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
17531if test "x$ac_cv_func_strnlen" = xyes; then :
17532  $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
17533
17534else
17535  case " $LIBOBJS " in
17536  *" strnlen.$ac_objext "* ) ;;
17537  *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
17538 ;;
17539esac
17540
17541fi
17542
17543
17544
17545
17546     ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
17547if test "x$ac_cv_have_decl_strndup" = xyes; then :
17548  ac_have_decl=1
17549else
17550  ac_have_decl=0
17551fi
17552
17553cat >>confdefs.h <<_ACEOF
17554#define HAVE_DECL_STRNDUP $ac_have_decl
17555_ACEOF
17556
17557  ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
17558if test "x$ac_cv_func_strndup" = xyes; then :
17559  $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
17560
17561else
17562  case " $LIBOBJS " in
17563  *" strndup.$ac_objext "* ) ;;
17564  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
17565 ;;
17566esac
17567
17568fi
17569
17570
17571  if test $ac_cv_have_decl_strndup = no; then
17572    HAVE_DECL_STRNDUP=0
17573  fi
17574
17575  if test $ac_cv_func_strndup = yes; then
17576    HAVE_STRNDUP=1
17577    # AIX 5.3 has a function that tries to copy the entire range specified
17578    # by n, instead of just the length of src.
17579    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
17580$as_echo_n "checking for working strndup... " >&6; }
17581if ${cf3_cv_func_strndup_works+:} false; then :
17582  $as_echo_n "(cached) " >&6
17583else
17584  if test "$cross_compiling" = yes; then :
17585
17586          case $host_os in
17587            aix | aix[3-6]*) cf3_cv_func_strndup_works="guessing no";;
17588            *)               cf3_cv_func_strndup_works="guessing yes";;
17589          esac
17590
17591else
17592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17593/* end confdefs.h.  */
17594
17595         #include <string.h>
17596                           #include <stdlib.h>
17597int
17598main ()
17599{
17600
17601#if !HAVE_DECL_STRNDUP
17602  extern
17603  #ifdef __cplusplus
17604  "C"
17605  #endif
17606  char *strndup (const char *, size_t);
17607#endif
17608  char *s;
17609  // Will crash if strndup tries to traverse all 2GB.
17610  s = strndup ("string", 2000000000);
17611  return 0;
17612  ;
17613  return 0;
17614}
17615_ACEOF
17616if ac_fn_c_try_run "$LINENO"; then :
17617  cf3_cv_func_strndup_works=yes
17618else
17619  cf3_cv_func_strndup_works=no
17620fi
17621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17622  conftest.$ac_objext conftest.beam conftest.$ac_ext
17623fi
17624
17625fi
17626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf3_cv_func_strndup_works" >&5
17627$as_echo "$cf3_cv_func_strndup_works" >&6; }
17628    case $cf3_cv_func_strndup_works in
17629      *no) case " $LIBOBJS " in
17630  *" strndup.$ac_objext "* ) ;;
17631  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
17632 ;;
17633esac
17634 ;;
17635    esac
17636  else
17637    HAVE_STRNDUP=0
17638  fi
17639
17640
17641ac_fn_c_check_decl "$LINENO" "seteuid" "ac_cv_have_decl_seteuid" "$ac_includes_default"
17642if test "x$ac_cv_have_decl_seteuid" = xyes; then :
17643  ac_have_decl=1
17644else
17645  ac_have_decl=0
17646fi
17647
17648cat >>confdefs.h <<_ACEOF
17649#define HAVE_DECL_SETEUID $ac_have_decl
17650_ACEOF
17651
17652ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
17653if test "x$ac_cv_func_seteuid" = xyes; then :
17654  $as_echo "#define HAVE_SETEUID 1" >>confdefs.h
17655
17656else
17657  case " $LIBOBJS " in
17658  *" seteuid.$ac_objext "* ) ;;
17659  *) LIBOBJS="$LIBOBJS seteuid.$ac_objext"
17660 ;;
17661esac
17662
17663fi
17664
17665
17666
17667ac_fn_c_check_decl "$LINENO" "setlinebuf" "ac_cv_have_decl_setlinebuf" "$ac_includes_default"
17668if test "x$ac_cv_have_decl_setlinebuf" = xyes; then :
17669  ac_have_decl=1
17670else
17671  ac_have_decl=0
17672fi
17673
17674cat >>confdefs.h <<_ACEOF
17675#define HAVE_DECL_SETLINEBUF $ac_have_decl
17676_ACEOF
17677
17678ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf"
17679if test "x$ac_cv_func_setlinebuf" = xyes; then :
17680  $as_echo "#define HAVE_SETLINEBUF 1" >>confdefs.h
17681
17682else
17683  case " $LIBOBJS " in
17684  *" setlinebuf.$ac_objext "* ) ;;
17685  *) LIBOBJS="$LIBOBJS setlinebuf.$ac_objext"
17686 ;;
17687esac
17688
17689fi
17690
17691
17692
17693ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
17694if test "x$ac_cv_have_decl_strlcat" = xyes; then :
17695  ac_have_decl=1
17696else
17697  ac_have_decl=0
17698fi
17699
17700cat >>confdefs.h <<_ACEOF
17701#define HAVE_DECL_STRLCAT $ac_have_decl
17702_ACEOF
17703
17704ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17705if test "x$ac_cv_func_strlcat" = xyes; then :
17706  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
17707
17708else
17709  case " $LIBOBJS " in
17710  *" strlcat.$ac_objext "* ) ;;
17711  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
17712 ;;
17713esac
17714
17715fi
17716
17717
17718
17719ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
17720if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
17721  ac_have_decl=1
17722else
17723  ac_have_decl=0
17724fi
17725
17726cat >>confdefs.h <<_ACEOF
17727#define HAVE_DECL_STRLCPY $ac_have_decl
17728_ACEOF
17729
17730ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17731if test "x$ac_cv_func_strlcpy" = xyes; then :
17732  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17733
17734else
17735  case " $LIBOBJS " in
17736  *" strlcpy.$ac_objext "* ) ;;
17737  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17738 ;;
17739esac
17740
17741fi
17742
17743
17744
17745ac_fn_c_check_decl "$LINENO" "realpath" "ac_cv_have_decl_realpath" "$ac_includes_default"
17746if test "x$ac_cv_have_decl_realpath" = xyes; then :
17747  ac_have_decl=1
17748else
17749  ac_have_decl=0
17750fi
17751
17752cat >>confdefs.h <<_ACEOF
17753#define HAVE_DECL_REALPATH $ac_have_decl
17754_ACEOF
17755
17756
17757ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
17758if test "x$ac_cv_have_decl_strdup" = xyes; then :
17759  ac_have_decl=1
17760else
17761  ac_have_decl=0
17762fi
17763
17764cat >>confdefs.h <<_ACEOF
17765#define HAVE_DECL_STRDUP $ac_have_decl
17766_ACEOF
17767
17768ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
17769if test "x$ac_cv_func_strdup" = xyes; then :
17770  $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
17771
17772else
17773  case " $LIBOBJS " in
17774  *" strdup.$ac_objext "* ) ;;
17775  *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
17776 ;;
17777esac
17778
17779fi
17780
17781
17782
17783ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
17784if test "x$ac_cv_have_decl_memrchr" = xyes; then :
17785  ac_have_decl=1
17786else
17787  ac_have_decl=0
17788fi
17789
17790cat >>confdefs.h <<_ACEOF
17791#define HAVE_DECL_MEMRCHR $ac_have_decl
17792_ACEOF
17793
17794ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
17795if test "x$ac_cv_func_memrchr" = xyes; then :
17796  $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h
17797
17798else
17799  case " $LIBOBJS " in
17800  *" memrchr.$ac_objext "* ) ;;
17801  *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
17802 ;;
17803esac
17804
17805fi
17806
17807
17808
17809ac_fn_c_check_decl "$LINENO" "round" "ac_cv_have_decl_round" "#include <math.h>
17810"
17811if test "x$ac_cv_have_decl_round" = xyes; then :
17812  ac_have_decl=1
17813else
17814  ac_have_decl=0
17815fi
17816
17817cat >>confdefs.h <<_ACEOF
17818#define HAVE_DECL_ROUND $ac_have_decl
17819_ACEOF
17820
17821ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
17822if test "x$ac_cv_func_round" = xyes; then :
17823  $as_echo "#define HAVE_ROUND 1" >>confdefs.h
17824
17825else
17826  case " $LIBOBJS " in
17827  *" round.$ac_objext "* ) ;;
17828  *) LIBOBJS="$LIBOBJS round.$ac_objext"
17829 ;;
17830esac
17831
17832fi
17833
17834
17835
17836ac_fn_c_check_decl "$LINENO" "nanosleep" "ac_cv_have_decl_nanosleep" "$ac_includes_default"
17837if test "x$ac_cv_have_decl_nanosleep" = xyes; then :
17838  ac_have_decl=1
17839else
17840  ac_have_decl=0
17841fi
17842
17843cat >>confdefs.h <<_ACEOF
17844#define HAVE_DECL_NANOSLEEP $ac_have_decl
17845_ACEOF
17846
17847ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
17848if test "x$ac_cv_func_nanosleep" = xyes; then :
17849  $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
17850
17851else
17852  case " $LIBOBJS " in
17853  *" nanosleep.$ac_objext "* ) ;;
17854  *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
17855 ;;
17856esac
17857
17858fi
17859
17860
17861
17862ac_fn_c_check_decl "$LINENO" "memdup" "ac_cv_have_decl_memdup" "$ac_includes_default"
17863if test "x$ac_cv_have_decl_memdup" = xyes; then :
17864  ac_have_decl=1
17865else
17866  ac_have_decl=0
17867fi
17868
17869cat >>confdefs.h <<_ACEOF
17870#define HAVE_DECL_MEMDUP $ac_have_decl
17871_ACEOF
17872
17873ac_fn_c_check_func "$LINENO" "memdup" "ac_cv_func_memdup"
17874if test "x$ac_cv_func_memdup" = xyes; then :
17875  $as_echo "#define HAVE_MEMDUP 1" >>confdefs.h
17876
17877else
17878  case " $LIBOBJS " in
17879  *" memdup.$ac_objext "* ) ;;
17880  *) LIBOBJS="$LIBOBJS memdup.$ac_objext"
17881 ;;
17882esac
17883
17884fi
17885
17886
17887
17888ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
17889if test "x$ac_cv_have_decl_memmem" = xyes; then :
17890  ac_have_decl=1
17891else
17892  ac_have_decl=0
17893fi
17894
17895cat >>confdefs.h <<_ACEOF
17896#define HAVE_DECL_MEMMEM $ac_have_decl
17897_ACEOF
17898
17899ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
17900if test "x$ac_cv_func_memmem" = xyes; then :
17901  $as_echo "#define HAVE_MEMMEM 1" >>confdefs.h
17902
17903else
17904  case " $LIBOBJS " in
17905  *" memmem.$ac_objext "* ) ;;
17906  *) LIBOBJS="$LIBOBJS memmem.$ac_objext"
17907 ;;
17908esac
17909
17910fi
17911
17912
17913
17914ac_fn_c_check_decl "$LINENO" "srand48" "ac_cv_have_decl_srand48" "$ac_includes_default"
17915if test "x$ac_cv_have_decl_srand48" = xyes; then :
17916  ac_have_decl=1
17917else
17918  ac_have_decl=0
17919fi
17920
17921cat >>confdefs.h <<_ACEOF
17922#define HAVE_DECL_SRAND48 $ac_have_decl
17923_ACEOF
17924
17925ac_fn_c_check_func "$LINENO" "srand48" "ac_cv_func_srand48"
17926if test "x$ac_cv_func_srand48" = xyes; then :
17927  $as_echo "#define HAVE_SRAND48 1" >>confdefs.h
17928
17929else
17930  case " $LIBOBJS " in
17931  *" srand48.$ac_objext "* ) ;;
17932  *) LIBOBJS="$LIBOBJS srand48.$ac_objext"
17933 ;;
17934esac
17935
17936fi
17937
17938
17939
17940ac_fn_c_check_decl "$LINENO" "drand48" "ac_cv_have_decl_drand48" "$ac_includes_default"
17941if test "x$ac_cv_have_decl_drand48" = xyes; then :
17942  ac_have_decl=1
17943else
17944  ac_have_decl=0
17945fi
17946
17947cat >>confdefs.h <<_ACEOF
17948#define HAVE_DECL_DRAND48 $ac_have_decl
17949_ACEOF
17950
17951ac_fn_c_check_func "$LINENO" "drand48" "ac_cv_func_drand48"
17952if test "x$ac_cv_func_drand48" = xyes; then :
17953  $as_echo "#define HAVE_DRAND48 1" >>confdefs.h
17954
17955else
17956  case " $LIBOBJS " in
17957  *" drand48.$ac_objext "* ) ;;
17958  *) LIBOBJS="$LIBOBJS drand48.$ac_objext"
17959 ;;
17960esac
17961
17962fi
17963
17964
17965
17966ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
17967if test "x$ac_cv_have_decl_strerror" = xyes; then :
17968  ac_have_decl=1
17969else
17970  ac_have_decl=0
17971fi
17972
17973cat >>confdefs.h <<_ACEOF
17974#define HAVE_DECL_STRERROR $ac_have_decl
17975_ACEOF
17976
17977ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
17978if test "x$ac_cv_func_strerror" = xyes; then :
17979  $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
17980
17981else
17982  case " $LIBOBJS " in
17983  *" strerror.$ac_objext "* ) ;;
17984  *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
17985 ;;
17986esac
17987
17988fi
17989
17990
17991
17992ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
17993if test "x$ac_cv_have_decl_strstr" = xyes; then :
17994  ac_have_decl=1
17995else
17996  ac_have_decl=0
17997fi
17998
17999cat >>confdefs.h <<_ACEOF
18000#define HAVE_DECL_STRSTR $ac_have_decl
18001_ACEOF
18002
18003ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
18004if test "x$ac_cv_func_strstr" = xyes; then :
18005  $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
18006
18007else
18008  case " $LIBOBJS " in
18009  *" strstr.$ac_objext "* ) ;;
18010  *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
18011 ;;
18012esac
18013
18014fi
18015
18016
18017
18018ac_fn_c_check_decl "$LINENO" "strcasestr" "ac_cv_have_decl_strcasestr" "$ac_includes_default"
18019if test "x$ac_cv_have_decl_strcasestr" = xyes; then :
18020  ac_have_decl=1
18021else
18022  ac_have_decl=0
18023fi
18024
18025cat >>confdefs.h <<_ACEOF
18026#define HAVE_DECL_STRCASESTR $ac_have_decl
18027_ACEOF
18028
18029ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
18030if test "x$ac_cv_func_strcasestr" = xyes; then :
18031  $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
18032
18033else
18034  case " $LIBOBJS " in
18035  *" strcasestr.$ac_objext "* ) ;;
18036  *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
18037 ;;
18038esac
18039
18040fi
18041
18042
18043
18044ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default"
18045if test "x$ac_cv_have_decl_strcasecmp" = xyes; then :
18046  ac_have_decl=1
18047else
18048  ac_have_decl=0
18049fi
18050
18051cat >>confdefs.h <<_ACEOF
18052#define HAVE_DECL_STRCASECMP $ac_have_decl
18053_ACEOF
18054
18055ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
18056if test "x$ac_cv_func_strcasecmp" = xyes; then :
18057  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
18058
18059else
18060  case " $LIBOBJS " in
18061  *" strcasecmp.$ac_objext "* ) ;;
18062  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
18063 ;;
18064esac
18065
18066fi
18067
18068
18069
18070ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
18071if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
18072  ac_have_decl=1
18073else
18074  ac_have_decl=0
18075fi
18076
18077cat >>confdefs.h <<_ACEOF
18078#define HAVE_DECL_STRNCASECMP $ac_have_decl
18079_ACEOF
18080
18081ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
18082if test "x$ac_cv_func_strncasecmp" = xyes; then :
18083  $as_echo "#define HAVE_STRNCASECMP 1" >>confdefs.h
18084
18085else
18086  case " $LIBOBJS " in
18087  *" strncasecmp.$ac_objext "* ) ;;
18088  *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
18089 ;;
18090esac
18091
18092fi
18093
18094
18095
18096ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "$ac_includes_default"
18097if test "x$ac_cv_have_decl_strsep" = xyes; then :
18098  ac_have_decl=1
18099else
18100  ac_have_decl=0
18101fi
18102
18103cat >>confdefs.h <<_ACEOF
18104#define HAVE_DECL_STRSEP $ac_have_decl
18105_ACEOF
18106
18107ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
18108if test "x$ac_cv_func_strsep" = xyes; then :
18109  $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
18110
18111else
18112  case " $LIBOBJS " in
18113  *" strsep.$ac_objext "* ) ;;
18114  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
18115 ;;
18116esac
18117
18118fi
18119
18120
18121
18122ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
18123if test "x$ac_cv_have_decl_strsignal" = xyes; then :
18124  ac_have_decl=1
18125else
18126  ac_have_decl=0
18127fi
18128
18129cat >>confdefs.h <<_ACEOF
18130#define HAVE_DECL_STRSIGNAL $ac_have_decl
18131_ACEOF
18132
18133ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
18134if test "x$ac_cv_func_strsignal" = xyes; then :
18135  $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
18136
18137else
18138  case " $LIBOBJS " in
18139  *" strsignal.$ac_objext "* ) ;;
18140  *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
18141 ;;
18142esac
18143
18144fi
18145
18146
18147
18148ac_fn_c_check_decl "$LINENO" "gmtime_r" "ac_cv_have_decl_gmtime_r" "#include <time.h>
18149"
18150if test "x$ac_cv_have_decl_gmtime_r" = xyes; then :
18151  ac_have_decl=1
18152else
18153  ac_have_decl=0
18154fi
18155
18156cat >>confdefs.h <<_ACEOF
18157#define HAVE_DECL_GMTIME_R $ac_have_decl
18158_ACEOF
18159
18160ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
18161if test "x$ac_cv_func_gmtime_r" = xyes; then :
18162  $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
18163
18164else
18165  case " $LIBOBJS " in
18166  *" gmtime_r.$ac_objext "* ) ;;
18167  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
18168 ;;
18169esac
18170
18171fi
18172
18173
18174
18175ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "#define _GNU_SOURCE 1
18176$ac_includes_default
18177"
18178if test "x$ac_cv_have_decl_getline" = xyes; then :
18179  ac_have_decl=1
18180else
18181  ac_have_decl=0
18182fi
18183
18184cat >>confdefs.h <<_ACEOF
18185#define HAVE_DECL_GETLINE $ac_have_decl
18186_ACEOF
18187
18188ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
18189if test "x$ac_cv_func_getline" = xyes; then :
18190  $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
18191
18192else
18193  case " $LIBOBJS " in
18194  *" getline.$ac_objext "* ) ;;
18195  *) LIBOBJS="$LIBOBJS getline.$ac_objext"
18196 ;;
18197esac
18198
18199fi
18200
18201
18202
18203ac_fn_c_check_decl "$LINENO" "strchrnul" "ac_cv_have_decl_strchrnul" "#define _GNU_SOURCE 1
18204$ac_includes_default
18205"
18206if test "x$ac_cv_have_decl_strchrnul" = xyes; then :
18207  ac_have_decl=1
18208else
18209  ac_have_decl=0
18210fi
18211
18212cat >>confdefs.h <<_ACEOF
18213#define HAVE_DECL_STRCHRNUL $ac_have_decl
18214_ACEOF
18215
18216ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
18217if test "x$ac_cv_func_strchrnul" = xyes; then :
18218  $as_echo "#define HAVE_STRCHRNUL 1" >>confdefs.h
18219
18220else
18221  case " $LIBOBJS " in
18222  *" strchrnul.$ac_objext "* ) ;;
18223  *) LIBOBJS="$LIBOBJS strchrnul.$ac_objext"
18224 ;;
18225esac
18226
18227fi
18228
18229
18230
18231ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
18232"
18233if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
18234  ac_have_decl=1
18235else
18236  ac_have_decl=0
18237fi
18238
18239cat >>confdefs.h <<_ACEOF
18240#define HAVE_DECL_LOCALTIME_R $ac_have_decl
18241_ACEOF
18242
18243ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
18244if test "x$ac_cv_func_localtime_r" = xyes; then :
18245  $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
18246
18247else
18248  case " $LIBOBJS " in
18249  *" localtime_r.$ac_objext "* ) ;;
18250  *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
18251 ;;
18252esac
18253
18254fi
18255
18256
18257
18258ac_fn_c_check_decl "$LINENO" "fgetgrent" "ac_cv_have_decl_fgetgrent" "#include <grp.h>
18259"
18260if test "x$ac_cv_have_decl_fgetgrent" = xyes; then :
18261  ac_have_decl=1
18262else
18263  ac_have_decl=0
18264fi
18265
18266cat >>confdefs.h <<_ACEOF
18267#define HAVE_DECL_FGETGRENT $ac_have_decl
18268_ACEOF
18269
18270
18271ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
18272"
18273if test "x$ac_cv_have_decl_isfinite" = xyes; then :
18274  ac_have_decl=1
18275else
18276  ac_have_decl=0
18277fi
18278
18279cat >>confdefs.h <<_ACEOF
18280#define HAVE_DECL_ISFINITE $ac_have_decl
18281_ACEOF
18282
18283
18284for ac_func in getpwent setpwent endpwent
18285do :
18286  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18287ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18288if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18289  cat >>confdefs.h <<_ACEOF
18290#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18291_ACEOF
18292
18293fi
18294done
18295
18296
18297for ac_func in fgetspent lckpwdf ulckpwdf
18298do :
18299  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18300ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18301if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18302  cat >>confdefs.h <<_ACEOF
18303#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18304_ACEOF
18305
18306fi
18307done
18308
18309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetspent in -lsec" >&5
18310$as_echo_n "checking for fgetspent in -lsec... " >&6; }
18311if ${ac_cv_lib_sec_fgetspent+:} false; then :
18312  $as_echo_n "(cached) " >&6
18313else
18314  ac_check_lib_save_LIBS=$LIBS
18315LIBS="-lsec  $LIBS"
18316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18317/* end confdefs.h.  */
18318
18319/* Override any GCC internal prototype to avoid an error.
18320   Use char because int might match the return type of a GCC
18321   builtin and then its argument prototype would still apply.  */
18322#ifdef __cplusplus
18323extern "C"
18324#endif
18325char fgetspent ();
18326int
18327main ()
18328{
18329return fgetspent ();
18330  ;
18331  return 0;
18332}
18333_ACEOF
18334if ac_fn_c_try_link "$LINENO"; then :
18335  ac_cv_lib_sec_fgetspent=yes
18336else
18337  ac_cv_lib_sec_fgetspent=no
18338fi
18339rm -f core conftest.err conftest.$ac_objext \
18340    conftest$ac_exeext conftest.$ac_ext
18341LIBS=$ac_check_lib_save_LIBS
18342fi
18343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_fgetspent" >&5
18344$as_echo "$ac_cv_lib_sec_fgetspent" >&6; }
18345if test "x$ac_cv_lib_sec_fgetspent" = xyes; then :
18346
18347
18348$as_echo "#define HAVE_LIBSEC 1" >>confdefs.h
18349
18350
18351$as_echo "#define HAVE_FGETSPENT 1" >>confdefs.h
18352
18353    LIBS="-lsec $LIBS"
18354
18355fi
18356
18357
18358ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "$ac_includes_default"
18359if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
18360  ac_have_decl=1
18361else
18362  ac_have_decl=0
18363fi
18364
18365cat >>confdefs.h <<_ACEOF
18366#define HAVE_DECL_GETLOADAVG $ac_have_decl
18367_ACEOF
18368
18369ac_have_func=no # yes means we've found a way to get the load average.
18370
18371# Make sure getloadavg.c is where it belongs, at configure-time.
18372test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18373  as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
18374
18375ac_save_LIBS=$LIBS
18376
18377# Check for getloadavg, but be sure not to touch the cache variable.
18378(ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18379if test "x$ac_cv_func_getloadavg" = xyes; then :
18380  exit 0
18381else
18382  exit 1
18383fi
18384) && ac_have_func=yes
18385
18386# On HPUX9, an unprivileged user can get load averages through this function.
18387for ac_func in pstat_getdynamic
18388do :
18389  ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
18390if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
18391  cat >>confdefs.h <<_ACEOF
18392#define HAVE_PSTAT_GETDYNAMIC 1
18393_ACEOF
18394
18395fi
18396done
18397
18398
18399# Solaris has libkstat which does not require root.
18400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
18401$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18402if ${ac_cv_lib_kstat_kstat_open+:} false; then :
18403  $as_echo_n "(cached) " >&6
18404else
18405  ac_check_lib_save_LIBS=$LIBS
18406LIBS="-lkstat  $LIBS"
18407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18408/* end confdefs.h.  */
18409
18410/* Override any GCC internal prototype to avoid an error.
18411   Use char because int might match the return type of a GCC
18412   builtin and then its argument prototype would still apply.  */
18413#ifdef __cplusplus
18414extern "C"
18415#endif
18416char kstat_open ();
18417int
18418main ()
18419{
18420return kstat_open ();
18421  ;
18422  return 0;
18423}
18424_ACEOF
18425if ac_fn_c_try_link "$LINENO"; then :
18426  ac_cv_lib_kstat_kstat_open=yes
18427else
18428  ac_cv_lib_kstat_kstat_open=no
18429fi
18430rm -f core conftest.err conftest.$ac_objext \
18431    conftest$ac_exeext conftest.$ac_ext
18432LIBS=$ac_check_lib_save_LIBS
18433fi
18434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
18435$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18436if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
18437  cat >>confdefs.h <<_ACEOF
18438#define HAVE_LIBKSTAT 1
18439_ACEOF
18440
18441  LIBS="-lkstat $LIBS"
18442
18443fi
18444
18445test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18446
18447# Some systems with -lutil have (and need) -lkvm as well, some do not.
18448# On Solaris, -lkvm requires nlist from -lelf, so check that first
18449# to get the right answer into the cache.
18450# For kstat on solaris, we need libelf to force the definition of SVR4 below.
18451if test $ac_have_func = no; then
18452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18453$as_echo_n "checking for elf_begin in -lelf... " >&6; }
18454if ${ac_cv_lib_elf_elf_begin+:} false; then :
18455  $as_echo_n "(cached) " >&6
18456else
18457  ac_check_lib_save_LIBS=$LIBS
18458LIBS="-lelf  $LIBS"
18459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18460/* end confdefs.h.  */
18461
18462/* Override any GCC internal prototype to avoid an error.
18463   Use char because int might match the return type of a GCC
18464   builtin and then its argument prototype would still apply.  */
18465#ifdef __cplusplus
18466extern "C"
18467#endif
18468char elf_begin ();
18469int
18470main ()
18471{
18472return elf_begin ();
18473  ;
18474  return 0;
18475}
18476_ACEOF
18477if ac_fn_c_try_link "$LINENO"; then :
18478  ac_cv_lib_elf_elf_begin=yes
18479else
18480  ac_cv_lib_elf_elf_begin=no
18481fi
18482rm -f core conftest.err conftest.$ac_objext \
18483    conftest$ac_exeext conftest.$ac_ext
18484LIBS=$ac_check_lib_save_LIBS
18485fi
18486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18487$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18488if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
18489  LIBS="-lelf $LIBS"
18490fi
18491
18492fi
18493if test $ac_have_func = no; then
18494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18495$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18496if ${ac_cv_lib_kvm_kvm_open+:} false; then :
18497  $as_echo_n "(cached) " >&6
18498else
18499  ac_check_lib_save_LIBS=$LIBS
18500LIBS="-lkvm  $LIBS"
18501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18502/* end confdefs.h.  */
18503
18504/* Override any GCC internal prototype to avoid an error.
18505   Use char because int might match the return type of a GCC
18506   builtin and then its argument prototype would still apply.  */
18507#ifdef __cplusplus
18508extern "C"
18509#endif
18510char kvm_open ();
18511int
18512main ()
18513{
18514return kvm_open ();
18515  ;
18516  return 0;
18517}
18518_ACEOF
18519if ac_fn_c_try_link "$LINENO"; then :
18520  ac_cv_lib_kvm_kvm_open=yes
18521else
18522  ac_cv_lib_kvm_kvm_open=no
18523fi
18524rm -f core conftest.err conftest.$ac_objext \
18525    conftest$ac_exeext conftest.$ac_ext
18526LIBS=$ac_check_lib_save_LIBS
18527fi
18528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18529$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18530if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
18531  LIBS="-lkvm $LIBS"
18532fi
18533
18534  # Check for the 4.4BSD definition of getloadavg.
18535  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18536$as_echo_n "checking for getloadavg in -lutil... " >&6; }
18537if ${ac_cv_lib_util_getloadavg+:} false; then :
18538  $as_echo_n "(cached) " >&6
18539else
18540  ac_check_lib_save_LIBS=$LIBS
18541LIBS="-lutil  $LIBS"
18542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18543/* end confdefs.h.  */
18544
18545/* Override any GCC internal prototype to avoid an error.
18546   Use char because int might match the return type of a GCC
18547   builtin and then its argument prototype would still apply.  */
18548#ifdef __cplusplus
18549extern "C"
18550#endif
18551char getloadavg ();
18552int
18553main ()
18554{
18555return getloadavg ();
18556  ;
18557  return 0;
18558}
18559_ACEOF
18560if ac_fn_c_try_link "$LINENO"; then :
18561  ac_cv_lib_util_getloadavg=yes
18562else
18563  ac_cv_lib_util_getloadavg=no
18564fi
18565rm -f core conftest.err conftest.$ac_objext \
18566    conftest$ac_exeext conftest.$ac_ext
18567LIBS=$ac_check_lib_save_LIBS
18568fi
18569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18570$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18571if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
18572  LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18573fi
18574
18575fi
18576
18577if test $ac_have_func = no; then
18578  # There is a commonly available library for RS/6000 AIX.
18579  # Since it is not a standard part of AIX, it might be installed locally.
18580  ac_getloadavg_LIBS=$LIBS
18581  LIBS="-L/usr/local/lib $LIBS"
18582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18583$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18584if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
18585  $as_echo_n "(cached) " >&6
18586else
18587  ac_check_lib_save_LIBS=$LIBS
18588LIBS="-lgetloadavg  $LIBS"
18589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18590/* end confdefs.h.  */
18591
18592/* Override any GCC internal prototype to avoid an error.
18593   Use char because int might match the return type of a GCC
18594   builtin and then its argument prototype would still apply.  */
18595#ifdef __cplusplus
18596extern "C"
18597#endif
18598char getloadavg ();
18599int
18600main ()
18601{
18602return getloadavg ();
18603  ;
18604  return 0;
18605}
18606_ACEOF
18607if ac_fn_c_try_link "$LINENO"; then :
18608  ac_cv_lib_getloadavg_getloadavg=yes
18609else
18610  ac_cv_lib_getloadavg_getloadavg=no
18611fi
18612rm -f core conftest.err conftest.$ac_objext \
18613    conftest$ac_exeext conftest.$ac_ext
18614LIBS=$ac_check_lib_save_LIBS
18615fi
18616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18617$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18618if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
18619  LIBS="-lgetloadavg $LIBS"
18620else
18621  LIBS=$ac_getloadavg_LIBS
18622fi
18623
18624fi
18625
18626# Make sure it is really in the library, if we think we found it,
18627# otherwise set up the replacement function.
18628for ac_func in getloadavg
18629do :
18630  ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18631if test "x$ac_cv_func_getloadavg" = xyes; then :
18632  cat >>confdefs.h <<_ACEOF
18633#define HAVE_GETLOADAVG 1
18634_ACEOF
18635
18636else
18637  case " $LIBOBJS " in
18638  *" getloadavg.$ac_objext "* ) ;;
18639  *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18640 ;;
18641esac
18642
18643
18644$as_echo "#define C_GETLOADAVG 1" >>confdefs.h
18645
18646# Figure out what our getloadavg.c needs.
18647ac_have_func=no
18648ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
18649if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
18650  ac_have_func=yes
18651
18652$as_echo "#define DGUX 1" >>confdefs.h
18653
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
18655$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18656if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
18657  $as_echo_n "(cached) " >&6
18658else
18659  ac_check_lib_save_LIBS=$LIBS
18660LIBS="-ldgc  $LIBS"
18661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18662/* end confdefs.h.  */
18663
18664/* Override any GCC internal prototype to avoid an error.
18665   Use char because int might match the return type of a GCC
18666   builtin and then its argument prototype would still apply.  */
18667#ifdef __cplusplus
18668extern "C"
18669#endif
18670char dg_sys_info ();
18671int
18672main ()
18673{
18674return dg_sys_info ();
18675  ;
18676  return 0;
18677}
18678_ACEOF
18679if ac_fn_c_try_link "$LINENO"; then :
18680  ac_cv_lib_dgc_dg_sys_info=yes
18681else
18682  ac_cv_lib_dgc_dg_sys_info=no
18683fi
18684rm -f core conftest.err conftest.$ac_objext \
18685    conftest$ac_exeext conftest.$ac_ext
18686LIBS=$ac_check_lib_save_LIBS
18687fi
18688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18689$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18690if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
18691  cat >>confdefs.h <<_ACEOF
18692#define HAVE_LIBDGC 1
18693_ACEOF
18694
18695  LIBS="-ldgc $LIBS"
18696
18697fi
18698
18699fi
18700
18701
18702
18703ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
18704if test "x$ac_cv_header_locale_h" = xyes; then :
18705
18706fi
18707
18708
18709for ac_func in setlocale
18710do :
18711  ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
18712if test "x$ac_cv_func_setlocale" = xyes; then :
18713  cat >>confdefs.h <<_ACEOF
18714#define HAVE_SETLOCALE 1
18715_ACEOF
18716
18717fi
18718done
18719
18720
18721# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18722# uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
18723# Irix 4.0.5F has the header but not the library.
18724if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
18725    && test "$ac_cv_lib_kvm_kvm_open" = yes; then
18726  ac_have_func=yes
18727
18728$as_echo "#define SVR4 1" >>confdefs.h
18729
18730fi
18731
18732if test $ac_have_func = no; then
18733  ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
18734if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
18735  ac_have_func=yes
18736
18737$as_echo "#define UMAX 1" >>confdefs.h
18738
18739
18740$as_echo "#define UMAX4_3 1" >>confdefs.h
18741
18742fi
18743
18744
18745fi
18746
18747if test $ac_have_func = no; then
18748  ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
18749if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
18750  ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
18751
18752fi
18753
18754
18755fi
18756
18757if test $ac_have_func = no; then
18758  for ac_header in mach/mach.h
18759do :
18760  ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
18761if test "x$ac_cv_header_mach_mach_h" = xyes; then :
18762  cat >>confdefs.h <<_ACEOF
18763#define HAVE_MACH_MACH_H 1
18764_ACEOF
18765
18766fi
18767
18768done
18769
18770fi
18771
18772for ac_header in nlist.h
18773do :
18774  ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
18775if test "x$ac_cv_header_nlist_h" = xyes; then :
18776  cat >>confdefs.h <<_ACEOF
18777#define HAVE_NLIST_H 1
18778_ACEOF
18779 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
18780"
18781if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
18782
18783cat >>confdefs.h <<_ACEOF
18784#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18785_ACEOF
18786
18787
18788$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
18789
18790fi
18791
18792
18793fi
18794
18795done
18796
18797fi
18798done
18799
18800
18801# Some definitions of getloadavg require that the program be installed setgid.
18802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
18803$as_echo_n "checking whether getloadavg requires setgid... " >&6; }
18804if ${ac_cv_func_getloadavg_setgid+:} false; then :
18805  $as_echo_n "(cached) " >&6
18806else
18807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18808/* end confdefs.h.  */
18809#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18810#ifdef LDAV_PRIVILEGED
18811Yowza Am I SETGID yet
18812#endif
18813_ACEOF
18814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18815  $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
18816  ac_cv_func_getloadavg_setgid=yes
18817else
18818  ac_cv_func_getloadavg_setgid=no
18819fi
18820rm -f conftest*
18821
18822fi
18823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
18824$as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
18825if test $ac_cv_func_getloadavg_setgid = yes; then
18826  NEED_SETGID=true
18827
18828$as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
18829
18830else
18831  NEED_SETGID=false
18832fi
18833
18834if test $ac_cv_func_getloadavg_setgid = yes; then
18835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
18836$as_echo_n "checking group of /dev/kmem... " >&6; }
18837if ${ac_cv_group_kmem+:} false; then :
18838  $as_echo_n "(cached) " >&6
18839else
18840   # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
18841  ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18842  # If we got an error (system does not support symlinks), try without -L.
18843  test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18844  ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
18845    | sed -ne 's/[	 ][	 ]*/ /g;
18846	       s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
18847	       / /s/.* //;p;'`
18848
18849fi
18850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
18851$as_echo "$ac_cv_group_kmem" >&6; }
18852  KMEM_GROUP=$ac_cv_group_kmem
18853fi
18854if test "x$ac_save_LIBS" = x; then
18855  GETLOADAVG_LIBS=$LIBS
18856else
18857  GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
18858fi
18859LIBS=$ac_save_LIBS
18860
18861
18862
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18864$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18865if ${ac_cv_c_bigendian+:} false; then :
18866  $as_echo_n "(cached) " >&6
18867else
18868  ac_cv_c_bigendian=unknown
18869    # See if we're dealing with a universal compiler.
18870    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871/* end confdefs.h.  */
18872#ifndef __APPLE_CC__
18873	       not a universal capable compiler
18874	     #endif
18875	     typedef int dummy;
18876
18877_ACEOF
18878if ac_fn_c_try_compile "$LINENO"; then :
18879
18880	# Check for potential -arch flags.  It is not universal unless
18881	# there are at least two -arch flags with different values.
18882	ac_arch=
18883	ac_prev=
18884	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18885	 if test -n "$ac_prev"; then
18886	   case $ac_word in
18887	     i?86 | x86_64 | ppc | ppc64)
18888	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18889		 ac_arch=$ac_word
18890	       else
18891		 ac_cv_c_bigendian=universal
18892		 break
18893	       fi
18894	       ;;
18895	   esac
18896	   ac_prev=
18897	 elif test "x$ac_word" = "x-arch"; then
18898	   ac_prev=arch
18899	 fi
18900       done
18901fi
18902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18903    if test $ac_cv_c_bigendian = unknown; then
18904      # See if sys/param.h defines the BYTE_ORDER macro.
18905      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18906/* end confdefs.h.  */
18907#include <sys/types.h>
18908	     #include <sys/param.h>
18909
18910int
18911main ()
18912{
18913#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18914		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18915		     && LITTLE_ENDIAN)
18916	      bogus endian macros
18917	     #endif
18918
18919  ;
18920  return 0;
18921}
18922_ACEOF
18923if ac_fn_c_try_compile "$LINENO"; then :
18924  # It does; now see whether it defined to BIG_ENDIAN or not.
18925	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926/* end confdefs.h.  */
18927#include <sys/types.h>
18928		#include <sys/param.h>
18929
18930int
18931main ()
18932{
18933#if BYTE_ORDER != BIG_ENDIAN
18934		 not big endian
18935		#endif
18936
18937  ;
18938  return 0;
18939}
18940_ACEOF
18941if ac_fn_c_try_compile "$LINENO"; then :
18942  ac_cv_c_bigendian=yes
18943else
18944  ac_cv_c_bigendian=no
18945fi
18946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18947fi
18948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18949    fi
18950    if test $ac_cv_c_bigendian = unknown; then
18951      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18952      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18953/* end confdefs.h.  */
18954#include <limits.h>
18955
18956int
18957main ()
18958{
18959#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18960	      bogus endian macros
18961	     #endif
18962
18963  ;
18964  return 0;
18965}
18966_ACEOF
18967if ac_fn_c_try_compile "$LINENO"; then :
18968  # It does; now see whether it defined to _BIG_ENDIAN or not.
18969	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18970/* end confdefs.h.  */
18971#include <limits.h>
18972
18973int
18974main ()
18975{
18976#ifndef _BIG_ENDIAN
18977		 not big endian
18978		#endif
18979
18980  ;
18981  return 0;
18982}
18983_ACEOF
18984if ac_fn_c_try_compile "$LINENO"; then :
18985  ac_cv_c_bigendian=yes
18986else
18987  ac_cv_c_bigendian=no
18988fi
18989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18990fi
18991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18992    fi
18993    if test $ac_cv_c_bigendian = unknown; then
18994      # Compile a test program.
18995      if test "$cross_compiling" = yes; then :
18996  # Try to guess by grepping values from an object file.
18997	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18998/* end confdefs.h.  */
18999short int ascii_mm[] =
19000		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19001		short int ascii_ii[] =
19002		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19003		int use_ascii (int i) {
19004		  return ascii_mm[i] + ascii_ii[i];
19005		}
19006		short int ebcdic_ii[] =
19007		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19008		short int ebcdic_mm[] =
19009		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19010		int use_ebcdic (int i) {
19011		  return ebcdic_mm[i] + ebcdic_ii[i];
19012		}
19013		extern int foo;
19014
19015int
19016main ()
19017{
19018return use_ascii (foo) == use_ebcdic (foo);
19019  ;
19020  return 0;
19021}
19022_ACEOF
19023if ac_fn_c_try_compile "$LINENO"; then :
19024  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
19025	      ac_cv_c_bigendian=yes
19026	    fi
19027	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19028	      if test "$ac_cv_c_bigendian" = unknown; then
19029		ac_cv_c_bigendian=no
19030	      else
19031		# finding both strings is unlikely to happen, but who knows?
19032		ac_cv_c_bigendian=unknown
19033	      fi
19034	    fi
19035fi
19036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19037else
19038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19039/* end confdefs.h.  */
19040$ac_includes_default
19041int
19042main ()
19043{
19044
19045	     /* Are we little or big endian?  From Harbison&Steele.  */
19046	     union
19047	     {
19048	       long int l;
19049	       char c[sizeof (long int)];
19050	     } u;
19051	     u.l = 1;
19052	     return u.c[sizeof (long int) - 1] == 1;
19053
19054  ;
19055  return 0;
19056}
19057_ACEOF
19058if ac_fn_c_try_run "$LINENO"; then :
19059  ac_cv_c_bigendian=no
19060else
19061  ac_cv_c_bigendian=yes
19062fi
19063rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19064  conftest.$ac_objext conftest.beam conftest.$ac_ext
19065fi
19066
19067    fi
19068fi
19069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
19070$as_echo "$ac_cv_c_bigendian" >&6; }
19071 case $ac_cv_c_bigendian in #(
19072   yes)
19073     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
19074;; #(
19075   no)
19076      ;; #(
19077   universal)
19078
19079$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
19080
19081     ;; #(
19082   *)
19083     as_fn_error $? "unknown endianness
19084 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
19085 esac
19086
19087for ac_header in endian.h
19088do :
19089  ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
19090if test "x$ac_cv_header_endian_h" = xyes; then :
19091  cat >>confdefs.h <<_ACEOF
19092#define HAVE_ENDIAN_H 1
19093_ACEOF
19094
19095fi
19096
19097done
19098
19099ac_fn_c_check_decl "$LINENO" "le32toh" "ac_cv_have_decl_le32toh" "#include <endian.h>
19100"
19101if test "x$ac_cv_have_decl_le32toh" = xyes; then :
19102  ac_have_decl=1
19103else
19104  ac_have_decl=0
19105fi
19106
19107cat >>confdefs.h <<_ACEOF
19108#define HAVE_DECL_LE32TOH $ac_have_decl
19109_ACEOF
19110
19111
19112ac_fn_c_check_decl "$LINENO" "closefrom" "ac_cv_have_decl_closefrom" "#include <unistd.h>
19113                                    #include <stdlib.h>
19114"
19115if test "x$ac_cv_have_decl_closefrom" = xyes; then :
19116  ac_have_decl=1
19117else
19118  ac_have_decl=0
19119fi
19120
19121cat >>confdefs.h <<_ACEOF
19122#define HAVE_DECL_CLOSEFROM $ac_have_decl
19123_ACEOF
19124
19125ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
19126if test "x$ac_cv_func_closefrom" = xyes; then :
19127  $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
19128
19129else
19130  case " $LIBOBJS " in
19131  *" closefrom.$ac_objext "* ) ;;
19132  *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
19133 ;;
19134esac
19135
19136fi
19137
19138
19139
19140for ac_header in sys/pstat.h
19141do :
19142  ac_fn_c_check_header_mongrel "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default"
19143if test "x$ac_cv_header_sys_pstat_h" = xyes; then :
19144  cat >>confdefs.h <<_ACEOF
19145#define HAVE_SYS_PSTAT_H 1
19146_ACEOF
19147
19148fi
19149
19150done
19151
19152for ac_func in pstat_getfile2
19153do :
19154  ac_fn_c_check_func "$LINENO" "pstat_getfile2" "ac_cv_func_pstat_getfile2"
19155if test "x$ac_cv_func_pstat_getfile2" = xyes; then :
19156  cat >>confdefs.h <<_ACEOF
19157#define HAVE_PSTAT_GETFILE2 1
19158_ACEOF
19159
19160fi
19161done
19162
19163
19164
19165  found=0
19166  if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then :
19167
19168    path=$PATH
19169
19170else
19171
19172    path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
19173
19174fi
19175  $as_echo_n "checking for chpasswd... "
19176  for i in $(echo $path | sed -e 's/:/ /g'); do
19177    if test -e $i/chpasswd && ls -ld $i/chpasswd | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then :
19178
19179      CHPASSWD=$i/chpasswd
19180      found=1
19181      break
19182
19183fi
19184  done
19185
19186  if test "$found" = "1"; then :
19187
19188    $as_echo "$CHPASSWD"
19189
19190else
19191
19192    $as_echo no
19193    CHPASSWD=
19194
19195fi
19196
19197if test "x$CHPASSWD" != "x"; then :
19198
19199$as_echo "#define HAVE_CHPASSWD 1" >>confdefs.h
19200
19201
19202cat >>confdefs.h <<_ACEOF
19203#define CHPASSWD "$CHPASSWD"
19204_ACEOF
19205
19206
19207fi
19208
19209
19210  found=0
19211  if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then :
19212
19213    path=$PATH
19214
19215else
19216
19217    path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
19218
19219fi
19220  $as_echo_n "checking for pwdadm... "
19221  for i in $(echo $path | sed -e 's/:/ /g'); do
19222    if test -e $i/pwdadm && ls -ld $i/pwdadm | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then :
19223
19224      PWDADM=$i/pwdadm
19225      found=1
19226      break
19227
19228fi
19229  done
19230
19231  if test "$found" = "1"; then :
19232
19233    $as_echo "$PWDADM"
19234
19235else
19236
19237    $as_echo no
19238    PWDADM=
19239
19240fi
19241
19242if test "x$PWDADM" != "x"; then :
19243
19244$as_echo "#define HAVE_PWDADM 1" >>confdefs.h
19245
19246
19247cat >>confdefs.h <<_ACEOF
19248#define PWDADM "$PWDADM"
19249_ACEOF
19250
19251
19252fi
19253
19254
19255  found=0
19256  if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then :
19257
19258    path=$PATH
19259
19260else
19261
19262    path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
19263
19264fi
19265  $as_echo_n "checking for useradd... "
19266  for i in $(echo $path | sed -e 's/:/ /g'); do
19267    if test -e $i/useradd && ls -ld $i/useradd | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then :
19268
19269      USERADD=$i/useradd
19270      found=1
19271      break
19272
19273fi
19274  done
19275
19276  if test "$found" = "1"; then :
19277
19278    $as_echo "$USERADD"
19279
19280else
19281
19282    $as_echo no
19283    USERADD=
19284
19285fi
19286
19287if test "x$USERADD" != "x"; then :
19288
19289$as_echo "#define HAVE_USERADD 1" >>confdefs.h
19290
19291
19292cat >>confdefs.h <<_ACEOF
19293#define USERADD "$USERADD"
19294_ACEOF
19295
19296
19297fi
19298
19299
19300  found=0
19301  if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then :
19302
19303    path=$PATH
19304
19305else
19306
19307    path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
19308
19309fi
19310  $as_echo_n "checking for usermod... "
19311  for i in $(echo $path | sed -e 's/:/ /g'); do
19312    if test -e $i/usermod && ls -ld $i/usermod | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then :
19313
19314      USERMOD=$i/usermod
19315      found=1
19316      break
19317
19318fi
19319  done
19320
19321  if test "$found" = "1"; then :
19322
19323    $as_echo "$USERMOD"
19324
19325else
19326
19327    $as_echo no
19328    USERMOD=
19329
19330fi
19331
19332if test "x$USERMOD" != "x"; then :
19333
19334$as_echo "#define HAVE_USERMOD 1" >>confdefs.h
19335
19336
19337cat >>confdefs.h <<_ACEOF
19338#define USERMOD "$USERMOD"
19339_ACEOF
19340
19341
19342fi
19343
19344
19345  found=0
19346  if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then :
19347
19348    path=$PATH
19349
19350else
19351
19352    path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
19353
19354fi
19355  $as_echo_n "checking for userdel... "
19356  for i in $(echo $path | sed -e 's/:/ /g'); do
19357    if test -e $i/userdel && ls -ld $i/userdel | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then :
19358
19359      USERDEL=$i/userdel
19360      found=1
19361      break
19362
19363fi
19364  done
19365
19366  if test "$found" = "1"; then :
19367
19368    $as_echo "$USERDEL"
19369
19370else
19371
19372    $as_echo no
19373    USERDEL=
19374
19375fi
19376
19377if test "x$USERDEL" != "x"; then :
19378
19379$as_echo "#define HAVE_USERDEL 1" >>confdefs.h
19380
19381
19382cat >>confdefs.h <<_ACEOF
19383#define USERDEL "$USERDEL"
19384_ACEOF
19385
19386
19387fi
19388
19389if test "x$USERADD" != x && \
19390       test "x$USERMOD" != x && test "x$USERDEL" != x; then :
19391  have_userprogs=yes
19392else
19393  have_userprogs=no
19394
19395fi
19396
19397
19398  found=0
19399  if test "x/usr/bin:$PATH" = "x"; then :
19400
19401    path=$PATH
19402
19403else
19404
19405    path=/usr/bin:$PATH
19406
19407fi
19408  $as_echo_n "checking for chpass... "
19409  for i in $(echo $path | sed -e 's/:/ /g'); do
19410    if test -e $i/chpass && ls -ld $i/chpass | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then :
19411
19412      CHPASS=$i/chpass
19413      found=1
19414      break
19415
19416fi
19417  done
19418
19419  if test "$found" = "1"; then :
19420
19421    $as_echo "$CHPASS"
19422
19423else
19424
19425    $as_echo no
19426    CHPASS=
19427
19428fi
19429
19430if test "x$CHPASS" != "x"; then :
19431
19432$as_echo "#define HAVE_CHPASS 1" >>confdefs.h
19433
19434
19435cat >>confdefs.h <<_ACEOF
19436#define CHPASS "$CHPASS"
19437_ACEOF
19438
19439
19440fi
19441
19442
19443  found=0
19444  if test "x/usr/sbin:$PATH" = "x"; then :
19445
19446    path=$PATH
19447
19448else
19449
19450    path=/usr/sbin:$PATH
19451
19452fi
19453  $as_echo_n "checking for pw... "
19454  for i in $(echo $path | sed -e 's/:/ /g'); do
19455    if test -e $i/pw && ls -ld $i/pw | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then :
19456
19457      PW=$i/pw
19458      found=1
19459      break
19460
19461fi
19462  done
19463
19464  if test "$found" = "1"; then :
19465
19466    $as_echo "$PW"
19467
19468else
19469
19470    $as_echo no
19471    PW=
19472
19473fi
19474
19475if test "x$PW" != "x"; then :
19476
19477$as_echo "#define HAVE_PW 1" >>confdefs.h
19478
19479
19480cat >>confdefs.h <<_ACEOF
19481#define PW "$PW"
19482_ACEOF
19483
19484
19485fi
19486
19487if test "x$CHPASS" != x && \
19488       test "x$PW" != x; then :
19489  have_userprogs=yes
19490else
19491  have_userprogs=no
19492
19493fi
19494
19495
19496# Check whether --with-pam was given.
19497if test "${with_pam+set}" = set; then :
19498  withval=$with_pam;
19499fi
19500
19501if test x$with_pam != xno; then :
19502
19503
19504
19505
19506  #
19507  # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
19508  #
19509  if test "x$with_pam" != xyes &&
19510     test "x$with_pam" != xcheck &&
19511     test "x$with_pam" != x
19512  then
19513    test -z "$PAM_PATH" && PAM_PATH="$with_pam"
19514    if test "x$with_pam" != x/usr &&
19515       test "x$with_pam" != x/
19516    then
19517      test -z "$PAM_CFLAGS" && PAM_CFLAGS=""
19518      test -z "$PAM_CPPFLAGS" && PAM_CPPFLAGS="-I$with_pam/include"
19519      test -z "$PAM_LDFLAGS" && PAM_LDFLAGS="-L$with_pam/lib"
19520    fi
19521  else
19522    PAM_PATH="default path"
19523  fi
19524
19525  #
19526  # Save old environment
19527  #
19528  save_CFLAGS="$CFLAGS"
19529  save_CPPFLAGS="$CPPFLAGS"
19530  save_LDFLAGS="$LDFLAGS"
19531  save_LIBS="$LIBS"
19532
19533  CFLAGS="$CFLAGS $PAM_CFLAGS"
19534  CPPFLAGS="$CPPFLAGS $PAM_CPPFLAGS"
19535  LDFLAGS="$LDFLAGS $PAM_LDFLAGS"
19536
19537  #
19538  # Run checks passed as argument
19539  #
19540
19541    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
19542$as_echo_n "checking for pam_start in -lpam... " >&6; }
19543if ${ac_cv_lib_pam_pam_start+:} false; then :
19544  $as_echo_n "(cached) " >&6
19545else
19546  ac_check_lib_save_LIBS=$LIBS
19547LIBS="-lpam  $LIBS"
19548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549/* end confdefs.h.  */
19550
19551/* Override any GCC internal prototype to avoid an error.
19552   Use char because int might match the return type of a GCC
19553   builtin and then its argument prototype would still apply.  */
19554#ifdef __cplusplus
19555extern "C"
19556#endif
19557char pam_start ();
19558int
19559main ()
19560{
19561return pam_start ();
19562  ;
19563  return 0;
19564}
19565_ACEOF
19566if ac_fn_c_try_link "$LINENO"; then :
19567  ac_cv_lib_pam_pam_start=yes
19568else
19569  ac_cv_lib_pam_pam_start=no
19570fi
19571rm -f core conftest.err conftest.$ac_objext \
19572    conftest$ac_exeext conftest.$ac_ext
19573LIBS=$ac_check_lib_save_LIBS
19574fi
19575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
19576$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
19577if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
19578  cat >>confdefs.h <<_ACEOF
19579#define HAVE_LIBPAM 1
19580_ACEOF
19581
19582  LIBS="-lpam $LIBS"
19583
19584fi
19585
19586    for ac_header in security/pam_appl.h
19587do :
19588  ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
19589if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
19590  cat >>confdefs.h <<_ACEOF
19591#define HAVE_SECURITY_PAM_APPL_H 1
19592_ACEOF
19593
19594fi
19595
19596done
19597
19598
19599
19600  #
19601  # Pick up any libraries added by tests
19602  #
19603  test -z "$PAM_LIBS" && PAM_LIBS="$LIBS"
19604
19605  #
19606  # libtool understands -R$path, but we are not using libtool in configure
19607  # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests
19608  #
19609  if test "x$with_pam" != xyes &&
19610     test "x$with_pam" != xcheck &&
19611     test "x$with_pam" != x/usr &&
19612     test "x$with_pam" != x/
19613  then
19614    PAM_LDFLAGS="$PAM_LDFLAGS -R$with_pam/lib"
19615  fi
19616
19617  #
19618  # Restore pristine environment
19619  #
19620  CFLAGS="$save_CFLAGS"
19621  CPPFLAGS="$save_CPPFLAGS"
19622  LDFLAGS="$save_LDFLAGS"
19623  LIBS="$save_LIBS"
19624
19625
19626
19627
19628
19629
19630
19631    case $target_os in #(
19632  *gnu*|*solaris*|*aix*|*hpux*|*hp-ux*) :
19633
19634              if test "x$ac_cv_lib_pam_pam_start" != "xyes"; then :
19635  as_fn_error $? "Cannot find PAM library" "$LINENO" 5
19636
19637fi
19638              if test "x$ac_cv_header_security_pam_appl_h" != "xyes"; then :
19639  as_fn_error $? "Cannot find PAM headers" "$LINENO" 5
19640
19641fi
19642   ;; #(
19643  *) :
19644     ;;
19645esac
19646  if test "x$ac_cv_lib_pam_pam_start" = "xyes" && \
19647         test "x$ac_cv_header_security_pam_appl_h" = "xyes"; then :
19648  have_pam=yes
19649else
19650  have_pam=no
19651
19652fi
19653  for ac_func in fgetpwent fgetgrent
19654do :
19655  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19656ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19657if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19658  cat >>confdefs.h <<_ACEOF
19659#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19660_ACEOF
19661
19662fi
19663done
19664
19665  if test "x$ac_cv_func_fgetpwent" = "xyes" && \
19666         test "x$ac_cv_func_fgetgrent" = "xyes"; then :
19667  have_fgetpwent_fgetgrent=yes
19668
19669$as_echo "#define HAVE_FGETPWENT_FGETGRENT 1" >>confdefs.h
19670
19671else
19672  have_fgetpwent_fgetgrent=no
19673
19674fi
19675
19676  case "$target_os" in #(
19677  freebsd*) :
19678
19679        if test "x$have_pam" = "xyes" && \
19680               test "x$have_userprogs" = "xyes"; then :
19681  users_promises_ok=yes
19682else
19683  users_promises_ok=no
19684fi
19685      ;; #(
19686  *) :
19687
19688        if test "x$have_pam" = "xyes" && \
19689               test "x$have_userprogs" = "xyes"
19690               test "x$ac_cv_func_fgetpwent" = "xyes" && \
19691               test "x$ac_cv_func_fgetgrent" = "xyes"; then :
19692  users_promises_ok=yes
19693else
19694  users_promises_ok=no
19695fi
19696      ;;
19697esac
19698
19699else
19700
19701  users_promises_ok=no
19702
19703fi
19704 if test "x$users_promises_ok" = "xyes"; then
19705  HAVE_USERS_PROMISE_DEPS_TRUE=
19706  HAVE_USERS_PROMISE_DEPS_FALSE='#'
19707else
19708  HAVE_USERS_PROMISE_DEPS_TRUE='#'
19709  HAVE_USERS_PROMISE_DEPS_FALSE=
19710fi
19711
19712
19713ac_fn_c_check_decl "$LINENO" "getnetgrent" "ac_cv_have_decl_getnetgrent" "#include <netdb.h>
19714"
19715if test "x$ac_cv_have_decl_getnetgrent" = xyes; then :
19716  ac_have_decl=1
19717else
19718  ac_have_decl=0
19719fi
19720
19721cat >>confdefs.h <<_ACEOF
19722#define HAVE_DECL_GETNETGRENT $ac_have_decl
19723_ACEOF
19724
19725for ac_func in getnetgrent
19726do :
19727  ac_fn_c_check_func "$LINENO" "getnetgrent" "ac_cv_func_getnetgrent"
19728if test "x$ac_cv_func_getnetgrent" = xyes; then :
19729  cat >>confdefs.h <<_ACEOF
19730#define HAVE_GETNETGRENT 1
19731_ACEOF
19732
19733fi
19734done
19735
19736
19737ac_fn_c_check_decl "$LINENO" "setnetgrent" "ac_cv_have_decl_setnetgrent" "#include <netdb.h>
19738"
19739if test "x$ac_cv_have_decl_setnetgrent" = xyes; then :
19740  ac_have_decl=1
19741else
19742  ac_have_decl=0
19743fi
19744
19745cat >>confdefs.h <<_ACEOF
19746#define HAVE_DECL_SETNETGRENT $ac_have_decl
19747_ACEOF
19748
19749for ac_func in setnetgrent
19750do :
19751  ac_fn_c_check_func "$LINENO" "setnetgrent" "ac_cv_func_setnetgrent"
19752if test "x$ac_cv_func_setnetgrent" = xyes; then :
19753  cat >>confdefs.h <<_ACEOF
19754#define HAVE_SETNETGRENT 1
19755_ACEOF
19756
19757fi
19758done
19759
19760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19761/* end confdefs.h.  */
19762#include <netdb.h>
19763int
19764main ()
19765{
19766extern int setnetgrent(const char *)
19767  ;
19768  return 0;
19769}
19770_ACEOF
19771if ac_fn_c_try_compile "$LINENO"; then :
19772
19773$as_echo "#define SETNETGRENT_RETURNS_INT 1" >>confdefs.h
19774
19775else
19776
19777$as_echo "#define SETNETGRENT_RETURNS_INT 0" >>confdefs.h
19778
19779fi
19780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19781
19782
19783ac_fn_c_check_decl "$LINENO" "endnetgrent" "ac_cv_have_decl_endnetgrent" "#include <netdb.h>
19784"
19785if test "x$ac_cv_have_decl_endnetgrent" = xyes; then :
19786  ac_have_decl=1
19787else
19788  ac_have_decl=0
19789fi
19790
19791cat >>confdefs.h <<_ACEOF
19792#define HAVE_DECL_ENDNETGRENT $ac_have_decl
19793_ACEOF
19794
19795for ac_func in endnetgrent
19796do :
19797  ac_fn_c_check_func "$LINENO" "endnetgrent" "ac_cv_func_endnetgrent"
19798if test "x$ac_cv_func_endnetgrent" = xyes; then :
19799  cat >>confdefs.h <<_ACEOF
19800#define HAVE_ENDNETGRENT 1
19801_ACEOF
19802
19803fi
19804done
19805
19806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19807/* end confdefs.h.  */
19808#include <netdb.h>
19809int
19810main ()
19811{
19812extern int endnetgrent(const char *)
19813  ;
19814  return 0;
19815}
19816_ACEOF
19817if ac_fn_c_try_compile "$LINENO"; then :
19818
19819$as_echo "#define ENDNETGRENT_RETURNS_INT 1" >>confdefs.h
19820
19821else
19822
19823$as_echo "#define ENDNETGRENT_RETURNS_INT 0" >>confdefs.h
19824
19825fi
19826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19827
19828
19829for ac_func in sendto
19830do :
19831  ac_fn_c_check_func "$LINENO" "sendto" "ac_cv_func_sendto"
19832if test "x$ac_cv_func_sendto" = xyes; then :
19833  cat >>confdefs.h <<_ACEOF
19834#define HAVE_SENDTO 1
19835_ACEOF
19836
19837fi
19838done
19839
19840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19841/* end confdefs.h.  */
19842#include <sys/types.h>
19843                                     #include <sys/socket.h>
19844int
19845main ()
19846{
19847extern ssize_t sendto(int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen)
19848  ;
19849  return 0;
19850}
19851_ACEOF
19852if ac_fn_c_try_compile "$LINENO"; then :
19853
19854$as_echo "#define SENDTO_RETURNS_SSIZE_T 1" >>confdefs.h
19855
19856else
19857
19858$as_echo "#define SENDTO_RETURNS_SSIZE_T 0" >>confdefs.h
19859
19860fi
19861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19862
19863
19864  ac_fn_c_check_func "$LINENO" "ctime" "ac_cv_func_ctime"
19865if test "x$ac_cv_func_ctime" = xyes; then :
19866
19867else
19868  as_fn_error $? "Unable to find function ctime" "$LINENO" 5
19869fi
19870
19871
19872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ctime is properly declared" >&5
19873$as_echo_n "checking whether ctime is properly declared... " >&6; }
19874if ${hw_cv_func_ctime_proper+:} false; then :
19875  $as_echo_n "(cached) " >&6
19876else
19877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19878/* end confdefs.h.  */
19879
19880int
19881main ()
19882{
19883#error ctime(3) may produce different results on different OSes. Let's have our POSIX-compliant implementation all the time
19884  ;
19885  return 0;
19886}
19887_ACEOF
19888if ac_fn_c_try_compile "$LINENO"; then :
19889  hw_cv_func_ctime_proper=yes
19890else
19891  hw_cv_func_ctime_proper=no
19892fi
19893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19894fi
19895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_ctime_proper" >&5
19896$as_echo "$hw_cv_func_ctime_proper" >&6; }
19897
19898
19899
19900  if test "$hw_cv_func_ctime_proper" = yes; then :
19901
19902$as_echo "#define HAVE_ctime_PROPER 1" >>confdefs.h
19903
19904else
19905  post_macros="$post_macros
19906#define ctime rpl_ctime"
19907fi
19908
19909
19910  if test "$hw_cv_func_ctime_proper" = "no"; then :
19911  case " $LIBOBJS " in
19912  *" rpl_ctime.$ac_objext "* ) ;;
19913  *) LIBOBJS="$LIBOBJS rpl_ctime.$ac_objext"
19914 ;;
19915esac
19916
19917
19918fi
19919
19920
19921
19922  ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
19923if test "x$ac_cv_func_mkdir" = xyes; then :
19924
19925else
19926  as_fn_error $? "Unable to find function mkdir" "$LINENO" 5
19927fi
19928
19929
19930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir is properly declared" >&5
19931$as_echo_n "checking whether mkdir is properly declared... " >&6; }
19932if ${hw_cv_func_mkdir_proper+:} false; then :
19933  $as_echo_n "(cached) " >&6
19934else
19935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19936/* end confdefs.h.  */
19937#include <sys/stat.h>
19938    #include <sys/types.h>
19939int
19940main ()
19941{
19942int mkdir(const char *pathname, mode_t mode);
19943  ;
19944  return 0;
19945}
19946_ACEOF
19947if ac_fn_c_try_compile "$LINENO"; then :
19948  hw_cv_func_mkdir_proper=yes
19949else
19950  hw_cv_func_mkdir_proper=no
19951fi
19952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19953fi
19954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_mkdir_proper" >&5
19955$as_echo "$hw_cv_func_mkdir_proper" >&6; }
19956
19957
19958
19959  if test "$hw_cv_func_mkdir_proper" = yes; then :
19960
19961$as_echo "#define HAVE_mkdir_PROPER 1" >>confdefs.h
19962
19963else
19964  post_macros="$post_macros
19965#define mkdir rpl_mkdir"
19966fi
19967
19968
19969
19970
19971  ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat"
19972if test "x$ac_cv_func_stat" = xyes; then :
19973
19974else
19975  as_fn_error $? "Unable to find function stat" "$LINENO" 5
19976fi
19977
19978
19979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat is properly declared" >&5
19980$as_echo_n "checking whether stat is properly declared... " >&6; }
19981if ${hw_cv_func_stat_proper+:} false; then :
19982  $as_echo_n "(cached) " >&6
19983else
19984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19985/* end confdefs.h.  */
19986#include <sys/types.h>
19987    #include <sys/stat.h>
19988int
19989main ()
19990{
19991#if defined(__MINGW32__)
19992    #error stat in Windows CRT ill-behaves
19993    #endif
19994  ;
19995  return 0;
19996}
19997_ACEOF
19998if ac_fn_c_try_compile "$LINENO"; then :
19999  hw_cv_func_stat_proper=yes
20000else
20001  hw_cv_func_stat_proper=no
20002fi
20003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004fi
20005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_stat_proper" >&5
20006$as_echo "$hw_cv_func_stat_proper" >&6; }
20007
20008
20009
20010  if test "$hw_cv_func_stat_proper" = yes; then :
20011
20012$as_echo "#define HAVE_stat_PROPER 1" >>confdefs.h
20013
20014else
20015  post_macros="$post_macros
20016"
20017fi
20018
20019
20020
20021
20022  ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
20023if test "x$ac_cv_func_rename" = xyes; then :
20024
20025else
20026  as_fn_error $? "Unable to find function rename" "$LINENO" 5
20027fi
20028
20029
20030  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename is properly declared" >&5
20031$as_echo_n "checking whether rename is properly declared... " >&6; }
20032if ${hw_cv_func_rename_proper+:} false; then :
20033  $as_echo_n "(cached) " >&6
20034else
20035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20036/* end confdefs.h.  */
20037
20038int
20039main ()
20040{
20041#if defined(__MINGW32__)
20042    #error rename in Windows CRT ill-behaves
20043    #endif
20044  ;
20045  return 0;
20046}
20047_ACEOF
20048if ac_fn_c_try_compile "$LINENO"; then :
20049  hw_cv_func_rename_proper=yes
20050else
20051  hw_cv_func_rename_proper=no
20052fi
20053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20054fi
20055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_rename_proper" >&5
20056$as_echo "$hw_cv_func_rename_proper" >&6; }
20057
20058
20059
20060  if test "$hw_cv_func_rename_proper" = yes; then :
20061
20062$as_echo "#define HAVE_rename_PROPER 1" >>confdefs.h
20063
20064else
20065  post_macros="$post_macros
20066#define rename rpl_rename"
20067fi
20068
20069
20070ac_fn_c_check_decl "$LINENO" "mkdtemp" "ac_cv_have_decl_mkdtemp" "$ac_includes_default"
20071if test "x$ac_cv_have_decl_mkdtemp" = xyes; then :
20072  ac_have_decl=1
20073else
20074  ac_have_decl=0
20075fi
20076
20077cat >>confdefs.h <<_ACEOF
20078#define HAVE_DECL_MKDTEMP $ac_have_decl
20079_ACEOF
20080
20081ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
20082if test "x$ac_cv_func_mkdtemp" = xyes; then :
20083  $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
20084
20085else
20086  case " $LIBOBJS " in
20087  *" mkdtemp.$ac_objext "* ) ;;
20088  *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext"
20089 ;;
20090esac
20091
20092fi
20093
20094
20095
20096ac_fn_c_check_decl "$LINENO" "strrstr" "ac_cv_have_decl_strrstr" "$ac_includes_default"
20097if test "x$ac_cv_have_decl_strrstr" = xyes; then :
20098  ac_have_decl=1
20099else
20100  ac_have_decl=0
20101fi
20102
20103cat >>confdefs.h <<_ACEOF
20104#define HAVE_DECL_STRRSTR $ac_have_decl
20105_ACEOF
20106
20107ac_fn_c_check_func "$LINENO" "strrstr" "ac_cv_func_strrstr"
20108if test "x$ac_cv_func_strrstr" = xyes; then :
20109  $as_echo "#define HAVE_STRRSTR 1" >>confdefs.h
20110
20111else
20112  case " $LIBOBJS " in
20113  *" strrstr.$ac_objext "* ) ;;
20114  *) LIBOBJS="$LIBOBJS strrstr.$ac_objext"
20115 ;;
20116esac
20117
20118fi
20119
20120
20121
20122ac_fn_c_check_decl "$LINENO" "stpncpy" "ac_cv_have_decl_stpncpy" "$ac_includes_default"
20123if test "x$ac_cv_have_decl_stpncpy" = xyes; then :
20124  ac_have_decl=1
20125else
20126  ac_have_decl=0
20127fi
20128
20129cat >>confdefs.h <<_ACEOF
20130#define HAVE_DECL_STPNCPY $ac_have_decl
20131_ACEOF
20132
20133ac_fn_c_check_func "$LINENO" "stpncpy" "ac_cv_func_stpncpy"
20134if test "x$ac_cv_func_stpncpy" = xyes; then :
20135  $as_echo "#define HAVE_STPNCPY 1" >>confdefs.h
20136
20137else
20138  case " $LIBOBJS " in
20139  *" stpncpy.$ac_objext "* ) ;;
20140  *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext"
20141 ;;
20142esac
20143
20144fi
20145
20146
20147
20148for ac_func in seteuid setegid setreuid setregid
20149do :
20150  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20151ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20152if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20153  cat >>confdefs.h <<_ACEOF
20154#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20155_ACEOF
20156
20157fi
20158done
20159
20160for ac_func in uname gethostname chflags
20161do :
20162  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20163ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20164if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20165  cat >>confdefs.h <<_ACEOF
20166#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20167_ACEOF
20168
20169fi
20170done
20171
20172for ac_func in mkfifo statfs statvfs door
20173do :
20174  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20175ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20176if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20177  cat >>confdefs.h <<_ACEOF
20178#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20179_ACEOF
20180
20181fi
20182done
20183
20184for ac_func in sysinfo setsid sysconf
20185do :
20186  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20187ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20188if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20189  cat >>confdefs.h <<_ACEOF
20190#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20191_ACEOF
20192
20193fi
20194done
20195
20196for ac_func in getzoneid getzonenamebyid
20197do :
20198  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20199ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20200if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20201  cat >>confdefs.h <<_ACEOF
20202#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20203_ACEOF
20204
20205fi
20206done
20207
20208for ac_func in fpathconf
20209do :
20210  ac_fn_c_check_func "$LINENO" "fpathconf" "ac_cv_func_fpathconf"
20211if test "x$ac_cv_func_fpathconf" = xyes; then :
20212  cat >>confdefs.h <<_ACEOF
20213#define HAVE_FPATHCONF 1
20214_ACEOF
20215
20216fi
20217done
20218
20219
20220ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
20221if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
20222
20223cat >>confdefs.h <<_ACEOF
20224#define HAVE_STRUCT_STAT_ST_MTIM 1
20225_ACEOF
20226
20227
20228fi
20229ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
20230if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
20231
20232cat >>confdefs.h <<_ACEOF
20233#define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
20234_ACEOF
20235
20236
20237fi
20238
20239ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
20240if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
20241
20242cat >>confdefs.h <<_ACEOF
20243#define HAVE_STRUCT_STAT_ST_BLOCKS 1
20244_ACEOF
20245
20246
20247fi
20248
20249
20250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRIuMAX/PRIdMAX macros" >&5
20251$as_echo_n "checking for PRIuMAX/PRIdMAX macros... " >&6; }
20252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20253/* end confdefs.h.  */
20254$ac_includes_default
20255  #include <inttypes.h>
20256  #if defined(PRIuMAX) && defined(PRIdMAX)
20257    primacros_found
20258  #endif
20259
20260_ACEOF
20261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20262  $EGREP "primacros_found" >/dev/null 2>&1; then :
20263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20264$as_echo "yes" >&6; }
20265else
20266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20267$as_echo "no" >&6; }
20268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unable to find out how to scan intmax_t/uintmax_t types" >&5
20269$as_echo "Unable to find out how to scan intmax_t/uintmax_t types" >&6; }
20270fi
20271rm -f conftest*
20272
20273
20274
20275  for ac_header in stdarg.h
20276do :
20277  ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
20278if test "x$ac_cv_header_stdarg_h" = xyes; then :
20279  cat >>confdefs.h <<_ACEOF
20280#define HAVE_STDARG_H 1
20281_ACEOF
20282
20283fi
20284
20285done
20286
20287
20288
20289
20290      for ac_header in inttypes.h locale.h stddef.h stdint.h
20291do :
20292  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20293ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20294if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20295  cat >>confdefs.h <<_ACEOF
20296#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20297_ACEOF
20298
20299fi
20300
20301done
20302
20303  ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
20304"
20305if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
20306
20307cat >>confdefs.h <<_ACEOF
20308#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
20309_ACEOF
20310
20311
20312fi
20313ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
20314"
20315if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
20316
20317cat >>confdefs.h <<_ACEOF
20318#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
20319_ACEOF
20320
20321
20322fi
20323
20324
20325  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
20326$as_echo_n "checking for long double... " >&6; }
20327if ${ac_cv_type_long_double+:} false; then :
20328  $as_echo_n "(cached) " >&6
20329else
20330  if test "$GCC" = yes; then
20331       ac_cv_type_long_double=yes
20332     else
20333       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20334/* end confdefs.h.  */
20335/* The Stardent Vistra knows sizeof (long double), but does
20336                 not support it.  */
20337              long double foo = 0.0L;
20338int
20339main ()
20340{
20341static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
20342              sizeof (double) <= sizeof (long double))];
20343test_array [0] = 0;
20344return test_array [0];
20345
20346  ;
20347  return 0;
20348}
20349_ACEOF
20350if ac_fn_c_try_compile "$LINENO"; then :
20351  ac_cv_type_long_double=yes
20352else
20353  ac_cv_type_long_double=no
20354fi
20355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20356     fi
20357fi
20358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
20359$as_echo "$ac_cv_type_long_double" >&6; }
20360  if test $ac_cv_type_long_double = yes; then
20361
20362$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
20363
20364  fi
20365
20366
20367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20368$as_echo_n "checking for long long int... " >&6; }
20369if ${ac_cv_type_long_long_int+:} false; then :
20370  $as_echo_n "(cached) " >&6
20371else
20372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20373/* end confdefs.h.  */
20374
20375  /* For now, do not test the preprocessor; as of 2007 there are too many
20376         implementations with broken preprocessors.  Perhaps this can
20377         be revisited in 2012.  In the meantime, code should not expect
20378         #if to work with literals wider than 32 bits.  */
20379      /* Test literals.  */
20380      long long int ll = 9223372036854775807ll;
20381      long long int nll = -9223372036854775807LL;
20382      unsigned long long int ull = 18446744073709551615ULL;
20383      /* Test constant expressions.   */
20384      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20385                     ? 1 : -1)];
20386      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20387                     ? 1 : -1)];
20388      int i = 63;
20389int
20390main ()
20391{
20392/* Test availability of runtime routines for shift and division.  */
20393      long long int llmax = 9223372036854775807ll;
20394      unsigned long long int ullmax = 18446744073709551615ull;
20395      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20396              | (llmax / ll) | (llmax % ll)
20397              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20398              | (ullmax / ull) | (ullmax % ull));
20399  ;
20400  return 0;
20401}
20402
20403_ACEOF
20404if ac_fn_c_try_link "$LINENO"; then :
20405                          if test "$cross_compiling" = yes; then :
20406  ac_cv_type_long_long_int=yes
20407else
20408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20409/* end confdefs.h.  */
20410#include <limits.h>
20411               #ifndef LLONG_MAX
20412               # define HALF \
20413                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20414               # define LLONG_MAX (HALF - 1 + HALF)
20415               #endif
20416int
20417main ()
20418{
20419long long int n = 1;
20420               int i;
20421               for (i = 0; ; i++)
20422                 {
20423                   long long int m = n << i;
20424                   if (m >> i != n)
20425                     return 1;
20426                   if (LLONG_MAX / 2 < m)
20427                     break;
20428                 }
20429               return 0;
20430  ;
20431  return 0;
20432}
20433_ACEOF
20434if ac_fn_c_try_run "$LINENO"; then :
20435  ac_cv_type_long_long_int=yes
20436else
20437  ac_cv_type_long_long_int=no
20438fi
20439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20440  conftest.$ac_objext conftest.beam conftest.$ac_ext
20441fi
20442
20443else
20444  ac_cv_type_long_long_int=no
20445fi
20446rm -f core conftest.err conftest.$ac_objext \
20447    conftest$ac_exeext conftest.$ac_ext
20448fi
20449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
20450$as_echo "$ac_cv_type_long_long_int" >&6; }
20451  if test $ac_cv_type_long_long_int = yes; then
20452
20453$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20454
20455  fi
20456
20457
20458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20459$as_echo_n "checking for unsigned long long int... " >&6; }
20460if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20461  $as_echo_n "(cached) " >&6
20462else
20463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20464/* end confdefs.h.  */
20465
20466  /* For now, do not test the preprocessor; as of 2007 there are too many
20467         implementations with broken preprocessors.  Perhaps this can
20468         be revisited in 2012.  In the meantime, code should not expect
20469         #if to work with literals wider than 32 bits.  */
20470      /* Test literals.  */
20471      long long int ll = 9223372036854775807ll;
20472      long long int nll = -9223372036854775807LL;
20473      unsigned long long int ull = 18446744073709551615ULL;
20474      /* Test constant expressions.   */
20475      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20476                     ? 1 : -1)];
20477      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20478                     ? 1 : -1)];
20479      int i = 63;
20480int
20481main ()
20482{
20483/* Test availability of runtime routines for shift and division.  */
20484      long long int llmax = 9223372036854775807ll;
20485      unsigned long long int ullmax = 18446744073709551615ull;
20486      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20487              | (llmax / ll) | (llmax % ll)
20488              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20489              | (ullmax / ull) | (ullmax % ull));
20490  ;
20491  return 0;
20492}
20493
20494_ACEOF
20495if ac_fn_c_try_link "$LINENO"; then :
20496  ac_cv_type_unsigned_long_long_int=yes
20497else
20498  ac_cv_type_unsigned_long_long_int=no
20499fi
20500rm -f core conftest.err conftest.$ac_objext \
20501    conftest$ac_exeext conftest.$ac_ext
20502fi
20503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20504$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20505  if test $ac_cv_type_unsigned_long_long_int = yes; then
20506
20507$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20508
20509  fi
20510
20511  ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20512if test "x$ac_cv_type_size_t" = xyes; then :
20513
20514else
20515
20516cat >>confdefs.h <<_ACEOF
20517#define size_t unsigned int
20518_ACEOF
20519
20520fi
20521
20522
20523
20524  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
20525if test "x$ac_cv_type_intmax_t" = xyes; then :
20526
20527$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20528
20529else
20530  test $ac_cv_type_long_long_int = yes \
20531       && ac_type='long long int' \
20532       || ac_type='long int'
20533
20534cat >>confdefs.h <<_ACEOF
20535#define intmax_t $ac_type
20536_ACEOF
20537
20538fi
20539
20540
20541
20542
20543  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
20544if test "x$ac_cv_type_uintmax_t" = xyes; then :
20545
20546$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20547
20548else
20549  test $ac_cv_type_unsigned_long_long_int = yes \
20550       && ac_type='unsigned long long int' \
20551       || ac_type='unsigned long int'
20552
20553cat >>confdefs.h <<_ACEOF
20554#define uintmax_t $ac_type
20555_ACEOF
20556
20557fi
20558
20559
20560
20561  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20562if test "x$ac_cv_type_uintptr_t" = xyes; then :
20563
20564$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
20565
20566else
20567  for ac_type in 'unsigned int' 'unsigned long int' \
20568        'unsigned long long int'; do
20569       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20570/* end confdefs.h.  */
20571$ac_includes_default
20572int
20573main ()
20574{
20575static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
20576test_array [0] = 0;
20577return test_array [0];
20578
20579  ;
20580  return 0;
20581}
20582_ACEOF
20583if ac_fn_c_try_compile "$LINENO"; then :
20584
20585cat >>confdefs.h <<_ACEOF
20586#define uintptr_t $ac_type
20587_ACEOF
20588
20589          ac_type=
20590fi
20591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20592       test -z "$ac_type" && break
20593     done
20594fi
20595
20596
20597  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20598if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20599
20600cat >>confdefs.h <<_ACEOF
20601#define HAVE_PTRDIFF_T 1
20602_ACEOF
20603
20604
20605fi
20606
20607  for ac_func in localeconv
20608do :
20609  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
20610if test "x$ac_cv_func_localeconv" = xyes; then :
20611  cat >>confdefs.h <<_ACEOF
20612#define HAVE_LOCALECONV 1
20613_ACEOF
20614
20615fi
20616done
20617
20618
20619  ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
20620if test "x$ac_cv_func_vsnprintf" = xyes; then :
20621  hw_cv_func_vsnprintf=yes
20622else
20623  hw_cv_func_vsnprintf=no
20624fi
20625
20626  if test "$hw_cv_func_vsnprintf" = yes; then :
20627  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
20628$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
20629if ${hw_cv_func_vsnprintf_c99+:} false; then :
20630  $as_echo_n "(cached) " >&6
20631else
20632  if test "$cross_compiling" = yes; then :
20633  hw_cv_func_vsnprintf_c99=no
20634else
20635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20636/* end confdefs.h.  */
20637#if HAVE_STDARG_H
20638          #include <stdarg.h>
20639          #endif
20640          #include <stdio.h>
20641          static int testprintf(char *buf, size_t size, const char *format, ...)
20642          {
20643            int result;
20644            va_list ap;
20645            va_start(ap, format);
20646            result = vsnprintf(buf, size, format, ap);
20647            va_end(ap);
20648            return result;
20649          }
20650int
20651main ()
20652{
20653char buf[43];
20654          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20655              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20656              buf[0] != 'T' || buf[3] != '\0' ||
20657	      testprintf(NULL, 0, "") != 0 ||   /* POSSIBLE SEGFAULT ON NON-C99 LIBCs!!! */
20658	      testprintf(NULL, 0, "Some actual %18s formatting.\nblah %d.\n", "42", 1) != 51)
20659            return 1;
20660  ;
20661  return 0;
20662}
20663_ACEOF
20664if ac_fn_c_try_run "$LINENO"; then :
20665  hw_cv_func_vsnprintf_c99=yes
20666else
20667  hw_cv_func_vsnprintf_c99=no
20668fi
20669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20670  conftest.$ac_objext conftest.beam conftest.$ac_ext
20671fi
20672
20673fi
20674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
20675$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
20676else
20677  hw_cv_func_snprintf_c99=no
20678fi
20679  if test "$hw_cv_func_vsnprintf_c99" = yes; then :
20680
20681$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
20682
20683else
20684
20685
20686$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
20687
20688
20689$as_echo "#define vprintf rpl_vprintf" >>confdefs.h
20690
20691
20692$as_echo "#define vfprintf rpl_vfprintf" >>confdefs.h
20693
20694
20695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20696$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20697if ${ac_cv_c_const+:} false; then :
20698  $as_echo_n "(cached) " >&6
20699else
20700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20701/* end confdefs.h.  */
20702
20703int
20704main ()
20705{
20706
20707#ifndef __cplusplus
20708  /* Ultrix mips cc rejects this sort of thing.  */
20709  typedef int charset[2];
20710  const charset cs = { 0, 0 };
20711  /* SunOS 4.1.1 cc rejects this.  */
20712  char const *const *pcpcc;
20713  char **ppc;
20714  /* NEC SVR4.0.2 mips cc rejects this.  */
20715  struct point {int x, y;};
20716  static struct point const zero = {0,0};
20717  /* AIX XL C 1.02.0.0 rejects this.
20718     It does not let you subtract one const X* pointer from another in
20719     an arm of an if-expression whose if-part is not a constant
20720     expression */
20721  const char *g = "string";
20722  pcpcc = &g + (g ? g-g : 0);
20723  /* HPUX 7.0 cc rejects these. */
20724  ++pcpcc;
20725  ppc = (char**) pcpcc;
20726  pcpcc = (char const *const *) ppc;
20727  { /* SCO 3.2v4 cc rejects this sort of thing.  */
20728    char tx;
20729    char *t = &tx;
20730    char const *s = 0 ? (char *) 0 : (char const *) 0;
20731
20732    *t++ = 0;
20733    if (s) return 0;
20734  }
20735  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20736    int x[] = {25, 17};
20737    const int *foo = &x[0];
20738    ++foo;
20739  }
20740  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20741    typedef const int *iptr;
20742    iptr p = 0;
20743    ++p;
20744  }
20745  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20746       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20747    struct s { int j; const int *ap[3]; } bx;
20748    struct s *b = &bx; b->j = 5;
20749  }
20750  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20751    const int foo = 10;
20752    if (!foo) return 0;
20753  }
20754  return !cs[0] && !zero.x;
20755#endif
20756
20757  ;
20758  return 0;
20759}
20760_ACEOF
20761if ac_fn_c_try_compile "$LINENO"; then :
20762  ac_cv_c_const=yes
20763else
20764  ac_cv_c_const=no
20765fi
20766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20767fi
20768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20769$as_echo "$ac_cv_c_const" >&6; }
20770if test $ac_cv_c_const = no; then
20771
20772$as_echo "#define const /**/" >>confdefs.h
20773
20774fi
20775
20776
20777  for ac_header in stdarg.h
20778do :
20779  ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
20780if test "x$ac_cv_header_stdarg_h" = xyes; then :
20781  cat >>confdefs.h <<_ACEOF
20782#define HAVE_STDARG_H 1
20783_ACEOF
20784
20785fi
20786
20787done
20788
20789
20790  case " $LIBOBJS " in
20791  *" snprintf.$ac_objext "* ) ;;
20792  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20793 ;;
20794esac
20795
20796
20797
20798fi
20799
20800
20801    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20802if test "x$ac_cv_func_snprintf" = xyes; then :
20803  hw_cv_func_snprintf=yes
20804else
20805  hw_cv_func_snprintf=no
20806fi
20807
20808  if test "$hw_cv_func_snprintf" = yes; then :
20809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
20810$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
20811if ${hw_cv_func_snprintf_c99+:} false; then :
20812  $as_echo_n "(cached) " >&6
20813else
20814  if test "$cross_compiling" = yes; then :
20815  hw_cv_func_snprintf_c99=no
20816else
20817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20818/* end confdefs.h.  */
20819#include <stdio.h>
20820int
20821main ()
20822{
20823char buf[43];
20824          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20825              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20826              buf[0] != 'T' || buf[3] != '\0' ||
20827	      snprintf(NULL, 0, "") != 0 ||     /* POSSIBLE SEGFAULT ON NON-C99 LIBCs!!! */
20828	      snprintf(NULL, 0, "Some actual %18s formatting.\nblah %d.\n", "42", 1) != 51)
20829            return 1;
20830  ;
20831  return 0;
20832}
20833_ACEOF
20834if ac_fn_c_try_run "$LINENO"; then :
20835  hw_cv_func_snprintf_c99=yes
20836else
20837  hw_cv_func_snprintf_c99=no
20838fi
20839rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20840  conftest.$ac_objext conftest.beam conftest.$ac_ext
20841fi
20842
20843fi
20844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
20845$as_echo "$hw_cv_func_snprintf_c99" >&6; }
20846else
20847  hw_cv_func_snprintf_c99=no
20848fi
20849  if test "$hw_cv_func_snprintf_c99" = yes; then :
20850
20851$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20852
20853else
20854
20855
20856$as_echo "#define snprintf rpl_snprintf" >>confdefs.h
20857
20858
20859$as_echo "#define printf rpl_printf" >>confdefs.h
20860
20861
20862$as_echo "#define fprintf rpl_fprintf" >>confdefs.h
20863
20864
20865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20866$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20867if ${ac_cv_c_const+:} false; then :
20868  $as_echo_n "(cached) " >&6
20869else
20870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20871/* end confdefs.h.  */
20872
20873int
20874main ()
20875{
20876
20877#ifndef __cplusplus
20878  /* Ultrix mips cc rejects this sort of thing.  */
20879  typedef int charset[2];
20880  const charset cs = { 0, 0 };
20881  /* SunOS 4.1.1 cc rejects this.  */
20882  char const *const *pcpcc;
20883  char **ppc;
20884  /* NEC SVR4.0.2 mips cc rejects this.  */
20885  struct point {int x, y;};
20886  static struct point const zero = {0,0};
20887  /* AIX XL C 1.02.0.0 rejects this.
20888     It does not let you subtract one const X* pointer from another in
20889     an arm of an if-expression whose if-part is not a constant
20890     expression */
20891  const char *g = "string";
20892  pcpcc = &g + (g ? g-g : 0);
20893  /* HPUX 7.0 cc rejects these. */
20894  ++pcpcc;
20895  ppc = (char**) pcpcc;
20896  pcpcc = (char const *const *) ppc;
20897  { /* SCO 3.2v4 cc rejects this sort of thing.  */
20898    char tx;
20899    char *t = &tx;
20900    char const *s = 0 ? (char *) 0 : (char const *) 0;
20901
20902    *t++ = 0;
20903    if (s) return 0;
20904  }
20905  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20906    int x[] = {25, 17};
20907    const int *foo = &x[0];
20908    ++foo;
20909  }
20910  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20911    typedef const int *iptr;
20912    iptr p = 0;
20913    ++p;
20914  }
20915  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20916       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20917    struct s { int j; const int *ap[3]; } bx;
20918    struct s *b = &bx; b->j = 5;
20919  }
20920  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20921    const int foo = 10;
20922    if (!foo) return 0;
20923  }
20924  return !cs[0] && !zero.x;
20925#endif
20926
20927  ;
20928  return 0;
20929}
20930_ACEOF
20931if ac_fn_c_try_compile "$LINENO"; then :
20932  ac_cv_c_const=yes
20933else
20934  ac_cv_c_const=no
20935fi
20936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20937fi
20938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20939$as_echo "$ac_cv_c_const" >&6; }
20940if test $ac_cv_c_const = no; then
20941
20942$as_echo "#define const /**/" >>confdefs.h
20943
20944fi
20945
20946
20947  for ac_header in stdarg.h
20948do :
20949  ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
20950if test "x$ac_cv_header_stdarg_h" = xyes; then :
20951  cat >>confdefs.h <<_ACEOF
20952#define HAVE_STDARG_H 1
20953_ACEOF
20954
20955fi
20956
20957done
20958
20959
20960  case " $LIBOBJS " in
20961  *" snprintf.$ac_objext "* ) ;;
20962  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20963 ;;
20964esac
20965
20966
20967
20968fi
20969
20970
20971  for ac_header in varargs.h
20972do :
20973  ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
20974if test "x$ac_cv_header_varargs_h" = xyes; then :
20975  cat >>confdefs.h <<_ACEOF
20976#define HAVE_VARARGS_H 1
20977_ACEOF
20978
20979fi
20980
20981done
20982
20983
20984
20985    # Don't even bother checking for vasprintf if snprintf was standards
20986  # incompliant, this one is going to be too.
20987  if test "$hw_cv_func_snprintf_c99" = yes; then :
20988  for ac_func in vasprintf
20989do :
20990  ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
20991if test "x$ac_cv_func_vasprintf" = xyes; then :
20992  cat >>confdefs.h <<_ACEOF
20993#define HAVE_VASPRINTF 1
20994_ACEOF
20995 hw_cv_func_vasprintf=yes
20996else
20997  hw_cv_func_vasprintf=no
20998fi
20999done
21000
21001
21002else
21003  hw_cv_func_vasprintf=no
21004fi
21005  if test "$hw_cv_func_vasprintf" = no; then :
21006
21007$as_echo "#define vasprintf rpl_vasprintf" >>confdefs.h
21008
21009    for ac_header in stdlib.h
21010do :
21011  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
21012if test "x$ac_cv_header_stdlib_h" = xyes; then :
21013  cat >>confdefs.h <<_ACEOF
21014#define HAVE_STDLIB_H 1
21015_ACEOF
21016
21017fi
21018
21019done
21020
21021
21022      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
21023$as_echo_n "checking for va_copy... " >&6; }
21024if ${hw_cv_func_va_copy+:} false; then :
21025  $as_echo_n "(cached) " >&6
21026else
21027  if test "$cross_compiling" = yes; then :
21028  hw_cv_func_va_copy=no
21029else
21030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21031/* end confdefs.h.  */
21032#if HAVE_STDARG_H
21033        #include <stdarg.h>
21034        #elif HAVE_VARARGS_H
21035        #include <varargs.h>
21036        #endif
21037int
21038main ()
21039{
21040va_list ap, aq; va_copy(aq, ap);
21041  ;
21042  return 0;
21043}
21044_ACEOF
21045if ac_fn_c_try_run "$LINENO"; then :
21046  hw_cv_func_va_copy=yes
21047else
21048  hw_cv_func_va_copy=no
21049fi
21050rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21051  conftest.$ac_objext conftest.beam conftest.$ac_ext
21052fi
21053
21054fi
21055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_va_copy" >&5
21056$as_echo "$hw_cv_func_va_copy" >&6; }
21057  if test "$hw_cv_func_va_copy" = yes; then :
21058
21059$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
21060
21061fi
21062
21063    if test "$hw_cv_func_va_copy" = no; then :
21064
21065      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
21066$as_echo_n "checking for __va_copy... " >&6; }
21067if ${hw_cv_func___va_copy+:} false; then :
21068  $as_echo_n "(cached) " >&6
21069else
21070  if test "$cross_compiling" = yes; then :
21071  hw_cv_func___va_copy=no
21072else
21073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21074/* end confdefs.h.  */
21075#if HAVE_STDARG_H
21076        #include <stdarg.h>
21077        #elif HAVE_VARARGS_H
21078        #include <varargs.h>
21079        #endif
21080int
21081main ()
21082{
21083va_list ap, aq; __va_copy(aq, ap);
21084  ;
21085  return 0;
21086}
21087_ACEOF
21088if ac_fn_c_try_run "$LINENO"; then :
21089  hw_cv_func___va_copy=yes
21090else
21091  hw_cv_func___va_copy=no
21092fi
21093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21094  conftest.$ac_objext conftest.beam conftest.$ac_ext
21095fi
21096
21097fi
21098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func___va_copy" >&5
21099$as_echo "$hw_cv_func___va_copy" >&6; }
21100  if test "$hw_cv_func___va_copy" = yes; then :
21101
21102$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
21103
21104fi
21105
21106fi
21107
21108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21109$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21110if ${ac_cv_c_const+:} false; then :
21111  $as_echo_n "(cached) " >&6
21112else
21113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114/* end confdefs.h.  */
21115
21116int
21117main ()
21118{
21119
21120#ifndef __cplusplus
21121  /* Ultrix mips cc rejects this sort of thing.  */
21122  typedef int charset[2];
21123  const charset cs = { 0, 0 };
21124  /* SunOS 4.1.1 cc rejects this.  */
21125  char const *const *pcpcc;
21126  char **ppc;
21127  /* NEC SVR4.0.2 mips cc rejects this.  */
21128  struct point {int x, y;};
21129  static struct point const zero = {0,0};
21130  /* AIX XL C 1.02.0.0 rejects this.
21131     It does not let you subtract one const X* pointer from another in
21132     an arm of an if-expression whose if-part is not a constant
21133     expression */
21134  const char *g = "string";
21135  pcpcc = &g + (g ? g-g : 0);
21136  /* HPUX 7.0 cc rejects these. */
21137  ++pcpcc;
21138  ppc = (char**) pcpcc;
21139  pcpcc = (char const *const *) ppc;
21140  { /* SCO 3.2v4 cc rejects this sort of thing.  */
21141    char tx;
21142    char *t = &tx;
21143    char const *s = 0 ? (char *) 0 : (char const *) 0;
21144
21145    *t++ = 0;
21146    if (s) return 0;
21147  }
21148  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21149    int x[] = {25, 17};
21150    const int *foo = &x[0];
21151    ++foo;
21152  }
21153  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21154    typedef const int *iptr;
21155    iptr p = 0;
21156    ++p;
21157  }
21158  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
21159       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21160    struct s { int j; const int *ap[3]; } bx;
21161    struct s *b = &bx; b->j = 5;
21162  }
21163  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21164    const int foo = 10;
21165    if (!foo) return 0;
21166  }
21167  return !cs[0] && !zero.x;
21168#endif
21169
21170  ;
21171  return 0;
21172}
21173_ACEOF
21174if ac_fn_c_try_compile "$LINENO"; then :
21175  ac_cv_c_const=yes
21176else
21177  ac_cv_c_const=no
21178fi
21179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21180fi
21181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
21182$as_echo "$ac_cv_c_const" >&6; }
21183if test $ac_cv_c_const = no; then
21184
21185$as_echo "#define const /**/" >>confdefs.h
21186
21187fi
21188
21189
21190  for ac_header in stdarg.h
21191do :
21192  ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
21193if test "x$ac_cv_header_stdarg_h" = xyes; then :
21194  cat >>confdefs.h <<_ACEOF
21195#define HAVE_STDARG_H 1
21196_ACEOF
21197
21198fi
21199
21200done
21201
21202
21203  case " $LIBOBJS " in
21204  *" snprintf.$ac_objext "* ) ;;
21205  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21206 ;;
21207esac
21208
21209
21210fi
21211
21212
21213    # Don't even bother checking for asprintf if snprintf was standards
21214  # incompliant, this one is going to be too.
21215  if test "$hw_cv_func_snprintf_c99" = yes; then :
21216  for ac_func in asprintf
21217do :
21218  ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
21219if test "x$ac_cv_func_asprintf" = xyes; then :
21220  cat >>confdefs.h <<_ACEOF
21221#define HAVE_ASPRINTF 1
21222_ACEOF
21223 hw_cv_func_asprintf=yes
21224else
21225  hw_cv_func_asprintf=no
21226fi
21227done
21228
21229
21230else
21231  hw_cv_func_asprintf=no
21232fi
21233  if test "$hw_cv_func_asprintf" = no; then :
21234
21235$as_echo "#define asprintf rpl_asprintf" >>confdefs.h
21236
21237
21238  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21239$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21240if ${ac_cv_c_const+:} false; then :
21241  $as_echo_n "(cached) " >&6
21242else
21243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21244/* end confdefs.h.  */
21245
21246int
21247main ()
21248{
21249
21250#ifndef __cplusplus
21251  /* Ultrix mips cc rejects this sort of thing.  */
21252  typedef int charset[2];
21253  const charset cs = { 0, 0 };
21254  /* SunOS 4.1.1 cc rejects this.  */
21255  char const *const *pcpcc;
21256  char **ppc;
21257  /* NEC SVR4.0.2 mips cc rejects this.  */
21258  struct point {int x, y;};
21259  static struct point const zero = {0,0};
21260  /* AIX XL C 1.02.0.0 rejects this.
21261     It does not let you subtract one const X* pointer from another in
21262     an arm of an if-expression whose if-part is not a constant
21263     expression */
21264  const char *g = "string";
21265  pcpcc = &g + (g ? g-g : 0);
21266  /* HPUX 7.0 cc rejects these. */
21267  ++pcpcc;
21268  ppc = (char**) pcpcc;
21269  pcpcc = (char const *const *) ppc;
21270  { /* SCO 3.2v4 cc rejects this sort of thing.  */
21271    char tx;
21272    char *t = &tx;
21273    char const *s = 0 ? (char *) 0 : (char const *) 0;
21274
21275    *t++ = 0;
21276    if (s) return 0;
21277  }
21278  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21279    int x[] = {25, 17};
21280    const int *foo = &x[0];
21281    ++foo;
21282  }
21283  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21284    typedef const int *iptr;
21285    iptr p = 0;
21286    ++p;
21287  }
21288  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
21289       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21290    struct s { int j; const int *ap[3]; } bx;
21291    struct s *b = &bx; b->j = 5;
21292  }
21293  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21294    const int foo = 10;
21295    if (!foo) return 0;
21296  }
21297  return !cs[0] && !zero.x;
21298#endif
21299
21300  ;
21301  return 0;
21302}
21303_ACEOF
21304if ac_fn_c_try_compile "$LINENO"; then :
21305  ac_cv_c_const=yes
21306else
21307  ac_cv_c_const=no
21308fi
21309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21310fi
21311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
21312$as_echo "$ac_cv_c_const" >&6; }
21313if test $ac_cv_c_const = no; then
21314
21315$as_echo "#define const /**/" >>confdefs.h
21316
21317fi
21318
21319
21320  for ac_header in stdarg.h
21321do :
21322  ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
21323if test "x$ac_cv_header_stdarg_h" = xyes; then :
21324  cat >>confdefs.h <<_ACEOF
21325#define HAVE_STDARG_H 1
21326_ACEOF
21327
21328fi
21329
21330done
21331
21332
21333  case " $LIBOBJS " in
21334  *" snprintf.$ac_objext "* ) ;;
21335  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21336 ;;
21337esac
21338
21339
21340fi
21341
21342
21343
21344ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "$ac_includes_default
21345#ifdef HAVE_DIRENT_H
21346# include <dirent.h>
21347#endif
21348
21349"
21350if test "x$ac_cv_have_decl_dirfd" = xyes; then :
21351  ac_have_decl=1
21352else
21353  ac_have_decl=0
21354fi
21355
21356cat >>confdefs.h <<_ACEOF
21357#define HAVE_DECL_DIRFD $ac_have_decl
21358_ACEOF
21359
21360
21361for ac_func in dirfd
21362do :
21363  ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
21364if test "x$ac_cv_func_dirfd" = xyes; then :
21365  cat >>confdefs.h <<_ACEOF
21366#define HAVE_DIRFD 1
21367_ACEOF
21368
21369else
21370
21371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd macro" >&5
21372$as_echo_n "checking for dirfd macro... " >&6; }
21373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21374/* end confdefs.h.  */
21375$ac_includes_default
21376    #ifdef HAVE_DIRENT_H
21377    # include <dirent.h>
21378    #endif
21379    #ifdef dirfd
21380      dirfd_found
21381    #endif
21382
21383_ACEOF
21384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21385  $EGREP "dirfd_found" >/dev/null 2>&1; then :
21386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21387$as_echo "yes" >&6; }
21388  DIRFD_MACRO_FOUND=1
21389else
21390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21391$as_echo "no" >&6; }
21392fi
21393rm -f conftest*
21394
21395  if test x$DIRFD_MACRO_FOUND = x; then
21396    case " $LIBOBJS " in
21397  *" dirfd.$ac_objext "* ) ;;
21398  *) LIBOBJS="$LIBOBJS dirfd.$ac_objext"
21399 ;;
21400esac
21401
21402  fi
21403fi
21404done
21405
21406
21407for ac_func in jail_get
21408do :
21409  ac_fn_c_check_func "$LINENO" "jail_get" "ac_cv_func_jail_get"
21410if test "x$ac_cv_func_jail_get" = xyes; then :
21411  cat >>confdefs.h <<_ACEOF
21412#define HAVE_JAIL_GET 1
21413_ACEOF
21414
21415fi
21416done
21417
21418
21419
21420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
21421$as_echo_n "checking for library containing setsockopt... " >&6; }
21422if ${ac_cv_search_setsockopt+:} false; then :
21423  $as_echo_n "(cached) " >&6
21424else
21425  ac_func_search_save_LIBS=$LIBS
21426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21427/* end confdefs.h.  */
21428
21429/* Override any GCC internal prototype to avoid an error.
21430   Use char because int might match the return type of a GCC
21431   builtin and then its argument prototype would still apply.  */
21432#ifdef __cplusplus
21433extern "C"
21434#endif
21435char setsockopt ();
21436int
21437main ()
21438{
21439return setsockopt ();
21440  ;
21441  return 0;
21442}
21443_ACEOF
21444for ac_lib in '' socket; do
21445  if test -z "$ac_lib"; then
21446    ac_res="none required"
21447  else
21448    ac_res=-l$ac_lib
21449    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21450  fi
21451  if ac_fn_c_try_link "$LINENO"; then :
21452  ac_cv_search_setsockopt=$ac_res
21453fi
21454rm -f core conftest.err conftest.$ac_objext \
21455    conftest$ac_exeext
21456  if ${ac_cv_search_setsockopt+:} false; then :
21457  break
21458fi
21459done
21460if ${ac_cv_search_setsockopt+:} false; then :
21461
21462else
21463  ac_cv_search_setsockopt=no
21464fi
21465rm conftest.$ac_ext
21466LIBS=$ac_func_search_save_LIBS
21467fi
21468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
21469$as_echo "$ac_cv_search_setsockopt" >&6; }
21470ac_res=$ac_cv_search_setsockopt
21471if test "$ac_res" != no; then :
21472  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21473
21474fi
21475
21476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
21477$as_echo_n "checking for library containing gethostent... " >&6; }
21478if ${ac_cv_search_gethostent+:} false; then :
21479  $as_echo_n "(cached) " >&6
21480else
21481  ac_func_search_save_LIBS=$LIBS
21482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21483/* end confdefs.h.  */
21484
21485/* Override any GCC internal prototype to avoid an error.
21486   Use char because int might match the return type of a GCC
21487   builtin and then its argument prototype would still apply.  */
21488#ifdef __cplusplus
21489extern "C"
21490#endif
21491char gethostent ();
21492int
21493main ()
21494{
21495return gethostent ();
21496  ;
21497  return 0;
21498}
21499_ACEOF
21500for ac_lib in '' nsl; do
21501  if test -z "$ac_lib"; then
21502    ac_res="none required"
21503  else
21504    ac_res=-l$ac_lib
21505    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21506  fi
21507  if ac_fn_c_try_link "$LINENO"; then :
21508  ac_cv_search_gethostent=$ac_res
21509fi
21510rm -f core conftest.err conftest.$ac_objext \
21511    conftest$ac_exeext
21512  if ${ac_cv_search_gethostent+:} false; then :
21513  break
21514fi
21515done
21516if ${ac_cv_search_gethostent+:} false; then :
21517
21518else
21519  ac_cv_search_gethostent=no
21520fi
21521rm conftest.$ac_ext
21522LIBS=$ac_func_search_save_LIBS
21523fi
21524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
21525$as_echo "$ac_cv_search_gethostent" >&6; }
21526ac_res=$ac_cv_search_gethostent
21527if test "$ac_res" != no; then :
21528  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21529
21530fi
21531
21532
21533for ac_func in socket
21534do :
21535  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21536if test "x$ac_cv_func_socket" = xyes; then :
21537  cat >>confdefs.h <<_ACEOF
21538#define HAVE_SOCKET 1
21539_ACEOF
21540
21541fi
21542done
21543
21544for ac_func in setsockopt
21545do :
21546  ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
21547if test "x$ac_cv_func_setsockopt" = xyes; then :
21548  cat >>confdefs.h <<_ACEOF
21549#define HAVE_SETSOCKOPT 1
21550_ACEOF
21551
21552fi
21553done
21554
21555for ac_func in gethostent
21556do :
21557  ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
21558if test "x$ac_cv_func_gethostent" = xyes; then :
21559  cat >>confdefs.h <<_ACEOF
21560#define HAVE_GETHOSTENT 1
21561_ACEOF
21562
21563fi
21564done
21565
21566
21567ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
21568#if HAVE_WINSOCK2_H
21569    #include <winsock2.h>
21570#endif
21571#if HAVE_WS2TCPIP_H
21572    #include <ws2tcpip.h>
21573#else
21574    #include <sys/socket.h>
21575    #include <netdb.h>
21576#endif
21577"
21578if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
21579
21580cat >>confdefs.h <<_ACEOF
21581#define HAVE_STRUCT_SOCKADDR_STORAGE 1
21582_ACEOF
21583
21584
21585fi
21586
21587
21588ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" "
21589#if HAVE_WINSOCK2_H
21590    #include <winsock2.h>
21591#endif
21592#if HAVE_WS2TCPIP_H
21593    #include <ws2tcpip.h>
21594#else
21595    #include <sys/socket.h>
21596    #include <netdb.h>
21597#endif
21598
21599"
21600if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then :
21601  ac_have_decl=1
21602else
21603  ac_have_decl=0
21604fi
21605
21606cat >>confdefs.h <<_ACEOF
21607#define HAVE_DECL_GETADDRINFO $ac_have_decl
21608_ACEOF
21609if test $ac_have_decl = 1; then :
21610
21611else
21612  case " $LIBOBJS " in
21613  *" getaddrinfo.$ac_objext "* ) ;;
21614  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21615 ;;
21616esac
21617
21618fi
21619
21620
21621ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
21622"
21623if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
21624  ac_have_decl=1
21625else
21626  ac_have_decl=0
21627fi
21628
21629cat >>confdefs.h <<_ACEOF
21630#define HAVE_DECL_INET_NTOP $ac_have_decl
21631_ACEOF
21632ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
21633"
21634if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
21635  ac_have_decl=1
21636else
21637  ac_have_decl=0
21638fi
21639
21640cat >>confdefs.h <<_ACEOF
21641#define HAVE_DECL_INET_PTON $ac_have_decl
21642_ACEOF
21643
21644ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
21645if test "x$ac_cv_func_inet_ntop" = xyes; then :
21646  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
21647
21648else
21649  case " $LIBOBJS " in
21650  *" inet_ntop.$ac_objext "* ) ;;
21651  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
21652 ;;
21653esac
21654
21655fi
21656
21657ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
21658if test "x$ac_cv_func_inet_pton" = xyes; then :
21659  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
21660
21661else
21662  case " $LIBOBJS " in
21663  *" inet_pton.$ac_objext "* ) ;;
21664  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
21665 ;;
21666esac
21667
21668fi
21669
21670
21671
21672for ac_func in getifaddrs
21673do :
21674  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
21675if test "x$ac_cv_func_getifaddrs" = xyes; then :
21676  cat >>confdefs.h <<_ACEOF
21677#define HAVE_GETIFADDRS 1
21678_ACEOF
21679
21680fi
21681done
21682
21683
21684for ac_func in getprocs64
21685do :
21686  ac_fn_c_check_func "$LINENO" "getprocs64" "ac_cv_func_getprocs64"
21687if test "x$ac_cv_func_getprocs64" = xyes; then :
21688  cat >>confdefs.h <<_ACEOF
21689#define HAVE_GETPROCS64 1
21690_ACEOF
21691
21692fi
21693done
21694
21695
21696ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
21697if test "x$ac_cv_func_lchown" = xyes; then :
21698
21699$as_echo "#define HAVE_LCHOWN 1" >>confdefs.h
21700
21701fi
21702
21703
21704ac_fn_c_check_decl "$LINENO" "pthread_attr_setstacksize" "ac_cv_have_decl_pthread_attr_setstacksize" "#include <pthread.h>
21705"
21706if test "x$ac_cv_have_decl_pthread_attr_setstacksize" = xyes; then :
21707  ac_have_decl=1
21708else
21709  ac_have_decl=0
21710fi
21711
21712cat >>confdefs.h <<_ACEOF
21713#define HAVE_DECL_PTHREAD_ATTR_SETSTACKSIZE $ac_have_decl
21714_ACEOF
21715
21716ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize"
21717if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes; then :
21718  $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
21719
21720else
21721  case " $LIBOBJS " in
21722  *" pthread_attr_setstacksize.$ac_objext "* ) ;;
21723  *) LIBOBJS="$LIBOBJS pthread_attr_setstacksize.$ac_objext"
21724 ;;
21725esac
21726
21727fi
21728
21729
21730
21731ac_fn_c_check_decl "$LINENO" "pthread_sigmask" "ac_cv_have_decl_pthread_sigmask" "#include <signal.h>
21732"
21733if test "x$ac_cv_have_decl_pthread_sigmask" = xyes; then :
21734  ac_have_decl=1
21735else
21736  ac_have_decl=0
21737fi
21738
21739cat >>confdefs.h <<_ACEOF
21740#define HAVE_DECL_PTHREAD_SIGMASK $ac_have_decl
21741_ACEOF
21742
21743ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
21744if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
21745  $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21746
21747else
21748  case " $LIBOBJS " in
21749  *" pthread_sigmask.$ac_objext "* ) ;;
21750  *) LIBOBJS="$LIBOBJS pthread_sigmask.$ac_objext"
21751 ;;
21752esac
21753
21754fi
21755
21756
21757
21758ac_fn_c_check_decl "$LINENO" "sched_yield" "ac_cv_have_decl_sched_yield" "#include <sched.h>
21759"
21760if test "x$ac_cv_have_decl_sched_yield" = xyes; then :
21761  ac_have_decl=1
21762else
21763  ac_have_decl=0
21764fi
21765
21766cat >>confdefs.h <<_ACEOF
21767#define HAVE_DECL_SCHED_YIELD $ac_have_decl
21768_ACEOF
21769
21770for ac_func in sched_yield
21771do :
21772  ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
21773if test "x$ac_cv_func_sched_yield" = xyes; then :
21774  cat >>confdefs.h <<_ACEOF
21775#define HAVE_SCHED_YIELD 1
21776_ACEOF
21777
21778fi
21779done
21780
21781
21782ac_fn_c_check_decl "$LINENO" "openat" "ac_cv_have_decl_openat" "#define _GNU_SOURCE 1
21783                                   #include <fcntl.h>
21784"
21785if test "x$ac_cv_have_decl_openat" = xyes; then :
21786  ac_have_decl=1
21787else
21788  ac_have_decl=0
21789fi
21790
21791cat >>confdefs.h <<_ACEOF
21792#define HAVE_DECL_OPENAT $ac_have_decl
21793_ACEOF
21794
21795ac_fn_c_check_decl "$LINENO" "fstatat" "ac_cv_have_decl_fstatat" "#define _GNU_SOURCE 1
21796                                    #include <sys/stat.h>
21797"
21798if test "x$ac_cv_have_decl_fstatat" = xyes; then :
21799  ac_have_decl=1
21800else
21801  ac_have_decl=0
21802fi
21803
21804cat >>confdefs.h <<_ACEOF
21805#define HAVE_DECL_FSTATAT $ac_have_decl
21806_ACEOF
21807
21808ac_fn_c_check_decl "$LINENO" "fchownat" "ac_cv_have_decl_fchownat" "#define _GNU_SOURCE 1
21809                                     #include <unistd.h>
21810"
21811if test "x$ac_cv_have_decl_fchownat" = xyes; then :
21812  ac_have_decl=1
21813else
21814  ac_have_decl=0
21815fi
21816
21817cat >>confdefs.h <<_ACEOF
21818#define HAVE_DECL_FCHOWNAT $ac_have_decl
21819_ACEOF
21820
21821ac_fn_c_check_decl "$LINENO" "fchmodat" "ac_cv_have_decl_fchmodat" "#define _GNU_SOURCE 1
21822                                    #include <sys/stat.h>
21823"
21824if test "x$ac_cv_have_decl_fchmodat" = xyes; then :
21825  ac_have_decl=1
21826else
21827  ac_have_decl=0
21828fi
21829
21830cat >>confdefs.h <<_ACEOF
21831#define HAVE_DECL_FCHMODAT $ac_have_decl
21832_ACEOF
21833
21834ac_fn_c_check_decl "$LINENO" "readlinkat" "ac_cv_have_decl_readlinkat" "#define _GNU_SOURCE 1
21835                                       #include <unistd.h>
21836"
21837if test "x$ac_cv_have_decl_readlinkat" = xyes; then :
21838  ac_have_decl=1
21839else
21840  ac_have_decl=0
21841fi
21842
21843cat >>confdefs.h <<_ACEOF
21844#define HAVE_DECL_READLINKAT $ac_have_decl
21845_ACEOF
21846
21847ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
21848if test "x$ac_cv_func_openat" = xyes; then :
21849  $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
21850
21851else
21852  case " $LIBOBJS " in
21853  *" openat.$ac_objext "* ) ;;
21854  *) LIBOBJS="$LIBOBJS openat.$ac_objext"
21855 ;;
21856esac
21857
21858fi
21859
21860ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"
21861if test "x$ac_cv_func_fstatat" = xyes; then :
21862  $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
21863
21864else
21865  case " $LIBOBJS " in
21866  *" fstatat.$ac_objext "* ) ;;
21867  *) LIBOBJS="$LIBOBJS fstatat.$ac_objext"
21868 ;;
21869esac
21870
21871fi
21872
21873ac_fn_c_check_func "$LINENO" "fchownat" "ac_cv_func_fchownat"
21874if test "x$ac_cv_func_fchownat" = xyes; then :
21875  $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
21876
21877else
21878  case " $LIBOBJS " in
21879  *" fchownat.$ac_objext "* ) ;;
21880  *) LIBOBJS="$LIBOBJS fchownat.$ac_objext"
21881 ;;
21882esac
21883
21884fi
21885
21886ac_fn_c_check_func "$LINENO" "fchmodat" "ac_cv_func_fchmodat"
21887if test "x$ac_cv_func_fchmodat" = xyes; then :
21888  $as_echo "#define HAVE_FCHMODAT 1" >>confdefs.h
21889
21890else
21891  case " $LIBOBJS " in
21892  *" fchmodat.$ac_objext "* ) ;;
21893  *) LIBOBJS="$LIBOBJS fchmodat.$ac_objext"
21894 ;;
21895esac
21896
21897fi
21898
21899ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat"
21900if test "x$ac_cv_func_readlinkat" = xyes; then :
21901  $as_echo "#define HAVE_READLINKAT 1" >>confdefs.h
21902
21903else
21904  case " $LIBOBJS " in
21905  *" readlinkat.$ac_objext "* ) ;;
21906  *) LIBOBJS="$LIBOBJS readlinkat.$ac_objext"
21907 ;;
21908esac
21909
21910fi
21911
21912
21913
21914ac_fn_c_check_decl "$LINENO" "log2" "ac_cv_have_decl_log2" "#include <math.h>
21915"
21916if test "x$ac_cv_have_decl_log2" = xyes; then :
21917  ac_have_decl=1
21918else
21919  ac_have_decl=0
21920fi
21921
21922cat >>confdefs.h <<_ACEOF
21923#define HAVE_DECL_LOG2 $ac_have_decl
21924_ACEOF
21925
21926ac_fn_c_check_func "$LINENO" "log2" "ac_cv_func_log2"
21927if test "x$ac_cv_func_log2" = xyes; then :
21928  $as_echo "#define HAVE_LOG2 1" >>confdefs.h
21929
21930else
21931  case " $LIBOBJS " in
21932  *" log2.$ac_objext "* ) ;;
21933  *) LIBOBJS="$LIBOBJS log2.$ac_objext"
21934 ;;
21935esac
21936
21937fi
21938
21939
21940
21941ac_fn_c_check_func "$LINENO" "fexecve" "ac_cv_func_fexecve"
21942if test "x$ac_cv_func_fexecve" = xyes; then :
21943
21944$as_echo "#define HAVE_FEXECVE 1" >>confdefs.h
21945
21946fi
21947
21948
21949
21950ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
21951if test "x$ac_cv_have_decl_alarm" = xyes; then :
21952  ac_have_decl=1
21953else
21954  ac_have_decl=0
21955fi
21956
21957cat >>confdefs.h <<_ACEOF
21958#define HAVE_DECL_ALARM $ac_have_decl
21959_ACEOF
21960
21961ac_fn_c_check_decl "$LINENO" "chmod" "ac_cv_have_decl_chmod" "$ac_includes_default"
21962if test "x$ac_cv_have_decl_chmod" = xyes; then :
21963  ac_have_decl=1
21964else
21965  ac_have_decl=0
21966fi
21967
21968cat >>confdefs.h <<_ACEOF
21969#define HAVE_DECL_CHMOD $ac_have_decl
21970_ACEOF
21971
21972ac_fn_c_check_decl "$LINENO" "chown" "ac_cv_have_decl_chown" "$ac_includes_default"
21973if test "x$ac_cv_have_decl_chown" = xyes; then :
21974  ac_have_decl=1
21975else
21976  ac_have_decl=0
21977fi
21978
21979cat >>confdefs.h <<_ACEOF
21980#define HAVE_DECL_CHOWN $ac_have_decl
21981_ACEOF
21982
21983ac_fn_c_check_decl "$LINENO" "fchmod" "ac_cv_have_decl_fchmod" "$ac_includes_default"
21984if test "x$ac_cv_have_decl_fchmod" = xyes; then :
21985  ac_have_decl=1
21986else
21987  ac_have_decl=0
21988fi
21989
21990cat >>confdefs.h <<_ACEOF
21991#define HAVE_DECL_FCHMOD $ac_have_decl
21992_ACEOF
21993
21994for ac_func in fchmod
21995do :
21996  ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
21997if test "x$ac_cv_func_fchmod" = xyes; then :
21998  cat >>confdefs.h <<_ACEOF
21999#define HAVE_FCHMOD 1
22000_ACEOF
22001
22002fi
22003done
22004
22005ac_fn_c_check_decl "$LINENO" "uname" "ac_cv_have_decl_uname" "$ac_includes_default"
22006if test "x$ac_cv_have_decl_uname" = xyes; then :
22007  ac_have_decl=1
22008else
22009  ac_have_decl=0
22010fi
22011
22012cat >>confdefs.h <<_ACEOF
22013#define HAVE_DECL_UNAME $ac_have_decl
22014_ACEOF
22015
22016ac_fn_c_check_decl "$LINENO" "getuid" "ac_cv_have_decl_getuid" "$ac_includes_default"
22017if test "x$ac_cv_have_decl_getuid" = xyes; then :
22018  ac_have_decl=1
22019else
22020  ac_have_decl=0
22021fi
22022
22023cat >>confdefs.h <<_ACEOF
22024#define HAVE_DECL_GETUID $ac_have_decl
22025_ACEOF
22026
22027ac_fn_c_check_decl "$LINENO" "getgid" "ac_cv_have_decl_getgid" "$ac_includes_default"
22028if test "x$ac_cv_have_decl_getgid" = xyes; then :
22029  ac_have_decl=1
22030else
22031  ac_have_decl=0
22032fi
22033
22034cat >>confdefs.h <<_ACEOF
22035#define HAVE_DECL_GETGID $ac_have_decl
22036_ACEOF
22037
22038ac_fn_c_check_decl "$LINENO" "lstat" "ac_cv_have_decl_lstat" "$ac_includes_default"
22039if test "x$ac_cv_have_decl_lstat" = xyes; then :
22040  ac_have_decl=1
22041else
22042  ac_have_decl=0
22043fi
22044
22045cat >>confdefs.h <<_ACEOF
22046#define HAVE_DECL_LSTAT $ac_have_decl
22047_ACEOF
22048
22049for ac_func in sleep
22050do :
22051  ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep"
22052if test "x$ac_cv_func_sleep" = xyes; then :
22053  cat >>confdefs.h <<_ACEOF
22054#define HAVE_SLEEP 1
22055_ACEOF
22056
22057fi
22058done
22059
22060ac_fn_c_check_decl "$LINENO" "socketpair" "ac_cv_have_decl_socketpair" "#include <sys/socket.h>
22061"
22062if test "x$ac_cv_have_decl_socketpair" = xyes; then :
22063  ac_have_decl=1
22064else
22065  ac_have_decl=0
22066fi
22067
22068cat >>confdefs.h <<_ACEOF
22069#define HAVE_DECL_SOCKETPAIR $ac_have_decl
22070_ACEOF
22071
22072ac_fn_c_check_decl "$LINENO" "fsync" "ac_cv_have_decl_fsync" "$ac_includes_default"
22073if test "x$ac_cv_have_decl_fsync" = xyes; then :
22074  ac_have_decl=1
22075else
22076  ac_have_decl=0
22077fi
22078
22079cat >>confdefs.h <<_ACEOF
22080#define HAVE_DECL_FSYNC $ac_have_decl
22081_ACEOF
22082
22083ac_fn_c_check_decl "$LINENO" "glob" "ac_cv_have_decl_glob" "#include <glob.h>
22084"
22085if test "x$ac_cv_have_decl_glob" = xyes; then :
22086  ac_have_decl=1
22087else
22088  ac_have_decl=0
22089fi
22090
22091cat >>confdefs.h <<_ACEOF
22092#define HAVE_DECL_GLOB $ac_have_decl
22093_ACEOF
22094
22095
22096
22097ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
22098#include <sys/types.h>
22099#include <sys/socket.h>
22100"
22101if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
22102
22103cat >>confdefs.h <<_ACEOF
22104#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
22105_ACEOF
22106
22107
22108fi
22109
22110
22111ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "
22112#include <sys/ioctl.h>
22113#include <net/if.h>
22114"
22115if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
22116
22117cat >>confdefs.h <<_ACEOF
22118#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
22119_ACEOF
22120
22121
22122fi
22123
22124
22125for ac_header in sys/sysctl.h
22126do :
22127  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
22128#ifdef HAVE_SYS_PARAM_H
22129# include <sys/param.h>
22130#endif
22131
22132"
22133if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
22134  cat >>confdefs.h <<_ACEOF
22135#define HAVE_SYS_SYSCTL_H 1
22136_ACEOF
22137
22138fi
22139
22140done
22141
22142
22143ac_fn_c_check_member "$LINENO" "struct sysinfo" "uptime" "ac_cv_member_struct_sysinfo_uptime" "#include <sys/sysinfo.h>
22144"
22145if test "x$ac_cv_member_struct_sysinfo_uptime" = xyes; then :
22146
22147cat >>confdefs.h <<_ACEOF
22148#define HAVE_STRUCT_SYSINFO_UPTIME 1
22149_ACEOF
22150
22151
22152fi
22153
22154
22155for ac_header in sys/sysctl.h
22156do :
22157  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
22158#ifdef HAVE_SYS_PARAM_H
22159# include <sys/param.h>
22160#endif
22161
22162"
22163if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
22164  cat >>confdefs.h <<_ACEOF
22165#define HAVE_SYS_SYSCTL_H 1
22166_ACEOF
22167
22168fi
22169
22170done
22171
22172
22173for ac_header in kstat.h
22174do :
22175  ac_fn_c_check_header_mongrel "$LINENO" "kstat.h" "ac_cv_header_kstat_h" "$ac_includes_default"
22176if test "x$ac_cv_header_kstat_h" = xyes; then :
22177  cat >>confdefs.h <<_ACEOF
22178#define HAVE_KSTAT_H 1
22179_ACEOF
22180
22181fi
22182
22183done
22184
22185for ac_header in utmp.h
22186do :
22187  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
22188if test "x$ac_cv_header_utmp_h" = xyes; then :
22189  cat >>confdefs.h <<_ACEOF
22190#define HAVE_UTMP_H 1
22191_ACEOF
22192
22193fi
22194
22195done
22196
22197for ac_header in utmpx.h
22198do :
22199  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
22200if test "x$ac_cv_header_utmpx_h" = xyes; then :
22201  cat >>confdefs.h <<_ACEOF
22202#define HAVE_UTMPX_H 1
22203_ACEOF
22204
22205fi
22206
22207done
22208
22209
22210
22211rtry=none
22212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for either struct rtentry or struct ortentry" >&5
22213$as_echo_n "checking for either struct rtentry or struct ortentry... " >&6; }
22214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215/* end confdefs.h.  */
22216#include <net/route.h>
22217
22218_ACEOF
22219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22220  $EGREP "rtentry" >/dev/null 2>&1; then :
22221  rtry=rtentry
22222fi
22223rm -f conftest*
22224
22225if test "$rtry" = rtentry; then
22226
22227$as_echo "#define HAVE_RTENTRY 1" >>confdefs.h
22228
22229fi
22230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22231/* end confdefs.h.  */
22232#include <net/route.h>
22233
22234_ACEOF
22235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22236  $EGREP "ortentry" >/dev/null 2>&1; then :
22237  rtry=ortentry
22238fi
22239rm -f conftest*
22240
22241if test "$rtry" = ortentry; then
22242
22243$as_echo "#define HAVE_ORTENTRY 1" >>confdefs.h
22244
22245fi
22246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rtry" >&5
22247$as_echo "$rtry" >&6; }
22248
22249
22250for ac_func in llistxattr
22251do :
22252  ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
22253if test "x$ac_cv_func_llistxattr" = xyes; then :
22254  cat >>confdefs.h <<_ACEOF
22255#define HAVE_LLISTXATTR 1
22256_ACEOF
22257
22258$as_echo "#define WITH_XATTR 1" >>confdefs.h
22259
22260fi
22261done
22262
22263for ac_header in attr/xattr.h sys/xattr.h
22264do :
22265  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22266ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22267if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22268  cat >>confdefs.h <<_ACEOF
22269#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22270_ACEOF
22271
22272fi
22273
22274done
22275
22276
22277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr functions have extra arguments" >&5
22278$as_echo_n "checking whether xattr functions have extra arguments... " >&6; }
22279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22280/* end confdefs.h.  */
22281#include <sys/types.h>
22282                                    #include <sys/xattr.h>
22283int
22284main ()
22285{
22286(void)llistxattr("", 0, 0, 0);
22287                                    (void)lgetxattr("", "", 0, 0, 0, 0);
22288                                    (void)lsetxattr("", "", "", 0, 0, 0);
22289                                    (void)lremovexattr("", "", 0);
22290  ;
22291  return 0;
22292}
22293_ACEOF
22294if ac_fn_c_try_compile "$LINENO"; then :
22295
22296$as_echo "#define WITH_XATTR_EXTRA_ARGS 1" >>confdefs.h
22297
22298                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22299$as_echo "yes" >&6; }
22300else
22301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22302$as_echo "no" >&6; }
22303fi
22304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22305
22306
22307# Check whether --enable-selinux was given.
22308if test "${enable_selinux+set}" = set; then :
22309  enableval=$enable_selinux;
22310fi
22311
22312
22313
22314CORE_CPPFLAGS="$LMDB_CPPFLAGS $TOKYOCABINET_CPPFLAGS $QDBM_CPPFLAGS $PCRE_CPPFLAGS $OPENSSL_CPPFLAGS $SQLITE3_CPPFLAGS $LIBACL_CPPFLAGS $LIBCURL_CPPFLAGS $LIBYAML_CPPFLAGS $POSTGRESQL_CPPFLAGS $MYSQL_CPPFLAGS $LIBXML2_CPPFLAGS $CPPFLAGS"
22315CORE_CFLAGS="$LMDB_CFLAGS $TOKYOCABINET_CFLAGS $QDBM_CFLAGS $PCRE_CFLAGS $OPENSSL_CFLAGS $SQLITE3_CFLAGS $LIBACL_CFLAGS $LIBCURL_CFLAGS $LIBYAML_CFLAGS $POSTGRESQL_CFLAGS $MYSQL_CFLAGS $LIBXML2_CFLAGS $CFLAGS"
22316CORE_LDFLAGS="$LMDB_LDFLAGS $TOKYOCABINET_LDFLAGS $QDBM_LDFLAGS $PCRE_LDFLAGS $OPENSSL_LDFLAGS $SQLITE3_LDFLAGS $LIBACL_LDFLAGS $LIBCURL_LDFLAGS $LIBYAML_LDFLAGS $POSTGRESQL_LDFLAGS $MYSQL_LDFLAGS $LIBXML2_LDFLAGS $LDFLAGS"
22317CORE_LIBS="$LMDB_LIBS $TOKYOCABINET_LIBS $QDBM_LIBS $PCRE_LIBS $OPENSSL_LIBS $SQLITE3_LIBS $LIBACL_LIBS $LIBCURL_LIBS $LIBYAML_LIBS $POSTGRESQL_LIBS $MYSQL_LIBS $LIBXML2_LIBS $LIBS"
22318
22319
22320
22321
22322
22323
22324ac_config_files="$ac_config_files configure_flags.env"
22325
22326
22327
22328case "$target_os" in
22329
22330   solaris2.8|solaris2.9)
22331
22332$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
22333
22334
22335$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
22336
22337        ;;
22338   solaris2.10|solaris2.11)
22339
22340$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
22341
22342
22343$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
22344
22345        ;;
22346   hpux*|hp-ux*)
22347
22348$as_echo "#define _PSTAT64 1" >>confdefs.h
22349
22350        ;;
22351   aix*)
22352        CPPFLAGS="$CPPFLAGS -w"
22353        ;;
22354   linux*|*bsd*|*gnu*)
22355        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_get_default_domain in -lnss_nis" >&5
22356$as_echo_n "checking for yp_get_default_domain in -lnss_nis... " >&6; }
22357if ${ac_cv_lib_nss_nis_yp_get_default_domain+:} false; then :
22358  $as_echo_n "(cached) " >&6
22359else
22360  ac_check_lib_save_LIBS=$LIBS
22361LIBS="-lnss_nis  $LIBS"
22362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22363/* end confdefs.h.  */
22364
22365/* Override any GCC internal prototype to avoid an error.
22366   Use char because int might match the return type of a GCC
22367   builtin and then its argument prototype would still apply.  */
22368#ifdef __cplusplus
22369extern "C"
22370#endif
22371char yp_get_default_domain ();
22372int
22373main ()
22374{
22375return yp_get_default_domain ();
22376  ;
22377  return 0;
22378}
22379_ACEOF
22380if ac_fn_c_try_link "$LINENO"; then :
22381  ac_cv_lib_nss_nis_yp_get_default_domain=yes
22382else
22383  ac_cv_lib_nss_nis_yp_get_default_domain=no
22384fi
22385rm -f core conftest.err conftest.$ac_objext \
22386    conftest$ac_exeext conftest.$ac_ext
22387LIBS=$ac_check_lib_save_LIBS
22388fi
22389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_nis_yp_get_default_domain" >&5
22390$as_echo "$ac_cv_lib_nss_nis_yp_get_default_domain" >&6; }
22391if test "x$ac_cv_lib_nss_nis_yp_get_default_domain" = xyes; then :
22392  cat >>confdefs.h <<_ACEOF
22393#define HAVE_LIBNSS_NIS 1
22394_ACEOF
22395
22396  LIBS="-lnss_nis $LIBS"
22397
22398fi
22399
22400        ;;
22401   freebsd*|dragonfly*)
22402      if true; then
22403  FREEBSD_TRUE=
22404  FREEBSD_FALSE='#'
22405else
22406  FREEBSD_TRUE='#'
22407  FREEBSD_FALSE=
22408fi
22409
22410        ;;
22411   netbsd*)
22412        ;;
22413   unicos*)
22414        ;;
22415   cray*)
22416        ;;
22417   qnx*)
22418        ;;
22419   openbsd*|obsd*)
22420        ;;
22421   sysv4.2MP|unix_sv*)
22422        ;;
22423   cygwin*)
22424        ;;
22425   mingw*)
22426        ;;
22427   sco*)
22428        ;;
22429   darwin*)
22430        ;;
22431   *)
22432        as_fn_error $? "Unknown system type $target_os" "$LINENO" 5
22433        ;;
22434esac
22435
22436#
22437#  Copyright 2021 Northern.tech AS
22438#
22439#  This file is part of CFEngine 3 - written and maintained by Northern.tech AS.
22440#
22441#  This program is free software; you can redistribute it and/or modify it
22442#  under the terms of the GNU General Public License as published by the
22443#  Free Software Foundation; version 3.
22444#
22445#  This program is distributed in the hope that it will be useful,
22446#  but WITHOUT ANY WARRANTY; without even the implied warranty of
22447#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22448#  GNU General Public License for more details.
22449#
22450# You should have received a copy of the GNU General Public License
22451# along with this program; if not, write to the Free Software
22452# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
22453#
22454# To the extent this program is licensed as part of the Enterprise
22455# versions of CFEngine, the applicable Commercial Open Source License
22456# (COSL) may apply to this file if you as a licensee so wish it. See
22457# included file COSL.txt.
22458#
22459#
22460# OS kernels conditionals. Don't use those unless it is really needed (if code
22461# depends on the *kernel* feature, and even then -- some kernel features are
22462# shared by different kernels).
22463#
22464# Good example: use LINUX to select code which uses inotify and netlink sockets.
22465# Bad example: use LINUX to select code which parses output of coreutils' ps(1).
22466#
22467 if test -n "`echo ${target_os} | grep linux`"; then
22468  LINUX_TRUE=
22469  LINUX_FALSE='#'
22470else
22471  LINUX_TRUE='#'
22472  LINUX_FALSE=
22473fi
22474
22475 if test -n "`echo ${target_os} | grep darwin`"; then
22476  MACOSX_TRUE=
22477  MACOSX_FALSE='#'
22478else
22479  MACOSX_TRUE='#'
22480  MACOSX_FALSE=
22481fi
22482
22483 if test -n "`(echo ${target_os} | egrep 'solaris|sunos')`"; then
22484  SOLARIS_TRUE=
22485  SOLARIS_FALSE='#'
22486else
22487  SOLARIS_TRUE='#'
22488  SOLARIS_FALSE=
22489fi
22490
22491 if test -n "`(echo ${target_os} | egrep 'mingw|cygwin')`"; then
22492  NT_TRUE=
22493  NT_FALSE='#'
22494else
22495  NT_TRUE='#'
22496  NT_FALSE=
22497fi
22498
22499 if test -n "`(echo ${target_os} | egrep 'cygwin')`"; then
22500  CYGWIN_TRUE=
22501  CYGWIN_FALSE='#'
22502else
22503  CYGWIN_TRUE='#'
22504  CYGWIN_FALSE=
22505fi
22506
22507 if test -n "`(echo ${target_os} | grep aix)`"; then
22508  AIX_TRUE=
22509  AIX_FALSE='#'
22510else
22511  AIX_TRUE='#'
22512  AIX_FALSE=
22513fi
22514
22515 if test -n "`(echo ${target_os} | egrep 'hpux|hp-ux')`"; then
22516  HPUX_TRUE=
22517  HPUX_FALSE='#'
22518else
22519  HPUX_TRUE='#'
22520  HPUX_FALSE=
22521fi
22522
22523 if test -n "`(echo ${target_os} | grep freebsd)`"; then
22524  FREEBSD_TRUE=
22525  FREEBSD_FALSE='#'
22526else
22527  FREEBSD_TRUE='#'
22528  FREEBSD_FALSE=
22529fi
22530
22531 if test -n "`(echo ${target_os} | grep netbsd)`"; then
22532  NETBSD_TRUE=
22533  NETBSD_FALSE='#'
22534else
22535  NETBSD_TRUE='#'
22536  NETBSD_FALSE=
22537fi
22538
22539 if test -n "`(echo ${target_os} | grep darwin)`"; then
22540  XNU_TRUE=
22541  XNU_FALSE='#'
22542else
22543  XNU_TRUE='#'
22544  XNU_FALSE=
22545fi
22546
22547
22548
22549
22550
22551# Check whether --with-workdir was given.
22552if test "${with_workdir+set}" = set; then :
22553  withval=$with_workdir;
22554        if test "x$withval" != x ; then
22555            WORKDIR="$withval"
22556            LOGDIR="$withval"
22557            PIDDIR="$withval"
22558        fi
22559
22560fi
22561
22562
22563
22564_lcl_receval=""${WORKDIR}""
22565WORKDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22566     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
22567     _lcl_receval_old=''
22568     while test "$_lcl_receval_old" != "$_lcl_receval"; do
22569       _lcl_receval_old="$_lcl_receval"
22570       eval _lcl_receval="\"$_lcl_receval\""
22571     done
22572     echo "$_lcl_receval")`
22573
22574
22575cat >>confdefs.h <<_ACEOF
22576#define WORKDIR "${WORKDIR}"
22577_ACEOF
22578
22579workdir="${WORKDIR}"
22580
22581
22582
22583# Check whether --with-masterdir was given.
22584if test "${with_masterdir+set}" = set; then :
22585  withval=$with_masterdir;
22586        if test "x$withval" != x ; then
22587            MASTERDIR="$withval"
22588        fi
22589
22590fi
22591
22592
22593
22594_lcl_receval=""${MASTERDIR}""
22595MASTERDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22596     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
22597     _lcl_receval_old=''
22598     while test "$_lcl_receval_old" != "$_lcl_receval"; do
22599       _lcl_receval_old="$_lcl_receval"
22600       eval _lcl_receval="\"$_lcl_receval\""
22601     done
22602     echo "$_lcl_receval")`
22603
22604
22605cat >>confdefs.h <<_ACEOF
22606#define MASTERDIR "${MASTERDIR}"
22607_ACEOF
22608
22609masterdir="${MASTERDIR}"
22610
22611
22612
22613# Check whether --with-inputdir was given.
22614if test "${with_inputdir+set}" = set; then :
22615  withval=$with_inputdir;
22616        if test "x$withval" != x ; then
22617            INPUTDIR="$withval"
22618        fi
22619
22620fi
22621
22622
22623
22624_lcl_receval=""${INPUTDIR}""
22625INPUTDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22626     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
22627     _lcl_receval_old=''
22628     while test "$_lcl_receval_old" != "$_lcl_receval"; do
22629       _lcl_receval_old="$_lcl_receval"
22630       eval _lcl_receval="\"$_lcl_receval\""
22631     done
22632     echo "$_lcl_receval")`
22633
22634
22635cat >>confdefs.h <<_ACEOF
22636#define INPUTDIR "${INPUTDIR}"
22637_ACEOF
22638
22639inputdir="${INPUTDIR}"
22640
22641
22642
22643# Check whether --with-datadir was given.
22644if test "${with_datadir+set}" = set; then :
22645  withval=$with_datadir;
22646        if test "x$withval" != x ; then
22647            DATADIR="$withval"
22648        fi
22649
22650fi
22651
22652
22653
22654_lcl_receval=""${DATADIR}""
22655DATADIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22656     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
22657     _lcl_receval_old=''
22658     while test "$_lcl_receval_old" != "$_lcl_receval"; do
22659       _lcl_receval_old="$_lcl_receval"
22660       eval _lcl_receval="\"$_lcl_receval\""
22661     done
22662     echo "$_lcl_receval")`
22663
22664
22665cat >>confdefs.h <<_ACEOF
22666#define CF_DATADIR "${DATADIR}"
22667_ACEOF
22668
22669datadir="${DATADIR}"
22670
22671
22672
22673# Check whether --with-logdir was given.
22674if test "${with_logdir+set}" = set; then :
22675  withval=$with_logdir;
22676        if test "x$withval" != x ; then
22677            LOGDIR="$withval"
22678        fi
22679
22680fi
22681
22682
22683
22684_lcl_receval=""${LOGDIR}""
22685LOGDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22686     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
22687     _lcl_receval_old=''
22688     while test "$_lcl_receval_old" != "$_lcl_receval"; do
22689       _lcl_receval_old="$_lcl_receval"
22690       eval _lcl_receval="\"$_lcl_receval\""
22691     done
22692     echo "$_lcl_receval")`
22693
22694
22695cat >>confdefs.h <<_ACEOF
22696#define LOGDIR "${LOGDIR}"
22697_ACEOF
22698
22699logdir="${LOGDIR}"
22700
22701
22702
22703# Check whether --with-piddir was given.
22704if test "${with_piddir+set}" = set; then :
22705  withval=$with_piddir;
22706        if test "x$withval" != x ; then
22707            PIDDIR="$withval"
22708        fi
22709
22710fi
22711
22712
22713
22714_lcl_receval=""${PIDDIR}""
22715PIDDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22716     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
22717     _lcl_receval_old=''
22718     while test "$_lcl_receval_old" != "$_lcl_receval"; do
22719       _lcl_receval_old="$_lcl_receval"
22720       eval _lcl_receval="\"$_lcl_receval\""
22721     done
22722     echo "$_lcl_receval")`
22723
22724
22725cat >>confdefs.h <<_ACEOF
22726#define PIDDIR "${PIDDIR}"
22727_ACEOF
22728
22729piddir="${PIDDIR}"
22730
22731
22732
22733# Check whether --with-statedir was given.
22734if test "${with_statedir+set}" = set; then :
22735  withval=$with_statedir;
22736        if test "x$withval" != x ; then
22737            STATEDIR="$withval"
22738        fi
22739
22740fi
22741
22742
22743
22744_lcl_receval=""${STATEDIR}""
22745STATEDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22746     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
22747     _lcl_receval_old=''
22748     while test "$_lcl_receval_old" != "$_lcl_receval"; do
22749       _lcl_receval_old="$_lcl_receval"
22750       eval _lcl_receval="\"$_lcl_receval\""
22751     done
22752     echo "$_lcl_receval")`
22753
22754
22755cat >>confdefs.h <<_ACEOF
22756#define STATEDIR "${STATEDIR}"
22757_ACEOF
22758
22759statedir="${STATEDIR}"
22760
22761
22762
22763# Check whether --with-shell was given.
22764if test "${with_shell+set}" = set; then :
22765  withval=$with_shell;
22766else
22767  with_shell=/bin/sh
22768fi
22769
22770
22771_lcl_receval=""${bindir}""
22772bindir=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
22773     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
22774     _lcl_receval_old=''
22775     while test "$_lcl_receval_old" != "$_lcl_receval"; do
22776       _lcl_receval_old="$_lcl_receval"
22777       eval _lcl_receval="\"$_lcl_receval\""
22778     done
22779     echo "$_lcl_receval")`
22780
22781
22782cat >>confdefs.h <<_ACEOF
22783#define BINDIR "${bindir}"
22784_ACEOF
22785
22786bindir="${bindir}"
22787
22788
22789
22790if test "x$with_shell" = "xno"; then
22791   as_fn_error $? "Please specify full path to POSIX-compatible shell" "$LINENO" 5
22792fi
22793
22794cat >>confdefs.h <<_ACEOF
22795#define SHELL_PATH "$with_shell"
22796_ACEOF
22797
22798
22799
22800
22801# Check whether --with-init-script was given.
22802if test "${with_init_script+set}" = set; then :
22803  withval=$with_init_script;
22804    if test -n "$withval" && test "x$withval" != "xno"; then
22805        if test "x$withval" = "xyes"; then
22806            case "$target_os" in #(
22807  aix*) :
22808
22809                INIT_D_PATH=/etc/rc.d/init.d
22810             ;; #(
22811  hpux*) :
22812
22813                INIT_D_PATH=/sbin/init.d
22814             ;; #(
22815  *) :
22816
22817                INIT_D_PATH=/etc/init.d
22818             ;;
22819esac
22820        else
22821            INIT_D_PATH="$withval"
22822        fi
22823
22824        ac_config_files="$ac_config_files misc/init.d/cfengine3"
22825
22826    fi
22827
22828fi
22829
22830 if test -n "$INIT_D_PATH"; then
22831  WITH_INIT_D_SCRIPT_TRUE=
22832  WITH_INIT_D_SCRIPT_FALSE='#'
22833else
22834  WITH_INIT_D_SCRIPT_TRUE='#'
22835  WITH_INIT_D_SCRIPT_FALSE=
22836fi
22837
22838
22839
22840SYSTEMD_SERVICE_PATH=""
22841
22842
22843# Check whether --with-systemd-service was given.
22844if test "${with_systemd_service+set}" = set; then :
22845  withval=$with_systemd_service;
22846    if test -n "$withval" && test "x$withval" != "xno"; then
22847        if test "x$withval" = "xyes"; then
22848            SYSTEMD_SERVICE_PATH=/usr/lib/systemd/system
22849        else
22850            SYSTEMD_SERVICE_PATH="$withval"
22851        fi
22852    fi
22853
22854
22855else
22856
22857    # Extract the first word of "systemctl", so it can be a program name with args.
22858set dummy systemctl; ac_word=$2
22859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22860$as_echo_n "checking for $ac_word... " >&6; }
22861if ${ac_cv_path_systemctl+:} false; then :
22862  $as_echo_n "(cached) " >&6
22863else
22864  case $systemctl in
22865  [\\/]* | ?:[\\/]*)
22866  ac_cv_path_systemctl="$systemctl" # Let the user override the test with a path.
22867  ;;
22868  *)
22869  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22870for as_dir in $PATH
22871do
22872  IFS=$as_save_IFS
22873  test -z "$as_dir" && as_dir=.
22874    for ac_exec_ext in '' $ac_executable_extensions; do
22875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22876    ac_cv_path_systemctl="$as_dir/$ac_word$ac_exec_ext"
22877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22878    break 2
22879  fi
22880done
22881  done
22882IFS=$as_save_IFS
22883
22884  test -z "$ac_cv_path_systemctl" && ac_cv_path_systemctl="no"
22885  ;;
22886esac
22887fi
22888systemctl=$ac_cv_path_systemctl
22889if test -n "$systemctl"; then
22890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $systemctl" >&5
22891$as_echo "$systemctl" >&6; }
22892else
22893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22894$as_echo "no" >&6; }
22895fi
22896
22897
22898    if test "x$systemctl" == "xno"; then :
22899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking Not a systemd system" >&5
22900$as_echo_n "checking Not a systemd system... " >&6; }
22901else
22902
22903        SYSTEMD_SERVICE_PATH=/usr/lib/systemd/system
22904
22905fi
22906
22907fi
22908
22909
22910if test "x$SYSTEMD_SERVICE_PATH" = "x"; then :
22911
22912else
22913
22914
22915    ac_config_files="$ac_config_files misc/systemd/cfengine3.service"
22916
22917    ac_config_files="$ac_config_files misc/systemd/cf-apache.service"
22918
22919    ac_config_files="$ac_config_files misc/systemd/cf-execd.service"
22920
22921    ac_config_files="$ac_config_files misc/systemd/cf-hub.service"
22922
22923    ac_config_files="$ac_config_files misc/systemd/cf-monitord.service"
22924
22925    ac_config_files="$ac_config_files misc/systemd/cf-postgres.service"
22926
22927    ac_config_files="$ac_config_files misc/systemd/cf-runalerts.service"
22928
22929    ac_config_files="$ac_config_files misc/systemd/cf-serverd.service"
22930
22931
22932fi
22933
22934 if test -n "$SYSTEMD_SERVICE_PATH"; then
22935  WITH_SYSTEMD_SERVICE_TRUE=
22936  WITH_SYSTEMD_SERVICE_FALSE='#'
22937else
22938  WITH_SYSTEMD_SERVICE_TRUE='#'
22939  WITH_SYSTEMD_SERVICE_FALSE=
22940fi
22941
22942
22943
22944# Check whether --with-environment-path was given.
22945if test "${with_environment_path+set}" = set; then :
22946  withval=$with_environment_path;
22947fi
22948
22949OS_ENVIRONMENT_PATH=
22950if test -z "$with_environment_path" || test "$with_environment_path" = "yes"; then
22951    if test -n "$SYSTEMD_SERVICE_PATH"; then
22952        for i in /etc/sysconfig /etc/default; do
22953            if test -d $i; then
22954                OS_ENVIRONMENT_PATH=$i
22955                break
22956            fi
22957        done
22958        if test -z "$OS_ENVIRONMENT_PATH"; then
22959            as_fn_error $? "Unable to detect location of environment files on the platform (e.g. '/etc/sysconfig'). Please specify it using --with-environment-path, or turn off systemd support." "$LINENO" 5
22960        fi
22961    fi
22962else
22963    if test "$with_environment_path" = "no"; then
22964        if test -n "$SYSTEMD_SERVICE_PATH"; then
22965            as_fn_error $? "It is not possible to both specify systemd support and not provide an environment path with --without-environment-path." "$LINENO" 5
22966        fi
22967    else
22968        OS_ENVIRONMENT_PATH="$with_environment_path"
22969    fi
22970fi
22971
22972
22973
22974# Check whether --with-selinux-policy was given.
22975if test "${with_selinux_policy+set}" = set; then :
22976  withval=$with_selinux_policy;
22977else
22978  with_selinux_policy=no
22979fi
22980
22981 if test "x$with_selinux_policy" != "xno"; then
22982  WITH_SELINUX_TRUE=
22983  WITH_SELINUX_FALSE='#'
22984else
22985  WITH_SELINUX_TRUE='#'
22986  WITH_SELINUX_FALSE=
22987fi
22988
22989
22990
22991
22992# Extract the first word of "hostname", so it can be a program name with args.
22993set dummy hostname; ac_word=$2
22994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22995$as_echo_n "checking for $ac_word... " >&6; }
22996if ${ac_cv_path_HOSTNAME+:} false; then :
22997  $as_echo_n "(cached) " >&6
22998else
22999  case $HOSTNAME in
23000  [\\/]* | ?:[\\/]*)
23001  ac_cv_path_HOSTNAME="$HOSTNAME" # Let the user override the test with a path.
23002  ;;
23003  *)
23004  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23005for as_dir in $PATH
23006do
23007  IFS=$as_save_IFS
23008  test -z "$as_dir" && as_dir=.
23009    for ac_exec_ext in '' $ac_executable_extensions; do
23010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23011    ac_cv_path_HOSTNAME="$as_dir/$ac_word$ac_exec_ext"
23012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23013    break 2
23014  fi
23015done
23016  done
23017IFS=$as_save_IFS
23018
23019  test -z "$ac_cv_path_HOSTNAME" && ac_cv_path_HOSTNAME=""""
23020  ;;
23021esac
23022fi
23023HOSTNAME=$ac_cv_path_HOSTNAME
23024if test -n "$HOSTNAME"; then
23025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTNAME" >&5
23026$as_echo "$HOSTNAME" >&6; }
23027else
23028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23029$as_echo "no" >&6; }
23030fi
23031
23032
23033
23034
23035cat >>confdefs.h <<_ACEOF
23036#define AUTOCONF_HOSTNAME "`$HOSTNAME`"
23037_ACEOF
23038
23039
23040cat >>confdefs.h <<_ACEOF
23041#define AUTOCONF_SYSNAME "$target_os"
23042_ACEOF
23043
23044
23045
23046
23047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xen cpuid-based HVM detection" >&5
23048$as_echo_n "checking for Xen cpuid-based HVM detection... " >&6; }
23049if test x"$GCC" = "xyes"; then
23050    case $host_cpu in
23051        i[3456]86*|x86_64*|amd64)
23052
23053$as_echo "#define XEN_CPUID_SUPPORT 1" >>confdefs.h
23054
23055            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23056$as_echo "yes" >&6; }
23057            ;;
23058        *)
23059            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23060$as_echo "no" >&6; }
23061            ;;
23062    esac
23063else
23064    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23065$as_echo "no" >&6; }
23066fi
23067
23068
23069# Check whether --enable-coverage was given.
23070if test "${enable_coverage+set}" = set; then :
23071  enableval=$enable_coverage; use_coverage=$enableval
23072else
23073  use_coverage=no
23074fi
23075
23076
23077if test "x$use_coverage" = "xyes"; then
23078  if test "$GCC" != "yes"; then
23079    as_fn_error $? "GCC is required for --enable-coverage" "$LINENO" 5
23080  fi
23081
23082  if test "$debug" != "yes"; then
23083    as_fn_error $? "--enable-debug is required for --enable-coverage" "$LINENO" 5
23084  fi
23085
23086  # Extract the first word of "lcov", so it can be a program name with args.
23087set dummy lcov; ac_word=$2
23088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23089$as_echo_n "checking for $ac_word... " >&6; }
23090if ${ac_cv_prog_LCOV+:} false; then :
23091  $as_echo_n "(cached) " >&6
23092else
23093  if test -n "$LCOV"; then
23094  ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
23095else
23096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23097for as_dir in $PATH
23098do
23099  IFS=$as_save_IFS
23100  test -z "$as_dir" && as_dir=.
23101    for ac_exec_ext in '' $ac_executable_extensions; do
23102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23103    ac_cv_prog_LCOV="lcov"
23104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23105    break 2
23106  fi
23107done
23108  done
23109IFS=$as_save_IFS
23110
23111fi
23112fi
23113LCOV=$ac_cv_prog_LCOV
23114if test -n "$LCOV"; then
23115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
23116$as_echo "$LCOV" >&6; }
23117else
23118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23119$as_echo "no" >&6; }
23120fi
23121
23122
23123  # Extract the first word of "genhtml", so it can be a program name with args.
23124set dummy genhtml; ac_word=$2
23125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23126$as_echo_n "checking for $ac_word... " >&6; }
23127if ${ac_cv_prog_LCOV_GENHTML+:} false; then :
23128  $as_echo_n "(cached) " >&6
23129else
23130  if test -n "$LCOV_GENHTML"; then
23131  ac_cv_prog_LCOV_GENHTML="$LCOV_GENHTML" # Let the user override the test.
23132else
23133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23134for as_dir in $PATH
23135do
23136  IFS=$as_save_IFS
23137  test -z "$as_dir" && as_dir=.
23138    for ac_exec_ext in '' $ac_executable_extensions; do
23139  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23140    ac_cv_prog_LCOV_GENHTML="genhtml"
23141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23142    break 2
23143  fi
23144done
23145  done
23146IFS=$as_save_IFS
23147
23148fi
23149fi
23150LCOV_GENHTML=$ac_cv_prog_LCOV_GENHTML
23151if test -n "$LCOV_GENHTML"; then
23152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV_GENHTML" >&5
23153$as_echo "$LCOV_GENHTML" >&6; }
23154else
23155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23156$as_echo "no" >&6; }
23157fi
23158
23159
23160
23161  if test -z "$LCOV"; then
23162    as_fn_error $? "Cannot find lcov from the LTP package" "$LINENO" 5
23163  fi
23164
23165  if test -z "$LCOV_GENHTML"; then
23166    as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5
23167  fi
23168
23169
23170  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
23171
23172
23173    CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
23174  LDFLAGS="$LDFLAGS -lgcov"
23175  # Need to set ENABLE_COVERAGE so that tests/unit/Makefile.am can adapt for one
23176  # test which needs gcov stubs if core not built with coverage.
23177   if true; then
23178  ENABLE_COVERAGE_TRUE=
23179  ENABLE_COVERAGE_FALSE='#'
23180else
23181  ENABLE_COVERAGE_TRUE='#'
23182  ENABLE_COVERAGE_FALSE=
23183fi
23184
23185else
23186   if false; then
23187  ENABLE_COVERAGE_TRUE=
23188  ENABLE_COVERAGE_FALSE='#'
23189else
23190  ENABLE_COVERAGE_TRUE='#'
23191  ENABLE_COVERAGE_FALSE=
23192fi
23193
23194fi
23195
23196#
23197# Populate contents of config.post.h
23198#
23199
23200
23201
23202ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "#include <sys/types.h>
23203                  #include <sys/socket.h>
23204"
23205if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
23206
23207$as_echo "#define HAVE_MSGHDR_MSG_CONTROL 1" >>confdefs.h
23208
23209else
23210
23211$as_echo "#define HAVE_NO_MSGHDR_MSG_CONTROL 1" >>confdefs.h
23212
23213fi
23214
23215
23216ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
23217                  #include <sys/socket.h>
23218"
23219if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
23220
23221$as_echo "#define HAVE_MSGHDR_ACCRIGHTS 1" >>confdefs.h
23222
23223else
23224
23225$as_echo "#define HAVE_NO_MSGHDR_ACCRIGHTS 1" >>confdefs.h
23226
23227fi
23228
23229
23230
23231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
23232$as_echo "" >&6; }
23233
23234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Summary:" >&5
23235$as_echo "Summary:" >&6; }
23236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: > Version: $cfengine_version" >&5
23237$as_echo "> Version: $cfengine_version" >&6; }
23238
23239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: > Required libraries" >&5
23240$as_echo "> Required libraries" >&6; }
23241
23242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> OpenSSL: $OPENSSL_PATH" >&5
23243$as_echo "-> OpenSSL: $OPENSSL_PATH" >&6; }
23244
23245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> PCRE: $PCRE_PATH" >&5
23246$as_echo "-> PCRE: $PCRE_PATH" >&6; }
23247
23248if test $WITH_TOKYO = 1; then
23249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> DB: Tokyo Cabinet: $TOKYOCABINET_PATH" >&5
23250$as_echo "-> DB: Tokyo Cabinet: $TOKYOCABINET_PATH" >&6; }
23251elif test $WITH_QDBM = 1; then
23252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> DB: QDBM: $QDBM_PATH" >&5
23253$as_echo "-> DB: QDBM: $QDBM_PATH" >&6; }
23254fi
23255
23256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: > Optional libraries" >&5
23257$as_echo "> Optional libraries" >&6; }
23258
23259if test "x$ac_cv_lib_mysqlclient_mysql_real_connect" = "xyes"; then
23260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> MySQL connector: $MYSQL_PATH" >&5
23261$as_echo "-> MySQL connector: $MYSQL_PATH" >&6; }
23262else
23263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> MySQL connector: disabled" >&5
23264$as_echo "-> MySQL connector: disabled" >&6; }
23265fi
23266
23267if test "x$ac_cv_lib_pq_PQconnectdb" = "xyes"; then
23268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> PostgreSQL connector: $POSTGRESQL_PATH" >&5
23269$as_echo "-> PostgreSQL connector: $POSTGRESQL_PATH" >&6; }
23270else
23271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> PostgreSQL connector: disabled" >&5
23272$as_echo "-> PostgreSQL connector: disabled" >&6; }
23273fi
23274
23275if test $WITH_LMDB = 1; then
23276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> DB: Lightning MDB: $LMDB_PATH" >&5
23277$as_echo "-> DB: Lightning MDB: $LMDB_PATH" >&6; }
23278elif test $WITH_TOKYO = 1; then
23279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> DB: Tokyo Cabinet: $TOKYOCABINET_PATH" >&5
23280$as_echo "-> DB: Tokyo Cabinet: $TOKYOCABINET_PATH" >&6; }
23281elif test $WITH_QDBM = 1; then
23282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> DB: QDBM: $QDBM_PATH" >&5
23283$as_echo "-> DB: QDBM: $QDBM_PATH" >&6; }
23284fi
23285
23286if test "x$ac_cv_lib_virt_virConnectOpen" = xyes; then
23287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libvirt: $LIBVIRT_PATH" >&5
23288$as_echo "-> libvirt: $LIBVIRT_PATH" >&6; }
23289else
23290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libvirt: disabled" >&5
23291$as_echo "-> libvirt: disabled" >&6; }
23292fi
23293
23294if test "x$ac_cv_lib_acl_acl_init" = xyes; then
23295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libacl: $LIBACL_PATH" >&5
23296$as_echo "-> libacl: $LIBACL_PATH" >&6; }
23297else
23298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libacl: disabled" >&5
23299$as_echo "-> libacl: disabled" >&6; }
23300fi
23301
23302if test "x$ac_cv_lib_curl_curl_global_init" = xyes; then
23303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libcurl: $LIBCURL_PATH" >&5
23304$as_echo "-> libcurl: $LIBCURL_PATH" >&6; }
23305else
23306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libcurl: disabled" >&5
23307$as_echo "-> libcurl: disabled" >&6; }
23308fi
23309
23310if test "x$ac_cv_lib_yaml_yaml_parser_initialize" = xyes; then
23311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libyaml: $LIBYAML_PATH" >&5
23312$as_echo "-> libyaml: $LIBYAML_PATH" >&6; }
23313else
23314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libyaml: disabled" >&5
23315$as_echo "-> libyaml: disabled" >&6; }
23316fi
23317
23318if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then
23319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libxml2: $LIBXML2_PATH" >&5
23320$as_echo "-> libxml2: $LIBXML2_PATH" >&6; }
23321else
23322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libxml2: disabled" >&5
23323$as_echo "-> libxml2: disabled" >&6; }
23324fi
23325
23326if test "x$users_promises_ok" = "xyes"; then
23327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> User promises: PAM/user* tools" >&5
23328$as_echo "-> User promises: PAM/user* tools" >&6; }
23329else
23330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> User promises: disabled" >&5
23331$as_echo "-> User promises: disabled" >&6; }
23332fi
23333
23334if test "x$enable_builtin_extensions" = "xyes"; then
23335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Enterprise extensions: Built in" >&5
23336$as_echo "-> Enterprise extensions: Built in" >&6; }
23337else
23338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Enterprise extensions: Plugin or not included" >&5
23339$as_echo "-> Enterprise extensions: Plugin or not included" >&6; }
23340fi
23341
23342if test -n "$INIT_D_PATH"; then
23343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> init.d script: $INIT_D_PATH" >&5
23344$as_echo "-> init.d script: $INIT_D_PATH" >&6; }
23345else
23346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> init.d script: disabled" >&5
23347$as_echo "-> init.d script: disabled" >&6; }
23348fi
23349
23350if test -n "$SYSTEMD_SERVICE_PATH"; then
23351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Systemd service: $SYSTEMD_SERVICE_PATH" >&5
23352$as_echo "-> Systemd service: $SYSTEMD_SERVICE_PATH" >&6; }
23353else
23354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Systemd service: disabled" >&5
23355$as_echo "-> Systemd service: disabled" >&6; }
23356fi
23357
23358if test -n "$OS_ENVIRONMENT_PATH"; then
23359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Path of platform environment files: $OS_ENVIRONMENT_PATH" >&5
23360$as_echo "-> Path of platform environment files: $OS_ENVIRONMENT_PATH" >&6; }
23361fi
23362
23363if test "x$with_selinux_policy" != "xno"; then
23364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> SELinux policy: enabled" >&5
23365$as_echo "-> SELinux policy: enabled" >&6; }
23366else
23367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> SELinux policy: disabled" >&5
23368$as_echo "-> SELinux policy: disabled" >&6; }
23369fi
23370
23371
23372
23373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Workdir: $WORKDIR" >&5
23374$as_echo "-> Workdir: $WORKDIR" >&6; }
23375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Masterdir: $MASTERDIR" >&5
23376$as_echo "-> Masterdir: $MASTERDIR" >&6; }
23377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Inputdir: $INPUTDIR" >&5
23378$as_echo "-> Inputdir: $INPUTDIR" >&6; }
23379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Datadir: $DATADIR" >&5
23380$as_echo "-> Datadir: $DATADIR" >&6; }
23381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Logdir: $LOGDIR" >&5
23382$as_echo "-> Logdir: $LOGDIR" >&6; }
23383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Piddir: $PIDDIR" >&5
23384$as_echo "-> Piddir: $PIDDIR" >&6; }
23385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Statedir: $STATEDIR" >&5
23386$as_echo "-> Statedir: $STATEDIR" >&6; }
23387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> bindir: $bindir" >&5
23388$as_echo "-> bindir: $bindir" >&6; }
23389
23390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
23391$as_echo "" >&6; }
23392
23393
23394ac_config_files="$ac_config_files Makefile libcfnet/Makefile libenv/Makefile libpromises/Makefile cf-agent/Makefile cf-check/Makefile cf-promises/Makefile cf-execd/Makefile cf-key/Makefile cf-monitord/Makefile cf-upgrade/Makefile cf-runagent/Makefile cf-serverd/Makefile cf-testd/Makefile cf-net/Makefile cf-secret/Makefile config.post.h contrib/vagrant-ci/centos-7-x64/Makefile misc/Makefile misc/selinux/Makefile ext/Makefile examples/Makefile tests/Makefile tests/acceptance/Makefile tests/acceptance/25_cf-execd/Makefile tests/unit/Makefile tests/load/Makefile tests/static-check/Makefile tests/valgrind-check/Makefile"
23395
23396
23397# Run autoconf/configure in libutils, generating necessary makefiles:
23398
23399
23400subdirs="$subdirs libntech"
23401
23402
23403cat >confcache <<\_ACEOF
23404# This file is a shell script that caches the results of configure
23405# tests run on this system so they can be shared between configure
23406# scripts and configure runs, see configure's option --config-cache.
23407# It is not useful on other systems.  If it contains results you don't
23408# want to keep, you may remove or edit it.
23409#
23410# config.status only pays attention to the cache file if you give it
23411# the --recheck option to rerun configure.
23412#
23413# `ac_cv_env_foo' variables (set or unset) will be overridden when
23414# loading this file, other *unset* `ac_cv_foo' will be assigned the
23415# following values.
23416
23417_ACEOF
23418
23419# The following way of writing the cache mishandles newlines in values,
23420# but we know of no workaround that is simple, portable, and efficient.
23421# So, we kill variables containing newlines.
23422# Ultrix sh set writes to stderr and can't be redirected directly,
23423# and sets the high bit in the cache file unless we assign to the vars.
23424(
23425  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23426    eval ac_val=\$$ac_var
23427    case $ac_val in #(
23428    *${as_nl}*)
23429      case $ac_var in #(
23430      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23431$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23432      esac
23433      case $ac_var in #(
23434      _ | IFS | as_nl) ;; #(
23435      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23436      *) { eval $ac_var=; unset $ac_var;} ;;
23437      esac ;;
23438    esac
23439  done
23440
23441  (set) 2>&1 |
23442    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23443    *${as_nl}ac_space=\ *)
23444      # `set' does not quote correctly, so add quotes: double-quote
23445      # substitution turns \\\\ into \\, and sed turns \\ into \.
23446      sed -n \
23447	"s/'/'\\\\''/g;
23448	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23449      ;; #(
23450    *)
23451      # `set' quotes correctly as required by POSIX, so do not add quotes.
23452      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23453      ;;
23454    esac |
23455    sort
23456) |
23457  sed '
23458     /^ac_cv_env_/b end
23459     t clear
23460     :clear
23461     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23462     t end
23463     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23464     :end' >>confcache
23465if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23466  if test -w "$cache_file"; then
23467    if test "x$cache_file" != "x/dev/null"; then
23468      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23469$as_echo "$as_me: updating cache $cache_file" >&6;}
23470      if test ! -f "$cache_file" || test -h "$cache_file"; then
23471	cat confcache >"$cache_file"
23472      else
23473        case $cache_file in #(
23474        */* | ?:*)
23475	  mv -f confcache "$cache_file"$$ &&
23476	  mv -f "$cache_file"$$ "$cache_file" ;; #(
23477        *)
23478	  mv -f confcache "$cache_file" ;;
23479	esac
23480      fi
23481    fi
23482  else
23483    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23484$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23485  fi
23486fi
23487rm -f confcache
23488
23489test "x$prefix" = xNONE && prefix=$ac_default_prefix
23490# Let make expand exec_prefix.
23491test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23492
23493DEFS=-DHAVE_CONFIG_H
23494
23495ac_libobjs=
23496ac_ltlibobjs=
23497U=
23498for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23499  # 1. Remove the extension, and $U if already installed.
23500  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23501  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23502  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23503  #    will be set to the directory where LIBOBJS objects are built.
23504  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23505  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23506done
23507LIBOBJS=$ac_libobjs
23508
23509LTLIBOBJS=$ac_ltlibobjs
23510
23511
23512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23513$as_echo_n "checking that generated files are newer than configure... " >&6; }
23514   if test -n "$am_sleep_pid"; then
23515     # Hide warnings about reused PIDs.
23516     wait $am_sleep_pid 2>/dev/null
23517   fi
23518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
23519$as_echo "done" >&6; }
23520 if test -n "$EXEEXT"; then
23521  am__EXEEXT_TRUE=
23522  am__EXEEXT_FALSE='#'
23523else
23524  am__EXEEXT_TRUE='#'
23525  am__EXEEXT_FALSE=
23526fi
23527
23528if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23529  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23530Usually this means the macro was only invoked conditionally." "$LINENO" 5
23531fi
23532if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23533  as_fn_error $? "conditional \"AMDEP\" was never defined.
23534Usually this means the macro was only invoked conditionally." "$LINENO" 5
23535fi
23536if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23537  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23538Usually this means the macro was only invoked conditionally." "$LINENO" 5
23539fi
23540if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
23541  as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
23542Usually this means the macro was only invoked conditionally." "$LINENO" 5
23543fi
23544if test -z "${BUILTIN_EXTENSIONS_TRUE}" && test -z "${BUILTIN_EXTENSIONS_FALSE}"; then
23545  as_fn_error $? "conditional \"BUILTIN_EXTENSIONS\" was never defined.
23546Usually this means the macro was only invoked conditionally." "$LINENO" 5
23547fi
23548if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then
23549  as_fn_error $? "conditional \"WINDOWS\" was never defined.
23550Usually this means the macro was only invoked conditionally." "$LINENO" 5
23551fi
23552if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then
23553  as_fn_error $? "conditional \"WINDOWS\" was never defined.
23554Usually this means the macro was only invoked conditionally." "$LINENO" 5
23555fi
23556if test -z "${NDEBUG_TRUE}" && test -z "${NDEBUG_FALSE}"; then
23557  as_fn_error $? "conditional \"NDEBUG\" was never defined.
23558Usually this means the macro was only invoked conditionally." "$LINENO" 5
23559fi
23560if test -z "${HAVE_LIBCURL_TRUE}" && test -z "${HAVE_LIBCURL_FALSE}"; then
23561  as_fn_error $? "conditional \"HAVE_LIBCURL\" was never defined.
23562Usually this means the macro was only invoked conditionally." "$LINENO" 5
23563fi
23564if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
23565  as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
23566Usually this means the macro was only invoked conditionally." "$LINENO" 5
23567fi
23568if test -z "${HAVE_AVAHI_CLIENT_TRUE}" && test -z "${HAVE_AVAHI_CLIENT_FALSE}"; then
23569  as_fn_error $? "conditional \"HAVE_AVAHI_CLIENT\" was never defined.
23570Usually this means the macro was only invoked conditionally." "$LINENO" 5
23571fi
23572if test -z "${HAVE_AVAHI_CLIENT_TRUE}" && test -z "${HAVE_AVAHI_CLIENT_FALSE}"; then
23573  as_fn_error $? "conditional \"HAVE_AVAHI_CLIENT\" was never defined.
23574Usually this means the macro was only invoked conditionally." "$LINENO" 5
23575fi
23576if test -z "${HAVE_AVAHI_COMMON_TRUE}" && test -z "${HAVE_AVAHI_COMMON_FALSE}"; then
23577  as_fn_error $? "conditional \"HAVE_AVAHI_COMMON\" was never defined.
23578Usually this means the macro was only invoked conditionally." "$LINENO" 5
23579fi
23580if test -z "${HAVE_AVAHI_COMMON_TRUE}" && test -z "${HAVE_AVAHI_COMMON_FALSE}"; then
23581  as_fn_error $? "conditional \"HAVE_AVAHI_COMMON\" was never defined.
23582Usually this means the macro was only invoked conditionally." "$LINENO" 5
23583fi
23584if test -z "${HAVE_AVAHI_CLIENT_TRUE}" && test -z "${HAVE_AVAHI_CLIENT_FALSE}"; then
23585  as_fn_error $? "conditional \"HAVE_AVAHI_CLIENT\" was never defined.
23586Usually this means the macro was only invoked conditionally." "$LINENO" 5
23587fi
23588if test -z "${HAVE_AVAHI_COMMON_TRUE}" && test -z "${HAVE_AVAHI_COMMON_FALSE}"; then
23589  as_fn_error $? "conditional \"HAVE_AVAHI_COMMON\" was never defined.
23590Usually this means the macro was only invoked conditionally." "$LINENO" 5
23591fi
23592
23593if test -z "${HAVE_USERS_PROMISE_DEPS_TRUE}" && test -z "${HAVE_USERS_PROMISE_DEPS_FALSE}"; then
23594  as_fn_error $? "conditional \"HAVE_USERS_PROMISE_DEPS\" was never defined.
23595Usually this means the macro was only invoked conditionally." "$LINENO" 5
23596fi
23597if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
23598  as_fn_error $? "conditional \"FREEBSD\" was never defined.
23599Usually this means the macro was only invoked conditionally." "$LINENO" 5
23600fi
23601if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
23602  as_fn_error $? "conditional \"LINUX\" was never defined.
23603Usually this means the macro was only invoked conditionally." "$LINENO" 5
23604fi
23605if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
23606  as_fn_error $? "conditional \"MACOSX\" was never defined.
23607Usually this means the macro was only invoked conditionally." "$LINENO" 5
23608fi
23609if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
23610  as_fn_error $? "conditional \"SOLARIS\" was never defined.
23611Usually this means the macro was only invoked conditionally." "$LINENO" 5
23612fi
23613if test -z "${NT_TRUE}" && test -z "${NT_FALSE}"; then
23614  as_fn_error $? "conditional \"NT\" was never defined.
23615Usually this means the macro was only invoked conditionally." "$LINENO" 5
23616fi
23617if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
23618  as_fn_error $? "conditional \"CYGWIN\" was never defined.
23619Usually this means the macro was only invoked conditionally." "$LINENO" 5
23620fi
23621if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
23622  as_fn_error $? "conditional \"AIX\" was never defined.
23623Usually this means the macro was only invoked conditionally." "$LINENO" 5
23624fi
23625if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
23626  as_fn_error $? "conditional \"HPUX\" was never defined.
23627Usually this means the macro was only invoked conditionally." "$LINENO" 5
23628fi
23629if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
23630  as_fn_error $? "conditional \"FREEBSD\" was never defined.
23631Usually this means the macro was only invoked conditionally." "$LINENO" 5
23632fi
23633if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then
23634  as_fn_error $? "conditional \"NETBSD\" was never defined.
23635Usually this means the macro was only invoked conditionally." "$LINENO" 5
23636fi
23637if test -z "${XNU_TRUE}" && test -z "${XNU_FALSE}"; then
23638  as_fn_error $? "conditional \"XNU\" was never defined.
23639Usually this means the macro was only invoked conditionally." "$LINENO" 5
23640fi
23641if test -z "${WITH_INIT_D_SCRIPT_TRUE}" && test -z "${WITH_INIT_D_SCRIPT_FALSE}"; then
23642  as_fn_error $? "conditional \"WITH_INIT_D_SCRIPT\" was never defined.
23643Usually this means the macro was only invoked conditionally." "$LINENO" 5
23644fi
23645if test -z "${WITH_SYSTEMD_SERVICE_TRUE}" && test -z "${WITH_SYSTEMD_SERVICE_FALSE}"; then
23646  as_fn_error $? "conditional \"WITH_SYSTEMD_SERVICE\" was never defined.
23647Usually this means the macro was only invoked conditionally." "$LINENO" 5
23648fi
23649if test -z "${WITH_SELINUX_TRUE}" && test -z "${WITH_SELINUX_FALSE}"; then
23650  as_fn_error $? "conditional \"WITH_SELINUX\" was never defined.
23651Usually this means the macro was only invoked conditionally." "$LINENO" 5
23652fi
23653if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then
23654  as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined.
23655Usually this means the macro was only invoked conditionally." "$LINENO" 5
23656fi
23657if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then
23658  as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined.
23659Usually this means the macro was only invoked conditionally." "$LINENO" 5
23660fi
23661
23662: "${CONFIG_STATUS=./config.status}"
23663ac_write_fail=0
23664ac_clean_files_save=$ac_clean_files
23665ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23666{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23667$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23668as_write_fail=0
23669cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23670#! $SHELL
23671# Generated by $as_me.
23672# Run this file to recreate the current configuration.
23673# Compiler output produced by configure, useful for debugging
23674# configure, is in config.log if it exists.
23675
23676debug=false
23677ac_cs_recheck=false
23678ac_cs_silent=false
23679
23680SHELL=\${CONFIG_SHELL-$SHELL}
23681export SHELL
23682_ASEOF
23683cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23684## -------------------- ##
23685## M4sh Initialization. ##
23686## -------------------- ##
23687
23688# Be more Bourne compatible
23689DUALCASE=1; export DUALCASE # for MKS sh
23690if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23691  emulate sh
23692  NULLCMD=:
23693  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23694  # is contrary to our usage.  Disable this feature.
23695  alias -g '${1+"$@"}'='"$@"'
23696  setopt NO_GLOB_SUBST
23697else
23698  case `(set -o) 2>/dev/null` in #(
23699  *posix*) :
23700    set -o posix ;; #(
23701  *) :
23702     ;;
23703esac
23704fi
23705
23706
23707as_nl='
23708'
23709export as_nl
23710# Printing a long string crashes Solaris 7 /usr/bin/printf.
23711as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23712as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23713as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23714# Prefer a ksh shell builtin over an external printf program on Solaris,
23715# but without wasting forks for bash or zsh.
23716if test -z "$BASH_VERSION$ZSH_VERSION" \
23717    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23718  as_echo='print -r --'
23719  as_echo_n='print -rn --'
23720elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23721  as_echo='printf %s\n'
23722  as_echo_n='printf %s'
23723else
23724  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23725    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23726    as_echo_n='/usr/ucb/echo -n'
23727  else
23728    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23729    as_echo_n_body='eval
23730      arg=$1;
23731      case $arg in #(
23732      *"$as_nl"*)
23733	expr "X$arg" : "X\\(.*\\)$as_nl";
23734	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23735      esac;
23736      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23737    '
23738    export as_echo_n_body
23739    as_echo_n='sh -c $as_echo_n_body as_echo'
23740  fi
23741  export as_echo_body
23742  as_echo='sh -c $as_echo_body as_echo'
23743fi
23744
23745# The user is always right.
23746if test "${PATH_SEPARATOR+set}" != set; then
23747  PATH_SEPARATOR=:
23748  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23749    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23750      PATH_SEPARATOR=';'
23751  }
23752fi
23753
23754
23755# IFS
23756# We need space, tab and new line, in precisely that order.  Quoting is
23757# there to prevent editors from complaining about space-tab.
23758# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23759# splitting by setting IFS to empty value.)
23760IFS=" ""	$as_nl"
23761
23762# Find who we are.  Look in the path if we contain no directory separator.
23763as_myself=
23764case $0 in #((
23765  *[\\/]* ) as_myself=$0 ;;
23766  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23767for as_dir in $PATH
23768do
23769  IFS=$as_save_IFS
23770  test -z "$as_dir" && as_dir=.
23771    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23772  done
23773IFS=$as_save_IFS
23774
23775     ;;
23776esac
23777# We did not find ourselves, most probably we were run as `sh COMMAND'
23778# in which case we are not to be found in the path.
23779if test "x$as_myself" = x; then
23780  as_myself=$0
23781fi
23782if test ! -f "$as_myself"; then
23783  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23784  exit 1
23785fi
23786
23787# Unset variables that we do not need and which cause bugs (e.g. in
23788# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
23789# suppresses any "Segmentation fault" message there.  '((' could
23790# trigger a bug in pdksh 5.2.14.
23791for as_var in BASH_ENV ENV MAIL MAILPATH
23792do eval test x\${$as_var+set} = xset \
23793  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23794done
23795PS1='$ '
23796PS2='> '
23797PS4='+ '
23798
23799# NLS nuisances.
23800LC_ALL=C
23801export LC_ALL
23802LANGUAGE=C
23803export LANGUAGE
23804
23805# CDPATH.
23806(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23807
23808
23809# as_fn_error STATUS ERROR [LINENO LOG_FD]
23810# ----------------------------------------
23811# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23812# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23813# script with STATUS, using 1 if that was 0.
23814as_fn_error ()
23815{
23816  as_status=$1; test $as_status -eq 0 && as_status=1
23817  if test "$4"; then
23818    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23819    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23820  fi
23821  $as_echo "$as_me: error: $2" >&2
23822  as_fn_exit $as_status
23823} # as_fn_error
23824
23825
23826# as_fn_set_status STATUS
23827# -----------------------
23828# Set $? to STATUS, without forking.
23829as_fn_set_status ()
23830{
23831  return $1
23832} # as_fn_set_status
23833
23834# as_fn_exit STATUS
23835# -----------------
23836# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23837as_fn_exit ()
23838{
23839  set +e
23840  as_fn_set_status $1
23841  exit $1
23842} # as_fn_exit
23843
23844# as_fn_unset VAR
23845# ---------------
23846# Portably unset VAR.
23847as_fn_unset ()
23848{
23849  { eval $1=; unset $1;}
23850}
23851as_unset=as_fn_unset
23852# as_fn_append VAR VALUE
23853# ----------------------
23854# Append the text in VALUE to the end of the definition contained in VAR. Take
23855# advantage of any shell optimizations that allow amortized linear growth over
23856# repeated appends, instead of the typical quadratic growth present in naive
23857# implementations.
23858if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23859  eval 'as_fn_append ()
23860  {
23861    eval $1+=\$2
23862  }'
23863else
23864  as_fn_append ()
23865  {
23866    eval $1=\$$1\$2
23867  }
23868fi # as_fn_append
23869
23870# as_fn_arith ARG...
23871# ------------------
23872# Perform arithmetic evaluation on the ARGs, and store the result in the
23873# global $as_val. Take advantage of shells that can avoid forks. The arguments
23874# must be portable across $(()) and expr.
23875if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23876  eval 'as_fn_arith ()
23877  {
23878    as_val=$(( $* ))
23879  }'
23880else
23881  as_fn_arith ()
23882  {
23883    as_val=`expr "$@" || test $? -eq 1`
23884  }
23885fi # as_fn_arith
23886
23887
23888if expr a : '\(a\)' >/dev/null 2>&1 &&
23889   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23890  as_expr=expr
23891else
23892  as_expr=false
23893fi
23894
23895if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23896  as_basename=basename
23897else
23898  as_basename=false
23899fi
23900
23901if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23902  as_dirname=dirname
23903else
23904  as_dirname=false
23905fi
23906
23907as_me=`$as_basename -- "$0" ||
23908$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23909	 X"$0" : 'X\(//\)$' \| \
23910	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23911$as_echo X/"$0" |
23912    sed '/^.*\/\([^/][^/]*\)\/*$/{
23913	    s//\1/
23914	    q
23915	  }
23916	  /^X\/\(\/\/\)$/{
23917	    s//\1/
23918	    q
23919	  }
23920	  /^X\/\(\/\).*/{
23921	    s//\1/
23922	    q
23923	  }
23924	  s/.*/./; q'`
23925
23926# Avoid depending upon Character Ranges.
23927as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23928as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23929as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23930as_cr_digits='0123456789'
23931as_cr_alnum=$as_cr_Letters$as_cr_digits
23932
23933ECHO_C= ECHO_N= ECHO_T=
23934case `echo -n x` in #(((((
23935-n*)
23936  case `echo 'xy\c'` in
23937  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23938  xy)  ECHO_C='\c';;
23939  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23940       ECHO_T='	';;
23941  esac;;
23942*)
23943  ECHO_N='-n';;
23944esac
23945
23946rm -f conf$$ conf$$.exe conf$$.file
23947if test -d conf$$.dir; then
23948  rm -f conf$$.dir/conf$$.file
23949else
23950  rm -f conf$$.dir
23951  mkdir conf$$.dir 2>/dev/null
23952fi
23953if (echo >conf$$.file) 2>/dev/null; then
23954  if ln -s conf$$.file conf$$ 2>/dev/null; then
23955    as_ln_s='ln -s'
23956    # ... but there are two gotchas:
23957    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23958    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23959    # In both cases, we have to default to `cp -pR'.
23960    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23961      as_ln_s='cp -pR'
23962  elif ln conf$$.file conf$$ 2>/dev/null; then
23963    as_ln_s=ln
23964  else
23965    as_ln_s='cp -pR'
23966  fi
23967else
23968  as_ln_s='cp -pR'
23969fi
23970rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23971rmdir conf$$.dir 2>/dev/null
23972
23973
23974# as_fn_mkdir_p
23975# -------------
23976# Create "$as_dir" as a directory, including parents if necessary.
23977as_fn_mkdir_p ()
23978{
23979
23980  case $as_dir in #(
23981  -*) as_dir=./$as_dir;;
23982  esac
23983  test -d "$as_dir" || eval $as_mkdir_p || {
23984    as_dirs=
23985    while :; do
23986      case $as_dir in #(
23987      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23988      *) as_qdir=$as_dir;;
23989      esac
23990      as_dirs="'$as_qdir' $as_dirs"
23991      as_dir=`$as_dirname -- "$as_dir" ||
23992$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23993	 X"$as_dir" : 'X\(//\)[^/]' \| \
23994	 X"$as_dir" : 'X\(//\)$' \| \
23995	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23996$as_echo X"$as_dir" |
23997    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23998	    s//\1/
23999	    q
24000	  }
24001	  /^X\(\/\/\)[^/].*/{
24002	    s//\1/
24003	    q
24004	  }
24005	  /^X\(\/\/\)$/{
24006	    s//\1/
24007	    q
24008	  }
24009	  /^X\(\/\).*/{
24010	    s//\1/
24011	    q
24012	  }
24013	  s/.*/./; q'`
24014      test -d "$as_dir" && break
24015    done
24016    test -z "$as_dirs" || eval "mkdir $as_dirs"
24017  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24018
24019
24020} # as_fn_mkdir_p
24021if mkdir -p . 2>/dev/null; then
24022  as_mkdir_p='mkdir -p "$as_dir"'
24023else
24024  test -d ./-p && rmdir ./-p
24025  as_mkdir_p=false
24026fi
24027
24028
24029# as_fn_executable_p FILE
24030# -----------------------
24031# Test if FILE is an executable regular file.
24032as_fn_executable_p ()
24033{
24034  test -f "$1" && test -x "$1"
24035} # as_fn_executable_p
24036as_test_x='test -x'
24037as_executable_p=as_fn_executable_p
24038
24039# Sed expression to map a string onto a valid CPP name.
24040as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24041
24042# Sed expression to map a string onto a valid variable name.
24043as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24044
24045
24046exec 6>&1
24047## ----------------------------------- ##
24048## Main body of $CONFIG_STATUS script. ##
24049## ----------------------------------- ##
24050_ASEOF
24051test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24052
24053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24054# Save the log message, to keep $0 and so on meaningful, and to
24055# report actual input values of CONFIG_FILES etc. instead of their
24056# values after options handling.
24057ac_log="
24058This file was extended by cfengine $as_me 3.19.0, which was
24059generated by GNU Autoconf 2.69.  Invocation command line was
24060
24061  CONFIG_FILES    = $CONFIG_FILES
24062  CONFIG_HEADERS  = $CONFIG_HEADERS
24063  CONFIG_LINKS    = $CONFIG_LINKS
24064  CONFIG_COMMANDS = $CONFIG_COMMANDS
24065  $ $0 $@
24066
24067on `(hostname || uname -n) 2>/dev/null | sed 1q`
24068"
24069
24070_ACEOF
24071
24072case $ac_config_files in *"
24073"*) set x $ac_config_files; shift; ac_config_files=$*;;
24074esac
24075
24076case $ac_config_headers in *"
24077"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24078esac
24079
24080
24081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24082# Files that config.status was made for.
24083config_files="$ac_config_files"
24084config_headers="$ac_config_headers"
24085config_commands="$ac_config_commands"
24086
24087_ACEOF
24088
24089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24090ac_cs_usage="\
24091\`$as_me' instantiates files and other configuration actions
24092from templates according to the current configuration.  Unless the files
24093and actions are specified as TAGs, all are instantiated by default.
24094
24095Usage: $0 [OPTION]... [TAG]...
24096
24097  -h, --help       print this help, then exit
24098  -V, --version    print version number and configuration settings, then exit
24099      --config     print configuration, then exit
24100  -q, --quiet, --silent
24101                   do not print progress messages
24102  -d, --debug      don't remove temporary files
24103      --recheck    update $as_me by reconfiguring in the same conditions
24104      --file=FILE[:TEMPLATE]
24105                   instantiate the configuration file FILE
24106      --header=FILE[:TEMPLATE]
24107                   instantiate the configuration header FILE
24108
24109Configuration files:
24110$config_files
24111
24112Configuration headers:
24113$config_headers
24114
24115Configuration commands:
24116$config_commands
24117
24118Report bugs to the package provider."
24119
24120_ACEOF
24121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24122ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24123ac_cs_version="\\
24124cfengine config.status 3.19.0
24125configured by $0, generated by GNU Autoconf 2.69,
24126  with options \\"\$ac_cs_config\\"
24127
24128Copyright (C) 2012 Free Software Foundation, Inc.
24129This config.status script is free software; the Free Software Foundation
24130gives unlimited permission to copy, distribute and modify it."
24131
24132ac_pwd='$ac_pwd'
24133srcdir='$srcdir'
24134INSTALL='$INSTALL'
24135MKDIR_P='$MKDIR_P'
24136AWK='$AWK'
24137test -n "\$AWK" || AWK=awk
24138_ACEOF
24139
24140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24141# The default lists apply if the user does not specify any file.
24142ac_need_defaults=:
24143while test $# != 0
24144do
24145  case $1 in
24146  --*=?*)
24147    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24148    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24149    ac_shift=:
24150    ;;
24151  --*=)
24152    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24153    ac_optarg=
24154    ac_shift=:
24155    ;;
24156  *)
24157    ac_option=$1
24158    ac_optarg=$2
24159    ac_shift=shift
24160    ;;
24161  esac
24162
24163  case $ac_option in
24164  # Handling of the options.
24165  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24166    ac_cs_recheck=: ;;
24167  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24168    $as_echo "$ac_cs_version"; exit ;;
24169  --config | --confi | --conf | --con | --co | --c )
24170    $as_echo "$ac_cs_config"; exit ;;
24171  --debug | --debu | --deb | --de | --d | -d )
24172    debug=: ;;
24173  --file | --fil | --fi | --f )
24174    $ac_shift
24175    case $ac_optarg in
24176    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24177    '') as_fn_error $? "missing file argument" ;;
24178    esac
24179    as_fn_append CONFIG_FILES " '$ac_optarg'"
24180    ac_need_defaults=false;;
24181  --header | --heade | --head | --hea )
24182    $ac_shift
24183    case $ac_optarg in
24184    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24185    esac
24186    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24187    ac_need_defaults=false;;
24188  --he | --h)
24189    # Conflict between --help and --header
24190    as_fn_error $? "ambiguous option: \`$1'
24191Try \`$0 --help' for more information.";;
24192  --help | --hel | -h )
24193    $as_echo "$ac_cs_usage"; exit ;;
24194  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24195  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24196    ac_cs_silent=: ;;
24197
24198  # This is an error.
24199  -*) as_fn_error $? "unrecognized option: \`$1'
24200Try \`$0 --help' for more information." ;;
24201
24202  *) as_fn_append ac_config_targets " $1"
24203     ac_need_defaults=false ;;
24204
24205  esac
24206  shift
24207done
24208
24209ac_configure_extra_args=
24210
24211if $ac_cs_silent; then
24212  exec 6>/dev/null
24213  ac_configure_extra_args="$ac_configure_extra_args --silent"
24214fi
24215
24216_ACEOF
24217cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24218if \$ac_cs_recheck; then
24219  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24220  shift
24221  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24222  CONFIG_SHELL='$SHELL'
24223  export CONFIG_SHELL
24224  exec "\$@"
24225fi
24226
24227_ACEOF
24228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24229exec 5>>config.log
24230{
24231  echo
24232  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24233## Running $as_me. ##
24234_ASBOX
24235  $as_echo "$ac_log"
24236} >&5
24237
24238_ACEOF
24239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24240#
24241# INIT-COMMANDS
24242#
24243AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24244
24245
24246# The HP-UX ksh and POSIX shell print the target directory to stdout
24247# if CDPATH is set.
24248(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24249
24250sed_quote_subst='$sed_quote_subst'
24251double_quote_subst='$double_quote_subst'
24252delay_variable_subst='$delay_variable_subst'
24253macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24254macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24255enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24256enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24257pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24258enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24259shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
24260SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24261ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24262PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24263host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24264host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24265host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24266build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24267build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24268build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24269SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24270Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24271GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24272EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24273FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24274LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24275NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24276LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24277max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24278ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24279exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24280lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24281lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24282lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24283lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24284lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24285reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24286reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24287OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24288deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24289file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24290file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24291want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24292DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24293sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24294AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24295AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24296archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24297STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24298RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24299old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24300old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24301old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24302lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24303CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24304CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24305compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24306GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24307lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24308lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24309lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
24310lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24311lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
24312lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
24313nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24314lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24315lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
24316objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24317MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24318lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24319lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24320lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24321lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24322lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24323need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24324MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24325DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24326NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24327LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24328OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24329OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24330libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24331shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24332extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24333archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24334enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24335export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24336whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24337compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24338old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24339old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24340archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24341archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24342module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24343module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24344with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24345allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24346no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24347hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24348hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24349hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24350hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24351hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24352hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24353hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24354inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24355link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24356always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24357export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24358exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24359include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24360prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24361postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24362file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24363variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24364need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24365need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24366version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24367runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24368shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24369shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24370libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24371library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24372soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24373install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24374postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24375postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24376finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24377finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24378hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24379sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24380configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24381configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24382hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24383enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24384enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24385enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24386old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24387striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24388
24389LTCC='$LTCC'
24390LTCFLAGS='$LTCFLAGS'
24391compiler='$compiler_DEFAULT'
24392
24393# A function that is used when there is no print builtin or printf.
24394func_fallback_echo ()
24395{
24396  eval 'cat <<_LTECHO_EOF
24397\$1
24398_LTECHO_EOF'
24399}
24400
24401# Quote evaled strings.
24402for var in SHELL \
24403ECHO \
24404PATH_SEPARATOR \
24405SED \
24406GREP \
24407EGREP \
24408FGREP \
24409LD \
24410NM \
24411LN_S \
24412lt_SP2NL \
24413lt_NL2SP \
24414reload_flag \
24415OBJDUMP \
24416deplibs_check_method \
24417file_magic_cmd \
24418file_magic_glob \
24419want_nocaseglob \
24420DLLTOOL \
24421sharedlib_from_linklib_cmd \
24422AR \
24423AR_FLAGS \
24424archiver_list_spec \
24425STRIP \
24426RANLIB \
24427CC \
24428CFLAGS \
24429compiler \
24430lt_cv_sys_global_symbol_pipe \
24431lt_cv_sys_global_symbol_to_cdecl \
24432lt_cv_sys_global_symbol_to_import \
24433lt_cv_sys_global_symbol_to_c_name_address \
24434lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24435lt_cv_nm_interface \
24436nm_file_list_spec \
24437lt_cv_truncate_bin \
24438lt_prog_compiler_no_builtin_flag \
24439lt_prog_compiler_pic \
24440lt_prog_compiler_wl \
24441lt_prog_compiler_static \
24442lt_cv_prog_compiler_c_o \
24443need_locks \
24444MANIFEST_TOOL \
24445DSYMUTIL \
24446NMEDIT \
24447LIPO \
24448OTOOL \
24449OTOOL64 \
24450shrext_cmds \
24451export_dynamic_flag_spec \
24452whole_archive_flag_spec \
24453compiler_needs_object \
24454with_gnu_ld \
24455allow_undefined_flag \
24456no_undefined_flag \
24457hardcode_libdir_flag_spec \
24458hardcode_libdir_separator \
24459exclude_expsyms \
24460include_expsyms \
24461file_list_spec \
24462variables_saved_for_relink \
24463libname_spec \
24464library_names_spec \
24465soname_spec \
24466install_override_mode \
24467finish_eval \
24468old_striplib \
24469striplib; do
24470    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24471    *[\\\\\\\`\\"\\\$]*)
24472      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24473      ;;
24474    *)
24475      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24476      ;;
24477    esac
24478done
24479
24480# Double-quote double-evaled strings.
24481for var in reload_cmds \
24482old_postinstall_cmds \
24483old_postuninstall_cmds \
24484old_archive_cmds \
24485extract_expsyms_cmds \
24486old_archive_from_new_cmds \
24487old_archive_from_expsyms_cmds \
24488archive_cmds \
24489archive_expsym_cmds \
24490module_cmds \
24491module_expsym_cmds \
24492export_symbols_cmds \
24493prelink_cmds \
24494postlink_cmds \
24495postinstall_cmds \
24496postuninstall_cmds \
24497finish_cmds \
24498sys_lib_search_path_spec \
24499configure_time_dlsearch_path \
24500configure_time_lt_sys_library_path; do
24501    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24502    *[\\\\\\\`\\"\\\$]*)
24503      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24504      ;;
24505    *)
24506      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24507      ;;
24508    esac
24509done
24510
24511ac_aux_dir='$ac_aux_dir'
24512
24513# See if we are running on zsh, and set the options that allow our
24514# commands through without removal of \ escapes INIT.
24515if test -n "\${ZSH_VERSION+set}"; then
24516   setopt NO_GLOB_SUBST
24517fi
24518
24519
24520    PACKAGE='$PACKAGE'
24521    VERSION='$VERSION'
24522    RM='$RM'
24523    ofile='$ofile'
24524
24525
24526
24527
24528_ACEOF
24529
24530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24531
24532# Handling of arguments.
24533for ac_config_target in $ac_config_targets
24534do
24535  case $ac_config_target in
24536    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24537    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24538    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24539    "configure_flags.env") CONFIG_FILES="$CONFIG_FILES configure_flags.env" ;;
24540    "misc/init.d/cfengine3") CONFIG_FILES="$CONFIG_FILES misc/init.d/cfengine3" ;;
24541    "misc/systemd/cfengine3.service") CONFIG_FILES="$CONFIG_FILES misc/systemd/cfengine3.service" ;;
24542    "misc/systemd/cf-apache.service") CONFIG_FILES="$CONFIG_FILES misc/systemd/cf-apache.service" ;;
24543    "misc/systemd/cf-execd.service") CONFIG_FILES="$CONFIG_FILES misc/systemd/cf-execd.service" ;;
24544    "misc/systemd/cf-hub.service") CONFIG_FILES="$CONFIG_FILES misc/systemd/cf-hub.service" ;;
24545    "misc/systemd/cf-monitord.service") CONFIG_FILES="$CONFIG_FILES misc/systemd/cf-monitord.service" ;;
24546    "misc/systemd/cf-postgres.service") CONFIG_FILES="$CONFIG_FILES misc/systemd/cf-postgres.service" ;;
24547    "misc/systemd/cf-runalerts.service") CONFIG_FILES="$CONFIG_FILES misc/systemd/cf-runalerts.service" ;;
24548    "misc/systemd/cf-serverd.service") CONFIG_FILES="$CONFIG_FILES misc/systemd/cf-serverd.service" ;;
24549    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24550    "libcfnet/Makefile") CONFIG_FILES="$CONFIG_FILES libcfnet/Makefile" ;;
24551    "libenv/Makefile") CONFIG_FILES="$CONFIG_FILES libenv/Makefile" ;;
24552    "libpromises/Makefile") CONFIG_FILES="$CONFIG_FILES libpromises/Makefile" ;;
24553    "cf-agent/Makefile") CONFIG_FILES="$CONFIG_FILES cf-agent/Makefile" ;;
24554    "cf-check/Makefile") CONFIG_FILES="$CONFIG_FILES cf-check/Makefile" ;;
24555    "cf-promises/Makefile") CONFIG_FILES="$CONFIG_FILES cf-promises/Makefile" ;;
24556    "cf-execd/Makefile") CONFIG_FILES="$CONFIG_FILES cf-execd/Makefile" ;;
24557    "cf-key/Makefile") CONFIG_FILES="$CONFIG_FILES cf-key/Makefile" ;;
24558    "cf-monitord/Makefile") CONFIG_FILES="$CONFIG_FILES cf-monitord/Makefile" ;;
24559    "cf-upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES cf-upgrade/Makefile" ;;
24560    "cf-runagent/Makefile") CONFIG_FILES="$CONFIG_FILES cf-runagent/Makefile" ;;
24561    "cf-serverd/Makefile") CONFIG_FILES="$CONFIG_FILES cf-serverd/Makefile" ;;
24562    "cf-testd/Makefile") CONFIG_FILES="$CONFIG_FILES cf-testd/Makefile" ;;
24563    "cf-net/Makefile") CONFIG_FILES="$CONFIG_FILES cf-net/Makefile" ;;
24564    "cf-secret/Makefile") CONFIG_FILES="$CONFIG_FILES cf-secret/Makefile" ;;
24565    "config.post.h") CONFIG_FILES="$CONFIG_FILES config.post.h" ;;
24566    "contrib/vagrant-ci/centos-7-x64/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/vagrant-ci/centos-7-x64/Makefile" ;;
24567    "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
24568    "misc/selinux/Makefile") CONFIG_FILES="$CONFIG_FILES misc/selinux/Makefile" ;;
24569    "ext/Makefile") CONFIG_FILES="$CONFIG_FILES ext/Makefile" ;;
24570    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
24571    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
24572    "tests/acceptance/Makefile") CONFIG_FILES="$CONFIG_FILES tests/acceptance/Makefile" ;;
24573    "tests/acceptance/25_cf-execd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/acceptance/25_cf-execd/Makefile" ;;
24574    "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
24575    "tests/load/Makefile") CONFIG_FILES="$CONFIG_FILES tests/load/Makefile" ;;
24576    "tests/static-check/Makefile") CONFIG_FILES="$CONFIG_FILES tests/static-check/Makefile" ;;
24577    "tests/valgrind-check/Makefile") CONFIG_FILES="$CONFIG_FILES tests/valgrind-check/Makefile" ;;
24578
24579  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24580  esac
24581done
24582
24583
24584# If the user did not use the arguments to specify the items to instantiate,
24585# then the envvar interface is used.  Set only those that are not.
24586# We use the long form for the default assignment because of an extremely
24587# bizarre bug on SunOS 4.1.3.
24588if $ac_need_defaults; then
24589  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24590  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24591  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24592fi
24593
24594# Have a temporary directory for convenience.  Make it in the build tree
24595# simply because there is no reason against having it here, and in addition,
24596# creating and moving files from /tmp can sometimes cause problems.
24597# Hook for its removal unless debugging.
24598# Note that there is a small window in which the directory will not be cleaned:
24599# after its creation but before its name has been assigned to `$tmp'.
24600$debug ||
24601{
24602  tmp= ac_tmp=
24603  trap 'exit_status=$?
24604  : "${ac_tmp:=$tmp}"
24605  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24606' 0
24607  trap 'as_fn_exit 1' 1 2 13 15
24608}
24609# Create a (secure) tmp directory for tmp files.
24610
24611{
24612  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24613  test -d "$tmp"
24614}  ||
24615{
24616  tmp=./conf$$-$RANDOM
24617  (umask 077 && mkdir "$tmp")
24618} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24619ac_tmp=$tmp
24620
24621# Set up the scripts for CONFIG_FILES section.
24622# No need to generate them if there are no CONFIG_FILES.
24623# This happens for instance with `./config.status config.h'.
24624if test -n "$CONFIG_FILES"; then
24625
24626
24627ac_cr=`echo X | tr X '\015'`
24628# On cygwin, bash can eat \r inside `` if the user requested igncr.
24629# But we know of no other shell where ac_cr would be empty at this
24630# point, so we can use a bashism as a fallback.
24631if test "x$ac_cr" = x; then
24632  eval ac_cr=\$\'\\r\'
24633fi
24634ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24635if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24636  ac_cs_awk_cr='\\r'
24637else
24638  ac_cs_awk_cr=$ac_cr
24639fi
24640
24641echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24642_ACEOF
24643
24644
24645{
24646  echo "cat >conf$$subs.awk <<_ACEOF" &&
24647  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24648  echo "_ACEOF"
24649} >conf$$subs.sh ||
24650  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24651ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24652ac_delim='%!_!# '
24653for ac_last_try in false false false false false :; do
24654  . ./conf$$subs.sh ||
24655    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24656
24657  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24658  if test $ac_delim_n = $ac_delim_num; then
24659    break
24660  elif $ac_last_try; then
24661    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24662  else
24663    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24664  fi
24665done
24666rm -f conf$$subs.sh
24667
24668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24669cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24670_ACEOF
24671sed -n '
24672h
24673s/^/S["/; s/!.*/"]=/
24674p
24675g
24676s/^[^!]*!//
24677:repl
24678t repl
24679s/'"$ac_delim"'$//
24680t delim
24681:nl
24682h
24683s/\(.\{148\}\)..*/\1/
24684t more1
24685s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24686p
24687n
24688b repl
24689:more1
24690s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24691p
24692g
24693s/.\{148\}//
24694t nl
24695:delim
24696h
24697s/\(.\{148\}\)..*/\1/
24698t more2
24699s/["\\]/\\&/g; s/^/"/; s/$/"/
24700p
24701b
24702:more2
24703s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24704p
24705g
24706s/.\{148\}//
24707t delim
24708' <conf$$subs.awk | sed '
24709/^[^""]/{
24710  N
24711  s/\n//
24712}
24713' >>$CONFIG_STATUS || ac_write_fail=1
24714rm -f conf$$subs.awk
24715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24716_ACAWK
24717cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24718  for (key in S) S_is_set[key] = 1
24719  FS = ""
24720
24721}
24722{
24723  line = $ 0
24724  nfields = split(line, field, "@")
24725  substed = 0
24726  len = length(field[1])
24727  for (i = 2; i < nfields; i++) {
24728    key = field[i]
24729    keylen = length(key)
24730    if (S_is_set[key]) {
24731      value = S[key]
24732      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24733      len += length(value) + length(field[++i])
24734      substed = 1
24735    } else
24736      len += 1 + keylen
24737  }
24738
24739  print line
24740}
24741
24742_ACAWK
24743_ACEOF
24744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24745if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24746  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24747else
24748  cat
24749fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24750  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24751_ACEOF
24752
24753# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24754# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24755# trailing colons and then remove the whole line if VPATH becomes empty
24756# (actually we leave an empty line to preserve line numbers).
24757if test "x$srcdir" = x.; then
24758  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
24759h
24760s///
24761s/^/:/
24762s/[	 ]*$/:/
24763s/:\$(srcdir):/:/g
24764s/:\${srcdir}:/:/g
24765s/:@srcdir@:/:/g
24766s/^:*//
24767s/:*$//
24768x
24769s/\(=[	 ]*\).*/\1/
24770G
24771s/\n//
24772s/^[^=]*=[	 ]*$//
24773}'
24774fi
24775
24776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24777fi # test -n "$CONFIG_FILES"
24778
24779# Set up the scripts for CONFIG_HEADERS section.
24780# No need to generate them if there are no CONFIG_HEADERS.
24781# This happens for instance with `./config.status Makefile'.
24782if test -n "$CONFIG_HEADERS"; then
24783cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24784BEGIN {
24785_ACEOF
24786
24787# Transform confdefs.h into an awk script `defines.awk', embedded as
24788# here-document in config.status, that substitutes the proper values into
24789# config.h.in to produce config.h.
24790
24791# Create a delimiter string that does not exist in confdefs.h, to ease
24792# handling of long lines.
24793ac_delim='%!_!# '
24794for ac_last_try in false false :; do
24795  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24796  if test -z "$ac_tt"; then
24797    break
24798  elif $ac_last_try; then
24799    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24800  else
24801    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24802  fi
24803done
24804
24805# For the awk script, D is an array of macro values keyed by name,
24806# likewise P contains macro parameters if any.  Preserve backslash
24807# newline sequences.
24808
24809ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24810sed -n '
24811s/.\{148\}/&'"$ac_delim"'/g
24812t rset
24813:rset
24814s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
24815t def
24816d
24817:def
24818s/\\$//
24819t bsnl
24820s/["\\]/\\&/g
24821s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24822D["\1"]=" \3"/p
24823s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
24824d
24825:bsnl
24826s/["\\]/\\&/g
24827s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24828D["\1"]=" \3\\\\\\n"\\/p
24829t cont
24830s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24831t cont
24832d
24833:cont
24834n
24835s/.\{148\}/&'"$ac_delim"'/g
24836t clear
24837:clear
24838s/\\$//
24839t bsnlc
24840s/["\\]/\\&/g; s/^/"/; s/$/"/p
24841d
24842:bsnlc
24843s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24844b cont
24845' <confdefs.h | sed '
24846s/'"$ac_delim"'/"\\\
24847"/g' >>$CONFIG_STATUS || ac_write_fail=1
24848
24849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24850  for (key in D) D_is_set[key] = 1
24851  FS = ""
24852}
24853/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24854  line = \$ 0
24855  split(line, arg, " ")
24856  if (arg[1] == "#") {
24857    defundef = arg[2]
24858    mac1 = arg[3]
24859  } else {
24860    defundef = substr(arg[1], 2)
24861    mac1 = arg[2]
24862  }
24863  split(mac1, mac2, "(") #)
24864  macro = mac2[1]
24865  prefix = substr(line, 1, index(line, defundef) - 1)
24866  if (D_is_set[macro]) {
24867    # Preserve the white space surrounding the "#".
24868    print prefix "define", macro P[macro] D[macro]
24869    next
24870  } else {
24871    # Replace #undef with comments.  This is necessary, for example,
24872    # in the case of _POSIX_SOURCE, which is predefined and required
24873    # on some systems where configure will not decide to define it.
24874    if (defundef == "undef") {
24875      print "/*", prefix defundef, macro, "*/"
24876      next
24877    }
24878  }
24879}
24880{ print }
24881_ACAWK
24882_ACEOF
24883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24884  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24885fi # test -n "$CONFIG_HEADERS"
24886
24887
24888eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
24889shift
24890for ac_tag
24891do
24892  case $ac_tag in
24893  :[FHLC]) ac_mode=$ac_tag; continue;;
24894  esac
24895  case $ac_mode$ac_tag in
24896  :[FHL]*:*);;
24897  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24898  :[FH]-) ac_tag=-:-;;
24899  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24900  esac
24901  ac_save_IFS=$IFS
24902  IFS=:
24903  set x $ac_tag
24904  IFS=$ac_save_IFS
24905  shift
24906  ac_file=$1
24907  shift
24908
24909  case $ac_mode in
24910  :L) ac_source=$1;;
24911  :[FH])
24912    ac_file_inputs=
24913    for ac_f
24914    do
24915      case $ac_f in
24916      -) ac_f="$ac_tmp/stdin";;
24917      *) # Look for the file first in the build tree, then in the source tree
24918	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24919	 # because $ac_f cannot contain `:'.
24920	 test -f "$ac_f" ||
24921	   case $ac_f in
24922	   [\\/$]*) false;;
24923	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24924	   esac ||
24925	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24926      esac
24927      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24928      as_fn_append ac_file_inputs " '$ac_f'"
24929    done
24930
24931    # Let's still pretend it is `configure' which instantiates (i.e., don't
24932    # use $as_me), people would be surprised to read:
24933    #    /* config.h.  Generated by config.status.  */
24934    configure_input='Generated from '`
24935	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24936	`' by configure.'
24937    if test x"$ac_file" != x-; then
24938      configure_input="$ac_file.  $configure_input"
24939      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24940$as_echo "$as_me: creating $ac_file" >&6;}
24941    fi
24942    # Neutralize special characters interpreted by sed in replacement strings.
24943    case $configure_input in #(
24944    *\&* | *\|* | *\\* )
24945       ac_sed_conf_input=`$as_echo "$configure_input" |
24946       sed 's/[\\\\&|]/\\\\&/g'`;; #(
24947    *) ac_sed_conf_input=$configure_input;;
24948    esac
24949
24950    case $ac_tag in
24951    *:-:* | *:-) cat >"$ac_tmp/stdin" \
24952      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24953    esac
24954    ;;
24955  esac
24956
24957  ac_dir=`$as_dirname -- "$ac_file" ||
24958$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24959	 X"$ac_file" : 'X\(//\)[^/]' \| \
24960	 X"$ac_file" : 'X\(//\)$' \| \
24961	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24962$as_echo X"$ac_file" |
24963    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24964	    s//\1/
24965	    q
24966	  }
24967	  /^X\(\/\/\)[^/].*/{
24968	    s//\1/
24969	    q
24970	  }
24971	  /^X\(\/\/\)$/{
24972	    s//\1/
24973	    q
24974	  }
24975	  /^X\(\/\).*/{
24976	    s//\1/
24977	    q
24978	  }
24979	  s/.*/./; q'`
24980  as_dir="$ac_dir"; as_fn_mkdir_p
24981  ac_builddir=.
24982
24983case "$ac_dir" in
24984.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24985*)
24986  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24987  # A ".." for each directory in $ac_dir_suffix.
24988  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24989  case $ac_top_builddir_sub in
24990  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24991  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24992  esac ;;
24993esac
24994ac_abs_top_builddir=$ac_pwd
24995ac_abs_builddir=$ac_pwd$ac_dir_suffix
24996# for backward compatibility:
24997ac_top_builddir=$ac_top_build_prefix
24998
24999case $srcdir in
25000  .)  # We are building in place.
25001    ac_srcdir=.
25002    ac_top_srcdir=$ac_top_builddir_sub
25003    ac_abs_top_srcdir=$ac_pwd ;;
25004  [\\/]* | ?:[\\/]* )  # Absolute name.
25005    ac_srcdir=$srcdir$ac_dir_suffix;
25006    ac_top_srcdir=$srcdir
25007    ac_abs_top_srcdir=$srcdir ;;
25008  *) # Relative name.
25009    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25010    ac_top_srcdir=$ac_top_build_prefix$srcdir
25011    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25012esac
25013ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25014
25015
25016  case $ac_mode in
25017  :F)
25018  #
25019  # CONFIG_FILE
25020  #
25021
25022  case $INSTALL in
25023  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25024  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25025  esac
25026  ac_MKDIR_P=$MKDIR_P
25027  case $MKDIR_P in
25028  [\\/$]* | ?:[\\/]* ) ;;
25029  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25030  esac
25031_ACEOF
25032
25033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25034# If the template does not know about datarootdir, expand it.
25035# FIXME: This hack should be removed a few years after 2.60.
25036ac_datarootdir_hack=; ac_datarootdir_seen=
25037ac_sed_dataroot='
25038/datarootdir/ {
25039  p
25040  q
25041}
25042/@datadir@/p
25043/@docdir@/p
25044/@infodir@/p
25045/@localedir@/p
25046/@mandir@/p'
25047case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25048*datarootdir*) ac_datarootdir_seen=yes;;
25049*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25050  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25051$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25052_ACEOF
25053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25054  ac_datarootdir_hack='
25055  s&@datadir@&$datadir&g
25056  s&@docdir@&$docdir&g
25057  s&@infodir@&$infodir&g
25058  s&@localedir@&$localedir&g
25059  s&@mandir@&$mandir&g
25060  s&\\\${datarootdir}&$datarootdir&g' ;;
25061esac
25062_ACEOF
25063
25064# Neutralize VPATH when `$srcdir' = `.'.
25065# Shell code in configure.ac might set extrasub.
25066# FIXME: do we really want to maintain this feature?
25067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25068ac_sed_extra="$ac_vpsub
25069$extrasub
25070_ACEOF
25071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25072:t
25073/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25074s|@configure_input@|$ac_sed_conf_input|;t t
25075s&@top_builddir@&$ac_top_builddir_sub&;t t
25076s&@top_build_prefix@&$ac_top_build_prefix&;t t
25077s&@srcdir@&$ac_srcdir&;t t
25078s&@abs_srcdir@&$ac_abs_srcdir&;t t
25079s&@top_srcdir@&$ac_top_srcdir&;t t
25080s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25081s&@builddir@&$ac_builddir&;t t
25082s&@abs_builddir@&$ac_abs_builddir&;t t
25083s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25084s&@INSTALL@&$ac_INSTALL&;t t
25085s&@MKDIR_P@&$ac_MKDIR_P&;t t
25086$ac_datarootdir_hack
25087"
25088eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25089  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25090
25091test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25092  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25093  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
25094      "$ac_tmp/out"`; test -z "$ac_out"; } &&
25095  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25096which seems to be undefined.  Please make sure it is defined" >&5
25097$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25098which seems to be undefined.  Please make sure it is defined" >&2;}
25099
25100  rm -f "$ac_tmp/stdin"
25101  case $ac_file in
25102  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25103  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25104  esac \
25105  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25106 ;;
25107  :H)
25108  #
25109  # CONFIG_HEADER
25110  #
25111  if test x"$ac_file" != x-; then
25112    {
25113      $as_echo "/* $configure_input  */" \
25114      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25115    } >"$ac_tmp/config.h" \
25116      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25117    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25118      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25119$as_echo "$as_me: $ac_file is unchanged" >&6;}
25120    else
25121      rm -f "$ac_file"
25122      mv "$ac_tmp/config.h" "$ac_file" \
25123	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
25124    fi
25125  else
25126    $as_echo "/* $configure_input  */" \
25127      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25128      || as_fn_error $? "could not create -" "$LINENO" 5
25129  fi
25130# Compute "$ac_file"'s index in $config_headers.
25131_am_arg="$ac_file"
25132_am_stamp_count=1
25133for _am_header in $config_headers :; do
25134  case $_am_header in
25135    $_am_arg | $_am_arg:* )
25136      break ;;
25137    * )
25138      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25139  esac
25140done
25141echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25142$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25143	 X"$_am_arg" : 'X\(//\)[^/]' \| \
25144	 X"$_am_arg" : 'X\(//\)$' \| \
25145	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25146$as_echo X"$_am_arg" |
25147    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25148	    s//\1/
25149	    q
25150	  }
25151	  /^X\(\/\/\)[^/].*/{
25152	    s//\1/
25153	    q
25154	  }
25155	  /^X\(\/\/\)$/{
25156	    s//\1/
25157	    q
25158	  }
25159	  /^X\(\/\).*/{
25160	    s//\1/
25161	    q
25162	  }
25163	  s/.*/./; q'`/stamp-h$_am_stamp_count
25164 ;;
25165
25166  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25167$as_echo "$as_me: executing $ac_file commands" >&6;}
25168 ;;
25169  esac
25170
25171
25172  case $ac_file$ac_mode in
25173    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25174  # Older Autoconf quotes --file arguments for eval, but not when files
25175  # are listed without --file.  Let's play safe and only enable the eval
25176  # if we detect the quoting.
25177  case $CONFIG_FILES in
25178  *\'*) eval set x "$CONFIG_FILES" ;;
25179  *)   set x $CONFIG_FILES ;;
25180  esac
25181  shift
25182  for mf
25183  do
25184    # Strip MF so we end up with the name of the file.
25185    mf=`echo "$mf" | sed -e 's/:.*$//'`
25186    # Check whether this is an Automake generated Makefile or not.
25187    # We used to match only the files named 'Makefile.in', but
25188    # some people rename them; so instead we look at the file content.
25189    # Grep'ing the first line is not enough: some people post-process
25190    # each Makefile.in and add a new line on top of each file to say so.
25191    # Grep'ing the whole file is not good either: AIX grep has a line
25192    # limit of 2048, but all sed's we know have understand at least 4000.
25193    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25194      dirpart=`$as_dirname -- "$mf" ||
25195$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25196	 X"$mf" : 'X\(//\)[^/]' \| \
25197	 X"$mf" : 'X\(//\)$' \| \
25198	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25199$as_echo X"$mf" |
25200    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25201	    s//\1/
25202	    q
25203	  }
25204	  /^X\(\/\/\)[^/].*/{
25205	    s//\1/
25206	    q
25207	  }
25208	  /^X\(\/\/\)$/{
25209	    s//\1/
25210	    q
25211	  }
25212	  /^X\(\/\).*/{
25213	    s//\1/
25214	    q
25215	  }
25216	  s/.*/./; q'`
25217    else
25218      continue
25219    fi
25220    # Extract the definition of DEPDIR, am__include, and am__quote
25221    # from the Makefile without running 'make'.
25222    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25223    test -z "$DEPDIR" && continue
25224    am__include=`sed -n 's/^am__include = //p' < "$mf"`
25225    test -z "$am__include" && continue
25226    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25227    # Find all dependency output files, they are included files with
25228    # $(DEPDIR) in their names.  We invoke sed twice because it is the
25229    # simplest approach to changing $(DEPDIR) to its actual value in the
25230    # expansion.
25231    for file in `sed -n "
25232      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25233	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
25234      # Make sure the directory exists.
25235      test -f "$dirpart/$file" && continue
25236      fdir=`$as_dirname -- "$file" ||
25237$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25238	 X"$file" : 'X\(//\)[^/]' \| \
25239	 X"$file" : 'X\(//\)$' \| \
25240	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25241$as_echo X"$file" |
25242    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25243	    s//\1/
25244	    q
25245	  }
25246	  /^X\(\/\/\)[^/].*/{
25247	    s//\1/
25248	    q
25249	  }
25250	  /^X\(\/\/\)$/{
25251	    s//\1/
25252	    q
25253	  }
25254	  /^X\(\/\).*/{
25255	    s//\1/
25256	    q
25257	  }
25258	  s/.*/./; q'`
25259      as_dir=$dirpart/$fdir; as_fn_mkdir_p
25260      # echo "creating $dirpart/$file"
25261      echo '# dummy' > "$dirpart/$file"
25262    done
25263  done
25264}
25265 ;;
25266    "libtool":C)
25267
25268    # See if we are running on zsh, and set the options that allow our
25269    # commands through without removal of \ escapes.
25270    if test -n "${ZSH_VERSION+set}"; then
25271      setopt NO_GLOB_SUBST
25272    fi
25273
25274    cfgfile=${ofile}T
25275    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25276    $RM "$cfgfile"
25277
25278    cat <<_LT_EOF >> "$cfgfile"
25279#! $SHELL
25280# Generated automatically by $as_me ($PACKAGE) $VERSION
25281# NOTE: Changes made to this file will be lost: look at ltmain.sh.
25282
25283# Provide generalized library-building support services.
25284# Written by Gordon Matzigkeit, 1996
25285
25286# Copyright (C) 2014 Free Software Foundation, Inc.
25287# This is free software; see the source for copying conditions.  There is NO
25288# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25289
25290# GNU Libtool is free software; you can redistribute it and/or modify
25291# it under the terms of the GNU General Public License as published by
25292# the Free Software Foundation; either version 2 of of the License, or
25293# (at your option) any later version.
25294#
25295# As a special exception to the GNU General Public License, if you
25296# distribute this file as part of a program or library that is built
25297# using GNU Libtool, you may include this file under the  same
25298# distribution terms that you use for the rest of that program.
25299#
25300# GNU Libtool is distributed in the hope that it will be useful, but
25301# WITHOUT ANY WARRANTY; without even the implied warranty of
25302# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25303# GNU General Public License for more details.
25304#
25305# You should have received a copy of the GNU General Public License
25306# along with this program.  If not, see <http://www.gnu.org/licenses/>.
25307
25308
25309# The names of the tagged configurations supported by this script.
25310available_tags=''
25311
25312# Configured defaults for sys_lib_dlsearch_path munging.
25313: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25314
25315# ### BEGIN LIBTOOL CONFIG
25316
25317# Which release of libtool.m4 was used?
25318macro_version=$macro_version
25319macro_revision=$macro_revision
25320
25321# Whether or not to build static libraries.
25322build_old_libs=$enable_static
25323
25324# Whether or not to build shared libraries.
25325build_libtool_libs=$enable_shared
25326
25327# What type of objects to build.
25328pic_mode=$pic_mode
25329
25330# Whether or not to optimize for fast installation.
25331fast_install=$enable_fast_install
25332
25333# Shared archive member basename,for filename based shared library versioning on AIX.
25334shared_archive_member_spec=$shared_archive_member_spec
25335
25336# Shell to use when invoking shell scripts.
25337SHELL=$lt_SHELL
25338
25339# An echo program that protects backslashes.
25340ECHO=$lt_ECHO
25341
25342# The PATH separator for the build system.
25343PATH_SEPARATOR=$lt_PATH_SEPARATOR
25344
25345# The host system.
25346host_alias=$host_alias
25347host=$host
25348host_os=$host_os
25349
25350# The build system.
25351build_alias=$build_alias
25352build=$build
25353build_os=$build_os
25354
25355# A sed program that does not truncate output.
25356SED=$lt_SED
25357
25358# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25359Xsed="\$SED -e 1s/^X//"
25360
25361# A grep program that handles long lines.
25362GREP=$lt_GREP
25363
25364# An ERE matcher.
25365EGREP=$lt_EGREP
25366
25367# A literal string matcher.
25368FGREP=$lt_FGREP
25369
25370# A BSD- or MS-compatible name lister.
25371NM=$lt_NM
25372
25373# Whether we need soft or hard links.
25374LN_S=$lt_LN_S
25375
25376# What is the maximum length of a command?
25377max_cmd_len=$max_cmd_len
25378
25379# Object file suffix (normally "o").
25380objext=$ac_objext
25381
25382# Executable file suffix (normally "").
25383exeext=$exeext
25384
25385# whether the shell understands "unset".
25386lt_unset=$lt_unset
25387
25388# turn spaces into newlines.
25389SP2NL=$lt_lt_SP2NL
25390
25391# turn newlines into spaces.
25392NL2SP=$lt_lt_NL2SP
25393
25394# convert \$build file names to \$host format.
25395to_host_file_cmd=$lt_cv_to_host_file_cmd
25396
25397# convert \$build files to toolchain format.
25398to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25399
25400# An object symbol dumper.
25401OBJDUMP=$lt_OBJDUMP
25402
25403# Method to check whether dependent libraries are shared objects.
25404deplibs_check_method=$lt_deplibs_check_method
25405
25406# Command to use when deplibs_check_method = "file_magic".
25407file_magic_cmd=$lt_file_magic_cmd
25408
25409# How to find potential files when deplibs_check_method = "file_magic".
25410file_magic_glob=$lt_file_magic_glob
25411
25412# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25413want_nocaseglob=$lt_want_nocaseglob
25414
25415# DLL creation program.
25416DLLTOOL=$lt_DLLTOOL
25417
25418# Command to associate shared and link libraries.
25419sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25420
25421# The archiver.
25422AR=$lt_AR
25423
25424# Flags to create an archive.
25425AR_FLAGS=$lt_AR_FLAGS
25426
25427# How to feed a file listing to the archiver.
25428archiver_list_spec=$lt_archiver_list_spec
25429
25430# A symbol stripping program.
25431STRIP=$lt_STRIP
25432
25433# Commands used to install an old-style archive.
25434RANLIB=$lt_RANLIB
25435old_postinstall_cmds=$lt_old_postinstall_cmds
25436old_postuninstall_cmds=$lt_old_postuninstall_cmds
25437
25438# Whether to use a lock for old archive extraction.
25439lock_old_archive_extraction=$lock_old_archive_extraction
25440
25441# A C compiler.
25442LTCC=$lt_CC
25443
25444# LTCC compiler flags.
25445LTCFLAGS=$lt_CFLAGS
25446
25447# Take the output of nm and produce a listing of raw symbols and C names.
25448global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25449
25450# Transform the output of nm in a proper C declaration.
25451global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25452
25453# Transform the output of nm into a list of symbols to manually relocate.
25454global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25455
25456# Transform the output of nm in a C name address pair.
25457global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25458
25459# Transform the output of nm in a C name address pair when lib prefix is needed.
25460global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25461
25462# The name lister interface.
25463nm_interface=$lt_lt_cv_nm_interface
25464
25465# Specify filename containing input files for \$NM.
25466nm_file_list_spec=$lt_nm_file_list_spec
25467
25468# The root where to search for dependent libraries,and where our libraries should be installed.
25469lt_sysroot=$lt_sysroot
25470
25471# Command to truncate a binary pipe.
25472lt_truncate_bin=$lt_lt_cv_truncate_bin
25473
25474# The name of the directory that contains temporary libtool files.
25475objdir=$objdir
25476
25477# Used to examine libraries when file_magic_cmd begins with "file".
25478MAGIC_CMD=$MAGIC_CMD
25479
25480# Must we lock files when doing compilation?
25481need_locks=$lt_need_locks
25482
25483# Manifest tool.
25484MANIFEST_TOOL=$lt_MANIFEST_TOOL
25485
25486# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25487DSYMUTIL=$lt_DSYMUTIL
25488
25489# Tool to change global to local symbols on Mac OS X.
25490NMEDIT=$lt_NMEDIT
25491
25492# Tool to manipulate fat objects and archives on Mac OS X.
25493LIPO=$lt_LIPO
25494
25495# ldd/readelf like tool for Mach-O binaries on Mac OS X.
25496OTOOL=$lt_OTOOL
25497
25498# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25499OTOOL64=$lt_OTOOL64
25500
25501# Old archive suffix (normally "a").
25502libext=$libext
25503
25504# Shared library suffix (normally ".so").
25505shrext_cmds=$lt_shrext_cmds
25506
25507# The commands to extract the exported symbol list from a shared archive.
25508extract_expsyms_cmds=$lt_extract_expsyms_cmds
25509
25510# Variables whose values should be saved in libtool wrapper scripts and
25511# restored at link time.
25512variables_saved_for_relink=$lt_variables_saved_for_relink
25513
25514# Do we need the "lib" prefix for modules?
25515need_lib_prefix=$need_lib_prefix
25516
25517# Do we need a version for libraries?
25518need_version=$need_version
25519
25520# Library versioning type.
25521version_type=$version_type
25522
25523# Shared library runtime path variable.
25524runpath_var=$runpath_var
25525
25526# Shared library path variable.
25527shlibpath_var=$shlibpath_var
25528
25529# Is shlibpath searched before the hard-coded library search path?
25530shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25531
25532# Format of library name prefix.
25533libname_spec=$lt_libname_spec
25534
25535# List of archive names.  First name is the real one, the rest are links.
25536# The last name is the one that the linker finds with -lNAME
25537library_names_spec=$lt_library_names_spec
25538
25539# The coded name of the library, if different from the real name.
25540soname_spec=$lt_soname_spec
25541
25542# Permission mode override for installation of shared libraries.
25543install_override_mode=$lt_install_override_mode
25544
25545# Command to use after installation of a shared archive.
25546postinstall_cmds=$lt_postinstall_cmds
25547
25548# Command to use after uninstallation of a shared archive.
25549postuninstall_cmds=$lt_postuninstall_cmds
25550
25551# Commands used to finish a libtool library installation in a directory.
25552finish_cmds=$lt_finish_cmds
25553
25554# As "finish_cmds", except a single script fragment to be evaled but
25555# not shown.
25556finish_eval=$lt_finish_eval
25557
25558# Whether we should hardcode library paths into libraries.
25559hardcode_into_libs=$hardcode_into_libs
25560
25561# Compile-time system search path for libraries.
25562sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25563
25564# Detected run-time system search path for libraries.
25565sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25566
25567# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25568configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25569
25570# Whether dlopen is supported.
25571dlopen_support=$enable_dlopen
25572
25573# Whether dlopen of programs is supported.
25574dlopen_self=$enable_dlopen_self
25575
25576# Whether dlopen of statically linked programs is supported.
25577dlopen_self_static=$enable_dlopen_self_static
25578
25579# Commands to strip libraries.
25580old_striplib=$lt_old_striplib
25581striplib=$lt_striplib
25582
25583
25584# The linker used to build libraries.
25585LD=$lt_LD
25586
25587# How to create reloadable object files.
25588reload_flag=$lt_reload_flag
25589reload_cmds=$lt_reload_cmds
25590
25591# Commands used to build an old-style archive.
25592old_archive_cmds=$lt_old_archive_cmds
25593
25594# A language specific compiler.
25595CC=$lt_compiler
25596
25597# Is the compiler the GNU compiler?
25598with_gcc=$GCC
25599
25600# Compiler flag to turn off builtin functions.
25601no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25602
25603# Additional compiler flags for building library objects.
25604pic_flag=$lt_lt_prog_compiler_pic
25605
25606# How to pass a linker flag through the compiler.
25607wl=$lt_lt_prog_compiler_wl
25608
25609# Compiler flag to prevent dynamic linking.
25610link_static_flag=$lt_lt_prog_compiler_static
25611
25612# Does compiler simultaneously support -c and -o options?
25613compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25614
25615# Whether or not to add -lc for building shared libraries.
25616build_libtool_need_lc=$archive_cmds_need_lc
25617
25618# Whether or not to disallow shared libs when runtime libs are static.
25619allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25620
25621# Compiler flag to allow reflexive dlopens.
25622export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25623
25624# Compiler flag to generate shared objects directly from archives.
25625whole_archive_flag_spec=$lt_whole_archive_flag_spec
25626
25627# Whether the compiler copes with passing no objects directly.
25628compiler_needs_object=$lt_compiler_needs_object
25629
25630# Create an old-style archive from a shared archive.
25631old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25632
25633# Create a temporary old-style archive to link instead of a shared archive.
25634old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25635
25636# Commands used to build a shared archive.
25637archive_cmds=$lt_archive_cmds
25638archive_expsym_cmds=$lt_archive_expsym_cmds
25639
25640# Commands used to build a loadable module if different from building
25641# a shared archive.
25642module_cmds=$lt_module_cmds
25643module_expsym_cmds=$lt_module_expsym_cmds
25644
25645# Whether we are building with GNU ld or not.
25646with_gnu_ld=$lt_with_gnu_ld
25647
25648# Flag that allows shared libraries with undefined symbols to be built.
25649allow_undefined_flag=$lt_allow_undefined_flag
25650
25651# Flag that enforces no undefined symbols.
25652no_undefined_flag=$lt_no_undefined_flag
25653
25654# Flag to hardcode \$libdir into a binary during linking.
25655# This must work even if \$libdir does not exist
25656hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25657
25658# Whether we need a single "-rpath" flag with a separated argument.
25659hardcode_libdir_separator=$lt_hardcode_libdir_separator
25660
25661# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25662# DIR into the resulting binary.
25663hardcode_direct=$hardcode_direct
25664
25665# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25666# DIR into the resulting binary and the resulting library dependency is
25667# "absolute",i.e impossible to change by setting \$shlibpath_var if the
25668# library is relocated.
25669hardcode_direct_absolute=$hardcode_direct_absolute
25670
25671# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25672# into the resulting binary.
25673hardcode_minus_L=$hardcode_minus_L
25674
25675# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25676# into the resulting binary.
25677hardcode_shlibpath_var=$hardcode_shlibpath_var
25678
25679# Set to "yes" if building a shared library automatically hardcodes DIR
25680# into the library and all subsequent libraries and executables linked
25681# against it.
25682hardcode_automatic=$hardcode_automatic
25683
25684# Set to yes if linker adds runtime paths of dependent libraries
25685# to runtime path list.
25686inherit_rpath=$inherit_rpath
25687
25688# Whether libtool must link a program against all its dependency libraries.
25689link_all_deplibs=$link_all_deplibs
25690
25691# Set to "yes" if exported symbols are required.
25692always_export_symbols=$always_export_symbols
25693
25694# The commands to list exported symbols.
25695export_symbols_cmds=$lt_export_symbols_cmds
25696
25697# Symbols that should not be listed in the preloaded symbols.
25698exclude_expsyms=$lt_exclude_expsyms
25699
25700# Symbols that must always be exported.
25701include_expsyms=$lt_include_expsyms
25702
25703# Commands necessary for linking programs (against libraries) with templates.
25704prelink_cmds=$lt_prelink_cmds
25705
25706# Commands necessary for finishing linking programs.
25707postlink_cmds=$lt_postlink_cmds
25708
25709# Specify filename containing input files.
25710file_list_spec=$lt_file_list_spec
25711
25712# How to hardcode a shared library path into an executable.
25713hardcode_action=$hardcode_action
25714
25715# ### END LIBTOOL CONFIG
25716
25717_LT_EOF
25718
25719    cat <<'_LT_EOF' >> "$cfgfile"
25720
25721# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25722
25723# func_munge_path_list VARIABLE PATH
25724# -----------------------------------
25725# VARIABLE is name of variable containing _space_ separated list of
25726# directories to be munged by the contents of PATH, which is string
25727# having a format:
25728# "DIR[:DIR]:"
25729#       string "DIR[ DIR]" will be prepended to VARIABLE
25730# ":DIR[:DIR]"
25731#       string "DIR[ DIR]" will be appended to VARIABLE
25732# "DIRP[:DIRP]::[DIRA:]DIRA"
25733#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25734#       "DIRA[ DIRA]" will be appended to VARIABLE
25735# "DIR[:DIR]"
25736#       VARIABLE will be replaced by "DIR[ DIR]"
25737func_munge_path_list ()
25738{
25739    case x$2 in
25740    x)
25741        ;;
25742    *:)
25743        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25744        ;;
25745    x:*)
25746        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25747        ;;
25748    *::*)
25749        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25750        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25751        ;;
25752    *)
25753        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25754        ;;
25755    esac
25756}
25757
25758
25759# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
25760func_cc_basename ()
25761{
25762    for cc_temp in $*""; do
25763      case $cc_temp in
25764        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25765        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25766        \-*) ;;
25767        *) break;;
25768      esac
25769    done
25770    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25771}
25772
25773
25774# ### END FUNCTIONS SHARED WITH CONFIGURE
25775
25776_LT_EOF
25777
25778  case $host_os in
25779  aix3*)
25780    cat <<\_LT_EOF >> "$cfgfile"
25781# AIX sometimes has problems with the GCC collect2 program.  For some
25782# reason, if we set the COLLECT_NAMES environment variable, the problems
25783# vanish in a puff of smoke.
25784if test set != "${COLLECT_NAMES+set}"; then
25785  COLLECT_NAMES=
25786  export COLLECT_NAMES
25787fi
25788_LT_EOF
25789    ;;
25790  esac
25791
25792
25793ltmain=$ac_aux_dir/ltmain.sh
25794
25795
25796  # We use sed instead of cat because bash on DJGPP gets confused if
25797  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25798  # text mode, it properly converts lines to CR/LF.  This bash problem
25799  # is reportedly fixed, but why not run on old versions too?
25800  sed '$q' "$ltmain" >> "$cfgfile" \
25801     || (rm -f "$cfgfile"; exit 1)
25802
25803   mv -f "$cfgfile" "$ofile" ||
25804    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25805  chmod +x "$ofile"
25806
25807 ;;
25808    "misc/init.d/cfengine3":F) chmod +x misc/init.d/cfengine3 ;;
25809
25810  esac
25811done # for ac_tag
25812
25813
25814as_fn_exit 0
25815_ACEOF
25816ac_clean_files=$ac_clean_files_save
25817
25818test $ac_write_fail = 0 ||
25819  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25820
25821
25822# configure is writing to config.log, and then calls config.status.
25823# config.status does its own redirection, appending to config.log.
25824# Unfortunately, on DOS this fails, as config.log is still kept open
25825# by configure, so config.status won't be able to write to it; its
25826# output is simply discarded.  So we exec the FD to /dev/null,
25827# effectively closing config.log, so it can be properly (re)opened and
25828# appended to by config.status.  When coming back to configure, we
25829# need to make the FD available again.
25830if test "$no_create" != yes; then
25831  ac_cs_success=:
25832  ac_config_status_args=
25833  test "$silent" = yes &&
25834    ac_config_status_args="$ac_config_status_args --quiet"
25835  exec 5>/dev/null
25836  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25837  exec 5>>config.log
25838  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25839  # would make configure fail if this is the last instruction.
25840  $ac_cs_success || as_fn_exit 1
25841fi
25842
25843#
25844# CONFIG_SUBDIRS section.
25845#
25846if test "$no_recursion" != yes; then
25847
25848  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
25849  # so they do not pile up.
25850  ac_sub_configure_args=
25851  ac_prev=
25852  eval "set x $ac_configure_args"
25853  shift
25854  for ac_arg
25855  do
25856    if test -n "$ac_prev"; then
25857      ac_prev=
25858      continue
25859    fi
25860    case $ac_arg in
25861    -cache-file | --cache-file | --cache-fil | --cache-fi \
25862    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25863      ac_prev=cache_file ;;
25864    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25865    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25866    | --c=*)
25867      ;;
25868    --config-cache | -C)
25869      ;;
25870    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25871      ac_prev=srcdir ;;
25872    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25873      ;;
25874    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25875      ac_prev=prefix ;;
25876    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25877      ;;
25878    --disable-option-checking)
25879      ;;
25880    *)
25881      case $ac_arg in
25882      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25883      esac
25884      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
25885    esac
25886  done
25887
25888  # Always prepend --prefix to ensure using the same prefix
25889  # in subdir configurations.
25890  ac_arg="--prefix=$prefix"
25891  case $ac_arg in
25892  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25893  esac
25894  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25895
25896  # Pass --silent
25897  if test "$silent" = yes; then
25898    ac_sub_configure_args="--silent $ac_sub_configure_args"
25899  fi
25900
25901  # Always prepend --disable-option-checking to silence warnings, since
25902  # different subdirs can have different --enable and --with options.
25903  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
25904
25905  ac_popdir=`pwd`
25906  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25907
25908    # Do not complain, so a configure script can configure whichever
25909    # parts of a large source tree are present.
25910    test -d "$srcdir/$ac_dir" || continue
25911
25912    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
25913    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
25914    $as_echo "$ac_msg" >&6
25915    as_dir="$ac_dir"; as_fn_mkdir_p
25916    ac_builddir=.
25917
25918case "$ac_dir" in
25919.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25920*)
25921  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25922  # A ".." for each directory in $ac_dir_suffix.
25923  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25924  case $ac_top_builddir_sub in
25925  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25926  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25927  esac ;;
25928esac
25929ac_abs_top_builddir=$ac_pwd
25930ac_abs_builddir=$ac_pwd$ac_dir_suffix
25931# for backward compatibility:
25932ac_top_builddir=$ac_top_build_prefix
25933
25934case $srcdir in
25935  .)  # We are building in place.
25936    ac_srcdir=.
25937    ac_top_srcdir=$ac_top_builddir_sub
25938    ac_abs_top_srcdir=$ac_pwd ;;
25939  [\\/]* | ?:[\\/]* )  # Absolute name.
25940    ac_srcdir=$srcdir$ac_dir_suffix;
25941    ac_top_srcdir=$srcdir
25942    ac_abs_top_srcdir=$srcdir ;;
25943  *) # Relative name.
25944    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25945    ac_top_srcdir=$ac_top_build_prefix$srcdir
25946    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25947esac
25948ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25949
25950
25951    cd "$ac_dir"
25952
25953    # Check for guested configure; otherwise get Cygnus style configure.
25954    if test -f "$ac_srcdir/configure.gnu"; then
25955      ac_sub_configure=$ac_srcdir/configure.gnu
25956    elif test -f "$ac_srcdir/configure"; then
25957      ac_sub_configure=$ac_srcdir/configure
25958    elif test -f "$ac_srcdir/configure.in"; then
25959      # This should be Cygnus configure.
25960      ac_sub_configure=$ac_aux_dir/configure
25961    else
25962      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
25963$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25964      ac_sub_configure=
25965    fi
25966
25967    # The recursion is here.
25968    if test -n "$ac_sub_configure"; then
25969      # Make the cache file name correct relative to the subdirectory.
25970      case $cache_file in
25971      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25972      *) # Relative name.
25973	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
25974      esac
25975
25976      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25977$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25978      # The eval makes quoting arguments work.
25979      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
25980	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
25981	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
25982    fi
25983
25984    cd "$ac_popdir"
25985  done
25986fi
25987if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25988  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25989$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25990fi
25991
25992
25993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DONE: Configuration done. Run make/gmake to build CFEngine Community." >&5
25994$as_echo "DONE: Configuration done. Run make/gmake to build CFEngine Community." >&6; }
25995